@castlabs/prestoplay 6.18.0 → 6.19.1
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 +32 -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 +581 -577
- package/cjs/cl.crypto.js +9 -9
- package/cjs/cl.dash.js +77 -75
- package/cjs/cl.externs.js +175 -293
- package/cjs/cl.freewheel.js +23 -24
- package/cjs/cl.hls.js +70 -71
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +28 -29
- package/cjs/cl.ima.js +24 -24
- package/cjs/cl.mse.js +313 -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 +71 -72
- package/cjs/cl.thumbnails.js +26 -26
- package/cjs/cl.tizen.js +71 -71
- package/cjs/cl.ttml.js +27 -27
- package/cjs/cl.verimatrix.js +5 -5
- package/cjs/cl.vimond.js +12 -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 +475 -474
- package/cl.crypto.js +9 -9
- package/cl.dash.js +72 -71
- 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 +25 -26
- package/cl.ima.js +17 -17
- package/cl.mse.js +277 -274
- 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 +9 -8
- package/cl.vr.js +14 -14
- package/cl.vtt.js +12 -12
- package/cl.youbora.js +15 -15
- package/clpp.styles.css +14 -0
- package/package.json +1 -1
- package/typings.d.ts +379 -384
package/cjs/cl.core.js
CHANGED
|
@@ -1,493 +1,504 @@
|
|
|
1
1
|
(function(){var g={}; var _ = {};
|
|
2
|
-
(function(window){var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
_.wa="CastlabsPlayer";_.xa="Configuration is valid";ya="Content-Length";za="Content-Type";_.Aa="Could not find configured DRM environment.";_.
|
|
7
|
-
Ua="EXT-X-PLAYLIST-TYPE";_.Va="EXT-X-PRELOAD-HINT";_.Wa="EXT-X-PROGRAM-DATE-TIME";Xa="EXT-X-SERVER-CONTROL";_.Ya="EXT-X-STREAM-INF";Za="EXT-X-TARGETDURATION";$a="Error while decoding string!";_.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_.
|
|
13
|
-
_.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
_.
|
|
17
|
-
_.Ze="
|
|
18
|
-
|
|
19
|
-
_.Yf="
|
|
20
|
-
_.yg="
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
_.
|
|
56
|
-
_.
|
|
57
|
-
|
|
58
|
-
_.
|
|
59
|
-
|
|
60
|
-
_.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
_.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
_.
|
|
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
|
-
|
|
99
|
-
f}}}else if(a.g.debug(_.Ja+b),a.a.get(b)&&d&&b===_.T){g=_.w(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
_.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
_.
|
|
108
|
-
|
|
109
|
-
if(!_.M.
|
|
110
|
-
7,7100,"config.
|
|
111
|
-
if(!_.M.
|
|
112
|
-
if(!_.M.
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
a.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
_.
|
|
127
|
-
_.
|
|
128
|
-
_.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
bn=function(a
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
_.
|
|
140
|
-
_.
|
|
141
|
-
_.
|
|
142
|
-
|
|
143
|
-
Fn=function(a){
|
|
144
|
-
|
|
145
|
-
_.
|
|
146
|
-
_.
|
|
147
|
-
_.
|
|
148
|
-
_.
|
|
149
|
-
_.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
this.w=this.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
_.
|
|
158
|
-
_.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
_.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
_.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
_.
|
|
170
|
-
_.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
(
|
|
175
|
-
"",contentType:n
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
(
|
|
180
|
-
|
|
181
|
-
_.
|
|
2
|
+
(function(window){var ba,ca,fa,ha,ia,ra,ua,ya,za,Ea,Fa,Ga,Ia,Ka,Oa,Sa,Ua,Xa,Za,$a,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,tb,ub,yb,zb,Ab,Bb,Cb,Db,Eb,Gb,Hb,Lb,Pb,Tb,Xb,Yb,Zb,$b,cc,ec,hc,ic,mc,oc,qc,rc,sc,tc,uc,Bc,Cc,Vc,$c,gd,nd,od,vd,wd,xd,zd,Ad,Bd,Dd,Ed,Gd,Hd,Id,Nd,Pd,Sd,Yd,Zd,$d,ae,be,ce,fe,ie,je,le,re,ye,Ae,Be,Je,af,hf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,Af,Bf,Cf,Df,Ef,Ff,Hf,Lf,Nf,bg,eg,lg,sg,ug,vg,Dg,Mg,Qg,Rg,Sg,Tg,Ug,Wg,Xg,Yg,$g,ah,eh,ih,kh,jh,lh,mh,nh,sh,vh,th,uh,wh,yh,zh,Dh,Gh,Mh,Nh,Sh,Qh,Th,Vh,Uh,Yh,ai,ei,gi,fi,ii,ji,li,
|
|
3
|
+
ni,oi,qi,ri,vi,xi,zi,ti,Bi,Qi,Ri,Ui,Yi,$i,aj,dj,Zi,Vi,ej,lj,rj,sj,vj,wj,xj,zj,Aj,Bj,Ej,Oj,Pj,Qj,Wj,Yj,Zj,fk,gk,jk,lk,kk,ik,ok,hk,rk,pk,qk,sk,tk,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,Vl,Zl,am,bm,dm,fm,hm,nm,om,pm,qm,rm,sm,tm,um,vm,wm,xm,ym,Em,Qm,Wm,Zm,$m,bn,cn,kn,qn,rn,wn,Cn,Dn,Fn,Gn,Ln,Mn,Rn,Sn,Zn,fo,uo,wo,yo,Co,Do,Ho,so,qo,Oo,Fo,Po,Ro,Qo,Wo,Vo,To,Uo,ao,xo,So,bo,No,jo,Jo,Ko,Zo,Mo,ro,eo,dp,fp,gp,hp,ip,np,rp,sp,up,yp,Dp,qp,Ep,Fp,Ip,Lp,Mp,Op,Pp,Kp,Jp,
|
|
4
|
+
Qp,Rp,Sp,Tp,Up,Vp,Zp,$p,bq,cq,aq,dq,eq,fq,hq,iq,jq,gq,kq,nq,mq,oq,pq,lq,Lj,rq,tq,sq,vq,uq,wq,xq,Cq,Bq,Eq,Fq,Gq,Hq,Dq,Mj,Kq,Hj,Pq,Uq,Wq,Yq,$q,ar,br,cr,dr,er,fr,gr,hr,mr,nr,or,sr,rr,wr,yr,zr,Ar,Lr,Nr,Mr,Br,Gr,Or,Pr,ur,Jr,Qr,Ir,Er,Fr,Dr,Hr,Cr,Rr,Tr,Kr,Wr,vr,tr,Xr,Vr,xr,ds,es,gs,fs,is,hs,bs,ls,ks,os,cs,rs,js,ps,Zr,ms,ns,qs,ts,ss,xs,As,Yr,Bs,Cs,Ds,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Os,Ps,Qs,Rs,Ns,Us,X,Ws,$s,Ys,at,ct,bt,et,kt,jt,gt,Vs,ft,mt,nt,ot,pt,qt,rt,st,tt,wt,ut,xt,zt,At,vt,yt,Bt,Ct,Dt,Et,Ft,Gt,Ht,It,Jt,Kt,Mt,
|
|
5
|
+
Pt,Qt,hu,iu,lu,nu,mu,qu,ou,tu,uu,su,wu,xu,yu,vu,ku,zu,ju,Au,Bu,Cu,Fu,Gu,Eu,Du,ch,Qu;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";fa="': 'output-restricted'";ha="() is ongoing!";ia=".start";_.ja="6.19.1";_.ka="AUDIO";_.la="AdaptationSet";_.ma="Already destroyed. No-op";_.na="Already released. No-op";_.oa="Autoplay is not allowed due to browser policy.";_.pa="BANDWIDTH";_.qa="BASIC";ra="CHECKSUM";_.sa="CLOSED-CAPTIONS";_.ta="CODECS";
|
|
6
|
+
ua="Can not set volume to ";_.va="Cannot retrieve buffer information due to platform limitations";_.wa="CastlabsPlayer";_.xa="Configuration is valid";ya="Content-Length";za="Content-Type";_.Aa="Could not find configured DRM environment.";_.Ba="DRM environment '";Ea="DRM licenses loaded";Fa="DRMtoday";Ga="DRMtodayOnboard";_.Ha="DURATION";Ia="Destroying player";_.Ja="Disable track type ";Ka="EXT-X-BYTERANGE";_.La="EXT-X-DATERANGE";_.Ma="EXT-X-DISCONTINUITY";_.Na="EXT-X-DISCONTINUITY-SEQUENCE";Oa="EXT-X-ENDLIST";
|
|
7
|
+
_.Pa="EXT-X-KEY";_.Qa="EXT-X-MAP";_.Ra="EXT-X-MEDIA-SEQUENCE";Sa="EXT-X-PART-INF";Ua="EXT-X-PLAYLIST-TYPE";_.Va="EXT-X-PRELOAD-HINT";_.Wa="EXT-X-PROGRAM-DATE-TIME";Xa="EXT-X-SERVER-CONTROL";_.Ya="EXT-X-STREAM-INF";Za="EXT-X-TARGETDURATION";$a="Error while decoding string!";_.ab="Error while fetching license!";_.db="FairPlay Certificate URL is not defined";_.eb="FairPlay License URL is not defined";_.gb="GROUP-ID";hb="HW_SECURE_ALL";ib="HW_SECURE_CRYPTO";jb="HW_SECURE_DECODE";kb="HeaderDrm";lb="Hide video element .";
|
|
8
|
+
mb="Interstitial ";nb="Interstitial cue ";ob="Interstitials ";pb="Invalid track type: ";qb="InvalidStateError";rb="Key status for Key ID '";_.sb="LANGUAGE";tb="License verification failed: ";ub="Load interrupted while a player release is pending";_.vb="Loading player with configuration";_.wb="MaxHeight";_.xb="MaxWidth";yb="Missing media element";zb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Ab="No event provided!";Bb="No items in the playlist";
|
|
9
|
+
Cb="No sources provided!";Db="No track data attached to the event, unable to add track!";Eb="Not a persistent session.";_.Fb="Not supported";Gb="NotAllowedError";Hb="NotSupportedError";_.Ib="PLAYLIST";_.Jb="POST";_.Kb="PlayReady License URL is not defined";Lb="Player not ready yet.";_.Mb="Player sources";_.Nb="Player state change: ";_.Ob="Please make sure ";Pb="Preloading is not supported by this player.";_.Qb="QualityLevel";_.Rb="RESOLUTION";_.Sb="Representation";Tb="STANDARD";_.Ub="SUBTITLES";
|
|
10
|
+
_.Vb="SW_SECURE_CRYPTO";_.Wb="SW_SECURE_DECODE";Xb="Session is closed";Yb="Setting native ";Zb="Show video element .";$b="Skipping Session creation. License for init data was already requested in Session: '";_.ac="SmoothStreamingMedia";_.bc="TYPE";cc="The index is not in the allowed range.";_.dc="URI";ec="Unable to translate ";_.fc="Unhandled/ignored event";_.gc="Unregistering listeners";hc="Unsupported keySystem";ic="Using VTTCue polyfill from 3 argument TextTrackCue.";_.jc="VIDEO";_.kc="VOD";
|
|
11
|
+
mc="Wait for preloading to finish";oc="WebkitEmeManager.MediaKeySession.load";_.pc="Widevine License URL is not defined";qc="Will create EME Manager: ";rc="X-ASSET-LIST";sc="X-ASSET-URI";tc="X-PLAYOUT-LIMIT";uc="X-RESUME-OFFSET";_.vc="ad-break-started";_.wc="ad-break-stopped";_.xc="ad-buffering";_.yc="ad-clicked";_.zc="ad-completed";_.Ac="ad-first-quartile";Bc="ad-hls-asset-list-request";Cc="ad-hls-asset-list-response";_.Dc="ad-impression";_.Ec="ad-loaded";_.Fc="ad-midpoint";_.Gc="ad-paused";
|
|
12
|
+
_.Hc="ad-progress";_.Ic="ad-resumed";_.Jc="ad-skipped";_.Kc="ad-started";_.Lc="ad-stopped";_.Mc="ad-third-quartile";_.Nc="addtrack";_.Oc="ads-timeline-changed";_.Pc="airplay-casting-ended";_.Qc="airplay-casting-started";_.Rc="airplay-status-changed";_.Sc="application";_.Tc="application/cea-608";_.Uc="application/dash+xml";Vc="application/mp4";_.Wc='application/mp4; codecs\x3d"stpp"';_.Xc='application/mp4; codecs\x3d"wvtt"';_.Yc="application/ttml+xml";_.Zc="application/vnd.ms-sstr+xml";$c="application/x-www-form-urlencoded";
|
|
13
|
+
_.ad="audio";_.bd="audio/aac";_.cd="audio/ac3";_.dd="audio/eac3";_.ed="audio/mp4";gd='audio/mp4;codecs\x3d"mp4a.40.2"';_.hd="audiobufferchanged";_.id="autoplaynotallowed";_.jd="bitratechanged";_.kd="boolean";_.ld="bufferingended";_.md="bufferingstarted";nd="canplay";od="canplaythrough";_.pd="caption";_.qd="castingstarted";_.rd="caststatuschanged";_.sd="cdn-switch-success";_.td="cenc";_.ud="center";vd="certificate-request";wd="change";xd="chrome";_.yd="clpp-fill";zd="clpp-hidden";Ad="clpp-mc-playlist";
|
|
14
|
+
Bd="clpp-visible";_.Cd="clpp.cast.CastSender";Dd="clpp.drm.HeaderDrm";Ed="clpp.drm.eme.AppleEmeManager";Gd="clpp.native.Player";Hd="clpp.plist.McPlaylist";Id="clpp.utils.Platform";_.Jd="codecs";_.Kd="column-reverse";_.Ld="com.adobe.primetime";_.Md="com.apple.fps";Nd="com.apple.hls.interstitial";_.Od="com.microsoft.playready";Pd="com.microsoft.playready.recommendation";_.Qd="com.widevine.alpha";_.Rd="config.drm.customData is not defined";Sd="controls";_.Td="cuechange";_.Ud="decoder";_.Vd="destroy()";
|
|
15
|
+
_.Wd="disabled";_.Xd="div";Yd="drm.license.req.";Zd="drm.mediaKeys.end";$d="drm.mediaKeys.start";ae="drm.onPlay.end";be="drm.onPlay.start";ce="drm.sess.update.";_.ee="drmexpirationupdate";fe="drmrenewalstarted";_.ge="drmsessionpersisted";_.he="drmsessionupdate";ie="drmtoday";je="durationchange";_.ke="ec-3";le="encrypted";_.me="end";_.ne="ended";_.oe="error";_.pe="estimatedThroughputKbps";_.qe="forced";re="fullscreenElement";_.se="function";_.te="height";_.ue="hidden";_.ve="html";_.we="image";
|
|
16
|
+
_.xe="internal-error";ye="keystatuseschange";_.ze="left";Ae="license-renewal";Be="license-request";_.Ce="line-left";_.De="line-right";_.Ee="live-turned-static";_.Fe="load";_.He="loadeddata";_.Ie="loadedmetadata";Je="loadstart";_.Ke="main";_.Le="mdat";_.Me="mdia";_.Ne="message";_.Oe="metadata";_.Pe="mimeType";_.Qe="minf";_.Re="moov";_.Se="mpd-type-changed";_.Te="mpeg-dash-callback-event";_.Ue="none";_.k="number";_.Ve="object";_.We="onBitrateChanged()";_.Xe="onPlayerError()";_.Ye="onPlayerWillDestroy";
|
|
17
|
+
_.Ze="onPlayerWillRelease";_.$e="onStateChanged()";af="online-status-changed";_.bf="optional";_.cf="org.w3.clearkey";_.df="output-restricted";_.ef="pause";_.ff="persistent";_.gf="persistent-license";hf="picture-in-picture";_.jf="play";kf="player.afterLoad.end";lf="player.afterLoad.start";mf="player.appendLoad.end";nf="player.appendLoad.start";of="player.beforeLoad.end";pf="player.beforeLoad.start";qf="player.load.end";rf="player.load.start";sf="player.setupPlaylist.end";tf="player.setupPlaylist.start";
|
|
18
|
+
_.uf="playing";_.vf="playlist-item-changed";_.wf="playlist-modified";Af="playlist.next.end";Bf="playlist.next.start";Cf="preload-aborted";Df="preload-failed";Ef="preloaded";Ff="preloading";_.Gf="prevent";Hf="primary-content";_.If="progress";_.Jf="px";_.Kf="ratechange";Lf="released";_.Mf="releasing";Nf="removetrack";_.Of="required";_.Pf="resize";_.Qf="right";_.Rf="sc-playlist-ended";_.Sf="sc-playlist-item-changed";_.Tf="sc-playlist-live-turned-static";_.Uf="sc-playlist-timeline-changed";_.Vf="seeked";
|
|
19
|
+
_.Wf="seeking";_.Xf="showing";_.Yf="simid-creative-started";_.Zf="simid-creative-stopped";_.$f="sinf";_.ag="smooth";bg="stalled";_.cg="start";_.dg="statechanged";eg="status-pending";_.fg="stbl";_.gg="string";_.hg="stsd";_.ig="style";_.jg="subtitle";_.kg="subtitles-htmlcue";lg="temporary";_.mg="text/vtt";_.ng="text/xml";_.og="timeline-cues-changed";_.pg="timeupdate";_.qg="trak";_.rg="ttml-xml";sg="unauthenticated";_.tg="und";ug="unknown";vg="update";_.wg="urn:scte:scte35";_.xg="urn:scte:scte35:2014";
|
|
20
|
+
_.yg="user-seeked";_.zg="user-seeking";_.Cg="value";Dg="version";_.Fg="vertical-lr";_.Gg="vertical-rl";_.r="video";_.Hg="video/mp2t";_.Ig="video/mp4";_.Jg="videobufferchanged";_.Kg="videotrackchanged";_.Lg="vimond-response";Mg="visibilitychange";_.Ng="vtt-xml";_.Og="waiting";_.Pg="waitingforkey";Qg="webkit-org.w3.clearkey";Rg="webkitkeyadded";Sg="webkitkeyerror";Tg="webkitkeymessage";Ug="webkitneedkey";_.Vg="width";Wg="x-dt-csl-tracking-token";Xg="x-dt-follow-up-token";Yg="x-dt-resp-code";
|
|
21
|
+
$g=function(a){return function(){return _.Zg[a].apply(this,arguments)}};ah=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:ah(a)}};_.bh=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=ch(b.prototype);a.prototype.constructor=a;if(dh)dh(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]};eh=function(){eh=function(){};fh.Symbol||(fh.Symbol=gh)};ih=function(a,b){this.a=a;hh(this,"description",{configurable:!0,writable:!0,value:b})};
|
|
23
|
+
kh=function(){eh();var a=fh.Symbol.iterator;a||(a=fh.Symbol.iterator=fh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.se&&hh(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return jh(ah(this))}});kh=function(){}};jh=function(a){kh();a={next:a};a[fh.Symbol.iterator]=function(){return this};return a};lh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};mh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
|
|
24
|
+
nh=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)};_.oh=function(a){a.o=0;a.j=2};_.ph=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};_.qh=function(a){a.B=[a.h];a.o=0;a.j=0};_.rh=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};sh=function(a){this.a=new lh;this.f=a};
|
|
25
|
+
vh=function(a,b){mh(a.a);var c=a.a.l;if(c)return th(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return uh(a)};th=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,nh(a.a,g),uh(a)}a.a.l=null;d.call(a.a,f);return uh(a)};
|
|
26
|
+
uh=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,nh(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
|
+
wh=function(a){this.next=function(b){mh(a.a);a.a.l?b=th(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=uh(a));return b};this["throw"]=function(b){mh(a.a);a.a.l?b=th(a,a.a.l["throw"],b,a.a.A):(nh(a.a,b),b=uh(a));return b};this["return"]=function(b){return vh(a,b)};kh();this[Symbol.iterator]=function(){return this}};_.xh=function(a,b){var c=new wh(new sh(b));dh&&dh(c,a.prototype);return c};
|
|
28
|
+
yh=function(a,b){if(b){for(var c=fh,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&&hh(c,d,{configurable:!0,writable:!0,value:f})}};zh=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 zh(new wh(new sh(a)))};
|
|
29
|
+
_.J=function(a,b){var c=a.split("."),d=Ah;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};Dh=function(a){return a&&0<=Bh[a]?Bh[a]:Ch};Gh=function(a){if(!a)return _.Eh("clpp.log",ec+a+ca),-1;var b=Fh[a.toUpperCase()];return void 0===b?(_.Eh("clpp.log",ec+a+ca),-1):b};_.K=function(a){(this.tag=a)&&void 0===Bh[a]&&(Bh[a]=-1)};_.Ih=function(a){Hh.info.apply(Hh,arguments)};
|
|
30
|
+
_.Jh=function(a){Hh.debug.apply(Hh,arguments)};_.Eh=function(a){Hh.warn.apply(Hh,arguments)};_.Kh=function(a){Hh.error.apply(Hh,arguments)};_.Lh=function(){this.a={}};Mh=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};Nh=function(a){this.a=new _.Lh;this.f=a};_.Oh=function(){this.a=new _.Lh};
|
|
32
|
+
_.Ph=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)};_.Rh=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)Qh(c[b]);a.a.clear()};Sh=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};Qh=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
|
|
33
|
+
Th=function(a){this.m=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.Oh;this.a=this.l=null;this.h=[];this.g=new _.K("clpp.native.Metadata")};Vh=function(a,b){a.j=b;a.l=a.j.textTracks;a.f.on(a.l,_.Nc,function(c){c=c.track;c.kind===_.Oe&&Uh(a,c)})};
|
|
34
|
+
Uh=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:_.Xh,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.g.debug("onMetadata_()");b.mode=_.ue;var d=[],e=!0;if(b.cues){for(var f=_.w(b.cues),g=f.next();!g.done;g=
|
|
35
|
+
f.next())if(g=g.value,!Yh(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.xg;h.type=_.Zh;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(_.$h,{detail:g.value}));Array.prototype.push.apply(a.h,d);ai(a,d,b);a.f.off(b,_.Td);a.f.on(b,_.Td,function(l){l=l.target.activeCues;l=l.length?Yh(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(_.bi,{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(_.ci,{detail:l})))}})}};Yh=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};ai=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}))})}};_.di=function(a){return Array.isArray(a)?a:[a]};
|
|
37
|
+
ei=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};gi=function(a,b,c){if(null==a&&null==b)return!0;if(null==a||null==b)return!1;a=c?a.map(c):a;b=c?b.map(c):b;return fi(a,b)&&fi(b,a)};fi=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
|
|
38
|
+
_.hi=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())};ii=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
|
+
_.N=function(a,b,c,d,e){var f=Error.call(this,ji(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.M.da(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.N)};ji=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};
|
|
40
|
+
_.ki=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};li=function(a,b){var c=b||ei,d=null,e=null,f=!1;return function(g){for(var h=[],l=0;l<arguments.length;++l)h[l]=arguments[l];if(f&&c(h,d))return e;f=!0;d=h;return e=a.apply(null,_.bh(h))}};_.mi=function(a){return null!=a};
|
|
41
|
+
ni=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.ki("No non-null, non-undefined value found");};oi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};
|
|
42
|
+
_.pi=function(a){var b;a instanceof _.pi?(qi(this,a.tb),this.Dc=a.Dc,this.Ra=a.Ra,ri(this,a.ld),this.Ga=a.Ga,_.si(this,ti(a.a)),this.sc=a.sc):a&&(b=String(a).match(ui))?(qi(this,b[1]||"",!0),this.Dc=vi(b[2]||""),this.Ra=vi(b[3]||"",!0),ri(this,b[4]),this.Ga=vi(b[5]||"",!0),_.si(this,b[6]||"",!0),this.sc=vi(b[7]||"")):this.a=new _.wi(null)};qi=function(a,b,c){a.tb=c?vi(b,!0):b;a.tb&&(a.tb=a.tb.replace(/:$/,""))};
|
|
43
|
+
ri=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};_.si=function(a,b,c){b instanceof _.wi?a.a=b:(c||(b=xi(b,yi)),a.a=new _.wi(b))};vi=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};xi=function(a,b,c){return typeof a===_.gg?(a=encodeURI(a).replace(b,zi),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};zi=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.wi=function(a){this.f=a||null};
|
|
44
|
+
ti=function(a){var b=new _.wi;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.h=a.h}return b};Bi=function(a,b){for(var c=_.w(Ai[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===_.Q?"":null};_.Di=function(a,b){for(var c=Ci[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===_.Q?"":null};
|
|
45
|
+
_.Gi=function(a,b,c){return a.map(function(d){d=_.Ei(d)||"";return(d=_.Fi[b][d])?d:b===_.Q?c&&"vtt"!==c?Vc:_.mg:null}).filter(Boolean)[0]||null};_.Ei=function(a){a=(new _.pi(a)).Ga.split(".");return 1>=a.length?null:a.pop()};_.Hi=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.Ii=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};
|
|
46
|
+
_.Ji=function(a,b){return _.Ii(a,b,void 0,{required:!0})};_.Ki=function(a,b){this.name=a;this.value=b};
|
|
47
|
+
_.Li=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};
|
|
48
|
+
_.Mi=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,v){t=void 0===t?[]:t;_.Li.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};_.Oi=function(a,b){a=_.Ni(a);b=_.Ni(b);return a.split("-")[0]===b.split("-")[0]};_.Ni=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Pi.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};Qi=function(a){if(null!==a&&void 0!==a)return Number(a)};
|
|
49
|
+
Ri=function(a){return a.reduce(function(b,c){return b+c},0)};_.Si=function(a){if(typeof a!==_.gg)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{Pd:a,ee:b,An:a*b}};_.Ti=function(a,b){for(var c=_.w(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Ui=function(){};
|
|
50
|
+
Yi=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(Vi(a)===Vi(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.Wi(a),d=_.Wi(b),e=_.w(Xi(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.Wi=function(a,b,c){c=void 0===c?Infinity:c;return Zi(a,void 0===b?0:b,c,Uint8Array)};$i=function(a,b,c){c=void 0===c?Infinity:c;return Zi(a,void 0===b?0:b,c,Uint16Array)};
|
|
51
|
+
aj=function(a,b,c){c=void 0===c?Infinity:c;return Zi(a,void 0===b?0:b,c,Uint32Array)};_.bj=function(a,b,c){c=void 0===c?Infinity:c;return Zi(a,void 0===b?0:b,c,Int32Array)};_.cj=function(a,b,c){c=void 0===c?Infinity:c;return Zi(a,void 0===b?0:b,c,DataView)};dj=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
|
|
52
|
+
Zi=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Vi(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)};Vi=function(a){return a instanceof ArrayBuffer?a:a.buffer};ej=function(){};_.gj=function(a,b){b=void 0===b?!0:b;var c=_.fj(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};
|
|
53
|
+
_.hj=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};_.ij=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};_.jj=function(a){for(var b="",c=0;c<a.length;++c){var d=a[c].toString(16);1===d.length&&(d="0"+d);b+=d}return b};
|
|
54
|
+
_.kj=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};lj=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};_.fj=function(a){a=_.S.fromCharCode(_.Wi(a));return btoa(a)};_.mj=function(a){this.f=a;this.a=0};
|
|
55
|
+
_.nj=function(a,b){b.lastIndex=a.a;var c=b.exec(a.f);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.a===a.f.length||null===c||c.position!==a.a)return null;a.a+=c.length;return c.results};
|
|
56
|
+
_.oj=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 _.mj(e);var g;(g=_.nj(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.nj(e,h);)c.push(new _.Ki(g[1],g[2]||g[3]||""))}return new _.Hi(a,d,c,f)};_.qj=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.bh(pj).concat()}};
|
|
57
|
+
rj=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||_.bh(pj).concat()};sj=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};
|
|
58
|
+
_.uj=function(a,b){_.M.da(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.tj,uriIndex:0,method:a.method||"GET",body:a.body||null,headers:Object.assign({},a.headers),allowCrossSiteCredentials:a.allowCrossSiteCredentials||!1,onProgress:a.onProgress||null,onFragment:a.onFragment||null,maxAttempts:a.maxAttempts||1,currentAttempt:0,baseDelay:a.baseDelay||1E3,backoffFactor:a.backoffFactor||2,fuzzFactor:a.fuzzFactor||.5,timeout:a.timeout||0,requestModifiers:a.requestModifiers||
|
|
59
|
+
[],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.bh(pj).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
|
|
60
|
+
rj(c,b);return c};_.yj=function(a,b,c,d,e,f,g,h){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:h,request:f};if(vj(c))return wj(a);throw xj(a);};vj=function(a){return 200<=a&&299>=a&&202!==a};wj=function(a){return{uri:a.uri,data:a.data||new ArrayBuffer(0),headers:a.headers,status:a.status,fromCache:!!a.headers["x-shaka-from-cache"],timeMs:a.timeMs,responseStartMs:a.responseStartMs,request:a.request}};
|
|
61
|
+
xj=function(a){a=wj(a);try{var b=_.S.Ld(a.data,!0)}catch(d){b=null}_.Jh("HTTP error text:",b);var c=a.request;return new _.N(0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.O:1,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a})};zj=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
|
|
62
|
+
Aj=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Bj=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()};
|
|
63
|
+
_.Cj=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};_.Dj=function(a,b){this.U=a;this.A=b;this.a=!1};Ej=function(a,b){a.U.then(function(){return b(!0)},function(){return b(!1)});return a};_.Fj=function(){this.a=[]};
|
|
64
|
+
_.Gj=function(a,b){a.a.push(Ej(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Nj=function(){this.f=[];this.h=[];this.j=[];this.w=!1;this.o=new _.Fj;this.a={};this.l=0;this.a.data=Hj;!window.fetch||!window.AbortController||_.Ij(6)||_.Jj()&&68<_.Kj().browserVersion.major?(this.a.http=Lj,this.a.https=Lj):(this.a.http=Mj,this.a.https=Mj)};Oj=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)))})};
|
|
65
|
+
Pj=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.y(e,Oj(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.Ve)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.ki("Failed to parse JSON response","json-failed");}})};
|
|
66
|
+
Qj=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=_.uj(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:_.ph(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)}})};
|
|
67
|
+
_.Rj=function(a,b){this.id=a;this.type=b;this.roles=[];this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.trickPlay=!1;this.channelsCount=this.src=this.mimeType=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.Sj=function(a){return a&&a!==_.tg?a:null};
|
|
68
|
+
Wj=function(a){if(!a)throw new _.N(_.O,3,3101,pb+a);if(!_.M.da(a))throw new _.N(_.O,3,3101,pb+a+". Track type must be a string!");switch(a.toLowerCase()){case _.T:return _.T;case _.Tj:return _.Tj;case _.Uj:return _.Uj;case Vj:return Vj}throw new _.N(_.O,3,3101,"Unknown track type: "+a+".");};
|
|
69
|
+
Yj=function(a,b){a=Wj(a);var c=_.Sj(b.kind),d=b.id;d||(d=String(_.Xj++));d=new _.Rj(d,c===_.Oe?Vj:a);d.kind=c;d.label=_.Sj(b.label);d.language=_.Sj(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};Zj=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};
|
|
70
|
+
_.ak=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};
|
|
71
|
+
_.bk=function(a){this.j=a;this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.a=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.S.startsWith(this.path,
|
|
72
|
+
"/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.ck=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.dk=function(a,b,c){return a?(c||Object.keys(a).sort()).reduce(function(d,e){if(!(e in a))return d;var f=a[e],g="\x26";""===d&&(g=b?"":"?");d=d+g+encodeURIComponent(e);return d=d+"\x3d"+encodeURIComponent(void 0===f?"":f)},""):""};
|
|
73
|
+
_.ek=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};fk=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
|
|
74
|
+
gk=function(a){this.f=a;this.g=new _.K("clpp.native.hls.HlsMetadataParser");this.a=li(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
|
|
75
|
+
jk=function(a,b,c){var d,e,f,g,h;return _.I(function(l){if(1==l.a)return _.y(l,hk(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Rj("dummy",_.Uj);h=f.map(function(m,n){var p=new _.ak("R"+n,g);p.bandwidth=m.bandwidth;p.td=m.td;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});ik(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
|
|
76
|
+
lk=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return kk(c)});var b=new Map;a.forEach(function(c){if(c.type&&c.name){var d=c.type+":"+c.name;if(b.has(d))throw Error("#EXT-X-MEDIA:NAME attributes are not unique. It is impossible to map HLS metadata to Safari data structures.");b.set(d,c)}});return b};
|
|
77
|
+
kk=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.oj(0,a);a=b(_.bc);a=null!=a?{AUDIO:_.Tj,VIDEO:_.Uj,SUBTITLES:_.T}[a]:void 0;return{type:a,groupId:b(_.gb),name:b("NAME"),language:b(_.sb),bo:b("AUTOSELECT"),"default":b("DEFAULT"),oo:b("FORCED"),Og:b("CHARACTERISTICS"),uri:b(_.dc)}};ik=function(a){var b=new Set;a.forEach(function(c){b.add(c.width+"x"+c.height)});if(b.size<a.length)throw Error("Playlist contains multiple renditions with the same resolution.");};
|
|
78
|
+
ok=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.uj(b),_.y(e,Oj(a.f,c),2);d=e.f;return e["return"](d)})};hk=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return d=pk(b),e=qk(b,c),f=d[0]?d[0].codec:null,_.y(h,rk(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};rk=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.y(f,ok(a,b),2):f["return"](null);d=f.f;e=[sk(d,b),tk(d,b)].filter(Boolean);return f["return"](_.Gi(e,_.r,c))})};
|
|
79
|
+
pk=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.oj(0,b);if(c.getAttribute(_.jc))throw Error("Playlist contains alternative video streams.");var d=_.Ii(c,_.Rb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.Ii(c,_.pa);e=e?Number(e):null;var f=_.Ii(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.Ii(c,_.ta);c=_.Di(_.r,c?c.split(","):[]);return{bandwidth:e,td:f,codec:c,width:b,height:d,mimeType:null}})};
|
|
80
|
+
qk=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?fk(c,b):null};sk=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?fk(c,b):null};tk=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.Ii(_.oj(0,c),_.dc))?fk(c,b):null:null};
|
|
81
|
+
_.Ak=function(a,b,c,d){d=void 0===d?_.uk:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.vk;this.writingMode=_.wk;this.lineInterpretation=_.xk;this.line=null;this.lineAlign=_.yk;this.direction=zk;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
|
|
82
|
+
_.Dk=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Bk;this.scroll=Ck;this.cssClassList=[];this.writingMode=this.displayAlign=null};Ek=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.Oh;this.j=!1;this.g=new _.K("clpp.native.CueHandler")};
|
|
83
|
+
Fk=function(a,b){var c=b.track;c.kind!==_.Oe&&(c.mode===_.Xf&&(c.mode=_.ue),a.a.on(c,_.Td,function(d){d=d.target||d.srcElement;d.mode=_.ue;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.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})};
|
|
84
|
+
_.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};_.Qk=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.Rk=function(a){return a.split(";")[0]};
|
|
85
|
+
_.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};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?\//)};
|
|
86
|
+
_.Ij=function(a){return _.Yk("Tizen"+(a?" "+String(a):""))};_.Jj=function(){return _.Yk("Web0S")};_.$k=function(){return _.Jj()&&79===_.Zk().major};_.al=function(){return _.Yk("CrKey")};_.bl=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Ij()};_.dl=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.bl()&&1<navigator.maxTouchPoints};_.el=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};
|
|
87
|
+
_.Yk=function(a){return(navigator.userAgent||"").includes(a)};hl=function(){if(fl)return fl;gl||(gl=new _.Vk(function(){fl=null}));(fl=document.querySelector(_.r)||document.querySelector(_.ad))||(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};
|
|
88
|
+
kl=function(a){var b={major:-1,name:ug};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};
|
|
89
|
+
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};
|
|
90
|
+
_.Zk=function(){var a=ml(),b=["ie","edge","opera","firefox","safari",xd];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()};
|
|
91
|
+
_.Kj=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",xd],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()}};
|
|
92
|
+
yl=function(){this.g=new _.K("clpp.native.TrackManager");this.m=null;this.f=new _.Oh;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,_.Uj);this.V=this.bg.bind(this,_.Uj);this.P=this.ag.bind(this,_.Uj);this.G=this.$f.bind(this,_.Tj);this.I=this.bg.bind(this,_.Tj);this.H=this.ag.bind(this,_.Tj);this.j=null};
|
|
93
|
+
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,_.mg);if(!d)return a.g.warn("Track MIME type is not supported",b),n["return"]();e=_.uj(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(_.Wi(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.mg},zl(a,m,g));_.A(n)})};Cl=function(a,b,c){return Bl(a)&&b===_.Uj&&!!c.enableHlsVideoTrackInfo};
|
|
94
|
+
Dl=function(a,b,c){return Bl(a)&&(b===_.Tj||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)})};
|
|
95
|
+
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)})};
|
|
96
|
+
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 _.Tj:return c.audioTracks;case _.Uj:return c.videoTracks;case _.T:return c.textTracks;default:return null}};
|
|
97
|
+
Il=function(a,b){var c=Hl(a,b);c&&(c=Array.from(c),b===_.T&&(c=c.filter(function(d){return d.kind!==_.Oe})));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]};
|
|
98
|
+
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=_.Xf;f=_.Wd;break;case _.Tj:g="enabled";break;case _.Uj: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:
|
|
99
|
+
f}}}else if(a.g.debug(_.Ja+b),a.a.get(b)&&d&&b===_.T){g=_.w(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Wd;a.a.set(b,null)}b===_.Tj?a.m.trigger(new _.L(_.Nl)):b===_.T&&a.m.trigger(new _.L(_.Ol))};Ql=function(a){return a.enabled||a.selected||a.mode===_.Xf||a.mode===_.ue};
|
|
100
|
+
Rl=function(a,b,c){c=_.di(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=_.Ni(e);return(e=d.find(function(g){g=_.Ni(g.language||"");return _.Oi(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)};
|
|
101
|
+
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:_.Sj(b.kind),language:_.Sj(b.language),label:_.Sj(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 Nh(this);this.Fd=[]};Vl=function(a,b){this.Aa=a;this.sourceIndex=b};
|
|
102
|
+
_.Yl=function(a){if(a){var b=a.a();b in _.Wl?_.Xl.warn("Player-Factory '"+b+"' already registered"):(_.Wl[b]=a,_.Xl.info("Registered Player-Factory: '"+b+"'"))}};Zl=function(a){return Object.values(_.Wl).find(a)||null};am=function(a){return a.name===Gb&&$l.some(function(b){return a.message.startsWith(b)})};bm=function(){};
|
|
103
|
+
_.em=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.dl()&&(a=360);var b=_.qj();b.maxAttempts=3;a={source:"",license:cm,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.qj(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
|
|
104
|
+
bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:dm(a),useCmsd:!0},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Ke,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,
|
|
105
|
+
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,
|
|
106
|
+
chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.Gf},restrictions:dm(),tizen:{sideStreamText:_.Ij(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},trickPlay:{speedUpMode:_.Ud,preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.kc,cropTimeline:!1}};if(_.Ij()||_.Jj())a.ads.hls.enable=!1;if(_.Yk("Edge/")||_.Ij())a.streaming.gapDetectionThreshold=
|
|
107
|
+
.5;_.Jj()&&(a.streaming.stallEnabled=!1);_.$k()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Ij()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,invertVerticalControl:!1};return a};
|
|
108
|
+
_.gm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.em();c=[_.em()];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&&
|
|
109
|
+
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)&&
|
|
110
|
+
!_.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");
|
|
111
|
+
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,
|
|
112
|
+
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,
|
|
113
|
+
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|");fm(c.restrictions);fm(c.abr.restrictions);c.abr.initialRestrictions&&fm(c.abr.initialRestrictions)}return c};
|
|
114
|
+
dm=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}};
|
|
115
|
+
fm=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);
|
|
116
|
+
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");};hm=function(a){return typeof a===_.Ve&&!Array.isArray(a)&&"source"in a};
|
|
117
|
+
_.im=function(a){_.Ul.call(this);this.log=new _.K(a);this.configuration=this.mc=_.em();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 _.Nj;this.N=new _.Oh;this.cg=this.Mc=this.$c=this.V=null};_.km=function(a){return _.jm.get(a)||null};_.mm=function(a){_.jm.get(a.id())?lm.warn("Component already in use."):_.jm.set(a.id(),a)};
|
|
118
|
+
nm=function(a){return Array.from(_.jm.values()).find(function(b){return b instanceof a})||null};om=function(a){for(var b=_.w(_.jm.values()),c=b.next();!c.done;c=b.next())a(c.value)};pm=function(a){om(function(b){b.o(a)})};qm=function(a){om(function(b){b.h(a)})};rm=function(){om(function(){})};sm=function(){om(function(){})};tm=function(a){if(null!==nm(a))return null;a=new a;a.f();_.mm(a);lm.info("Installed component:",a.id());return a};
|
|
119
|
+
um=function(a){if(a=nm(a))a.a(),_.jm["delete"](a.id()),lm.info("Uninstalled component:",a.id())};vm=function(){this.a=this.f=null;this.g=new _.K("clpp.drm.csl")};wm=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Wg]=a.f),a.a&&(b.headers[Xg]=a.a))};
|
|
120
|
+
xm=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Wg];a.a=b.headers[Xg];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(_.hj(c))),{delay:c.renewalPeriod,Zn:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};ym=function(a){return _.S.startsWith(a,_.Md)||_.S.startsWith(a,_.Od)};_.Am=function(a){_.zm[a.J]=a};
|
|
121
|
+
_.Cm=function(a){var b={attemptParameters:_.qj(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,eb:{},widevineVersion:_.Qd};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!==
|
|
122
|
+
a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.gg&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.zm[a.env]||null;if(!c)throw _.Jh(_.Aa,_.Ob+a.env+_.aa),new _.N(_.O,6,6015,_.Ba+a.env+"' is missing.");b.eb=_.Bm(c,a.customData)||{};_.S.startsWith(a.env.toLowerCase(),ie)&&(b.enforceSingleSession=!0)}return b};
|
|
123
|
+
Em=function(a){a=Dm[a];if(!a)return null;var b=_.Kj();return b.os===pl&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Fm=function(a){this.J=a;this.f={}};
|
|
124
|
+
_.Bm=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[_.Qd];g&&(c[_.Qd]={licenseUrl:g.licenseUrl,videoRobustness:oi(d,g.videoRobustness),audioRobustness:oi(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:ni(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:ni(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
|
|
125
|
+
serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.gg?Em(f):f});(g=a.f[_.Md])&&(c[_.Md]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Od])&&(c[_.Od]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
|
|
126
|
+
return c};_.Gm=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};_.Im=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Wi(a.f.buffer);b=_.Wi(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Hm()}};_.V=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.Hm()}};_.Hm=function(){throw new _.N(_.O,3,3E3);};_.Jm=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.Km=function(a){return a.a<a.f.byteLength};
|
|
127
|
+
_.Mm=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Lm()}};_.Nm=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.Lm()}};_.W=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.Lm()}};_.Om=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.Lm()}};
|
|
128
|
+
_.Pm=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){_.Lm()}if(2097151<c)throw new _.N(_.O,3,3001);a.a+=8;return c*Math.pow(2,32)+b};Qm=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Mm(a);return c};_.Rm=function(a,b){a.a+b>a.f.byteLength&&_.Lm();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Wi(c)};
|
|
129
|
+
_.Lm=function(){throw new _.N(_.O,3,3E3,"Buffer read out of bounds.");};_.Sm=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.K("clpp.mp4")};_.Tm=function(a){for(;_.Km(a.reader)&&!a.parser.a;)a.parser.Se(a.start+a.headerSize,a.reader,a.partialOkay)};_.Um=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)};_.Vm=function(a){return function(b){var c=b.reader.Ma()-b.reader.getPosition();a(_.Rm(b.reader,c))}};
|
|
130
|
+
Wm=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Xm=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Ym=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Zm=function(){};$m=function(a){var b="";try{b=_.S.Ld(a)}catch(c){}return b};_.an=function(a){a=$m(a);var b="";a.length&&(b=(new _.bk(a)).a);return b};
|
|
131
|
+
bn=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.S.aa(a)),d=_.hj(c.sinf[0]);(new _.Sm).M(_.$f,_.Tm).M("schi",_.Tm).M("tenc",function(e){e.reader.skip(6);_.Mm(e.reader)&&(e.reader.skip(1),b=_.jj(_.Rm(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
|
|
132
|
+
cn=function(a,b,c){if(!c||!c.byteLength)throw new _.N(_.O,6,6102);var d;typeof b===_.gg?d=_.S.We(b,!0):d=b;a=_.S.We($m(a),!0);b=new _.Gm(12+a.byteLength+d.byteLength+c.byteLength,!0);_.V(b,a.byteLength);_.Im(b,_.Wi(a));_.V(b,d.byteLength);_.Im(b,_.Wi(d));_.V(b,c.byteLength);_.Im(b,_.Wi(c));return _.Wi(b.buffer)};_.dn=function(a){var b=_.Wi(a.body);b=_.gj(b);a.headers[za]=$c;a.body=_.S.Ya("spc\x3d"+b).buffer};
|
|
133
|
+
_.en=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=dj(_.hj(b))};
|
|
134
|
+
kn=function(){var a=fn;if(a===gn)return"https://lic.drmtoday.com";if(a===hn)return"https://lic.staging.drmtoday.com";if(a===jn)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};qn=function(a){var b=kn();if(a===_.Qd)return b+ln;if(a===_.Od)return b+mn;if(a===_.Md)return b+pn;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
|
|
135
|
+
rn=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
|
|
136
|
+
_.tn=function(a,b,c){b=$m(b);c=c&&c.customData?c.customData:{};b=new _.bk(rn(b));var d=_.ek(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.S.Me(""+a)&&(d.assetId=a,sn.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.S.Me(""+e)&&(d.variantId=e,sn.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],sn.debug("KeyId found in FPS SKD. Removing other parameters")):
|
|
137
|
+
a=["assetId","variantId"];b.f=_.dk(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.ck(b);return c.fpsContentId=b};_.vn=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Fa)?c.customData&&(_.un(b,a),a=b.uris[0],d&&c.customData.assetId&&(a+="?assetId\x3d"+encodeURI(""+c.customData.assetId),c.customData.variantId&&(a+="\x26variantId\x3d"+encodeURI(""+c.customData.variantId)),b.uris[0]=a)):sn.warn(zb)};
|
|
138
|
+
wn=function(a,b,c){_.vn(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.pi(b.uris[0]);c.a.add(_.ff,a);b.uris[0]=c.toString()};
|
|
139
|
+
_.xn=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.vn(a,b,c,!1);b.headers[za]=$c;c={spc:_.fj(b.body)};if((a=a.drm)&&a.env.startsWith(Ga)&&d){a={};var e=_.ek((new _.bk(rn(d))).f);d=e.keyId;if(e=e.assetId)sn.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(sn.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(sn.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(sn.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
|
|
140
|
+
_.S.nd(_.dk(c,!0))};_.yn=function(a,b){sn.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=_.hj(c).buffer}};_.zn=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Fa))sn.warn(zb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ga)){var d=new _.pi(b.uris[0]),e=d.Ga;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Ga=e;b.uris[0]=d.toString()}};
|
|
141
|
+
_.An=function(a,b){try{var c=_.Wi(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));sn.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);b.data=f.buffer}catch(g){sn.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
|
|
142
|
+
_.un=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.M.wc(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};Cn=function(a){var b={},c=a?a[Yg]:void 0;a=Bn[a?a[Yg]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};Dn=function(){};
|
|
143
|
+
Fn=function(a,b){b=void 0===b?0:b;_.Ih("Registering EME Factory: "+a.a());for(var c={priority:b,Aa:a},d=0;d<En.length;++d)if(En[d].priority<b){En.splice(d,0,c);return}En.push(c)};
|
|
144
|
+
Gn=function(a){if(a){var b=En.find(function(d){return d.Aa.a()===a}).Aa;if(b&&b.f())return _.Ih(qc+b.a()),b.create();_.Ih("Cannot create selected EME manager. Choosing by priority list.")}b=_.w(En);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Aa,c.f())return _.Ih(qc+c.a()),c.create();throw Error("Missing EME managers");};_.In=function(a,b){var c=_.Hn(a,b);return 1!==c.length?null:c[0]};
|
|
145
|
+
_.Hn=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName===b})};_.Jn=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};
|
|
146
|
+
_.Kn=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.ng)}catch(f){}e&&e.documentElement.tagName===b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};Ln=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Mn=function(){Ln.apply(this,arguments)};_.On=function(a){var b=_.ij(a);b=parseInt(b.byteLength,10).toString(16);b=_.ij("12"+b+a);return new Mn(Nn,a,b)};
|
|
147
|
+
_.Pn=function(a){function b(t){switch(t){case 0:do if(!_.Km(d))throw Error("not enough data to skip!");while(_.Mm(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=_.Mm(d),v=(t&127)>>>0,z=7;128<=t&&28>=z;)t=_.Mm(d),v=(v|(t&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.Jm(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.W(d);var e=_.W(d);e=
|
|
148
|
+
_.Xm(e);var f=_.W(d),g=f>>>24;f&=16777215;var h=_.Rm(d,16);h=_.jj(h);if(0<g){var l=_.W(d);d.skip(16*l)}l=_.W(d);for(var m=[],n=null;_.Km(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=Qm(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Jh("Parsed WV PSSH Box","size",a,"name",e,Dg,g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.fj(n):"","keyIds",m.map(function(t){return _.jj(t)}));return 0<m.length?_.On(_.jj(m[0])):null};
|
|
149
|
+
_.Qn=function(a,b,c,d,e,f){f=void 0===f?null:f;Ln.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
|
|
150
|
+
_.Vn=function(a){a:{var b=new _.Jm(new DataView(a.buffer),!0);_.W(b);for(_.Nm(b);_.Km(b);)if(1===_.Nm(b)){var c=_.Nm(b);b=_.Rm(b,c);break a}b=null}b||(b=a);a=_.S.tc(b,!0);c=_.Kn(a,"WRMHEADER");a=c.getAttribute(Dg);var d=_.In(c,"DATA");c=(c=_.In(d,"LA_URL"))?_.Jn(c):"";var e;if(e=_.In(d,"KID"))if(e=_.Jn(e)){var f=_.In(d,ra);e={value:e,vf:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=Rn(d))?[e]:(d=Sn(d))?d:null;e=d&&d[0]||{};d=e.vf;e=_.hj(void 0===e.value?"":e.value);e=_.Tn(e);e=_.jj(e);
|
|
151
|
+
return new _.Qn(_.Un,e,c,b,a,d)};_.Tn=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=_.Wi(a);a.set(b,0);return a};Rn=function(a){a=_.In(a,"PROTECTINFO");if(!a)return null;var b=_.In(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(ra);b=b.getAttribute("ALGID");return{value:a,vf:c,dj:b}};
|
|
152
|
+
Sn=function(a){a=_.In(a,"PROTECTINFO");if(!a)return null;a=_.In(a,"KIDS");if(!a)return null;var b=_.Hn(a,"KID");if(!b.length)return null;a=[];b=_.w(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(ra);d=d.getAttribute("ALGID");a.push({value:c,vf:e,dj:d})}}return a.length?a:null};_.Xn=function(a){Wn&&performance.mark(a)};_.Yn=function(a,b,c){Wn&&performance.measure(a,b,c)};
|
|
153
|
+
Zn=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.Sm).Y("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Eh("No pssh box found!")};
|
|
154
|
+
_.co=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=$n;this.A=new _.Oh;this.N=new vm;this.f=new Map;this.L=[];this.H=new _.Cj;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 ao(b)});this.j=!1;this.ta=new _.Cj;this.G=!1;this.ca=[];this.Fa=!1;this.V=0;this.g=new _.K("clpp.drm.DrmEngine");this.ga=(new _.Vk(function(){bo(b)})).xb(1);this.H["catch"](function(){});
|
|
155
|
+
this.w=this.C=!1;this.P=null};
|
|
156
|
+
fo=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,eo(h),4);
|
|
157
|
+
if(2!=m.a)return _.ph(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:_.ph(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)}})};
|
|
158
|
+
_.io=function(a,b,c){c=void 0===c?[]:c;a.K=go;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 _.ho(a,b)};
|
|
159
|
+
_.ho=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.M.Dg(a.h.eb);jo(b,d)}var e=qo(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())ro(f.value,a.h.eb);d=so(a,b);if(!d.size)return a.$=!0,Promise.resolve();_.Xn($d);d=_.to(a,d);return(c?d:d["catch"](function(){})).then(function(){_.Xn(Zd);_.Yn("DRM queryMediaKeys_()",$d,Zd)})};
|
|
160
|
+
uo=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:_.ph(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)}})};
|
|
161
|
+
wo=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.y(c,uo(a),2);if(!b.initData)return c["return"]();_.vo(a,b.initDataType,_.Wi(b.initData));_.A(c)})};
|
|
162
|
+
_.Bo=function(a,b){if(!a.I)return _.Ph(a.A,b,[le,"msneedkey",Ug,"needkey"],function(){a.S(new _.N(_.O,6,6010))}),Promise.resolve();a.B=b;a.l.se(b);a.A.one(a.B,_.jf,function(){return xo(a)});a.A.on(a.B,_.Pg,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()!==Tb||a.L.length)d=uo(a);c=Promise.resolve();_.Jj()&&38===_.Zk().major||(a.a&&a.a.keySystem!==
|
|
163
|
+
_.cf&&!a.a.serverCertificate&&(c=yo(a)),c=c.then(function(){return _.zo(a)}));return Promise.all([d,c]).then(function(){a.j||(_.Ao(a),a.A.on(a.B,le,function(e){return wo(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Qd&&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++,_.Bo(a,b);1<=a.V&&a.g.info("Could not get valid widevine server certificate. Giving up");
|
|
164
|
+
throw e;}})};_.zo=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."),_.ph(d,0);c=_.F(d);throw new _.N(_.O,6,6004,{browserError:c.message});})};
|
|
165
|
+
yo=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 Co(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.uj([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=vd;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=
|
|
166
|
+
_.Wi(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}:{},Cn(g));throw new _.N(_.O,6,6100,g,f);})};Co=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"]()})};Do=function(a,b){if(!a)return!1;for(var c=0;c<b.ye.length;c++)if(_.kj(a,b.ye[c]))return!0;return!1};
|
|
167
|
+
_.Ao=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=!_.Ij(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Md)){var f=a.f.values();f=_.w(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.kj(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+
|
|
168
|
+
".")),Do(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,eg)),e=!1)}!e||a.G&&a.K===go||(_.Eo(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Fo(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.w(a.L);for(d=c.next();!d.done;d=c.next())_.Go(a,d.value);b.length||a.L.length||(a.w||a.g.info(Ea),a.w=!0,a.C=!1,a.H.resolve());return a.H};
|
|
169
|
+
_.vo=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.G||a.K!==go)){var e=a.keySystem();if(!e.startsWith(_.Md)&&b===_.td){var f=new Zn(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||
|
|
170
|
+
_.Ij(2)||a.keySystem().startsWith(_.Md)||!_.Eo(a,d,c,!0))&&Fo(a,d,null,b,c)}};
|
|
171
|
+
_.Eo=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(_.kj(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,eg),d&&a.g.info($b+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info($b+(f.sessionId+"'")),!0;if(Do(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
|
|
172
|
+
!0}return!1};Ho=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};
|
|
173
|
+
so=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,ro(e,a.h.eb),c.add(e)}f=a.G?_.Of:_.bf;var g=a.G?[_.gf]:[lg];d=new Map;c=_.w(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.td],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.bf,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,
|
|
174
|
+
pd:c.pd},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.$e=g?_.Io(g):"";c.od=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.Ij()&&(c.od=_.Io(g,_.ke));c.lf=h?_.Io(h):"";c.pd=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.Ij()&&(c.pd=_.Io(h,_.ke));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=_.bh(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&
|
|
175
|
+
(l.Za.distinctiveIdentifier=_.Of),e.persistentStateRequired&&(l.Za.persistentState=_.Of),g&&_.di(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&&_.di(e.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||
|
|
176
|
+
"",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};_.Io=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};
|
|
177
|
+
_.to=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===_.Od){if(_.Xk()&&!a.h.eb[p].useLegacySystem)return n.label=Pd,a.l.Nb(Pd,[n])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");n.label=_.Od;Jo(n);return a.l.Nb(p,[n])});Jo(n)}if(p===_.Qd&&a.h.widevineVersion!==_.Qd){var q=a.h.widevineVersion;if(!q.startsWith(_.Qd))return a.g.error('Invalid "widevineVersion" value "'+
|
|
178
|
+
q+'".'),Promise.reject();var t=Object.assign({},n,{label:q,distinctiveIdentifier:_.bf,persistentState:_.bf});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===_.Qd&&Ko(n)){var z=_.Kj();if(Ko(n)&&z.os===pl&&z.browser===xd){a.g.warn("requestMediaKeySystemAccess() failed",v);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");Jo(n);v=a.l.Nb(p,[n]);break a}}throw v;}return v})}))}
|
|
179
|
+
if(1===b.size&&b.has(""))return Promise.reject(new _.N(_.O,6,6E3));null===a.l&&(a.l=Gn(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 _.Cj,g=a.h.preferredDrmSystem;if(!g)if(e=_.Kj(),e.os===rl&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Od;else if("safari"===e.browser)g=_.Md;else if(e.browser===xd||"firefox"===e.browser)g=_.Qd;g&&(e=b.get(g))&&
|
|
180
|
+
(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());
|
|
181
|
+
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(_.Lo(m.keySystem));q=[];var t=[],v=[],z=[];Mo(n.drmInfos,q,t,v,z);1<t.length&&_.Eh("Multiple unique server certificates found! Only the first will be used.");1<q.length&&_.Eh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier===_.Of,persistentStateRequired:n.persistentState===
|
|
182
|
+
_.Of,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,
|
|
182
183
|
{browserError:m.message});}});d.reject();return f};
|
|
183
|
-
|
|
184
|
+
qo=function(a){a=_.M.Dg(a.h.eb[_.cf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.ij(f),h=_.ij(e);g={kty:"oct",kid:_.gj(g,!1),k:_.gj(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:_.cf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
|
|
184
185
|
initData:d,keyIds:[],periodId:null}};
|
|
185
|
-
_.
|
|
186
|
-
b,f);if(!f)return a.f["delete"](c),a.
|
|
187
|
-
|
|
188
|
-
initData:e}),a.h.ignoreUnrecognizedInitData)return
|
|
189
|
-
break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),
|
|
190
|
-
|
|
191
|
-
drmSystemConfig:
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
_.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
a.h.attemptParameters);h.type=3;h.body=b.message;h.method=_.
|
|
199
|
-
var p=Date.now()-m,q=
|
|
200
|
-
expirationTime:z,expectedRenewalTime:
|
|
201
|
-
a.N&&(a.g.info("Updating CSL Sessions"),
|
|
202
|
-
d.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
_.
|
|
207
|
-
_.
|
|
208
|
-
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.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
d.some(function(m){return function(n){var p=m.
|
|
214
|
-
|
|
215
|
-
d.serverCertificate||null)))}};
|
|
216
|
-
_.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
_.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
c)
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
a
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
(a.
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
a
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
(d.
|
|
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
|
-
b
|
|
369
|
-
|
|
370
|
-
_.
|
|
371
|
-
_.
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
_.
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
_.
|
|
392
|
-
_.
|
|
393
|
-
_.
|
|
394
|
-
_.
|
|
395
|
-
_.
|
|
396
|
-
|
|
397
|
-
_.
|
|
186
|
+
_.Go=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.gf)}catch(f){var d=new _.N(_.O,6,6005,{browserError:f.message});a.S(d);return Promise.reject(d)}a.A.on(c,_.Ne,a.li.bind(a));a.A.on(c,ye,a.gi.bind(a));var e={initData:null,loaded:!1,Sf:Infinity,Lb:null,Pa:new _.Cj,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",
|
|
187
|
+
b,f);if(!f)return a.f["delete"](c),a.S(new _.N(_.O,6,6013)),null;e.loaded=!0;No(a)&&(a.w||a.g.info(Ea),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})))})};Oo=function(a,b,c,d){if(!b&&c!==_.$f)return!1;d=b||bn(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===_.$f&&(e.keyId||bn(e.initData))===d)return!0;return!1};
|
|
188
|
+
Fo=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,P,R,da,ea,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=Po(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,
|
|
189
|
+
initData:e}),a.h.ignoreUnrecognizedInitData)return Ta["return"]()}if(g){Ta.F(2);break}if(!Oo(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:_.ph(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);
|
|
190
|
+
break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Ta["return"]();case 2:try{z=a.G?_.gf:lg,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,_.Ne,a.li.bind(a));a.A.on(v,ye,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 _.Cj,sessionContext:{ldlDelay:0,customData:{}}};
|
|
191
|
+
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,eg);if(e)for(E=0;E<a.a.initData.length;E++)B=a.a.initData[E],B.keyId&&!C.hb.includes(B.keyId)&&_.kj(B.initData,e)&&(C.keyId||(C.keyId=B.keyId),C.hb.push(B.keyId),a.o.get(B.keyId)||a.o.set(B.keyId,eg));G=_.M;P=G.Ib;R=a.D.getConfiguration();da=a.keySystem();ea=a.h.eb[da];bb=(Ca=ea.modifiers)&&Ca.transformInitData;P(bb)||(bb=Qo);try{e=bb({playerConfig:R,initData:e,initDataType:d,drmInfo:a.a,
|
|
192
|
+
drmSystemConfig:ea,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},
|
|
193
|
+
Da))}});_.A(Ta)}})};
|
|
194
|
+
Po=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=Ro);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===_.$f)return bn(c)||"";if(b===_.td){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
|
|
195
|
+
_.Pn(c);if(n)return n.a}else if(So(m)){e=new _.Jm(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.W(e);var p=_.W(e);g=_.Xm(p);var q=_.W(e);c=q>>>24;l=q&16777215;h=_.Rm(e,16);var t=_.jj(h);if(0<c){var v=_.W(e);e.skip(16*v)}var z=_.W(e),C=_.Rm(e,z),H=_.Vn(C);_.Jh("Parsed PR PSSH Box","size",f,"name",g,Dg,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""};
|
|
196
|
+
Ro=function(a,b){var c=_.an(b);_.Jh("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
|
|
197
|
+
Qo=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=Ro);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=cn(c,a,d)}return c};
|
|
198
|
+
Wo=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=_.uj([g],
|
|
199
|
+
a.h.attemptParameters);h.type=3;h.body=b.message;h.method=_.Jb;h.licenseRequestType=b.messageType===Be&&d.rc?Ae:f?vd:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===Ae)a.D.onEvent(new _.L(fe));So(a.a.keySystem)&&To(a,h);wm(a.N,h);var l=Math.floor(b.timeStamp),m=Date.now();return Uo(a,h,d.sessionContext).then(function(){_.Xn(Yd+l+ia);a.g.debug("Sending DRM license request to",g,h);return a.D.Jb.fetch(h).U}).then(function(n){_.Xn(Yd+l+".end");_.Yn(Yd+l,Yd+l+ia,Yd+l+".end");if(a.j)return Promise.reject();
|
|
200
|
+
var p=Date.now()-m,q=Vo(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=xm(a.N,n);_.Xn(ce+l+ia);return c.update(n.data).then(function(){_.Xn(ce+l+".end");_.Yn(ce+l,ce+l+ia,ce+l+".end");if(!f){var z=Ho(a),C=v?Date.now()+1E3*v.delay:Number.NaN;z=new _.L(_.he,{keySystem:a.keySystem(),
|
|
201
|
+
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+"'"),eo(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(),No(a)&&(a.w||a.g.info(Ea),a.w=!0,a.C=!1,a.H.resolve()))})).ea(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||v&&ym(a.keySystem()))&&(z=new _.Vk(function(){!a.j&&
|
|
202
|
+
a.N&&(a.g.info("Updating CSL Sessions"),So(a.keySystem())?Fo(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Md)&&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=Cn(p);t=Object.assign({message:_.ab,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&&
|
|
203
|
+
d.Pa&&d.Pa.reject(v);_.A(z)})})["catch"](function(n){a.j||(n===Xb?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)))})};Vo=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.S.aa(_.hj(c))).ti}catch(d){a.g.warn("Unable to parse DRMtoday Request ID",d)}return""};
|
|
204
|
+
To=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(_.Cg).textContent;b.body=_.hj(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[za]="text/xml; charset\x3dutf-8"};
|
|
205
|
+
Uo=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,Co(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(_.Md)&&b.requestModifiers.push(function(n){return _.dn(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Md)&&b.responseModifiers.push(function(n){return _.en(n)});_.A(m)})};
|
|
206
|
+
ao=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(Ea);a.w=!0;a.C=!1};xo=function(a){var b;return _.I(function(c){if(1==c.a)return _.Xn(be),b=a.ca.map(function(d){return Wo(a,d)}),a.Fa=!0,a.ca=[],_.y(c,Promise.all(b),2);_.Xn(ae);_.Yn("drm.onPlay",be,ae);_.A(c)})};So=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
|
|
207
|
+
_.Lo=function(a){return So(a)?_.Od:a};_.Yo=function(a,b){return a.length&&b.length?0<_.Xo(a,b).length:!0};
|
|
208
|
+
_.Xo=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=_.bh(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,
|
|
209
|
+
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};
|
|
210
|
+
bo=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)})};No=function(a){a=a.f.values();return _.Ti(a,function(b){return b.loaded})};
|
|
211
|
+
jo=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};Jo=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};
|
|
212
|
+
Ko=function(a){return(a.audioCapabilities||[]).some(Zo)||(a.videoCapabilities||[]).some(Zo)};Zo=function(a){return null!=a.robustness&&""!==a.robustness};
|
|
213
|
+
Mo=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 _.kj(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,
|
|
214
|
+
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])}};
|
|
215
|
+
ro=function(a,b){if(a.keySystem){var c=_.Lo(a.keySystem),d=b[c];c===_.cf&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
|
|
216
|
+
d.serverCertificate||null)))}};eo=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)||_.Eh("Timeout waiting for session close");_.A(d)})};_.bp=function(a,b){a&&b&&(_.$o.set(a,b),_.ap.info("Registered TextDisplayerFactory: '"+a+"'"))};
|
|
217
|
+
_.cp=function(a,b){var c=b.find(function(d){return(d=_.$o.get(d))?d.a(a):!1});if(null==c)return _.ap.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.ap.info("Chosen the text displayer: "+c);return _.$o.get(c)};dp=function(){this.a=null;this.f=[]};_.ep=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})}};
|
|
218
|
+
fp=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};gp=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};hp=function(){this.h=this.f=this.j=null;this.a=[]};ip=function(a){return a.a.map(function(b){return _.M.$a(b)})};
|
|
219
|
+
_.jp=function(){this.f=this.o=this.A=this.C=this.j=this.l=this.h=this.w=NaN;this.a=new dp;this.B=new hp};_.kp=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:[]}};_.lp=function(a){this.f=a;this.a=void 0};np=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=mp.value().get(b),c.one(a,b,d))};
|
|
220
|
+
rp=function(a){this.g=new _.K("clpp.StateManager");this.m=a;this.a=new _.Oh;this.f=_.op;this.A=_.pp;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();qp(this)};sp=function(a,b){return Object.keys(b)[a]};
|
|
221
|
+
up=function(a,b){var c={type:_.dg};b===_.md||b===_.ld?(c.reason=a.w,b===_.md?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.tp&&(c.reason=a.w),a.A===_.tp&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
|
|
222
|
+
yp=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.tp;a.A=a.f;a.f=b;a.A===_.vp&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.tp?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+sp(a.w-1,_.wp)),c=up(a,_.md),a.fb(_.md,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+sp(a.w-1,_.wp)+". Buffering time: "+a.B+" ms"),c=up(a,_.ld),a.fb(_.ld,c));c=sp(a.A,_.xp);d=sp(a.f,_.xp);a.g.info(_.Nb+c+" -\x3e "+d);a.fb(_.dg,up(a,""));return!0};
|
|
223
|
+
Dp=function(a,b){if(a.f===_.zp)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,yp(a,_.vp));else if(b!==_.pg){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===_.op,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||
|
|
224
|
+
f||e||g;!a.N||a.m.isLive()||a.f!==_.tp||e||(f=b===_.Vf&&4===a.l,(g=a.A===_.Ap)&&!a.C?e=!0:g||a.C||f||(e=!0));f=!1;e?f=yp(a,_.tp):c?f=yp(a,_.Bp):a.G&&(f=yp(a,_.Cp));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: "+sp(a.f,_.xp))}}};
|
|
225
|
+
qp=function(a){function b(d){return Dp(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.ne,function(){a.h||(a.j=!1,yp(a,_.vp))});a.a.on(c,nd,b);a.a.on(c,_.uf,function(){a.G=!0;a.j=!1;Dp(a,_.uf)});a.a.on(c,_.ef,function(){a.G=!1;a.j=!1;Dp(a,_.ef)});a.a.on(c,_.pg,b);a.a.on(c,_.Kf,b);a.a.on(c,_.Vf,function(d){a.h=!1;a.j=!1;Dp(a,d.type)});a.a.on(c,_.Wf,function(d){a.h=!0;Dp(a,d.type)});a.a.on(c,bg,b);a.a.on(c,_.Og,function(){a.j=!0;Dp(a,_.Og)});a.a.on(c,
|
|
226
|
+
_.oe,function(d){return a.S(d)});a.a.on(c,_.Ie,b);a.a.on(c,od,function(){a.C=!0;Dp(a,od)});a.a.on(c,_.zg,function(d){a.h=!0;Dp(a,d.type)});a.a.on(c,_.yg,function(d){a.h=!1;a.j=!1;Dp(a,d.type)})};Ep=function(a){a=(new _.pi(a)).Ga;if(!a)return null;a=a.toUpperCase();return _.S.endsWith(a,".MPD")?_.Uc:_.S.endsWith(a,".M3U8")?_.El:_.S.endsWith(a,".MP4")?_.Ig:_.S.endsWith(a,"MANIFEST")||_.S.endsWith(a,".ISM")?_.Zc:null};
|
|
227
|
+
_.Gp=function(a){var b;hm(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.gg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Fp(b[c]);d&&a.push(d)}return a};
|
|
228
|
+
Fp=function(a){var b=null;_.M.da(a)&&(a={url:a});typeof a===_.Ve&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.M.R(a.drmProtected)||typeof a.drmProtected!==_.kd||(b.drmProtected=a.drmProtected),_.M.R(a.isLive)||typeof a.isLive!==_.kd||(b.isLive=a.isLive),_.M.R(a.name)||typeof a.name!==_.gg||(b.name=a.name),_.M.R(a.Yb)||typeof a.Yb!==_.gg||(b.Yb=a.Yb),_.M.R(a.audioMimeType)||typeof a.audioMimeType!==_.gg||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Ep(a.url),b.type?
|
|
229
|
+
Hp.debug("Detect media type "+b.type+" for "+a.url):Hp.warn("Unable to detect media type for "+a.url));return b};Ip=function(){_.im.call(this,Gd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.Oh;this.G=this.B=this.f=this.I=null};
|
|
230
|
+
Lp=function(a,b){return a.w?Jp():new Promise(function(c){a.a||(a.h.on(b,_.oe,function(){var d=Kp(a);if(d)a.onError(d)}),a.h.on(b,_.Pf,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(_.jd,{detail:{width:d,height:e}}))}),a.a=b);c()})};Mp=function(a){return a.w?Jp():new Promise(function(b){if(a.a){var c=a.a;a.h.off(c,_.oe);a.h.off(c,_.Pf);a.a=null}b()})};
|
|
231
|
+
Op=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](Jp());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=_.Np;d=_.Cm(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.co({Jb:e,onError:function(h){return a.onError(h)},Xf:function(){},Wf:function(h,l){a.trigger(new _.L(_.ee,{expirationTime:l}))},
|
|
232
|
+
onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.fc,h.type)},getConfiguration:function(){return a.getConfiguration()},cd:function(){return a.cd()}});a.o.h=d;f={id:0,language:_.tg,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:_.Ig,
|
|
233
|
+
codecs:"",encrypted:!0,keyId:null,language:_.tg,originalLanguage:_.tg,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,_.io(a.o,[f]),2)}return 3!=g.a?_.y(g,_.Bo(a.o,a.a),3):g["return"](Promise.resolve())})};
|
|
234
|
+
Pp=function(a,b){np(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.zp&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};Kp=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})};Jp=function(){return Promise.reject(new _.N(_.O,7,7E3))};
|
|
235
|
+
Qp=function(a){if(a.w)return new _.Dj(Jp(),function(){});var b=a.Z[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Pp(a,c);if(d.preload!==_.Ue)a.h.one(d,_.Ie,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Ij()||_.Jj())&&d.load();var f=new _.Cj;a.h.one(d,bg,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 "+
|
|
236
|
+
b.url,uri:b.url},d.error))})).ea(g))});np(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(Kp(a)):d.preload===_.Ue&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.oe,function(){f.reject(Kp(a))});
|
|
237
|
+
return new _.Dj(f,function(){var g=new _.N(_.O,7,7001);f.reject(g);return Promise.resolve()})};
|
|
238
|
+
Rp=function(a,b){np(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.zp){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)}))}})};
|
|
239
|
+
Sp=function(a,b){var c=!1;a.h.on(b,_.Wf,function(){c=b.paused});a.h.on(b,_.Vf,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};Tp=function(){};Up=function(){};Vp=function(){};_.Yp=function(a){0<=Wp.indexOf(a)?Xp.warn("Factory '"+a.name()+"' is already registered"):(Wp.push(a),Xp.info("Factory '"+a.name()+"' has been registered."))};
|
|
240
|
+
Zp=function(a,b){var c=Wp.find(function(d){return d.a(a,b)})||null;c&&Xp.info("Chosen ads manager: "+c.name());return c};$p=function(){};bq=function(a){_.Dj.call(this,new _.Cj,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.U;this.f=-1;this.j=this.l=this.o=null;aq(this)};cq=function(a,b,c){a.o=setTimeout(b,c)};
|
|
241
|
+
aq=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=dq(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*dq(e.request.fuzzFactor,.5));a.f*=dq(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;cq(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});
|
|
242
|
+
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 aq(a);g&&e.a(_.O);a.w.reject(e)}else a.w.reject(e)})};dq=function(a,b){return null===a||void 0===a?b:a};eq=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};
|
|
243
|
+
fq=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};hq=function(){this.a=gq()};iq=function(a){return gq()-a.a};jq=function(a){var b=new hq;b.a=a.a;return b};gq=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};
|
|
244
|
+
kq=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new eq(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new hq};
|
|
245
|
+
nq=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,iq(a.w)),a.w.a=gq());if(f)return f=lq(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){fq(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=mq(a);for(f=[];e;)f.push(e),e=mq(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],
|
|
246
|
+
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 nq(a,b,c,d)})})};mq=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=oq(a);null!==b;){if(b.name===_.Le){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=oq(a)}return null};
|
|
247
|
+
oq=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=pq(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=pq(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};
|
|
248
|
+
pq=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};lq=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};
|
|
249
|
+
Lj=function(a){var b=a.uris[a.uriIndex],c=new qq,d=new hq,e=jq(d),f=0,g,h=new _.Cj;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=iq(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(ya),zj(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),t={};
|
|
250
|
+
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=iq(e);m||Aj(a,p.response?p.response.length:0,z);var C=_.yj(t,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?Bj(a.rateLimitBps,iq(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=
|
|
251
|
+
_.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=_.yj(t,p.response,p.status,b,p.responseURL,a,iq(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=iq(d);d.a=gq();if(100<q||p.lengthComputable&&p.loaded===p.total)Aj(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,
|
|
252
|
+
request:a,abort:function(){c.abort();h.reject(new _.N(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};rq=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new hq};tq=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(sq(a,d),Aj(c,d.byteLength,iq(a.h)),a.h.a=gq());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 tq(a,b,c)})})};
|
|
253
|
+
sq=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};vq=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=uq(this);this.f.Qc(this.h);this.a=null};
|
|
254
|
+
uq=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=wq(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=xq(f[c]),h=g.key,l=g.value;Object.keys(yq).includes(h)&&(e[yq[h]]=l)}d=_.M.wc(e)?e:null}catch(m){zq.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.L("cmsd-event",{lo:b,yo:d}))}};
|
|
255
|
+
wq=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=xq(c[e]),g=f.key;f=f.value;Object.keys(Aq).includes(g)&&(d[Aq[g]]=f)}return d}).filter(function(c){return _.M.wc(c)});return 0<b.length?b:null}catch(c){return zq.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
|
|
256
|
+
xq=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.ki("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new _.ki("Parsing CMSD, not recognized value type of "+a);};
|
|
257
|
+
Cq=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Oh;this.h=null;this.f=!0;Bq(this)};Bq=function(a){a.a.on(window,"offline",function(){Dq(a,!1)});a.a.on(window,"online",function(){a.f||Eq(a)});a.a.on(a.m,bg,function(){return Fq(a)});a.a.on(a.m,"suspend",function(){return Fq(a)});a.a.on(a.m,_.Og,function(){return Fq(a)});a.a.on(a.m,_.uf,function(){a.f||Eq(a)});a.a.on(a.m,_.If,function(){a.f||Eq(a)});a.a.on(a.m,_.dg,function(){switch(a.m.getState()){case _.tp:Fq(a);break;default:Fq(a)}})};
|
|
258
|
+
Eq=function(a){a.m.getConfiguration().connectivityCheck&&(Gq(a),a.h=(new _.Vk(function(){return Hq(a)})).ea(5))};Fq=function(a){a.f&&Eq(a)};Gq=function(a){a.h&&(a.h.stop(),a.h=null)};Hq=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.y(d,Qj(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Dq(a,c);_.A(d)})};Dq=function(a,b){Gq(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(af,{online:a.f})))};
|
|
259
|
+
Mj=function(a){var b=new Iq,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Jq,e={vd:!1,Ji:!1};b={U:Kq(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};
|
|
260
|
+
Kq=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,v,z,C,H,E,B,G;return _.I(function(P){switch(P.a){case 1:return e=Lq,f=new hq,g=jq(f),_.D(P,2),_.y(P,e(a,c),4);case 4:h=P.f;l=sj(h.headers);m={uri:h.url,data:null,headers:l,status:h.status,timeMs:iq(g),responseStartMs:iq(f),request:b};if(vj(h.status)){P.F(5);break}n=m;return _.y(P,h.arrayBuffer(),6);case 6:throw n.data=P.f,xj(m);case 5:p=h.headers.get(ya);zj(b,p);q=p?parseInt(p,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return C=h.body.getReader(),
|
|
261
|
+
H=new kq(q,!b.disableMergedFragments),E=function(R,da){if(d.vd)return null;da&&da.data&&(Aj(b,da.data.byteLength,iq(f)),f.a=gq());return b.onFragment&&da?b.rateLimitBps?Bj(b.rateLimitBps,iq(g),b.bytesLoaded).then(function(){return b.onFragment(da)}):b.onFragment(da):null},B=m,_.y(P,nq(H,C,E,b.onProgress),12);t=h.body.getReader();v=new rq(q);return _.y(P,tq(v,t,b),9);case 9:z=P.f;if(!b.rateLimitBps){P.F(10);break}return _.y(P,Bj(b.rateLimitBps,iq(g),z.byteLength),10);case 10:m.data=z;P.F(8);break;
|
|
262
|
+
case 12:B.data=P.f;case 8:if(d.vd)throw Error("Request was aborted");return P["return"](wj(m));case 2:G=_.F(P);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});if(G&&1001===G.code)throw G;_.Kh("Error while fetching data:",G);throw new _.N(1,1,1002,{url:a,error:G,request:b,status:-1},G);}})};
|
|
263
|
+
Hj=function(a){try{var b=a.uris[a.uriIndex],c=_.Mq(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()}}}};
|
|
264
|
+
_.Mq=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Kh("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 _.Kh("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?_.hj(a).buffer:_.S.Ya(a).buffer,contentType:c}};
|
|
265
|
+
_.Nq=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.Oq=function(){this.a=[];this.f=-1;this.h=null};_.Qq=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.D(g,2),_.y(g,Pq(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;})};
|
|
266
|
+
Pq=function(a,b,c,d){var e,f,g,h;return _.I(function(l){if(1==l.a){if(d){if(e=_.Rq[d.toLowerCase()])return l["return"](e);_.Eh("Could not determine manifest type using MIME type ",d)}if(f=_.Sq(a)){if(g=_.Tq[f])return l["return"](g);_.Eh("Could not determine manifest type for extension ",f)}else _.Eh("Could not find extension for ",a);return d?l.F(2):_.y(l,Uq(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Rq[d])return l["return"](h);_.Eh("Could not determine manifest type using MIME type",d)}throw new _.N(_.O,
|
|
267
|
+
4,4E3,{url:a});})};Uq=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.uj(a),rj(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():"")})};_.Sq=function(a){a=(new _.pi(a)).Ga.split("/").pop().split(".");return 1===a.length?"":a.pop().toLowerCase()};Wq=function(){for(var a=0;a<Vq.length;++a)Vq[a].Tc()};
|
|
268
|
+
_.Xq=function(a,b){b=b||0;for(var c={priority:b,Tc:a},d=0;d<Vq.length;d++)if(Vq[d].priority<b){Vq.splice(d,0,c);return}Vq.push(c)};Yq=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.se)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};$q=function(a,b,c){if("input"===a)switch(this.type){case "range":a=wd}Zq.call(this,a,b,c)};
|
|
269
|
+
ar=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};br=function(a){a=a.target;if(a.webkitPresentationMode===hf){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement===a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)};
|
|
270
|
+
cr=function(){return this.webkitSupportsPresentationMode(hf)?(this.webkitSetPresentationMode(hf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};dr=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};er=function(a,b,c){return new window.TextTrackCue(a,b,c)};
|
|
271
|
+
fr=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};gr=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};hr=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")};_.ir=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};_.jr=function(a,b){a.classList.add(b)};
|
|
272
|
+
_.kr=function(a,b){if(a&&typeof b===_.Ve)for(var c in b)a.style[c]=b[c]};_.lr=function(a){return document.createElement(a)};mr=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};nr=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};or=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());fi(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.bh(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
|
|
273
|
+
sr=function(a,b){this.g=new _.K("clpp.PlayerSurface");this.w=_.M.sa(pr,b);this.f=new mr;this.h=null;this.a=new mr;this.l=qr;qr+=1;this.o="clpp-video-"+this.l;this.j=new _.Oh;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
|
|
274
|
+
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(_.Xd);c.parentNode?c.parentNode.replaceChild(e,
|
|
275
|
+
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),_.jr(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.ig);f=_.w([_.Vg,_.te]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.Jf);_.Ij()||c.removeAttribute(g)}e.appendChild(c)}e&&
|
|
276
|
+
(this.a.set(e),nr(this.a,"clpp-container"),nr(this.a,this.o),nr(this.f,_.yd),nr(this.f,"clpp-video"));d.webOSStartupPatch&&rr(this,c,e)}};rr=function(a,b,c){(_.Jj()&&53===_.Zk().major||_.Jj()&&68===_.Zk().major||_.$k())&&!b.hasAttribute(Sd)&&(b.style.opacity="0",b.setAttribute(Sd,""),a.j.one(b,je,function(){b.removeAttribute(Sd);b.style.opacity="1";c&&(c.style.opacity="1")}))};
|
|
277
|
+
wr=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=tr(this,this.A,this.h.Hk);this.o=new hr(c);this.a=null;this.w=!1;this.l=new Map;this.C=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");ur(this).forEach(function(d){return vr(b,d,!1)})};
|
|
278
|
+
yr=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=_.uf;xr(b);_.A(c)})};zr=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()})}))};
|
|
279
|
+
Ar=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=[]))};
|
|
280
|
+
Lr=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=Br(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===_.jf)return(g=e&&d.primary)?_.y(l,Cr(a,d),10):f?_.y(l,Dr(a,d),10):_.y(l,Er(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");
|
|
281
|
+
l.F(6);break}return _.y(l,Fr(a,d),6);case 10:xr(d);case 6:Gr(a,d);d.player.setMuted(!1);d.ac&&Hr(a,d,d.ac);if(d.rb)d.player.one(_.ne,d.rb);d.hi&&d.hi();case 3:_.qh(l);a.w=!1;e&&Ir(a,e);Jr(a);Kr(a,d.next);_.rh(l);break;case 2:throw h=_.F(l),a.g.error("Item failed to "+c+" (ID: "+b+")"),h;}})};Nr=function(a,b){var c=Mr(a);c?c.Ia=b:a.g.error("Failed to get primary item. Cannot configure resume position.")};Mr=function(a){return a.j.find(function(b){return!!b.primary})||null};
|
|
282
|
+
Br=function(a,b){return a.j.find(function(c){return c.id===b})||null};Gr=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(_.ne,e);b.disposers.push(function(){b.player.off(_.ne,e)})}c.Yf&&Or(a,b,function(){var f=a.a.ac;f&&(a.f.trigger(new _.L(_.Lc,{detail:f})),a.f.trigger(new _.L(_.zc,{detail:f})),f.a===f.f&&a.f.trigger(new _.L(_.wc)))});c.ln=!0}};
|
|
283
|
+
Or=function(a,b,c){function d(){b.player.off(_.pg,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&&Nr(a,g.Ia);b.player.on(_.pg,f);b.disposers.push(function(){null!=h&&(cancelAnimationFrame(h),
|
|
284
|
+
h=null)});b.disposers.push(d)};Pr=function(a){a.a&&(a.a.disposers.forEach(function(b){return b()}),a.a.disposers=[],a.a.ac&&Hr(a,a.a,a.a.ac),Gr(a,a.a),Jr(a),Kr(a,a.a.next))};ur=function(a){return[a.f].concat(_.bh(a.o.a.map(function(b){return b.player})))};Jr=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return Qr(a,b)}))};
|
|
285
|
+
Qr=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,Rr(a,c.player),3):d.F(3)}a.l["delete"](b);_.A(d)})};
|
|
286
|
+
Ir=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"),vr(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=Sr;return _.y(d,Rr(a,c),3)}vr(a,c,!1);_.A(d)})};Er=function(a,b){return _.I(function(c){if(1==c.a)return _.y(c,Fr(a,b),2);if(3!=c.a)return _.y(c,b.player.play(),3);b.state=_.uf;_.A(c)})};
|
|
287
|
+
Fr=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,Tr(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.a=b,b.role=Ur,a.a.player=c,a.a.videoEl=c.getSurface().getMedia(),vr(a,c,!0),b.state="loading",b.gd=Vr(c,b.config),_.y(d,b.gd,3);b.state="loaded";_.A(d)})};
|
|
288
|
+
Dr=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!==Ff){d.F(2);break}a.g.info(mc);_.D(d,3);return _.y(d,b.preloadPromise,5);case 5:_.ph(d,2);break;case 3:_.F(d);case 2:a.a=b;b.role=Ur;vr(a,c,!0);if(b.state===Ef)return _.y(d,c.play(),7);if(b.state!==Df){d.F(7);break}return _.y(d,Vr(c,b.config),7);case 7:b.state=_.uf,_.A(d)}})};
|
|
289
|
+
Hr=function(a,b,c){function d(){a.f.trigger(new _.L(_.Lc,{detail:c}));a.f.trigger(new _.L(_.zc,{detail:c}));c.a===c.f&&a.f.trigger(new _.L(_.wc))}function e(){a.f.trigger(new _.L(_.xc,{detail:c}))}function f(){a.f.trigger(new _.L(_.Ic,{detail:c}))}function g(){l.isEnded()||a.f.trigger(new _.L(_.Gc,{detail:c}))}function h(){var m=l.getPosition(),n=c.getDuration();c.j=m;a.f.trigger(new _.L(_.Hc,{detail:c}));!c.l&&m>=n/4&&(c.l=!0,a.f.trigger(new _.L(_.Ac,{detail:c})));!c.o&&m>=n/2&&(c.o=!0,a.f.trigger(new _.L(_.Fc,
|
|
290
|
+
{detail:c})));!c.w&&m>=3*n/4&&(c.w=!0,a.f.trigger(new _.L(_.Mc,{detail:c})))}var l=b.player;l.on(_.pg,h);l.on(_.ef,g);l.on(_.uf,f);l.on(_.md,e);l.one(_.ne,d);b.disposers.push(function(){l.off(_.pg,h);l.off(_.ef,g);l.off(_.uf,f);l.off(_.md,e);l.off(_.ne,d)});1===c.a&&a.f.trigger(new _.L(_.vc));a.f.trigger(new _.L(_.Dc,{detail:c}));a.f.trigger(new _.L(_.Kc,{detail:c}))};
|
|
291
|
+
Cr=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Ff){c.F(2);break}a.g.info("Wait for seek to finish");_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.ph(c,2);break;case 3:_.F(c);case 2:return a.a=b,b.role=Ur,vr(a,b.player,!0),b.state="loading",_.y(c,b.player.play(),6);case 6:b.state=_.uf,_.A(c)}})};Rr=function(a,b){return _.I(function(c){return b===a.f?c.F(0):_.y(c,a.o.release(b),0)})};
|
|
292
|
+
Tr=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)})};Kr=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 Wr(a,e)})),0)})};
|
|
293
|
+
Wr=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=Ff;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=Ef,g["return"]();case 2:return d=b.id,_.y(g,Tr(a,!1),5);case 5:return e=g.f,b.player=e,b.videoEl=e.getSurface().getMedia(),b.role=Sr,b.state=Ff,_.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: "+
|
|
294
|
+
(d+")")),b.config.autoplay=!1),b.preloadPromise=Vr(e,b.config),_.y(g,b.preloadPromise,8);case 8:b.state=Ef;_.ph(g,0);break;case 6:f=_.F(g),7001===f.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Cf):(a.g.warn("Preload failed (ID: "+d+")",f),b.state=Df),_.A(g)}})};
|
|
295
|
+
vr=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Zb+b),d.classList.add(Bd),d.classList.remove("clpp-hide")):(a.g.debug(lb+b),d.classList.remove(Bd),d.classList.add("clpp-hide")),a.C&&a.C(d,c))};
|
|
296
|
+
tr=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 sr(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})};Xr=function(a){a.B.forEach(function(b){return a.A.removeChild(b)});a.B=[];vr(a,a.f,!0)};
|
|
297
|
+
Vr=function(a,b){return _.I(function(c){return 1==c.a?_.y(c,a.release(),2):_.y(c,a.load(b),0)})};xr=function(a){if(a.ac&&0===a.ac.getDuration()){var b=a.player.getDuration();a.ac.h=b}a.Re&&a.Re()};
|
|
298
|
+
ds=function(a){_.Ul.call(this);var b=this;this.w=new Yr;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=Zr(b,c);return d&&[$r,as].includes(d.state)?(b.g.info("Seeking into an interstitial",d.wa),bs(b,d)["catch"](function(){b.j.seek(c)}),!1):!0});this.a=new wr({Hk:this.h.config,zi:a.player,preloadMedia:!0,Aa:a.Aa});this.l=[];this.f=[];this.o=!1;cs(this,a.player)};
|
|
299
|
+
es=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
|
|
300
|
+
gs=function(a){var b,c,d;_.I(function(e){var f=a.a;zr(f,[{id:Hf,primary:!0,config:f.f.getConfiguration(),next:[]}]);var g=Mr(f);if(!g)throw Error("Failed to find primary item");f.a=g;g.role=Ur;g.player=f.f;g.videoEl=g.player.getSurface().getMedia();vr(f,g.player,!0);b=a.j;c=b.getConfiguration();d=!c.autoplay;a.o=fs(a,d,b.isLive(),!1);if(a.o){f=a.a;g=f.o;if(g=g.a[0]?g.a[0].player:null)vr(f,f.f,!1),vr(f,g,!0);return e.F(0)}return c.autoplay?_.y(e,yr(a.a),0):e.F(0)})};
|
|
301
|
+
fs=function(a,b,c,d){var e=hs(a);a.g.info("Interstitial cues found",e);var f=e;if(d){f=ii(a.f.map(function(n){return n.wa}),e.map(function(n){return n.id}));is(a,f.en);var g=new Set(f.bj);f=e.filter(function(n){return g.has(n.id)})}if(!js(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(n){var p=n.customAttributes.CUE||[];p.includes(_.Jb)?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."):
|
|
302
|
+
h[0]&&ks(a,h[0],b);m.forEach(function(n){return ls(a,n,1)});1<l.length?a.g.warn("Multiple postroll interstitials not supported. Will display only the 1st one."):l[0]&&ls(a,l[0],2);a.g.info("Interstitials changed",a.f);return 0<h.length};is=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.wa)&&![$r,as].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)})};
|
|
303
|
+
hs=function(a){return a.j.getTimelineCues().filter(function(b){return b.schemeIdUri===Nd&&b.customAttributes})};bs=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,ms(a,b),2);c=d.f;if(!c)throw Error("Failed to bind");return _.y(d,ns(a,b,1,!1),0)})};
|
|
304
|
+
ls=function(a,b,c){var d=b.customAttributes[uc];b={wa:b.id,startTime:b.startTime,endTime:b.endTime,state:$r,Fg:b.customAttributes[rc],Gg:b.customAttributes[sc],Ka:null,Ia:null==d?null:b.startTime+d,jn:d,xi:b.customAttributes[tc],fg:c};a.f.push(b);return b};
|
|
305
|
+
ks=function(a,b,c){var d,e,f;_.I(function(g){if(1==g.a)return d=ls(a,b,0),_.y(g,ms(a,d),2);e=g.f;f=d.Ka?d.Ka.length:0;if(e&&0<f)return ns(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,yr(a.a),0)})};os=function(a){a.l.forEach(function(b){return b()});a.l=[]};
|
|
306
|
+
cs=function(a,b){function c(){fs(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=ps(a,e);if(!f){m.F(2);break}a.g.info(mb+f.wa+" coming up at "+(f.startTime+" s"));return _.y(m,ms(a,f),3);case 3:(g=m.f)&&qs(a,f,b);case 2:h=rs(a);if(!(h&&h.state===$r&&b.getDuration()-e<a.h.resolutionOffsetSec)){m.F(0);break}return _.y(m,ms(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=ss(a,h,2),q=p[0].id;n.next=[q];n.transition=
|
|
307
|
+
{rb:q};ts(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(_.pg,d);a.l.push(function(){b.removeEventListener(_.pg,d)});b.addEventListener(_.og,c);a.l.push(function(){b.removeEventListener(_.og,c)})};rs=function(a){return a.f.find(function(b){return 2===b.fg})||null};
|
|
308
|
+
js=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(ob+g.id+" and "+h.id+" are too close to each other (less than "+(d+" s)."));h&&h.startTime<=g.endTime&&e.push(ob+g.id+" and "+h.id+" overlap.")}var l=[];b.forEach(function(m){var n=m.customAttributes[sc],p=m.customAttributes[tc];m.customAttributes[rc]||n?null!=p&&1>p&&a.g.warn(nb+m.id+" is invalid X-PLAYOUT-LIMIT is less than 1 s.",
|
|
309
|
+
m):l.push(nb+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};ps=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.fg&&[$r,as].includes(c.state)&&0<d&&d<=a.h.resolutionOffsetSec})||null};
|
|
310
|
+
Zr=function(a,b){return a.f.find(function(c){return 1===c.fg&&b>c.startTime&&b<c.endTime})||null};
|
|
311
|
+
ms=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:b.state=us;if(!b.Fg){b.Gg?(b.Ka=[{URI:b.Gg,DURATION:b.endTime-b.startTime}],b.state=vs):b.state=ws;f.F(2);break}_.D(f,3);a.g.info("Load X-ASSET-LIST for "+b.wa);a.fb(new _.L(Bc));c=b;return _.y(f,xs(a,b.Fg),5);case 5:c.Ka=f.f;b.Ka&&0!==b.Ka.length||a.g.info(mb+b.wa+" has no assets, will be smoothly skipped");null==b.Ia&&(d=Ri(b.Ka.map(function(g){return g.DURATION})),b.Ia=b.startTime+d);b.state=vs;a.fb(new _.L(Cc));_.ph(f,2);break;
|
|
312
|
+
case 3:e=_.F(f),a.g.error("Failed to load X-ASSET-LIST",e),b.state=ws;case 2:return f["return"](b.state===vs)}})};ns=function(a,b,c,d){var e,f;return _.I(function(g){e=a.a.getCurrentItem();if(!e)return g["return"]();f=ss(a,b,c);ts(a,b,f);Nr(a.a,b.Ia);return d?_.y(g,a.a.load(f[0].id),0):_.y(g,a.a.play(f[0].id),0)})};
|
|
313
|
+
qs=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(_.bi,d);a.l.push(function(){c.off(_.bi,d)});a.g.info(mb+b.wa+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=ss(a,b,1),g=f[0].id;Nr(a.a,b.Ia);e.next=[g];e.transition={Yf:{position:b.startTime,itemId:g,Ia:b.Ia}};ts(a,b,f);a.g.info(mb+b.wa+
|
|
314
|
+
" scheduled for "+(b.startTime+" s"))}}};ts=function(a,b,c){zr(a.a,c);Pr(a.a);b.state=ys;a.fb(new _.L(_.Ec,{detail:null}))};
|
|
315
|
+
ss=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 gr(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=[Hf],m.transition={rb:Hf}):(p=p?Hf: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 "+
|
|
316
|
+
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=Hf:g.transition.Yf={position:h,itemId:Hf}):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=
|
|
317
|
+
zs};e[e.length-1].rb=function(){b.state=as;Ar(a.a,e.map(function(m){return m.id}))};return e};xs=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=_.uj(b);return _.y(l,Pj(d,e),2)}f=l.f;g=As(f);if(!g)throw new _.ki("Invalid X-ASSET-LIST list response");h=f;return l["return"](Promise.resolve(h.ASSETS))})};
|
|
318
|
+
As=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.gg&&typeof b.DURATION===_.k}):!1};Yr=function(){this.a=null};Bs=function(){this.a=null};Cs=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Ds=function(a,b,c){var d=_.S.aa;this.h=a;this.f=b;JSON.parse(d(_.hj(a)));this.a=JSON.parse(d(_.hj(b)));this.j=c};
|
|
319
|
+
Fs=function(a){var b=Es,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=_.hj(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(new _.ki("Signature Verification failed",sg))})["catch"](h)}else g()})};Gs=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.utils.LicenseKey")};
|
|
320
|
+
Hs=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 Ds(b[0],b[1],b[2]);a.a=b}return a.a};
|
|
321
|
+
Is=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=Hs(a),_.D(e,2),_.y(e,Fs(b),4);if(2!=e.a)return _.ph(e,0);if((c=_.F(e))&&c.code===sg)throw c;var f=window.location.href,g=new _.pi(f);d=g.tb||g.Ra?g:new _.pi("//"+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;})};
|
|
322
|
+
Js=function(a){switch((a.Z[0]||{src:"",type:""}).type){case _.Uc:a="dash";break;case _.Zc:a="ss";break;case _.El:a="hls";break;case _.Ig:a="mp4";break;default:a=""}return a};Ks=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};Ls=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Ms=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
|
|
323
|
+
Os=function(a){var b=a.configuration,c="no";b.drm&&!_.M.la(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ie)||Ns(a).endsWith("drmtoday.com"))&&(c=ie);return c};Ps=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Qd:b="wv";break;case _.Od:b="pr";break;case _.Md:b="fps"}return b};Qs=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
|
|
324
|
+
Rs=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case jb:case hb:b="L1";break;case ib:b="L2";break;case _.Wb:case _.Vb:b="L3"}return b};Ns=function(a){a=a.drmInfo;return(new _.pi(a&&a.licenseServerUri||"")).Ra};
|
|
325
|
+
Us=function(a,b){var c="ie"===_.Kj().browser,d=b.configuration,e=_.bh(Array.from(_.jm.keys())).concat(_.bh(b.yi));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ja,"CL-USER-ID":Ks(d),"CL-ASSET-ID":Ls(d),"CL-SESSION-ID":Ms(d),"CL-PLAYBACK-TYPE":b.isLive?Ss:Ts,"CL-CONTENT-TYPE":Js(b),"CL-PLUGINS":e.join(" "),"CL-DRM":Os(b),"CL-DRM-CDM":Ps(b),"CL-DRM-SEC-LEVEL":Rs(b),"CL-DRM-OFFLINE":Qs(b),"CL-DRM-IP":Ns(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.uj(["https://downloads.castlabs.com/r/register/"]);
|
|
326
|
+
e.method="GET";e.headers=d;return(new _.Nj).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=Hs(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.";
|
|
327
|
+
break;default:f=Promise.resolve();break a}a.g.error(tb+l);f=Promise.reject(new _.N(_.O,7,g,l))}}return f})};
|
|
328
|
+
X=function(a,b,c){_.Ul.call(this);var d=this;Wq();this.g=new _.K("clpp.Player");if(!a)throw new _.N(_.O,7,7102);this.ga=new _.Oh;this.f=this.C=b||_.em();this.l=null;void 0===this.f.license&&(this.f.license=cm,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 sr(a,c);this.A=this.a=this.G=null;
|
|
329
|
+
this.I=new _.Nj;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 Cq(this);this.B=null;this.on(_.dg,function(){d.getState()===_.zp&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Qc,this.bi.bind(this));this.on(_.Pc,this.bi.bind(this));this.on(_.og,function(){return Vs(d)});Ws(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."),
|
|
330
|
+
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(Xs);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)}}Ys(this,a);this.N=_.qa;pm(this)};
|
|
331
|
+
_.Zs=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))};Ws=function(a,b){a.G=new Gs(b);Is(a.G)["catch"](function(c){setTimeout(function(){a.g.error(tb+c);a.trigger(new _.L(_.oe,{detail:new _.N(_.O,7,7101)}));a.destroy()},1E3)})};
|
|
332
|
+
$s=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 Gs(a.f.license)),_.D(e,2),a.g.debug("Verifying license remotely"),_.y(e,Us(a.G,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.ph(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(Cs,1E3,d,c);_.A(e)})};
|
|
333
|
+
Ys=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")};
|
|
334
|
+
at=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,Mg);a.trigger(new _.L(_.Mf));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(_.dg,function(e){b=e}),d["return"](a.Ac(_.Ze).then(function(){a.a.stopForwardingEventsTo(a);
|
|
335
|
+
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(_.dg,c);a.trigger(new _.L(Lf))}));a.trigger(new _.L(Lf));return d["return"](new Promise(function(e){return e()}))}})};
|
|
336
|
+
ct=function(a,b,c){if(a.N===_.Ib)b=bt(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(_.Wl);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?(_.Xl.debug("Player Factory '"+a.Aa.a()+"' can play",b[d]),b=new Vl(a.Aa,d)):(_.Xl.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
|
|
337
|
+
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};bt=function(a,b){var c=Zl(function(d){return d.f(_.Ib)&&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}};
|
|
338
|
+
et=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(Lb),c["return"]();b=a.a;if(!b.Sg)return a.g.warn(Pb),c["return"]();a.trigger(new _.L(Je));return _.y(c,b.Sg(),2)}return _.y(c,_.dt(a),0)})};
|
|
339
|
+
_.ht=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!");_.Xn(pf);return _.y(f,a.release(),2)}if(3!=f.a){d=c||_.Gp(b);if(!b||0===d.length)throw new _.N(_.O,7,7003,Cb);a.ta=d;a.f=_.gm(a.C,b,{source:d});a.V=!1;e=ct(a,d,a.f);_.Zs(a,e.player,e.Aa);a.a&&a.a.setSourceIndex(e.sourceIndex);ft(a);a.a&&a.a.setCdnErrorCallback(a.L);gt(a,a.f);a.B=new vq(a);a.a.setCmsdManager(a.B);
|
|
340
|
+
if(a.f.pauseWhenInBackground)a.ga.on(document,Mg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});qm(a);return _.y(f,a.Ac("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.Xn(of);_.Yn("player.beforeLoad",pf,of);_.A(f)})};_.it=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.L(Je));return _.y(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};
|
|
341
|
+
kt=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)}jt(a);_.A(f)})};
|
|
342
|
+
jt=function(a){var b=_.di(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ia().filter(function(f){return c?f.kind===_.qe:f.kind!==_.qe});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().ma();e&&e.language?(e=_.Ni(e.language||""),b.push(e)):(e=a.getTrackManager().Oa())&&e.language&&(e=_.Ni(e.language||""),b.push(e));0===
|
|
343
|
+
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=_.Ni(f);if(f=d.find(function(h){h=_.Ni(h.language||"");return _.Oi(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})}};
|
|
344
|
+
_.dt=function(a){var b;return _.I(function(c){if(1==c.a)return _.Xn(lf),$s(a,{configuration:a.getConfiguration(),Z:a.Fh(),drmInfo:a.getDrmInfo(),yi:Object.keys(a.K),isLive:a.isLive()}),kt(a),rm(),_.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);_.Xn(kf);_.Yn("player.afterLoad",lf,kf);_.A(c)})};gt=function(a,b){var c=Zp(a,b);c&&(a.h=c.create(a))};
|
|
345
|
+
Vs=function(a){!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(b){return b.schemeIdUri===Nd})&&(a.h=new Bs,a.h.Vc(a.a,a.A))};ft=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)})})};_.lt=function(a){a&&(0<=Xs.indexOf(a)||Xs.push(a))};
|
|
346
|
+
mt=function(a,b,c,d,e){_.Fm.call(this,kb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Dd);_.S.empty(this.l)?this.g.warn(_.pc):this.Wa(_.Qd,{licenseUrl:this.l,videoRobustness:[_.Wb,void 0],audioRobustness:[_.Vb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.$d.bind(this)}});_.S.empty(this.j)?this.g.warn(_.Kb):this.Wa(_.Od,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.$d.bind(this)}});
|
|
347
|
+
_.S.empty(this.h)?this.g.warn(_.eb):_.S.empty(this.a)?this.g.warn(_.db):this.Wa(_.Md,{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)}})};nt=function(){this.a=null;this.g=new _.K("clpp.drm.eme.StandardEmeManager")};ot=function(){};pt=function(){this.size=0;this.a=void 0;this.g=new _.K("clpp.drm.eme.MediaKeyStatusMap")};
|
|
348
|
+
qt=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};rt=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
|
|
349
|
+
st=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.cf&&(this.a=Qg,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,
|
|
350
|
+
this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Ig,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Of||a||(e=!1);if(e){this.f=f;return}}b=hc;if(c===_.cf||c===_.Qd)b="None of the requested configurations were supported.";c=Error(b);c.name=Hb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};tt=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.Oh;this.j=[];this.l=new Map};
|
|
351
|
+
wt=function(a,b){a.a=b;_.Rh(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(le);d.initDataType=_.td;d.initData=dj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=ut(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.L(_.Ne,{messageType:e?Be:Ae,message:c.message});_.Jh("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Kh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
|
|
352
|
+
ut(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=ut(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?vt(d,_.df):1===e?vt(d,"expired"):vt(d,_.xe))}}))};
|
|
353
|
+
ut=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};xt=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 _.Cj;this.keyStatuses=new pt};
|
|
354
|
+
zt=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.gf)if(c)var d=_.Wi(_.S.Ya("LOAD_SESSION|"+c));else{var e=_.S.Ya("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Wi(b),e.byteLength);d=f}else d=_.Wi(b)}catch(h){return Promise.reject(h)}a.f=new _.Cj;var g=yt(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==qb)return a.f=null,Promise.reject(h);(new _.Vk(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
|
|
355
|
+
a.f=null}})).ea(.01)}return a.f};At=function(a,b,c){if(a.a)a.a.then(function(){return At(a,b,c)})["catch"](function(){return At(a,b,c)});else{a.a=b;if(a.h===Qg){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=_.hj(e.keys[0].k);e=_.hj(e.keys[0].kid)}else d=_.Wi(c),e=null;var f=yt(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};vt=function(a,b){qt(a.keyStatuses,b);a.dispatchEvent(new _.L(ye))};
|
|
356
|
+
yt=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};Bt=function(){};Ct=function(){this.a=this.f=null};
|
|
357
|
+
Dt=function(a,b){this.keySystem=a;if(a.startsWith(_.Md))for(var c=_.w(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Of)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.bf,distinctiveIdentifier:_.bf,initDataTypes:e.initDataTypes,sessionTypes:[lg],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])&&
|
|
358
|
+
(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,_.Ig));d=g?d:null}if(d){this.a=d;return}}c=Error(hc);c.name=Hb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
|
|
359
|
+
Et=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.Oh;this.j=0;this.g=new _.K(Ed);this.g.info("Created Media Keys for "+a)};
|
|
360
|
+
Ft=function(a,b){a.f=b;_.Rh(a.a);if(!b)return Promise.resolve();a.a.on(b,le,function(c){_.Jh("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,Ug,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Wi(c.initData);if(_.cj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
|
|
361
|
+
c=_.S.tc(c.subarray(4),!0);c=_.S.Ya(c);var d=new Event(le);d.initDataType="skd";d.initData=dj(c);a.f.dispatchEvent(d)});np(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Gt=function(a,b){_.Ul.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.Oh;this.sessionId=b;this.expiration=NaN;this.closed=new _.Cj;this.l=!1;this.keyStatuses=new pt;this.g=new _.K(Ed)};Ht=function(a,b){qt(a.keyStatuses,b);a.dispatchEvent(new _.L(ye))};
|
|
362
|
+
It=function(){};Jt=function(){};Kt=function(){};_.Lt=function(){};Mt=function(){};_.Ot=function(a){if(Nt.has(a))return Nt.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Nt.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Nt.set(a,b),b):!1};Pt=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
|
|
363
|
+
Qt=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.ad&&(c=c.replace(_.r,_.ad));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};_.St=function(){this.a=new Blob([Rt],{type:_.Ig})};_.Tt=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};
|
|
364
|
+
_.Ut=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};
|
|
365
|
+
_.Vt=function(a){a=a.getConfiguration();a=_.M.$a(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.gg?a.backgroundColor:null;this.V=typeof a.windowColor===_.gg?a.windowColor:null;this.N=typeof a.fontColor===_.gg?a.fontColor:null;this.P=typeof a.fontFamily===_.gg?a.fontFamily:null;this.I=typeof a.fontSize===_.gg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.gg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
|
|
366
|
+
_.gg&&(this.o=a.edgeType)};_.au=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Wt:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Yt:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Zt:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case $t:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Ue}};
|
|
367
|
+
_.cu=function(a){_.Vt.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+bu++;this.h=document.createElement(_.ig);this.j=this.w=!1;_.jr(this.l,this.f);document.head.appendChild(this.h);this.Mb()};_.eu=function(a,b){var c=_.Qk(_.Rk(a),_.Sk(a));_.du[c]=b};_.fu=function(a){a=_.Qk(_.Rk(a),_.Sk(a));return _.du[a]||null};_.gu=function(a){a=_.Qk(_.Rk(a),_.Sk(a));delete _.du[a]};hu=function(){};iu=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
|
|
368
|
+
lu=function(a){_.Ul.call(this);var b=this;this.h=_.M.sa({transition:_.ef,preloadMedia:!1},a);this.j=[];this.a=0;var c=ju(a.anchorId,this.h.config);this.w=new hr(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.K(Hd);this.w.a.forEach(function(d){return ku(b,d.player,!1)})};nu=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return mu(a,b)}))};
|
|
369
|
+
mu=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,ou(a,c),3):d.F(3)}a.o["delete"](b);_.A(d)})};qu=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),ku(a,b.player,!1),_.y(c,ou(a,b),2);b.player=null;b.videoEl=null;b.role=pu;_.A(c)})};
|
|
370
|
+
ou=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)})};tu=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=ru,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),ku(a,c,!0),_.y(d,c.load(b.config),3);su(a,b);return b.config.autoplay?d.F(0):_.y(d,c.play(),0)})};
|
|
371
|
+
uu=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Ff){c.F(2);break}a.g.info(mc);_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.ph(c,2);break;case 3:_.F(c);case 2:a.f=b;b.role=ru;ku(a,b.player,!0);if(b.state===Ef)return _.Xn(Bf),a.h.preloadMedia?_.y(c,b.player.play(),11):_.y(c,et(b.player),11);if(b.state!==Df){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 11:_.Xn(Af),_.Yn("playlist.next",Bf,Af);case 7:if(su(a,b),b.config.autoplay)c.F(0);
|
|
372
|
+
else return _.y(c,b.player.play(),0)}})};su=function(a,b){if(a.h.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.wi()};b.player.on(_.ne,c);var d=b.player;b.disposers.push(function(){d.off(_.ne,c)})}};wu=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,vu(a,b),0)})};xu=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,vu(a,b),0)})};
|
|
373
|
+
yu=function(a){var b;_.I(function(c){if(0===a.a)return _.y(c,wu(a),0);if(a.a===a.j.length-1)return _.y(c,xu(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 vu(a,d)})),0)})};
|
|
374
|
+
vu=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=pu,d.state=Ff,a.trigger(new _.L(vg)),_.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=
|
|
375
|
+
Ef;a.trigger(new _.L(vg));_.ph(f,0);break;case 3:e=_.F(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Cf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.oe,{detail:e})),d.state=Df),a.trigger(new _.L(vg)),_.A(f)}})};ku=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Zb+b),d.classList.add(Bd)):(a.g.info(lb+b),d.classList.remove(Bd)),a.A&&a.A(d,c))};
|
|
376
|
+
zu=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(Ad);b.innerHTML="";_.A(c)})};
|
|
377
|
+
ju=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(Ad);return Array.from({length:3}).map(function(){var d=document.createElement(_.r);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.Xd);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new X(d,b)})};
|
|
378
|
+
Au=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=[]};Bu=function(a){a.J.forEach(function(b){return b()});a.J=[]};
|
|
379
|
+
Cu=function(a,b){function c(f){a.H=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Sf,c);a.J.push(function(){a.removeEventListener(_.Sf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.pg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.L(_.Rf)),a.pause())};a.addEventListener(_.pg,e);a.J.push(function(){a.removeEventListener(_.pg,e)})}};
|
|
380
|
+
Fu=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.D(e,2),_.Xn(tf),a.N=_.Ib,a.fa=!1,c=b.slice(1).map(function(f){return{config:f,Z:_.Gp(f)}}),_.y(e,_.ht(a,b[0]),4);case 4:return c.forEach(function(f){Du(a,f.config,f.Z)}),a.trigger(new _.L(Je)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.dt(a),6);case 6:c.forEach(function(f){Eu(a,f.config,f.Z)});_.Xn(sf);_.Yn("player.setupPlaylist",tf,sf);_.ph(e,0);break;case 2:d=_.F(e);if(a.l)throw a.g.info(ub),new _.N(_.O,7,7E3);
|
|
381
|
+
throw d;}})};Gu=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.D(e,2),_.Xn(nf),c=_.Gp(b),Du(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return Eu(a,b,c),_.Xn(mf),_.Yn("player.appendLoad",nf,mf),_.ph(e,0);d=_.F(e);if(a.l)throw a.g.info(ub),new _.N(_.O,7,7E3,{id:b.id});throw d;})};Eu=function(a,b,c){$s(a,{configuration:b,Z:c,drmInfo:a.getDrmInfo(),yi:Object.keys(a.K),isLive:c[0].isLive})};
|
|
382
|
+
Du=function(a,b,c){if(0===c.length)throw new _.N(_.O,7,7003,{message:Cb,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]});};_.Hu=function(){};_.Zg=[];ch=typeof Object.create==_.se?Object.create:function(a){function b(){}b.prototype=a;return new b};
|
|
383
|
+
if(typeof Object.setPrototypeOf==_.se)Qu=Object.setPrototypeOf;else{var Yu;a:{var Zu={$i:!0},$u={};try{$u.__proto__=Zu;Yu=$u.$i;break a}catch(a){}Yu=!1}Qu=Yu?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
|
|
384
|
+
var dh=Qu,hh=typeof Object.defineProperties==_.se?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},fh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;ih.prototype.toString=function(){return this.a};var gh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new ih("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
|
|
385
|
+
lh.prototype.A=function(a){this.f=a};lh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};lh.prototype.F=function(a){this.a=a};
|
|
386
|
+
yh("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=fh.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=
|
|
387
|
+
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 _.Ve:var h=null!=g;break a;case _.se:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
|
|
388
|
+
b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.se?this.H(h,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;this.A()};b.prototype.A=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.G=function(g){var h=this.j();
|
|
389
|
+
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==_.se?function(v){try{m(q(v))}catch(z){n(z)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.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: "+
|
|
390
|
+
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 Ah=this||self;
|
|
391
|
+
Ah.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};
|
|
392
|
+
_.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===_.gg||a===_.k||a===_.kd};_.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===_.Ve};
|
|
393
|
+
_.M.Ib=function(a){return typeof a===_.se};_.M.da=function(a){return typeof a===_.gg};_.M.ra=function(a){return typeof a===_.k};_.M.Mh=function(a){return typeof a===_.kd};_.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))};
|
|
394
|
+
_.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};
|
|
395
|
+
_.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};
|
|
396
|
+
_.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===_.Ve&&e&&typeof e===_.Ve){if(!_.M.Th(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
|
|
397
|
+
_.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===_.Ve&&e&&typeof e===_.Ve&&_.M.Uh(d,e))return!0}return!1};var Fh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Fh);var Ch=3,Bh={},av=[];_.J("clpp.log.getLoggers",function(){return _.M.$a(Bh)});_.J("clpp.log.addInterceptor",function(a){a&&av.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=av.indexOf(a),0<=a&&av.splice(a,1))});_.J("clpp.log.getTagLevel",Dh);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Bh[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.M.da(b)&&(b=Gh(b)),Bh[a]=b)});
|
|
398
|
+
_.J("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.M.da(a)&&(a=Gh(a));Ch=a});_.J("clpp.log.getLogLevel",function(){return Ch});_.u=_.K.prototype;
|
|
399
|
+
_.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=Dh(this.tag);if(0<=d){if(d<c)return}else if(Ch<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):
|
|
400
|
+
1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.w(av);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)};
|
|
401
|
+
_.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 Hh=new _.K("clpp");_.J("clpp.log.info",_.Ih);
|
|
402
|
+
_.J("clpp.log.debug",_.Jh);_.J("clpp.log.warn",_.Eh);_.J("clpp.log.error",_.Kh);_.Lh.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Lh.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Lh.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};_.Lh.prototype.clear=function(){this.a={}};(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();Mh.prototype.fb=function(a){try{this.Tc.handleEvent?this.Tc.handleEvent(a):this.Tc.call(this.a,a)}catch(b){_.Kh("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=Nh.prototype;
|
|
403
|
+
_.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 Mh(a,b,c||this.f));return b};_.u.one=function(a,b,c){this.a.push(a,new Mh(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()};_.Oh.prototype.release=function(){_.Rh(this)};_.Oh.prototype.on=function(a,b,c,d){a=new Sh(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Oh.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)};_.Oh.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||(Qh(f),this.a.remove(b,f))}};Th.prototype.release=function(){this.f.release();this.h=[];this.a=null};Th.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();a.l=null;a.j=null;_.A(b)})};Th.prototype.getTimelineCues=function(){return this.h};_.x(_.N,Error);_.N.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=ji(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};
|
|
398
404
|
_.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,
|
|
399
405
|
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,
|
|
400
|
-
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,
|
|
401
|
-
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,
|
|
402
|
-
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,
|
|
403
|
-
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,
|
|
404
|
-
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,
|
|
405
|
-
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,
|
|
406
|
-
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,
|
|
407
|
-
_.x(_.
|
|
408
|
-
_.
|
|
409
|
-
".."==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.
|
|
410
|
-
_.
|
|
411
|
-
_.
|
|
412
|
-
"cs"],["dan","da"],["deu","de"],[_.
|
|
406
|
+
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,
|
|
407
|
+
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,
|
|
408
|
+
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,
|
|
409
|
+
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,
|
|
410
|
+
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,
|
|
411
|
+
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,
|
|
412
|
+
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,
|
|
413
|
+
SESSIONS_INVALID_CONFIGURATION:15E3};_.x(_.ki,Error);var ui=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.u=_.pi.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(xi(b,bv,!0),":");if(b=this.Ra){a.push("//");var c=this.Dc;c&&a.push(xi(c,bv,!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(xi(b,"/"==b.charAt(0)?cv:dv,!0));(b=this.a.toString())&&a.push("?",b);(b=this.sc)&&a.push("#",xi(b,ev));return a.join("")};
|
|
414
|
+
_.u.resolve=function(a){var b=new _.pi(this);"data"===b.tb&&(b=new _.pi);var c=!!a.tb;c?qi(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)ri(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(""):
|
|
415
|
+
".."==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?_.si(b,ti(a.a)):c=!!a.sc;c&&(b.sc=a.sc);return b};var bv=/[#\/\?@]/g,dv=/[#\?:]/g,cv=/[#\?]/g,yi=/[#\?@]/g,ev=/#/g;_.wi.prototype.a=null;_.wi.prototype.h=null;
|
|
416
|
+
_.wi.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};
|
|
417
|
+
_.wi.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 Ai;_.Q="text";_.Np={VIDEO:_.r,AUDIO:_.ad,TEXT:_.Q,Mn:_.Sc,IMAGE:_.we,Zi:_.jg};_.fv=1/15;Ai={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/]};Ai[_.Q]=[/^vtt$/,/^wvtt/,/^stpp/];var Ci={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Fi={text:{mp4:Vc,m4s:Vc,m4i:Vc,cmft:Vc,vtt:_.mg,ttml:_.Yc},video:{mp4:_.Ig,m4s:_.Ig,m4i:_.Ig,m4v:_.Ig,cmfv:_.Ig,ts:_.Hg},audio:{mp4:_.ed,m4s:_.ed,m4i:_.ed,m4a:_.ed,cmfa:_.ed,ts:_.Hg,aac:_.bd,ec3:_.dd,ac3:_.cd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Hi.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};_.Hi.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.Li.prototype.getPosition=function(){return this.position};_.Li.prototype.Od=function(){return this.ka?this.ka-this.ya+1:null};_.Li.prototype.f=$g(0);_.x(_.Mi,_.Li);var Pi=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",
|
|
418
|
+
"cs"],["dan","da"],["deu","de"],[_.Xd,"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",
|
|
413
419
|
"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",
|
|
414
420
|
"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",
|
|
415
421
|
"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",
|
|
416
|
-
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var
|
|
417
|
-
_.J("clpp.utils.strings.fromUtf8",_.S.
|
|
418
|
-
_.S.
|
|
419
|
-
_.S.
|
|
420
|
-
c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.S.
|
|
421
|
-
_.J("clpp.utils.strings.toUtf16",_.S.
|
|
422
|
-
_.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.
|
|
423
|
-
_.S.
|
|
424
|
-
_.S.
|
|
425
|
-
_.S.
|
|
426
|
-
d+'".');c.add(d)})},
|
|
427
|
-
d.getAttribute(_.
|
|
428
|
-
_.w(_.Y.
|
|
429
|
-
if(c.value===_.
|
|
430
|
-
_.
|
|
431
|
-
d+a-1}return{
|
|
432
|
-
d.
|
|
433
|
-
a);null==c.iv&&(c.iv=
|
|
434
|
-
c){return b+c},0)}
|
|
435
|
-
|
|
436
|
-
a.next()){c=c.value;var d=_.
|
|
437
|
-
c=c.next().value;return{frameRate:
|
|
438
|
-
void 0!==d&&0<=d&&(e.plannedDuration=d);var h=_.
|
|
439
|
-
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.startsWith("X-")&&(a[c.name]=c.value);return _.M.
|
|
440
|
-
c.value.split(",")}return a[
|
|
441
|
-
_.
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
p.
|
|
445
|
-
|
|
446
|
-
_.
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
_.
|
|
450
|
-
|
|
451
|
-
_.
|
|
452
|
-
_.
|
|
453
|
-
_.
|
|
454
|
-
|
|
422
|
+
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Xi=function gv(a){var c;return _.xh(gv,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",Ui);Ui.toArrayBuffer=dj;Ui.toDataView=_.cj;Ui.toInt32Array=_.bj;Ui.toUint32Array=aj;Ui.toUint16Array=$i;Ui.toUint8Array=_.Wi;Ui.equal=Yi;_.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=_.Wi(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($a);return a}a=escape(_.S.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error($a);}};
|
|
423
|
+
_.J("clpp.utils.strings.fromUtf8",_.S.aa);
|
|
424
|
+
_.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=_.Wi(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(_.Wi(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)};
|
|
425
|
+
_.S.Ld=function(a,b){if(_.M.da(a))return a;var c="",d=!!b,e=_.Wi(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)),
|
|
426
|
+
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};
|
|
427
|
+
_.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=aj(e):2===c?f=$i(e):f=_.Wi(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);
|
|
428
|
+
_.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()})};
|
|
429
|
+
_.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);
|
|
430
|
+
_.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);
|
|
431
|
+
_.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",ej);ej.toStandardBase64=_.fj;ej.concat=lj;ej.equal=_.kj;ej.toHex=_.jj;ej.fromHex=_.ij;ej.fromBase64=_.hj;ej.toBase64Url=_.gj;_.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=_.Ii(d,"VALUE"),f=_.Ii(d,"NAME"),g=_.Ii(d,"IMPORT"),h=_.Ii(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 "'+
|
|
432
|
+
d+'".');c.add(d)})},Gf:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Ji(d,_.bc);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=
|
|
433
|
+
d.getAttribute(_.bc);d=d.getAttribute(_.gb);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=_.Ii(b,"LAYOUT")||"1x1";b=_.Ii(b,_.Ha);a=_.Si(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 _.pi(a);b=new _.pi(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=
|
|
434
|
+
_.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,Oa)})},hj:function(a){return _.Y.Ue(a).filter(_.Y.Lh)},Rm:function(a,b){var c=_.Y.Ta(a,Oa);if(b&&c)return _.kc;c=_.Y.Ta(a,Ua);if(!c)return"LIVE";
|
|
435
|
+
if(c.value===_.kc)return _.kc;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:_.ad,VIDEO:_.r,SUBTITLES:_.Q,"CLOSED-CAPTIONS":_.Q}[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=_.Ji(a,_.bc).toUpperCase();if(_.Y.ih(b)!==_.Q)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.jg;b===_.sa&&(c=
|
|
436
|
+
_.pd);a&&(c=_.qe);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=
|
|
437
|
+
d+a-1}return{ya:d,ka:e}},ri:function(a,b){var c=_.Y.Ta(a,Ka);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,Xa,{required:b.Ci});if(!e)return d;d.qe="YES"===_.Ii(e,"CAN-BLOCK-RELOAD");d.lj="YES"===_.Ii(e,"CAN-SKIP-DATERANGES");d.mj=c(_.Ii(e,"CAN-SKIP-UNTIL"));d.ul=c(_.Ii(e,"HOLD-BACK"));
|
|
438
|
+
d.vi=c(_.Ii(e,"PART-HOLD-BACK",void 0,{required:b.Ci}));return d},pi:function(a,b,c){c=void 0===c?!1:c;a=_.Ii(a,"BYTERANGE");return _.Y.oi(a,b,c)},Pm:function(a){var b=_.Y.Ob(a,"EXT-X-MEDIA"),c=_.Y.Ob(a,_.Ya);a=_.Y.Ob(a,"EXT-X-IMAGE-STREAM-INF");return{jd:{fj:_.Y.Gf(b,[_.ka,_.jc]),closedCaptions:_.Y.Gf(b,_.sa),yn:_.Y.Gf(b,_.Ub)},fe:c,Lf:a}},Dk:function(a,b){var c=_.Y.ri(a.X,null);return new _.Mi(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({},
|
|
439
|
+
a);null==c.iv&&(c.iv=lj(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===_.ad||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,
|
|
440
|
+
c){return b+c},0)},$k:function(a,b){return a&&b?_.Yo(a.drmInfos,b.drmInfos)?_.Xo(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===_.kc)return{delay:0,Cc:0};b=_.Y.Ta(a,Sa);if(c&&b)return c=Number(_.Ji(b,"PART-TARGET")),null!=d?{delay:d,Cc:c}:{delay:_.Y.si(a,{Ci:!0}).vi,Cc:c};a=_.Y.Eh(a,Za);a=Number(a.value);return null!=d?{delay:d,
|
|
441
|
+
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,_.bh(b.map(function(c){return c.delay}))),Cc:Math.min.apply(Math,_.bh(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 _.Ni(a||_.tg)},Im:function(a){var b=new Map;a=_.w(a);for(var c=a.next();!c.done;c=
|
|
442
|
+
a.next()){c=c.value;var d=_.Ii(c,_.sb);d=_.Y.zh(d);var e=_.Ji(c,_.gb);c=_.Ji(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(_.Rb))return null;var b=_.Ii(a,"FRAME-RATE");a=_.Ii(a,_.Rb);var c=_.w(a?a.split("x"):[null,null]);a=c.next().value;
|
|
443
|
+
c=c.next().value;return{frameRate:Qi(b),width:Qi(a),height:Qi(c)}},Fl:function(a){return"EXT-X-MEDIA"!==a.name?!0:_.Ii(a,_.bc)===_.Ub},Jm:function(a,b,c,d){var e=_.Ii(a,"ID"),f=_.Ii(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=Qi(_.Ii(a,_.Ha));void 0!==c&&0<=c&&(e.duration=c);d=Qi(_.Ii(a,"PLANNED-DURATION"));
|
|
444
|
+
void 0!==d&&0<=d&&(e.plannedDuration=d);var h=_.Ii(a,"CLASS");null!==h&&(e.schemeIdUri=h);var l=_.Ii(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=g.getTime()&&(e.endDate=l);g=_.Y.Hm(a)||{};var m=_.Ii(a,"CUE");m&&(g.Pn=m.split(","));if(h===Nd){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=_.hv;return e},Hm:function(a){var b=
|
|
445
|
+
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 sc:a[sc]=c.value;break;case rc:a[rc]=c.value;break;case uc:a[uc]=Qi(c.value);break;case tc:a[tc]=Qi(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case "X-RESTRICT":a["X-RESTRICT"]=
|
|
446
|
+
c.value.split(",")}return a[sc]&&a[rc]||!a[sc]&&!a[rc]?(_.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");_.iv=new Set([_.Na,Oa,"EXT-X-I-FRAMES-ONLY",_.Ra,Sa,Ua,Xa,Za]);_.jv=new Set(["EXTINF",Ka,_.Ma,_.Pa,_.Qa,_.Wa]);_.kv=new Set(["EXT-X-PART",_.Va]);_.lv=new Set([_.La]);var pj=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",pj);_.J("clpp.net.makeRequest",_.uj);_.tj=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.tj});_.Cj.prototype.resolve=function(){};_.Cj.prototype.reject=function(){};_.Dj.prototype.abort=function(){this.a=!0;return this.A()};_.Fj.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=_.Nj.prototype;_.u.tn=function(a){0<a?_.Eh("Rate limit set to "+a+"bps"):_.Eh("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})};
|
|
447
|
+
_.u.fetch=function(a){var b=this;if(this.w)return new bq(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=
|
|
448
|
+
d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Cj;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 _.pi(n.uris[n.uriIndex]),q=p.tb;q||(q=location.protocol,q=q.slice(0,-1),qi(p,q),n.uris[n.uriIndex]=
|
|
449
|
+
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 bq(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);
|
|
450
|
+
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
|
|
451
|
+
_.N)throw n;throw new _.N(_.O,1,1007,null,n);});_.Gj(this.o,h);c.resolve(a);return h}catch(n){return new bq(Promise.reject(n))}};_.J("clpp.net.NetworkEngine",_.Nj);_.Nj.prototype.fetch=_.Nj.prototype.fetch;_.Nj.prototype.removeResponseModifier=_.Nj.prototype.ae;_.Nj.prototype.removeRequestModifier=_.Nj.prototype.kg;_.Nj.prototype.addResponseModifier=_.Nj.prototype.Qc;_.Nj.prototype.addRequestModifier=_.Nj.prototype.nf;_.Nj.prototype.setRateLimit=_.Nj.prototype.tn;var Vj;_.Rj.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&&gi(this.roles,a.roles)&&gi(this.accessibility,a.accessibility,Zj)};_.Rj.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.Rj);
|
|
452
|
+
_.Rj.prototype.toString=_.Rj.prototype.toString;_.J("clpp.Rendition",_.ak);_.Xj=1;_.Uj=_.r;_.Tj=_.ad;_.T="text";Vj=_.Oe;_.mv={VIDEO:_.Uj,AUDIO:_.Tj,TEXT:_.T,METADATA:Vj};_.Rj.Type=_.mv;_.J("clpp.utils.url.queryString",_.dk);gk.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,ok(c,a),4);case 4:d=n.f;_.ph(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,jk(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.ph(n,6);break;case 5:h=_.F(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
|
|
453
|
+
h.message);case 6:return _.D(n,9),_.y(n,lk(d),11);case 11:l=n.f;f.jd=l;_.ph(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)}})};_.Ak.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",_.Ak);_.Ak.positionAlign={LEFT:_.Ce,RIGHT:_.De,CENTER:_.ud,AUTO:"auto"};_.uk="text";_.Ak.payloadType={TEXT:_.uk,VTT_XML:_.Ng,TTML_XML:_.rg};_.vk=_.ud;_.nv={LEFT:_.ze,RIGHT:_.Qf,CENTER:_.vk,START:_.ze,END:_.Qf};_.Ak.textAlign=_.nv;var zk="ltr";_.Ak.direction={HORIZONTAL_LEFT_TO_RIGHT:zk,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.wk="horizontal-tb";
|
|
454
|
+
_.Ak.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.wk,VERTICAL_LEFT_TO_RIGHT:_.Fg,VERTICAL_RIGHT_TO_LEFT:_.Gg};_.xk=0;_.Ak.lineInterpretation={LINE_NUMBER:_.xk,PERCENTAGE:1};_.yk=_.cg;_.ov={CENTER:_.ud,START:_.yk,END:_.me};_.Ak.lineAlign=_.ov;_.J("clpp.text.CueRegion",_.Dk);_.Bk=1;_.Dk.units={PX:0,PERCENTAGE:_.Bk,LINES:2};var Ck="";_.Dk.scrollMode={NONE:Ck,UP:"up"};_.Dk.displayAlign={BEFORE:"flex-end",CENTER:_.ud,AFTER:"flex-start"};
|
|
455
|
+
_.Dk.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Kd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Ek.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};Ek.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,_.Nc,function(c){return Fk(b,c)}),this.a.on(this.f,wd,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.Xf&&(e.mode=_.ue)}}))};
|
|
456
|
+
Ek.prototype.o=function(a){var b=new _.Ak(a.startTime,a.endTime,a.text,_.Ng);if(_.M.da(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Fg;break;case "rl":b.writingMode=_.Gg}_.M.ra(a.size)&&(b.size=a.size);if(_.M.da(a.align))switch(a.align){case _.ze:case _.cg:b.textAlign=_.ze;break;case _.ud:b.textAlign=_.vk;break;case _.Qf:case _.me:b.textAlign=_.Qf}_.M.ra(a.position)&&(b.position=a.position);if(_.M.da(a.positionAlign))switch(a.positionAlign){case _.Ce:b.positionAlign=_.Ce;break;case _.ud:b.positionAlign=
|
|
457
|
+
_.ud;break;case _.De:b.positionAlign=_.De}_.M.ra(a.line)&&(b.line=a.line);if(_.M.da(a.lineAlign))switch(a.lineAlign){case _.cg:b.lineAlign=_.yk;break;case _.ud:b.lineAlign=_.ud;break;case _.me:b.lineAlign=_.me}_.M.Mh(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.xk:1);return b};_.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))})};
|
|
458
|
+
_.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;
|
|
459
|
+
_.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;
|
|
460
|
+
_.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;
|
|
461
|
+
_.U.prototype.getVideoTracks=_.U.prototype.getVideoTracks;_.U.prototype.canSelectVideoTracks=_.U.prototype.uf;var Kk=new Map,Jk=1,Ok=2,Nk=3,Mk=4;_.pv=(new Map).set(_.Jd,_.Jd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Vg,_.Vg).set(_.te,_.te).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;
|
|
462
|
+
_.Vk.prototype.tickNow=_.Vk.prototype.vg;_.J(Id,Wk);Wk.getInfo=_.Kj;
|
|
463
|
+
var gl=null,fl=null,il=new _.K(Id),pl="android",ol="ios",ul="linux",ql="osx",rl="windows",sl="tizen",tl="webos",nl=ug,xl=ug,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,
|
|
455
464
|
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,
|
|
456
465
|
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},
|
|
457
|
-
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(
|
|
458
|
-
_.
|
|
459
|
-
a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.
|
|
460
|
-
5):
|
|
461
|
-
_.
|
|
462
|
-
_.
|
|
463
|
-
_.
|
|
464
|
-
_.
|
|
465
|
-
_.
|
|
466
|
-
_.
|
|
467
|
-
_.
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
_.
|
|
471
|
-
_.
|
|
472
|
-
_.
|
|
473
|
-
_.
|
|
474
|
-
_.J("clpp.events.RELEASING",_.
|
|
475
|
-
_.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.
|
|
476
|
-
_.J("clpp.events.AD_FIRST_QUARTILE",_.
|
|
477
|
-
_.J("clpp.events.
|
|
478
|
-
_.J("clpp.events.
|
|
479
|
-
_.
|
|
480
|
-
_.
|
|
481
|
-
_.
|
|
482
|
-
_.
|
|
483
|
-
_.
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
_.
|
|
489
|
-
_.
|
|
490
|
-
|
|
466
|
+
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()};
|
|
467
|
+
_.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(P){if(1==P.a){if(!b)return c.g.warn(Ab),P["return"]();d=b.track;if(!d)return c.g.warn(Db),P["return"]();e=a===_.Tj;f=a===_.Uj;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),P["return"]();n=Yj(a,d);p=Ql(d);if(g){if(d.kind===_.Oe)return P["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(R){return Ml(n,R,
|
|
468
|
+
a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Tc);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(Yb+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),P["return"]();_.D(P,2);v=new _.ak(n.id,n);n.renditions.push(v);c.h.push(n);z=c.m.getConfiguration().safari;return Cl(c,a,z)?_.y(P,Fl(c,n,z),5):Dl(c,a,z)?_.y(P,Gl(c,n,z),
|
|
469
|
+
5):P.F(5)}if(2!=P.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.qv)),C=Jl(c,a).length,H=!(!l||!l.length),E=l&&l.length||0,B=function(){c.g.debug(Yb+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()),_.ph(P,0);G=_.F(P);c.g.error("Error while converting track data",G);_.A(P)})};
|
|
470
|
+
_.u.bg=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(Db);else if(a===_.T&&c.kind!==_.Oe){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(Ab)};
|
|
471
|
+
_.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===_.Tj?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 gk(a.getNetworkEngine())};
|
|
472
|
+
_.u.load=function(){this.A=!1;var a=Hl(this,_.T);a&&(this.f.on(a,_.Nc,this.J),this.f.on(a,Nf,this.L),this.f.on(a,wd,this.K));if(a=Hl(this,_.Tj))this.f.on(a,_.Nc,this.G),this.f.on(a,Nf,this.I),this.f.on(a,wd,this.H);if(a=Hl(this,_.Uj))this.f.on(a,_.Nc,this.N),this.f.on(a,Nf,this.V),this.f.on(a,wd,this.P);this.f.one(this.m,od,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};
|
|
473
|
+
_.u.getVideoTracks=function(){return Jl(this,_.Uj)};_.u.getAudioTracks=function(){return Jl(this,_.Tj)};_.u.ia=function(){return Jl(this,_.T)};_.u.na=function(){var a=this,b=this.a.get(_.Uj)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.u.Sa=function(){return Kl(this,_.Tj)};_.u.Na=function(){return Kl(this,_.T)};_.u.lb=function(){return Ll(this,_.Uj)};
|
|
474
|
+
_.u.Ab=function(){return Ll(this,_.Tj)};_.u.Bb=function(){return Ll(this,_.T)};_.u.Oa=function(){return this.a.get(_.Uj)||null};_.u.ma=function(){return this.a.get(_.Tj)||null};_.u.xa=function(){return this.a.get(_.T)||null};_.u.wb=function(a){Pl(this,_.Uj,a)};_.u.Da=function(a){Pl(this,_.Tj,a)};_.u.Qa=function(a){Pl(this,_.T,a)};_.u.cb=function(a){Pl(this,_.Uj,a&&a.track)};_.u.ub=function(a){Pl(this,_.Tj,a&&a.track)};_.u.vb=function(a){Pl(this,_.T,a&&a.track)};
|
|
475
|
+
_.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};
|
|
476
|
+
_.u.fk=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();Rl(a,_.Tj,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,wd,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;
|
|
477
|
+
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;
|
|
478
|
+
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(cc);};_.u.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(cc);};_.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)};
|
|
479
|
+
_.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};
|
|
480
|
+
_.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;
|
|
481
|
+
_.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};
|
|
482
|
+
_.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;_.Xl=new _.K("clpp.players");_.Wl={};_.J("clpp.events.ERROR",_.oe);_.J("clpp.events.LOADEDMETADATA",_.Ie);_.J("clpp.events.BUFFERING_ENDED",_.ld);_.J("clpp.events.BUFFERING_STARTED",_.md);_.J("clpp.events.STATE_CHANGED",_.dg);_.Nl="audiotrackchanged";_.J("clpp.events.AUDIO_TRACK_CHANGED",_.Nl);_.Ol="texttrackchanged";_.J("clpp.events.TEXT_TRACK_CHANGED",_.Ol);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.Kg);_.J("clpp.events.BITRATE_CHANGED",_.jd);_.qv="tracksadded";_.J("clpp.events.TRACKS_ADDED",_.qv);_.J("clpp.events.LOAD_START",Je);
|
|
483
|
+
_.J("clpp.events.RELEASING",_.Mf);_.J("clpp.events.RELEASED",Lf);_.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.Jg);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.hd);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_UPDATE",_.he);_.J("clpp.events.DRM_SESSION_PERSISTED",_.ge);_.J("clpp.events.DRM_RENEWAL_STARTED",fe);_.J("clpp.events.DRM_EXPIRATION_UPDATE",_.ee);
|
|
484
|
+
_.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.id);_.J("clpp.events.PLAY",_.jf);_.J("clpp.events.SEEKING",_.Wf);_.J("clpp.events.SEEKED",_.Vf);_.J("clpp.events.USER_SEEKING",_.zg);_.J("clpp.events.USER_SEEKED",_.yg);_.wp={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",_.wp);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Oc);_.J("clpp.events.AD_LOADED",_.Ec);_.J("clpp.events.AD_BREAK_STARTED",_.vc);_.J("clpp.events.AD_STARTED",_.Kc);_.J("clpp.events.AD_BUFFERING",_.xc);_.J("clpp.events.AD_PROGRESS",_.Hc);
|
|
485
|
+
_.J("clpp.events.AD_FIRST_QUARTILE",_.Ac);_.J("clpp.events.AD_MIDPOINT",_.Fc);_.J("clpp.events.AD_THIRD_QUARTILE",_.Mc);_.J("clpp.events.AD_PAUSED",_.Gc);_.J("clpp.events.AD_RESUMED",_.Ic);_.J("clpp.events.AD_SKIPPED",_.Jc);_.J("clpp.events.AD_CLICKED",_.yc);_.J("clpp.events.AD_IMPRESSION",_.Dc);_.J("clpp.events.AD_COMPLETED",_.zc);_.J("clpp.events.AD_STOPPED",_.Lc);_.J("clpp.events.AD_BREAK_STOPPED",_.wc);_.J("clpp.events.AD_HLS_ASSET_LIST_REQUEST",Bc);
|
|
486
|
+
_.J("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",Cc);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.Yf);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.Zf);_.J("clpp.events.CASTING_STARTED",_.qd);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.rd);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Rc);_.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Qc);_.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Pc);_.$h="timeline-cue-added";_.J("clpp.events.TIMELINE_CUE_ADDED",_.$h);_.bi="timeline-cue-enter";
|
|
487
|
+
_.J("clpp.events.TIMELINE_CUE_ENTER",_.bi);_.ci="timeline-cue-exit";_.J("clpp.events.TIMELINE_CUE_EXIT",_.ci);_.J("clpp.events.TIMELINE_CUES_CHANGED",_.og);_.J("clpp.events.MPD_TYPE_CHANGED",_.Se);_.J("clpp.events.LIVE_TURNED_STATIC",_.Ee);_.J("clpp.events.VIMOND_RESPONSE",_.Lg);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.vf);_.J("clpp.events.PLAYLIST_MODIFIED",_.wf);_.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Uf);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Sf);
|
|
488
|
+
_.J("clpp.events.SC_PLAYLIST_ENDED",_.Rf);_.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Tf);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.sd);_.J("clpp.events.ONLINE_STATUS_CHANGED",af);_.J("clpp.events.CMSD_EVENT","cmsd-event");var $l=["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",_.ja);_.J("clpp.name",_.wa);_.El="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Uc,HLS:_.El,SMOOTH_STREAMING:_.Zc,MP4:_.Ig});_.Zh="scte35";_.hv="hls-daterange";_.Xh=ug;_.J("clpp.TimelineCueType",{SCTE35:_.Zh,DASH_CALLBACK:_.Te,HLS_DATERANGE:_.hv,UNKNOWN:_.Xh});_.J("clpp.SpeedUpMode",{DECODER:_.Ud,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.Gf,SMOOTH:_.ag});_.J("clpp.utils.PlayerConfiguration",bm);bm.create=_.gm;var rv=["abort",nd,od,je,"emptied",le,_.ne,_.oe,"interruptbegin","interruptend",_.He,_.Ie,Je,"mozaudioavailable",_.ef,_.jf,_.uf,_.If,_.Kf,_.Vf,_.Wf,bg,"suspend",_.pg,"volumechange",_.Og,_.Pg,_.Pf,Ug,Tg,Rg,Sg];_.x(_.im,_.Ul);_.u=_.im.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(rv),e=d.next();!e.done;e=d.next())e=e.value,this.N.on(c,e,this.Qi,e!==_.oe);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()};
|
|
489
|
+
_.u.destroy=function(){this.N.release();return this.hg.release()};_.u.canPlay=function(a,b){return _.Wl[this.namespace()].canPlay(a,b)};_.u.getTimeline=function(){return null};_.u.setupPlaylist=function(){return Promise.reject(_.Fb)};_.u.appendLoad=function(){return Promise.reject(_.Fb)};_.u.seekWith=function(){return Promise.reject(_.Fb)};_.u.setSeekInterceptor=function(){};
|
|
490
|
+
_.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||""};am(d)?(a.trigger(new _.L(_.id)),a.log.warn(_.oa)):d.name===Gb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
|
|
491
|
+
_.u.pause=function(){var a=this;return this.Z?new Promise(function(b,c){var d=a.getState();if(d!==_.tp&&d!==_.vp&&d!==_.Cp&&d!==_.Bp)c(new _.N(_.O,7,3201,"The player state does not allow pause."));else if(a.C.getMedia().pause(),a.getState()===_.Cp)a.N.one(a,_.dg,function(){b()});else b()}):Promise.reject(new _.N(_.O,7,3201,"No sources specified yet. You need to load content before calling pause."))};_.u.isPaused=function(){return this.C.getMedia().paused};_.u.isEnded=function(){return this.C.getMedia().ended};
|
|
492
|
+
_.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()};
|
|
493
|
+
_.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};
|
|
494
|
+
_.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,_.Ie,m)}function l(n){var p=b.getMediaPosition(),
|
|
495
|
+
q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.Vf,C=n.type===_.If,H=n.type===_.pg,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,_.Vf,l),b.N.off(d,_.pg,l),b.N.off(d,_.If,l),b.mi(),b.trigger(new _.L(_.yg)),f()):C&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
|
|
496
|
+
d.currentTime=a)}function m(){b.trigger(new _.L(_.zg));b.N.on(d,_.Vf,l);b.N.on(d,_.pg,l);b.N.on(d,_.If,l);b.log.info("Seeking to "+a+". Delta "+e);b.ig=!0;b.Td=!0;d.currentTime=a}b.getState()===_.op?(b.log.debug("Player is in IDLE state. Postpone seek."),b.N.one(b,_.dg,function(){switch(b.getState()){case _.tp:case _.Cp:case _.Bp:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
|
|
497
|
+
_.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(ua+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ua+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.u.isMuted=function(){return this.C.getMedia().muted};
|
|
498
|
+
_.u.setMuted=function(a){var b=this.C.getMedia();typeof a===_.kd&&(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};
|
|
499
|
+
_.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(){};
|
|
500
|
+
_.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===_.pg||a.type===_.If)this.Cg.debug(d);else{var e="";switch(a.type){case _.Kf:e="Rate: "+this.getPlaybackRate();break;case je:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.jf:case _.uf:case "suspend":case _.Og:case bg:case _.Wf:case _.Vf:case _.pg:case _.If:case nd:case od:b=
|
|
501
|
+
this.getBufferInfo().za(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Pf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.Cg.info(d)}a.type!==_.oe&&this.trigger(new _.L(a.type,{detail:a}))};_.u.mi=function(){};_.im.prototype.getTextDisplayer=_.im.prototype.getTextDisplayer;_.im.prototype.setNetworkEngine=_.im.prototype.setNetworkEngine;_.im.prototype.getNetworkEngine=_.im.prototype.getNetworkEngine;var lm;lm=new _.K("clpp.Components");_.jm=new Map;_.J("clpp.install",function(a){tm(a)});_.J("clpp.uninstall",function(a){um(a)});vm.prototype.release=function(){this.a=this.f=null};_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Vb,SW_SECURE_DECODE:_.Wb,HW_SECURE_CRYPTO:ib,HW_SECURE_DECODE:jb,HW_SECURE_ALL:hb});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.Ue,CLEAR_KEY:_.cf,WIDEVINE:_.Qd,PLAYREADY:_.Od,FAIRPLAY:_.Md,PRIMETIME:_.Ld});_.zm={};_.J("clpp.drm.registerDrmEnvironment",_.Am);var Dm={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,
|
|
491
502
|
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,
|
|
492
503
|
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,
|
|
493
504
|
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,
|
|
@@ -501,109 +512,102 @@ this.getBufferInfo().ya(c);e="State "+this.getSurface().getMedia().readyState+"
|
|
|
501
512
|
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,
|
|
502
513
|
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,
|
|
503
514
|
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,
|
|
504
|
-
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]};_.
|
|
505
|
-
_.
|
|
506
|
-
has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.
|
|
507
|
-
for(var
|
|
508
|
-
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"},
|
|
509
|
-
jb,ib,_
|
|
510
|
-
certificateUrl:
|
|
511
|
-
_.
|
|
512
|
-
_.
|
|
513
|
-
b.a.keySystem.startsWith(_.
|
|
514
|
-
_.
|
|
515
|
-
_.
|
|
516
|
-
_.
|
|
517
|
-
_.
|
|
518
|
-
_.
|
|
519
|
-
_.
|
|
520
|
-
b.V=e.create(b);b.V.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.
|
|
521
|
-
|
|
522
|
-
_.
|
|
523
|
-
_.
|
|
524
|
-
_.
|
|
525
|
-
_.
|
|
526
|
-
_.
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
_.
|
|
530
|
-
|
|
531
|
-
_.
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
_.
|
|
537
|
-
_.
|
|
538
|
-
_.
|
|
539
|
-
|
|
540
|
-
|
|
515
|
+
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]};_.Fm.prototype.Wa=function(a,b){this.f[a]=b};_.J("clpp.drm.DrmEnvironment",_.Fm);_.Fm.prototype.setDrmSystem=_.Fm.prototype.Wa;_.Gm.prototype.getPosition=function(){return this.a};_.Gm.prototype.Ma=function(){return this.f.byteLength};_.Gm.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.Hm();this.a=a};_.Jm.prototype.getPosition=function(){return this.a};_.Jm.prototype.Ma=function(){return this.f.byteLength};_.Jm.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Lm();this.a+=a};_.Jm.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.Lm();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.Jm);_.u=_.Sm.prototype;_.u.M=function(a,b){var c=Wm(a);this.h[c]=sv;this.f[c]=b;return this};_.u.Y=function(a,b){var c=Wm(a);this.h[c]=uv;this.f[c]=b;return this};_.u.stop=function(){this.a=!0};_.u.parse=function(a,b){var c=_.Wi(a);c=new _.Jm(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Km(c)&&!this.a;)this.Se(0,c,b)};
|
|
516
|
+
_.u.Se=function(a,b,c){var d=b.getPosition(),e=_.W(b),f=_.W(b),g=!1;this.g.debug("Parsing MP4 box",_.Xm(f));switch(e){case 0:e=b.Ma()-d;break;case 1:e=_.Pm(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===uv&&(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?_.Rm(b,n):new Uint8Array(0);b=new _.Jm(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,
|
|
517
|
+
has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ma()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.Sm);_.Sm.typeToString=_.Xm;_.Sm.allData=_.Vm;_.Sm.sampleDescription=_.Um;_.Sm.children=_.Tm;_.Sm.prototype.parseNext=_.Sm.prototype.Se;_.Sm.prototype.parse=_.Sm.prototype.parse;_.Sm.prototype.stop=_.Sm.prototype.stop;_.Sm.prototype.fullBox=_.Sm.prototype.Y;_.Sm.prototype.box=_.Sm.prototype.M;_.Sm.headerSize=_.Ym;var sv=0,uv=1;_.J("clpp.utils.FairplayUtils",Zm);Zm.parseFairPlayResponse=_.en;Zm.formatFairPlayRequest=_.dn;Zm.createFairplayPayload=cn;Zm.extractContentId=_.an;Zm.extractExtXKeyUri=$m;var sn=new _.K("clpp.drm.DrmToday"),gn="PRODUCTION",hn="STAGING",jn="TEST",vv={PRODUCTION:gn,STAGING:hn,TEST:jn};_.J("clpp.drm.DrmToday.Environment",vv);_.J("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
|
|
518
|
+
for(var ln="/license-proxy-widevine/cenc/",mn="/license-proxy-headerauth/drmtoday/RightsManager.asmx",pn="/license-server-fairplay/",Bn={"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",
|
|
519
|
+
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"},wv={video:[hb,jb,ib,_.Wb,_.Vb],audio:[hb,
|
|
520
|
+
jb,ib,_.Wb,_.Vb]},xv={video:["3000","2000","150"],audio:["2000","150"]},yv=_.w(Object.keys(vv)),zv=yv.next();!zv.done;zv=yv.next()){var fn=zv.value,Av=Fa;fn!==gn&&(Av+="_"+fn);var Bv=new _.Fm(Av),Cv=null;switch(fn){case gn:case hn:Cv=Em("V2");break;case jn:Cv=null}Bv.Wa(_.Qd,{licenseUrl:qn(_.Qd),videoRobustness:wv.video,audioRobustness:wv.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Cv,modifiers:{licenseRequest:_.vn,licenseResponse:_.An}});Bv.Wa(_.Md,{licenseUrl:qn(_.Md),
|
|
521
|
+
certificateUrl:kn()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.xn,licenseResponse:_.yn,extractContentId:_.tn,certificateRequest:_.zn}});Bv.Wa(_.Od,{licenseUrl:qn(_.Od),videoRobustness:xv.video,audioRobustness:xv.audio,modifiers:{licenseRequest:wn}});_.Am(Bv)};_.J("clpp.drm.eme.EmeFactory",Dn);var En=[];Dn.Apis={STANDARD:Tb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Nn;_.Un=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Nn=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(Mn,Ln);_.x(_.Qn,Ln);var Wn=!!(performance&&performance.mark&&performance.measure);Zn.prototype.j=function(a){if(1<a.version)_.Eh("Unrecognized PSSH version found!");else{var b=_.jj(_.Rm(a.reader,16)),c=[];if(0<a.version)for(var d=_.W(a.reader),e=0;e<d;++e){var f=_.jj(_.Rm(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()&&_.Eh("Mismatch between box size and data size!")}};_.u=_.co.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,fo(a),4)}a.ta.resolve();return b.F(0)})};_.u.keySystem=function(){return this.a?_.Lo(this.a.keySystem):""};_.u.getDrmInfo=function(){return this.a};
|
|
522
|
+
_.u.li=function(a){var b=this,c,d,e;return _.I(function(f){if(1==f.a){if(b.G&&b.K===go)return f["return"]();c=Math.floor(a.timeStamp);d="drm.msg."+c+ia;e="drm.msg."+c+".end";_.Xn(d);return!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Fa?_.y(f,Wo(b,a),2):(b.ca.push(a),f.F(2))}_.Xn(e);_.Yn("drm.sess.msg."+c,d,e);_.A(f)})};
|
|
523
|
+
_.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===_.gg){var l=h;h=g;g=l}if(So(b.a.keySystem)&&16===h.byteLength&&_.Xk()){l=_.cj(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==eg&&(d.loaded=!0);d&&d.Pa&&d.Pa.resolve();"expired"===g&&(e=!0);l=_.Wi(h);var q=_.jj(l);"00"===q&&d&&d.keyId?q=d.keyId:
|
|
524
|
+
b.a.keySystem.startsWith(_.Md)&&16!==l.byteLength&&(q=_.S.fromCharCode(l));(l=q||"")?b.g.info(rb+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)===eg&&(b.g.warn(rb+g+fa),b.o.set(g,_.df))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===eg&&_.kj(f.initData,d.initData)&&(this.g.warn(rb+f.keyId+fa),this.o.set(f.keyId,
|
|
525
|
+
_.df))}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(){}));No(this)&&(this.H.resolve(),1!==this.f.size||e?this.ba.ea(.5):ao(this))};var go=0,$n=3;_.$o=new Map;_.ap=new _.K("clpp.text");_.jp.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:fp(this.a,_.Cp),pauseTime:fp(this.a,_.Bp),bufferingTime:fp(this.a,_.tp),stateHistory:gp(this.a),switchHistory:ip(this.B)}};_.lp.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};var mp=new _.lp(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Ie],[HTMLMediaElement.HAVE_CURRENT_DATA,_.He],[HTMLMediaElement.HAVE_FUTURE_DATA,nd],[HTMLMediaElement.HAVE_ENOUGH_DATA,od]])});rp.prototype.fb=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};rp.prototype.getState=function(){return up(this,"")};rp.prototype.S=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.O&&yp(this,_.zp)};rp.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.J("clpp.utils.media.detectType",Ep);var Hp=new _.K("clpp.sources");_.x(Ip,_.im);_.u=Ip.prototype;_.u.init=function(a,b){_.im.prototype.init.call(this,a,b);this.j=new rp(this);yp(this.j,_.op)};_.u.namespace=function(){return Gd};
|
|
526
|
+
_.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);_.Rh(a.h);a.f&&(a.f=new _.jp);a.G=null;a.Z=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.y(c,Mp(a),0)})};
|
|
527
|
+
_.u.release=function(){var a=this;return _.im.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&yp(a.j,_.op)})};
|
|
528
|
+
_.u.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.im.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ia);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.u.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
|
|
529
|
+
_.u.detach=function(){};_.u.setSeekInterceptor=function(){};_.u.getTrackManager=function(){return this.ud};
|
|
530
|
+
_.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"](Jp());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 _.jp;b.h.on(b,_.dg,function(){b.f&&_.ep(b.f.a,b.getState())});yp(b.j,_.Ap);b.Z=_.Gp(a);b.configuration=_.gm(b.mc,a);b.log.debug(_.vb,b.configuration);b.log.debug(_.Mb,b.Z);e=_.cp(b.configuration,[_.ve,"native"]);
|
|
531
|
+
b.V=e.create(b);b.V.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.km(_.kg)&&!_.el()&&(b.A=new Ek(b),b.A.start(d));b.l?b.l.release():b.l=new Th(b);Vh(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,nd,function(){b.trigger(new _.L(_.qv))});null==b.configuration.startTime&&Rp(b,d);_.bl()&&Sp(b,d);_.D(h,2);return _.y(h,Lp(b,d),4);case 4:return _.y(h,
|
|
532
|
+
Op(b),5);case 5:return _.y(h,Qp(b).U,6);case 6:_.ph(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&&yp(this.j,_.zp),this.trigger(new _.L(_.oe,{detail:a})))};_.u.lh=function(){return new yl};_.u.getState=function(){return null!==this.j?this.j.getState().currentState:_.pp};
|
|
533
|
+
_.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};
|
|
534
|
+
_.u.getStats=function(){if(!this.f||!this.a)return _.kp();this.f&&_.ep(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()};
|
|
535
|
+
_.u.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.u.getCueTimeline=function(){return null};Tp.prototype.a=function(){return Gd};Tp.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Uc,e=c===_.Zc,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};Tp.prototype.f=function(a){return a===_.qa};Tp.prototype.create=function(){return new Ip};
|
|
536
|
+
_.Yl(new Tp);Up.prototype.getCuePoints=function(){};Up.prototype.Fb=function(){};Up.prototype.Eb=function(){};_.J("clpp.ads.IAdsTimeline",Up);Up.prototype.hasPostroll=Up.prototype.Eb;Up.prototype.hasPreroll=Up.prototype.Fb;Up.prototype.getCuePoints=Up.prototype.getCuePoints;_.u=Vp.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(){};
|
|
537
|
+
_.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",Vp);Vp.prototype.getWrapperCreativeIds=Vp.prototype.getWrapperCreativeIds;Vp.prototype.getWrapperAdSystems=Vp.prototype.getWrapperAdSystems;Vp.prototype.getWrapperAdIds=Vp.prototype.getWrapperAdIds;Vp.prototype.getSequenceLength=Vp.prototype.pb;Vp.prototype.getPositionInSequence=Vp.prototype.Db;
|
|
538
|
+
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;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;
|
|
539
|
+
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;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;_.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 Xp=new _.K("clpp.ads"),Wp=[];_.u=$p.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",$p);$p.prototype.getPosition=$p.prototype.getPosition;$p.prototype.setVolume=$p.prototype.setVolume;$p.prototype.getVolume=$p.prototype.getVolume;$p.prototype.skip=$p.prototype.skip;
|
|
540
|
+
$p.prototype.pause=$p.prototype.pause;$p.prototype.resume=$p.prototype.resume;_.x(bq,_.Dj);bq.prototype.then=function(a,b){this.U=this.U.then(a,b);return this};bq.prototype["catch"]=function(a){this.U=this.U["catch"](a);return this};bq.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 qq=window.XMLHttpRequest;var Aq,yq,zq;vq.prototype.release=function(){this.a=null;this.f.ae(this.h)};_.Dv="maxSuggestedBitrateKbps";Aq={du:"duress",etp:_.pe,mb:_.Dv,rd:"responseDelay",rtt:"roundTripTime"};yq={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Dg};zq=new _.K("clpp.net.CmsdManager");Cq.prototype.release=function(){this.a.release();Gq(this);this.m=null};var Lq=window.fetch,Jq=window.AbortController,Iq=window.Headers;_.u=_.Nq.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",_.Nq);_.Nq.prototype.isDynamic=_.Nq.prototype.Vd;_.Nq.prototype.getStart=_.Nq.prototype.Qb;_.Nq.prototype.getId=_.Nq.prototype.getId;_.Nq.prototype.getDuration=_.Nq.prototype.getDuration;_.u=_.Oq.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",_.Oq);_.Oq.prototype.getCurrentWindowIndex=_.Oq.prototype.al;_.Oq.prototype.getCurrentWindow=_.Oq.prototype.wh;_.Oq.prototype.getWindows=_.Oq.prototype.pl;_.Oq.prototype.getWindowCount=_.Oq.prototype.ol;_.Oq.prototype.getWindow=_.Oq.prototype.nl;_.Ev=new _.K("clpp.media.TimestampParser");_.Rq={};_.Tq={};_.J("clpp.polyfill.installAll",Wq);var Vq=[];_.J("clpp.polyfill.register",_.Xq);_.Xq(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Xq(function(){_.Jh("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}}});_.Xq(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;re in document||(Object.defineProperty(document,re,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
|
|
541
|
+
{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Yq);document.addEventListener("webkitfullscreenerror",Yq);document.addEventListener("mozfullscreenchange",Yq);document.addEventListener("mozfullscreenerror",Yq);document.addEventListener("MSFullscreenChange",Yq);document.addEventListener("MSFullscreenError",Yq)}});var Zq;_.Xq(function(){_.Jh("InputEvent.install");_.Yk("Trident/")&&HTMLInputElement.prototype.addEventListener!==$q&&(_.Ih("Patching input event support on IE."),Zq=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=$q)});_.Xq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=ar)}});_.Xq(function(){_.Jh("mathRound.install")});_.Xq(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=_.Wi(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Xq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Jh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=cr,document.exitPictureInPicture=dr,document.addEventListener("webkitpresentationmodechanged",br,!0))}});_.Xq(function(){if(window.VTTCue)_.Ih("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Ih(ic),window.VTTCue=er;else if(6===a)_.Ih("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=fr;else{try{var b=!!er(1,2,"")}catch(c){b=!1}b&&(_.Ih(ic),window.VTTCue=er)}}else _.Kh("VTTCue not available.")});_.u=gr.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};
|
|
542
|
+
_.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[]};gr.prototype.getWrapperCreativeIds=gr.prototype.getWrapperCreativeIds;
|
|
543
|
+
gr.prototype.getWrapperAdSystems=gr.prototype.getWrapperAdSystems;gr.prototype.getWrapperAdIds=gr.prototype.getWrapperAdIds;gr.prototype.getSequenceLength=gr.prototype.pb;gr.prototype.getPositionInSequence=gr.prototype.Db;gr.prototype.getPodTimeOffset=gr.prototype.Cb;gr.prototype.getPodIndex=gr.prototype.getPodIndex;gr.prototype.getPodType=gr.prototype.Ua;gr.prototype.getMediaBitrate=gr.prototype.ab;gr.prototype.getMediaHeight=gr.prototype.nb;gr.prototype.getMediaWidth=gr.prototype.ob;
|
|
544
|
+
gr.prototype.getMediaUrl=gr.prototype.getMediaUrl;gr.prototype.getClickThroughUrl=gr.prototype.yb;gr.prototype.isBumper=gr.prototype.Sb;gr.prototype.getSkipTimeOffset=gr.prototype.getSkipTimeOffset;gr.prototype.getPosition=gr.prototype.getPosition;gr.prototype.getDuration=gr.prototype.getDuration;gr.prototype.getTitle=gr.prototype.getTitle;gr.prototype.getAdvertiserName=gr.prototype.getAdvertiserName;gr.prototype.getAdSystem=gr.prototype.getAdSystem;gr.prototype.getApiFramework=gr.prototype.getApiFramework;
|
|
545
|
+
gr.prototype.getCreativeId=gr.prototype.getCreativeId;gr.prototype.getId=gr.prototype.getId;gr.prototype.getTechnology=gr.prototype.qb;gr.prototype.getAdManagerVersion=gr.prototype.kb;gr.prototype.getAdManagerName=gr.prototype.jb;hr.prototype.has=function(){return this.a.some(function(a){return a.oe})};hr.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)})};
|
|
546
|
+
hr.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};hr.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",_.lr);mr.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=or(this,a)};mr.prototype.get=function(){return this.a};_.u=sr.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?_.jr(a,zd):this.g.debug("No media element available that could be hidden")};
|
|
547
|
+
_.u.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(zd):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&&_.jr(a,_.yd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
|
|
548
|
+
_.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){_.jr(a,zd)};_.u.show=function(a){a.classList.remove(zd)};_.u.release=function(){this.j.release()};sr.prototype.removeElementFromContainer=sr.prototype.removeElementFromContainer;sr.prototype.addElementToContainer=sr.prototype.addElementToContainer;sr.prototype.getCastElement=sr.prototype.getCastElement;
|
|
549
|
+
sr.prototype.getContainer=sr.prototype.getContainer;sr.prototype.getMedia=sr.prototype.getMedia;var pr={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},qr=1;_.u=wr.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 Lr(this,a,_.jf)};_.u.load=function(a){return Lr(this,a,_.Fe)};_.u.release=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,Promise.all([Jr(a),a.a?Ir(a,a.a):Promise.resolve()]),2);a.a=null;a.w=!1;Ar(a);_.A(b)})};
|
|
550
|
+
_.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);Xr(a);_.A(b)})};var Sr="preload",Ur=_.Ke;_.x(ds,_.Ul);ds.prototype.destroy=function(){var a=this;return _.I(function(b){os(a);a.f=[];a.o=!1;a.j.setSeekInterceptor(null);a.w.release();return _.y(b,a.a.destroy(),0)})};ds.prototype.Fb=function(){return this.o};ds.prototype.isLive=function(){var a=this.a.Ae();return a?a.isLive():null};ds.prototype.fb=function(a){this.j.trigger(a)};var $r=0,us=1,vs=2,ws=3,ys=4,zs=5,as=6;Yr.prototype.release=function(){this.a&&(this.a.shutdown(),this.a=null)};_.u=Bs.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 ds(c);gs(this.a)};_.u.resume=function(){var a=es(this.a);a&&a.play()};_.u.pause=function(){var a=es(this.a);a&&a.pause()};_.u.skip=function(){};_.u.getVolume=function(){var a=es(this.a);return a?a.getVolume()||0:0};_.u.setVolume=function(a){var b=es(this.a);if(b)return b.setVolume(a)};
|
|
551
|
+
_.u.getPosition=function(){var a=es(this.a);return a?a.getPosition():-1};_.u.Rc=function(){return!this.a.Fb()};_.u.pc=function(){return this.a.destroy()};Bs.prototype.getPosition=Bs.prototype.getPosition;Bs.prototype.setVolume=Bs.prototype.setVolume;Bs.prototype.getVolume=Bs.prototype.getVolume;Bs.prototype.skip=Bs.prototype.skip;Bs.prototype.pause=Bs.prototype.pause;Bs.prototype.resume=Bs.prototype.resume;var Es={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},cm="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var Ts="vod",Ss="live";_.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(_.oe,{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)};
|
|
552
|
+
_.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=at(this);return this.l["finally"](function(){a.g.debug("Player released");a.l=null})};
|
|
553
|
+
_.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(Ia);a.trigger(new _.L("destroying"));return a.Ac(_.Ye)}).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(){sm();a.a=null;a.A=null;a.trigger(new _.L("destroyed"))})};
|
|
554
|
+
_.u.load=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:return _.D(f,2),_.Xn(rf),b.N=_.qa,b.fa=!0,c=_.Gp(a),d=hm(a)?a:{},_.y(f,_.ht(b,d,c),4);case 4:return _.y(f,_.it(b),5);case 5:return _.y(f,_.dt(b),6);case 6:_.Xn(qf);_.Yn("player.load",rf,qf);_.ph(f,0);break;case 2:e=_.F(f);if(b.l)throw b.g.info(ub),new _.N(_.O,7,7E3);throw e;}})};
|
|
555
|
+
_.u.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.y(d,_.ht(b,a),2);if(!b.a)return b.g.warn(Lb),d["return"]();c=b.a;return c.preload?_.y(d,c.preload(b.f),0):(b.g.warn(Pb),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(_.bh(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
|
|
556
|
+
_.u.use=function(a){(a=tm(a))&&a.o(this)};_.u.remove=function(a){return(this.getState()<=_.op||this.V)&&null!==nm(a)?(um(a),this.$=!0):!1};_.u.play=function(){return this.a?!this.h||this.h instanceof Bs||this.a.namespace()===_.Cd?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.")};
|
|
557
|
+
_.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():_.op};_.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};
|
|
558
|
+
_.u.seek=function(a){return this.getState()===_.zp?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)};
|
|
559
|
+
_.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};
|
|
560
|
+
_.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};
|
|
561
|
+
_.u.resetAbr=function(){this.a&&this.a.resetAbr()};_.u.setDrmCustomDataModifier=function(a){this.$c=a;ft(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=_.lt;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;
|
|
562
|
+
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;
|
|
563
|
+
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;
|
|
541
564
|
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;
|
|
542
|
-
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.
|
|
543
|
-
var
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
_.
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
_.
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
_.
|
|
560
|
-
_.
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
_.t.play=function(a){var b=this,c,d,e,f;return _.I(function(g){switch(g.a){case 1:if(b.j)return b.g.warn("Cannot play item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(tb+a+")"),g["return"]();b.g.info("Play item (ID: "+a+")");b.j=!0;(d=b.a)&&d.player.pause();(e=b.h.has(a))&&b.h["delete"](a);_.D(g,2,3);b.g.info(sb+a+")");return e?_.y(g,Ur(b,c),6):_.y(g,Sr(b,c),6);case 6:c.xc&&c.xc();if(c.Ya)c.player.on(_.se,c.Ya);b.trigger(new _.L(De,{detail:c}));Kr(b,c);b.g.info("Item playing (ID: "+
|
|
564
|
-
a+")");case 3:_.uh(g);b.j=!1;d&&Qr(b,d);Lr(b);Mr(b,c.next);_.vh(g,0);break;case 2:throw f=_.E(g),b.g.error(rb+a+")"),f;}})};
|
|
565
|
-
_.t.load=function(a){var b=this,c,d,e,f;return _.I(function(g){switch(g.a){case 1:if(b.j)return b.g.warn("Cannot load item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(tb+a+")"),g["return"]();b.g.info("Load item (ID: "+a+")");b.j=!0;(d=b.a)&&d.player.pause();(e=b.h.has(a))&&b.h["delete"](a);_.D(g,2,3);b.g.info(sb+a+")");if(e){b.g.error("Loading preloaded items is not supported");g.F(5);break}return _.y(g,Rr(b,c),5);case 5:b.trigger(new _.L(De,{detail:c})),Kr(b,c),b.g.info("Item loaded (ID: "+
|
|
566
|
-
a+")");case 3:_.uh(g);b.j=!1;d&&Qr(b,d);Lr(b);Mr(b,c.next);_.vh(g,0);break;case 2:throw f=_.E(g),b.g.error(rb+a+")"),f;}})};_.t.getItem=function(a){return this.l.find(function(b){return b.id===a})||null};_.t.release=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,Promise.all([Lr(a),a.a?Qr(a,a.a):Promise.resolve()]),2);a.a=null;a.j=!1;a.removeItems();Jr(a,!0);_.B(b)})};
|
|
567
|
-
_.t.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,a.release(),2)):_.y(b,Wr(a),0)})};Hr.prototype.destroy=Hr.prototype.destroy;Hr.prototype.release=Hr.prototype.release;Hr.prototype.getItem=Hr.prototype.getItem;Hr.prototype.load=Hr.prototype.load;Hr.prototype.play=Hr.prototype.play;Hr.prototype.hasNext=Hr.prototype.$c;Hr.prototype.removeItems=Hr.prototype.removeItems;Hr.prototype.addItems=Hr.prototype.nd;Hr.prototype.getPreloading=Hr.prototype.Ff;
|
|
568
|
-
Hr.prototype.getCurrentPlayer=Hr.prototype.Eb;Hr.prototype.getCurrentItem=Hr.prototype.getCurrentItem;var Pr="preload",Tr=_.Pe;_.x(bs,_.Yl);_.t=bs.prototype;_.t.load=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.y(d,hs(b,a,!1),2);b.trigger(new _.L(Ev));c=b.a.getCurrentItem();c.primary&&b.trigger(new _.L(Js));_.B(d)})};_.t.Fd=function(){var a=this.o;return a?this.h.map(function(b){return{cueId:b.cueId,startTime:b.startTime,endTime:b.endTime,primaryDuration:a,Oe:b.Oe}}):[]};_.t.hl=function(){return this.l.a};_.t.Dl=function(a){var b=this;return _.I(function(c){return _.y(c,hs(b,a,!0),0)})};
|
|
569
|
-
_.t.unload=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,a.a.release(),2);a.h=[];a.l.release();_.B(b)})};_.t.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,a.a.destroy(),2);a.h=[];a.l.release();_.B(b)})};_.t.xn=function(){var a=this,b;return _.I(function(c){if(1==c.a)return _.y(c,Ir(a.a),2);a.trigger(new _.L(Ev));b=a.a.getCurrentItem();b.primary&&a.trigger(new _.L(Js));_.B(c)})};
|
|
570
|
-
_.t.getPosition=function(){var a=this.a.Eb();return a?a.getPosition():null};_.t.Eb=function(){return this.a.Eb()};_.t.getCurrentItem=function(){return this.a.getCurrentItem()};_.J(Kd,bs);bs.prototype.getCurrentItem=bs.prototype.getCurrentItem;bs.prototype.getCurrentPlayer=bs.prototype.Eb;bs.prototype.getPosition=bs.prototype.getPosition;bs.prototype.unpause=bs.prototype.xn;bs.prototype.destroy=bs.prototype.destroy;bs.prototype.unload=bs.prototype.unload;bs.prototype.loadPaused=bs.prototype.Dl;
|
|
571
|
-
bs.prototype.getYospaceSession=bs.prototype.hl;bs.prototype.getCues=bs.prototype.Fd;bs.prototype.load=bs.prototype.load;
|
|
572
|
-
var ns="new",ys="preparing",ws="ready",Is="completed",As="failed",zs="interstitial-preload-started",Bs="x-asset-list-request-started",Ds="x-asset-list-request-ended",xs="interstitial-scheduled",Gs="interstitial-started",Hs="interstitial-ended",Fs="interstitial-item-started",as="primary-player-changed",Yr="item-changed",Ev="playback-started",ts="playback-ended",Js="primary-started",rs="primary-ended",ms="cues-changed";
|
|
573
|
-
_.J("clpp.interstitial.Event",{RESOLUTION_STARTED:zs,ASSET_LIST_STARTED:Bs,ASSET_LIST_ENDED:Ds,SCHEDULED:xs,STARTED:Gs,ENDED:Hs,ITEM_STARTED:Fs,PRIMARY_PLAYER_CHANGED:as,ITEM_CHANGED:Yr,PLAYBACK_STARTED:Ev,PLAYBACK_ENDED:ts,PRIMARY_STARTED:Js,PRIMARY_ENDED:rs,CUES_CHANGED:ms});Xr.prototype.release=function(){this.a&&(this.a.shutdown(),this.a=null)};var ds="PREROLL",es="MIDROLL",fs="POSTROLL",Ls=_.oc,Ms="LIVE",Ns="DVR";_.t=Os.prototype;_.t.Cb=function(){};_.t.Db=function(){};_.t.Jb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.vc=function(){};_.t.Wb=function(){};_.t.getMediaUrl=function(){};_.t.Gb=function(){};_.t.Fb=function(){};_.t.qb=function(){};_.t.gb=function(){};_.t.getPodIndex=function(){};
|
|
574
|
-
_.t.Xb=function(){};_.t.Yb=function(){};_.t.Ib=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.J("clpp.ads.IAd",Os);Os.prototype.getWrapperCreativeIds=Os.prototype.getWrapperCreativeIds;Os.prototype.getWrapperAdSystems=Os.prototype.getWrapperAdSystems;Os.prototype.getWrapperAdIds=Os.prototype.getWrapperAdIds;Os.prototype.getSequenceLength=Os.prototype.Ib;Os.prototype.getPositionInSequence=Os.prototype.Yb;
|
|
575
|
-
Os.prototype.getPodTimeOffset=Os.prototype.Xb;Os.prototype.getPodIndex=Os.prototype.getPodIndex;Os.prototype.getPodType=Os.prototype.gb;Os.prototype.getMediaBitrate=Os.prototype.qb;Os.prototype.getMediaHeight=Os.prototype.Fb;Os.prototype.getMediaWidth=Os.prototype.Gb;Os.prototype.getMediaUrl=Os.prototype.getMediaUrl;Os.prototype.getClickThroughUrl=Os.prototype.Wb;Os.prototype.isBumper=Os.prototype.vc;Os.prototype.getSkipTimeOffset=Os.prototype.getSkipTimeOffset;Os.prototype.getDuration=Os.prototype.getDuration;
|
|
576
|
-
Os.prototype.getTitle=Os.prototype.getTitle;Os.prototype.getAdvertiserName=Os.prototype.getAdvertiserName;Os.prototype.getAdSystem=Os.prototype.getAdSystem;Os.prototype.getApiFramework=Os.prototype.getApiFramework;Os.prototype.getCreativeId=Os.prototype.getCreativeId;Os.prototype.getId=Os.prototype.getId;Os.prototype.getTechnology=Os.prototype.Jb;Os.prototype.getAdManagerVersion=Os.prototype.Db;Os.prototype.getAdManagerName=Os.prototype.Cb;Ps.prototype.name=function(){};Ps.prototype.isSupported=function(){};Ps.prototype.create=function(){};_.J("clpp.ads.IAdsManagerFactory",Ps);Ps.prototype.create=Ps.prototype.create;Ps.prototype.isSupported=Ps.prototype.isSupported;Ps.prototype.name=Ps.prototype.name;_.t=Qs.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.J("clpp.ads.IAdsManager",Qs);Qs.prototype.getPosition=Qs.prototype.getPosition;Qs.prototype.setVolume=Qs.prototype.setVolume;Qs.prototype.getVolume=Qs.prototype.getVolume;Qs.prototype.skip=Qs.prototype.skip;Qs.prototype.pause=Qs.prototype.pause;
|
|
577
|
-
Qs.prototype.resume=Qs.prototype.resume;_.t=Rs.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.I(function(a){_.B(a)})};Rs.prototype.dispose=Rs.prototype.dispose;Rs.prototype.getPosition=Rs.prototype.getPosition;Rs.prototype.setVolume=Rs.prototype.setVolume;Rs.prototype.getVolume=Rs.prototype.getVolume;
|
|
578
|
-
Rs.prototype.skip=Rs.prototype.skip;Rs.prototype.pause=Rs.prototype.pause;Rs.prototype.resume=Rs.prototype.resume;Rs.prototype.start=Rs.prototype.start;Rs.prototype.load=Rs.prototype.load;Wp.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};Wp.prototype.isSupported=function(){return!0};Wp.prototype.create=function(){return new Rs};Wp.prototype.create=Wp.prototype.create;Wp.prototype.isSupported=Wp.prototype.isSupported;Wp.prototype.name=Wp.prototype.name;Ss.prototype.getCuePoints=function(){};Ss.prototype.Zb=function(){};Ss.prototype.sb=function(){};_.J("clpp.ads.IAdsTimeline",Ss);Ss.prototype.hasPostroll=Ss.prototype.sb;Ss.prototype.hasPreroll=Ss.prototype.Zb;Ss.prototype.getCuePoints=Ss.prototype.getCuePoints;_.Ts.prototype.f=function(){};_.Ts.prototype.a=function(){};_.Ts.prototype.h=function(){};_.Ts.prototype.o=function(){};_.t=Us.prototype;_.t.pe=function(a){this.a=a};_.t.sd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Bb)};_.t.ze=function(){return this.a&&this.a.mediaKeys};
|
|
579
|
-
_.t.Ab=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)})};_.t.rd=function(){return Xb};Vs.prototype.a=function(){return Xb};
|
|
580
|
-
Vs.prototype.isSupported=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Vs.prototype.create=function(){return new Us};En(new Vs,1E3);_.t=Ws.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,Fv.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=Fv.value();return this.a&&qj(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var Fv=new _.kp(function(){return wj(new Uint8Array([0]))});_.t=Ys.prototype;_.t.pe=function(){};_.t.sd=function(a){_.Nh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.ze=function(){return null};_.t.Ab=function(){_.Nh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.rd=function(){return"NOP"};Zs.prototype.a=function(){return"NOP"};Zs.prototype.isSupported=function(){return!0};Zs.prototype.create=function(){return new Ys};
|
|
581
|
-
En(new Zs,-1);_.t=$s.prototype;_.t.pe=function(a){this.f=a};_.t.sd=function(a){var b=this.a;b&&b!==a&&ct(b,null);return(this.a=a)?ct(a,this.f):Promise.resolve()};_.t.ze=function(){return this.a};_.t.Ab=function(a,b){_.Nh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new at(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.rd=function(){return"APPLE"};at.prototype.createMediaKeys=function(){var a=new bt(this.keySystem);return Promise.resolve(a)};
|
|
582
|
-
at.prototype.getConfiguration=function(){_.Nh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};bt.prototype.createSession=function(a){a=void 0===a?rg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==rg)throw new TypeError("Session type "+a+ca);return new dt(this.h,"__session_"+this.j++)};bt.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.x(dt,_.Yl);_.t=dt.prototype;
|
|
583
|
-
_.t.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(ac);this.g.debug("generateRequest");this.h=new _.Rj;try{var d=this.o.createSession(_.Mg,_.oj(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Xg,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Se,{messageType:void 0===f||f===kg?He:Ge,message:wj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Vg,function(e){c.g.debug("onWebkitKeyAdded_",
|
|
584
|
-
e);c.f&&(et(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Wg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===kg)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),
|
|
585
|
-
c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:et(c,"output-not-allowed");break;default:et(c,_.Ce)}});et(this,kg)}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(ac);this.g.debug(Ag);this.f=new _.Rj;try{this.a.update(_.oj(a))}catch(b){this.f.reject(b)}return this.f};
|
|
586
|
-
_.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(),_.$h(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"))};ft.prototype.a=function(){return"APPLE"};ft.prototype.isSupported=function(){return!!window.WebKitMediaKeys};
|
|
587
|
-
ft.prototype.create=function(){return new $s};En(new ft,1100);_.t=gt.prototype;_.t.pe=function(a){this.a=a};_.t.sd=function(a){_.Nh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Bb);var b=this.f;b&&b!==a&<(b,null);(this.f=a)&<(a,this.a);return Promise.resolve()};_.t.ze=function(){return this.f};_.t.Ab=function(a,b){_.Nh("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 ht(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
|
|
588
|
-
_.t.rd=function(){return"WEBKIT"};ht.prototype.createMediaKeys=function(){return Promise.resolve(new it(this.h,this.a))};ht.prototype.getConfiguration=function(){return this.f};it.prototype.createSession=function(a){a=void 0===a?rg:a;if(a!==rg&&a!==_.mf)throw new TypeError("Session type "+a+ca);if(!this.a)throw a=Error("Media element is missing."),a.name=qb,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new mt(this.h,this.a,this.o,a);this.j.push(a);return a};
|
|
589
|
-
it.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x(mt,_.Yl);_.t=mt.prototype;_.t.ready=function(){_.Nh("WebkitEmeManager.MediaKeySession.ready");kt(this,"usable");this.a&&this.a.resolve();this.a=null};_.t.generateRequest=function(a,b){_.Nh("WebkitEmeManager.MediaKeySession.generateRequest");return ot(this,b,null)};_.t.load=function(a){_.Nh(sc);return this.l===_.mf?ot(this,null,a):Promise.reject(Error(Hb))};_.t.update=function(a){_.Nh(sc);var b=new _.Rj;pt(this,b,a);return b};
|
|
590
|
-
_.t.close=function(){_.Nh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.mf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=nt(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Nh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.mf?Promise.reject(Error(Hb)):this.close()};qt.prototype.a=function(){return"WEBKIT"};
|
|
591
|
-
qt.prototype.isSupported=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};qt.prototype.create=function(){return new gt};En(new qt);_.x(rt,_.Em);rt.prototype.Xd=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]};rt.prototype.jh=function(a,b){var c=Zm(b);switch(this.o){case Gv:return c;case Hv:return(new _.tk(c)).a;default:throw Error("Unknown content ID strategy");}};rt.prototype.Wh=function(a,b){b.headers[za]=bd;this.Xd(a,b);var c={spc:_.yj(b.body)};b.body=_.S.jd(_.vk(c,!0))};
|
|
592
|
-
rt.prototype.Xh=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=_.Aj(c).buffer};_.J(Id,rt);rt.prototype.onFairPlayLicenseResponse=rt.prototype.Xh;rt.prototype.onFairPlayLicenseRequest=rt.prototype.Wh;rt.prototype.extractFairPlayContentId=rt.prototype.jh;rt.prototype.onLicenseRequest=rt.prototype.Xd;rt.prototype.constructor=rt.prototype.constructor;rt.NAME=kb;var Hv="hostname",Gv="full-skd";
|
|
593
|
-
rt.FairPlayContentIdStrategy={HOSTNAME:Hv,FULL_SKD:Gv};_.x(st,_.Ts);st.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===kb){a=a.drm.customData;if(!a)throw new _.N(_.O,7,7100,_.Wd);a=new rt(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Gv);_.zm(a)}};st.prototype.a=function(){delete _.ym.HeaderDrm};st.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",st);_.rq(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.oj(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.rq(function(){_.Nh("mathRound.install")});_.rq(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;ve in document||(Object.defineProperty(document,ve,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
|
|
594
|
-
{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",tt);document.addEventListener("webkitfullscreenerror",tt);document.addEventListener("mozfullscreenchange",tt);document.addEventListener("mozfullscreenerror",tt);document.addEventListener("MSFullscreenChange",tt);document.addEventListener("MSFullscreenError",tt)}});_.rq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Nh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=vt,document.exitPictureInPicture=wt,document.addEventListener("webkitpresentationmodechanged",ut,!0))}});_.rq(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=xt)}});_.rq(function(){if(window.VTTCue)_.Mh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Mh(mc),window.VTTCue=yt;else if(6===a)_.Mh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=zt;else{try{var b=!!yt(1,2,"")}catch(c){b=!1}b&&(_.Mh(mc),window.VTTCue=yt)}}else _.Oh("VTTCue not available.")});var At;_.rq(function(){_.Nh("InputEvent.install");_.bl("Trident/")&&HTMLInputElement.prototype.addEventListener!==Bt&&(_.Mh("Patching input event support on IE."),At=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Bt)});_.rq(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.rq(function(){_.Nh("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}}});_.Jt.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)};_.Jt.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Lt.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 _.Rj;c=c.play();var e=(new _.Zk(function(){b(a)})).da(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Kb?b(!0):b(!1)}):b(!0);return d};
|
|
595
|
-
var Kt=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,
|
|
565
|
+
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;_.op=0;_.Ap=1;_.tp=2;_.Cp=3;_.Bp=4;_.vp=5;_.zp=6;_.pp=7;_.xp={IDLE:_.op,PREPARING:_.Ap,BUFFERING:_.tp,PLAYING:_.Cp,PAUSED:_.Bp,ENDED:_.vp,ERROR:_.zp,UNSET:_.pp};X.State=_.xp;
|
|
566
|
+
var Xs=[];_.x(mt,_.Fm);mt.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]};mt.prototype.qh=function(a,b){var c=$m(b);switch(this.o){case Fv:return c;case Gv:return(new _.bk(c)).a;default:throw Error("Unknown content ID strategy");}};mt.prototype.ei=function(a,b){b.headers[za]=$c;this.$d(a,b);var c={spc:_.fj(b.body)};b.body=_.S.nd(_.dk(c,!0))};
|
|
567
|
+
mt.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=_.hj(c).buffer};_.J(Dd,mt);mt.prototype.onFairPlayLicenseResponse=mt.prototype.fi;mt.prototype.onFairPlayLicenseRequest=mt.prototype.ei;mt.prototype.extractFairPlayContentId=mt.prototype.qh;mt.prototype.onLicenseRequest=mt.prototype.$d;mt.prototype.constructor=mt.prototype.constructor;mt.NAME=kb;var Gv="hostname",Fv="full-skd";
|
|
568
|
+
mt.FairPlayContentIdStrategy={HOSTNAME:Gv,FULL_SKD:Fv};_.u=nt.prototype;_.u.se=function(a){this.a=a};_.u.xd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(yb)};_.u.Ce=function(){return this.a&&this.a.mediaKeys};
|
|
569
|
+
_.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 Tb};ot.prototype.a=function(){return Tb};
|
|
570
|
+
ot.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};ot.prototype.create=function(){return new nt};Fn(new ot,1E3);_.u=pt.prototype;_.u.getStatus=function(){return this.a};_.u.forEach=function(a){this.a&&a(this.a,Hv.value())};_.u.get=function(a){if(this.has(a))return this.a};_.u.has=function(a){var b=Hv.value();return this.a&&Yi(a,b)?!0:!1};_.u.entries=function(){};_.u.keys=function(){};_.u.values=function(){};var Hv=new _.lp(function(){return dj(new Uint8Array([0]))});_.u=rt.prototype;_.u.se=function(a){this.a=a};_.u.xd=function(a){_.Jh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(yb);var b=this.f;b&&b!==a&&wt(b,null);(this.f=a)&&wt(a,this.a);return Promise.resolve()};_.u.Ce=function(){return this.f};_.u.Nb=function(a,b){_.Jh("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 st(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
|
|
571
|
+
_.u.wd=function(){return"WEBKIT"};st.prototype.createMediaKeys=function(){return Promise.resolve(new tt(this.h,this.a))};st.prototype.getConfiguration=function(){return this.f};tt.prototype.createSession=function(a){a=void 0===a?lg:a;if(a!==lg&&a!==_.gf)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=qb,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new xt(this.h,this.a,this.o,a);this.j.push(a);return a};
|
|
572
|
+
tt.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x(xt,_.Ul);_.u=xt.prototype;_.u.ready=function(){_.Jh("WebkitEmeManager.MediaKeySession.ready");vt(this,"usable");this.a&&this.a.resolve();this.a=null};_.u.generateRequest=function(a,b){_.Jh("WebkitEmeManager.MediaKeySession.generateRequest");return zt(this,b,null)};_.u.load=function(a){_.Jh(oc);return this.l===_.gf?zt(this,null,a):Promise.reject(Error(Eb))};_.u.update=function(a){_.Jh(oc);var b=new _.Cj;At(this,b,a);return b};
|
|
573
|
+
_.u.close=function(){_.Jh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.gf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=yt(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.u.remove=function(){_.Jh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.gf?Promise.reject(Error(Eb)):this.close()};Bt.prototype.a=function(){return"WEBKIT"};
|
|
574
|
+
Bt.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Bt.prototype.create=function(){return new rt};Fn(new Bt);_.u=Ct.prototype;_.u.se=function(a){this.f=a};_.u.xd=function(a){var b=this.a;b&&b!==a&&Ft(b,null);return(this.a=a)?Ft(a,this.f):Promise.resolve()};_.u.Ce=function(){return this.a};_.u.Nb=function(a,b){_.Jh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Dt(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.u.wd=function(){return"APPLE"};Dt.prototype.createMediaKeys=function(){var a=new Et(this.keySystem);return Promise.resolve(a)};
|
|
575
|
+
Dt.prototype.getConfiguration=function(){_.Jh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Et.prototype.createSession=function(a){a=void 0===a?lg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==lg)throw new TypeError("Session type "+a+ba);return new Gt(this.h,"__session_"+this.j++)};Et.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.x(Gt,_.Ul);_.u=Gt.prototype;
|
|
576
|
+
_.u.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Xb);this.g.debug("generateRequest");this.h=new _.Cj;try{var d=this.o.createSession(_.Ig,_.Wi(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Tg,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Ne,{messageType:void 0===f||f===eg?Be:Ae,message:dj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Rg,function(e){c.g.debug("onWebkitKeyAdded_",
|
|
577
|
+
e);c.f&&(Ht(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Sg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===eg)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
|
|
578
|
+
c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Ht(c,"output-not-allowed");break;default:Ht(c,_.xe)}});Ht(this,eg)}catch(e){this.h.reject(e)}return this.h};_.u.load=function(){this.g.debug(_.Fe);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.u.update=function(a){if(this.l)return Promise.reject(Xb);this.g.debug(vg);this.f=new _.Cj;try{this.a.update(_.Wi(a))}catch(b){this.f.reject(b)}return this.f};
|
|
579
|
+
_.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(),_.Rh(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"))};It.prototype.a=function(){return"APPLE"};It.prototype.f=function(){return!!window.WebKitMediaKeys};
|
|
580
|
+
It.prototype.create=function(){return new Ct};Fn(new It,1100);_.u=Jt.prototype;_.u.se=function(){};_.u.xd=function(a){_.Jh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.u.Ce=function(){return null};_.u.Nb=function(){_.Jh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.u.wd=function(){return"NOP"};Kt.prototype.a=function(){return"NOP"};Kt.prototype.f=function(){return!0};Kt.prototype.create=function(){return new Jt};
|
|
581
|
+
Fn(new Kt,-1);_.Lt.prototype.f=function(){};_.Lt.prototype.a=function(){};_.Lt.prototype.h=function(){};_.Lt.prototype.o=function(){};_.x(Mt,_.Lt);Mt.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===kb){a=a.drm.customData;if(!a)throw new _.N(_.O,7,7100,_.Rd);a=new mt(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Fv);_.Am(a)}};Mt.prototype.a=function(){delete _.zm.HeaderDrm};Mt.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",Mt);var Nt=new Map;_.u=Pt.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]===_.bd;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Ot(gd);if(b)return _.Ot(Qt(b,a));c=Qt(_.ad,a);d=Qt(_.r,a);return _.Ot(c)||_.Ot(d)};_.u.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
|
|
582
|
+
_.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=Bi(_.ad,e),h=Bi(_.r,e);g&&f.set(_.ad,this.convertCodecs(_.ad,_.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]===_.bd?gd:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?Qt(a,b):b};_.u.getOriginalMimeType=function(){return this.h};
|
|
583
|
+
_.u.transmux=function(a){function b(){g={video:lj.apply(ej,_.bh(d)),captions:f,audio:lj.apply(ej,_.bh(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===Iv?d.push(l):h.type===Jv&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.Wi(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};
|
|
584
|
+
Lk(_.bd,function(){return new Pt(_.bd)});Lk(_.Hg,function(){return new Pt(_.Hg)});var Jv=_.ad,Iv=_.r;_.St.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 _.Cj;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===Hb?b(!0):b(!1)}):b(!0);return d};
|
|
585
|
+
var Rt=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,
|
|
596
586
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
|
|
597
587
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
|
|
598
588
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
|
|
599
589
|
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,
|
|
600
590
|
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,
|
|
601
|
-
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]);_.
|
|
602
|
-
_.
|
|
603
|
-
_.
|
|
604
|
-
_.
|
|
605
|
-
|
|
606
|
-
|
|
591
|
+
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]);_.Tt.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)};_.Tt.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.u=_.Vt.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()};
|
|
592
|
+
_.u.getFontSizePercent=function(){return null===this.B?Kv: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()};_.Vt.prototype.setEdgeType=_.Vt.prototype.setEdgeType;_.Vt.prototype.getEdgeType=_.Vt.prototype.getEdgeType;_.Vt.prototype.setEdgeColor=_.Vt.prototype.setEdgeColor;_.Vt.prototype.getEdgeColor=_.Vt.prototype.getEdgeColor;
|
|
593
|
+
_.Vt.prototype.setFontSizePercent=_.Vt.prototype.setFontSizePercent;_.Vt.prototype.getFontSizePercent=_.Vt.prototype.getFontSizePercent;_.Vt.prototype.setFontSize=_.Vt.prototype.setFontSize;_.Vt.prototype.getFontSize=_.Vt.prototype.getFontSize;_.Vt.prototype.setFontColor=_.Vt.prototype.setFontColor;_.Vt.prototype.getFontColor=_.Vt.prototype.getFontColor;_.Vt.prototype.setFontFamily=_.Vt.prototype.setFontFamily;_.Vt.prototype.getFontFamily=_.Vt.prototype.getFontFamily;
|
|
594
|
+
_.Vt.prototype.setWindowColor=_.Vt.prototype.setWindowColor;_.Vt.prototype.getWindowColor=_.Vt.prototype.getWindowColor;_.Vt.prototype.setBackgroundColor=_.Vt.prototype.setBackgroundColor;_.Vt.prototype.getBackgroundColor=_.Vt.prototype.getBackgroundColor;var Kv=1/15;_.x(_.cu,_.Vt);_.u=_.cu.prototype;_.u.append=function(){};_.u.remove=function(){return!0};_.u.isTextVisible=function(){return this.w};_.u.setTextVisibility=function(a){this.w=a};
|
|
595
|
+
_.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":_.au(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 bu=0;var Wt="raised",Yt="depressed",$t="dropshadow",Zt="uniform";_.J("clpp.text.EdgeType",{NONE:_.Ue,RAISED:Wt,DEPRESSED:Yt,DROP_SHADOW:$t,UNIFORM:Zt});_.du={};hu.prototype.a=function(){return!0};hu.prototype.create=function(a){return new _.cu(a)};_.bp("native",new hu);iu.prototype.parseInit=function(a){try{var b=_.fu(_.Wc);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=_.fu(_.Xc);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);}};
|
|
596
|
+
iu.prototype.parseMedia=function(a,b){if(!this.a)throw new _.N(_.O,2,2011);return this.a.parseMedia(a,b)};_.eu(Vc,iu);_.x(lu,_.Ul);_.u=lu.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:[]}})};
|
|
597
|
+
_.u.pn=function(a){if(0===this.j.length)throw Error(Bb);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};
|
|
598
|
+
_.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(Bb),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,tu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.qh(d);a.l=!1;yu(a);_.rh(d);break;case 2:throw c=_.F(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
|
|
599
|
+
_.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===_.ef&&b.player.pause();mu(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,uu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.qh(e);
|
|
600
|
+
a.l=!1;b&&qu(a,b);yu(a);_.rh(e);break;case 2:throw d=_.F(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
|
|
601
|
+
_.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===_.ef&&b.player.pause();mu(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,uu(a,c),5);case 5:a.g.info("Previous playing (index: "+
|
|
602
|
+
a.a+")");case 3:_.qh(e);a.l=!1;b&&qu(a,b);yu(a);_.rh(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([nu(a),a.f?qu(a,a.f):Promise.resolve()]),2)):_.y(b,zu(a),0)})};_.J(Hd,lu);lu.prototype.destroy=lu.prototype.destroy;lu.prototype.playPrev=lu.prototype.Wm;lu.prototype.playNext=lu.prototype.wi;lu.prototype.playFirst=lu.prototype.Vm;lu.prototype.hasPrev=lu.prototype.Hh;
|
|
603
|
+
lu.prototype.hasNext=lu.prototype.Rd;lu.prototype.setIndex=lu.prototype.pn;lu.prototype.setItems=lu.prototype.qn;lu.prototype.getPreloading=lu.prototype.Ah;lu.prototype.getPrev=lu.prototype.Bh;lu.prototype.getNext=lu.prototype.yh;lu.prototype.getCurrentPlayer=lu.prototype.Ae;lu.prototype.getCurrent=lu.prototype.Nd;var pu="preload",ru=_.Ke;_.x(Au,X);_.u=Au.prototype;
|
|
604
|
+
_.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+ha);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,Cb);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,
|
|
605
|
+
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,
|
|
606
|
+
7100,"`playlist.endTime` config value is required for DVR content!");}_.oh(n);Bu(c);c.w="open";return _.y(n,Fu(c,b),4)}2!=n.a&&(c.H=0,c.o=b,c.ba=!0,Cu(c,b[0].playlist||{}));_.qh(n);c.w=null;return _.rh(n)})};
|
|
607
|
+
_.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+ha);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!");_.oh(d);b.w="addItem";b.o.push(a);return _.y(d,
|
|
608
|
+
Gu(b,a),2)}_.qh(d);b.w=null;return _.rh(d)})};_.u.getCurrentItem=function(){return this.o[this.H]||null};_.u.getCurrentItemIndex=function(){return this.H};_.u.jl=function(){return _.bh(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)};
|
|
609
|
+
_.u.destroy=function(){Bu(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",Au);Au.prototype.setCdnErrorCallback=Au.prototype.setCdnErrorCallback;Au.prototype.destroy=Au.prototype.destroy;Au.prototype.release=Au.prototype.release;Au.prototype.seekWith=Au.prototype.seekWith;Au.prototype.getTimeline=Au.prototype.getTimeline;Au.prototype.getSize=Au.prototype.Od;
|
|
610
|
+
Au.prototype.getPlaylist=Au.prototype.jl;Au.prototype.getCurrentItemIndex=Au.prototype.getCurrentItemIndex;Au.prototype.getCurrentItem=Au.prototype.getCurrentItem;Au.prototype.addItem=Au.prototype.aj;Au.prototype.open=Au.prototype.open;_.Hu.prototype.onContentWillLoad=function(){return Promise.resolve()};_.Hu.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.Hu.prototype.onPlayerWillDestroy=function(){};_.Hu.prototype.onPlayerWillRelease=function(){};}.call(g,this));
|
|
607
611
|
g.clpp._ = _;
|
|
608
612
|
if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
|
|
609
613
|
else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}
|