@castlabs/prestoplay 6.17.1 → 6.19.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.
- package/CHANGELOG.md +55 -0
- package/cjs/cl.adobe.js +3 -3
- package/cjs/cl.airplay.js +3 -3
- package/cjs/cl.broadpeak.js +7 -7
- package/cjs/cl.cast.js +115 -114
- package/cjs/cl.conviva.js +33 -33
- package/cjs/cl.core.js +575 -565
- package/cjs/cl.crypto.js +9 -9
- package/cjs/cl.dash.js +77 -74
- package/cjs/cl.externs.js +175 -293
- package/cjs/cl.freewheel.js +24 -24
- package/cjs/cl.hls.js +70 -69
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +29 -29
- package/cjs/cl.ima.js +24 -24
- package/cjs/cl.mse.js +315 -314
- package/cjs/cl.muxdata.js +15 -15
- package/cjs/cl.onboard.js +3 -3
- package/cjs/cl.persistent.js +14 -14
- package/cjs/cl.playlist.js +6 -6
- package/cjs/cl.sessions.js +16 -15
- package/cjs/cl.simid.js +15 -15
- package/cjs/cl.smooth.js +72 -72
- package/cjs/cl.thumbnails.js +26 -26
- package/cjs/cl.tizen.js +71 -71
- package/cjs/cl.ttml.js +29 -28
- package/cjs/cl.verimatrix.js +5 -5
- package/cjs/cl.vimond.js +13 -13
- package/cjs/cl.vr.js +19 -19
- package/cjs/cl.vtt.js +14 -14
- package/cjs/cl.youbora.js +18 -18
- package/cl.adobe.js +3 -3
- package/cl.airplay.js +3 -3
- package/cl.broadpeak.js +5 -5
- package/cl.cast.js +90 -89
- package/cl.conviva.js +27 -27
- package/cl.core.js +473 -466
- package/cl.crypto.js +9 -9
- package/cl.dash.js +72 -70
- package/cl.externs.js +172 -294
- package/cl.freewheel.js +19 -19
- package/cl.hls.js +74 -72
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +26 -26
- package/cl.ima.js +17 -17
- package/cl.mse.js +276 -273
- package/cl.muxdata.js +13 -13
- package/cl.onboard.js +4 -4
- package/cl.persistent.js +11 -11
- package/cl.playlist.js +5 -5
- package/cl.sessions.js +10 -10
- package/cl.simid.js +13 -13
- package/cl.smooth.js +59 -59
- package/cl.thumbnails.js +19 -19
- package/cl.tizen.js +57 -57
- package/cl.ttml.js +22 -22
- package/cl.verimatrix.js +4 -4
- package/cl.vimond.js +8 -8
- package/cl.vr.js +15 -15
- package/cl.vtt.js +12 -12
- package/cl.youbora.js +15 -15
- package/clpp.styles.css +14 -0
- package/package.json +2 -2
- package/typings.d.ts +406 -377
package/cjs/cl.core.js
CHANGED
|
@@ -1,486 +1,502 @@
|
|
|
1
1
|
(function(){var g={}; var _ = {};
|
|
2
|
-
(function(window){var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
_.va="CastlabsPlayer";_.wa="Configuration is valid";xa="Content-Length";ya="Content-Type";_.za="Could not find configured DRM environment.";_.Aa="DRM environment '";Ba="DRM licenses loaded";Ea="DRMtoday";Fa="DRMtodayOnboard";_.Ga="DURATION";Ha="Destroying player";_.Ia="Disable track type ";Ja="EXT-X-BYTERANGE";_.Ka="EXT-X-DATERANGE";_.La="EXT-X-DISCONTINUITY";_.Ma="EXT-X-DISCONTINUITY-SEQUENCE";Na="EXT-X-ENDLIST";_.Oa="EXT-X-KEY";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_.
|
|
11
|
-
|
|
12
|
-
_.
|
|
13
|
-
_.
|
|
14
|
-
|
|
15
|
-
Vd="
|
|
16
|
-
_.
|
|
17
|
-
_
|
|
18
|
-
|
|
19
|
-
_.
|
|
20
|
-
_.
|
|
21
|
-
|
|
22
|
-
_.x=function(a,b){a.prototype=
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
_.J=function(a,b){var c=a.split("."),d=
|
|
30
|
-
_.
|
|
31
|
-
_.L=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};
|
|
32
|
-
_.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
f.next())if(g=g.value,!
|
|
36
|
-
else{if(l=a.a)l=a.a,m=a.m.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.m.trigger(new _.L(_.
|
|
37
|
-
|
|
38
|
-
_.
|
|
39
|
-
_.
|
|
40
|
-
_.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
_.
|
|
48
|
-
_.
|
|
49
|
-
_.
|
|
50
|
-
_.
|
|
51
|
-
_.hj=function(a){if(typeof a!==_.
|
|
2
|
+
(function(window){var ba,ca,ea,fa,ha,qa,ta,xa,ya,Ba,Ea,Fa,Ha,Ja,Na,Ra,Sa,Wa,Ya,Za,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,sb,tb,xb,yb,zb,Ab,Bb,Cb,Db,Fb,Gb,Kb,Ob,Sb,Wb,Xb,Yb,Zb,bc,dc,gc,hc,kc,mc,pc,qc,rc,sc,tc,Ac,Bc,Uc,Zc,ed,md,nd,ud,vd,wd,yd,zd,Ad,Cd,Dd,Ed,Gd,Hd,Md,Od,Rd,Xd,Yd,Zd,$d,ae,be,ee,he,ie,ke,qe,xe,ze,Ae,Ie,$e,gf,jf,kf,lf,mf,nf,of,pf,qf,rf,sf,wf,Af,Bf,Cf,Df,Ef,Gf,Kf,Mf,ag,dg,kg,rg,tg,ug,Cg,Lg,Pg,Qg,Rg,Sg,Tg,Vg,Wg,Xg,Zg,$g,dh,hh,jh,ih,kh,lh,mh,rh,uh,sh,th,vh,xh,yh,Ch,Fh,Kh,Oh,Qh,Rh,Xh,Uh,Yh,$h,Zh,bi,ei,ii,ki,ji,mi,
|
|
3
|
+
xi,yi,zi,Bi,Di,Ei,Gi,Hi,Li,Ni,Pi,Ji,Ri,fj,gj,jj,nj,pj,qj,tj,oj,kj,uj,Bj,Hj,Lj,Mj,Nj,Qj,ak,bk,ck,ik,kk,nk,tk,uk,xk,zk,yk,wk,Ak,vk,Dk,Bk,Ck,Ek,Fk,Lk,Uk,Wk,hl,jl,kl,ll,vl,ml,yl,Al,Cl,Dl,Bl,Fl,Gl,zl,Hl,Il,Jl,Kl,Ll,Pl,Ql,Rl,Sl,Ml,Wl,Xl,Zl,am,cm,im,jm,km,lm,mm,nm,om,pm,qm,rm,sm,tm,zm,Lm,Rm,Um,Vm,Xm,Ym,en,jn,kn,rn,xn,yn,An,Bn,Gn,Hn,Mn,Nn,Un,$n,jo,ro,to,xo,yo,Co,ho,fo,Jo,Ao,Ko,Mo,Lo,Ro,Qo,Oo,Po,Wn,so,No,Xn,Io,eo,Eo,Fo,Uo,Ho,go,Zn,Zo,ap,bp,cp,dp,ip,mp,np,pp,tp,yp,lp,zp,Ap,Dp,Gp,Hp,Jp,Kp,Fp,Ep,Lp,Mp,Np,Op,
|
|
4
|
+
Sp,Tp,Up,Vp,Wp,aq,bq,cq,gq,fq,kq,mq,nq,oq,zq,Bq,Aq,pq,uq,Cq,Dq,iq,xq,Eq,wq,sq,tq,rq,vq,qq,Fq,Hq,yq,Kq,jq,hq,Lq,Jq,lq,Sq,Tq,Vq,Uq,Xq,Wq,Qq,$q,Zq,cr,Rq,fr,Yq,dr,Nq,ar,br,er,hr,gr,lr,or,Mq,pr,rr,qr,tr,ur,vr,wr,sr,yr,Ar,Br,Dr,Er,Fr,Gr,Hr,Ir,Jr,Kr,Mr,Nr,Or,Pr,Lr,Sr,Ur,Tr,Vr,Wr,X,as,es,cs,fs,hs,gs,js,ps,os,ls,$r,ks,rs,ss,ts,ws,xs,vs,us,As,Cs,Bs,Fs,Ds,Is,Js,Hs,Ls,Ms,Ns,Ks,zs,Os,ys,Rs,Ss,Ts,Vs,Ws,Xs,Ys,Zs,$s,at,bt,ct,dt,et,ft,gt,ht,it,jt,mt,kt,nt,pt,qt,lt,ot,rt,st,tt,ut,vt,wt,xt,yt,zt,At,Ct,Et,Ft,Gt,Dt,It,
|
|
5
|
+
Jt,Pt,Ut,Wt,Yt,Xt,Xj,$t,cu,bu,du,eu,au,gu,hu,fu,iu,Yj,lu,Tj,yu,Bu,bh,Du;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.19.0";_.ja="AdaptationSet";_.ka="Already destroyed. No-op";_.la="Already released. No-op";_.ma="Autoplay is not allowed due to browser policy.";_.na="BANDWIDTH";_.pa="BASIC";qa="CHECKSUM";_.ra="CLOSED-CAPTIONS";_.sa="CODECS";ta="Can not set volume to ";
|
|
6
|
+
_.ua="Cannot retrieve buffer information due to platform limitations";_.va="CastlabsPlayer";_.wa="Configuration is valid";xa="Content-Length";ya="Content-Type";_.za="Could not find configured DRM environment.";_.Aa="DRM environment '";Ba="DRM licenses loaded";Ea="DRMtoday";Fa="DRMtodayOnboard";_.Ga="DURATION";Ha="Destroying player";_.Ia="Disable track type ";Ja="EXT-X-BYTERANGE";_.Ka="EXT-X-DATERANGE";_.La="EXT-X-DISCONTINUITY";_.Ma="EXT-X-DISCONTINUITY-SEQUENCE";Na="EXT-X-ENDLIST";_.Oa="EXT-X-KEY";
|
|
7
|
+
_.Pa="EXT-X-MAP";_.Qa="EXT-X-MEDIA-SEQUENCE";Ra="EXT-X-PART-INF";Sa="EXT-X-PLAYLIST-TYPE";_.Ua="EXT-X-PRELOAD-HINT";_.Va="EXT-X-PROGRAM-DATE-TIME";Wa="EXT-X-SERVER-CONTROL";_.Xa="EXT-X-STREAM-INF";Ya="EXT-X-TARGETDURATION";Za="Error while decoding string!";_.$a="Error while fetching license!";_.ab="FairPlay Certificate URL is not defined";_.db="FairPlay License URL is not defined";_.eb="GROUP-ID";gb="HW_SECURE_ALL";hb="HW_SECURE_CRYPTO";ib="HW_SECURE_DECODE";jb="HeaderDrm";kb="Hide video element .";
|
|
8
|
+
lb="Interstitial ";mb="Interstitial cue ";nb="Interstitials ";ob="Invalid track type: ";pb="InvalidStateError";qb="Key status for Key ID '";_.rb="LANGUAGE";sb="License verification failed: ";tb="Load interrupted while a player release is pending";_.ub="Loading player with configuration";_.vb="MaxHeight";_.wb="MaxWidth";xb="Missing media element";yb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";zb="No event provided!";Ab="No items in the playlist";
|
|
9
|
+
Bb="No sources provided!";Cb="No track data attached to the event, unable to add track!";Db="Not a persistent session.";_.Eb="Not supported";Fb="NotAllowedError";Gb="NotSupportedError";_.Hb="PLAYLIST";_.Ib="POST";_.Jb="PlayReady License URL is not defined";Kb="Player not ready yet.";_.Lb="Player sources";_.Mb="Player state change: ";_.Nb="Please make sure ";Ob="Preloading is not supported by this player.";_.Pb="QualityLevel";_.Qb="RESOLUTION";_.Rb="Representation";Sb="STANDARD";_.Tb="SUBTITLES";
|
|
10
|
+
_.Ub="SW_SECURE_CRYPTO";_.Vb="SW_SECURE_DECODE";Wb="Session is closed";Xb="Setting native ";Yb="Show video element .";Zb="Skipping Session creation. License for init data was already requested in Session: '";_.$b="SmoothStreamingMedia";_.ac="TYPE";bc="The index is not in the allowed range.";_.cc="URI";dc="Unable to translate ";_.ec="Unhandled/ignored event";_.fc="Unregistering listeners";gc="Unsupported keySystem";hc="Using VTTCue polyfill from 3 argument TextTrackCue.";_.ic="VIDEO";_.jc="VOD";
|
|
11
|
+
kc="Wait for preloading to finish";mc="WebkitEmeManager.MediaKeySession.load";_.oc="Widevine License URL is not defined";pc="Will create EME Manager: ";qc="X-ASSET-LIST";rc="X-ASSET-URI";sc="X-PLAYOUT-LIMIT";tc="X-RESUME-OFFSET";_.uc="ad-break-started";_.vc="ad-break-stopped";_.wc="ad-buffering";_.xc="ad-clicked";_.yc="ad-completed";_.zc="ad-first-quartile";Ac="ad-hls-asset-list-request";Bc="ad-hls-asset-list-response";_.Cc="ad-impression";_.Dc="ad-loaded";_.Ec="ad-midpoint";_.Fc="ad-paused";
|
|
12
|
+
_.Gc="ad-progress";_.Hc="ad-resumed";_.Ic="ad-skipped";_.Jc="ad-started";_.Kc="ad-stopped";_.Lc="ad-third-quartile";_.Mc="addtrack";_.Nc="ads-timeline-changed";_.Oc="airplay-casting-ended";_.Pc="airplay-casting-started";_.Qc="airplay-status-changed";_.Rc="application";_.Sc="application/cea-608";_.Tc="application/dash+xml";Uc="application/mp4";_.Vc='application/mp4; codecs\x3d"stpp"';_.Wc='application/mp4; codecs\x3d"wvtt"';_.Xc="application/ttml+xml";_.Yc="application/vnd.ms-sstr+xml";Zc="application/x-www-form-urlencoded";
|
|
13
|
+
_.$c="audio";_.ad="audio/aac";_.bd="audio/ac3";_.cd="audio/eac3";_.dd="audio/mp4";ed='audio/mp4;codecs\x3d"mp4a.40.2"';_.gd="audiobufferchanged";_.hd="autoplaynotallowed";_.id="bitratechanged";_.jd="boolean";_.kd="bufferingended";_.ld="bufferingstarted";md="canplay";nd="canplaythrough";_.od="caption";_.pd="castingstarted";_.qd="caststatuschanged";_.rd="cdn-switch-success";_.sd="cenc";_.td="center";ud="certificate-request";vd="change";wd="chrome";_.xd="clpp-fill";yd="clpp-hidden";zd="clpp-mc-playlist";
|
|
14
|
+
Ad="clpp-visible";_.Bd="clpp.cast.CastSender";Cd="clpp.drm.HeaderDrm";Dd="clpp.drm.eme.AppleEmeManager";Ed="clpp.native.Player";Gd="clpp.plist.McPlaylist";Hd="clpp.utils.Platform";_.Id="codecs";_.Jd="column-reverse";_.Kd="com.adobe.primetime";_.Ld="com.apple.fps";Md="com.apple.hls.interstitial";_.Nd="com.microsoft.playready";Od="com.microsoft.playready.recommendation";_.Pd="com.widevine.alpha";_.Qd="config.drm.customData is not defined";Rd="controls";_.Sd="cuechange";_.Td="decoder";_.Ud="destroy()";
|
|
15
|
+
_.Vd="disabled";_.Wd="div";Xd="drm.license.req.";Yd="drm.mediaKeys.end";Zd="drm.mediaKeys.start";$d="drm.onPlay.end";ae="drm.onPlay.start";be="drm.sess.update.";_.ce="drmexpirationupdate";ee="drmrenewalstarted";_.fe="drmsessionpersisted";_.ge="drmsessionupdate";he="drmtoday";ie="durationchange";_.je="ec-3";ke="encrypted";_.le="end";_.me="ended";_.ne="error";_.oe="estimatedThroughputKbps";_.pe="forced";qe="fullscreenElement";_.re="function";_.se="height";_.te="hidden";_.ue="html";_.ve="image";
|
|
16
|
+
_.we="internal-error";xe="keystatuseschange";_.ye="left";ze="license-renewal";Ae="license-request";_.Be="line-left";_.Ce="line-right";_.De="live-turned-static";_.Ee="load";_.Fe="loadeddata";_.He="loadedmetadata";Ie="loadstart";_.Je="main";_.Ke="mdat";_.Le="mdia";_.Me="message";_.Ne="metadata";_.Oe="mimeType";_.Pe="minf";_.Qe="moov";_.Re="mpd-type-changed";_.Se="mpeg-dash-callback-event";_.Te="none";_.k="number";_.Ue="object";_.Ve="onBitrateChanged()";_.We="onPlayerError()";_.Xe="onPlayerWillDestroy";
|
|
17
|
+
_.Ye="onPlayerWillRelease";_.Ze="onStateChanged()";$e="online-status-changed";_.af="optional";_.bf="org.w3.clearkey";_.cf="output-restricted";_.df="pause";_.ef="persistent";_.ff="persistent-license";gf="picture-in-picture";_.hf="play";jf="player.afterLoad.end";kf="player.afterLoad.start";lf="player.appendLoad.end";mf="player.appendLoad.start";nf="player.beforeLoad.end";of="player.beforeLoad.start";pf="player.load.end";qf="player.load.start";rf="player.setupPlaylist.end";sf="player.setupPlaylist.start";
|
|
18
|
+
_.tf="playing";_.uf="playlist-item-changed";_.vf="playlist-modified";wf="playlist.next.end";Af="playlist.next.start";Bf="preload-aborted";Cf="preload-failed";Df="preloaded";Ef="preloading";_.Ff="prevent";Gf="primary-content";_.Hf="progress";_.If="px";_.Jf="ratechange";Kf="released";_.Lf="releasing";Mf="removetrack";_.Nf="required";_.Of="resize";_.Pf="right";_.Qf="sc-playlist-ended";_.Rf="sc-playlist-item-changed";_.Sf="sc-playlist-live-turned-static";_.Tf="sc-playlist-timeline-changed";_.Uf="seeked";
|
|
19
|
+
_.Vf="seeking";_.Wf="showing";_.Xf="simid-creative-started";_.Yf="simid-creative-stopped";_.Zf="sinf";_.$f="smooth";ag="stalled";_.bg="start";_.cg="statechanged";dg="status-pending";_.eg="stbl";_.fg="string";_.gg="stsd";_.hg="style";_.ig="subtitle";_.jg="subtitles-htmlcue";kg="temporary";_.lg="text/vtt";_.mg="text/xml";_.ng="timeline-cues-changed";_.og="timeupdate";_.pg="trak";_.qg="ttml-xml";rg="unauthenticated";_.sg="und";tg="unknown";ug="update";_.vg="urn:scte:scte35";_.wg="urn:scte:scte35:2014";
|
|
20
|
+
_.xg="user-seeked";_.yg="user-seeking";_.zg="value";Cg="version";_.Dg="vertical-lr";_.Fg="vertical-rl";_.r="video";_.Gg="video/mp2t";_.Hg="video/mp4";_.Ig="videobufferchanged";_.Jg="videotrackchanged";_.Kg="vimond-response";Lg="visibilitychange";_.Mg="vtt-xml";_.Ng="waiting";_.Og="waitingforkey";Pg="webkit-org.w3.clearkey";Qg="webkitkeyadded";Rg="webkitkeyerror";Sg="webkitkeymessage";Tg="webkitneedkey";_.Ug="width";Vg="x-dt-csl-tracking-token";Wg="x-dt-follow-up-token";Xg="x-dt-resp-code";
|
|
21
|
+
Zg=function(a){return function(){return _.Yg[a].apply(this,arguments)}};$g=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.w=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:$g(a)}};_.ah=function(a){if(!(a instanceof Array)){a=_.w(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
|
|
22
|
+
_.x=function(a,b){a.prototype=bh(b.prototype);a.prototype.constructor=a;if(ch)ch(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]};dh=function(){dh=function(){};eh.Symbol||(eh.Symbol=fh)};hh=function(a,b){this.a=a;gh(this,"description",{configurable:!0,writable:!0,value:b})};
|
|
23
|
+
jh=function(){dh();var a=eh.Symbol.iterator;a||(a=eh.Symbol.iterator=eh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.re&&gh(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ih($g(this))}});jh=function(){}};ih=function(a){jh();a={next:a};a[eh.Symbol.iterator]=function(){return this};return a};kh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};lh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
|
|
24
|
+
mh=function(a,b){a.h={oh:b,Oh:!0};a.a=a.o||a.j};_.y=function(a,b,c){a.a=c;return{value:b}};_.A=function(a){a.a=0};_.D=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};_.nh=function(a){a.o=0;a.j=2};_.oh=function(a,b){a.a=b;a.o=0};_.F=function(a){a.o=0;var b=a.h.oh;a.h=null;return b};_.ph=function(a){a.B=[a.h];a.o=0;a.j=0};_.qh=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.Oh?a.a=a.o||a.j:void 0!=b.F&&a.j<b.F?(a.a=b.F,a.h=null):a.a=a.j:a.a=0};rh=function(a){this.a=new kh;this.f=a};
|
|
25
|
+
uh=function(a,b){lh(a.a);var c=a.a.l;if(c)return sh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return th(a)};sh=function(a,b,c,d){try{var e=b.call(a.a.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.w=!1,e;var f=e.value}catch(g){return a.a.l=null,mh(a.a,g),th(a)}a.a.l=null;d.call(a.a,f);return th(a)};
|
|
26
|
+
th=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.w=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,mh(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.Oh)throw b.oh;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
|
|
27
|
+
vh=function(a){this.next=function(b){lh(a.a);a.a.l?b=sh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=th(a));return b};this["throw"]=function(b){lh(a.a);a.a.l?b=sh(a,a.a.l["throw"],b,a.a.A):(mh(a.a,b),b=th(a));return b};this["return"]=function(b){return uh(a,b)};jh();this[Symbol.iterator]=function(){return this}};_.wh=function(a,b){var c=new vh(new rh(b));ch&&ch(c,a.prototype);return c};
|
|
28
|
+
xh=function(a,b){if(b){for(var c=eh,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&&gh(c,d,{configurable:!0,writable:!0,value:f})}};yh=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.I=function(a){return yh(new vh(new rh(a)))};
|
|
29
|
+
_.J=function(a,b){var c=a.split("."),d=zh;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};Ch=function(a){return a&&0<=Ah[a]?Ah[a]:Bh};Fh=function(a){if(!a)return _.Dh("clpp.log",dc+a+ca),-1;var b=Eh[a.toUpperCase()];return void 0===b?(_.Dh("clpp.log",dc+a+ca),-1):b};_.K=function(a){(this.tag=a)&&void 0===Ah[a]&&(Ah[a]=-1)};_.Hh=function(a){Gh.info.apply(Gh,arguments)};
|
|
30
|
+
_.Ih=function(a){Gh.debug.apply(Gh,arguments)};_.Dh=function(a){Gh.warn.apply(Gh,arguments)};_.Jh=function(a){Gh.error.apply(Gh,arguments)};Kh=function(a,b){this.Aa=a;this.sourceIndex=b};_.Nh=function(a){if(a){var b=a.a();b in _.Lh?_.Mh.warn("Player-Factory '"+b+"' already registered"):(_.Lh[b]=a,_.Mh.info("Registered Player-Factory: '"+b+"'"))}};Oh=function(a){return Object.values(_.Lh).find(a)||null};_.Ph=function(){this.a={}};Qh=function(a,b,c,d){this.f=a;this.Tc=b;this.a=c;this.dn=!!d};
|
|
31
|
+
_.L=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};Rh=function(a){this.a=new _.Ph;this.f=a};_.Sh=function(){this.a=new _.Ph};
|
|
32
|
+
_.Th=function(a,b,c,d){function e(h){for(var l=_.w(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.w(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.Vh=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)Uh(c[b]);a.a.clear()};Xh=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};Uh=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
|
|
33
|
+
Yh=function(a){this.m=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.Sh;this.a=this.l=null;this.h=[];this.g=new _.K("clpp.native.Metadata")};$h=function(a,b){a.j=b;a.l=a.j.textTracks;a.f.on(a.l,_.Mc,function(c){c=c.track;c.kind===_.Ne&&Zh(a,c)})};
|
|
34
|
+
Zh=function(a,b){function c(l){for(var m=_.w(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.ai,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.g.debug("onMetadata_()");b.mode=_.te;var d=[],e=!0;if(b.cues){for(var f=_.w(b.cues),g=f.next();!g.done;g=
|
|
35
|
+
f.next())if(g=g.value,!bi(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.wg;h.type=_.ci;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.w(d);for(g=f.next();!g.done;g=f.next())a.m.trigger(new _.L(_.di,{detail:g.value}));Array.prototype.push.apply(a.h,d);ei(a,d,b);a.f.off(b,_.Sd);a.f.on(b,_.Sd,function(l){l=l.target.activeCues;l=l.length?bi(a,l[0]):a.a;var m;if(m=l)m=a.m.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.m.trigger(new _.L(_.fi,{detail:l}));
|
|
36
|
+
else{if(l=a.a)l=a.a,m=a.m.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.m.trigger(new _.L(_.gi,{detail:l})))}})}};bi=function(a,b){for(var c=_.w(a.h),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};ei=function(a,b,c){if(a.o){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};_.hi=function(a){return Array.isArray(a)?a:[a]};
|
|
37
|
+
ii=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};ki=function(a,b,c){if(null==a&&null==b)return!0;if(null==a||null==b)return!1;a=c?a.map(c):a;b=c?b.map(c):b;return ji(a,b)&&ji(b,a)};ji=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
|
|
38
|
+
_.li=function(a,b){b=void 0===b?{}:b;if(b.hh){for(var c=[],d={},e=_.w(a),f=e.next();!f.done;d={je:d.je},f=e.next())d.je=f.value,c.some(function(g){return function(h){return b.hh(g.je,h)}}(d))||c.push(d.je);return c}return Array.from((new Set(a)).values())};mi=function(a,b){var c=new Set(a),d=new Set(b);return{en:a.filter(function(e){return!d.has(e)}),wo:a.filter(function(e){return d.has(e)}),bj:b.filter(function(e){return!c.has(e)})}};
|
|
39
|
+
_.ti=function(a,b,c,d){d=void 0===d?_.ni:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.oi;this.writingMode=_.pi;this.lineInterpretation=_.qi;this.line=null;this.lineAlign=_.ri;this.direction=si;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
|
|
40
|
+
_.wi=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.ui;this.scroll=vi;this.cssClassList=[];this.writingMode=this.displayAlign=null};xi=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.Sh;this.j=!1;this.g=new _.K("clpp.native.CueHandler")};
|
|
41
|
+
yi=function(a,b){var c=b.track;c.kind!==_.Ne&&(c.mode===_.Wf&&(c.mode=_.te),a.a.on(c,_.Sd,function(d){d=d.target||d.srcElement;d.mode=_.te;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.N=function(a,b,c,d,e){var f=Error.call(this,zi(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.M.da(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.N)};
|
|
42
|
+
zi=function(a,b,c,d){a=(a===_.O?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.M.da(d))a+=": "+d;else if(null!=d)if(null!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.Ai=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
|
|
43
|
+
Bi=function(a,b){var c=b||ii,d=null,e=null,f=!1;return function(g){for(var h=[],l=0;l<arguments.length;++l)h[l]=arguments[l];if(f&&c(h,d))return e;f=!0;d=h;return e=a.apply(null,_.ah(h))}};_.Ci=function(a){return null!=a};Di=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.Ai("No non-null, non-undefined value found");};
|
|
44
|
+
Ei=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};_.Fi=function(a){var b;a instanceof _.Fi?(Gi(this,a.tb),this.Dc=a.Dc,this.Ra=a.Ra,Hi(this,a.ld),this.Ga=a.Ga,_.Ii(this,Ji(a.a)),this.sc=a.sc):a&&(b=String(a).match(Ki))?(Gi(this,b[1]||"",!0),this.Dc=Li(b[2]||""),this.Ra=Li(b[3]||"",!0),Hi(this,b[4]),this.Ga=Li(b[5]||"",!0),_.Ii(this,b[6]||"",!0),this.sc=Li(b[7]||"")):this.a=new _.Mi(null)};
|
|
45
|
+
Gi=function(a,b,c){a.tb=c?Li(b,!0):b;a.tb&&(a.tb=a.tb.replace(/:$/,""))};Hi=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ld=b}else a.ld=null};_.Ii=function(a,b,c){b instanceof _.Mi?a.a=b:(c||(b=Ni(b,Oi)),a.a=new _.Mi(b))};Li=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Ni=function(a,b,c){return typeof a===_.fg?(a=encodeURI(a).replace(b,Pi),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
|
|
46
|
+
Pi=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.Mi=function(a){this.f=a||null};Ji=function(a){var b=new _.Mi;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.h=a.h}return b};Ri=function(a,b){for(var c=_.w(Qi[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.w(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.P?"":null};
|
|
47
|
+
_.Ti=function(a,b){for(var c=Si[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++)if(c[d].test(b[e].trim()))return b[e].trim();return a===_.P?"":null};_.Wi=function(a,b,c){return a.map(function(d){d=_.Ui(d)||"";return(d=_.Vi[b][d])?d:b===_.P?c&&"vtt"!==c?Uc:_.lg:null}).filter(Boolean)[0]||null};_.Ui=function(a){a=(new _.Fi(a)).Ga.split(".");return 1>=a.length?null:a.pop()};_.Xi=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
|
|
48
|
+
_.Yi=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.N(_.O,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.Zi=function(a,b){return _.Yi(a,b,void 0,{required:!0})};_.$i=function(a,b){this.name=a;this.value=b};
|
|
49
|
+
_.aj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,v){l=void 0===l?!1:l;m=void 0===m?null:m;n=void 0===n?null:n;p=void 0===p?null:p;q=void 0===q?null:q;t=void 0===t?[]:t;v=void 0===v?null:v;this.position=a;this.startTime=b;this.endTime=c;this.Ca=g;this.Va=d;this.ya=e;this.ka=f;this.keyInfo=(void 0===h?null:h)||null;this.Zc=_.M.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=t||[];this.h=!1;this.initSegment=v};
|
|
50
|
+
_.bj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,v){t=void 0===t?[]:t;_.aj.call(this,a,b,c,d,e,f,g,void 0===h?null:h,void 0===l?!1:l,void 0===m?null:m,void 0===n?null:n,void 0===p?null:p,void 0===q?null:q,t,void 0===v?null:v);this.ja=0};_.dj=function(a,b){a=_.cj(a);b=_.cj(b);return a.split("-")[0]===b.split("-")[0]};_.cj=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=ej.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};fj=function(a){if(null!==a&&void 0!==a)return Number(a)};
|
|
51
|
+
gj=function(a){return a.reduce(function(b,c){return b+c},0)};_.hj=function(a){if(typeof a!==_.fg)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{Pd:a,ee:b,An:a*b}};_.ij=function(a,b){for(var c=_.w(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};jj=function(){};
|
|
52
52
|
nj=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(kj(a)===kj(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.lj(a),d=_.lj(b),e=_.w(mj(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.lj=function(a,b,c){c=void 0===c?Infinity:c;return oj(a,void 0===b?0:b,c,Uint8Array)};pj=function(a,b,c){c=void 0===c?Infinity:c;return oj(a,void 0===b?0:b,c,Uint16Array)};
|
|
53
53
|
qj=function(a,b,c){c=void 0===c?Infinity:c;return oj(a,void 0===b?0:b,c,Uint32Array)};_.rj=function(a,b,c){c=void 0===c?Infinity:c;return oj(a,void 0===b?0:b,c,Int32Array)};_.sj=function(a,b,c){c=void 0===c?Infinity:c;return oj(a,void 0===b?0:b,c,DataView)};tj=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
|
|
54
54
|
oj=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=kj(a),g=(a.byteOffset||0)+a.byteLength;a=Math.max(0,Math.min((a.byteOffset||0)+b*e,g));c=Math.min(a+Math.max(c*e,0),g);a/=e;return new d(f,a,c/e-a)};kj=function(a){return a instanceof ArrayBuffer?a:a.buffer};uj=function(){};_.wj=function(a,b){b=void 0===b?!0:b;var c=_.vj(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};
|
|
55
55
|
_.xj=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};_.yj=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};_.zj=function(a){for(var b="",c=0;c<a.length;++c){var d=a[c].toString(16);1===d.length&&(d="0"+d);b+=d}return b};
|
|
56
56
|
_.Aj=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};Bj=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};_.vj=function(a){a=_.S.fromCharCode(_.lj(a));return btoa(a)};_.Cj=function(a){this.f=a;this.a=0};
|
|
57
57
|
_.Dj=function(a,b){b.lastIndex=a.a;var c=b.exec(a.f);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.a===a.f.length||null===c||c.position!==a.a)return null;a.a+=c.length;return c.results};
|
|
58
|
-
_.Ej=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.
|
|
59
|
-
Hj=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||_.
|
|
60
|
-
_.Jj=function(a,b){_.
|
|
61
|
-
[],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.
|
|
62
|
-
Hj(c,b);return c};_.Kj=function(a,b,c,d,e,f,g,h){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,responseStartMs:h,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.S.
|
|
63
|
-
Lj=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};Mj=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Nj=function(a,b,c){if(0>=a)return Promise.resolve();var d=8*c/a-b/1E3;return 0<d?new Promise(function(e){setTimeout(e,1E3*d)}):Promise.resolve()};
|
|
64
|
-
_.
|
|
65
|
-
_.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
_.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
_.
|
|
72
|
-
_.
|
|
73
|
-
"/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.
|
|
74
|
-
_.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
_.
|
|
83
|
-
_.
|
|
84
|
-
|
|
85
|
-
_.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
_
|
|
90
|
-
_.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
f}}}else if(a.g.debug(_.Ia+b),a.a.get(b)&&d&&b===_.T){g=_.w(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
_
|
|
102
|
-
restrictions
|
|
103
|
-
alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,
|
|
104
|
-
disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.
|
|
105
|
-
1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.
|
|
106
|
-
_.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.
|
|
115
|
-
_.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
_.
|
|
120
|
-
(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
_.
|
|
125
|
-
_.
|
|
126
|
-
_.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
_.
|
|
138
|
-
_.
|
|
139
|
-
_.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
_.
|
|
144
|
-
_.
|
|
145
|
-
|
|
146
|
-
_.
|
|
147
|
-
_.
|
|
148
|
-
|
|
149
|
-
Pn=function(a){a=_.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
this.w=this.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
_.
|
|
156
|
-
_.
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
_.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
_.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
_.
|
|
168
|
-
_.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
(
|
|
173
|
-
"",contentType:n
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
(
|
|
180
|
-
|
|
58
|
+
_.Ej=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.N(_.O,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Cj(e);var g;(g=_.Dj(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Dj(e,h);)c.push(new _.$i(g[1],g[2]||g[3]||""))}return new _.Xi(a,d,c,f)};_.Gj=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.ah(Fj).concat()}};
|
|
59
|
+
Hj=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||_.ah(Fj).concat()};
|
|
60
|
+
_.Jj=function(a,b){_.M.da(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Ij,uriIndex:0,method:a.method||"GET",body:a.body||null,headers:Object.assign({},a.headers),allowCrossSiteCredentials:a.allowCrossSiteCredentials||!1,onProgress:a.onProgress||null,onFragment:a.onFragment||null,maxAttempts:a.maxAttempts||1,currentAttempt:0,baseDelay:a.baseDelay||1E3,backoffFactor:a.backoffFactor||2,fuzzFactor:a.fuzzFactor||.5,timeout:a.timeout||0,requestModifiers:a.requestModifiers||
|
|
61
|
+
[],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.ah(Fj).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
|
|
62
|
+
Hj(c,b);return c};_.Kj=function(a,b,c,d,e,f,g,h){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,responseStartMs:h,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.S.Ld(b,!0)}catch(l){}_.Ih("HTTP error text:",g);throw new _.N(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.O:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};
|
|
63
|
+
Lj=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};Mj=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Nj=function(a,b,c){if(0>=a)return Promise.resolve();var d=8*c/a-b/1E3;return 0<d?new Promise(function(e){setTimeout(e,1E3*d)}):Promise.resolve()};
|
|
64
|
+
_.Oj=function(){this.Ai=this.Te=this.done=!1;this.error=this.value=null;var a,b,c=new Promise(function(d,e){a=function(f){this.done=this.Te=!0;this.value=f;d(f)};b=function(f){this.done=this.Ai=!0;this.error=f;e(f)}});c.Te=!1;c.done=!1;c.Ai=!1;c.value=null;c.error=null;c.resolve=a;c.reject=b;return c};_.Pj=function(a,b){this.U=a;this.A=b;this.a=!1};Qj=function(a,b){a.U.then(function(){return b(!0)},function(){return b(!1)});return a};_.Rj=function(){this.a=[]};
|
|
65
|
+
_.Sj=function(a,b){a.a.push(Qj(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Zj=function(){this.f=[];this.h=[];this.j=[];this.w=!1;this.o=new _.Rj;this.a={};this.l=0;this.a.data=Tj;!window.fetch||!window.AbortController||_.Uj(6)||_.Vj()&&68<_.Wj().browserVersion.major?(this.a.http=Xj,this.a.https=Xj):(this.a.http=Yj,this.a.https=Yj)};ak=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.S,_.y(e,a.fetch(b),2);d=e.f;return e["return"](c.$h(c.aa(d.data)))})};
|
|
66
|
+
bk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.y(e,ak(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.Ue)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.Ai("Failed to parse JSON response","json-failed");}})};
|
|
67
|
+
ck=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.I(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.F(2);break}e=_.Jj(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.D(g,4);return _.y(g,a.fetch(e).U,6);case 6:_.oh(g,2);break;case 4:if(f=_.F(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
|
|
68
|
+
_.dk=function(a,b){this.id=a;this.type=b;this.roles=[];this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.trickPlay=!1;this.channelsCount=this.src=this.mimeType=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.ek=function(a){return a&&a!==_.sg?a:null};
|
|
69
|
+
ik=function(a){if(!a)throw new _.N(_.O,3,3101,ob+a);if(!_.M.da(a))throw new _.N(_.O,3,3101,ob+a+". Track type must be a string!");switch(a.toLowerCase()){case _.T:return _.T;case _.fk:return _.fk;case _.gk:return _.gk;case hk:return hk}throw new _.N(_.O,3,3101,"Unknown track type: "+a+".");};
|
|
70
|
+
kk=function(a,b){a=ik(a);var c=_.ek(b.kind),d=b.id;d||(d=String(_.jk++));d=new _.dk(d,c===_.Ne?hk:a);d.kind=c;d.label=_.ek(b.label);d.language=_.ek(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};nk=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};
|
|
71
|
+
_.ok=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.td=this.bandwidth=this.height=this.width=null};
|
|
72
|
+
_.pk=function(a){this.j=a;this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.a=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.S.startsWith(this.path,
|
|
73
|
+
"/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.qk=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.rk=function(a,b,c){return a?(c||Object.keys(a).sort()).reduce(function(d,e){if(!(e in a))return d;var f=a[e],g="\x26";""===d&&(g=b?"":"?");d=d+g+encodeURIComponent(e);return d=d+"\x3d"+encodeURIComponent(void 0===f?"":f)},""):""};
|
|
74
|
+
_.sk=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.w(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};tk=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
|
|
75
|
+
uk=function(a){this.f=a;this.g=new _.K("clpp.native.hls.HlsMetadataParser");this.a=Bi(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
|
|
76
|
+
xk=function(a,b,c){var d,e,f,g,h;return _.I(function(l){if(1==l.a)return _.y(l,vk(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.dk("dummy",_.gk);h=f.map(function(m,n){var p=new _.ok("R"+n,g);p.bandwidth=m.bandwidth;p.td=m.td;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});wk(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
|
|
77
|
+
zk=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return yk(c)});var b=new Map;a.forEach(function(c){if(c.type&&c.name){var d=c.type+":"+c.name;if(b.has(d))throw Error("#EXT-X-MEDIA:NAME attributes are not unique. It is impossible to map HLS metadata to Safari data structures.");b.set(d,c)}});return b};
|
|
78
|
+
yk=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Ej(0,a);a=b(_.ac);a=null!=a?{AUDIO:_.fk,VIDEO:_.gk,SUBTITLES:_.T}[a]:void 0;return{type:a,groupId:b(_.eb),name:b("NAME"),language:b(_.rb),bo:b("AUTOSELECT"),"default":b("DEFAULT"),oo:b("FORCED"),Og:b("CHARACTERISTICS"),uri:b(_.cc)}};wk=function(a){var b=new Set;a.forEach(function(c){b.add(c.width+"x"+c.height)});if(b.size<a.length)throw Error("Playlist contains multiple renditions with the same resolution.");};
|
|
79
|
+
Ak=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.Jj(b),_.y(e,ak(a.f,c),2);d=e.f;return e["return"](d)})};vk=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return d=Bk(b),e=Ck(b,c),f=d[0]?d[0].codec:null,_.y(h,Dk(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};Dk=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.y(f,Ak(a,b),2):f["return"](null);d=f.f;e=[Ek(d,b),Fk(d,b)].filter(Boolean);return f["return"](_.Wi(e,_.r,c))})};
|
|
80
|
+
Bk=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Ej(0,b);if(c.getAttribute(_.ic))throw Error("Playlist contains alternative video streams.");var d=_.Yi(c,_.Qb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.Yi(c,_.na);e=e?Number(e):null;var f=_.Yi(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.Yi(c,_.sa);c=_.Ti(_.r,c?c.split(","):[]);return{bandwidth:e,td:f,codec:c,width:b,height:d,mimeType:null}})};
|
|
81
|
+
Ck=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?tk(c,b):null};Ek=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?tk(c,b):null};Fk=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.Yi(_.Ej(0,c),_.cc))?tk(c,b):null:null};
|
|
82
|
+
_.Hk=function(a,b,c){for(var d=_.w(_.Gk),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Ik=function(a){a=_.Gk.indexOf(a);0<=a&&_.Gk.splice(a,1)};_.U=function(){};Lk=function(a,b){var c=Jk;Kk.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.Pk=function(a,b){for(var c=_.w([Mk,Nk,Ok,Jk]),d=c.next();!d.done;d=c.next())if(d=Kk.get(a.toLowerCase().split(";")[0]+"-"+d.value)){var e=d.plugin(),f=e.isSupported(a,b);e.destroy();if(f)return d.plugin}return null};
|
|
83
|
+
_.Qk=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.Rk=function(a){return a.split(";")[0]};_.Sk=function(a){a=a.split(/\s*;\s*/);a.shift();return(a=a.find(function(b){return b.startsWith("codecs\x3d")}))?a.split("\x3d")[1].replace(/^"|"$/g,"").split(/\s*,\s*/).join(","):""};_.Tk=function(a){this.f=a;this.a=null};
|
|
84
|
+
Uk=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};_.Vk=function(a){this.f=a;this.a=null};Wk=function(){};_.Xk=function(){return!!navigator.userAgent.match(/Edge?\//)};_.Uj=function(a){return _.Yk("Tizen"+(a?" "+String(a):""))};_.Vj=function(){return _.Yk("Web0S")};_.$k=function(){return _.Vj()&&79===_.Zk().major};_.al=function(){return _.Yk("CrKey")};
|
|
85
|
+
_.bl=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Uj()};_.dl=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.bl()&&1<navigator.maxTouchPoints};_.el=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.Yk=function(a){return(navigator.userAgent||"").includes(a)};
|
|
86
|
+
hl=function(){if(fl)return fl;gl||(gl=new _.Vk(function(){fl=null}));(fl=document.querySelector(_.r)||document.querySelector(_.$c))||(fl=document.createElement(_.r));gl.ea(1);return fl};jl=function(a,b){try{return parseInt(b,10)}catch(c){il.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
|
|
87
|
+
kl=function(a){var b={major:-1,name:tg};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=jl(a,c[0]));2<=c.length&&(b.minor=jl(a,c[1]));3<=c.length&&(b.patch=jl(a,c[2]));4<=c.length&&(b.build=jl(a,c[3]));return b};ll=function(a,b){if(!a||!b||0===b.length)return!1;for(var c=0;c<b.length;c++)if(0<=a.indexOf(b[c]))return!0;return!1};
|
|
88
|
+
vl=function(){var a=ml();if(!a)return nl;var b=a.match(/^.+?(?=\))/);if(!b)return nl;b=b[0];if(ll(b,["iphone","ipad"]))return ol;if(ll(b,["android"]))return pl;if(ll(b,["macintosh"]))return ql;if(ll(b,["windows nt"]))return rl;if(ll(b,["tizen"]))return sl;if(ll(b,["web0s"]))return tl;if(ll(b,["linux"]))return ul;il.warn("Unable to identify OS from user agent: "+a);return nl};
|
|
89
|
+
_.Zk=function(){var a=ml(),b=["ie","edge","opera","firefox","safari",wd];var c=vl();for(var d=wl[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return kl(c[1]);return kl("")};ml=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
|
|
90
|
+
_.Wj=function(){var a=vl();var b=vl();var c=wl[b];if(c){c=ml().match(c.os_version)[1];c=kl(c);if(b===rl)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=kl("");a:{c=ml();var d=["ie","edge","opera","firefox","safari",wd],e=vl();e=wl[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=xl}return{os:a,osVersion:b,browser:c,browserVersion:_.Zk()}};
|
|
91
|
+
yl=function(){this.g=new _.K("clpp.native.TrackManager");this.m=null;this.f=new _.Sh;this.h=[];this.B=0;this.o={};this.C=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.$f.bind(this,_.T);this.L=this.bg.bind(this,_.T);this.K=this.ag.bind(this,_.T);this.N=this.$f.bind(this,_.gk);this.V=this.bg.bind(this,_.gk);this.P=this.ag.bind(this,_.gk);this.G=this.$f.bind(this,_.fk);this.I=this.bg.bind(this,_.fk);this.H=this.ag.bind(this,_.fk);this.j=null};
|
|
92
|
+
Al=function(a,b){var c,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){c=a.m.getConfiguration();d=_.Hk(c,b.mimeType,_.lg);if(!d)return a.g.warn("Track MIME type is not supported",b),n["return"]();e=_.Jj(b.url);return _.y(n,a.m.getNetworkEngine().fetch(e).U,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.lj(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.lg},zl(a,m,g));_.A(n)})};Cl=function(a,b,c){return Bl(a)&&b===_.gk&&!!c.enableHlsVideoTrackInfo};
|
|
93
|
+
Dl=function(a,b,c){return Bl(a)&&(b===_.fk||b===_.T)&&!!c.enableMetadata};Bl=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.El&&!a.url.endsWith(".m3u8"))&&_.bl()};Fl=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.y(f,a.j.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.A(f)})};
|
|
94
|
+
Gl=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.y(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.jd&&(f=b.type+":"+b.label,(g=e.jd.get(f))&&g.Og&&(b.accessibility=g.Og.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.A(h)})};
|
|
95
|
+
zl=function(a,b,c){if(a.m){var d=a.m.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);_.S.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.C.push(e)}}};Hl=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.fk:return c.audioTracks;case _.gk:return c.videoTracks;case _.T:return c.textTracks;default:return null}};
|
|
96
|
+
Il=function(a,b){var c=Hl(a,b);c&&(c=Array.from(c),b===_.T&&(c=c.filter(function(d){return d.kind!==_.Ne})));return c};Jl=function(a,b){return a.h.filter(function(c){return c.type===b})};Kl=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Ll=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
|
|
97
|
+
Pl=function(a,b,c){var d=Il(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.T:var g="mode";e=_.Wf;f=_.Vd;break;case _.fk:g="enabled";break;case _.gk:g="selected"}if(g){d=_.w(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Ml(c,h,c.type)?e:
|
|
98
|
+
f}}}else if(a.g.debug(_.Ia+b),a.a.get(b)&&d&&b===_.T){g=_.w(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Vd;a.a.set(b,null)}b===_.fk?a.m.trigger(new _.L(_.Nl)):b===_.T&&a.m.trigger(new _.L(_.Ol))};Ql=function(a){return a.enabled||a.selected||a.mode===_.Wf||a.mode===_.te};
|
|
99
|
+
Rl=function(a,b,c){c=_.hi(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=Jl(a,b);c.some(function(e){var f=_.cj(e);return(e=d.find(function(g){g=_.cj(g.language||"");return _.dj(f,g)}))?(a.g.info("Will select track with id",e.id),Pl(a,b,e),!0):!1})};Sl=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
|
|
100
|
+
Ml=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.M.la(a,{kind:_.ek(b.kind),language:_.ek(b.language),label:_.ek(b.label)},["kind","language","label"])};_.Tl=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Ul=function(){this.Jd=new Rh(this);this.Fd=[]};Wl=function(a){return a.name===Fb&&Vl.some(function(b){return a.message.startsWith(b)})};Xl=function(){};
|
|
101
|
+
_.$l=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.dl()&&(a=360);var b=_.Gj();b.maxAttempts=3;a={source:"",license:Yl,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.Gj(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
|
|
102
|
+
bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:Zl(a),useCmsd:!0},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Je,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,
|
|
103
|
+
rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,
|
|
104
|
+
chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.Ff},restrictions:Zl(),tizen:{sideStreamText:_.Uj(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},trickPlay:{speedUpMode:_.Td,preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.jc,cropTimeline:!1}};if(_.Uj()||_.Vj())a.ads.hls.enable=!1;if(_.Yk("Edge/")||_.Uj())a.streaming.gapDetectionThreshold=
|
|
105
|
+
.5;_.Vj()&&(a.streaming.stallEnabled=!1);_.$k()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Uj()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,invertVerticalControl:!1};return a};
|
|
106
|
+
_.bm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.$l();c=[_.$l()];var d=!1;b=_.w(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.M.da(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(e),null!=e.suggestedPresentationDelay&&
|
|
107
|
+
c.push({manifest:{suggestedPresentationDelay:e.suggestedPresentationDelay}}));c=_.M.sa.apply(null,c);_.M.da(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.M.R(c.volume)&&(!_.M.ra(c.volume)||_.M.isNaN(c.volume)))throw new _.N(_.O,7,7100,"config.volume is not a number");if(!_.M.R(c.preferredTextLanguage)&&!_.M.da(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.N(_.O,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.M.R(c.preferredAudioLanguage)&&
|
|
108
|
+
!_.M.da(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.N(_.O,7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.M.R(c.preferredAudioCodec)&&!_.M.da(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.N(_.O,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.M.R(c.preferredVideoCodec)&&!_.M.da(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.N(_.O,7,7100,"config.preferredVideoCodec is not a string or an array");
|
|
109
|
+
if(!_.M.R(c.drm)){if(c.drm.env&&!_.M.da(c.drm.env))throw new _.N(_.O,7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.M.da(c.drm.offlineId))throw new _.N(_.O,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.M.ra(d.bufferingGoal)||_.M.isNaN(d.bufferingGoal))throw new _.N(_.O,
|
|
110
|
+
7,7100,"config.streaming.bufferingGoal is not a number");if(!_.M.ra(d.rebufferingGoal)||_.M.isNaN(d.rebufferingGoal))throw new _.N(_.O,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.N(_.O,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.M.ra(d.bufferBehind)||_.M.isNaN(d.bufferBehind))throw new _.N(_.O,7,7100,"config.streaming.bufferBehind is not a number");if(!_.M.ra(d.smallGapLimit)||_.M.isNaN(d.smallGapLimit))throw new _.N(_.O,
|
|
111
|
+
7,7100,"config.streaming.smallGapLimit is not a number");if(!_.M.ra(d.durationBackoff)||_.M.isNaN(d.durationBackoff))throw new _.N(_.O,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.M.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.N(_.O,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");am(c.restrictions);am(c.abr.restrictions);c.abr.initialRestrictions&&am(c.abr.initialRestrictions)}return c};
|
|
112
|
+
Zl=function(a){a=void 0===a?Infinity:a;return{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minBandwidth:0,maxBandwidth:Infinity}};
|
|
113
|
+
am=function(a){_.M.R(a.maxPixels)&&(a.maxPixels=Infinity);_.M.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.M.R(a.maxHeight)&&(a.maxHeight=Infinity);_.M.R(a.maxWidth)&&(a.maxWidth=Infinity);_.M.R(a.minPixels)&&(a.minPixels=0);_.M.R(a.minBandwidth)&&(a.minBandwidth=0);_.M.R(a.minHeight)&&(a.minHeight=0);_.M.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
|
|
114
|
+
a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.N(_.O,7,7100,"Restrictions contain NaN");};cm=function(a){return typeof a===_.Ue&&!Array.isArray(a)&&"source"in a};
|
|
115
|
+
_.dm=function(a){_.Ul.call(this);this.log=new _.K(a);this.configuration=this.mc=_.$l();this.Z=this.C=null;this.Td=this.ig=!1;this.Cg=new _.K("clpp.video.events");this.ud=null;this.Fe=-1;this.Qi=this.cn.bind(this);this.hg=new _.Zj;this.N=new _.Sh;this.cg=this.Mc=this.$c=this.V=null};_.fm=function(a){return _.em.get(a)||null};_.hm=function(a){_.em.get(a.id())?gm.warn("Component already in use."):_.em.set(a.id(),a)};
|
|
116
|
+
im=function(a){return Array.from(_.em.values()).find(function(b){return b instanceof a})||null};jm=function(a){for(var b=_.w(_.em.values()),c=b.next();!c.done;c=b.next())a(c.value)};km=function(a){jm(function(b){b.o(a)})};lm=function(a){jm(function(b){b.h(a)})};mm=function(){jm(function(){})};nm=function(){jm(function(){})};om=function(a){if(null!==im(a))return null;a=new a;a.f();_.hm(a);gm.info("Installed component:",a.id());return a};
|
|
117
|
+
pm=function(a){if(a=im(a))a.a(),_.em["delete"](a.id()),gm.info("Uninstalled component:",a.id())};qm=function(){this.a=this.f=null;this.g=new _.K("clpp.drm.csl")};rm=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Vg]=a.f),a.a&&(b.headers[Wg]=a.a))};
|
|
118
|
+
sm=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Vg];a.a=b.headers[Wg];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.S.aa(_.xj(c))),{delay:c.renewalPeriod,Zn:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};tm=function(a){return _.S.startsWith(a,_.Ld)||_.S.startsWith(a,_.Nd)};_.vm=function(a){_.um[a.J]=a};
|
|
119
|
+
_.xm=function(a){var b={attemptParameters:_.Gj(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,eb:{},widevineVersion:_.Pd};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),b.enableSessionCacheForSkd=!!a.enableSessionCacheForSkd,void 0!==
|
|
120
|
+
a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.fg&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.um[a.env]||null;if(!c)throw _.Ih(_.za,_.Nb+a.env+_.aa),new _.N(_.O,6,6015,_.Aa+a.env+"' is missing.");b.eb=_.wm(c,a.customData)||{};_.S.startsWith(a.env.toLowerCase(),he)&&(b.enforceSingleSession=!0)}return b};
|
|
121
|
+
zm=function(a){a=ym[a];if(!a)return null;var b=_.Wj();return b.os===pl&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Am=function(a){this.J=a;this.f={}};
|
|
122
|
+
_.wm=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.f[_.Pd];g&&(c[_.Pd]={licenseUrl:g.licenseUrl,videoRobustness:Ei(d,g.videoRobustness),audioRobustness:Ei(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:Di(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:Di(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
|
|
123
|
+
serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.fg?zm(f):f});(g=a.f[_.Ld])&&(c[_.Ld]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Nd])&&(c[_.Nd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
|
|
124
|
+
return c};_.Bm=function(a,b){b=void 0===b?!1:b;this.f=_.M.ra(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.Dm=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.lj(a.f.buffer);b=_.lj(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Cm()}};_.V=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.Cm()}};_.Cm=function(){throw new _.N(_.O,3,3E3);};_.Em=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.Fm=function(a){return a.a<a.f.byteLength};
|
|
125
|
+
_.Hm=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Gm()}};_.Im=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.Gm()}};_.W=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.Gm()}};_.Jm=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.Gm()}};
|
|
126
|
+
_.Km=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.Gm()}if(2097151<c)throw new _.N(_.O,3,3001);a.a+=8;return c*Math.pow(2,32)+b};Lm=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Hm(a);return c};_.Mm=function(a,b){a.a+b>a.f.byteLength&&_.Gm();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.lj(c)};
|
|
127
|
+
_.Gm=function(){throw new _.N(_.O,3,3E3,"Buffer read out of bounds.");};_.Nm=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.K("clpp.mp4")};_.Om=function(a){for(;_.Fm(a.reader)&&!a.parser.a;)a.parser.Se(a.start+a.headerSize,a.reader,a.partialOkay)};_.Pm=function(a){for(var b=_.W(a.reader);0<b&&!a.parser.a;--b)a.parser.Se(a.start+a.headerSize,a.reader,a.partialOkay)};_.Qm=function(a){return function(b){var c=b.reader.Ma()-b.reader.getPosition();a(_.Mm(b.reader,c))}};
|
|
128
|
+
Rm=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Sm=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Tm=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Um=function(){};Vm=function(a){var b="";try{b=_.S.Ld(a)}catch(c){}return b};_.Wm=function(a){a=Vm(a);var b="";a.length&&(b=(new _.pk(a)).a);return b};
|
|
129
|
+
Xm=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.S.aa(a)),d=_.xj(c.sinf[0]);(new _.Nm).M(_.Zf,_.Om).M("schi",_.Om).M("tenc",function(e){e.reader.skip(6);_.Hm(e.reader)&&(e.reader.skip(1),b=_.zj(_.Mm(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
|
|
130
|
+
Ym=function(a,b,c){if(!c||!c.byteLength)throw new _.N(_.O,6,6102);var d;typeof b===_.fg?d=_.S.We(b,!0):d=b;a=_.S.We(Vm(a),!0);b=new _.Bm(12+a.byteLength+d.byteLength+c.byteLength,!0);_.V(b,a.byteLength);_.Dm(b,_.lj(a));_.V(b,d.byteLength);_.Dm(b,_.lj(d));_.V(b,c.byteLength);_.Dm(b,_.lj(c));return _.lj(b.buffer)};_.Zm=function(a){var b=_.lj(a.body);b=_.wj(b);a.headers[ya]=Zc;a.body=_.S.Ya("spc\x3d"+b).buffer};
|
|
131
|
+
_.$m=function(a){try{var b=_.S.aa(a.data)}catch(d){return}b=b.trim();"\x3cckc\x3e"===b.substr(0,5)&&"\x3c/ckc\x3e"===b.substr(-6)&&(b=b.slice(5,-6));try{var c=JSON.parse(b);c.ckc&&(b=c.ckc);c.CkcMessage&&(b=c.CkcMessage);c.License&&(b=c.License)}catch(d){}a.data=tj(_.xj(b))};
|
|
132
|
+
en=function(){var a=an;if(a===bn)return"https://lic.drmtoday.com";if(a===cn)return"https://lic.staging.drmtoday.com";if(a===dn)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};jn=function(a){var b=en();if(a===_.Pd)return b+fn;if(a===_.Nd)return b+gn;if(a===_.Ld)return b+hn;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
|
|
133
|
+
kn=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
|
|
134
|
+
_.mn=function(a,b,c){b=Vm(b);c=c&&c.customData?c.customData:{};b=new _.pk(kn(b));var d=_.sk(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.S.Me(""+a)&&(d.assetId=a,ln.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.S.Me(""+e)&&(d.variantId=e,ln.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],ln.debug("KeyId found in FPS SKD. Removing other parameters")):
|
|
135
|
+
a=["assetId","variantId"];b.f=_.rk(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.qk(b);return c.fpsContentId=b};_.qn=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Ea)?c.customData&&(_.pn(b,a),a=b.uris[0],d&&c.customData.assetId&&(a+="?assetId\x3d"+encodeURI(""+c.customData.assetId),c.customData.variantId&&(a+="\x26variantId\x3d"+encodeURI(""+c.customData.variantId)),b.uris[0]=a)):ln.warn(yb)};
|
|
136
|
+
rn=function(a,b,c){_.qn(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Fi(b.uris[0]);c.a.add(_.ef,a);b.uris[0]=c.toString()};
|
|
137
|
+
_.sn=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.qn(a,b,c,!1);b.headers[ya]=Zc;c={spc:_.vj(b.body)};if((a=a.drm)&&a.env.startsWith(Fa)&&d){a={};var e=_.sk((new _.pk(kn(d))).f);d=e.keyId;if(e=e.assetId)ln.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(ln.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(ln.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(ln.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
|
|
138
|
+
_.S.nd(_.rk(c,!0))};_.tn=function(a,b){ln.debug("Clearing response data");if(200===b.status){var c=_.S.aa(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.xj(c).buffer}};_.un=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ea))ln.warn(yb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Fa)){var d=new _.Fi(b.uris[0]),e=d.Ga;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Ga=e;b.uris[0]=d.toString()}};
|
|
139
|
+
_.vn=function(a,b){try{var c=_.lj(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));ln.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){ln.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
|
|
140
|
+
_.pn=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.M.wc(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};xn=function(a){var b={},c=a?a[Xg]:void 0;a=wn[a?a[Xg]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};yn=function(){};
|
|
141
|
+
An=function(a,b){b=void 0===b?0:b;_.Hh("Registering EME Factory: "+a.a());for(var c={priority:b,Aa:a},d=0;d<zn.length;++d)if(zn[d].priority<b){zn.splice(d,0,c);return}zn.push(c)};
|
|
142
|
+
Bn=function(a){if(a){var b=zn.find(function(d){return d.Aa.a()===a}).Aa;if(b&&b.f())return _.Hh(pc+b.a()),b.create();_.Hh("Cannot create selected EME manager. Choosing by priority list.")}b=_.w(zn);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Aa,c.f())return _.Hh(pc+c.a()),c.create();throw Error("Missing EME managers");};_.Dn=function(a,b){var c=_.Cn(a,b);return 1!==c.length?null:c[0]};
|
|
143
|
+
_.Cn=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName===b})};_.En=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};
|
|
144
|
+
_.Fn=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.mg)}catch(f){}e&&e.documentElement.tagName===b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};Gn=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Hn=function(){Gn.apply(this,arguments)};_.Jn=function(a){var b=_.yj(a);b=parseInt(b.byteLength,10).toString(16);b=_.yj("12"+b+a);return new Hn(In,a,b)};
|
|
145
|
+
_.Kn=function(a){function b(t){switch(t){case 0:do if(!_.Fm(d))throw Error("not enough data to skip!");while(_.Hm(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.Hm(d),v=(t&127)>>>0,z=7;128<=t&&28>=z;)t=_.Hm(d),v=(v|(t&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.Em(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.W(d);var e=_.W(d);e=
|
|
146
|
+
_.Sm(e);var f=_.W(d),g=f>>>24;f&=16777215;var h=_.Mm(d,16);h=_.zj(h);if(0<g){var l=_.W(d);d.skip(16*l)}l=_.W(d);for(var m=[],n=null;_.Fm(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=Lm(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Ih("Parsed WV PSSH Box","size",a,"name",e,Cg,g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.vj(n):"","keyIds",m.map(function(t){return _.zj(t)}));return 0<m.length?_.Jn(_.zj(m[0])):null};
|
|
147
|
+
_.Ln=function(a,b,c,d,e,f){f=void 0===f?null:f;Gn.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
|
|
148
|
+
_.Qn=function(a){a:{var b=new _.Em(new DataView(a.buffer),!0);_.W(b);for(_.Im(b);_.Fm(b);)if(1===_.Im(b)){var c=_.Im(b);b=_.Mm(b,c);break a}b=null}b||(b=a);a=_.S.tc(b,!0);c=_.Fn(a,"WRMHEADER");a=c.getAttribute(Cg);var d=_.Dn(c,"DATA");c=(c=_.Dn(d,"LA_URL"))?_.En(c):"";var e;if(e=_.Dn(d,"KID"))if(e=_.En(e)){var f=_.Dn(d,qa);e={value:e,vf:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=Mn(d))?[e]:(d=Nn(d))?d:null;e=d&&d[0]||{};d=e.vf;e=_.xj(void 0===e.value?"":e.value);e=_.On(e);e=_.zj(e);
|
|
149
|
+
return new _.Ln(_.Pn,e,c,b,a,d)};_.On=function(a){var b=[];b.push(a[3]);b.push(a[2]);b.push(a[1]);b.push(a[0]);b.push(a[5]);b.push(a[4]);b.push(a[7]);b.push(a[6]);a=_.lj(a);a.set(b,0);return a};Mn=function(a){a=_.Dn(a,"PROTECTINFO");if(!a)return null;var b=_.Dn(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(qa);b=b.getAttribute("ALGID");return{value:a,vf:c,dj:b}};
|
|
150
|
+
Nn=function(a){a=_.Dn(a,"PROTECTINFO");if(!a)return null;a=_.Dn(a,"KIDS");if(!a)return null;var b=_.Cn(a,"KID");if(!b.length)return null;a=[];b=_.w(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(qa);d=d.getAttribute("ALGID");a.push({value:c,vf:e,dj:d})}}return a.length?a:null};_.Sn=function(a){Rn&&performance.mark(a)};_.Tn=function(a,b,c){Rn&&performance.measure(a,b,c)};
|
|
151
|
+
Un=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.Nm).Y("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Dh("No pssh box found!")};
|
|
152
|
+
_.Yn=function(a){var b=this;this.D=a;this.J=new Set;this.B=this.I=this.l=null;this.$=!1;this.a=null;this.K=Vn;this.A=new _.Sh;this.N=new qm;this.f=new Map;this.L=[];this.H=new _.Oj;this.h=null;this.S=function(c){b.w=!0;b.C=!1;b.H.reject(c);a.onError(c)};this.o=new Map;this.fa=new Map;this.ba=new _.Vk(function(){return Wn(b)});this.j=!1;this.ta=new _.Oj;this.G=!1;this.ca=[];this.Fa=!1;this.V=0;this.g=new _.K("clpp.drm.DrmEngine");this.ga=(new _.Vk(function(){Xn(b)})).xb(1);this.H["catch"](function(){});
|
|
153
|
+
this.w=this.C=!1;this.P=null};
|
|
154
|
+
$n=function(a){var b,c,d,e,f;return _.I(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.N.release();a.N=null;a.w=!1;a.C=!1;a.H.reject();a.ga.stop();a.ga=null;a.ba.stop();a.ba=null;b=Array.from(a.f.keys());c=_.w(a.f.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Yc&&e.Yc.stop();a.f.clear();return _.y(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.D(m,2),_.y(m,Zn(h),4);
|
|
155
|
+
if(2!=m.a)return _.oh(m,0);l=_.F(m);a.g.warn("Error while closing session",l);_.A(m)})})})),2);case 2:if(!a.B){g.F(3);break}_.D(g,4);return _.y(g,a.l.xd(null),6);case 6:_.oh(g,5);break;case 4:f=_.F(g),a.g.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.l=null,a.a=null,a.J.clear(),a.I=null,a.L=[],a.h=null,a.S=null,a.D=null,a.V=0,a.P=null,_.A(g)}})};
|
|
156
|
+
_.co=function(a,b,c){c=void 0===c?[]:c;a.K=ao;a.L=c;a.G=0<c.length;a.g.debug("Using Persisted Licenses: "+a.G);a.h&&a.h.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.bo(a,b)};
|
|
157
|
+
_.bo=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.M.Dg(a.h.eb);eo(b,d)}var e=fo(a);if(e){var f=_.w(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.w(b);for(d=e.next();!d.done;d=e.next())for(d=_.w(d.value.drmInfos),f=d.next();!f.done;f=d.next())go(f.value,a.h.eb);d=ho(a,b);if(!d.size)return a.$=!0,Promise.resolve();_.Sn(Zd);d=_.io(a,d);return(c?d:d["catch"](function(){})).then(function(){_.Sn(Yd);_.Tn("DRM queryMediaKeys_()",Zd,Yd)})};
|
|
158
|
+
jo=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.Ce())return c["return"]();if(!a.P){c.F(2);break}return _.y(c,a.P,3);case 3:return c["return"]();case 2:return _.D(c,4),a.P=a.l.xd(a.I),_.y(c,a.P,6);case 6:_.oh(c,0);break;case 4:b=_.F(c);if(a.j)return c["return"]();a.S(new _.N(_.O,6,6003,b.message,b));_.A(c)}})};
|
|
159
|
+
ro=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.y(c,jo(a),2);if(!b.initData)return c["return"]();_.qo(a,b.initDataType,_.lj(b.initData));_.A(c)})};
|
|
160
|
+
_.wo=function(a,b){if(!a.I)return _.Th(a.A,b,[ke,"msneedkey",Tg,"needkey"],function(){a.S(new _.N(_.O,6,6010))}),Promise.resolve();a.B=b;a.l.se(b);a.A.one(a.B,_.hf,function(){return so(a)});a.A.on(a.B,_.Og,function(e){var f=a.C;a.C=!a.w;!f&&a.C&&(a.g.info("Waiting for DRM license key delivery"),a.D.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.l.wd()!==Sb||a.L.length)d=jo(a);c=Promise.resolve();_.Vj()&&38===_.Zk().major||(a.a&&a.a.keySystem!==
|
|
161
|
+
_.bf&&!a.a.serverCertificate&&(c=to(a)),c=c.then(function(){return _.uo(a)}));return Promise.all([d,c]).then(function(){a.j||(_.vo(a),a.A.on(a.B,ke,function(e){return ro(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Pd&&1>a.V&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.S(new _.N(1,6,6004)),a.a.serverCertificate=null,a.V++,_.wo(a,b);1<=a.V&&a.g.info("Could not get valid widevine server certificate. Giving up");
|
|
162
|
+
throw e;}})};_.uo=function(a){var b,c;return _.I(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.F(0);_.D(d,3);return _.y(d,a.I.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.oh(d,0);c=_.F(d);throw new _.N(_.O,6,6004,{browserError:c.message});})};
|
|
163
|
+
to=function(a){var b=a.keySystem(),c=a.h.eb[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.D.getConfiguration();return xo(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Jj([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=ud;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.D.Jb.fetch(f).U}).then(function(f){a.a.serverCertificate=
|
|
164
|
+
_.lj(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},xn(g));throw new _.N(_.O,6,6100,g,f);})};xo=function(a,b){var c,d;return _.I(function(e){c=a.D.cd();return c?(d=b&&b.drm&&b.drm.customData)?_.y(e,c(d),0):e["return"]():e["return"]()})};yo=function(a,b){if(!a)return!1;for(var c=0;c<b.ye.length;c++)if(_.Aj(a,b.ye[c]))return!0;return!1};
|
|
165
|
+
_.vo=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.w(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.Uj(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Ld)){var f=a.f.values();f=_.w(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Aj(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
|
|
166
|
+
".")),yo(d.initData,g)||(g.ye.push(d.initData),d.keyId&&!g.hb.includes(d.keyId)&&g.hb.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,dg)),e=!1)}!e||a.G&&a.K===ao||(_.zo(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Ao(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.w(a.L);for(d=c.next();!d.done;d=c.next())_.Bo(a,d.value);b.length||a.L.length||(a.w||a.g.info(Ba),a.w=!0,a.C=!1,a.H.resolve());return a.H};
|
|
167
|
+
_.qo=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.G||a.K!==ao)){var e=a.keySystem();if(!e.startsWith(_.Ld)&&b===_.sd){var f=new Un(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
|
|
168
|
+
_.Uj(2)||a.keySystem().startsWith(_.Ld)||!_.zo(a,d,c,!0))&&Ao(a,d,null,b,c)}};
|
|
169
|
+
_.zo=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.w(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.Aj(c,g.initData))return b?g.hb.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.hb.push(b),a.o.get(b)||a.o.set(b,dg),d&&a.g.info(Zb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Zb+(f.sessionId+"'")),!0;if(yo(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
|
|
170
|
+
!0}return!1};Co=function(a){var b=Infinity;a=a.f.keys();a=_.w(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
|
|
171
|
+
ho=function(a,b){for(var c=new Set,d=_.w(b),e=d.next();!e.done;e=d.next()){var f=_.w(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())e=e.value,go(e,a.h.eb),c.add(e)}f=a.G?_.Nf:_.af;var g=a.G?[_.ff]:[kg];d=new Map;c=_.w(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.sd],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.af,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.w(b);for(e=f.next();!e.done;c={$e:c.$e,od:c.od,lf:c.lf,
|
|
172
|
+
pd:c.pd},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.$e=g?_.Do(g):"";c.od=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.Uj()&&(c.od=_.Do(g,_.je));c.lf=h?_.Do(h):"";c.pd=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.Uj()&&(c.pd=_.Do(h,_.je));var l={},m=_.w(e.drmInfos);for(e=m.next();!e.done;l={Za:l.Za},e=m.next())e=e.value,l.Za=d.get(e.keySystem),l.Za.drmInfos.push(e),e.initData&&e.initData.length&&(l.Za.initDataTypes=_.ah(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&
|
|
173
|
+
(l.Za.distinctiveIdentifier=_.Nf),e.persistentStateRequired&&(l.Za.persistentState=_.Nf),g&&_.hi(e.audioRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.$e};p.Za.audioCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.Za.audioCapabilities.push(t);n.od&&p.Za.audioCapabilities.push({robustness:q||"",contentType:n.od})}}(c,l)),h&&_.hi(e.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||
|
|
174
|
+
"",contentType:n.lf};p.Za.videoCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.Za.videoCapabilities.push(t);n.pd&&p.Za.videoCapabilities.push({robustness:q||"",contentType:n.pd})}}(c,l))}return d};_.Do=function(a,b){var c=_.Qk(a.mimeType,b||a.codecs);if(_.Pk(c,a.type)){var d=a.type,e=_.Pk(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
|
|
175
|
+
_.io=function(a,b){function c(m,n,p){n.drmInfos.some(function(q){return!!q.licenseServerUri})===m&&(f=f["catch"](function(){if(a.j)return null;if(p===_.Nd){if(_.Xk()&&!a.h.eb[p].useLegacySystem)return n.label=Od,a.l.Nb(Od,[n])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");n.label=_.Nd;Eo(n);return a.l.Nb(p,[n])});Eo(n)}if(p===_.Pd&&a.h.widevineVersion!==_.Pd){var q=a.h.widevineVersion;if(!q.startsWith(_.Pd))return a.g.error('Invalid "widevineVersion" value "'+
|
|
176
|
+
q+'".'),Promise.reject();var t=Object.assign({},n,{label:q,distinctiveIdentifier:_.af,persistentState:_.af});return a.l.Nb(q,[t])["catch"](function(){return a.l.Nb(p,[n])})}return a.l.Nb(p,[n])["catch"](function(v){a:{if(p===_.Pd&&Fo(n)){var z=_.Wj();if(Fo(n)&&z.os===pl&&z.browser===wd){a.g.warn("requestMediaKeySystemAccess() failed",v);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");Eo(n);v=a.l.Nb(p,[n]);break a}}throw v;}return v})}))}
|
|
177
|
+
if(1===b.size&&b.has(""))return Promise.reject(new _.N(_.O,6,6E3));null===a.l&&(a.l=Bn(a.h.emeApi));for(var d=_.w(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;var f=d=new _.Oj,g=a.h.preferredDrmSystem;if(!g)if(e=_.Wj(),e.os===rl&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Nd;else if("safari"===e.browser)g=_.Ld;else if(e.browser===wd||"firefox"===e.browser)g=_.Pd;g&&(e=b.get(g))&&
|
|
178
|
+
(c(!0,e,g),c(!1,e,g));e={};for(var h=_.w([!0,!1]),l=h.next();!l.done;e={jf:e.jf},l=h.next())e.jf=l.value,b.forEach(function(m){return function(n,p){p!==g&&c(m.jf,n,p)}}(e));f=f["catch"](function(){throw new _.N(_.O,6,6001,"Failed to get MediaKeySystemAccess.");});f=f.then(function(m){if(a.j)return null;a.J.clear();var n=m.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",n);var p=n.videoCapabilities||[],q=_.w(n.audioCapabilities||[]);for(n=q.next();!n.done;n=q.next())a.J.add(n.value.contentType.toLowerCase());
|
|
179
|
+
p=_.w(p);for(n=p.next();!n.done;n=p.next())a.J.add(n.value.contentType.toLowerCase());p=m.keySystem;n=b.get(_.Go(m.keySystem));q=[];var t=[],v=[],z=[];Ho(n.drmInfos,q,t,v,z);1<t.length&&_.Dh("Multiple unique server certificates found! Only the first will be used.");1<q.length&&_.Dh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier===_.Nf,persistentStateRequired:n.persistentState===
|
|
180
|
+
_.Nf,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:t[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.N(_.O,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.I=m,a.$=!0)})["catch"](function(m){if(!a.j){a.a=null;a.J.clear();if(m instanceof _.N)throw m;throw new _.N(_.O,6,6002,
|
|
181
|
+
{browserError:m.message});}});d.reject();return f};
|
|
182
|
+
fo=function(a){a=_.M.Dg(a.h.eb[_.bf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.yj(f),h=_.yj(e);g={kty:"oct",kid:_.wj(g,!1),k:_.wj(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.S.Ya(d),initDataType:"keyids"}];return{keySystem:_.bf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
|
|
181
183
|
initData:d,keyIds:[],periodId:null}};
|
|
182
|
-
_.
|
|
183
|
-
b,f);if(!f)return a.f["delete"](c),a.
|
|
184
|
-
|
|
185
|
-
initData:e}),a.h.ignoreUnrecognizedInitData)return
|
|
186
|
-
break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),
|
|
187
|
-
C.
|
|
188
|
-
drmSystemConfig:
|
|
189
|
-
Da))}});_.A(
|
|
190
|
-
|
|
191
|
-
_.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
a.h.attemptParameters);h.type=3;h.body=b.message;h.method=
|
|
196
|
-
var p=Date.now()-m,q=
|
|
197
|
-
expirationTime:z,expectedRenewalTime:C});a.
|
|
198
|
-
a.N&&(a.g.info("Updating CSL Sessions"),
|
|
199
|
-
d.
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
_.
|
|
204
|
-
_.
|
|
205
|
-
distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:h,keyIds:e.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
d.some(function(m){return function(n){var p=m.
|
|
211
|
-
|
|
212
|
-
d.serverCertificate||null)))}};
|
|
213
|
-
_
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
_.
|
|
224
|
-
|
|
225
|
-
Cp
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
HTMLMediaElement))throw new _.
|
|
241
|
-
c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.w(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.
|
|
242
|
-
(this.a.set(e),
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
vq
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
Sq=function(a
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
Zq
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
_.
|
|
288
|
-
|
|
289
|
-
Fr=function(a){
|
|
290
|
-
Gr=function(a){var b;return _.
|
|
291
|
-
|
|
292
|
-
(a
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
Tr=function(a
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
{
|
|
318
|
-
|
|
319
|
-
ts=function(a,b){
|
|
320
|
-
|
|
321
|
-
}return _.
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
(d.
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
if(
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
_.
|
|
378
|
-
_.
|
|
379
|
-
|
|
380
|
-
_.
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
_.
|
|
389
|
-
|
|
390
|
-
_.
|
|
391
|
-
_.
|
|
184
|
+
_.Bo=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.ff)}catch(f){var d=new _.N(_.O,6,6005,{browserError:f.message});a.S(d);return Promise.reject(d)}a.A.on(c,_.Me,a.li.bind(a));a.A.on(c,xe,a.gi.bind(a));var e={initData:null,loaded:!1,Sf:Infinity,Lb:null,Pa:new _.Oj,periodId:null,ye:[],keyId:null,hb:[],initDataType:null,rc:null,sessionContext:{ldlDelay:0,customData:{}}};e.Pa["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
|
|
185
|
+
b,f);if(!f)return a.f["delete"](c),a.S(new _.N(_.O,6,6013)),null;e.loaded=!0;Io(a)&&(a.w||a.g.info(Ba),a.w=!0,a.C=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.S(new _.N(_.O,6,6005,{browserError:f.message})))})};Jo=function(a,b,c,d){if(!b&&c!==_.Zf)return!1;d=b||Xm(d);a=_.w(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.hb.includes(b)||c===_.Zf&&(e.keyId||Xm(e.initData))===d)return!0;return!1};
|
|
186
|
+
Ao=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,t,v,z,C,H,E,B,G,Q,R,oa,da,Ca,bb,cb;_.I(function(Ta){switch(Ta.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Ta["return"]();h=b;if(!h)try{h=Ko(a,d,e,f)}catch(Da){if(a.g.warn("Ignoring unrecognized init data. This may be caused by unsupported or malformed init data. Set `drm.ignoreUnrecognizedInitData \x3d false` if you want to override this behavior and use the init data after all.",{error:Da,initDataType:d,
|
|
187
|
+
initData:e}),a.h.ignoreUnrecognizedInitData)return Ta["return"]()}if(g){Ta.F(2);break}if(!Jo(a,h,d,e)){Ta.F(2);break}l=!0;if("skd"!==d||a.h.enableSessionCacheForSkd){Ta.F(4);break}m=_.w(a.f.keys());n=m.next();case 5:if(n.done){Ta.F(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){Ta.F(6);break}a.g.warn("Close and re-open session for "+h);_.D(Ta,9);return _.y(Ta,p.close(),11);case 11:_.oh(Ta,10);break;case 9:t=_.F(Ta),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();Ta.F(5);
|
|
188
|
+
break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Ta["return"]();case 2:try{z=a.G?_.ff:kg,v=a.I.createSession(z),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Da){return a.S(new _.N(_.O,6,6005,{browserError:Da.message})),Ta["return"]()}a.A.on(v,_.Me,a.li.bind(a));a.A.on(v,xe,a.gi.bind(a));C={rc:f,ye:[],initData:e,initDataType:d,keyId:h,hb:h?[h]:[],loaded:!1,Sf:Infinity,periodId:c,Lb:null,Pa:new _.Oj,sessionContext:{ldlDelay:0,customData:{}}};
|
|
189
|
+
C.Pa["catch"](function(){});f&&(H=a.f.get(f),C.sessionContext=H.sessionContext);a.f.set(v,C);h&&!a.o.get(h)&&a.o.set(h,dg);if(e)for(E=0;E<a.a.initData.length;E++)B=a.a.initData[E],B.keyId&&!C.hb.includes(B.keyId)&&_.Aj(B.initData,e)&&(C.keyId||(C.keyId=B.keyId),C.hb.push(B.keyId),a.o.get(B.keyId)||a.o.set(B.keyId,dg));G=_.M;Q=G.Ib;R=a.D.getConfiguration();oa=a.keySystem();da=a.h.eb[oa];bb=(Ca=da.modifiers)&&Ca.transformInitData;Q(bb)||(bb=Lo);try{e=bb({playerConfig:R,initData:e,initDataType:d,drmInfo:a.a,
|
|
190
|
+
drmSystemConfig:da,sessionContext:C.sessionContext,emeApi:a.l.wd()})}catch(Da){return cb=Da,Da instanceof _.N||(cb=new _.N(_.O,6,6016,Da)),C.Pa&&C.Pa.reject(Da),a.S(cb),Ta["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(Da){if(!a.j){var fb=null;Da.errorCode&&Da.errorCode.systemCode&&(fb=Da.errorCode.systemCode,0>fb&&(fb+=Math.pow(2,32)),fb="0x"+fb.toString(16));a.S(new _.N(_.O,6,6006,{browserError:Da.message,error:Da,extended:fb},
|
|
191
|
+
Da))}});_.A(Ta)}})};
|
|
192
|
+
Ko=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.h.eb[f];f=a.D.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.M.Ib(g)||(g=Mo);try{var h={ldlDelay:0,customData:{}};e&&(h=a.f.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(E){a.g.warn("Unable to extract Content ID from SKD",E)}m=""}return m}if(b===_.Zf)return Xm(c)||"";if(b===_.sd){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
|
|
193
|
+
_.Kn(c);if(n)return n.a}else if(No(m)){e=new _.Em(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.W(e);var p=_.W(e);g=_.Sm(p);var q=_.W(e);c=q>>>24;l=q&16777215;h=_.Mm(e,16);var t=_.zj(h);if(0<c){var v=_.W(e);e.skip(16*v)}var z=_.W(e),C=_.Mm(e,z),H=_.Qn(C);_.Ih("Parsed PR PSSH Box","size",f,"name",g,Cg,c,"flags",l,"size",z,"systemId",t,"keyId",H.a);if(H)return H.a}}catch(E){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:E,keySystem:m}),E;}}return""};
|
|
194
|
+
Mo=function(a,b){var c=_.Wm(b);_.Ih("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
|
|
195
|
+
Lo=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=_.M.Ib;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Mo);a="";try{a=e(b,c,f)}catch(h){throw new _.N(_.O,6,6103);}if(!a.length)throw new _.N(_.O,6,6101,"Content ID is an empty string");c=Ym(c,a,d)}return c};
|
|
196
|
+
Ro=function(a,b){var c=b.target,d=a.f.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.g.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.g.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.h.eb[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Jj([g],
|
|
197
|
+
a.h.attemptParameters);h.type=3;h.body=b.message;h.method=_.Ib;h.licenseRequestType=b.messageType===Ae&&d.rc?ze:f?ud:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===ze)a.D.onEvent(new _.L(ee));No(a.a.keySystem)&&Oo(a,h);rm(a.N,h);var l=Math.floor(b.timeStamp),m=Date.now();return Po(a,h,d.sessionContext).then(function(){_.Sn(Xd+l+ha);a.g.debug("Sending DRM license request to",g,h);return a.D.Jb.fetch(h).U}).then(function(n){_.Sn(Xd+l+".end");_.Tn(Xd+l,Xd+l+ha,Xd+l+".end");if(a.j)return Promise.reject();
|
|
198
|
+
var p=Date.now()-m,q=Qo(a,n),t="";q&&(t=" RID:"+q);q=n&&n.data?n.data.byteLength:-1;f?a.g.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(q+" bytes in ")+(p+"ms"+t)):a.g.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(q+" bytes in ")+(p+"ms"+t));var v=sm(a.N,n);_.Sn(be+l+ha);return c.update(n.data).then(function(){_.Sn(be+l+".end");_.Tn(be+l,be+l+ha,be+l+".end");if(!f){var z=Co(a),C=v?Date.now()+1E3*v.delay:Number.NaN;z=new _.L(_.ge,{keySystem:a.keySystem(),
|
|
199
|
+
expirationTime:z,expectedRenewalTime:C});a.D.onEvent(z);d&&(d.Lb&&d.Lb.resolve(),d.rc&&(z=d.rc,a.g.info("Closing expired session '"+z.sessionId+"'"),Zn(z)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(z=a.f.get(d.rc))&&z.Yc&&z.Yc.stop(),a.f["delete"](d.rc),d.rc=null),(new _.Vk(function(){a.j||(d.loaded=!0,d.Pa&&d.Pa.resolve(),Io(a)&&(a.w||a.g.info(Ba),a.w=!0,a.C=!1,a.H.resolve()))})).ea(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||v&&tm(a.keySystem()))&&(z=new _.Vk(function(){!a.j&&
|
|
200
|
+
a.N&&(a.g.info("Updating CSL Sessions"),No(a.keySystem())?Ao(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Ld)&&c.update(_.S.Ya("renew")))}),d.Yc=z,z.ea(v?v.delay:d.sessionContext.ldlDelay)))}})},function(n){var p,q,t,v;return _.I(function(z){if(a.j)return z["return"]();p=n.data.headers;q=xn(p);t=Object.assign({message:_.$a,url:n.data.url,status:n.data.status,response:n.data.response},p?{headers:p}:{},q);v=new _.N(_.O,6,6007,t,n);a.S(v);d&&d.Lb&&d.Lb.reject(v);d&&
|
|
201
|
+
d.Pa&&d.Pa.reject(v);_.A(z)})})["catch"](function(n){a.j||(n===Wb?a.g.info("Ignore update for closed sessions"):(n=new _.N(_.O,6,6008,{browserError:n.message}),a.S(n),d&&d.Lb&&d.Lb.reject(n),d&&d.Pa&&d.Pa.reject(n)))})};Qo=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.S.aa(_.xj(c))).ti}catch(d){a.g.warn("Unable to parse DRMtoday Request ID",d)}return""};
|
|
202
|
+
Oo=function(a,b){var c=_.S.tc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.zg).textContent;b.body=_.xj(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[ya]="text/xml; charset\x3dutf-8"};
|
|
203
|
+
Po=function(a,b,c){var d,e,f,g,h,l;return _.I(function(m){if(1==m.a)return d=a.D.getConfiguration(),_.y(m,xo(a,d),2);e=a.keySystem();h=(g=(f=a.h.eb[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Ld)&&b.requestModifiers.push(function(n){return _.Zm(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Ld)&&b.responseModifiers.push(function(n){return _.$m(n)});_.A(m)})};
|
|
204
|
+
Wn=function(a){var b=a.o,c=a.fa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"===d})&&a.S(new _.N(_.O,6,6014));a.D.Xf(_.M.Eg(c));a.w||a.g.info(Ba);a.w=!0;a.C=!1};so=function(a){var b;return _.I(function(c){if(1==c.a)return _.Sn(ae),b=a.ca.map(function(d){return Ro(a,d)}),a.Fa=!0,a.ca=[],_.y(c,Promise.all(b),2);_.Sn($d);_.Tn("drm.onPlay",ae,$d);_.A(c)})};No=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
|
|
205
|
+
_.Go=function(a){return No(a)?_.Nd:a};_.To=function(a,b){return a.length&&b.length?0<_.So(a,b).length:!0};
|
|
206
|
+
_.So=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={qd:e.qd},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var h=[];h=h.concat(g.initData||[]);h=h.concat(f.initData||[]);e.qd=_.ah(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.qd.includes(m)||l.qd.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
|
|
207
|
+
distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:h,keyIds:e.qd,periodId:g.periodId});break}return c};
|
|
208
|
+
Xn=function(a){a.f.forEach(function(b,c){var d=b.Sf,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.D.Wf(c.sessionId,e),b.Sf=e)})};Io=function(a){a=a.f.values();return _.ij(a,function(b){return b.loaded})};
|
|
209
|
+
eo=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.w(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};Eo=function(a){for(var b=_.w(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.w(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
|
|
210
|
+
Fo=function(a){return(a.audioCapabilities||[]).some(Uo)||(a.videoCapabilities||[]).some(Uo)};Uo=function(a){return null!=a.robustness&&""!==a.robustness};
|
|
211
|
+
Ho=function(a,b,c,d,e){var f={};a=_.w(a);for(var g=a.next();!g.done;f={Ea:f.Ea},g=a.next()){f.Ea=g.value;b.includes(f.Ea.licenseServerUri)||b.push(f.Ea.licenseServerUri);f.Ea.serverCertificate&&(c.some(function(m){return function(n){return _.Aj(n,m.Ea.serverCertificate)}}(f))||c.push(f.Ea.serverCertificate));if(f.Ea.initData){var h=_.w(f.Ea.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.Ea.periodId;h={};var l=_.w(f.Ea.initData);for(g=l.next();!g.done;h={he:h.he},g=l.next())h.he=g.value,
|
|
212
|
+
d.some(function(m){return function(n){var p=m.he;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.he)}if(f.Ea.keyIds)for(g=0;g<f.Ea.keyIds.length;++g)e.includes(f.Ea.keyIds[g])||e.push(f.Ea.keyIds[g])}};
|
|
213
|
+
go=function(a,b){if(a.keySystem){var c=_.Go(a.keySystem),d=b[c];c===_.bf&&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=
|
|
214
|
+
d.serverCertificate||null)))}};Zn=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Vk(e)).ea(1)}),_.y(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Dh("Timeout waiting for session close");_.A(d)})};_.Xo=function(a,b){a&&b&&(_.Vo.set(a,b),_.Wo.info("Registered TextDisplayerFactory: '"+a+"'"))};
|
|
215
|
+
_.Yo=function(a,b){var c=b.find(function(d){return(d=_.Vo.get(d))?d.a(a):!1});if(null==c)return _.Wo.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.Wo.info("Chosen the text displayer: "+c);return _.Vo.get(c)};Zo=function(){this.a=null;this.f=[]};_.$o=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})}};
|
|
216
|
+
ap=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.w(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};bp=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.w(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};cp=function(){this.h=this.f=this.j=null;this.a=[]};dp=function(a){return a.a.map(function(b){return _.M.$a(b)})};
|
|
217
|
+
_.ep=function(){this.f=this.o=this.A=this.C=this.j=this.l=this.h=this.w=NaN;this.a=new Zo;this.B=new cp};_.fp=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:[]}};_.gp=function(a){this.f=a;this.a=void 0};ip=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=hp.value().get(b),c.one(a,b,d))};
|
|
218
|
+
mp=function(a){this.g=new _.K("clpp.StateManager");this.m=a;this.a=new _.Sh;this.f=_.jp;this.A=_.kp;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.h=this.G=!1;this.H=0;this.l=null;this.K=0;this.N=_.bl();this.C=!1;this.J=Date.now();lp(this)};np=function(a,b){return Object.keys(b)[a]};
|
|
219
|
+
pp=function(a,b){var c={type:_.cg};b===_.ld||b===_.kd?(c.reason=a.w,b===_.ld?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.op&&(c.reason=a.w),a.A===_.op&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
|
|
220
|
+
tp=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.op;a.A=a.f;a.f=b;a.A===_.qp&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.op?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+np(a.w-1,_.rp)),c=pp(a,_.ld),a.fb(_.ld,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+np(a.w-1,_.rp)+". Buffering time: "+a.B+" ms"),c=pp(a,_.kd),a.fb(_.kd,c));c=np(a.A,_.sp);d=np(a.f,_.sp);a.g.info(_.Mb+c+" -\x3e "+d);a.fb(_.cg,pp(a,""));return!0};
|
|
221
|
+
yp=function(a,b){if(a.f===_.up)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m?a.m.isEnded():!1;if(d)a.h||(a.j=!1,tp(a,_.qp));else if(b!==_.og){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().za(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.K=a.m.getPlaybackRate()||1;e=typeof a.l===_.k&&2>a.l&&2===e.networkState;var f=typeof a.l===_.k&&0>=a.H&&a.f===_.jp,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||
|
|
222
|
+
f||e||g;!a.N||a.m.isLive()||a.f!==_.op||e||(f=b===_.Uf&&4===a.l,(g=a.A===_.vp)&&!a.C?e=!0:g||a.C||f||(e=!0));f=!1;e?f=tp(a,_.op):c?f=tp(a,_.wp):a.G&&(f=tp(a,_.xp));f&&(a.C=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.l+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+np(a.f,_.sp))}}};
|
|
223
|
+
lp=function(a){function b(d){return yp(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.me,function(){a.h||(a.j=!1,tp(a,_.qp))});a.a.on(c,md,b);a.a.on(c,_.tf,function(){a.G=!0;a.j=!1;yp(a,_.tf)});a.a.on(c,_.df,function(){a.G=!1;a.j=!1;yp(a,_.df)});a.a.on(c,_.og,b);a.a.on(c,_.Jf,b);a.a.on(c,_.Uf,function(d){a.h=!1;a.j=!1;yp(a,d.type)});a.a.on(c,_.Vf,function(d){a.h=!0;yp(a,d.type)});a.a.on(c,ag,b);a.a.on(c,_.Ng,function(){a.j=!0;yp(a,_.Ng)});a.a.on(c,
|
|
224
|
+
_.ne,function(d){return a.S(d)});a.a.on(c,_.He,b);a.a.on(c,nd,function(){a.C=!0;yp(a,nd)});a.a.on(c,_.yg,function(d){a.h=!0;yp(a,d.type)});a.a.on(c,_.xg,function(d){a.h=!1;a.j=!1;yp(a,d.type)})};zp=function(a){a=(new _.Fi(a)).Ga;if(!a)return null;a=a.toUpperCase();return _.S.endsWith(a,".MPD")?_.Tc:_.S.endsWith(a,".M3U8")?_.El:_.S.endsWith(a,".MP4")?_.Hg:_.S.endsWith(a,"MANIFEST")||_.S.endsWith(a,".ISM")?_.Yc:null};
|
|
225
|
+
_.Bp=function(a){var b;cm(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.fg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Ap(b[c]);d&&a.push(d)}return a};
|
|
226
|
+
Ap=function(a){var b=null;_.M.da(a)&&(a={url:a});typeof a===_.Ue&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.M.R(a.drmProtected)||typeof a.drmProtected!==_.jd||(b.drmProtected=a.drmProtected),_.M.R(a.isLive)||typeof a.isLive!==_.jd||(b.isLive=a.isLive),_.M.R(a.name)||typeof a.name!==_.fg||(b.name=a.name),_.M.R(a.Yb)||typeof a.Yb!==_.fg||(b.Yb=a.Yb),_.M.R(a.audioMimeType)||typeof a.audioMimeType!==_.fg||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=zp(a.url),b.type?
|
|
227
|
+
Cp.debug("Detect media type "+b.type+" for "+a.url):Cp.warn("Unable to detect media type for "+a.url));return b};Dp=function(){_.dm.call(this,Ed);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.Sh;this.G=this.B=this.f=this.I=null};
|
|
228
|
+
Gp=function(a,b){return a.w?Ep():new Promise(function(c){a.a||(a.h.on(b,_.ne,function(){var d=Fp(a);if(d)a.onError(d)}),a.h.on(b,_.Of,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.L(_.id,{detail:{width:d,height:e}}))}),a.a=b);c()})};Hp=function(a){return a.w?Ep():new Promise(function(b){if(a.a){var c=a.a;a.h.off(c,_.ne);a.h.off(c,_.Of);a.a=null}b()})};
|
|
229
|
+
Jp=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](Ep());b=a.Z[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.Ip;d=_.xm(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.Yn({Jb:e,onError:function(h){return a.onError(h)},Xf:function(){},Wf:function(h,l){a.trigger(new _.L(_.ce,{expirationTime:l}))},
|
|
230
|
+
onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.ec,h.type)},getConfiguration:function(){return a.getConfiguration()},cd:function(){return a.cd()}});a.o.h=d;f={id:0,language:_.sg,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,Ca:0,mimeType:_.Hg,
|
|
231
|
+
codecs:"",encrypted:!0,keyId:null,language:_.sg,originalLanguage:_.sg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,to:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,$n:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.co(a.o,[f]),2)}return 3!=g.a?_.y(g,_.wo(a.o,a.a),3):g["return"](Promise.resolve())})};
|
|
232
|
+
Kp=function(a,b){ip(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.up&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};Fp=function(a){if(null===a.Z||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.N(_.O,3,3016,{code:b,mo:c,message:a.a.error.message})};Ep=function(){return Promise.reject(new _.N(_.O,7,7E3))};
|
|
233
|
+
Lp=function(a){if(a.w)return new _.Pj(Ep(),function(){});var b=a.Z[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Kp(a,c);if(d.preload!==_.Te)a.h.one(d,_.He,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Uj()||_.Vj())&&d.load();var f=new _.Oj;a.h.one(d,ag,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.Vk(function(){f.reject(new _.N(_.O,3,3100,{message:"Unable to load media source successfully from "+
|
|
234
|
+
b.url,uri:b.url},d.error))})).ea(g))});ip(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(Fp(a)):d.preload===_.Te&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.ne,function(){f.reject(Fp(a))});
|
|
235
|
+
return new _.Pj(f,function(){var g=new _.N(_.O,7,7001);f.reject(g);return Promise.resolve()})};
|
|
236
|
+
Mp=function(a,b){ip(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.up){var c=a.getSeekRange().end,d=a.getPosition();Infinity===c||20>c-d||(a.log.warn("Detected that HLS live stream was not started from close to the live edge. Auto-fixing, seeking to seek range end.(position: "+(d+", seek range end: "+c+")")),a.seek(c)["catch"](function(e){a.log.warn("Error while seeking to seek range edge.",e)}))}})};
|
|
237
|
+
Np=function(a,b){var c=!1;a.h.on(b,_.Vf,function(){c=b.paused});a.h.on(b,_.Uf,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};Op=function(){};_.Rp=function(a){0<=Pp.indexOf(a)?Qp.warn("Factory '"+a.name()+"' is already registered"):(Pp.push(a),Qp.info("Factory '"+a.name()+"' has been registered."))};
|
|
238
|
+
Sp=function(a,b){var c=Pp.find(function(d){return d.a(a,b)})||null;c&&Qp.info("Chosen ads manager: "+c.name());return c};Tp=function(){};Up=function(){};Vp=function(a,b,c,d){this.w=this.o=this.l=!1;this.A=a;this.a=b;this.f=c;this.h=d;this.j=0};Wp=function(a){this.a=a.map(function(b){return{videoId:b.getSurface().getMedia().id,player:b,oe:!0,ready:Promise.resolve()}});this.g=new _.K("clpp.plist.PlayerPool")};
|
|
239
|
+
_.Xp=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};_.Yp=function(a,b){a.classList.add(b)};_.Zp=function(a,b){if(a&&typeof b===_.Ue)for(var c in b)a.style[c]=b[c]};_.$p=function(a){return document.createElement(a)};aq=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};bq=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};
|
|
240
|
+
cq=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());ji(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.ah(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
|
|
241
|
+
gq=function(a,b){this.g=new _.K("clpp.PlayerSurface");this.w=_.M.sa(dq,b);this.f=new aq;this.h=null;this.a=new aq;this.l=eq;eq+=1;this.o="clpp-video-"+this.l;this.j=new _.Sh;if(null==a)throw new _.N(_.O,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.N(_.O,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
|
|
242
|
+
HTMLMediaElement))throw new _.N(_.O,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.N(_.O,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Wd);c.parentNode?c.parentNode.replaceChild(e,
|
|
243
|
+
c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.w(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.Yp(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.hg);f=_.w([_.Ug,_.se]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.If);_.Uj()||c.removeAttribute(g)}e.appendChild(c)}e&&
|
|
244
|
+
(this.a.set(e),bq(this.a,"clpp-container"),bq(this.a,this.o),bq(this.f,_.xd),bq(this.f,"clpp-video"));d.webOSStartupPatch&&fq(this,c,e)}};fq=function(a,b,c){(_.Vj()&&53===_.Zk().major||_.Vj()&&68===_.Zk().major||_.$k())&&!b.hasAttribute(Rd)&&(b.style.opacity="0",b.setAttribute(Rd,""),a.j.one(b,ie,function(){b.removeAttribute(Rd);b.style.opacity="1";c&&(c.style.opacity="1")}))};
|
|
245
|
+
kq=function(a){var b=this;this.h=a;this.j=[];this.f=a.zi;this.A=a.zi.getSurface().getContainer();if(!this.A)throw Error("Primary player does not have a container");this.B=[];var c=hq(this,this.A,this.h.Hk);this.o=new Wp(c);this.a=null;this.w=!1;this.l=new Map;this.C=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");iq(this).forEach(function(d){return jq(b,d,!1)})};
|
|
246
|
+
mq=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.a)?"loaded"===b.state?c.F(2):_.y(c,b.gd,2):c["return"]();if(4!=c.a)return _.y(c,b.player.play(),4);b.state=_.tf;lq(b);_.A(c)})};nq=function(a,b){a.g.info("Add items",b);a.j=a.j.concat(b.map(function(c){return Object.assign({},c,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),gd:Promise.resolve()})}))};
|
|
247
|
+
oq=function(a,b){0!==a.j.length&&(b?(a.g.info("Remove items",b),a.j=a.j.filter(function(c){return!b.includes(c.id)})):(a.g.info("Remove all items"),a.j=[]))};
|
|
248
|
+
zq=function(a,b,c){var d,e,f,g,h;return _.I(function(l){switch(l.a){case 1:if(a.w)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),l["return"]();d=pq(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),l["return"]();a.g.info(c+" item (ID: "+b+")");a.w=!0;if(e=a.a)e.player.isPaused()||e.player.pause(),e.player.setMuted(!0);(f=a.l.has(b))&&a.l["delete"](b);_.D(l,2,3);if(c===_.hf)return(g=e&&d.primary)?_.y(l,qq(a,d),10):f?_.y(l,rq(a,d),10):_.y(l,sq(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");
|
|
249
|
+
l.F(6);break}return _.y(l,tq(a,d),6);case 10:lq(d);case 6:uq(a,d);d.player.setMuted(!1);d.ac&&vq(a,d,d.ac);if(d.rb)d.player.one(_.me,d.rb);d.hi&&d.hi();case 3:_.ph(l);a.w=!1;e&&wq(a,e);xq(a);yq(a,d.next);_.qh(l);break;case 2:throw h=_.F(l),a.g.error("Item failed to "+c+" (ID: "+b+")"),h;}})};Bq=function(a,b){var c=Aq(a);c?c.Ia=b:a.g.error("Failed to get primary item. Cannot configure resume position.")};Aq=function(a){return a.j.find(function(b){return!!b.primary})||null};
|
|
250
|
+
pq=function(a,b){return a.j.find(function(c){return c.id===b})||null};uq=function(a,b){var c=b.transition;if(c&&!c.ln){if(c.rb){var d=c.rb,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.me,e);b.disposers.push(function(){b.player.off(_.me,e)})}c.Yf&&Cq(a,b,function(){var f=a.a.ac;f&&(a.f.trigger(new _.L(_.Kc,{detail:f})),a.f.trigger(new _.L(_.yc,{detail:f})),f.a===f.f&&a.f.trigger(new _.L(_.vc)))});c.ln=!0}};
|
|
251
|
+
Cq=function(a,b,c){function d(){b.player.off(_.og,f)}function e(){var l=b.player.getPosition();l>=g.position?(c(),a.g.info("Transition onPosition to (ID: "+g.itemId+"), playback position: "+(l.toFixed(3)+" s, transition point: ")+(g.position.toFixed(3)+" s. ")),a.play(g.itemId),l=!0):l=!1;l?h=null:h=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(d(),e())}var g=b.transition.Yf,h=null;g.Ia&&Bq(a,g.Ia);b.player.on(_.og,f);b.disposers.push(function(){null!=h&&(cancelAnimationFrame(h),
|
|
252
|
+
h=null)});b.disposers.push(d)};Dq=function(a){a.a&&(a.a.disposers.forEach(function(b){return b()}),a.a.disposers=[],a.a.ac&&vq(a,a.a,a.a.ac),uq(a,a.a),xq(a),yq(a,a.a.next))};iq=function(a){return[a.f].concat(_.ah(a.o.a.map(function(b){return b.player})))};xq=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return Eq(a,b)}))};
|
|
253
|
+
Eq=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.l.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.y(d,Fq(a,c.player),3):d.F(3)}a.l["delete"](b);_.A(d)})};
|
|
254
|
+
wq=function(a,b){var c;return _.I(function(d){if(1==d.a){c=b.player;if(b.primary)return a.g.info("Pause primary playback"),jq(a,c,!1),d.F(0);a.g.info("Stop previous playback (ID: "+b.id+")");b.disposers.forEach(function(e){return e()});b.disposers=[];b.player=null;b.videoEl=null;b.role=Gq;return _.y(d,Fq(a,c),3)}jq(a,c,!1);_.A(d)})};sq=function(a,b){return _.I(function(c){if(1==c.a)return _.y(c,tq(a,b),2);if(3!=c.a)return _.y(c,b.player.play(),3);b.state=_.tf;_.A(c)})};
|
|
255
|
+
tq=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,Hq(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.a=b,b.role=Iq,a.a.player=c,a.a.videoEl=c.getSurface().getMedia(),jq(a,c,!0),b.state="loading",b.gd=Jq(c,b.config),_.y(d,b.gd,3);b.state="loaded";_.A(d)})};
|
|
256
|
+
rq=function(a,b){var c;return _.I(function(d){switch(d.a){case 1:c=b.player;if(!c)return d["return"]();if(b.state!==Ef){d.F(2);break}a.g.info(kc);_.D(d,3);return _.y(d,b.preloadPromise,5);case 5:_.oh(d,2);break;case 3:_.F(d);case 2:a.a=b;b.role=Iq;jq(a,c,!0);if(b.state===Df)return _.y(d,c.play(),7);if(b.state!==Cf){d.F(7);break}return _.y(d,Jq(c,b.config),7);case 7:b.state=_.tf,_.A(d)}})};
|
|
257
|
+
vq=function(a,b,c){function d(){a.f.trigger(new _.L(_.Kc,{detail:c}));a.f.trigger(new _.L(_.yc,{detail:c}));c.a===c.f&&a.f.trigger(new _.L(_.vc))}function e(){a.f.trigger(new _.L(_.wc,{detail:c}))}function f(){a.f.trigger(new _.L(_.Hc,{detail:c}))}function g(){l.isEnded()||a.f.trigger(new _.L(_.Fc,{detail:c}))}function h(){var m=l.getPosition(),n=c.getDuration();c.j=m;a.f.trigger(new _.L(_.Gc,{detail:c}));!c.l&&m>=n/4&&(c.l=!0,a.f.trigger(new _.L(_.zc,{detail:c})));!c.o&&m>=n/2&&(c.o=!0,a.f.trigger(new _.L(_.Ec,
|
|
258
|
+
{detail:c})));!c.w&&m>=3*n/4&&(c.w=!0,a.f.trigger(new _.L(_.Lc,{detail:c})))}var l=b.player;l.on(_.og,h);l.on(_.df,g);l.on(_.tf,f);l.on(_.ld,e);l.one(_.me,d);b.disposers.push(function(){l.off(_.og,h);l.off(_.df,g);l.off(_.tf,f);l.off(_.ld,e);l.off(_.me,d)});1===c.a&&a.f.trigger(new _.L(_.uc));a.f.trigger(new _.L(_.Cc,{detail:c}));a.f.trigger(new _.L(_.Jc,{detail:c}))};
|
|
259
|
+
qq=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Ef){c.F(2);break}a.g.info("Wait for seek to finish");_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.oh(c,2);break;case 3:_.F(c);case 2:return a.a=b,b.role=Iq,jq(a,b.player,!0),b.state="loading",_.y(c,b.player.play(),6);case 6:b.state=_.tf,_.A(c)}})};Fq=function(a,b){return _.I(function(c){return b===a.f?c.F(0):_.y(c,a.o.release(b),0)})};
|
|
260
|
+
Hq=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.f):_.y(d,a.o.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};yq=function(a,b){var c;_.I(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.j.filter(function(e){return b.includes(e.id)})||[];return _.y(d,Promise.all(c.map(function(e){return Kq(a,e)})),0)})};
|
|
261
|
+
Kq=function(a,b){var c,d,e,f;return _.I(function(g){switch(g.a){case 1:if(!b.primary){g.F(2);break}b.state=Ef;a.l.set(b.id,b);c=b.player;if(!b.Ia){g.F(3);break}a.g.info("Preparing to resume at",b.Ia);c.setMuted(!0);return _.y(g,c.seek(b.Ia),3);case 3:return b.state=Df,g["return"]();case 2:return d=b.id,_.y(g,Hq(a,!1),5);case 5:return e=g.f,b.player=e,b.videoEl=e.getSurface().getMedia(),b.role=Gq,b.state=Ef,_.D(g,6),a.l.set(d,b),b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+
|
|
262
|
+
(d+")")),b.config.autoplay=!1),b.preloadPromise=Jq(e,b.config),_.y(g,b.preloadPromise,8);case 8:b.state=Df;_.oh(g,0);break;case 6:f=_.F(g),7001===f.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Bf):(a.g.warn("Preload failed (ID: "+d+")",f),b.state=Cf),_.A(g)}})};
|
|
263
|
+
jq=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Yb+b),d.classList.add(Ad),d.classList.remove("clpp-hide")):(a.g.debug(kb+b),d.classList.remove(Ad),d.classList.add("clpp-hide")),a.C&&a.C(d,c))};
|
|
264
|
+
hq=function(a,b,c){return Array.from({length:2}).map(function(){var d=document.createElement(_.r);b.appendChild(d);var e=a.h.Aa.create();d=new gq(d);e.init(d,c);e.setSourceIndex(0);d=d.getContainer();if(!d)throw Error("Failed to create player surface container element");d.classList.add("secondary");a.B.push(d);return e})};Lq=function(a){a.B.forEach(function(b){return a.A.removeChild(b)});a.B=[];jq(a,a.f,!0)};
|
|
265
|
+
Jq=function(a,b){return _.I(function(c){return 1==c.a?_.y(c,a.release(),2):_.y(c,a.load(b),0)})};lq=function(a){if(a.ac&&0===a.ac.getDuration()){var b=a.player.getDuration();a.ac.h=b}a.Re&&a.Re()};
|
|
266
|
+
Sq=function(a){_.Ul.call(this);var b=this;this.w=new Mq;this.h=_.M.sa({Ym:.5,Ao:{enabled:!1}},a);this.g=new _.K("clpp.interstitial.Player");this.j=a.player;this.j.setSeekInterceptor(function(c){var d=Nq(b,c);return d&&[Oq,Pq].includes(d.state)?(b.g.info("Seeking into an interstitial",d.wa),Qq(b,d)["catch"](function(){b.j.seek(c)}),!1):!0});this.a=new kq({Hk:this.h.config,zi:a.player,preloadMedia:!0,Aa:a.Aa});this.l=[];this.f=[];this.o=!1;Rq(this,a.player)};
|
|
267
|
+
Tq=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
|
|
268
|
+
Vq=function(a){var b,c,d;_.I(function(e){var f=a.a;nq(f,[{id:Gf,primary:!0,config:f.f.getConfiguration(),next:[]}]);var g=Aq(f);if(!g)throw Error("Failed to find primary item");f.a=g;g.role=Iq;g.player=f.f;g.videoEl=g.player.getSurface().getMedia();jq(f,g.player,!0);b=a.j;c=b.getConfiguration();d=!c.autoplay;a.o=Uq(a,d,b.isLive(),!1);if(a.o){f=a.a;g=f.o;if(g=g.a[0]?g.a[0].player:null)jq(f,f.f,!1),jq(f,g,!0);return e.F(0)}return c.autoplay?_.y(e,mq(a.a),0):e.F(0)})};
|
|
269
|
+
Uq=function(a,b,c,d){var e=Wq(a);a.g.info("Interstitial cues found",e);var f=e;if(d){f=mi(a.f.map(function(n){return n.wa}),e.map(function(n){return n.id}));Xq(a,f.en);var g=new Set(f.bj);f=e.filter(function(n){return g.has(n.id)})}if(!Yq(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(n){var p=n.customAttributes.CUE||[];p.includes(_.Ib)?l.push(n):!d&&p.includes("PRE")?h.push(n):!c&&n.startTime<a.h.Ym?h.push(n):m.push(n)});1<h.length?a.g.warn("Multiple preroll interstitials not supported. Will display only the 1st one."):
|
|
270
|
+
h[0]&&Zq(a,h[0],b);m.forEach(function(n){return $q(a,n,1)});1<l.length?a.g.warn("Multiple postroll interstitials not supported. Will display only the 1st one."):l[0]&&$q(a,l[0],2);a.g.info("Interstitials changed",a.f);return 0<h.length};Xq=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.wa)&&![Oq,Pq].includes(d.state)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.wa)})};
|
|
271
|
+
Wq=function(a){return a.j.getTimelineCues().filter(function(b){return b.schemeIdUri===Md&&b.customAttributes})};Qq=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,ar(a,b),2);c=d.f;if(!c)throw Error("Failed to bind");return _.y(d,br(a,b,1,!1),0)})};
|
|
272
|
+
$q=function(a,b,c){var d=b.customAttributes[tc];b={wa:b.id,startTime:b.startTime,endTime:b.endTime,state:Oq,Fg:b.customAttributes[qc],Gg:b.customAttributes[rc],Ka:null,Ia:null==d?null:b.startTime+d,jn:d,xi:b.customAttributes[sc],fg:c};a.f.push(b);return b};
|
|
273
|
+
Zq=function(a,b,c){var d,e,f;_.I(function(g){if(1==g.a)return d=$q(a,b,0),_.y(g,ar(a,d),2);e=g.f;f=d.Ka?d.Ka.length:0;if(e&&0<f)return br(a,d,0,c),a.g.info("Preroll interstitial "+d.wa+" scheduled"),g.F(0);e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");return c?g.F(0):_.y(g,mq(a.a),0)})};cr=function(a){a.l.forEach(function(b){return b()});a.l=[]};
|
|
274
|
+
Rq=function(a,b){function c(){Uq(a,!1,!0,!0)}function d(){var e,f,g,h,l;return _.I(function(m){switch(m.a){case 1:e=b.getPosition();f=dr(a,e);if(!f){m.F(2);break}a.g.info(lb+f.wa+" coming up at "+(f.startTime+" s"));return _.y(m,ar(a,f),3);case 3:(g=m.f)&&er(a,f,b);case 2:h=fr(a);if(!(h&&h.state===Oq&&b.getDuration()-e<a.h.resolutionOffsetSec)){m.F(0);break}return _.y(m,ar(a,h),5);case 5:if(l=m.f)if(h.Ka&&0!==h.Ka.length){var n=a.a.getCurrentItem();if(n){var p=gr(a,h,2),q=p[0].id;n.next=[q];n.transition=
|
|
275
|
+
{rb:q};hr(a,h,p);a.g.info("Postroll interstitial "+h.wa+" scheduled")}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.A(m)}})}b.addEventListener(_.og,d);a.l.push(function(){b.removeEventListener(_.og,d)});b.addEventListener(_.ng,c);a.l.push(function(){b.removeEventListener(_.ng,c)})};fr=function(a){return a.f.find(function(b){return 2===b.fg})||null};
|
|
276
|
+
Yq=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.h.resolutionOffsetSec,e=[],f=0;f<c.length-1;f++){var g=c[f],h=c[f+1];h&&h.startTime-g.endTime<d&&e.push(nb+g.id+" and "+h.id+" are too close to each other (less than "+(d+" s)."));h&&h.startTime<=g.endTime&&e.push(nb+g.id+" and "+h.id+" overlap.")}var l=[];b.forEach(function(m){var n=m.customAttributes[rc],p=m.customAttributes[sc];m.customAttributes[qc]||n?null!=p&&1>p&&a.g.warn(mb+m.id+" is invalid X-PLAYOUT-LIMIT is less than 1 s.",
|
|
277
|
+
m):l.push(mb+m.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});0<l.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+l.join(" ")):0<e.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+e.join(" "));return 0===l.length};dr=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.fg&&[Oq,Pq].includes(c.state)&&0<d&&d<=a.h.resolutionOffsetSec})||null};
|
|
278
|
+
Nq=function(a,b){return a.f.find(function(c){return 1===c.fg&&b>c.startTime&&b<c.endTime})||null};
|
|
279
|
+
ar=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:b.state=ir;if(!b.Fg){b.Gg?(b.Ka=[{URI:b.Gg,DURATION:b.endTime-b.startTime}],b.state=jr):b.state=kr;f.F(2);break}_.D(f,3);a.g.info("Load X-ASSET-LIST for "+b.wa);a.fb(new _.L(Ac));c=b;return _.y(f,lr(a,b.Fg),5);case 5:c.Ka=f.f;b.Ka&&0!==b.Ka.length||a.g.info(lb+b.wa+" has no assets, will be smoothly skipped");null==b.Ia&&(d=gj(b.Ka.map(function(g){return g.DURATION})),b.Ia=b.startTime+d);b.state=jr;a.fb(new _.L(Bc));_.oh(f,2);break;
|
|
280
|
+
case 3:e=_.F(f),a.g.error("Failed to load X-ASSET-LIST",e),b.state=kr;case 2:return f["return"](b.state===jr)}})};br=function(a,b,c,d){var e,f;return _.I(function(g){e=a.a.getCurrentItem();if(!e)return g["return"]();f=gr(a,b,c);hr(a,b,f);Bq(a.a,b.Ia);return d?_.y(g,a.a.load(f[0].id),0):_.y(g,a.a.play(f[0].id),0)})};
|
|
281
|
+
er=function(a,b,c){if(b.Ka)if(0===b.Ka.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.wa):null!=b.Ia&&0!==b.jn?c.seek(b.Ia):a.g.info("Empty VOD interstitial "+b.wa+", continuing to next segment")};c.one(_.fi,d);a.l.push(function(){c.off(_.fi,d)});a.g.info(lb+b.wa+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=gr(a,b,1),g=f[0].id;Bq(a.a,b.Ia);e.next=[g];e.transition={Yf:{position:b.startTime,itemId:g,Ia:b.Ia}};hr(a,b,f);a.g.info(lb+b.wa+
|
|
282
|
+
" scheduled for "+(b.startTime+" s"))}}};hr=function(a,b,c){nq(a.a,c);Dq(a.a);b.state=mr;a.fb(new _.L(_.Dc,{detail:null}))};
|
|
283
|
+
gr=function(a,b,c){var d=0,e=b.Ka.map(function(m,n){var p=b.wa+"-"+n;d+=m.DURATION;return{id:p,config:{source:{url:m.URI,type:_.El}},duration:m.DURATION,Cd:d,yl:b.wa,next:[],ac:new Vp(c,n+1,b.Ka.length,m.DURATION)}});e.forEach(function(m,n){var p=n===e.length-1;p&&2===c||(p?(m.next=[Gf],m.transition={rb:Gf}):(p=p?Gf:m.yl+"-"+(n+1),m.next=[p],m.transition={rb:p}))});e.forEach(function(m){m.Re=function(){a.g.info("Playing interstitial asset "+m.id,m)}});if(null!=b.xi){var f=b.xi;a.g.info("Playout limit for "+
|
|
284
|
+
b.wa+" is "+(f+" s"));var g=e[e.length-1],h=f-(g.Cd-g.duration);0>=f?e=[]:f<g.Cd?(e=e.filter(function(m){return m.Cd-m.duration<=f}),.1>Math.abs(h-g.duration)?g.transition.rb=Gf:g.transition.Yf={position:h,itemId:Gf}):f>g.Cd&&a.g.info("Playout limit ("+f+") islarger than total duration: ("+(g.Cd+")"))}var l=e[0].Re;e[0].Re=function(){a.g.info("Playing interstitial "+c+" "+b.wa+" with "+(b.Ka.length+" assets and will resume primary content at ")+(b.Ia.toFixed(1)+" s."),e);l()};e[0].hi=function(){b.state=
|
|
285
|
+
nr};e[e.length-1].rb=function(){b.state=Pq;oq(a.a,e.map(function(m){return m.id}))};return e};lr=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.Ae();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.Jj(b);return _.y(l,bk(d,e),2)}f=l.f;g=or(f);if(!g)throw new _.Ai("Invalid X-ASSET-LIST list response");h=f;return l["return"](Promise.resolve(h.ASSETS))})};
|
|
286
|
+
or=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.fg&&typeof b.DURATION===_.k}):!1};Mq=function(){this.a=null};pr=function(){this.a=null};rr=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Sh;this.h=null;this.f=!0;qr(this)};
|
|
287
|
+
qr=function(a){a.a.on(window,"offline",function(){sr(a,!1)});a.a.on(window,"online",function(){a.f||tr(a)});a.a.on(a.m,ag,function(){return ur(a)});a.a.on(a.m,"suspend",function(){return ur(a)});a.a.on(a.m,_.Ng,function(){return ur(a)});a.a.on(a.m,_.tf,function(){a.f||tr(a)});a.a.on(a.m,_.Hf,function(){a.f||tr(a)});a.a.on(a.m,_.cg,function(){switch(a.m.getState()){case _.op:ur(a);break;default:ur(a)}})};tr=function(a){a.m.getConfiguration().connectivityCheck&&(vr(a),a.h=(new _.Vk(function(){return wr(a)})).ea(5))};
|
|
288
|
+
ur=function(a){a.f&&tr(a)};vr=function(a){a.h&&(a.h.stop(),a.h=null)};wr=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.y(d,ck(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;sr(a,c);_.A(d)})};sr=function(a,b){vr(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L($e,{online:a.f})))};yr=function(){for(var a=0;a<xr.length;++a)xr[a].Tc()};
|
|
289
|
+
_.zr=function(a,b){b=b||0;for(var c={priority:b,Tc:a},d=0;d<xr.length;d++)if(xr[d].priority<b){xr.splice(d,0,c);return}xr.push(c)};Ar=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Br=function(a,b,c){var d=_.S.aa;this.h=a;this.f=b;JSON.parse(d(_.xj(a)));this.a=JSON.parse(d(_.xj(b)));this.j=c};
|
|
290
|
+
Dr=function(a){var b=Cr,c=_.S.Ya,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,h){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.xj(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(new _.Ai("Signature Verification failed",rg))})["catch"](h)}else g()})};Er=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.utils.LicenseKey")};
|
|
291
|
+
Fr=function(a){if(!a.a){var b=a.f.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new Br(b[0],b[1],b[2]);a.a=b}return a.a};
|
|
292
|
+
Gr=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=Fr(a),_.D(e,2),_.y(e,Dr(b),4);if(2!=e.a)return _.oh(e,0);if((c=_.F(e))&&c.code===rg)throw c;var f=window.location.href,g=new _.Fi(f);d=g.tb||g.Ra?g:new _.Fi("//"+f);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.Ra))return e["return"]();throw c;})};
|
|
293
|
+
Hr=function(a){switch((a.Z[0]||{src:"",type:""}).type){case _.Tc:a="dash";break;case _.Yc:a="ss";break;case _.El:a="hls";break;case _.Hg:a="mp4";break;default:a=""}return a};Ir=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};Jr=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Kr=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
|
|
294
|
+
Mr=function(a){var b=a.configuration,c="no";b.drm&&!_.M.la(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(he)||Lr(a).endsWith("drmtoday.com"))&&(c=he);return c};Nr=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Pd:b="wv";break;case _.Nd:b="pr";break;case _.Ld:b="fps"}return b};Or=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
|
|
295
|
+
Pr=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case ib:case gb:b="L1";break;case hb:b="L2";break;case _.Vb:case _.Ub:b="L3"}return b};Lr=function(a){a=a.drmInfo;return(new _.Fi(a&&a.licenseServerUri||"")).Ra};
|
|
296
|
+
Sr=function(a,b){var c="ie"===_.Wj().browser,d=b.configuration,e=_.ah(Array.from(_.em.keys())).concat(_.ah(b.yi));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":Ir(d),"CL-ASSET-ID":Jr(d),"CL-SESSION-ID":Kr(d),"CL-PLAYBACK-TYPE":b.isLive?Qr:Rr,"CL-CONTENT-TYPE":Hr(b),"CL-PLUGINS":e.join(" "),"CL-DRM":Mr(b),"CL-DRM-CDM":Nr(b),"CL-DRM-SEC-LEVEL":Pr(b),"CL-DRM-OFFLINE":Or(b),"CL-DRM-IP":Lr(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.Jj(["https://downloads.castlabs.com/r/register/"]);
|
|
297
|
+
e.method="GET";e.headers=d;return(new _.Zj).fetch(e).U.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Fr(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";
|
|
298
|
+
break;default:f=Promise.resolve();break a}a.g.error(sb+l);f=Promise.reject(new _.N(_.O,7,g,l))}}return f})};Ur=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=Tr(this);this.f.Qc(this.h);this.a=null};
|
|
299
|
+
Tr=function(a){return function(b){var c=b.headers,d=b=null,e=_.M.Ch(c,"cmsd-dynamic");c=_.M.Ch(c,"cmsd-static");e&&(b=Vr(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=Wr(f[c]),h=g.key,l=g.value;Object.keys(Xr).includes(h)&&(e[Xr[h]]=l)}d=_.M.wc(e)?e:null}catch(m){Yr.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.L("cmsd-event",{lo:b,yo:d}))}};
|
|
300
|
+
Vr=function(a){try{var b=a.split(",").map(function(c){var d={};c=c.split(";");for(var e=0;e<c.length;e++){var f=Wr(c[e]),g=f.key;f=f.value;Object.keys(Zr).includes(g)&&(d[Zr[g]]=f)}return d}).filter(function(c){return _.M.wc(c)});return 0<b.length?b:null}catch(c){return Yr.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
|
|
301
|
+
Wr=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.Ai("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new _.Ai("Parsing CMSD, not recognized value type of "+a);};
|
|
302
|
+
X=function(a,b,c){_.Ul.call(this);var d=this;yr();this.g=new _.K("clpp.Player");if(!a)throw new _.N(_.O,7,7102);this.ga=new _.Sh;this.f=this.C=b||_.$l();this.l=null;void 0===this.f.license&&(this.f.license=Yl,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.N(_.O,7,7101,"No license provided in configuration!");this.j=new gq(a,c);this.A=this.a=this.G=null;
|
|
303
|
+
this.I=new _.Zj;this.h=null;this.ca=[];this.fa=!0;this.K={};this.ta=null;this.V=!0;this.$=this.P=!1;this.L=this.$c=null;this.Cf=!1;this.Fa=new rr(this);this.B=null;this.on(_.cg,function(){d.getState()===_.up&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Pc,this.bi.bind(this));this.on(_.Oc,this.bi.bind(this));this.on(_.ng,function(){return $r(d)});as(this,this.f.license);this.j.getMedia()&&(a=this.j.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
|
|
304
|
+
void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.w(bs);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)}}cs(this,a);this.N=_.pa;km(this)};
|
|
305
|
+
_.ds=function(a,b,c){c=void 0===c?null:c;null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null,a.A=null),b&&(b.init(a.j,a.C),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.A=c))};as=function(a,b){a.G=new Er(b);Gr(a.G)["catch"](function(c){setTimeout(function(){a.g.error(sb+c);a.trigger(new _.L(_.ne,{detail:new _.N(_.O,7,7101)}));a.destroy()},1E3)})};
|
|
306
|
+
es=function(a,b){var c,d;_.I(function(e){if(1==e.a)return a.j.getMedia()||a.j.getCastElement(),a.G||(a.G=new Er(a.f.license)),_.D(e,2),a.g.debug("Verifying license remotely"),_.y(e,Sr(a.G,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.oh(e,0);c=_.F(e);a.g.debug("License rejected by remote",c);d={release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)};setTimeout(Ar,1E3,d,c);_.A(e)})};
|
|
307
|
+
cs=function(a,b){a.ca=b;for(var c=_.w(a.ca),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.K[e]=d)}a.Ac("onPlayerCreated")};
|
|
308
|
+
fs=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.V)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.ga.off(document,Lg);a.trigger(new _.L(_.Lf));a.j&&a.j.release();if(!a.h){d.F(2);break}return _.y(d,a.h.pc(),3);case 3:a.h=null;case 2:if(!a.B){d.F(4);break}return _.y(d,a.B.release(),5);case 5:a.B=null;case 4:if(a.a)return b=null,c=a.a.on(_.cg,function(e){b=e}),d["return"](a.Ac(_.Ye).then(function(){a.a.stopForwardingEventsTo(a);
|
|
309
|
+
return Promise.all([a.a.release(),a.I.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.cg,c);a.trigger(new _.L(Kf))}));a.trigger(new _.L(Kf));return d["return"](new Promise(function(e){return e()}))}})};
|
|
310
|
+
hs=function(a,b,c){if(a.N===_.Hb)b=gs(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.$){a.$=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.Lh);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var h={Aa:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<h.confidence)a=h,d=f}a&&typeof d===_.k&&0<a.confidence?(_.Mh.debug("Player Factory '"+a.Aa.a()+"' can play",b[d]),b=new Kh(a.Aa,d)):(_.Mh.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
|
|
311
|
+
null;if(!b)throw new _.N(_.O,7,7003,"No player factory compatible with given sources found!");c=b.Aa;a=c.create();b={Aa:c,player:a,sourceIndex:b.sourceIndex}}else b={Aa:a.A,player:a.a,sourceIndex:0};return b};gs=function(a,b){var c=Oh(function(d){return d.f(_.Hb)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.N(_.O,7,7003,"No compatible player implementing playlist mode found!");return{Aa:c,player:c.create(),sourceIndex:0}};
|
|
312
|
+
js=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(Kb),c["return"]();b=a.a;if(!b.Sg)return a.g.warn(Ob),c["return"]();a.trigger(new _.L(Ie));return _.y(c,b.Sg(),2)}return _.y(c,_.is(a),0)})};
|
|
313
|
+
_.ms=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.P)throw new _.N(_.O,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.N(_.O,7,7E3,"No surface associated with this player!");_.Sn(of);return _.y(f,a.release(),2)}if(3!=f.a){d=c||_.Bp(b);if(!b||0===d.length)throw new _.N(_.O,7,7003,Bb);a.ta=d;a.f=_.bm(a.C,b,{source:d});a.V=!1;e=hs(a,d,a.f);_.ds(a,e.player,e.Aa);a.a&&a.a.setSourceIndex(e.sourceIndex);ks(a);a.a&&a.a.setCdnErrorCallback(a.L);ls(a,a.f);a.B=new Ur(a);a.a.setCmsdManager(a.B);
|
|
314
|
+
if(a.f.pauseWhenInBackground)a.ga.on(document,Lg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});lm(a);return _.y(f,a.Ac("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.Sn(nf);_.Tn("player.beforeLoad",of,nf);_.A(f)})};_.ns=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.L(Ie));return _.y(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};
|
|
315
|
+
ps=function(a){var b,c,d,e;_.I(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.w(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.y(f,Promise.all(b),2)}os(a);_.A(f)})};
|
|
316
|
+
os=function(a){var b=_.hi(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ia().filter(function(f){return c?f.kind===_.pe:f.kind!==_.pe});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().ma();e&&e.language?(e=_.cj(e.language||""),b.push(e)):(e=a.getTrackManager().Oa())&&e.language&&(e=_.cj(e.language||""),b.push(e));0===
|
|
317
|
+
b.length&&a.g.warn("Forced subtitles are configured to be preferred, but neither the preferred text language is set, nor the audio or video track language is available to determine which forced subtitles language to select.")}b.some(function(f){var g=_.cj(f);if(f=d.find(function(h){h=_.cj(h.language||"");return _.dj(h,g)}))return a.getTrackManager().Qa(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
|
|
318
|
+
_.is=function(a){var b;return _.I(function(c){if(1==c.a)return _.Sn(kf),es(a,{configuration:a.getConfiguration(),Z:a.Fh(),drmInfo:a.getDrmInfo(),yi:Object.keys(a.K),isLive:a.isLive()}),ps(a),mm(),_.y(c,a.Ac("onContentLoaded"),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.Rc():!0)?_.y(c,a.play(),3):c.F(3):c.F(3);_.Sn(jf);_.Tn("player.afterLoad",kf,jf);_.A(c)})};ls=function(a,b){var c=Sp(a,b);c&&(a.h=c.create(a))};
|
|
319
|
+
$r=function(a){!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(b){return b.schemeIdUri===Md})&&(a.h=new pr,a.h.Vc(a.a,a.A))};ks=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){if(!a.$c||!a.Cf)return c.F(0);a.Cf=!1;return _.y(c,a.$c(b),0)})})};_.qs=function(a){a&&(0<=bs.indexOf(a)||bs.push(a))};
|
|
320
|
+
rs=function(a,b,c){X.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.C=_.M.sa(this.C,a);this.f=_.M.sa(this.f,a);this.H=0;this.o=[];this.ba=!1;this.w=null;this.J=[]};ss=function(a){a.J.forEach(function(b){return b()});a.J=[]};
|
|
321
|
+
ts=function(a,b){function c(f){a.H=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Rf,c);a.J.push(function(){a.removeEventListener(_.Rf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.og,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.L(_.Qf)),a.pause())};a.addEventListener(_.og,e);a.J.push(function(){a.removeEventListener(_.og,e)})}};
|
|
322
|
+
ws=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.D(e,2),_.Sn(sf),a.N=_.Hb,a.fa=!1,c=b.slice(1).map(function(f){return{config:f,Z:_.Bp(f)}}),_.y(e,_.ms(a,b[0]),4);case 4:return c.forEach(function(f){us(a,f.config,f.Z)}),a.trigger(new _.L(Ie)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.is(a),6);case 6:c.forEach(function(f){vs(a,f.config,f.Z)});_.Sn(rf);_.Tn("player.setupPlaylist",sf,rf);_.oh(e,0);break;case 2:d=_.F(e);if(a.l)throw a.g.info(tb),new _.N(_.O,7,7E3);
|
|
323
|
+
throw d;}})};xs=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.D(e,2),_.Sn(mf),c=_.Bp(b),us(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return vs(a,b,c),_.Sn(lf),_.Tn("player.appendLoad",mf,lf),_.oh(e,0);d=_.F(e);if(a.l)throw a.g.info(tb),new _.N(_.O,7,7E3,{id:b.id});throw d;})};vs=function(a,b,c){es(a,{configuration:b,Z:c,drmInfo:a.getDrmInfo(),yi:Object.keys(a.K),isLive:c[0].isLive})};
|
|
324
|
+
us=function(a,b,c){if(0===c.length)throw new _.N(_.O,7,7003,{message:Bb,id:b.id});if(1<c.length)throw new _.N(_.O,7,7003,{message:"Multiple sources not supported!",id:b.id,source:c});if(2!==(a.a?a.a.canPlay(c[0],a.f):0))throw new _.N(_.O,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
|
|
325
|
+
As=function(a){_.Ul.call(this);var b=this;this.h=_.M.sa({transition:_.df,preloadMedia:!1},a);this.j=[];this.a=0;var c=ys(a.anchorId,this.h.config);this.w=new Wp(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.K(Gd);this.w.a.forEach(function(d){return zs(b,d.player,!1)})};Cs=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return Bs(a,b)}))};
|
|
326
|
+
Bs=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.y(d,Ds(a,c),3):d.F(3)}a.o["delete"](b);_.A(d)})};Fs=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),zs(a,b.player,!1),_.y(c,Ds(a,b),2);b.player=null;b.videoEl=null;b.role=Es;_.A(c)})};
|
|
327
|
+
Ds=function(a,b){return _.I(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.y(c,a.w.release(b.player),0):c.F(0)})};Is=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Gs,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),zs(a,c,!0),_.y(d,c.load(b.config),3);Hs(a,b);return b.config.autoplay?d.F(0):_.y(d,c.play(),0)})};
|
|
328
|
+
Js=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Ef){c.F(2);break}a.g.info(kc);_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.oh(c,2);break;case 3:_.F(c);case 2:a.f=b;b.role=Gs;zs(a,b.player,!0);if(b.state===Df)return _.Sn(Af),a.h.preloadMedia?_.y(c,b.player.play(),11):_.y(c,js(b.player),11);if(b.state!==Cf){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 11:_.Sn(wf),_.Tn("playlist.next",Af,wf);case 7:if(Hs(a,b),b.config.autoplay)c.F(0);
|
|
329
|
+
else return _.y(c,b.player.play(),0)}})};Hs=function(a,b){if(a.h.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.wi()};b.player.on(_.me,c);var d=b.player;b.disposers.push(function(){d.off(_.me,c)})}};Ls=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,Ks(a,b),0)})};Ms=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,Ks(a,b),0)})};
|
|
330
|
+
Ns=function(a){var b;_.I(function(c){if(0===a.a)return _.y(c,Ls(a),0);if(a.a===a.j.length-1)return _.y(c,Ms(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.y(c,Promise.all(b.map(function(d){return Ks(a,d)})),0)})};
|
|
331
|
+
Ks=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return _.y(f,a.w.get(),2);case 2:return c=f.f,d=a.j[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=Es,d.state=Ef,a.trigger(new _.L(ug)),_.D(f,3),a.o.set(b,d),a.h.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.load(d.config)):d.preloadPromise=c.preload(d.config),_.y(f,d.preloadPromise,5);case 5:d.state=
|
|
332
|
+
Df;a.trigger(new _.L(ug));_.oh(f,0);break;case 3:e=_.F(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Bf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.ne,{detail:e})),d.state=Cf),a.trigger(new _.L(ug)),_.A(f)}})};zs=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Yb+b),d.classList.add(Ad)):(a.g.info(kb+b),d.classList.remove(Ad)),a.A&&a.A(d,c))};
|
|
333
|
+
Os=function(a){var b;return _.I(function(c){if(1==c.a)return _.y(c,a.w.destroy(),2);b=document.getElementById(a.h.anchorId);if(!b)return c["return"]();b.classList.remove(zd);b.innerHTML="";_.A(c)})};
|
|
334
|
+
ys=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(zd);return Array.from({length:3}).map(function(){var d=document.createElement(_.r);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.Wd);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new X(d,b)})};
|
|
335
|
+
_.Qs=function(a){if(Ps.has(a))return Ps.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Ps.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Ps.set(a,b),b):!1};Rs=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
|
|
336
|
+
Ss=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.$c&&(c=c.replace(_.r,_.$c));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"===f?e+"4200":"77"===f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c};Ts=function(){};_.Us=function(){};Vs=function(){this.a=null;this.g=new _.K("clpp.drm.eme.StandardEmeManager")};Ws=function(){};Xs=function(){this.size=0;this.a=void 0;this.g=new _.K("clpp.drm.eme.MediaKeyStatusMap")};
|
|
337
|
+
Ys=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};Zs=function(){};$s=function(){};at=function(){this.a=this.f=null};
|
|
338
|
+
bt=function(a,b){this.keySystem=a;if(a.startsWith(_.Ld))for(var c=_.w(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Nf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.af,distinctiveIdentifier:_.af,initDataTypes:e.initDataTypes,sessionTypes:[kg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.w(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
|
|
339
|
+
(d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.w(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Hg));d=g?d:null}if(d){this.a=d;return}}c=Error(gc);c.name=Gb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
|
|
340
|
+
ct=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.Sh;this.j=0;this.g=new _.K(Dd);this.g.info("Created Media Keys for "+a)};
|
|
341
|
+
dt=function(a,b){a.f=b;_.Vh(a.a);if(!b)return Promise.resolve();a.a.on(b,ke,function(c){_.Ih("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,Tg,function(c){a.g.debug("Handle webkitNeedKey event");c=_.lj(c.initData);if(_.sj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
|
|
342
|
+
c=_.S.tc(c.subarray(4),!0);c=_.S.Ya(c);var d=new Event(ke);d.initDataType="skd";d.initData=tj(c);a.f.dispatchEvent(d)});ip(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};et=function(a,b){_.Ul.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.Sh;this.sessionId=b;this.expiration=NaN;this.closed=new _.Oj;this.l=!1;this.keyStatuses=new Xs;this.g=new _.K(Dd)};ft=function(a,b){Ys(a.keyStatuses,b);a.dispatchEvent(new _.L(xe))};
|
|
343
|
+
gt=function(){};ht=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
|
|
344
|
+
it=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.bf&&(this.a=Pg,a=!1);var e=!1;d=_.w(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.w(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.w(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
|
|
345
|
+
this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Hg,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Nf||a||(e=!1);if(e){this.f=f;return}}b=gc;if(c===_.bf||c===_.Pd)b="None of the requested configurations were supported.";c=Error(b);c.name=Gb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};jt=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.Sh;this.j=[];this.l=new Map};
|
|
346
|
+
mt=function(a,b){a.a=b;_.Vh(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(ke);d.initDataType=_.sd;d.initData=tj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=kt(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.L(_.Me,{messageType:e?Ae:ze,message:c.message});_.Ih("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Jh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
|
|
347
|
+
kt(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=kt(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?lt(d,_.cf):1===e?lt(d,"expired"):lt(d,_.we))}}))};
|
|
348
|
+
kt=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};nt=function(a,b,c,d){_.Ul.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Oj;this.keyStatuses=new Xs};
|
|
349
|
+
pt=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.ff)if(c)var d=_.lj(_.S.Ya("LOAD_SESSION|"+c));else{var e=_.S.Ya("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.lj(b),e.byteLength);d=f}else d=_.lj(b)}catch(h){return Promise.reject(h)}a.f=new _.Oj;var g=ot(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==pb)return a.f=null,Promise.reject(h);(new _.Vk(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
|
|
350
|
+
a.f=null}})).ea(.01)}return a.f};qt=function(a,b,c){if(a.a)a.a.then(function(){return qt(a,b,c)})["catch"](function(){return qt(a,b,c)});else{a.a=b;if(a.h===Pg){var d=_.S.aa(c);var e=JSON.parse(d);"oct"!==e.keys[0].kty&&(a.a.reject(Error("Response is not a valid JSON Web Key Set.")),a.a=null);d=_.xj(e.keys[0].k);e=_.xj(e.keys[0].kid)}else d=_.lj(c),e=null;var f=ot(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};lt=function(a,b){Ys(a.keyStatuses,b);a.dispatchEvent(new _.L(xe))};
|
|
351
|
+
ot=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};rt=function(){};
|
|
352
|
+
st=function(a,b,c,d,e){_.Am.call(this,jb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Cd);_.S.empty(this.l)?this.g.warn(_.oc):this.Wa(_.Pd,{licenseUrl:this.l,videoRobustness:[_.Vb,void 0],audioRobustness:[_.Ub,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.$d.bind(this)}});_.S.empty(this.j)?this.g.warn(_.Jb):this.Wa(_.Nd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.$d.bind(this)}});
|
|
353
|
+
_.S.empty(this.h)?this.g.warn(_.db):_.S.empty(this.a)?this.g.warn(_.ab):this.Wa(_.Ld,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.ei.bind(this),licenseResponse:this.fi.bind(this),certificateRequest:this.$d.bind(this),extractContentId:this.qh.bind(this)}})};tt=function(){};ut=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.re)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
|
|
354
|
+
vt=function(a){a=a.target;if(a.webkitPresentationMode===gf){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)};wt=function(){return this.webkitSupportsPresentationMode(gf)?(this.webkitSetPresentationMode(gf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
|
|
355
|
+
xt=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};yt=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};zt=function(a,b,c){return new window.TextTrackCue(a,b,c)};
|
|
356
|
+
At=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};Ct=function(a,b,c){if("input"===a)switch(this.type){case "range":a=vd}Bt.call(this,a,b,c)};Et=function(){this.a=Dt()};Ft=function(a){return Dt()-a.a};Gt=function(a){var b=new Et;b.a=a.a;return b};Dt=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.Ht=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=_.w(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
|
|
357
|
+
It=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};Jt=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.h),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.Kt=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.Mt=function(){this.a=new Blob([Lt],{type:_.Hg})};_.Nt=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.Ot=function(){this.a=[];this.f=-1;this.h=null};
|
|
358
|
+
_.Qt=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.D(g,2),_.y(g,Pt(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.F(g);f.a(_.O);throw f;})};
|
|
359
|
+
Pt=function(a,b,c,d){var e,f,g,h;return _.I(function(l){if(1==l.a){if(d){if(e=_.Rt[d.toLowerCase()])return l["return"](e);_.Dh("Could not determine manifest type using MIME type ",d)}if(f=_.St(a)){if(g=_.Tt[f])return l["return"](g);_.Dh("Could not determine manifest type for extension ",f)}else _.Dh("Could not find extension for ",a);return d?l.F(2):_.y(l,Ut(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Rt[d])return l["return"](h);_.Dh("Could not determine manifest type using MIME type",d)}throw new _.N(_.O,
|
|
360
|
+
4,4E3,{url:a});})};Ut=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.Jj(a),Hj(d,c),d.type=1,d.method="HEAD",_.y(g,b.fetch(d).U,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.St=function(a){a=(new _.Fi(a)).Ga.split("/").pop().split(".");return 1===a.length?"":a.pop().toLowerCase()};Wt=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new Et};
|
|
361
|
+
Yt=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Xt(a,d),Mj(c,d.byteLength,Ft(a.h)),a.h.a=Dt());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 Yt(a,b,c)})})};Xt=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};
|
|
362
|
+
Xj=function(a){var b=a.uris[a.uriIndex],c=new Zt,d=new Et,e=Gt(d),f=0,g,h=new _.Oj;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var l=!1,m=!1;c.onreadystatechange=function(p){p=p.target;p.readyState>=XMLHttpRequest.LOADING&&0===f&&(g=Ft(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(xa),Lj(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),t={};
|
|
363
|
+
q=_.w(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=Ft(e);m||Mj(a,p.response?p.response.length:0,z);var C=_.Kj(t,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?Nj(a.rateLimitBps,Ft(e),a.bytesLoaded).then(function(){h.resolve(C)}):h.resolve(C)}catch(H){h.reject(H)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.N(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t={};if(q){q=
|
|
364
|
+
_.w(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.Kj(t,p.response,p.status,b,p.responseURL,a,Ft(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.N(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=Ft(d);d.a=Dt();if(100<q||p.lengthComputable&&p.loaded===p.total)Mj(a,p.loaded-f,q),f=p.loaded,m=!0};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);c.send(a.body);return{U:h,
|
|
365
|
+
request:a,abort:function(){c.abort();h.reject(new _.N(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};$t=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new It(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new Et};
|
|
366
|
+
cu=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,Ft(a.w)),a.w.a=Dt());if(f)return f=au(a),(f=c(!0,f))?f.then(function(){return a.j.a.buffer}):Promise.resolve(a.j.a.buffer);var g=Promise.resolve();if(null!=e){Jt(a.j,e);a.a=a.h;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=bu(a);for(f=[];e;)f.push(e),e=bu(a);if(!a.A)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var h=f[f.length-1],
|
|
367
|
+
l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.j.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return cu(a,b,c,d)})})};bu=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=du(a);null!==b;){if(b.name===_.Ke){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=du(a)}return null};
|
|
368
|
+
du=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=eu(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=eu(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.l.getUint32(a.a,!1);var f=a.l.getUint32(a.a+4,!1)}catch(g){throw new _.N(_.O,3,3E3);}if(2097151<e)throw new _.N(_.O,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
|
|
369
|
+
eu=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};au=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};gu=function(a){_.Pj.call(this,new _.Oj,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.U;this.f=-1;this.j=this.l=this.o=null;fu(this)};hu=function(a,b,c){a.o=setTimeout(b,c)};
|
|
370
|
+
fu=function(a){a.h=a.B.then(function(e){a.j=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=iu(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*iu(e.request.fuzzFactor,.5));a.f*=iu(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;hu(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.N(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
|
|
371
|
+
return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.U}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.N){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return fu(a);g&&e.a(_.O);a.w.reject(e)}else a.w.reject(e)})};iu=function(a,b){return null===a||void 0===a?b:a};
|
|
372
|
+
Yj=function(a){var b=new ju,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new ku,e={vd:!1,Ji:!1};b={U:lu(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.vd||(e.vd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.Ji=!0;d.abort()},a);b.U=b.U["finally"](function(){window.clearTimeout(f)})}return b};
|
|
373
|
+
lu=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,v,z,C,H,E,B;return _.I(function(G){switch(G.a){case 1:return e=mu,l=new Et,m=Gt(l),_.D(G,2),_.y(G,e(a,c),4);case 4:f=G.f;h=Ft(l);n=f.headers.get(xa);Lj(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),z=new $t(p,!b.disableMergedFragments),C=function(Q,R){if(d.vd)return null;R&&R.data&&(Mj(b,R.data.byteLength,Ft(l)),l.a=Dt());return b.onFragment&&R?b.rateLimitBps?Nj(b.rateLimitBps,Ft(m),b.bytesLoaded).then(function(){return b.onFragment(R)}):
|
|
374
|
+
b.onFragment(R):null},_.y(G,cu(z,v,C,b.onProgress),10);q=f.body.getReader();t=new Wt(p);return _.y(G,Yt(t,q,b),7);case 7:g=G.f;if(!b.rateLimitBps){G.F(6);break}return _.y(G,Nj(b.rateLimitBps,Ft(m),g.byteLength),6);case 10:g=G.f;case 6:_.oh(G,3);break;case 2:H=_.F(G);if(d.vd)throw new _.N(1,1,7001,{url:a,request:b});if(d.Ji)throw new _.N(1,1,1003,{url:a,request:b});_.Jh("Error while fetching data:",H);throw new _.N(1,1,1002,{url:a,error:H,request:b,status:-1},H);case 3:E={};B=f.headers;B.forEach(function(Q,
|
|
375
|
+
R){E[R.trim()]=Q});if(d.vd)throw new _.N(1,1,7001,{url:a,request:b});return G["return"](_.Kj(E,g,f.status,a,f.url,b,Ft(m),h))}})};Tj=function(a){try{var b=a.uris[a.uriIndex],c=_.nu(b);return{U:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{U:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
|
|
376
|
+
_.nu=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Jh("Bad data URI, failed to parse scheme"),new _.N(_.O,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Jh("Bad data URI, failed to extract encoding and MIME type"),new _.N(_.O,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.xj(a).buffer:_.S.Ya(a).buffer,contentType:c}};
|
|
377
|
+
_.pu=function(a,b){var c=_.Qk(_.Rk(a),_.Sk(a));_.ou[c]=b};_.qu=function(a){a=_.Qk(_.Rk(a),_.Sk(a));return _.ou[a]||null};_.ru=function(a){a=_.Qk(_.Rk(a),_.Sk(a));delete _.ou[a]};
|
|
378
|
+
_.su=function(a){a=a.getConfiguration();a=_.M.$a(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.fg?a.backgroundColor:null;this.V=typeof a.windowColor===_.fg?a.windowColor:null;this.N=typeof a.fontColor===_.fg?a.fontColor:null;this.P=typeof a.fontFamily===_.fg?a.fontFamily:null;this.I=typeof a.fontSize===_.fg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.fg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
|
|
379
|
+
_.fg&&(this.o=a.edgeType)};_.xu=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case tu:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case uu:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case vu:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case wu:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Te}};yu=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
|
|
380
|
+
_.Au=function(a){_.su.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+zu++;this.h=document.createElement(_.hg);this.j=this.w=!1;_.Yp(this.l,this.f);document.head.appendChild(this.h);this.Mb()};Bu=function(){};_.Cu=function(){};_.Yg=[];bh=typeof Object.create==_.re?Object.create:function(a){function b(){}b.prototype=a;return new b};
|
|
381
|
+
if(typeof Object.setPrototypeOf==_.re)Du=Object.setPrototypeOf;else{var Eu;a:{var Fu={$i:!0},Ou={};try{Ou.__proto__=Fu;Eu=Ou.$i;break a}catch(a){}Eu=!1}Du=Eu?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
|
|
382
|
+
var ch=Du,gh=typeof Object.defineProperties==_.re?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},eh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;hh.prototype.toString=function(){return this.a};var fh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new hh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
|
|
383
|
+
kh.prototype.A=function(a){this.f=a};kh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};kh.prototype.F=function(a){this.a=a};
|
|
384
|
+
xh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var h=this.j();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.h(function(){h.l()})}this.a.push(g)};var e=eh.setTimeout;c.prototype.h=function(g){e(g,0)};c.prototype.l=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
|
|
385
|
+
g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.C),reject:g(this.h)}};b.prototype.C=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.Ue:var h=null!=g;break a;case _.re:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
|
|
386
|
+
b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.re?this.H(h,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;this.A()};b.prototype.A=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.G=function(g){var h=this.j();
|
|
387
|
+
g.pe(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,t){return typeof q==_.re?function(v){try{m(q(v))}catch(z){n(z)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.pe(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.pe=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(m.l);break;default:throw Error("Unexpected state: "+
|
|
388
|
+
m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.w(g),n=m.next();!n.done;n=m.next())d(n.value).pe(h,l)})};b.all=function(g){var h=_.w(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(z){q[v]=z;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).pe(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var zh=this||self;
|
|
389
|
+
zh.a=!0;_.M={Xi:20,$a:function(a){var b=_.M.R,c=_.M.Rh,d=_.M.sa;return b(a)||c(a)?a:d(a)}};_.J("clpp.utils.obj.cloneItem",_.M.$a);_.M.sa=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.M.Yh(c,{merging:b[d]},1));return c.merging||null};_.J("clpp.utils.obj.merge",_.M.sa);_.M.wc=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
|
|
390
|
+
_.M.Yh=function(a,b,c){var d=_.M.R,e=_.M.Rh,f=_.M.Yh,g=_.M.Ib,h=_.M.El,l=_.M.Qh,m=_.M.Al,n=_.M.fd;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.M.Xi&&(a[p]=f(a[p],n,c));return a};_.M.Rh=function(a){a=typeof a;return a===_.fg||a===_.k||a===_.jd};_.M.Al=function(a){return a instanceof Element};_.M.R=function(a){return null===a||"undefined"===typeof a};_.M.fd=function(a){return typeof a===_.Ue};
|
|
391
|
+
_.M.Ib=function(a){return typeof a===_.re};_.M.da=function(a){return typeof a===_.fg};_.M.ra=function(a){return typeof a===_.k};_.M.Mh=function(a){return typeof a===_.jd};_.M.Qh=function(a){var b=_.M.fd,c=_.M.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.M.El=function(a){var b=_.M.fd,c=_.M.Ib;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
|
|
392
|
+
_.M.la=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.M.fd(a)||!_.M.fd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.M.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.M.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.M.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
|
|
393
|
+
_.M.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.M.Bl=function(a,b,c){return a>=b&&a<=c};_.M.Dg=function(a){for(var b=new Map,c=_.w(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.M.Eg=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
|
|
394
|
+
_.M.Ch=function(a,b){for(var c=b.toLowerCase(),d=_.w(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=_.w(e.value);e=f.next().value;f=f.next().value;if(e.toLowerCase()===c)return f}return null};_.M.Th=function(a,b){for(var c in a){if(!(c in b))return!1;var d=a[c],e=b[c];if(d&&typeof d===_.Ue&&e&&typeof e===_.Ue){if(!_.M.Th(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
|
|
395
|
+
_.M.Uh=function(a,b){if(!_.M.Th(a,b))return!1;for(var c in b){if(!(c in a))return!0;var d=a[c],e=b[c];if(!d&&e||d&&typeof d===_.Ue&&e&&typeof e===_.Ue&&_.M.Uh(d,e))return!0}return!1};var Eh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Eh);var Bh=3,Ah={},Wu=[];_.J("clpp.log.getLoggers",function(){return _.M.$a(Ah)});_.J("clpp.log.addInterceptor",function(a){a&&Wu.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=Wu.indexOf(a),0<=a&&Wu.splice(a,1))});_.J("clpp.log.getTagLevel",Ch);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Ah[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.M.da(b)&&(b=Fh(b)),Ah[a]=b)});
|
|
396
|
+
_.J("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.M.da(a)&&(a=Fh(a));Bh=a});_.J("clpp.log.getLogLevel",function(){return Bh});_.u=_.K.prototype;
|
|
397
|
+
_.u.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Ch(this.tag);if(0<=d){if(d<c)return}else if(Bh<c)return;this.tag&&Array.prototype.unshift.call(arguments,"["+this.tag+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
|
|
398
|
+
1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.w(Wu);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.u.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.u.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.u.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
|
|
399
|
+
_.u.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.u.Ck=function(a){return a?this.tag?new _.K(this.tag+"."+a):new _.K(a):this};_.J("clpp.log.Logger",_.K);_.K.prototype.createChild=_.K.prototype.Ck;_.K.prototype.error=_.K.prototype.error;_.K.prototype.warn=_.K.prototype.warn;_.K.prototype.debug=_.K.prototype.debug;_.K.prototype.info=_.K.prototype.info;_.K.prototype.log=_.K.prototype.log;var Gh=new _.K("clpp");_.J("clpp.log.info",_.Hh);
|
|
400
|
+
_.J("clpp.log.debug",_.Ih);_.J("clpp.log.warn",_.Dh);_.J("clpp.log.error",_.Jh);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Mh=new _.K("clpp.players");_.Lh={};_.Ph.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Ph.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Ph.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};_.Ph.prototype.clear=function(){this.a={}};Qh.prototype.fb=function(a){try{this.Tc.handleEvent?this.Tc.handleEvent(a):this.Tc.call(this.a,a)}catch(b){_.Jh("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.L.prototype.stopImmediatePropagation=function(){this.f=!0};_.L.prototype.stopPropagation=function(){};_.u=Rh.prototype;
|
|
401
|
+
_.u.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].fb(a),b[c].dn&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.u.on=function(a,b,c){this.a.push(a,new Qh(a,b,c||this.f));return b};_.u.one=function(a,b,c){this.a.push(a,new Qh(a,b,c||this.f,!0));return b};_.u.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Tc===b&&(d=this.a.remove(a,c[e])||d);return d};_.u.clear=function(){this.a.clear()};_.Sh.prototype.release=function(){_.Vh(this)};_.Sh.prototype.on=function(a,b,c,d){a=new Xh(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Sh.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)};_.Sh.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||(Uh(f),this.a.remove(b,f))}};Yh.prototype.release=function(){this.f.release();this.h=[];this.a=null};Yh.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();a.l=null;a.j=null;_.A(b)})};Yh.prototype.getTimelineCues=function(){return this.h};_.ti.prototype.la=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.ti);_.ti.positionAlign={LEFT:_.Be,RIGHT:_.Ce,CENTER:_.td,AUTO:"auto"};_.ni="text";_.ti.payloadType={TEXT:_.ni,VTT_XML:_.Mg,TTML_XML:_.qg};_.oi=_.td;_.Xu={LEFT:_.ye,RIGHT:_.Pf,CENTER:_.oi,START:_.ye,END:_.Pf};_.ti.textAlign=_.Xu;var si="ltr";_.ti.direction={HORIZONTAL_LEFT_TO_RIGHT:si,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.pi="horizontal-tb";
|
|
402
|
+
_.ti.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.pi,VERTICAL_LEFT_TO_RIGHT:_.Dg,VERTICAL_RIGHT_TO_LEFT:_.Fg};_.qi=0;_.ti.lineInterpretation={LINE_NUMBER:_.qi,PERCENTAGE:1};_.ri=_.bg;_.Yu={CENTER:_.td,START:_.ri,END:_.le};_.ti.lineAlign=_.Yu;_.J("clpp.text.CueRegion",_.wi);_.ui=1;_.wi.units={PX:0,PERCENTAGE:_.ui,LINES:2};var vi="";_.wi.scrollMode={NONE:vi,UP:"up"};_.wi.displayAlign={BEFORE:"flex-end",CENTER:_.td,AFTER:"flex-start"};
|
|
403
|
+
_.wi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Jd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};xi.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};xi.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Mc,function(c){return yi(b,c)}),this.a.on(this.f,vd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.Wf&&(e.mode=_.te)}}))};
|
|
404
|
+
xi.prototype.o=function(a){var b=new _.ti(a.startTime,a.endTime,a.text,_.Mg);if(_.M.da(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Dg;break;case "rl":b.writingMode=_.Fg}_.M.ra(a.size)&&(b.size=a.size);if(_.M.da(a.align))switch(a.align){case _.ye:case _.bg:b.textAlign=_.ye;break;case _.td:b.textAlign=_.oi;break;case _.Pf:case _.le:b.textAlign=_.Pf}_.M.ra(a.position)&&(b.position=a.position);if(_.M.da(a.positionAlign))switch(a.positionAlign){case _.Be:b.positionAlign=_.Be;break;case _.td:b.positionAlign=
|
|
405
|
+
_.td;break;case _.Ce:b.positionAlign=_.Ce}_.M.ra(a.line)&&(b.line=a.line);if(_.M.da(a.lineAlign))switch(a.lineAlign){case _.bg:b.lineAlign=_.ri;break;case _.td:b.lineAlign=_.td;break;case _.le:b.lineAlign=_.le}_.M.Mh(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.qi:1);return b};_.x(_.N,Error);_.N.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=zi(this.severity,this.category,this.code,this.data))};_.N.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.J("clpp.Error",_.N);_.O=2;_.N.Severity={RECOVERABLE:1,FATAL:_.O};_.N.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
|
|
406
|
+
_.N.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,
|
|
392
407
|
TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,THUMBNAIL_ERROR:2014,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
|
|
393
|
-
MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,UNKNOWN_TRACK:3102,MEDIA_DECRYPTION_ERROR:3103,PLAY_NOT_ALLOWED:3200,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,
|
|
394
|
-
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,
|
|
395
|
-
DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID_VERSION:4036,SMOOTH_INVALID_FRAGMENT_METADATA:4037,SMOOTH_REQUIRED_ATTRIBUTE_MISSING:4038,SMOOTH_TRUNCATED_MEDIA_FILE:4039,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4040,HLS_MSE_ENCRYPTED_TS_NOT_SUPPORTED:4041,HLS_PLAYLIST_NOT_UTF8:4042,HLS_PLAYLIST_EMPTY:4043,
|
|
396
|
-
HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEATURE:4046,HLS_INCOMPATIBLE_PLAYLIST_UPDATE:4047,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,
|
|
397
|
-
EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,
|
|
398
|
-
WRONG_ORDER_OF_OPERATIONS:7008,NOT_SUPPORTED:7009,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,
|
|
399
|
-
YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3,
|
|
400
|
-
_.x(_.
|
|
401
|
-
_.
|
|
402
|
-
".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.
|
|
403
|
-
_.
|
|
404
|
-
_.
|
|
405
|
-
"cs"],["dan","da"],["deu","de"],[_
|
|
408
|
+
MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,UNKNOWN_TRACK:3102,MEDIA_DECRYPTION_ERROR:3103,PLAY_NOT_ALLOWED:3200,PAUSE_FAILED:3201,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,
|
|
409
|
+
DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,
|
|
410
|
+
DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID_VERSION:4036,SMOOTH_INVALID_FRAGMENT_METADATA:4037,SMOOTH_REQUIRED_ATTRIBUTE_MISSING:4038,SMOOTH_TRUNCATED_MEDIA_FILE:4039,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4040,HLS_MSE_ENCRYPTED_TS_NOT_SUPPORTED:4041,HLS_PLAYLIST_NOT_UTF8:4042,HLS_PLAYLIST_EMPTY:4043,
|
|
411
|
+
HLS_INVALID_VALUE:4044,HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEATURE:4046,HLS_INCOMPATIBLE_PLAYLIST_UPDATE:4047,INVALID_STREAMS_CHOSEN:5005,STREAMING_ERROR:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,
|
|
412
|
+
NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,
|
|
413
|
+
INVALID_CONTAINER_ELEMENT:7006,INVALID_ARGUMENT:7007,WRONG_ORDER_OF_OPERATIONS:7008,NOT_SUPPORTED:7009,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,
|
|
414
|
+
YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3,
|
|
415
|
+
SESSIONS_INVALID_CONFIGURATION:15E3};_.x(_.Ai,Error);var Ki=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.u=_.Fi.prototype;_.u.tb="";_.u.Dc="";_.u.Ra="";_.u.ld=null;_.u.Ga="";_.u.sc="";_.u.toString=function(){var a=[],b=this.tb;b&&a.push(Ni(b,Zu,!0),":");if(b=this.Ra){a.push("//");var c=this.Dc;c&&a.push(Ni(c,Zu,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ld;null!=b&&a.push(":",String(b))}if(b=this.Ga)this.Ra&&"/"!=b.charAt(0)&&a.push("/"),a.push(Ni(b,"/"==b.charAt(0)?$u:av,!0));(b=this.a.toString())&&a.push("?",b);(b=this.sc)&&a.push("#",Ni(b,bv));return a.join("")};
|
|
416
|
+
_.u.resolve=function(a){var b=new _.Fi(this);"data"===b.tb&&(b=new _.Fi);var c=!!a.tb;c?Gi(b,a.tb):c=!!a.Dc;c?b.Dc=a.Dc:c=!!a.Ra;c?b.Ra=a.Ra:c=null!=a.ld;var d=a.Ga;if(c)Hi(b,a.ld);else if(c=!!a.Ga){if("/"!=d.charAt(0))if(this.Ra&&!this.Ga)d="/"+d;else{var e=b.Ga.lastIndexOf("/");-1!=e&&(d=b.Ga.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(""):
|
|
417
|
+
".."==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.Ga=d:c=""!==a.a.toString();c?_.Ii(b,Ji(a.a)):c=!!a.sc;c&&(b.sc=a.sc);return b};var Zu=/[#\/\?@]/g,av=/[#\?:]/g,$u=/[#\?]/g,Oi=/[#\?@]/g,bv=/#/g;_.Mi.prototype.a=null;_.Mi.prototype.h=null;
|
|
418
|
+
_.Mi.prototype.add=function(a,b){if(!this.a&&(this.a={},this.h=0,this.f))for(var c=this.f.split("\x26"),d=0;d<c.length;d++){var e=c[d].indexOf("\x3d"),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.f=null;(c=this.a.hasOwnProperty(a)&&this.a[a])||(this.a[a]=c=[]);c.push(b);null!==this.h&&this.h++;return this};
|
|
419
|
+
_.Mi.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};var Qi;_.P="text";_.Ip={VIDEO:_.r,AUDIO:_.$c,TEXT:_.P,Mn:_.Rc,IMAGE:_.ve,Zi:_.ig};_.cv=1/15;Qi={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]};Qi[_.P]=[/^vtt$/,/^wvtt/,/^stpp/];var Si={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Vi={text:{mp4:Uc,m4s:Uc,m4i:Uc,cmft:Uc,vtt:_.lg,ttml:_.Xc},video:{mp4:_.Hg,m4s:_.Hg,m4i:_.Hg,m4v:_.Hg,cmfv:_.Hg,ts:_.Gg},audio:{mp4:_.dd,m4s:_.dd,m4i:_.dd,m4a:_.dd,cmfa:_.dd,ts:_.Gg,aac:_.ad,ec3:_.cd,ac3:_.bd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Xi.prototype.toString=function(){function a(d){return d.name+"\x3d"+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.attributes?this.attributes.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};_.Xi.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.aj.prototype.getPosition=function(){return this.position};_.aj.prototype.Od=function(){return this.ka?this.ka-this.ya+1:null};_.aj.prototype.f=Zg(0);_.x(_.bj,_.aj);var ej=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",
|
|
420
|
+
"cs"],["dan","da"],["deu","de"],[_.Wd,"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",
|
|
406
421
|
"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",
|
|
407
422
|
"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",
|
|
408
423
|
"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",
|
|
409
|
-
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var mj=function
|
|
410
|
-
_.J("clpp.utils.strings.fromUtf8",_.S.
|
|
411
|
-
_.S.
|
|
412
|
-
_.S.
|
|
413
|
-
c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.S.
|
|
414
|
-
_.J("clpp.utils.strings.toUtf16",_.S.
|
|
415
|
-
_.S.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.S.endsWith);_.S.
|
|
416
|
-
_.S.
|
|
417
|
-
_.S.
|
|
418
|
-
_.S.
|
|
419
|
-
d+'".');c.add(d)})},
|
|
420
|
-
d.getAttribute(_.
|
|
421
|
-
_.w(_.Y.
|
|
422
|
-
if(c.value===_.
|
|
423
|
-
_.
|
|
424
|
-
d+a-1}return{
|
|
425
|
-
d.
|
|
426
|
-
a);null==c.iv&&(c.iv=Bj(new Uint8Array(12),new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255])));return c},
|
|
427
|
-
c){return b+c},0)}
|
|
428
|
-
|
|
429
|
-
d=_.Y.
|
|
430
|
-
width:
|
|
431
|
-
|
|
432
|
-
c.value,c.name.startsWith("X-")&&(a[c.name]=c.value);return _.
|
|
433
|
-
null):_.
|
|
434
|
-
_.
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
p.
|
|
438
|
-
|
|
439
|
-
_.
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
_.
|
|
443
|
-
_.
|
|
444
|
-
_.
|
|
445
|
-
_.
|
|
446
|
-
_.
|
|
447
|
-
var hl=null,gl=null,jl=new _.K(Ld),ql="android",pl="ios",vl="linux",rl="osx",sl="windows",tl="tizen",ul="webos",ol=wg,yl=wg,xl={windows:{os_version:/windows\s+?nt\s([\d.]+)/i,ie:/windows\s+?nt.+?trident\/[\d.]+.*rv:([\d.]+)/i,edge:/windows\s+?nt.+?edge?\/([\d.]+)/i,chrome:/windows\s+?nt.+?chrome\/([\d.]+)/i,firefox:/windows\s+?nt.+?firefox\/([\d.]+)/i,opera:/windows\s+?nt.+?opr\/([\d.]+)/i},osx:{os_version:/macintosh.+?([\d._]+)/i,safari:/macintosh.+?version\/([\d._]+).+?safari/i,edge:/macintosh.+?edge?\/([\d._]+)/i,
|
|
424
|
+
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var mj=function dv(a){var c;return _.wh(dv,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.y(d,c,3):d.F(0);c++;return d.F(2)})};_.J("clpp.utils.BufferUtils",jj);jj.toArrayBuffer=tj;jj.toDataView=_.sj;jj.toInt32Array=_.rj;jj.toUint32Array=qj;jj.toUint16Array=pj;jj.toUint8Array=_.lj;jj.equal=nj;_.S={};_.S.hd=new _.K("clpp.utils.strings");_.S.Wi=16E3;_.S.fromCharCode=function(a){for(var b=_.S.Wi,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.S.aa=function(a){if(!a)return"";a=_.lj(a);239===a[0]&&187===a[1]&&191===a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(Za);return a}a=escape(_.S.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Za);}};
|
|
425
|
+
_.J("clpp.utils.strings.fromUtf8",_.S.aa);
|
|
426
|
+
_.S.tc=function(a,b,c){if(!a)return"";var d=_.S.hd;if(!c&&0!==a.byteLength%2)throw d.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.lj(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);a instanceof ArrayBuffer?d=a:(c=new Uint8Array(a.byteLength),c.set(_.lj(a)),d=c.buffer);a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return _.S.fromCharCode(c)};
|
|
427
|
+
_.S.Ld=function(a,b){if(_.M.da(a))return a;var c="",d=!!b,e=_.lj(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.S.aa(e):254===e[0]&&255===e[1]?c=_.S.tc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.S.tc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.S.hd.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.S.tc(a,!1):0===e[1]&&0===e[3]?c=_.S.tc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.S.aa(a));if(c)return d&&(c=escape(c)),
|
|
428
|
+
c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.S.Ld);_.S.Ya=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.J("clpp.utils.strings.toUtf8",_.S.Ya);_.S.We=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};
|
|
429
|
+
_.J("clpp.utils.strings.toUtf16",_.S.We);_.S.nd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=qj(e):2===c?f=pj(e):f=_.lj(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.J("clpp.utils.strings.toByteArray",_.S.nd);_.S.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.J("clpp.utils.strings.startsWith",_.S.startsWith);
|
|
430
|
+
_.S.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.S.endsWith);_.S.Me=function(a){return!!(a&&0<a.length)};_.S.empty=function(a){return!a||0===a.length};_.S.eo=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.S.io=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
|
|
431
|
+
_.S.qf=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.M.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.J("clpp.utils.strings.bitrateToString",_.S.qf);
|
|
432
|
+
_.S.Jk=function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.J("clpp.utils.strings.durationToString",_.S.Jk);
|
|
433
|
+
_.S.Lk=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.S.sl=function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b};_.J("clpp.utils.strings.hashCode",_.S.sl);_.S.Fn=function(a){_.S.Gi.innerHTML=a;return _.S.Gi.textContent};_.S.Gi=document.createElement("span");_.S.sg=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.S.Fn(a);return a=a.replace(/<[^>]+>/gi,"")};_.S.$h=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.J("clpp.utils.Uint8ArrayUtils",uj);uj.toStandardBase64=_.vj;uj.concat=Bj;uj.equal=_.Aj;uj.toHex=_.zj;uj.fromHex=_.yj;uj.fromBase64=_.xj;uj.toBase64Url=_.wj;_.Y={Ob:function(a,b){return a.filter(function(c){return c.name===b})},Li:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.Yi(d,"VALUE"),f=_.Yi(d,"NAME"),g=_.Yi(d,"IMPORT"),h=_.Yi(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.N(_.O,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;if(c.has(d))throw new _.N(_.O,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.N(_.O,4,4044,'EXT-X-DEFINE invalid variable name "'+
|
|
434
|
+
d+'".');c.add(d)})},Gf:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Zi(d,_.ac);return c.includes(d)})},ed:function(a,b){return a.some(function(c){return c.name===b})},Ta:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.N(_.O,4,4024,{missingTag:b});return a},Eh:function(a,b){return _.Y.Ta(a,b,{required:!0})},dl:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.Ta(a,b))?Number(a.value):c},no:function(a,b,c){return a.filter(function(d){var e=
|
|
435
|
+
d.getAttribute(_.ac);d=d.getAttribute(_.eb);return e.value===b&&d.value===c})},Sm:function(a){var b=_.Y.Ta(a,"EXT-X-TILES");if(!b)return{Pd:1,ee:1,durationPerTile:null};a=_.Yi(b,"LAYOUT")||"1x1";b=_.Yi(b,_.Ga);a=_.hj(a);return{Pd:a.Pd,ee:a.ee,durationPerTile:b?Number(b):null}},Bd:function(a,b,c){c=void 0===c?!0:c;a=new _.Fi(a);b=new _.Fi(b);b=a.resolve(b).toString();return c?b:decodeURI(b)},Nh:function(a){return/^#(?!EXT)/m.test(a)},Wh:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=
|
|
436
|
+
_.w(_.Y.Ue(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},Ue:function(a){var b=new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},tl:function(a){return a.some(function(b){return _.Y.ed(b.X,Na)})},hj:function(a){return _.Y.Ue(a).filter(_.Y.Lh)},Rm:function(a,b){var c=_.Y.Ta(a,Na);if(b&&c)return _.jc;c=_.Y.Ta(a,Sa);if(!c)return"LIVE";
|
|
437
|
+
if(c.value===_.jc)return _.jc;if("EVENT"===c.value)return"EVENT";throw new _.N(_.O,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+c.value);},ih:function(a){a={AUDIO:_.$c,VIDEO:_.r,SUBTITLES:_.P,"CLOSED-CAPTIONS":_.P}[a.toUpperCase()];if(!a)throw new _.N(_.O,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Ak:function(a){var b=_.Zi(a,_.ac).toUpperCase();if(_.Y.ih(b)!==_.P)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.ig;b===_.ra&&(c=
|
|
438
|
+
_.od);a&&(c=_.pe);return c},oi:function(a,b,c){c=void 0===c?!1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.N(_.O,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.N(_.O,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.N(_.O,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.N(_.O,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=
|
|
439
|
+
d+a-1}return{ya:d,ka:e}},ri:function(a,b){var c=_.Y.Ta(a,Ja);return _.Y.oi(c?c.value:null,b)},Mm:function(a){a=_.Y.Eh(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},si:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={qe:!1,lj:!1,mj:null,ul:null,vi:null},e=_.Y.Ta(a,Wa,{required:b.Ci});if(!e)return d;d.qe="YES"===_.Yi(e,"CAN-BLOCK-RELOAD");d.lj="YES"===_.Yi(e,"CAN-SKIP-DATERANGES");d.mj=c(_.Yi(e,"CAN-SKIP-UNTIL"));d.ul=c(_.Yi(e,"HOLD-BACK"));
|
|
440
|
+
d.vi=c(_.Yi(e,"PART-HOLD-BACK",void 0,{required:b.Ci}));return d},pi:function(a,b,c){c=void 0===c?!1:c;a=_.Yi(a,"BYTERANGE");return _.Y.oi(a,b,c)},Pm:function(a){var b=_.Y.Ob(a,"EXT-X-MEDIA"),c=_.Y.Ob(a,_.Xa);a=_.Y.Ob(a,"EXT-X-IMAGE-STREAM-INF");return{jd:{fj:_.Y.Gf(b,["AUDIO",_.ic]),closedCaptions:_.Y.Gf(b,_.ra),yn:_.Y.Gf(b,_.Tb)},fe:c,Lf:a}},Dk:function(a,b){var c=_.Y.ri(a.X,null);return new _.bj(0,0,0,function(){return[a.a]},c.ya,c.ka,0,b)},If:function(a,b){if(null==a)return null;var c=Object.assign({},
|
|
441
|
+
a);null==c.iv&&(c.iv=Bj(new Uint8Array(12),new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255])));return c},ll:function(a){var b=a.T;a=b[0].startTime;b=b[b.length-1].endTime;return{dc:a,Je:b,duration:b-a}},il:function(a){var b=Infinity,c=Infinity;_.Y.hj(a).forEach(function(d){d=_.Y.ll(d);b=Math.min(b,d.dc);c=Math.min(c,d.duration)});return{dc:b,duration:c}},Lh:function(a){return a.type===_.$c||a.type===_.r},Mk:function(a){return a.filter(_.Y.Lh)},hl:function(a){return a.map(function(b){return _.Y.il(b).duration}).reduce(function(b,
|
|
442
|
+
c){return b+c},0)},$k:function(a,b){return a&&b?_.To(a.drmInfos,b.drmInfos)?_.So(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Ek:function(a,b){return(b?b.Rb():"")+" - "+(a?a.Rb():"")},kh:function(a){return(a.video?a.video.jc:"")+" - "+(a.audio?a.audio.jc:"")},Om:function(a,b,c,d){if(b===_.jc)return{delay:0,Cc:0};b=_.Y.Ta(a,Ra);if(c&&b)return c=Number(_.Zi(b,"PART-TARGET")),null!=d?{delay:d,Cc:c}:{delay:_.Y.si(a,{Ci:!0}).vi,Cc:c};a=_.Y.Eh(a,Ya);a=Number(a.value);return null!=d?{delay:d,
|
|
443
|
+
Cc:a}:{delay:3*a,Cc:a}},gl:function(a){var b=[];_.Y.Wh(a,function(c){b.push(c.Jl)});return{delay:Math.max.apply(Math,_.ah(b.map(function(c){return c.delay}))),Cc:Math.min.apply(Math,_.ah(b.map(function(c){return c.Cc})))}},we:function(a,b){return a+":"+b},Cn:function(a){var b=_.Y.we,c=new Map;a.forEach(function(d){var e=b(d.yd(),d.el());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},zh:function(a){return _.cj(a||_.sg)},Im:function(a){var b=new Map;a=_.w(a);for(var c=a.next();!c.done;c=
|
|
444
|
+
a.next()){c=c.value;var d=_.Yi(c,_.rb);d=_.Y.zh(d);var e=_.Zi(c,_.eb);c=_.Zi(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Ik:function(a){a=_.w(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.Zk().filter(function(d){return"mp4a.40.34"!==d});b.nn(c)}},Tm:function(a){if(null==a.getAttribute("FRAME-RATE")&&null==a.getAttribute(_.Qb))return null;var b=_.Yi(a,"FRAME-RATE");a=_.Yi(a,_.Qb);var c=_.w(a?a.split("x"):[null,null]);a=c.next().value;
|
|
445
|
+
c=c.next().value;return{frameRate:fj(b),width:fj(a),height:fj(c)}},Fl:function(a){return"EXT-X-MEDIA"!==a.name?!0:_.Yi(a,_.ac)===_.Tb},Jm:function(a,b,c,d){var e=_.Yi(a,"ID"),f=_.Yi(a,"START-DATE");if(null===e||null===f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),null;b=d?c-b:-b;var g=new Date(f);f=g.getTime()/1E3+b;e={id:e,startTime:f,startDate:g};c=fj(_.Yi(a,_.Ga));void 0!==c&&0<=c&&(e.duration=c);d=fj(_.Yi(a,"PLANNED-DURATION"));
|
|
446
|
+
void 0!==d&&0<=d&&(e.plannedDuration=d);var h=_.Yi(a,"CLASS");null!==h&&(e.schemeIdUri=h);var l=_.Yi(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=g.getTime()&&(e.endDate=l);g=_.Y.Hm(a)||{};var m=_.Yi(a,"CUE");m&&(g.Pn=m.split(","));if(h===Md){h=_.Y.Nm(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;g=Object.assign(g,h)}_.M.wc(g)&&(e.customAttributes=g);e.endTime=l?l.getTime()/1E3+b:c?f+c:d?f+d:f;e.type=_.ev;return e},Hm:function(a){var b=
|
|
447
|
+
a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.M.wc(a)?a:null},Nm:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case rc:a[rc]=c.value;break;case qc:a[qc]=c.value;break;case tc:a[tc]=fj(c.value);break;case sc:a[sc]=fj(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case "X-RESTRICT":a["X-RESTRICT"]=
|
|
448
|
+
c.value.split(",")}return a[rc]&&a[qc]||!a[rc]&&!a[qc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null):_.M.wc(a)?a:null},sh:function(a,b){if(!a)return null;var c=a.jc;return b.find(function(d){return d.Rb()===c})||null}};_.Y.g=new _.K("clpp.hls.Utils");_.fv=new Set([_.Ma,Na,"EXT-X-I-FRAMES-ONLY",_.Qa,Ra,Sa,Wa,Ya]);_.gv=new Set(["EXTINF",Ja,_.La,_.Oa,_.Pa,_.Va]);_.hv=new Set(["EXT-X-PART",_.Ua]);_.iv=new Set([_.Ka]);var Fj=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",Fj);_.J("clpp.net.makeRequest",_.Jj);_.Ij=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Ij});_.Oj.prototype.resolve=function(){};_.Oj.prototype.reject=function(){};_.Pj.prototype.abort=function(){this.a=!0;return this.A()};_.Rj.prototype.destroy=function(){for(var a=[],b=_.w(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.U["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.u=_.Zj.prototype;_.u.tn=function(a){0<a?_.Dh("Rate limit set to "+a+"bps"):_.Dh("Rate limit disabled");this.l=a};_.u.release=function(){return this.o.destroy()};_.u.destroy=function(){this.w=!0;this.f=[];this.h=[];return this.o.destroy()};_.u.nf=function(a){this.f.push(a)};_.u.Qc=function(a){this.h.push(a)};_.u.kg=function(a){this.f=this.f.filter(function(b){return b!==a})};_.u.ae=function(a){this.h=this.h.filter(function(b){return b!==a})};
|
|
449
|
+
_.u.fetch=function(a){var b=this;if(this.w)return new gu(Promise.reject(new _.N(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.l&&0<this.l&&(a.rateLimitBps=this.l);for(var c=[],d=_.w(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.w(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.w(this.h);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.w(a.responseModifiers),e=d.next();!e.done;e=
|
|
450
|
+
d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Oj;try{var f={},g=_.w(a.requestModifiers);for(e=g.next();!e.done;f={df:f.df},e=g.next())f.df=e.value,d=d.then(function(n){return function(p){if(h.a)throw new _.N(_.O,1,7001,p?{url:p.uris[p.uriIndex],request:p}:null);return n.df(p)||p}}(f))["catch"](function(n){if(n instanceof _.N)throw n;throw new _.N(_.O,1,1006,null,n);});d=d.then(function(n){var p=new _.Fi(n.uris[n.uriIndex]),q=p.tb;q||(q=location.protocol,q=q.slice(0,-1),Gi(p,q),n.uris[n.uriIndex]=
|
|
451
|
+
p.toString());q=b.a[q];if(!q)throw new _.N(_.O,1,1E3,{url:p.toString()});return{request:n,plugin:q}});var h=new gu(d);g={};var l=_.w(a.responseModifiers);for(e=l.next();!e.done;g={ke:g.ke},e=l.next())g.ke=e.value,h.then(function(n){return function(p){function q(){if(h.a)throw new _.N(_.O,1,7001,p?{url:p.request.uris[p.request.uriIndex],request:p.request}:null);}q();var t=n.ke(p)||p;q();return t}}(g))["catch"](function(n){return function(p){if(p instanceof _.N&&p.data&&p.data.response){var q=n.ke(p.data.response);
|
|
452
|
+
if(q&&q.then)return q.then(function(){return Promise.reject(p)})}return Promise.reject(p)}}(g))["catch"](function(n){if(n instanceof _.N)throw n;throw new _.N(_.O,1,1007,null,n);});l={};var m=_.w(this.j);for(e=m.next();!e.done;l={ef:l.ef},e=m.next())l.ef=e.value,h["catch"](function(n){return function(p){p instanceof _.N&&p.data&&p.data.response||n.ef({uri:a.uris[a.uriIndex],data:(new Uint8Array(0)).buffer,status:-1,timeMs:0,headers:{},request:a});return Promise.reject(p)}}(l))["catch"](function(n){if(n instanceof
|
|
453
|
+
_.N)throw n;throw new _.N(_.O,1,1007,null,n);});_.Sj(this.o,h);c.resolve(a);return h}catch(n){return new gu(Promise.reject(n))}};_.J("clpp.net.NetworkEngine",_.Zj);_.Zj.prototype.fetch=_.Zj.prototype.fetch;_.Zj.prototype.removeResponseModifier=_.Zj.prototype.ae;_.Zj.prototype.removeRequestModifier=_.Zj.prototype.kg;_.Zj.prototype.addResponseModifier=_.Zj.prototype.Qc;_.Zj.prototype.addRequestModifier=_.Zj.prototype.nf;_.Zj.prototype.setRateLimit=_.Zj.prototype.tn;var hk;_.dk.prototype.la=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.trickPlay===a.trickPlay&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&ki(this.roles,a.roles)&&ki(this.accessibility,a.accessibility,nk)};_.dk.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.dk);
|
|
454
|
+
_.dk.prototype.toString=_.dk.prototype.toString;_.J("clpp.Rendition",_.ok);_.jk=1;_.gk=_.r;_.fk=_.$c;_.T="text";hk=_.Ne;_.jv={VIDEO:_.gk,AUDIO:_.fk,TEXT:_.T,METADATA:hk};_.dk.Type=_.jv;_.J("clpp.utils.url.queryString",_.rk);uk.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.D(n,2),_.y(n,Ak(c,a),4);case 4:d=n.f;_.oh(n,3);break;case 2:return e=_.F(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.D(n,5);if(!b.enableHlsVideoTrackInfo){n.F(7);break}return _.y(n,xk(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.oh(n,6);break;case 5:h=_.F(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
|
|
455
|
+
h.message);case 6:return _.D(n,9),_.y(n,zk(d),11);case 11:l=n.f;f.jd=l;_.oh(n,10);break;case 9:m=_.F(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Gk=[];_.u=_.U.prototype;_.u.uf=function(){return!0};_.u.Sk=function(a){return this.getVideoTracks().find(function(b){return _.M.la(b,a,a&&Object.keys(a))})};_.u.Ok=function(a){return this.getAudioTracks().find(function(b){return _.M.la(b,a,a&&Object.keys(a))})};_.u.Qk=function(a){return this.ia().find(function(b){return _.M.la(b,a,a&&Object.keys(a))})};_.u.Rk=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.la(b,a,a&&Object.keys(a))})};
|
|
456
|
+
_.u.Nk=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.la(b,a,a&&Object.keys(a))})};_.u.Pk=function(a){return this.ia().flatMap(function(b){return b.renditions}).find(function(b){return _.M.la(b,a,a&&Object.keys(a))})};_.J("clpp.TrackManager",_.U);_.U.prototype.isAbrEnabled=_.U.prototype.qa;_.U.prototype.addTextTrack=_.U.prototype.addTextTrack;_.U.prototype.findTextRendition=_.U.prototype.Pk;_.U.prototype.findAudioRendition=_.U.prototype.Nk;
|
|
457
|
+
_.U.prototype.findVideoRendition=_.U.prototype.Rk;_.U.prototype.findTextTrack=_.U.prototype.Qk;_.U.prototype.findAudioTrack=_.U.prototype.Ok;_.U.prototype.findVideoTrack=_.U.prototype.Sk;_.U.prototype.setTextRendition=_.U.prototype.vb;_.U.prototype.setAudioRendition=_.U.prototype.ub;_.U.prototype.setVideoRendition=_.U.prototype.cb;_.U.prototype.setTextTrack=_.U.prototype.Qa;_.U.prototype.setAudioTrack=_.U.prototype.Da;_.U.prototype.setVideoTrack=_.U.prototype.wb;_.U.prototype.getTextTrack=_.U.prototype.xa;
|
|
458
|
+
_.U.prototype.getAudioTrack=_.U.prototype.ma;_.U.prototype.getVideoTrack=_.U.prototype.Oa;_.U.prototype.getLoadingTextRendition=_.U.prototype.Bb;_.U.prototype.getLoadingAudioRendition=_.U.prototype.Ab;_.U.prototype.getLoadingVideoRendition=_.U.prototype.lb;_.U.prototype.getTextRendition=_.U.prototype.Na;_.U.prototype.getAudioRendition=_.U.prototype.Sa;_.U.prototype.getVideoRendition=_.U.prototype.na;_.U.prototype.getTextTracks=_.U.prototype.ia;_.U.prototype.getAudioTracks=_.U.prototype.getAudioTracks;
|
|
459
|
+
_.U.prototype.getVideoTracks=_.U.prototype.getVideoTracks;_.U.prototype.canSelectVideoTracks=_.U.prototype.uf;var Kk=new Map,Jk=1,Ok=2,Nk=3,Mk=4;_.kv=(new Map).set(_.Id,_.Id).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Ug,_.Ug).set(_.se,_.se).set("channelsCount","channels");_.Tk.prototype.ea=function(a){return Uk(this,a,!1)};_.Tk.prototype.xb=function(a){return Uk(this,a,!0)};_.Tk.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Vk.prototype.vg=function(){this.stop();this.f();return this};_.Vk.prototype.ea=function(a){var b=this;this.stop();this.a=(new _.Tk(function(){b.f()})).ea(a);return this};_.Vk.prototype.xb=function(a){var b=this;this.stop();this.a=(new _.Tk(function(){b.f()})).xb(a);return this};_.Vk.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.J("clpp.utils.Timer",_.Vk);_.Vk.prototype.stop=_.Vk.prototype.stop;_.Vk.prototype.tickEvery=_.Vk.prototype.xb;_.Vk.prototype.tickAfter=_.Vk.prototype.ea;
|
|
460
|
+
_.Vk.prototype.tickNow=_.Vk.prototype.vg;_.J(Hd,Wk);Wk.getInfo=_.Wj;
|
|
461
|
+
var gl=null,fl=null,il=new _.K(Hd),pl="android",ol="ios",ul="linux",ql="osx",rl="windows",sl="tizen",tl="webos",nl=tg,xl=tg,wl={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,
|
|
448
462
|
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,
|
|
449
463
|
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},
|
|
450
|
-
webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.x(
|
|
451
|
-
_.
|
|
452
|
-
a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.
|
|
453
|
-
5):
|
|
454
|
-
_.
|
|
455
|
-
_.
|
|
456
|
-
_.
|
|
457
|
-
_.
|
|
458
|
-
_.
|
|
459
|
-
_.
|
|
460
|
-
_.
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
_.
|
|
464
|
-
_.
|
|
465
|
-
_.
|
|
466
|
-
_.
|
|
467
|
-
_.J("clpp.events.RELEASING",_.
|
|
468
|
-
_.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.
|
|
469
|
-
_.J("clpp.events.AD_FIRST_QUARTILE",_.
|
|
470
|
-
_.J("clpp.events.
|
|
471
|
-
_.J("clpp.events.
|
|
472
|
-
_.
|
|
473
|
-
_.
|
|
474
|
-
_.
|
|
475
|
-
_.
|
|
476
|
-
_.
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
_.
|
|
482
|
-
_.
|
|
483
|
-
|
|
464
|
+
webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.x(yl,_.U);_.u=yl.prototype;_.u.uf=function(){return!_.bl()};
|
|
465
|
+
_.u.$f=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,t,v,z,C,H,E,B,G;return _.I(function(Q){if(1==Q.a){if(!b)return c.g.warn(zb),Q["return"]();d=b.track;if(!d)return c.g.warn(Cb),Q["return"]();e=a===_.fk;f=a===_.gk;g=a===_.T;h=e||f;l=b.target;if(m=c.h.find(function(R){return Ml(R,d,a)}))return c.g.warn("Track from event already exists",d,m),Q["return"]();n=kk(a,d);p=Ql(d);if(g){if(d.kind===_.Ne)return Q["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(R){return Ml(n,R,
|
|
466
|
+
a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Sc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(R){return R.type===a&&_.M.la(R,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug(Xb+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),Q["return"]();_.D(Q,2);v=new _.ok(n.id,n);n.renditions.push(v);c.h.push(n);z=c.m.getConfiguration().safari;return Cl(c,a,z)?_.y(Q,Fl(c,n,z),5):Dl(c,a,z)?_.y(Q,Gl(c,n,z),
|
|
467
|
+
5):Q.F(5)}if(2!=Q.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.lv)),C=Jl(c,a).length,H=!(!l||!l.length),E=l&&l.length||0,B=function(){c.g.debug(Xb+a+" track active. Native track active: "+(p+". Number of tracks: ")+C,d);c.a.set(a,n)},p?B():1===C&&h&&(f?B():H&&1!==E||B()),_.oh(Q,0);G=_.F(Q);c.g.error("Error while converting track data",G);_.A(Q)})};
|
|
468
|
+
_.u.bg=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(Cb);else if(a===_.T&&c.kind!==_.Ne){var d=this.h.find(function(e){return Ml(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Sl(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(zb)};
|
|
469
|
+
_.u.ag=function(a,b){this.g.debug(a+" Track changed",b);a===_.T&&Sl(this);var c=Il(this,a);if(c)for(var d={Jc:0};d.Jc<c.length;d={Jc:d.Jc},++d.Jc)if(Ql(c[d.Jc])){if(d=this.h.find(function(e){return function(f){return Ml(f,c[e.Jc],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.l.get(a)&&this.l.set(a,null),a===_.fk?this.m.trigger(new _.L(_.Nl)):a===_.T&&this.m.trigger(new _.L(_.Ol));break}};_.u.initialize=function(a){this.m=a;this.j=new uk(a.getNetworkEngine())};
|
|
470
|
+
_.u.load=function(){this.A=!1;var a=Hl(this,_.T);a&&(this.f.on(a,_.Mc,this.J),this.f.on(a,Mf,this.L),this.f.on(a,vd,this.K));if(a=Hl(this,_.fk))this.f.on(a,_.Mc,this.G),this.f.on(a,Mf,this.I),this.f.on(a,vd,this.H);if(a=Hl(this,_.gk))this.f.on(a,_.Mc,this.N),this.f.on(a,Mf,this.V),this.f.on(a,vd,this.P);this.f.one(this.m,nd,this.fk.bind(this))};_.u.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.u.destroy=function(){this.release();this.m=null};
|
|
471
|
+
_.u.getVideoTracks=function(){return Jl(this,_.gk)};_.u.getAudioTracks=function(){return Jl(this,_.fk)};_.u.ia=function(){return Jl(this,_.T)};_.u.na=function(){var a=this,b=this.a.get(_.gk)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.u.Sa=function(){return Kl(this,_.fk)};_.u.Na=function(){return Kl(this,_.T)};_.u.lb=function(){return Ll(this,_.gk)};
|
|
472
|
+
_.u.Ab=function(){return Ll(this,_.fk)};_.u.Bb=function(){return Ll(this,_.T)};_.u.Oa=function(){return this.a.get(_.gk)||null};_.u.ma=function(){return this.a.get(_.fk)||null};_.u.xa=function(){return this.a.get(_.T)||null};_.u.wb=function(a){Pl(this,_.gk,a)};_.u.Da=function(a){Pl(this,_.fk,a)};_.u.Qa=function(a){Pl(this,_.T,a)};_.u.cb=function(a){Pl(this,_.gk,a&&a.track)};_.u.ub=function(a){Pl(this,_.fk,a&&a.track)};_.u.vb=function(a){Pl(this,_.T,a&&a.track)};
|
|
473
|
+
_.u.addTextTrack=function(a){var b=this,c;return _.I(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,zl(b,a,c),d.F(0)):_.y(d,Al(b,a),0)})};_.u.qa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
|
|
474
|
+
_.u.fk=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();Rl(a,_.fk,b.preferredAudioLanguage);c=Il(a,_.T);if(c.some(function(f){return Ql(f)}))return e.F(2);d=Hl(a,_.T);return _.y(e,new Promise(function(f){a.f.one(d,vd,f);(new _.Vk(f)).ea(1)}),2)}if(a.A)return e["return"]();Rl(a,_.T,b.preferredTextLanguage);_.A(e)})};yl.prototype.isAbrEnabled=yl.prototype.qa;yl.prototype.addTextTrack=yl.prototype.addTextTrack;yl.prototype.setTextRendition=yl.prototype.vb;
|
|
475
|
+
yl.prototype.setAudioRendition=yl.prototype.ub;yl.prototype.setVideoRendition=yl.prototype.cb;yl.prototype.setTextTrack=yl.prototype.Qa;yl.prototype.setAudioTrack=yl.prototype.Da;yl.prototype.setVideoTrack=yl.prototype.wb;yl.prototype.getTextTrack=yl.prototype.xa;yl.prototype.getAudioTrack=yl.prototype.ma;yl.prototype.getVideoTrack=yl.prototype.Oa;yl.prototype.getLoadingTextRendition=yl.prototype.Bb;yl.prototype.getLoadingAudioRendition=yl.prototype.Ab;yl.prototype.getLoadingVideoRendition=yl.prototype.lb;
|
|
476
|
+
yl.prototype.getTextRendition=yl.prototype.Na;yl.prototype.getAudioRendition=yl.prototype.Sa;yl.prototype.getVideoRendition=yl.prototype.na;yl.prototype.getTextTracks=yl.prototype.ia;yl.prototype.getAudioTracks=yl.prototype.getAudioTracks;yl.prototype.getVideoTracks=yl.prototype.getVideoTracks;yl.prototype.canSelectVideoTracks=yl.prototype.uf;_.u=_.Tl.prototype;_.u.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(bc);};_.u.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(bc);};_.u.La=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.u.ha=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
|
|
477
|
+
_.u.Gb=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};
|
|
478
|
+
_.u.za=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.ha();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.u.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.J("clpp.BufferInfo",_.Tl);_.Tl.prototype.bufferedAheadOf=_.Tl.prototype.za;
|
|
479
|
+
_.Tl.prototype.isBuffered=_.Tl.prototype.Gb;_.Tl.prototype.bufferEnd=_.Tl.prototype.ha;_.Tl.prototype.bufferStart=_.Tl.prototype.La;_.Tl.prototype.end=_.Tl.prototype.end;_.Tl.prototype.start=_.Tl.prototype.start;_.u=_.Ul.prototype;_.u.addEventListener=function(a,b){this.on(a,b)};_.u.removeEventListener=function(a,b){this.off(a,b)};_.u.on=function(a,b,c){return this.Jd.on(a,b,c)};_.u.one=function(a,b,c){return this.Jd.one(a,b,c)};_.u.off=function(a,b){return this.Jd.off(a,b)};_.u.forwardEventsTo=function(a){a&&(0<=this.Fd.indexOf(a)||this.Fd.push(a))};_.u.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
|
|
480
|
+
_.u.stopForwardingEventsTo=function(a){a&&(a=this.Fd.indexOf(a),0<=a&&this.Fd.splice(a,1))};_.u.trigger=function(a){this.Jd.trigger(a);for(var b=_.w(this.Fd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Ul.prototype.off=_.Ul.prototype.off;_.Ul.prototype.one=_.Ul.prototype.one;_.Ul.prototype.on=_.Ul.prototype.on;_.Ul.prototype.removeEventListener=_.Ul.prototype.removeEventListener;_.Ul.prototype.addEventListener=_.Ul.prototype.addEventListener;_.J("clpp.events.ERROR",_.ne);_.J("clpp.events.LOADEDMETADATA",_.He);_.J("clpp.events.BUFFERING_ENDED",_.kd);_.J("clpp.events.BUFFERING_STARTED",_.ld);_.J("clpp.events.STATE_CHANGED",_.cg);_.Nl="audiotrackchanged";_.J("clpp.events.AUDIO_TRACK_CHANGED",_.Nl);_.Ol="texttrackchanged";_.J("clpp.events.TEXT_TRACK_CHANGED",_.Ol);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.Jg);_.J("clpp.events.BITRATE_CHANGED",_.id);_.lv="tracksadded";_.J("clpp.events.TRACKS_ADDED",_.lv);_.J("clpp.events.LOAD_START",Ie);
|
|
481
|
+
_.J("clpp.events.RELEASING",_.Lf);_.J("clpp.events.RELEASED",Kf);_.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.Ig);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.gd);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_UPDATE",_.ge);_.J("clpp.events.DRM_SESSION_PERSISTED",_.fe);_.J("clpp.events.DRM_RENEWAL_STARTED",ee);_.J("clpp.events.DRM_EXPIRATION_UPDATE",_.ce);
|
|
482
|
+
_.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.hd);_.J("clpp.events.PLAY",_.hf);_.J("clpp.events.SEEKING",_.Vf);_.J("clpp.events.SEEKED",_.Uf);_.J("clpp.events.USER_SEEKING",_.yg);_.J("clpp.events.USER_SEEKED",_.xg);_.rp={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",_.rp);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Nc);_.J("clpp.events.AD_LOADED",_.Dc);_.J("clpp.events.AD_BREAK_STARTED",_.uc);_.J("clpp.events.AD_STARTED",_.Jc);_.J("clpp.events.AD_BUFFERING",_.wc);_.J("clpp.events.AD_PROGRESS",_.Gc);
|
|
483
|
+
_.J("clpp.events.AD_FIRST_QUARTILE",_.zc);_.J("clpp.events.AD_MIDPOINT",_.Ec);_.J("clpp.events.AD_THIRD_QUARTILE",_.Lc);_.J("clpp.events.AD_PAUSED",_.Fc);_.J("clpp.events.AD_RESUMED",_.Hc);_.J("clpp.events.AD_SKIPPED",_.Ic);_.J("clpp.events.AD_CLICKED",_.xc);_.J("clpp.events.AD_IMPRESSION",_.Cc);_.J("clpp.events.AD_COMPLETED",_.yc);_.J("clpp.events.AD_STOPPED",_.Kc);_.J("clpp.events.AD_BREAK_STOPPED",_.vc);_.J("clpp.events.AD_HLS_ASSET_LIST_REQUEST",Ac);
|
|
484
|
+
_.J("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",Bc);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.Xf);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.Yf);_.J("clpp.events.CASTING_STARTED",_.pd);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.qd);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Qc);_.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Pc);_.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Oc);_.di="timeline-cue-added";_.J("clpp.events.TIMELINE_CUE_ADDED",_.di);_.fi="timeline-cue-enter";
|
|
485
|
+
_.J("clpp.events.TIMELINE_CUE_ENTER",_.fi);_.gi="timeline-cue-exit";_.J("clpp.events.TIMELINE_CUE_EXIT",_.gi);_.J("clpp.events.TIMELINE_CUES_CHANGED",_.ng);_.J("clpp.events.MPD_TYPE_CHANGED",_.Re);_.J("clpp.events.LIVE_TURNED_STATIC",_.De);_.J("clpp.events.VIMOND_RESPONSE",_.Kg);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.uf);_.J("clpp.events.PLAYLIST_MODIFIED",_.vf);_.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Tf);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Rf);
|
|
486
|
+
_.J("clpp.events.SC_PLAYLIST_ENDED",_.Qf);_.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Sf);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.rd);_.J("clpp.events.ONLINE_STATUS_CHANGED",$e);_.J("clpp.events.CMSD_EVENT","cmsd-event");var Vl=["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"];_.J("clpp.version",_.ia);_.J("clpp.name",_.va);_.El="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Tc,HLS:_.El,SMOOTH_STREAMING:_.Yc,MP4:_.Hg});_.ci="scte35";_.ev="hls-daterange";_.ai=tg;_.J("clpp.TimelineCueType",{SCTE35:_.ci,DASH_CALLBACK:_.Se,HLS_DATERANGE:_.ev,UNKNOWN:_.ai});_.J("clpp.SpeedUpMode",{DECODER:_.Td,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.Ff,SMOOTH:_.$f});_.J("clpp.utils.PlayerConfiguration",Xl);Xl.create=_.bm;var mv=["abort",md,nd,ie,"emptied",ke,_.me,_.ne,"interruptbegin","interruptend",_.Fe,_.He,Ie,"mozaudioavailable",_.df,_.hf,_.tf,_.Hf,_.Jf,_.Uf,_.Vf,ag,"suspend",_.og,"volumechange",_.Ng,_.Og,_.Of,Tg,Sg,Qg,Rg];_.x(_.dm,_.Ul);_.u=_.dm.prototype;_.u.init=function(a,b){this.configuration=this.mc=b;this.C=a;this.log.info("Initializing Player surface");var c=this.C.getMedia();this.log.info("Attaching media element listeners");for(var d=_.w(mv),e=d.next();!e.done;e=d.next())e=e.value,this.N.on(c,e,this.Qi,e!==_.ne);this.ud||(this.ud=this.lh());this.ud.initialize(this);this.C.showMediaElement()};_.u.release=function(){this.V&&(this.V.destroy(),this.V=null);return Promise.resolve()};
|
|
487
|
+
_.u.destroy=function(){this.N.release();return this.hg.release()};_.u.canPlay=function(a,b){return _.Lh[this.namespace()].canPlay(a,b)};_.u.getTimeline=function(){return null};_.u.setupPlaylist=function(){return Promise.reject(_.Eb)};_.u.appendLoad=function(){return Promise.reject(_.Eb)};_.u.seekWith=function(){return Promise.reject(_.Eb)};_.u.setSeekInterceptor=function(){};
|
|
488
|
+
_.u.play=function(){var a=this;if(!this.Z)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.C.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||""};Wl(d)?(a.trigger(new _.L(_.hd)),a.log.warn(_.ma)):d.name===Fb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
|
|
489
|
+
_.u.pause=function(){var a=this;return this.Z?new Promise(function(b,c){var d=a.getState();if(d!==_.op&&d!==_.qp&&d!==_.xp&&d!==_.wp)c(new _.N(_.O,7,3201,"The player state does not allow pause."));else if(a.C.getMedia().pause(),a.getState()===_.xp)a.N.one(a,_.cg,function(){b()});else b()}):Promise.reject(new _.N(_.O,7,3201,"No sources specified yet. You need to load content before calling pause."))};_.u.isPaused=function(){return this.C.getMedia().paused};_.u.isEnded=function(){return this.C.getMedia().ended};
|
|
490
|
+
_.u.getConfiguration=function(){return this.configuration};_.u.setDrmCustomDataModifier=function(a){this.$c=a};_.u.setCdnErrorCallback=function(a){this.Mc=a};_.u.cd=function(){return this.$c};_.u.getSurface=function(){return this.C};_.u.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Tl(b?b.buffered:void 0,a)};_.u.getPosition=function(){return this.getMediaPosition()};
|
|
491
|
+
_.u.getMediaPosition=function(){var a=this.C.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
|
|
492
|
+
_.u.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.C.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.N.one(d,_.He,m)}function l(n){var p=b.getMediaPosition(),
|
|
493
|
+
q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.Uf,C=n.type===_.Hf,H=n.type===_.og,E=C&&v;t=z||q&&E||H&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",H,"Progress:",C,"ReadyState:",v,"Progress Ready:",E);t?(b.ig=!1,b.Td=!1,b.N.off(d,_.Uf,l),b.N.off(d,_.og,l),b.N.off(d,_.Hf,l),b.mi(),b.trigger(new _.L(_.xg)),f()):C&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
|
|
494
|
+
d.currentTime=a)}function m(){b.trigger(new _.L(_.yg));b.N.on(d,_.Uf,l);b.N.on(d,_.og,l);b.N.on(d,_.Hf,l);b.log.info("Seeking to "+a+". Delta "+e);b.ig=!0;b.Td=!0;d.currentTime=a}b.getState()===_.jp?(b.log.debug("Player is in IDLE state. Postpone seek."),b.N.one(b,_.cg,function(){switch(b.getState()){case _.op:case _.xp:case _.wp:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
|
|
495
|
+
_.u.getVolume=function(){var a=this.C.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.u.setVolume=function(a){var b=this.C.getMedia();b?_.M.ra(a)?0>a||1<a?this.log.warn(ta+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ta+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.u.isMuted=function(){return this.C.getMedia().muted};
|
|
496
|
+
_.u.setMuted=function(a){var b=this.C.getMedia();typeof a===_.jd&&(b.muted=a)};_.u.getDuration=function(){return this.getMediaDuration()};_.u.getMediaDuration=function(){return this.Z?this.C.getMedia().duration:-1};_.u.getTrackManager=function(){return this.ud};_.u.getPlaybackRate=function(){var a=this.C.getMedia();return a&&a.playbackRate||1};_.u.setPlaybackRate=function(a){var b=this.C.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.u.setSourceIndex=function(a){this.Fe=a};_.u.getSourceIndex=function(){return this.Fe};
|
|
497
|
+
_.u.getLoadedSource=function(){return this.Z&&-1!==this.Fe?this.Z[this.Fe]:null};_.u.getPeriods=function(){return[]};_.u.getNetworkEngine=function(){return this.hg};_.u.setNetworkEngine=function(a){this.hg=a};_.u.setCmsdManager=function(a){this.cg=a};_.u.getTextDisplayer=function(){return this.V};_.u.getTimelineCues=function(){return[]};_.u.getCueTimeline=function(){return null};_.u.resetAbr=function(){};
|
|
498
|
+
_.u.cn=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.og||a.type===_.Hf)this.Cg.debug(d);else{var e="";switch(a.type){case _.Jf:e="Rate: "+this.getPlaybackRate();break;case ie:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.hf:case _.tf:case "suspend":case _.Ng:case ag:case _.Vf:case _.Uf:case _.og:case _.Hf:case md:case nd:b=
|
|
499
|
+
this.getBufferInfo().za(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Of:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.Cg.info(d)}a.type!==_.ne&&this.trigger(new _.L(a.type,{detail:a}))};_.u.mi=function(){};_.dm.prototype.getTextDisplayer=_.dm.prototype.getTextDisplayer;_.dm.prototype.setNetworkEngine=_.dm.prototype.setNetworkEngine;_.dm.prototype.getNetworkEngine=_.dm.prototype.getNetworkEngine;var gm;gm=new _.K("clpp.Components");_.em=new Map;_.J("clpp.install",function(a){om(a)});_.J("clpp.uninstall",function(a){pm(a)});qm.prototype.release=function(){this.a=this.f=null};_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Ub,SW_SECURE_DECODE:_.Vb,HW_SECURE_CRYPTO:hb,HW_SECURE_DECODE:ib,HW_SECURE_ALL:gb});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.Te,CLEAR_KEY:_.bf,WIDEVINE:_.Pd,PLAYREADY:_.Nd,FAIRPLAY:_.Ld,PRIMETIME:_.Kd});_.um={};_.J("clpp.drm.registerDrmEnvironment",_.vm);var ym={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,
|
|
484
500
|
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,
|
|
485
501
|
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,
|
|
486
502
|
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,
|
|
@@ -494,108 +510,102 @@ this.getBufferInfo().xa(c);e="State "+this.getSurface().getMedia().readyState+"
|
|
|
494
510
|
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,
|
|
495
511
|
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,
|
|
496
512
|
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,
|
|
497
|
-
26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.
|
|
498
|
-
_.
|
|
499
|
-
|
|
500
|
-
for(var
|
|
501
|
-
43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},
|
|
502
|
-
"2000","150"],audio:["2000","150"]},
|
|
503
|
-
certificateUrl:
|
|
504
|
-
_.
|
|
505
|
-
_.
|
|
506
|
-
b.a.keySystem.startsWith(_.
|
|
507
|
-
_.
|
|
508
|
-
_.
|
|
509
|
-
_.
|
|
510
|
-
_.
|
|
511
|
-
_.
|
|
512
|
-
_.
|
|
513
|
-
b.V=e.create(b);b.V.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.
|
|
514
|
-
|
|
515
|
-
_.
|
|
516
|
-
_.
|
|
517
|
-
_.
|
|
518
|
-
_.
|
|
519
|
-
_.
|
|
520
|
-
_.
|
|
521
|
-
|
|
522
|
-
_.
|
|
523
|
-
_.
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
_.
|
|
529
|
-
_.
|
|
530
|
-
_.
|
|
531
|
-
_.
|
|
532
|
-
|
|
533
|
-
|
|
513
|
+
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]};_.Am.prototype.Wa=function(a,b){this.f[a]=b};_.J("clpp.drm.DrmEnvironment",_.Am);_.Am.prototype.setDrmSystem=_.Am.prototype.Wa;_.Bm.prototype.getPosition=function(){return this.a};_.Bm.prototype.Ma=function(){return this.f.byteLength};_.Bm.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.Cm();this.a=a};_.Em.prototype.getPosition=function(){return this.a};_.Em.prototype.Ma=function(){return this.f.byteLength};_.Em.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Gm();this.a+=a};_.Em.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.Gm();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.Em);_.u=_.Nm.prototype;_.u.M=function(a,b){var c=Rm(a);this.h[c]=nv;this.f[c]=b;return this};_.u.Y=function(a,b){var c=Rm(a);this.h[c]=ov;this.f[c]=b;return this};_.u.stop=function(){this.a=!0};_.u.parse=function(a,b){var c=_.lj(a);c=new _.Em(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Fm(c)&&!this.a;)this.Se(0,c,b)};
|
|
514
|
+
_.u.Se=function(a,b,c){var d=b.getPosition(),e=_.W(b),f=_.W(b),g=!1;this.g.debug("Parsing MP4 box",_.Sm(f));switch(e){case 0:e=b.Ma()-d;break;case 1:e=_.Km(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===ov&&(m=_.W(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ma()&&(n=b.Ma());n-=b.getPosition();b=0<n?_.Mm(b,n):new Uint8Array(0);b=new _.Em(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+a,headerSize:f,
|
|
515
|
+
has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ma()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.Nm);_.Nm.typeToString=_.Sm;_.Nm.allData=_.Qm;_.Nm.sampleDescription=_.Pm;_.Nm.children=_.Om;_.Nm.prototype.parseNext=_.Nm.prototype.Se;_.Nm.prototype.parse=_.Nm.prototype.parse;_.Nm.prototype.stop=_.Nm.prototype.stop;_.Nm.prototype.fullBox=_.Nm.prototype.Y;_.Nm.prototype.box=_.Nm.prototype.M;_.Nm.headerSize=_.Tm;var nv=0,ov=1;_.J("clpp.utils.FairplayUtils",Um);Um.parseFairPlayResponse=_.$m;Um.formatFairPlayRequest=_.Zm;Um.createFairplayPayload=Ym;Um.extractContentId=_.Wm;Um.extractExtXKeyUri=Vm;var ln=new _.K("clpp.drm.DrmToday"),bn="PRODUCTION",cn="STAGING",dn="TEST",pv={PRODUCTION:bn,STAGING:cn,TEST:dn};_.J("clpp.drm.DrmToday.Environment",pv);_.J("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
|
|
516
|
+
for(var fn="/license-proxy-widevine/cenc/",gn="/license-proxy-headerauth/drmtoday/RightsManager.asmx",hn="/license-server-fairplay/",wn={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",10001:"Bad Request",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",
|
|
517
|
+
42E3:"General Playready error",43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},qv={video:[gb,ib,hb,_.Vb,_.Ub],audio:[gb,
|
|
518
|
+
ib,hb,_.Vb,_.Ub]},rv={video:["3000","2000","150"],audio:["2000","150"]},sv=_.w(Object.keys(pv)),uv=sv.next();!uv.done;uv=sv.next()){var an=uv.value,vv=Ea;an!==bn&&(vv+="_"+an);var wv=new _.Am(vv),xv=null;switch(an){case bn:case cn:xv=zm("V2");break;case dn:xv=null}wv.Wa(_.Pd,{licenseUrl:jn(_.Pd),videoRobustness:qv.video,audioRobustness:qv.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:xv,modifiers:{licenseRequest:_.qn,licenseResponse:_.vn}});wv.Wa(_.Ld,{licenseUrl:jn(_.Ld),
|
|
519
|
+
certificateUrl:en()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.sn,licenseResponse:_.tn,extractContentId:_.mn,certificateRequest:_.un}});wv.Wa(_.Nd,{licenseUrl:jn(_.Nd),videoRobustness:rv.video,audioRobustness:rv.audio,modifiers:{licenseRequest:rn}});_.vm(wv)};_.J("clpp.drm.eme.EmeFactory",yn);var zn=[];yn.Apis={STANDARD:Sb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var In;_.Pn=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];In=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(Hn,Gn);_.x(_.Ln,Gn);var Rn=!!(performance&&performance.mark&&performance.measure);Un.prototype.j=function(a){if(1<a.version)_.Dh("Unrecognized PSSH version found!");else{var b=_.zj(_.Mm(a.reader,16)),c=[];if(0<a.version)for(var d=_.W(a.reader),e=0;e<d;++e){var f=_.zj(_.Mm(a.reader,16));c.push(f)}d=_.W(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!==a.reader.Ma()&&_.Dh("Mismatch between box size and data size!")}};_.u=_.Yn.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.y(b,a.ta,0);a.j=!0;return _.y(b,$n(a),4)}a.ta.resolve();return b.F(0)})};_.u.keySystem=function(){return this.a?_.Go(this.a.keySystem):""};_.u.getDrmInfo=function(){return this.a};
|
|
520
|
+
_.u.li=function(a){var b=this,c,d,e;return _.I(function(f){if(1==f.a){if(b.G&&b.K===ao)return f["return"]();c=Math.floor(a.timeStamp);d="drm.msg."+c+ha;e="drm.msg."+c+".end";_.Sn(d);return!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Fa?_.y(f,Ro(b,a),2):(b.ca.push(a),f.F(2))}_.Sn(e);_.Tn("drm.sess.msg."+c,d,e);_.A(f)})};
|
|
521
|
+
_.u.gi=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.fg){var l=h;h=g;g=l}if(No(b.a.keySystem)&&16===h.byteLength&&_.Xk()){l=_.sj(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==dg&&(d.loaded=!0);d&&d.Pa&&d.Pa.resolve();"expired"===g&&(e=!0);l=_.lj(h);var q=_.zj(l);"00"===q&&d&&d.keyId?q=d.keyId:
|
|
522
|
+
b.a.keySystem.startsWith(_.Ld)&&16!==l.byteLength&&(q=_.S.fromCharCode(l));(l=q||"")?b.g.info(qb+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.f.forEach(function(t,v){v===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.hb.forEach(function(g){b.o.get(g)===dg&&(b.g.warn(qb+g+ea),b.o.set(g,_.cf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===dg&&_.Aj(f.initData,d.initData)&&(this.g.warn(qb+f.keyId+ea),this.o.set(f.keyId,
|
|
523
|
+
_.cf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.Lb&&(this.g.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.Yc&&a.Yc.stop(),this.f["delete"](c),c.close()["catch"](function(){}));Io(this)&&(this.H.resolve(),1!==this.f.size||e?this.ba.ea(.5):Wn(this))};var ao=0,Vn=3;_.Vo=new Map;_.Wo=new _.K("clpp.text");_.ep.prototype.getStats=function(){return{width:this.w,height:this.h,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.l,corruptedFrames:this.C,estimatedBandwidth:this.f,loadLatency:this.A,playTime:ap(this.a,_.xp),pauseTime:ap(this.a,_.wp),bufferingTime:ap(this.a,_.op),stateHistory:bp(this.a),switchHistory:dp(this.B)}};_.gp.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};var hp=new _.gp(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.He],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Fe],[HTMLMediaElement.HAVE_FUTURE_DATA,md],[HTMLMediaElement.HAVE_ENOUGH_DATA,nd]])});mp.prototype.fb=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};mp.prototype.getState=function(){return pp(this,"")};mp.prototype.S=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.O&&tp(this,_.up)};mp.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.J("clpp.utils.media.detectType",zp);var Cp=new _.K("clpp.sources");_.x(Dp,_.dm);_.u=Dp.prototype;_.u.init=function(a,b){_.dm.prototype.init.call(this,a,b);this.j=new mp(this);tp(this.j,_.jp)};_.u.namespace=function(){return Ed};
|
|
524
|
+
_.u.unload=function(){var a=this,b;return _.I(function(c){if(!a.Z)return c.F(0);a.log.debug("Releasing player with source",a.Z);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.V&&(a.V.destroy(),a.V=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.Vh(a.h);a.f&&(a.f=new _.ep);a.G=null;a.Z=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.y(c,Hp(a),0)})};
|
|
525
|
+
_.u.release=function(){var a=this;return _.dm.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&tp(a.j,_.jp)})};
|
|
526
|
+
_.u.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.dm.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ha);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.u.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
|
|
527
|
+
_.u.detach=function(){};_.u.setSeekInterceptor=function(){};_.u.getTrackManager=function(){return this.ud};
|
|
528
|
+
_.u.load=function(a){var b=this,c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(b.w)return h["return"](Ep());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.M;d=b.C.getMedia();b.I=Date.now()/1E3;b.f=new _.ep;b.h.on(b,_.cg,function(){b.f&&_.$o(b.f.a,b.getState())});tp(b.j,_.vp);b.Z=_.Bp(a);b.configuration=_.bm(b.mc,a);b.log.debug(_.ub,b.configuration);b.log.debug(_.Lb,b.Z);e=_.Yo(b.configuration,[_.ue,"native"]);
|
|
529
|
+
b.V=e.create(b);b.V.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.fm(_.jg)&&!_.el()&&(b.A=new xi(b),b.A.start(d));b.l?b.l.release():b.l=new Yh(b);$h(b.l,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.h.one(d,md,function(){b.trigger(new _.L(_.lv))});null==b.configuration.startTime&&Mp(b,d);_.bl()&&Np(b,d);_.D(h,2);return _.y(h,Gp(b,d),4);case 4:return _.y(h,
|
|
530
|
+
Jp(b),5);case 5:return _.y(h,Lp(b).U,6);case 6:_.oh(h,0);break;case 2:g=_.F(h),b.H=!1,b.onError(g),_.A(h)}})};_.u.onError=function(a){this.H||(a.severity===_.O&&null!==this.j&&tp(this.j,_.up),this.trigger(new _.L(_.ne,{detail:a})))};_.u.lh=function(){return new yl};_.u.getState=function(){return null!==this.j?this.j.getState().currentState:_.kp};
|
|
531
|
+
_.u.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?null:a.getTime()/1E3}return null};_.u.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.G=a={start:a.start(0),end:a.end(a.length-1)};if(this.G)return this.G}return{start:0,end:0}};_.u.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
|
|
532
|
+
_.u.getStats=function(){if(!this.f||!this.a)return _.fp();this.f&&_.$o(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.h=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.l=Number(a.droppedVideoFrames),b.j=c,this.f.C=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.na())a.bandwidth&&(this.f.o=a.bandwidth),a.td&&(this.f.f=a.td);return this.f.getStats()};
|
|
533
|
+
_.u.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.u.getCueTimeline=function(){return null};Op.prototype.a=function(){return Ed};Op.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Tc,e=c===_.Yc,f=c===_.El;return _.al()||d||e||f&&!_.bl()?0:""!==hl().canPlayType(c)?f&&_.bl()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Op.prototype.f=function(a){return a===_.pa};Op.prototype.create=function(){return new Dp};
|
|
534
|
+
_.Nh(new Op);_.J("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.J("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1,SERVER_GUIDED:2});_.J("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Qp=new _.K("clpp.ads"),Pp=[];_.u=Tp.prototype;_.u.load=function(){};_.u.start=function(){};_.u.Vc=function(){};_.u.resume=function(){};_.u.pause=function(){};_.u.skip=function(){};_.u.getVolume=function(){};_.u.setVolume=function(){};_.u.getPosition=function(){};_.u.pc=function(){};_.u.Rc=function(){};_.J("clpp.ads.IAdsManager",Tp);Tp.prototype.getPosition=Tp.prototype.getPosition;Tp.prototype.setVolume=Tp.prototype.setVolume;Tp.prototype.getVolume=Tp.prototype.getVolume;Tp.prototype.skip=Tp.prototype.skip;
|
|
535
|
+
Tp.prototype.pause=Tp.prototype.pause;Tp.prototype.resume=Tp.prototype.resume;_.u=Up.prototype;_.u.jb=function(){};_.u.kb=function(){};_.u.qb=function(){};_.u.getId=function(){};_.u.getCreativeId=function(){};_.u.getApiFramework=function(){};_.u.getAdSystem=function(){};_.u.getAdvertiserName=function(){};_.u.getTitle=function(){};_.u.getDuration=function(){};_.u.getPosition=function(){};_.u.getSkipTimeOffset=function(){};_.u.Sb=function(){};_.u.yb=function(){};_.u.getMediaUrl=function(){};_.u.ob=function(){};_.u.nb=function(){};_.u.ab=function(){};_.u.Ua=function(){};
|
|
536
|
+
_.u.getPodIndex=function(){};_.u.Cb=function(){};_.u.Db=function(){};_.u.pb=function(){};_.u.getWrapperAdIds=function(){};_.u.getWrapperAdSystems=function(){};_.u.getWrapperCreativeIds=function(){};_.J("clpp.ads.IAd",Up);Up.prototype.getWrapperCreativeIds=Up.prototype.getWrapperCreativeIds;Up.prototype.getWrapperAdSystems=Up.prototype.getWrapperAdSystems;Up.prototype.getWrapperAdIds=Up.prototype.getWrapperAdIds;Up.prototype.getSequenceLength=Up.prototype.pb;Up.prototype.getPositionInSequence=Up.prototype.Db;
|
|
537
|
+
Up.prototype.getPodTimeOffset=Up.prototype.Cb;Up.prototype.getPodIndex=Up.prototype.getPodIndex;Up.prototype.getPodType=Up.prototype.Ua;Up.prototype.getMediaBitrate=Up.prototype.ab;Up.prototype.getMediaHeight=Up.prototype.nb;Up.prototype.getMediaWidth=Up.prototype.ob;Up.prototype.getMediaUrl=Up.prototype.getMediaUrl;Up.prototype.getClickThroughUrl=Up.prototype.yb;Up.prototype.isBumper=Up.prototype.Sb;Up.prototype.getSkipTimeOffset=Up.prototype.getSkipTimeOffset;Up.prototype.getPosition=Up.prototype.getPosition;
|
|
538
|
+
Up.prototype.getDuration=Up.prototype.getDuration;Up.prototype.getTitle=Up.prototype.getTitle;Up.prototype.getAdvertiserName=Up.prototype.getAdvertiserName;Up.prototype.getAdSystem=Up.prototype.getAdSystem;Up.prototype.getApiFramework=Up.prototype.getApiFramework;Up.prototype.getCreativeId=Up.prototype.getCreativeId;Up.prototype.getId=Up.prototype.getId;Up.prototype.getTechnology=Up.prototype.qb;Up.prototype.getAdManagerVersion=Up.prototype.kb;Up.prototype.getAdManagerName=Up.prototype.jb;_.u=Vp.prototype;_.u.jb=function(){return""};_.u.kb=function(){return""};_.u.qb=function(){return 2};_.u.getId=function(){return""};_.u.getCreativeId=function(){return""};_.u.getApiFramework=function(){return null};_.u.getAdSystem=function(){return""};_.u.getAdvertiserName=function(){return""};_.u.getTitle=function(){return""};_.u.getDuration=function(){return this.h};_.u.getPosition=function(){return this.j};_.u.getSkipTimeOffset=function(){return-1};_.u.Sb=function(){return!1};_.u.yb=function(){return null};
|
|
539
|
+
_.u.getMediaUrl=function(){return null};_.u.ob=function(){return 0};_.u.nb=function(){return 0};_.u.ab=function(){return 0};_.u.Ua=function(){return this.A};_.u.getPodIndex=function(){return 0};_.u.Cb=function(){return 0};_.u.Db=function(){return this.a};_.u.pb=function(){return this.f};_.u.getWrapperAdIds=function(){return[]};_.u.getWrapperAdSystems=function(){return[]};_.u.getWrapperCreativeIds=function(){return[]};Vp.prototype.getWrapperCreativeIds=Vp.prototype.getWrapperCreativeIds;
|
|
540
|
+
Vp.prototype.getWrapperAdSystems=Vp.prototype.getWrapperAdSystems;Vp.prototype.getWrapperAdIds=Vp.prototype.getWrapperAdIds;Vp.prototype.getSequenceLength=Vp.prototype.pb;Vp.prototype.getPositionInSequence=Vp.prototype.Db;Vp.prototype.getPodTimeOffset=Vp.prototype.Cb;Vp.prototype.getPodIndex=Vp.prototype.getPodIndex;Vp.prototype.getPodType=Vp.prototype.Ua;Vp.prototype.getMediaBitrate=Vp.prototype.ab;Vp.prototype.getMediaHeight=Vp.prototype.nb;Vp.prototype.getMediaWidth=Vp.prototype.ob;
|
|
541
|
+
Vp.prototype.getMediaUrl=Vp.prototype.getMediaUrl;Vp.prototype.getClickThroughUrl=Vp.prototype.yb;Vp.prototype.isBumper=Vp.prototype.Sb;Vp.prototype.getSkipTimeOffset=Vp.prototype.getSkipTimeOffset;Vp.prototype.getPosition=Vp.prototype.getPosition;Vp.prototype.getDuration=Vp.prototype.getDuration;Vp.prototype.getTitle=Vp.prototype.getTitle;Vp.prototype.getAdvertiserName=Vp.prototype.getAdvertiserName;Vp.prototype.getAdSystem=Vp.prototype.getAdSystem;Vp.prototype.getApiFramework=Vp.prototype.getApiFramework;
|
|
542
|
+
Vp.prototype.getCreativeId=Vp.prototype.getCreativeId;Vp.prototype.getId=Vp.prototype.getId;Vp.prototype.getTechnology=Vp.prototype.qb;Vp.prototype.getAdManagerVersion=Vp.prototype.kb;Vp.prototype.getAdManagerName=Vp.prototype.jb;Wp.prototype.has=function(){return this.a.some(function(a){return a.oe})};Wp.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.oe});if(!b)throw Error("No available players in the pool");b.oe=!1;return _.y(c,b.ready,2)}return c["return"](b.player)})};
|
|
543
|
+
Wp.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.oe=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};Wp.prototype.destroy=function(){var a=this;return _.I(function(b){return _.y(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.J("clpp.utils.dom.createHTMLElement",_.$p);aq.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=cq(this,a)};aq.prototype.get=function(){return this.a};_.u=gq.prototype;_.u.getMedia=function(){return this.f.get()};_.u.getContainer=function(){return this.a.get()};_.u.getSafeContainer=function(){return this.a};_.u.getId=function(){return this.l};_.u.getUniqueCssClass=function(){return this.o};_.u.getCastElement=function(){return this.h};_.u.isFullscreen=function(){return!!document.fullscreenElement};_.u.hideMediaElement=function(){var a=this.getMedia();a?_.Yp(a,yd):this.g.debug("No media element available that could be hidden")};
|
|
544
|
+
_.u.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(yd):this.g.debug("No media element available that could be shown")};_.u.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.Yp(a,_.xd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
|
|
545
|
+
_.u.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.u.hide=function(a){_.Yp(a,yd)};_.u.show=function(a){a.classList.remove(yd)};_.u.release=function(){this.j.release()};gq.prototype.removeElementFromContainer=gq.prototype.removeElementFromContainer;gq.prototype.addElementToContainer=gq.prototype.addElementToContainer;gq.prototype.getCastElement=gq.prototype.getCastElement;
|
|
546
|
+
gq.prototype.getContainer=gq.prototype.getContainer;gq.prototype.getMedia=gq.prototype.getMedia;var dq={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},eq=1;_.u=kq.prototype;_.u.getCurrentItem=function(){return this.a};_.u.Ae=function(){return this.a?this.a.player:null};_.u.Ah=function(){return Array.from(this.l.values())};_.u.Rd=function(){return 0<this.l.size};_.u.play=function(a){return zq(this,a,_.hf)};_.u.load=function(a){return zq(this,a,_.Ee)};_.u.release=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,Promise.all([xq(a),a.a?wq(a,a.a):Promise.resolve()]),2);a.a=null;a.w=!1;oq(a);_.A(b)})};
|
|
547
|
+
_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.g.info("Destroy"),_.y(b,a.release(),2);if(3!=b.a)return _.y(b,a.o.destroy(),3);Lq(a);_.A(b)})};var Gq="preload",Iq=_.Je;_.x(Sq,_.Ul);Sq.prototype.destroy=function(){var a=this;return _.I(function(b){cr(a);a.f=[];a.o=!1;a.j.setSeekInterceptor(null);a.w.release();return _.y(b,a.a.destroy(),0)})};Sq.prototype.Fb=function(){return this.o};Sq.prototype.isLive=function(){var a=this.a.Ae();return a?a.isLive():null};Sq.prototype.fb=function(a){this.j.trigger(a)};var Oq=0,ir=1,jr=2,kr=3,mr=4,nr=5,Pq=6;Mq.prototype.release=function(){this.a&&(this.a.shutdown(),this.a=null)};_.u=pr.prototype;_.u.load=function(){return Promise.resolve()};_.u.start=function(){return Promise.resolve()};_.u.Vc=function(a,b){var c=a.getConfiguration();c=Object.assign({},{config:c,player:a,Aa:b},c.ads.hls||{});this.a=new Sq(c);Vq(this.a)};_.u.resume=function(){var a=Tq(this.a);a&&a.play()};_.u.pause=function(){var a=Tq(this.a);a&&a.pause()};_.u.skip=function(){};_.u.getVolume=function(){var a=Tq(this.a);return a?a.getVolume()||0:0};_.u.setVolume=function(a){var b=Tq(this.a);if(b)return b.setVolume(a)};
|
|
548
|
+
_.u.getPosition=function(){var a=Tq(this.a);return a?a.getPosition():-1};_.u.Rc=function(){return!this.a.Fb()};_.u.pc=function(){return this.a.destroy()};pr.prototype.getPosition=pr.prototype.getPosition;pr.prototype.setVolume=pr.prototype.setVolume;pr.prototype.getVolume=pr.prototype.getVolume;pr.prototype.skip=pr.prototype.skip;pr.prototype.pause=pr.prototype.pause;pr.prototype.resume=pr.prototype.resume;rr.prototype.release=function(){this.a.release();vr(this);this.m=null};_.J("clpp.polyfill.installAll",yr);var xr=[];_.J("clpp.polyfill.register",_.zr);var Cr={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Yl="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var Rr="vod",Qr="live";var Zr,Xr,Yr;Ur.prototype.release=function(){this.a=null;this.f.ae(this.h)};_.yv="maxSuggestedBitrateKbps";Zr={du:"duress",etp:_.oe,mb:_.yv,rd:"responseDelay",rtt:"roundTripTime"};Xr={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Cg};Yr=new _.K("clpp.net.CmsdManager");_.x(X,_.Ul);_.u=X.prototype;_.u.on=function(a,b,c){return _.Ul.prototype.on.call(this,a,b,c)};_.u.one=function(a,b,c){return _.Ul.prototype.one.call(this,a,b,c)};_.u.off=function(a,b){return _.Ul.prototype.off.call(this,a,b)};_.u.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.ne,{detail:a}))};_.u.uc=function(a){a=this.K[a];void 0===a&&(a=null);return a};_.u.getSurface=function(){return this.j};_.u.getConfiguration=function(){return _.M.$a(this.f)};
|
|
549
|
+
_.u.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.u.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.u.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=fs(this);return this.l["finally"](function(){a.g.debug("Player released");a.l=null})};
|
|
550
|
+
_.u.destroy=function(){var a=this;if(this.P)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.P=!0;return this.release().then(function(){a.g.debug(Ha);a.trigger(new _.L("destroying"));return a.Ac(_.Xe)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.Jd.clear();a.Fa.release();if(a.a)return a.a.destroy()}).then(function(){return a.I.destroy()}).then(function(){nm();a.a=null;a.A=null;a.trigger(new _.L("destroyed"))})};
|
|
551
|
+
_.u.load=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:return _.D(f,2),_.Sn(qf),b.N=_.pa,b.fa=!0,c=_.Bp(a),d=cm(a)?a:{},_.y(f,_.ms(b,d,c),4);case 4:return _.y(f,_.ns(b),5);case 5:return _.y(f,_.is(b),6);case 6:_.Sn(pf);_.Tn("player.load",qf,pf);_.oh(f,0);break;case 2:e=_.F(f);if(b.l)throw b.g.info(tb),new _.N(_.O,7,7E3);throw e;}})};
|
|
552
|
+
_.u.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.y(d,_.ms(b,a),2);if(!b.a)return b.g.warn(Kb),d["return"]();c=b.a;return c.preload?_.y(d,c.preload(b.f),0):(b.g.warn(Ob),d["return"]())})};_.u.Ac=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.fa)return Promise.resolve();var e=this;d=this.ca.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.ah(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
|
|
553
|
+
_.u.use=function(a){(a=om(a))&&a.o(this)};_.u.remove=function(a){return(this.getState()<=_.jp||this.V)&&null!==im(a)?(pm(a),this.$=!0):!1};_.u.play=function(){return this.a?!this.h||this.h instanceof pr||this.a.namespace()===_.Bd?this.a.play():this.h.start(this.a):Promise.reject("No player initialized. You need to load content before calling play.")};_.u.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
|
|
554
|
+
_.u.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.u.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Tl};_.u.getState=function(){return this.a?this.a.getState():_.jp};_.u.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.u.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.u.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.u.getPosition=function(){return this.a?this.a.getPosition():0};
|
|
555
|
+
_.u.seek=function(a){return this.getState()===_.up?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.u.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.u.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.u.vc=function(){var a=this.a;return a&&a.vc?a.vc():null};_.u.getVolume=function(){return this.a?this.a.getVolume():null};_.u.setVolume=function(a){this.a&&this.a.setVolume(a)};
|
|
556
|
+
_.u.getDuration=function(){return this.a?this.a.getDuration():-1};_.u.getAdsManager=function(){return this.h};_.u.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.u.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.u.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.u.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.u.setMuted=function(a){this.a&&this.a.setMuted(a)};_.u.getNetworkEngine=function(){return this.I};
|
|
557
|
+
_.u.setNetworkEngine=function(a){this.I=a};_.u.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.u.isLive=function(){return!!this.a&&this.a.isLive()};_.u.getStats=function(){return this.a?this.a.getStats():null};_.u.Fh=function(){return Object.freeze(this.ta)};_.u.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.u.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.u.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};
|
|
558
|
+
_.u.resetAbr=function(){this.a&&this.a.resetAbr()};_.u.setDrmCustomDataModifier=function(a){this.$c=a;ks(this)};_.u.setCdnErrorCallback=function(a){this.L=a;this.a&&this.a.setCdnErrorCallback(this.L)};_.u.bi=function(){this.Cf=!0};_.J("clpp.Player",X);X.registerPlugin=_.qs;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;
|
|
559
|
+
X.prototype.getLoadedSource=X.prototype.getLoadedSource;X.prototype.getSources=X.prototype.Fh;X.prototype.getStats=X.prototype.getStats;X.prototype.isLive=X.prototype.isLive;X.prototype.getTextDisplayer=X.prototype.getTextDisplayer;X.prototype.setNetworkEngine=X.prototype.setNetworkEngine;X.prototype.getNetworkEngine=X.prototype.getNetworkEngine;X.prototype.setMuted=X.prototype.setMuted;X.prototype.isMuted=X.prototype.isMuted;X.prototype.setPlaybackRate=X.prototype.setPlaybackRate;
|
|
560
|
+
X.prototype.getPlaybackRate=X.prototype.getPlaybackRate;X.prototype.namespace=X.prototype.namespace;X.prototype.getAdsManager=X.prototype.getAdsManager;X.prototype.getDuration=X.prototype.getDuration;X.prototype.setVolume=X.prototype.setVolume;X.prototype.getVolume=X.prototype.getVolume;X.prototype.getTimelineOffset=X.prototype.vc;X.prototype.getSeekRange=X.prototype.getSeekRange;X.prototype.getPresentationStartTime=X.prototype.getPresentationStartTime;X.prototype.seek=X.prototype.seek;
|
|
534
561
|
X.prototype.getPosition=X.prototype.getPosition;X.prototype.isPaused=X.prototype.isPaused;X.prototype.isEnded=X.prototype.isEnded;X.prototype.getState=X.prototype.getState;X.prototype.getBufferInfo=X.prototype.getBufferInfo;X.prototype.getTrackManager=X.prototype.getTrackManager;X.prototype.pause=X.prototype.pause;X.prototype.play=X.prototype.play;X.prototype.remove=X.prototype.remove;X.prototype.use=X.prototype.use;X.prototype.load=X.prototype.load;X.prototype.destroy=X.prototype.destroy;
|
|
535
|
-
X.prototype.release=X.prototype.release;X.prototype.getDrmInfo=X.prototype.getDrmInfo;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.getSurface=X.prototype.getSurface;X.prototype.getPlugin=X.prototype.
|
|
536
|
-
var
|
|
537
|
-
_.
|
|
538
|
-
7100,"Some config contains a non-unique property `id`!");if(e=b[0].playlist){f=e.timeline;g=["flat","basic"];if(f&&!g.includes(f))throw new _.
|
|
539
|
-
7100,"`playlist.endTime` config value is required for DVR content!");}_.
|
|
540
|
-
_.
|
|
541
|
-
|
|
542
|
-
_.
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
_.
|
|
546
|
-
_.
|
|
547
|
-
|
|
548
|
-
a.
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
_.
|
|
553
|
-
_.
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
_.
|
|
557
|
-
|
|
558
|
-
_.
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
_.
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
Ks.prototype.skip=Ks.prototype.skip;Ks.prototype.pause=Ks.prototype.pause;Ks.prototype.resume=Ks.prototype.resume;Ks.prototype.start=Ks.prototype.start;Ks.prototype.load=Ks.prototype.load;Up.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};Up.prototype.isSupported=function(){return!0};Up.prototype.create=function(){return new Ks};Up.prototype.create=Up.prototype.create;Up.prototype.isSupported=Up.prototype.isSupported;Up.prototype.name=Up.prototype.name;Ls.prototype.getCuePoints=function(){};Ls.prototype.Xb=function(){};Ls.prototype.rb=function(){};_.J("clpp.ads.IAdsTimeline",Ls);Ls.prototype.hasPostroll=Ls.prototype.rb;Ls.prototype.hasPreroll=Ls.prototype.Xb;Ls.prototype.getCuePoints=Ls.prototype.getCuePoints;_.Ms.prototype.f=function(){};_.Ms.prototype.a=function(){};_.Ms.prototype.h=function(){};_.Ms.prototype.o=function(){};_.t=Ns.prototype;_.t.pe=function(a){this.a=a};_.t.rd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Ab)};_.t.ye=function(){return this.a&&this.a.mediaKeys};_.t.kc=function(a,b){this.g.debug("Requesting media key system access for",a,b.map(function(c){return Object.assign({},c,{drmInfos:c.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(c){c.message&&(c=Error(c.message+" (keySystem: "+a+")"));return Promise.reject(c)})};
|
|
572
|
-
_.t.qd=function(){return Vb};Os.prototype.a=function(){return Vb};Os.prototype.isSupported=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Os.prototype.create=function(){return new Ns};Cn(new Os,1E3);_.t=Ps.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,yv.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=yv.value();return this.a&&nj(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var yv=new _.ip(function(){return tj(new Uint8Array([0]))});_.t=Rs.prototype;_.t.pe=function(){};_.t.rd=function(a){_.Kh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.ye=function(){return null};_.t.kc=function(){_.Kh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.qd=function(){return"NOP"};Ss.prototype.a=function(){return"NOP"};Ss.prototype.isSupported=function(){return!0};Ss.prototype.create=function(){return new Rs};
|
|
573
|
-
Cn(new Ss,-1);_.t=Ts.prototype;_.t.pe=function(a){this.f=a};_.t.rd=function(a){var b=this.a;b&&b!==a&&Ws(b,null);return(this.a=a)?Ws(a,this.f):Promise.resolve()};_.t.ye=function(){return this.a};_.t.kc=function(a,b){_.Kh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Us(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.qd=function(){return"APPLE"};Us.prototype.createMediaKeys=function(){var a=new Vs(this.keySystem);return Promise.resolve(a)};
|
|
574
|
-
Us.prototype.getConfiguration=function(){_.Kh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Vs.prototype.createSession=function(a){a=void 0===a?og:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==og)throw new TypeError("Session type "+a+ca);return new Xs(this.h,"__session_"+this.j++)};Vs.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.x(Xs,_.Vl);_.t=Xs.prototype;
|
|
575
|
-
_.t.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Zb);this.g.debug("generateRequest");this.h=new _.Oj;try{var d=this.o.createSession(_.Jg,_.lj(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Ug,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Pe,{messageType:void 0===f||f===hg?Ee:De,message:tj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Sg,function(e){c.g.debug("onWebkitKeyAdded_",
|
|
576
|
-
e);c.f&&(Ys(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Tg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===hg)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
|
|
577
|
-
c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Ys(c,"output-not-allowed");break;default:Ys(c,_.ze)}});Ys(this,hg)}catch(e){this.h.reject(e)}return this.h};_.t.load=function(){this.g.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.l)return Promise.reject(Zb);this.g.debug(xg);this.f=new _.Oj;try{this.a.update(_.lj(a))}catch(b){this.f.reject(b)}return this.f};
|
|
578
|
-
_.t.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.Xh(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Zs.prototype.a=function(){return"APPLE"};Zs.prototype.isSupported=function(){return!!window.WebKitMediaKeys};
|
|
579
|
-
Zs.prototype.create=function(){return new Ts};Cn(new Zs,1100);_.t=$s.prototype;_.t.pe=function(a){this.a=a};_.t.rd=function(a){_.Kh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Ab);var b=this.f;b&&b!==a&&et(b,null);(this.f=a)&&et(a,this.a);return Promise.resolve()};_.t.ye=function(){return this.f};_.t.kc=function(a,b){_.Kh("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.r);c=d.length?d[0]:document.createElement(_.r)}var e=new at(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
|
|
580
|
-
_.t.qd=function(){return"WEBKIT"};at.prototype.createMediaKeys=function(){return Promise.resolve(new bt(this.h,this.a))};at.prototype.getConfiguration=function(){return this.f};bt.prototype.createSession=function(a){a=void 0===a?og:a;if(a!==og&&a!==_.jf)throw new TypeError("Session type "+a+ca);if(!this.a)throw a=Error("Media element is missing."),a.name=pb,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new ft(this.h,this.a,this.o,a);this.j.push(a);return a};
|
|
581
|
-
bt.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x(ft,_.Vl);_.t=ft.prototype;_.t.ready=function(){_.Kh("WebkitEmeManager.MediaKeySession.ready");dt(this,"usable");this.a&&this.a.resolve();this.a=null};_.t.generateRequest=function(a,b){_.Kh("WebkitEmeManager.MediaKeySession.generateRequest");return ht(this,b,null)};_.t.load=function(a){_.Kh(oc);return this.l===_.jf?ht(this,null,a):Promise.reject(Error(Gb))};_.t.update=function(a){_.Kh(oc);var b=new _.Oj;it(this,b,a);return b};
|
|
582
|
-
_.t.close=function(){_.Kh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.jf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=gt(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Kh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.jf?Promise.reject(Error(Gb)):this.close()};jt.prototype.a=function(){return"WEBKIT"};
|
|
583
|
-
jt.prototype.isSupported=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};jt.prototype.create=function(){return new $s};Cn(new jt);_.x(kt,_.Bm);kt.prototype.Wd=function(a,b){for(var c=a.drm.customData.headers||{},d=_.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};kt.prototype.gh=function(a,b){var c=Xm(b);switch(this.o){case zv:return c;case Av:return(new _.qk(c)).a;default:throw Error("Unknown content ID strategy");}};kt.prototype.Th=function(a,b){b.headers[ya]=$c;this.Wd(a,b);var c={spc:_.vj(b.body)};b.body=_.S.jd(_.sk(c,!0))};
|
|
584
|
-
kt.prototype.Uh=function(a,b){var c=_.S.ba(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.xj(c).buffer};_.J(Fd,kt);kt.prototype.onFairPlayLicenseResponse=kt.prototype.Uh;kt.prototype.onFairPlayLicenseRequest=kt.prototype.Th;kt.prototype.extractFairPlayContentId=kt.prototype.gh;kt.prototype.onLicenseRequest=kt.prototype.Wd;kt.prototype.constructor=kt.prototype.constructor;kt.NAME=jb;var Av="hostname",zv="full-skd";
|
|
585
|
-
kt.FairPlayContentIdStrategy={HOSTNAME:Av,FULL_SKD:zv};_.x(lt,_.Ms);lt.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===jb){a=a.drm.customData;if(!a)throw new _.P(_.Q,7,7100,_.Ud);a=new kt(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||zv);_.wm(a)}};lt.prototype.a=function(){delete _.vm.HeaderDrm};lt.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",lt);_.pq(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.lj(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.pq(function(){_.Kh("mathRound.install")});_.pq(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;te in document||(Object.defineProperty(document,te,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
|
|
586
|
-
{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",mt);document.addEventListener("webkitfullscreenerror",mt);document.addEventListener("mozfullscreenchange",mt);document.addEventListener("mozfullscreenerror",mt);document.addEventListener("MSFullscreenChange",mt);document.addEventListener("MSFullscreenError",mt)}});_.pq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Kh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=ot,document.exitPictureInPicture=pt,document.addEventListener("webkitpresentationmodechanged",nt,!0))}});_.pq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=qt)}});_.pq(function(){if(window.VTTCue)_.Jh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Jh(kc),window.VTTCue=rt;else if(6===a)_.Jh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=st;else{try{var b=!!rt(1,2,"")}catch(c){b=!1}b&&(_.Jh(kc),window.VTTCue=rt)}}else _.Lh("VTTCue not available.")});var tt;_.pq(function(){_.Kh("InputEvent.install");_.Zk("Trident/")&&HTMLInputElement.prototype.addEventListener!==ut&&(_.Jh("Patching input event support on IE."),tt=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=ut)});_.pq(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.pq(function(){_.Kh("VideoPlayPromise.install");if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});_.Ct.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.Ct.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Et.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.r);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Oj;c=c.play();var e=(new _.Wk(function(){b(a)})).da(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Jb?b(!0):b(!1)}):b(!0);return d};
|
|
587
|
-
var Dt=new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
562
|
+
X.prototype.release=X.prototype.release;X.prototype.getDrmInfo=X.prototype.getDrmInfo;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.getSurface=X.prototype.getSurface;X.prototype.getPlugin=X.prototype.uc;X.prototype.off=X.prototype.off;X.prototype.one=X.prototype.one;X.prototype.on=X.prototype.on;_.jp=0;_.vp=1;_.op=2;_.xp=3;_.wp=4;_.qp=5;_.up=6;_.kp=7;_.sp={IDLE:_.jp,PREPARING:_.vp,BUFFERING:_.op,PLAYING:_.xp,PAUSED:_.wp,ENDED:_.qp,ERROR:_.up,UNSET:_.kp};X.State=_.sp;
|
|
563
|
+
var bs=[];_.x(rs,X);_.u=rs.prototype;
|
|
564
|
+
_.u.open=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.N(_.O,7,7008,"Cannot call open() while "+c.w+fa);if(0!==a)throw new _.N(_.O,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.N(_.O,7,7003,Bb);if(b.some(function(p){return!p.id||!p.source}))throw new _.N(_.O,7,7100,"Some config is missing required properties `id` or `source`!");d=new Set(b.map(function(p){return p.id}));if(d.size!==b.length)throw new _.N(_.O,7,
|
|
565
|
+
7100,"Some config contains a non-unique property `id`!");if(e=b[0].playlist){f=e.timeline;g=["flat","basic"];if(f&&!g.includes(f))throw new _.N(_.O,7,7100,"Unsupported `playlist.timeline` config value!");h=e.startTime;if(null!=h&&(typeof h!==_.k||0>h))throw new _.N(_.O,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.k||0>l||null!=h&&l<=h))throw new _.N(_.O,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.N(_.O,7,
|
|
566
|
+
7100,"`playlist.endTime` config value is required for DVR content!");}_.nh(n);ss(c);c.w="open";return _.y(n,ws(c,b),4)}2!=n.a&&(c.H=0,c.o=b,c.ba=!0,ts(c,b[0].playlist||{}));_.ph(n);c.w=null;return _.qh(n)})};
|
|
567
|
+
_.u.aj=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.N(_.O,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.ba)throw new _.N(_.O,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.N(_.O,7,7100,"The config is missing required properties `id` or `source`!");c=new Set(b.o.map(function(e){return e.id}));if(c.has(a.id))throw new _.N(_.O,7,7100,"A config with this `id` already exists in the playlist!");_.nh(d);b.w="addItem";b.o.push(a);return _.y(d,
|
|
568
|
+
xs(b,a),2)}_.ph(d);b.w=null;return _.qh(d)})};_.u.getCurrentItem=function(){return this.o[this.H]||null};_.u.getCurrentItemIndex=function(){return this.H};_.u.jl=function(){return _.ah(this.o).concat()};_.u.Od=function(){return this.o.length};_.u.getTimeline=function(){return this.a?this.a.getTimeline():null};_.u.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.u.release=function(){this.o=[];this.H=0;this.ba=!1;return X.prototype.release.call(this)};
|
|
569
|
+
_.u.destroy=function(){ss(this);return X.prototype.destroy.call(this)};_.u.setCdnErrorCallback=function(){throw new _.N(1,7,7009,"CDN switching is not supported!");};_.J("clpp.plist.ScPlaylist",rs);rs.prototype.setCdnErrorCallback=rs.prototype.setCdnErrorCallback;rs.prototype.destroy=rs.prototype.destroy;rs.prototype.release=rs.prototype.release;rs.prototype.seekWith=rs.prototype.seekWith;rs.prototype.getTimeline=rs.prototype.getTimeline;rs.prototype.getSize=rs.prototype.Od;
|
|
570
|
+
rs.prototype.getPlaylist=rs.prototype.jl;rs.prototype.getCurrentItemIndex=rs.prototype.getCurrentItemIndex;rs.prototype.getCurrentItem=rs.prototype.getCurrentItem;rs.prototype.addItem=rs.prototype.aj;rs.prototype.open=rs.prototype.open;_.x(As,_.Ul);_.u=As.prototype;_.u.Nd=function(){return this.f};_.u.Ae=function(){return this.f?this.f.player:null};_.u.yh=function(){return this.o.get(this.a+1)||null};_.u.Bh=function(){return this.o.get(this.a-1)||null};_.u.Ah=function(){return[this.Bh(),this.yh()].filter(Boolean)};_.u.qn=function(a){if(0<this.j.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.j=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
|
|
571
|
+
_.u.pn=function(a){if(0===this.j.length)throw Error(Ab);if(0>a||a>this.j.length-1)throw Error("Index out of bounds");this.a=a};_.u.Rd=function(){return this.a<this.j.length-1};_.u.Hh=function(){return 0<this.a};
|
|
572
|
+
_.u.Vm=function(){var a=this,b,c;return _.I(function(d){switch(d.a){case 1:if(a.l)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.j.length)return a.g.warn(Ab),d["return"]();a.l=!0;a.g.info("First (index: "+a.a+")");b=a.j[a.a];_.D(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.y(d,Is(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.ph(d);a.l=!1;Ns(a);_.qh(d);break;case 2:throw c=_.F(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
|
|
573
|
+
_.u.wi=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.Rd())return a.g.warn("There are no more items in the playlist"),e["return"]();a.l=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.h.transition===_.df&&b.player.pause();Bs(a,a.a+-2);a.o["delete"](a.a);c=a.j[a.a];_.D(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.y(e,Js(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.ph(e);
|
|
574
|
+
a.l=!1;b&&Fs(a,b);Ns(a);_.qh(e);break;case 2:throw d=_.F(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
|
|
575
|
+
_.u.Wm=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.Hh())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.l=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.h.transition===_.df&&b.player.pause();Bs(a,a.a+2);a.o["delete"](a.a);c=a.j[a.a];_.D(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.y(e,Js(a,c),5);case 5:a.g.info("Previous playing (index: "+
|
|
576
|
+
a.a+")");case 3:_.ph(e);a.l=!1;b&&Fs(a,b);Ns(a);_.qh(e);break;case 2:throw d=_.F(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.u.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,Promise.all([Cs(a),a.f?Fs(a,a.f):Promise.resolve()]),2)):_.y(b,Os(a),0)})};_.J(Gd,As);As.prototype.destroy=As.prototype.destroy;As.prototype.playPrev=As.prototype.Wm;As.prototype.playNext=As.prototype.wi;As.prototype.playFirst=As.prototype.Vm;As.prototype.hasPrev=As.prototype.Hh;
|
|
577
|
+
As.prototype.hasNext=As.prototype.Rd;As.prototype.setIndex=As.prototype.pn;As.prototype.setItems=As.prototype.qn;As.prototype.getPreloading=As.prototype.Ah;As.prototype.getPrev=As.prototype.Bh;As.prototype.getNext=As.prototype.yh;As.prototype.getCurrentPlayer=As.prototype.Ae;As.prototype.getCurrent=As.prototype.Nd;var Es="preload",Gs=_.Je;var Ps=new Map;_.u=Rs.prototype;_.u.destroy=function(){this.a.dispose();this.a=null};_.u.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.u.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.ad;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Qs(ed);if(b)return _.Qs(Ss(b,a));c=Ss(_.$c,a);d=Ss(_.r,a);return _.Qs(c)||_.Qs(d)};_.u.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
|
|
578
|
+
_.u.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Rk(b),e=_.Sk(b).split(","),f=new Map,g=Ri(_.$c,e),h=Ri(_.r,e);g&&f.set(_.$c,this.convertCodecs(_.$c,_.Qk(d,g)));h&&f.set(_.r,this.convertCodecs(_.r,_.Qk(d,h)));return f}catch(l){return c}};_.u.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.ad?ed:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?Ss(a,b):b};_.u.getOriginalMimeType=function(){return this.h};
|
|
579
|
+
_.u.transmux=function(a){function b(){g={video:Bj.apply(uj,_.ah(d)),captions:f,audio:Bj.apply(uj,_.ah(e))}}function c(h){f=h.captions;var l=new Uint8Array(h.data.byteLength+h.initSegment.byteLength);l.set(h.initSegment,0);l.set(h.data,h.initSegment.byteLength);h.type===zv?d.push(l):h.type===Av&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.lj(a);this.a.on("data",c);this.a.on("done",b);this.a.push(a);this.a.flush();this.a.off("data",c);this.a.off("done",b);if(!g)throw new _.N(_.O,3,3018);return g};
|
|
580
|
+
Lk(_.ad,function(){return new Rs(_.ad)});Lk(_.Gg,function(){return new Rs(_.Gg)});var Av=_.$c,zv=_.r;Ts.prototype.getCuePoints=function(){};Ts.prototype.Fb=function(){};Ts.prototype.Eb=function(){};_.J("clpp.ads.IAdsTimeline",Ts);Ts.prototype.hasPostroll=Ts.prototype.Eb;Ts.prototype.hasPreroll=Ts.prototype.Fb;Ts.prototype.getCuePoints=Ts.prototype.getCuePoints;_.Us.prototype.f=function(){};_.Us.prototype.a=function(){};_.Us.prototype.h=function(){};_.Us.prototype.o=function(){};_.u=Vs.prototype;_.u.se=function(a){this.a=a};_.u.xd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(xb)};_.u.Ce=function(){return this.a&&this.a.mediaKeys};
|
|
581
|
+
_.u.Nb=function(a,b){var c=this;this.g.info("Requesting media key system access for",a,b.map(function(d){return Object.assign({},d,{drmInfos:d.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(d){c.g.info("Failed to request media key system access for "+(a+"."),d);return Promise.reject(d)})};_.u.wd=function(){return Sb};Ws.prototype.a=function(){return Sb};
|
|
582
|
+
Ws.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Ws.prototype.create=function(){return new Vs};An(new Ws,1E3);_.u=Xs.prototype;_.u.getStatus=function(){return this.a};_.u.forEach=function(a){this.a&&a(this.a,Bv.value())};_.u.get=function(a){if(this.has(a))return this.a};_.u.has=function(a){var b=Bv.value();return this.a&&nj(a,b)?!0:!1};_.u.entries=function(){};_.u.keys=function(){};_.u.values=function(){};var Bv=new _.gp(function(){return tj(new Uint8Array([0]))});_.u=Zs.prototype;_.u.se=function(){};_.u.xd=function(a){_.Ih("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.u.Ce=function(){return null};_.u.Nb=function(){_.Ih("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.u.wd=function(){return"NOP"};$s.prototype.a=function(){return"NOP"};$s.prototype.f=function(){return!0};$s.prototype.create=function(){return new Zs};
|
|
583
|
+
An(new $s,-1);_.u=at.prototype;_.u.se=function(a){this.f=a};_.u.xd=function(a){var b=this.a;b&&b!==a&&dt(b,null);return(this.a=a)?dt(a,this.f):Promise.resolve()};_.u.Ce=function(){return this.a};_.u.Nb=function(a,b){_.Ih("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new bt(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.u.wd=function(){return"APPLE"};bt.prototype.createMediaKeys=function(){var a=new ct(this.keySystem);return Promise.resolve(a)};
|
|
584
|
+
bt.prototype.getConfiguration=function(){_.Ih("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};ct.prototype.createSession=function(a){a=void 0===a?kg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==kg)throw new TypeError("Session type "+a+ba);return new et(this.h,"__session_"+this.j++)};ct.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.x(et,_.Ul);_.u=et.prototype;
|
|
585
|
+
_.u.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Wb);this.g.debug("generateRequest");this.h=new _.Oj;try{var d=this.o.createSession(_.Hg,_.lj(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Sg,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Me,{messageType:void 0===f||f===dg?Ae:ze,message:tj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Qg,function(e){c.g.debug("onWebkitKeyAdded_",
|
|
586
|
+
e);c.f&&(ft(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Rg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===dg)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
|
|
587
|
+
c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:ft(c,"output-not-allowed");break;default:ft(c,_.we)}});ft(this,dg)}catch(e){this.h.reject(e)}return this.h};_.u.load=function(){this.g.debug(_.Ee);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.u.update=function(a){if(this.l)return Promise.reject(Wb);this.g.debug(ug);this.f=new _.Oj;try{this.a.update(_.lj(a))}catch(b){this.f.reject(b)}return this.f};
|
|
588
|
+
_.u.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.Vh(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.u.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};gt.prototype.a=function(){return"APPLE"};gt.prototype.f=function(){return!!window.WebKitMediaKeys};
|
|
589
|
+
gt.prototype.create=function(){return new at};An(new gt,1100);_.u=ht.prototype;_.u.se=function(a){this.a=a};_.u.xd=function(a){_.Ih("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(xb);var b=this.f;b&&b!==a&&mt(b,null);(this.f=a)&&mt(a,this.a);return Promise.resolve()};_.u.Ce=function(){return this.f};_.u.Nb=function(a,b){_.Ih("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.r);c=d.length?d[0]:document.createElement(_.r)}var e=new it(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
|
|
590
|
+
_.u.wd=function(){return"WEBKIT"};it.prototype.createMediaKeys=function(){return Promise.resolve(new jt(this.h,this.a))};it.prototype.getConfiguration=function(){return this.f};jt.prototype.createSession=function(a){a=void 0===a?kg:a;if(a!==kg&&a!==_.ff)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=pb,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new nt(this.h,this.a,this.o,a);this.j.push(a);return a};
|
|
591
|
+
jt.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x(nt,_.Ul);_.u=nt.prototype;_.u.ready=function(){_.Ih("WebkitEmeManager.MediaKeySession.ready");lt(this,"usable");this.a&&this.a.resolve();this.a=null};_.u.generateRequest=function(a,b){_.Ih("WebkitEmeManager.MediaKeySession.generateRequest");return pt(this,b,null)};_.u.load=function(a){_.Ih(mc);return this.l===_.ff?pt(this,null,a):Promise.reject(Error(Db))};_.u.update=function(a){_.Ih(mc);var b=new _.Oj;qt(this,b,a);return b};
|
|
592
|
+
_.u.close=function(){_.Ih("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.ff){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=ot(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.u.remove=function(){_.Ih("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.ff?Promise.reject(Error(Db)):this.close()};rt.prototype.a=function(){return"WEBKIT"};
|
|
593
|
+
rt.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};rt.prototype.create=function(){return new ht};An(new rt);_.x(st,_.Am);st.prototype.$d=function(a,b){for(var c=a.drm.customData.headers||{},d=_.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};st.prototype.qh=function(a,b){var c=Vm(b);switch(this.o){case Cv:return c;case Dv:return(new _.pk(c)).a;default:throw Error("Unknown content ID strategy");}};st.prototype.ei=function(a,b){b.headers[ya]=Zc;this.$d(a,b);var c={spc:_.vj(b.body)};b.body=_.S.nd(_.rk(c,!0))};
|
|
594
|
+
st.prototype.fi=function(a,b){var c=_.S.aa(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.xj(c).buffer};_.J(Cd,st);st.prototype.onFairPlayLicenseResponse=st.prototype.fi;st.prototype.onFairPlayLicenseRequest=st.prototype.ei;st.prototype.extractFairPlayContentId=st.prototype.qh;st.prototype.onLicenseRequest=st.prototype.$d;st.prototype.constructor=st.prototype.constructor;st.NAME=jb;var Dv="hostname",Cv="full-skd";
|
|
595
|
+
st.FairPlayContentIdStrategy={HOSTNAME:Dv,FULL_SKD:Cv};_.x(tt,_.Us);tt.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===jb){a=a.drm.customData;if(!a)throw new _.N(_.O,7,7100,_.Qd);a=new st(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Cv);_.vm(a)}};tt.prototype.a=function(){delete _.um.HeaderDrm};tt.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",tt);_.zr(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.lj(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.zr(function(){_.Ih("mathRound.install")});_.zr(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;qe in document||(Object.defineProperty(document,qe,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
|
|
596
|
+
{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",ut);document.addEventListener("webkitfullscreenerror",ut);document.addEventListener("mozfullscreenchange",ut);document.addEventListener("mozfullscreenerror",ut);document.addEventListener("MSFullscreenChange",ut);document.addEventListener("MSFullscreenError",ut)}});_.zr(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Ih("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=wt,document.exitPictureInPicture=xt,document.addEventListener("webkitpresentationmodechanged",vt,!0))}});_.zr(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=yt)}});_.zr(function(){if(window.VTTCue)_.Hh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Hh(hc),window.VTTCue=zt;else if(6===a)_.Hh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=At;else{try{var b=!!zt(1,2,"")}catch(c){b=!1}b&&(_.Hh(hc),window.VTTCue=zt)}}else _.Jh("VTTCue not available.")});var Bt;_.zr(function(){_.Ih("InputEvent.install");_.Yk("Trident/")&&HTMLInputElement.prototype.addEventListener!==Ct&&(_.Hh("Patching input event support on IE."),Bt=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Ct)});_.zr(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.zr(function(){_.Ih("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}}});_.Kt.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.Kt.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Mt.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.r);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Oj;c=c.play();var e=(new _.Vk(function(){b(a)})).ea(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Gb?b(!0):b(!1)}):b(!0);return d};
|
|
597
|
+
var Lt=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,
|
|
588
598
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
|
|
589
599
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
|
|
590
600
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
|
|
591
601
|
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,
|
|
592
602
|
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,
|
|
593
|
-
115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.
|
|
594
|
-
_.
|
|
595
|
-
_.
|
|
596
|
-
_.
|
|
597
|
-
|
|
598
|
-
_.
|
|
603
|
+
115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.u=_.Nt.prototype;_.u.getDuration=function(){return this.a};_.u.getId=function(){return this.id};_.u.Qb=function(){return this.f};_.u.Vd=function(){return this.h};_.u.la=function(a){return this.getId()===a.getId()&&this.Qb()===a.Qb()&&this.getDuration()===a.getDuration()&&this.Vd()===a.Vd()};_.J("clpp.media.TimelineWindow",_.Nt);_.Nt.prototype.isDynamic=_.Nt.prototype.Vd;_.Nt.prototype.getStart=_.Nt.prototype.Qb;_.Nt.prototype.getId=_.Nt.prototype.getId;_.Nt.prototype.getDuration=_.Nt.prototype.getDuration;_.Ev=new _.K("clpp.media.TimestampParser");_.u=_.Ot.prototype;_.u.nl=function(a){return this.a[a]||null};_.u.ol=function(){return this.a.length};_.u.pl=function(){return this.a};_.u.wh=function(){return this.a[this.f]||null};_.u.al=function(){return this.f};_.J("clpp.media.Timeline",_.Ot);_.Ot.prototype.getCurrentWindowIndex=_.Ot.prototype.al;_.Ot.prototype.getCurrentWindow=_.Ot.prototype.wh;_.Ot.prototype.getWindows=_.Ot.prototype.pl;_.Ot.prototype.getWindowCount=_.Ot.prototype.ol;_.Ot.prototype.getWindow=_.Ot.prototype.nl;_.Rt={};_.Tt={};var Zt=window.XMLHttpRequest;_.x(gu,_.Pj);gu.prototype.then=function(a,b){this.U=this.U.then(a,b);return this};gu.prototype["catch"]=function(a){this.U=this.U["catch"](a);return this};gu.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};var mu=window.fetch,ku=window.AbortController,ju=window.Headers;_.ou={};_.u=_.su.prototype;_.u.getBackgroundColor=function(){return this.K};_.u.setBackgroundColor=function(a){this.K=a;this.Mb()};_.u.getWindowColor=function(){return this.V};_.u.setWindowColor=function(a){this.V=a;this.Mb()};_.u.getFontFamily=function(){return this.P};_.u.setFontFamily=function(a){this.P=a;this.Mb()};_.u.getFontColor=function(){return this.N};_.u.setFontColor=function(a){this.N=a;this.Mb()};_.u.getFontSize=function(){return this.I};_.u.setFontSize=function(a){this.I=a;this.Mb()};
|
|
604
|
+
_.u.getFontSizePercent=function(){return null===this.B?Fv:this.B};_.u.setFontSizePercent=function(a){this.B=a;this.Mb()};_.u.getEdgeColor=function(){return this.H};_.u.setEdgeColor=function(a){this.H=a;this.Mb()};_.u.getEdgeType=function(){return this.o};_.u.setEdgeType=function(a){this.o=a;this.Mb()};_.su.prototype.setEdgeType=_.su.prototype.setEdgeType;_.su.prototype.getEdgeType=_.su.prototype.getEdgeType;_.su.prototype.setEdgeColor=_.su.prototype.setEdgeColor;_.su.prototype.getEdgeColor=_.su.prototype.getEdgeColor;
|
|
605
|
+
_.su.prototype.setFontSizePercent=_.su.prototype.setFontSizePercent;_.su.prototype.getFontSizePercent=_.su.prototype.getFontSizePercent;_.su.prototype.setFontSize=_.su.prototype.setFontSize;_.su.prototype.getFontSize=_.su.prototype.getFontSize;_.su.prototype.setFontColor=_.su.prototype.setFontColor;_.su.prototype.getFontColor=_.su.prototype.getFontColor;_.su.prototype.setFontFamily=_.su.prototype.setFontFamily;_.su.prototype.getFontFamily=_.su.prototype.getFontFamily;
|
|
606
|
+
_.su.prototype.setWindowColor=_.su.prototype.setWindowColor;_.su.prototype.getWindowColor=_.su.prototype.getWindowColor;_.su.prototype.setBackgroundColor=_.su.prototype.setBackgroundColor;_.su.prototype.getBackgroundColor=_.su.prototype.getBackgroundColor;var Fv=1/15;var tu="raised",uu="depressed",wu="dropshadow",vu="uniform";_.J("clpp.text.EdgeType",{NONE:_.Te,RAISED:tu,DEPRESSED:uu,DROP_SHADOW:wu,UNIFORM:vu});yu.prototype.parseInit=function(a){try{var b=_.qu(_.Vc);if(b){var c=new b(this.f);c.parseInit(a)}else this.g.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.qu(_.Wc);d?(c=new d(this.f),c.parseInit(a)):this.g.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.N(_.O,2,2011);}};
|
|
607
|
+
yu.prototype.parseMedia=function(a,b){if(!this.a)throw new _.N(_.O,2,2011);return this.a.parseMedia(a,b)};_.pu(Uc,yu);_.x(_.Au,_.su);_.u=_.Au.prototype;_.u.append=function(){};_.u.remove=function(){return!0};_.u.isTextVisible=function(){return this.w};_.u.setTextVisibility=function(a){this.w=a};
|
|
608
|
+
_.u.Mb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.xu(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.u.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var zu=0;Bu.prototype.a=function(){return!0};Bu.prototype.create=function(a){return new _.Au(a)};_.Xo("native",new Bu);_.Cu.prototype.onContentWillLoad=function(){return Promise.resolve()};_.Cu.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.Cu.prototype.onPlayerWillDestroy=function(){};_.Cu.prototype.onPlayerWillRelease=function(){};}.call(g,this));
|
|
599
609
|
g.clpp._ = _;
|
|
600
610
|
if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
|
|
601
611
|
else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}
|