webpackJsonpjwplayer([2],{17:function(t,e,i){var n,r;n=[i(8)],r=function(t){function e(t){t||i()}function i(){throw new Error("Invalid DFXP file")}var n=t.seconds;return function(r){e(r);var s=[],a=r.getElementsByTagName("p"),o=30,h=r.getElementsByTagName("tt");if(h&&h[0]){var u=parseFloat(h[0].getAttribute("ttp:frameRate"));isNaN(u)||(o=u)}e(a),a.length||(a=r.getElementsByTagName("tt:p"),a.length||(a=r.getElementsByTagName("tts:p")));for(var l=0;l\s+<").replace(/tts?:/g,"");if(d){var p=c.getAttribute("begin"),b=c.getAttribute("dur"),y=c.getAttribute("end"),v={begin:n(p,o),text:d};y?v.end=n(y,o):b&&(v.end=v.begin+n(b,o)),s.push(v)}}return s.length||i(),s}}.apply(e,n),!(void 0!==r&&(t.exports=r))},18:function(t,e,i){var n,r;n=[i(1),i(21),i(2),i(14),i(19),i(17)],r=function(t,e,n,r,s,a){function o(t){if(this._currentTextTrackIndex=-1,t){if(this._textTracks||S.call(this),t.length){var e=0,i=t.length;for(e;ethis._textTracks.length)&&this.setTextTracks(e);var n=-1,r=0;for(r;r1&&(e+=" ["+this._unknownCount+"]")),e}function A(t){this._textTracks.push(t),this._tracksById[t._id]=t}function N(t,e){var i=this;return n.ajax(t.file,function(t){R.call(i,t,e)},L)}function x(){if(this._textTracks){var e=t.filter(this._textTracks,function(t){return t.embedded||"subs"===t.groupid});S.call(this),t.each(e,function(t){this._tracksById[t._id]=t}),this._textTracks=e}}function C(t,e){if(this._renderNatively){var i=this._tracksById[t._id];if(!i)return this._cuesByTrackId||(this._cuesByTrackId={}),void(this._cuesByTrackId[t._id]={cues:e,loaded:!1});if(this._cuesByTrackId[t._id]&&this._cuesByTrackId[t._id].loaded)return;var n;for(this._cuesByTrackId[t._id]={cues:e,loaded:!0};n=e.shift();)i.addCue(n)}else t.data=e}function j(e){var i=window.VTTCue,n=t.map(e,function(t){return new i(t.begin,t.end,t.text)});return n}function M(t,e){var n=this._renderNatively;i.e(11,function(require){var r=i(13),s=new r(window);n?s.oncue=function(t){e.addCue(t)}:(e.data=e.data||[],s.oncue=function(t){e.data.push(t)});try{s.parse(t).flush()}catch(a){L(a)}})}function D(i){var n=i.currentTarget.activeCues;if(n&&n.length){var r=n[n.length-1].startTime;if(this._activeCuePosition!==r){var s=[];if(t.each(n,function(t){t.startTime=0?M.call(this,h,e):(i=s(h),n=j(i),C.call(this,e,n))}}catch(u){L(u.message+": "+e.file)}}function L(t){n.log("CAPTIONS("+t+")")}var U={_itemTracks:null,_textTracks:null,_tracksById:null,_cuesByTrackId:null,_metaCuesByTextTime:null,_currentTextTrackIndex:-1,_unknownCount:0,_renderNatively:!1,_activeCuePosition:null,addTracksListener:p,clearTracks:y,disableTextTrack:v,getSubtitlesTrack:u,removeTracksListener:b,addTextTracks:m,setTextTracks:o,setupSideloadedTracks:h,setSubtitlesTrack:l,textTrackChangeHandler:null,addCuesToTrack:d,addCaptionsCue:c,addVTTCue:f};return U}.apply(e,n),!(void 0!==r&&(t.exports=r))},50:function(t,e,i){var n,r;n=[i(2)],r=function(t){return{volume:function(e){e=t.between(e/100,0,1),this.video.volume=e},mute:function(t){this.video.muted=!!t},resize:function(e,i,n){if(!(e&&i&&this.video.videoWidth&&this.video.videoHeight))return!1;if("uniform"===n){var r=e/i,s=this.video.videoWidth/this.video.videoHeight,a=null;Math.abs(r-s)<.09&&(a="fill"),t.style(this.video,{objectFit:a})}return!1},getVideo:function(t){var e=document.getElementById(t),i=(e?e.querySelector("video"):void 0)||document.createElement("video");return i.className="jw-video jw-reset",this.video=i,i}}}.apply(e,n),!(void 0!==r&&(t.exports=r))},51:function(t,e,i){var n,r;n=[i(3),i(20),i(5)],r=function(t,e,i){var n=256;return{attached:!0,beforeComplete:!1,stallCheckTimeout_:-1,lastStalledTime_:NaN,trigger:function(e,i){if(this.attached)return t.trigger.call(this,e,i)},setState:function(t){if(this.attached)return e.setState.call(this,t)},checkComplete:function(){return this.beforeComplete},playbackComplete_:function(){this.stopStallCheck(),this.setState(i.COMPLETE),this.beforeComplete=!1,this.trigger("complete")},attachMedia:function(){this.attached=!0,this.eventsOn_(),this.beforeComplete&&this.playbackComplete_()},detachMedia:function(){return this.stopStallCheck(),this.attached=!1,this.eventsOff_(),this.video},stopStallCheck:function(){clearTimeout(this.stallCheckTimeout_)},startStallCheck:function(){this.stopStallCheck(),this.stallCheckTimeout_=setTimeout(this.stalledHandler.bind(this),n)},stalledHandler:function(){return this.lastStalledTime_!==this.video.currentTime?void(this.lastStalledTime_=this.video.currentTime):void(this.video.paused||this.video.ended||this.state!==i.LOADING&&this.state!==i.ERROR&&(this.seeking||this.setState(i.STALLED)))}}}.apply(e,n),!(void 0!==r&&(t.exports=r))},52:function(t,e,i){var n,r;n=[i(2),i(5)],r=function(t,e){return{seeking:!1,loadedmetadata:function(){var t={duration:this.getDuration(),height:this.video.videoHeight,width:this.video.videoWidth},e=this.drmUsed;e&&(t.drm=e),this.trigger("meta",t)},timeupdate:function(){this.stopStallCheck();var t=this.video.videoHeight;t!==this._helperLastVideoHeight&&this.trigger("adaptation",{size:{width:this.video.videoWidth,height:this.video.videoHeight}}),this._helperLastVideoHeight=t,this.state===e.STALLED&&this.setState(e.PLAYING),this.startStallCheck();var i=this.getCurrentTime(),n={position:i,duration:this.getDuration()};if(this.getPtsOffset){var r=this.getPtsOffset();r>=0&&(n.metadata={mpegts:r+i})}this.trigger("time",n)},click:function(t){this.trigger("click",t)},volumechange:function(){var t=this.video;this.trigger("volume",{volume:Math.round(100*t.volume)}),this.trigger("mute",{mute:t.muted})},seeked:function(){this.seeking=!1,this.trigger("seeked")},playing:function(){this.setState(e.PLAYING)},pause:function(){this.state!==e.COMPLETE&&(this.video.ended||this.video.currentTime!==this.video.duration&&this.setState(e.PAUSED))},progress:function(){var e=this.getDuration();if(!(e<=0||e===1/0)){var i=this.video.buffered;if(i&&0!==i.length){var n=t.between(i.end(i.length-1)/e,0,1);this.trigger("bufferChange",{bufferPercent:100*n,position:this.getCurrentTime(),duration:e})}}},ended:function(){if(this.stopStallCheck(),this._helperLastVideoHeight=0,this.state!==e.IDLE&&this.state!==e.COMPLETE){if(this.beforeComplete=!0,this.attached=!0,this.trigger("beforeComplete"),!this.attached)return;this.playbackComplete_()}},loadeddata:function(){this.setTextTracks(this.video.textTracks),this.video.setAttribute("jw-loaded","data")},error:function(){var t=this.video.error&&this.video.error.code||-1,e={1:"Unknown operation aborted",2:"Unknown network error",3:"Unknown decode error",4:"Source not supported"}[t]||"Unknown";this.trigger("mediaError",{code:t,message:"Error playing file: "+e})}}}.apply(e,n),!(void 0!==r&&(t.exports=r))},83:function(t,e,i){var n;!function(){var r={};(function(t){function e(t,e){var i=t.split("."),n=Yr;i[0]in n||!n.execScript||n.execScript("var "+i[0]);for(var r;i.length&&(r=i.shift());)i.length||void 0===e?n=n[r]?n[r]:n[r]={}:n[r]=e}function i(t,e){function i(){}i.prototype=e.prototype,t.Yb=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.Xb=function(t,i,n){return e.prototype[i].apply(t,Array.prototype.slice.call(arguments,2))}}function n(){}function r(t){var e=console[t];e?e.bind||(console[t]=function(){e.apply(console,arguments)}):console[t]=function(){}}function s(t){Qr[t]={na:Jr(),end:NaN}}function a(t){(t=Qr[t])&&(t.end=Jr())}function o(t){return(t=Qr[t])&&t.end?t.end-t.na:NaN}function h(t,e,i){this.id=t,this.bandwidth=e||0,this.lang=i||"unknown",this.active=!1}function u(){this.minBandwidth=this.maxBandwidth=this.maxWidth=this.minHeight=this.maxHeight=null}function l(){this.fontSize="100%",this.fontColor=Xr,this.fontOpacity=Zr,this.backgroundColor=$r,this.backgroundOpacity=Zr,this.fontEdge=ts}function c(t){var e=[];e.push("font-size: "+t.fontSize),e.push("color: "+f(t.fontColor,t.fontOpacity)),e.push("background-color: "+f(t.backgroundColor,t.backgroundOpacity));for(var i=[],n=0;nn?1:t.bandwidthe.bandwidth?1:0}function y(){var e="CustomEvent"in t;if(e)try{new CustomEvent("")}catch(i){e=!1}e||(t.CustomEvent=v)}function v(t,e){var i=document.createEvent("CustomEvent"),n=e||{bubbles:!1,cancelable:!1,detail:null};return i.initCustomEvent(t,!!n.bubbles,!!n.cancelable,n.detail),i}function g(){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,t=Document.prototype,t.exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitExitFullscreen,"fullscreenElement"in document||Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),document.addEventListener("webkitfullscreenchange",m),document.addEventListener("webkitfullscreenerror",m),document.addEventListener("mozfullscreenchange",m),document.addEventListener("mozfullscreenerror",m),document.addEventListener("MSFullscreenChange",m),document.addEventListener("MSFullscreenError",m)}function m(t){var e=t.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),e=new Event(e,t);t.target.dispatchEvent(e)}function w(){return Promise.reject(Error("The key system specified is not supported."))}function T(t){return null==t?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function k(){throw new TypeError("Illegal constructor.")}function E(){throw new TypeError("Illegal constructor.")}function _(t){if(this.c=[],this.b=[],this.ba=es,t)try{t(this.W.bind(this),this.a.bind(this))}catch(e){this.a(e)}}function S(){t.Promise||(t.Promise=_,t.Promise.resolve=P,t.Promise.reject=I,t.Promise.all=A,t.Promise.race=N,t.setImmediate?(j=function(e){return t.setImmediate(e)},M=function(e){return t.clearImmediate(e)}):(j=function(e){return t.setTimeout(e,0)},M=function(e){return t.clearTimeout(e)}))}function P(t){var e=new _;return e.W(t),e}function I(t){var e=new _;return e.a(t),e}function A(t){function e(t,e,i){t.ba==es&&(r[e]=i,n++,n==r.length&&t.W(r))}var i=new _;if(!t.length)return i.W([]),i;for(var n=0,r=Array(t.length),s=i.a.bind(i),a=0;at.b.byteLength)throw new RangeError("DataViewReader: Read past end of DataView.");var e=new Uint8Array(t.b.buffer,t.a,16);return t.a+=16,e}function q(t,e){if(t.a+e>t.b.byteLength)throw new RangeError("DataViewReader: Skip past end of DataView.");t.a+=e}function G(t){this.b=t,this.a=new B(t),rs||(rs=[new Uint8Array([255]),new Uint8Array([127,255]),new Uint8Array([63,255,255]),new Uint8Array([31,255,255,255]),new Uint8Array([15,255,255,255,255]),new Uint8Array([7,255,255,255,255,255]),new Uint8Array([3,255,255,255,255,255,255]),new Uint8Array([1,255,255,255,255,255,255,255])])}function z(t){var e;if(e=W(t),7=e&&!(i&1<<8-e);e++);if(8=hs&&i==e.split("-")[0]||t>=us&&i.split("-")[0]==e.split("-")[0]}function et(t){t=t.toLowerCase().split("-");var e=ls[t[0]];return e&&(t[0]=e),t.join("-")}function it(t){return Object.keys(t).map(function(e){return t[e]})}function nt(t,e){return at(t,e,"boolean")}function rt(t,e){var i=at(t,e,"number");if(null==i)return null;if(isNaN(i)||i==Number.NEGATIVE_INFINITY||i==Number.POSITIVE_INFINITY)throw new RangeError("'"+e+"' must be finite.");if(0>i)throw new RangeError("'"+e+"' must be >= 0");return i}function st(t,e){return at(t,e,"string")}function at(t,e,i){if(t=t[e],null==t)return null;if(typeof t!=i)throw new TypeError("'"+e+"' must be a "+i+".");return t}function ot(t,e,i){if(t=t[e],null==t)return null;if(!(t instanceof i))throw new TypeError("'"+e+"' must be an instance of "+i.name+".");return t}function ht(){this.a={}}function ut(t){var e,i=[];for(e in t.a)i.push.apply(i,t.a[e]);return i}function lt(t,e,i){if(t=t.a[e])for(e=0;e=r&&e<=s)return i.end(n)-e}return 0}function Ft(t,e,i,n){if(t.a)return t=Error("Cannot fetch ("+t.v+"): previous operation not complete."),t.type="stream",Promise.reject(t);t.a=new Tt,i!=t.c.timestampOffset&&(t.c.timestampOffset=i),"idb"!=e.url.b[0].P||t.g||(t.g=new Rt,kt(t.a,function(){return[It(this.g)]}.bind(t))),n&&kt(t.a,function(){return[Wt(this,n),this.h.bind(this)]}.bind(t)),kt(t.a,function(){var t=e.a?e.a-e.b:1,i=new wi;return i.a=3,i.h=1e3*t,i.c=1e3*this.s,i.i=this.g,[Ai(e.url,i,this.l),Pi.prototype.g.bind(e.url)]}.bind(t)),kt(t.a,St(t,function(t){return this.l.getBandwidth(),[Wt(this,t),this.h.bind(this)]}));var r=0==t.c.buffered.length&&0==t.b.length,s=null;return kt(t.a,function(){if(0==this.c.buffered.length){var t=Error("Failed to buffer segment ("+this.v+").");return t.type="stream",[Promise.reject(t)]}r&&(t=e.b,s=this.c.buffered.start(0)-t),t=Oi(this.b,e.b),0<=t?this.b.splice(t+1,0,e):this.b.push(e)}.bind(t)),zt(t).then(function(){return Promise.resolve(s)}.bind(t))}function Kt(t){return t.a?(t=Error("Cannot clear ("+t.v+"): previous operation not complete."),t.type="stream",Promise.reject(t)):(t.a=new Tt,kt(t.a,function(){var t;t:if(0==this.c.buffered.length)t=Promise.resolve();else{try{this.c.remove(0,this.i.duration)}catch(e){t=Promise.reject(e);break t}this.b=[],t=this.f=new mt}return[t,this.h.bind(this)]}.bind(t)),zt(t))}function qt(t,e){if(t.a){var i=Error("Cannot clearAfter ("+t.v+"): previous operation not complete.");return i.type="stream",Promise.reject(i)}return t.a=new Tt,kt(t.a,function(){return[Yt(this,e),this.h.bind(this)]}.bind(t)),zt(t)}function Gt(t){return t.a?(t=t.a,t.a?t=t.a:t.f?(t.c&&t.c(),t.a=new mt,t=t.a):(t.f=!0,t=Promise.resolve())):t=Promise.resolve(),t}function zt(t){return t.a.start(),t.a.g.then(St(t,function(){this.a=null}))["catch"](St(t,function(t){return this.a=null,Promise.reject(t)}))}function Wt(t,e){try{t.c.appendBuffer(e)}catch(i){return Promise.reject(i)}return t.f=new mt,t.f}function Yt(t,e){if(0==t.c.buffered.length)return Promise.resolve();var i=Oi(t.b,e);if(-1==i||i==t.b.length-1)return Promise.resolve();try{t.c.remove(t.b[i+1].b,t.i.duration)}catch(n){return Promise.reject(n)}return t.b=t.b.slice(0,i+1),t.f=new mt,t.f}function Jt(t){return String.fromCharCode.apply(null,t)}function Qt(t){for(var e=new Uint8Array(t.length),i=0;i=i.a.length)t=e;else{var n=[];for(t=0;te)throw Error("Bad port number "+e);t.ia=e}else t.ia=null}function xe(t,e,i){e instanceof De?t.a=e:(i||(e=je(e,gs)),t.a=new De(e))}function Ce(t,e){return t?e?decodeURI(t):decodeURIComponent(t):""}function je(t,e,i){return"string"==typeof t?(t=encodeURI(t).replace(e,Me),i&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Me(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}function De(t){this.b=t||null}function Re(t,e,i){if(!t.a&&(t.a={},t.c=0,t.b))for(var n=t.b.split("&"),r=0;ra&&(a=t[r].a,a=r+1===t.length?Math.ceil((t[0].b+e-s)/a)-1:Math.ceil((t[r+1].b-s)/a)-1),0=n.b&&(null==n.a||e=Ki(e).b);++n);t.o[n].bKi(e).b||Ki(e),i=t.o.slice(0,n))}t.o=i.concat(e.o)}}function Gi(t,e,i,n){Fi.call(this,t),this.g=e,this.w=i,this.f=n,this.h=this.g.b||this.g.a.reduce(function(t,e){return null==e.a?NaN:t+e.a},0)||0,this.a=this.l=this.c=null,zi(this)}function zi(t){if(Ji(t),0!=t.length()){t.length();var e=null!=t.A().a?t.A().a:t.A().b;if(t.g.c>t.f)t.c=e;else{var i=t.f-(t.g.c+t.w.start);0>i?t.c=e:it.h;--i)++e;0n)s=null;else{var h=t.i||0,u=t.f||0;s=i.a,s=s.b/s.a;var l=n-(t.c+e.start);0>l?s=null:(u=l-2*s-u,0>u&&(u=0),u=Math.ceil(u/s)*s,l-=s,0>l?s=null:(h=Math.floor(l/s)*s-h,0>h&&(h=0),h=Math.floor(h/s)*s,s={Ya:u/s+1,current:(h>=u?h:u)/s+1}))}if(s&&(a=s.Ya,o=s.current-s.Ya+1),a=ji(r,i,a,o),null==a)throw t=Error("Failed to generate SegmentReferences."),t.type="stream",t;Gi.call(this,a,t,e,n),this.s=i,this.v=this.b=0=this.f.length&&this.g.resolve()}))["catch"](St(t,function(t){t=Z(t),this.dispatchEvent(t)}))}}function tr(t){var e=null;if(t.b.ha())try{e=t.i.createSession("persistent-license")}catch(i){throw Error("Persistent licenses are not supported by this key system or platform.")}else e=t.i.createSession();return dt(t.l,e,"message",t.G.bind(t)),dt(t.l,e,"keystatuseschange",t.F.bind(t)),e}function er(t,e,i,n){n=ir(i,n),zn(new Gn(n.url,n.body,n.method,i.i,n.headers,t.w)).then(St(t,function(t){return i.l&&(t=i.l(t)),e.update(t)})).then(St(t,function(){var t=$({type:"sessionReady",detail:e});this.dispatchEvent(t),this.s++,this.s>=this.f.length&&this.g.resolve()}))["catch"](St(t,function(t){t.La=e,t=Z(t),this.dispatchEvent(t)}))}function ir(e,i){var n={url:e.h,body:i.slice(0),method:"POST",headers:{}};if("com.microsoft.playready"===e.a){for(var r=String.fromCharCode.apply(null,new Uint16Array(n.body)),r=(new DOMParser).parseFromString(r,"application/xml"),s=r.getElementsByTagName("name"),a=r.getElementsByTagName("value"),o=0;on?1:0}function dr(t){this.a=t}function pr(t){function e(t,e){return t.concat(e)}var i=t.a.map(function(t){return t.a}).reduce(e,[]).map(function(t){return t.m}).reduce(e,[]);return t=i.map(function(t){return t.I.create()}),Promise.all(t).then(function(t){for(var e={},n=0;n=(s.bandwidth+i)/.95&&t<=a&&(n=s,n.active)))break}return n}function Tr(t,e,i){yt.call(this,null),this.f=t,this.c=e,this.b=ee(i),this.a=null}function kr(t,e,i){yt.call(this,null),this.a=t,this.Z=e,this.i=new ft,this.g=new MediaSource,this.f=null,this.da=0,this.b=new ht,this.G=i,this.G.initialize(e,this),this.L=!1,this.K="en",this.fa=!1,this.U=null,this.B=new mt,this.h=new u,this.D=null,this.Va=1,this.c={},this.ea=new mt,this.Ta=0,this.Ua=15,this.w=null,this.Ra=this.Sa=!1,this.s={},this.$=this.Y=this.V=null,this.F={}}function Er(e,i){if(null!=e.a.f){var n=Math.max(e.a.f,3),n=Math.max(n-i,0);e.V=t.setTimeout(e.gb.bind(e,!1),1e3*n)}}function _r(t,e){var i=e.a.split("/")[0],n=t.c[i];if(n&&n.oa()==e){var r=t.b.get(e.a.split("/")[0]).map(function(t){return t.m}).reduce(function(t,e){return t.concat(e)},[]).filter(function(t){return t.N&&t.J});if(0==r.length)return i=Error("All usable streams have been removed from the manifest."),i.type="app",i=Z(i),void t.dispatchEvent(i);t.s[i].Pa==e&&delete t.s[i],n.ra(r[0],!0),e.destroy()}e.destroy()}function Sr(t){if(t.h){for(var e=!1,i=0;it.h.maxWidth&&(o.J=!1),t.h.maxHeight&&o.height>t.h.maxHeight&&(o.J=!1),t.h.minHeight&&o.heightt.h.maxBandwidth&&(o.J=!1),t.h.minBandwidth&&o.bandwidth=i;++i)for(var n=0;n=i.start?n=t.$:t.a.b?(n=i.end,t.Sa=!0):n=i.start,dt(t.i,t.f,"seeking",t.Gb.bind(t)),t.f.currentTime!=n&&(t.f.currentTime=n,t.D=n),Lr(t,i.start,i.end),i=[];for(var r in t.c){n=t.c[r],i.push(n.sb(t.ea)),dt(t.i,n,"ended",t.Hb.bind(t));var s=e[r];Rn(t.U,s),n.ra(s,!1)}Promise.all(i).then(t.tb.bind(t))["catch"](St(t,function(t){"destroy"!=t.type&&(t=Z(t),this.dispatchEvent(t))})),t.Na(t.fa)}function Dr(t,e,i){(e=Or(t,e))&&(Rr(t,e),Lr(t,e.start,e.end)),0!=i&&(i=t.f.currentTime+i,t.f.currentTime=i,t.D=i),t.Sa&&e&&(t.f.currentTime=e.end),t.f.playbackRate=t.Va,t.a.b&&null!=t.a.f&&Er(t,0),Vr(t),t.ea.resolve()}function Rr(t,e){if(t.a.b)isNaN(t.g.duration)&&(t.g.duration=e.end+2592e3);else if(isNaN(t.g.duration)||e.end>t.g.duration){t.g.duration=e.end;for(var i=0;i=i-.01)return!1;if(e=0,t.a.b){e=.5;for(var r in t.c)if(!t.c[r].kb(i+e)){e=t.a.c;break}}return t.f.currentTime=Math.min(i+e,n),!0}function Br(t){return it(t.c).map(function(t){return t.bb()}).filter(function(t){return null!=t})}function Or(t,e){for(var i=0,n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,s=0;sn?null:{start:i,end:n,A:r}}function Vr(e){e.a.b&&(e.Y=t.setTimeout(e.Jb.bind(e),1e3))}function Hr(t){for(var e in t.c)t.c[e].F(t.F)}function Fr(t,e,i,n){i||(i=new gt),n||(n=new mr),kr.call(this,null,i,n),this.za=t,this.l=null,this.M=e,this.R=[],this.ga=[],this.ta=[],this.j=null}function Kr(t,e,i){e||(e=new gt),i||(i=new mr),kr.call(this,null,e,i),this.R=t,this.M=[],this.timeoutMs=3e4,this.l={},this.j=this.ga=null}function qr(t,e,i,n){var r=new Bn(t.Z,t);return null!=t.l.segmentRequestTimeout&&(r.b=Number(t.l.segmentRequestTimeout)),It(r).then(St(t,function(){return On(r,e,this.M,n,i)})).then(function(t){return At(r),Promise.resolve(t)})["catch"](function(t){return At(r),Promise.reject(t)})}function Gr(t){var e=new Bn(null,null);return It(e).then(St(t,function(){return Vn(e,this.R)})).then(function(){return At(e),Promise.resolve()})["catch"](function(t){return At(e),Promise.reject(t)})}function zr(e){var i=document.createElement("video");i.src=t.URL.createObjectURL(e.g);var n=new Wn(null,i,e);return null!=e.l.licenseRequestTimeout&&(n.w=Number(e.l.licenseRequestTimeout)),e.X().then(function(){return n.initialize()}).then(St(e,function(){return Yn(n,this.timeoutMs)})).then(function(){return Jn(n)}).then(St(e,function(){return n.destroy(),this.destroy(),Promise.resolve()}))["catch"](St(e,function(t){return n.destroy(),this.destroy(),Promise.reject(t)}))}var Wr,Yr=this;r("error"),r("warn"),r("info"),r("log"),r("debug");var Jr=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,Qr={};e("shaka.player.AudioTrack.compare",function(t,e){return t.lange.lang?1:t.bandwidthe.bandwidth?1:0}),u.prototype.clone=function(){var t=new u;return t.maxHeight=this.maxHeight,t.minHeight=this.minHeight,t.maxWidth=this.maxWidth,t.maxBandwidth=this.maxBandwidth,t.minBandwidth=this.minBandwidth,t},e("shaka.player.TextStyle",l),l.prototype.a=function(){var e=t.localStorage.getItem("ShakaPlayerTextStyle");if(e){var i;try{i=JSON.parse(e)}catch(n){return}if(i&&"object"==typeof i){var r,e=i;for(r in e)r in this&&(this[r]=e[r])}}},l.prototype.load=l.prototype.a,l.prototype.b=function(){t.localStorage.setItem("ShakaPlayerTextStyle",JSON.stringify(this))},l.prototype.store=l.prototype.b;var Xr=[255,255,255],$r=[0,0,0];l.StandardColors={WHITE:Xr,BLACK:$r,RED:[255,0,0],GREEN:[0,255,0],BLUE:[0,0,255],YELLOW:[255,255,0],MAGENTA:[255,0,255],CYAN:[0,255,255]};var Zr=1;l.StandardOpacities={OPAQUE:Zr,SEMI_HIGH:.75,SEMI_LOW:.25,TRANSPARENT:0};var ts=[];l.EdgeStyles={NONE:ts,RAISED:[[34,34,34,1,1,0],[34,34,34,2,2,0],[34,34,34,3,3,0]],DEPRESSED:[[204,204,204,1,1,0],[204,204,204,0,1,0],[34,34,34,-1,-1,0],[34,34,34,0,-1,0]],UNIFORM:[[34,34,34,0,0,4],[34,34,34,0,0,4],[34,34,34,0,0,4],[34,34,34,0,0,4]],DROP:[[34,34,34,2,2,3],[34,34,34,2,2,4],[34,34,34,2,2,5]]},e("shaka.player.TextTrack.compare",function(t,e){return t.lange.lang?1:0}),e("shaka.player.VideoTrack.compare",b),e("shaka.polyfill.CustomEvent.install",y),e("shaka.polyfill.Fullscreen.install",g),k.prototype.createSession=function(){},k.prototype.setServerCertificate=function(){},E.prototype.getConfiguration=function(){},E.prototype.createMediaKeys=function(){};var es=0;e("shaka.polyfill.Promise.install",S),_.prototype.then=function(t,e){var i=new _;switch(this.ba){case 1:x(this,i,t);break;case 2:x(this,i,e);break;case es:this.c.push({Ia:i,Ba:t}),this.b.push({Ia:i,Ba:e})}return i},_.prototype.then=_.prototype.then,_.prototype["catch"]=function(t){return this.then(void 0,t)},_.prototype["catch"]=_.prototype["catch"],_.prototype.W=function(t){if(this.ba==es){for(this.wa=t,this.ba=1,t=0;te)){t=Math.max(t,50);var i=8e3*e/t,n=t/1e3;this.a.sample(n,i),this.c.sample(n,i),this.dispatchEvent($({type:"bandwidth"})),this.b=Date.now()}},gt.prototype.getBandwidth=function(){return.5>this.a.a?5e5:Math.min(X(this.a),X(this.c))},gt.prototype.getDataAge=function(){return(Date.now()-this.b)/1e3},gt.prototype.supportsCaching=function(){return!1},mt.prototype.destroy=function(){this["catch"](function(){});var t=Error("Destroyed!");t.type="destroy",this.reject(t)},Tt.prototype.start=function(){if(this.f)throw Error("Task already started!");this.f=!0,this.b.unshift(function(){}),Et(this,void 0)},Tt.prototype.end=function(){this.b.splice(1)},i(Pt,yt),i(Rt,Pt);var cs=1/60;Vt.prototype.destroy=function(){Gt(this)["catch"](function(){}),this.f&&this.f.destroy(),this.a=this.f=null,this.g&&(At(this.g),this.g=null),this.b=null,this.j.destroy(),this.i=this.c=this.j=null},Vt.prototype.h=function(){this.f&&"open"==this.i.readyState&&this.c.abort()},Vt.prototype.B=function(){this.f&&(this.f.resolve(),this.f=null)},e("shaka.util.Uint8ArrayUtils.toString",Jt),e("shaka.util.Uint8ArrayUtils.fromString",Qt),e("shaka.util.Uint8ArrayUtils.toBase64",function(e,i){var n=void 0==i||i,r=t.btoa(Jt(e)).replace(/\+/g,"-").replace(/\//g,"_");return n?r:r.replace(/=*$/,"")}),e("shaka.util.Uint8ArrayUtils.fromBase64",Xt),e("shaka.util.Uint8ArrayUtils.fromHex",function(e){for(var i=new Uint8Array(e.length/2),n=0;n=this.a.status?(this.c.resolve(this.a),Ti(this)):this.h>>31;var h=2147483647&d,p=H(a);if(H(a),1==c){r=null;break t}var b=new Pi(n,i,e,e+h-1);s.push(new Ui(t/u,(t+p)/u,b)),t+=p,e+=h}r=s}}}}catch(y){if(!(y instanceof RangeError))throw y}return r},Fi.prototype.destroy=function(){this.o=null},Wr=Fi.prototype,Wr.length=function(){return this.o.length},Wr.A=function(){if(0==this.o.length)throw new RangeError("SegmentIndex: There is no last SegmentReference.");return this.o[this.o.length-1]},Wr.get=function(t){if(0>t||t>=this.o.length)throw new RangeError("SegmentIndex: The specified index is out of range.");return this.o[t]},Wr.la=function(t){return t=Oi(this.o,t),0<=t?this.o[t]:null},Wr.Ha=function(t){return qi(this,t),!0},Wr.ka=function(t){var e=t-this.i;return 0==e?0:(this.o=Vi(this.o,e),this.i=t,e)},Wr.Ea=function(){return 0=(this.s?Math.max(this.B,this.L):this.B)?(dn(this),yn(this,1e3/(Math.abs(this.c.playbackRate)||1))):(e=fn(this,i,e))?(e=Ft(this.a,e,t.c,this.w),this.w=null,this.K&&(this.K=!1,pn(this,t)),this.j=!1,e.then(St(this,function(t){null==this.i&&(this.i=t),this.D&&0this.l&&(this.a.playbackRate=0,this.B(this.a.currentTime,Date.now(),this.l)),this.h&&ur(this)},Wr.Cb=function(){a("playing");var t=o("playing");if(!isNaN(t)){var e=this.g;e.playTime+=t/1e3}ar(this)},Wr.Fb=function(t){this.D=t.start},Wr.qb=function(){if(!this.a.paused){a("playing");var t=o("playing");if(!isNaN(t)){var e=this.g;e.playTime+=t/1e3,s("playing")}}return t=this.g,e=this.a,e.getVideoPlaybackQuality&&(e=e.getVideoPlaybackQuality(),t.decodedFrames=e.totalVideoFrames,t.droppedFrames=e.droppedVideoFrames),this.g},nr.prototype.getStats=nr.prototype.qb,nr.prototype.da=function(){return this.b?this.b.ma():[]},nr.prototype.getVideoTracks=nr.prototype.da,nr.prototype.Y=function(){return this.b?this.b.pa():[]},nr.prototype.getAudioTracks=nr.prototype.Y,nr.prototype.$=function(){return this.b?this.b.Oa():[]},nr.prototype.getTextTracks=nr.prototype.$,nr.prototype.selectVideoTrack=function(t,e){return!!this.b&&this.b.selectVideoTrack(t,void 0==e||e)},nr.prototype.selectVideoTrack=nr.prototype.selectVideoTrack,nr.prototype.M=function(t,e,i){return!!this.b&&this.b.nb(t,void 0==e||e,i)},nr.prototype.selectAudioTrack=nr.prototype.M,nr.prototype.fa=function(t){return!!this.b&&this.b.ob(t,!1)},nr.prototype.selectTextTrack=nr.prototype.fa,nr.prototype.V=function(t){this.b&&this.b.Na(t)},nr.prototype.enableTextTrack=nr.prototype.V,nr.prototype.T=function(t){ar(this),0<=t?this.a.playbackRate=t:this.a.paused||(this.a.playbackRate=0,this.B(this.a.currentTime,Date.now(),t)),this.l=t},nr.prototype.setPlaybackRate=nr.prototype.T,nr.prototype.K=function(){return this.l},nr.prototype.getPlaybackRate=nr.prototype.K,nr.prototype.R=function(t){this.F=t},nr.prototype.setPlaybackStartTime=nr.prototype.R,nr.prototype.G=function(){return!!this.b&&this.b.mb()},nr.prototype.isLive=nr.prototype.G,nr.prototype.U=function(t){if(t){var e=nt(t,"enableAdaptation");null!=e&&(this.c.enableAdaptation=e),e=rt(t,"streamBufferSize"),null!=e&&(this.c.streamBufferSize=e),e=rt(t,"liveStreamEndTimeout"),null!=e&&(this.c.liveStreamEndTimeout=e),e=rt(t,"licenseRequestTimeout"),null!=e&&(this.c.licenseRequestTimeout=e),e=rt(t,"mpdRequestTimeout"),null!=e&&(this.c.mpdRequestTimeout=e),e=rt(t,"segmentRequestTimeout"),null!=e&&(this.c.segmentRequestTimeout=e),e=st(t,"preferredLanguage"),null!=e&&(this.c.preferredLanguage=e),e=ot(t,"restrictions",u),null!=e&&(this.c.restrictions=e.clone()),t=nt(t,"disableCacheBustingEvenThoughItMayAffectBandwidthEstimation"),null!=t&&(ws=!t),this.b&&this.b.T(this.c)}},nr.prototype.configure=nr.prototype.U,nr.prototype.Z=function(){return this.c},nr.prototype.getConfiguration=nr.prototype.Z,nr.prototype.B=function(e,i,n){this.j=null;var r=(Date.now()-i)/1e3*n;this.a.currentTime=i||this.a.currentTime>=i;this.h?(i=this.b.$a(),(e||t>i)&&(ur(this),this.a.play())):!this.a.paused&&!e&&.5>t&&(this.h=!0,this.a.pause(),this.g.bufferingHistory.push(U()/1e3),s("buffering"),this.dispatchEvent($({type:"bufferingStart"})))}};var Es={2:"A network failure occured while loading media content.",3:"The browser failed to decode the media content.",4:"The browser does not support the media content."};dr.prototype.destroy=function(){this.a.destroy(),this.a=null},dr.prototype.update=function(t){var e=pr(t),i=pr(this.a);return Promise.all([e,i]).then(St(this,function(e){var i=e[0];e=e[1];var n=this.a.a;return lr(n),cr(n),t.f=this.a.f,t.g=this.a.g?this.a.g.clone():null,t.c=this.a.c,n=[],br(t,this.a,i,e,n),i=t.a,lr(i),cr(i),Promise.resolve(n)}))},e("shaka.media.SimpleAbrManager",mr),mr.prototype.destroy=function(){this.f.destroy(),this.a=this.b=this.f=null},mr.prototype.initialize=function(t,e){this.b||this.a||(this.b=t,this.a=e)},mr.prototype.start=function(){this.b&&this.a&&!this.g&&(this.c=Date.now()+4e3,dt(this.f,this.b,"bandwidth",this.v.bind(this)),dt(this.f,this.a,"adaptation",this.j.bind(this)),dt(this.f,this.a,"trackschanged",this.h.bind(this)),this.g=!0)},mr.prototype.enable=function(t){this.i=t},mr.prototype.getInitialVideoTrackId=function(){if(!this.b||!this.a)return null;var t=wr(this);return t?t.id:null},mr.prototype.selectVideoTrack=function(t,e,i){this.g&&this.a.selectVideoTrack(t.id,e,i)},mr.prototype.v=function(){Date.now()=this.D-.01&&t<=this.D+.01)return void(this.D=null);this.D=null}var e=Or(this,Br(this));if(e){var i=e.end;if((e=Ur(this,t,e.start,i))||(t<=i+.01?e=!1:(this.f.currentTime=i,e=!0)),!e)for(var n in this.c)this.c[n].jb()}},Wr.Hb=function(){if(!this.a.b){for(var t in this.c)if(!this.c[t].Ga())return;this.Za()}},Wr.vb=function(){it(this.c).every(function(t){return t.Ga()})&&(this.w=t.setTimeout(this.Za.bind(this),1e3*this.Ua))},Wr.ub=function(){null!=this.w&&(t.clearTimeout(this.w),this.w=null)},Wr.Sb=function(){var t=this.U,e=this.Z.getBandwidth();t.estimatedBandwidth=e,t.bandwidthHistory.push(new Un(e))},Wr.Za=function(){this.w=null,this.g.endOfStream()},i(Fr,kr),e("shaka.player.DashVideoSource",Fr),Fr.prototype.Aa=function(t,e,i){this.R.push(t),this.ga.push(e||""),this.ta.push(i||"")},Fr.prototype.addExternalCaptions=Fr.prototype.Aa,Fr.prototype.xa=function(t){this.j=t},Fr.prototype.setNetworkCallback=Fr.prototype.xa,Fr.prototype.destroy=function(){this.l=this.j=this.M=null,kr.prototype.destroy.call(this)},Fr.prototype.X=function(){var t=new Pi(this.j,[new Ie(this.za)]);return Ci(new xi(t,this.da)).then(St(this,function(t){this.l=t;for(var e=0;er.indexOf(t.a.split("/")[0]))}),t=h.map(function(t){return t.H.create()}),Promise.all(t)})).then(St(this,function(t){for(var e=h,i=[],n=0;n1&&F.levels.unshift({label:"Auto",level_id:"auto"}),F.trigger(r.JWPLAYER_MEDIA_LEVELS,{levels:F.levels,currentQuality:F.currentQuality})}function I(){this.video.pause(),this.setState(n.PAUSED)}function A(){return this.seeking?(this.setState(n.LOADING),void this.once(r.JWPLAYER_MEDIA_SEEKED,this.play)):(this.setState(n.LOADING),this.video.play(),void this.setVisibility(!0))}function N(t){this.attached&&(t<0&&(t+=this.video.duration),this.trigger(r.JWPLAYER_MEDIA_SEEK,{position:this.getCurrentTime(),offset:t}),this.seeking=!0,this.video.currentTime=t)}function x(t){t=!!t,t?e.style(U,{visibility:"visible",opacity:1}):e.style(U,{visibility:"",opacity:0})}function C(){B.unload(),U===H.parentNode&&U.removeChild(H)}function j(){this.attached&&(b(),this.loadedItem=null,this.itemTracks=null,this.clearTracks(),B.destroy(),H.pause(),H.removeAttribute("src"),H.load(),this.setState(n.IDLE))}function M(t){U=t,U.appendChild(H)}function D(){return U}function R(t){if(t=parseInt(t,10),!(this.currentQuality===t||t<0||t>=this.levels.length)){this.currentQuality=t,this.trigger(r.JWPLAYER_MEDIA_LEVEL_CHANGED,{currentQuality:this.currentQuality,levels:this.levels});var e={enableAdaptation:!0};if(0===t)B.configure(e);else{var i=this.levels[t].level_id;e.enableAdaptation=!1,B.configure(e);var s;"audio"===this.levels[t].contentType?(s=L(B.getAudioTracks()),s&&s.id===i||(this.setState(n.LOADING),B.selectAudioTrack(i))):(s=L(B.getVideoTracks()),s&&s.id===i||(this.setState(n.LOADING),B.selectVideoTrack(i)))}H.play()}}function L(e){return t.find(e,function(t){return t.active})}var U,B,O,V={},H=o.getVideo.call(this,d),F=this,K=!0;this.adaptation=null,this.loadedItem=null,this.drmUsed=null,this.position=0,this.levels=[],this.currentQuality=-1,t.each(a,function(t,e){"function"==typeof t?V[e]=t.bind(F):F[e]=t}),t.extend(this,s,o,h,u,{eventsOn_:function(){B=T(H),p()},eventsOff_:function(){var t=H;B.destroy(),F.video=H=t,b()},init:k,load:E,pause:I,getQualityLevels:m.bind(this),getCurrentQuality:w.bind(this),play:A,seek:N,remove:C,setContainer:M,getContainer:D,setCurrentQuality:R.bind(this),setVisibility:x,stop:j,getCurrentTime:function(){return H.currentTime},getDuration:function(){return B.isLive()?1/0:H.duration},supportsFullscreen:t.constant(!0),getName:t.constant({name:"shaka"}),destroy:function(){b(),B.destroy()}})}return l.polyfill.installAll(),d.getName=t.constant({name:"shaka"}),d}.apply(e,n),!(void 0!==r&&(t.exports=r))},213:function(t,e,i){var n,r;n=[i(83)],r=function(t){var e=function(){this.estimator_=null,this.videoSource_=null,this.enabled_=!0,this.started_=!1,this.nextAdaptationTime_=Number.POSITIVE_INFINITY};return e.FIRST_SWITCH_INTERVAL_=4e3,e.MIN_SWITCH_INTERVAL_=8e3,e.MIN_EVAL_INTERVAL_=3e3,e.BANDWIDTH_UPGRADE_TARGET_=.85,e.BANDWIDTH_DOWNGRADE_TARGET_=.95,e.prototype.destroy=function(){this.estimator_.removeEventListener("bandwidth",this.onBandwidth_.bind(this),!1),this.videoSource_.removeEventListener("adaptation",this.onAdaptation_.bind(this),!1),this.videoSource_.removeEventListener("trackschanged",this.chooseNewTrack_.bind(this),!1),this.eventManager_=null,this.estimator_=null,this.videoSource_=null},e.prototype.initialize=function(t,e){this.estimator_||this.videoSource_||(this.estimator_=t,this.videoSource_=e)},e.prototype.start=function(){this.estimator_&&this.videoSource_&&!this.started_&&(this.nextAdaptationTime_=Date.now()+e.FIRST_SWITCH_INTERVAL_,this.estimator_.addEventListener("bandwidth",this.onBandwidth_.bind(this),!1),this.videoSource_.addEventListener("adaptation",this.onAdaptation_.bind(this),!1),this.videoSource_.addEventListener("trackschanged",this.chooseNewTrack_.bind(this),!1),this.started_=!0)},e.prototype.enable=function(t){this.enabled_=t},e.prototype.getInitialVideoTrackId=function(){if(!this.estimator_||!this.videoSource_)return null;var t=this.chooseVideoTrack_();return t?t.id:null},e.prototype.selectVideoTrack=function(t,e,i){this.started_&&this.videoSource_.selectVideoTrack(t.id,e,i)},e.findActiveTrack_=function(t){for(var e=0;e=c&&a<=f&&(o=u,o.active))break}}return o},e}.apply(e,n),!(void 0!==r&&(t.exports=r))}});