shaka-player 4.8.4 → 4.8.5

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.
@@ -53,8 +53,8 @@ ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ia(
53
53
  Copyright 2016 Google LLC
54
54
  SPDX-License-Identifier: Apache-2.0
55
55
  */
56
- function Oa(){}function Pa(){};function Qa(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Qa.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function Ra(a){return a.h/(1-Math.pow(a.g,a.i))};function Sa(){this.h=new Qa(2);this.j=new Qa(5);this.g=0;this.i=128E3;this.l=16E3}Sa.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};Sa.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};Sa.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Ra(this.h),Ra(this.j))};function Ta(){}function Ua(){}function Wa(){}function Xa(a){var b=Ha.apply(1,arguments);Ya.has(a)||(Ya.add(a),Wa.apply(Ta,y(b)))}function $a(){}function ab(){}function bb(){}var Ya=new Set;window.console&&(Wa=function(){return console.warn.apply(console,y(Ha.apply(0,arguments)))},Ua=function(){console.error.apply(console,y(Ha.apply(0,arguments)))});function cb(){this.g={}}r=cb.prototype;r.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};r.get=function(a){return(a=this.g[a])?a.slice():null};r.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};r.forEach=function(a){for(var b in this.g)a(b,this.g[b])};r.size=function(){return Object.keys(this.g).length};r.keys=function(){return Object.keys(this.g)};function db(){this.g=new cb}r=db.prototype;r.release=function(){this.ib();this.g=null};r.D=function(a,b,c,d){this.g&&(a=new fb(a,b,c,d),this.g.push(b,a))};r.na=function(a,b,c,d){function e(g){f.Kb(a,b,e);c(g)}var f=this;this.D(a,b,e,d)};r.Kb=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=u(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Kb(),this.g.remove(b,e))}};
57
- r.ib=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,y(a.g[c]));a=u(b);for(b=a.next();!b.done;b=a.next())b.value.Kb();this.g.g={}}};P("shaka.util.EventManager",db);db.prototype.removeAll=db.prototype.ib;db.prototype.unlisten=db.prototype.Kb;db.prototype.listenOnce=db.prototype.na;db.prototype.listen=db.prototype.D;db.prototype.release=db.prototype.release;function fb(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=gb(a,d);this.target.addEventListener(b,c,this.g)}
56
+ function Oa(){}function Pa(){};function Qa(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Qa.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function Ra(a){return a.h/(1-Math.pow(a.g,a.i))};function Sa(){this.h=new Qa(2);this.j=new Qa(5);this.g=0;this.i=128E3;this.l=16E3}Sa.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};Sa.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};Sa.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Ra(this.h),Ra(this.j))};function Ta(){}function Ua(){}function Wa(){}function Xa(a){var b=Ha.apply(1,arguments);Ya.has(a)||(Ya.add(a),Wa.apply(Ta,y(b)))}function $a(){}function ab(){}function bb(){}var Ya=new Set;window.console&&(Wa=function(){return console.warn.apply(console,y(Ha.apply(0,arguments)))},Ua=function(){console.error.apply(console,y(Ha.apply(0,arguments)))});function cb(){this.g={}}r=cb.prototype;r.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};r.get=function(a){return(a=this.g[a])?a.slice():null};r.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};r.forEach=function(a){for(var b in this.g)a(b,this.g[b])};r.size=function(){return Object.keys(this.g).length};r.keys=function(){return Object.keys(this.g)};function eb(){this.g=new cb}r=eb.prototype;r.release=function(){this.ib();this.g=null};r.D=function(a,b,c,d){this.g&&(a=new fb(a,b,c,d),this.g.push(b,a))};r.na=function(a,b,c,d){function e(g){f.Kb(a,b,e);c(g)}var f=this;this.D(a,b,e,d)};r.Kb=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=u(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Kb(),this.g.remove(b,e))}};
57
+ r.ib=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,y(a.g[c]));a=u(b);for(b=a.next();!b.done;b=a.next())b.value.Kb();this.g.g={}}};P("shaka.util.EventManager",eb);eb.prototype.removeAll=eb.prototype.ib;eb.prototype.unlisten=eb.prototype.Kb;eb.prototype.listenOnce=eb.prototype.na;eb.prototype.listen=eb.prototype.D;eb.prototype.release=eb.prototype.release;function fb(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=gb(a,d);this.target.addEventListener(b,c,this.g)}
58
58
  fb.prototype.Kb=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function gb(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return ib(a)?b:b.capture||!1}
59
59
  function ib(a){var b=jb;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}jb=b}return b||!1}var jb=void 0;function lb(a){if(mb.has(a))return mb.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);mb.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),mb.set(a,b),b):!1}function nb(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var mb=new Map;function ob(a,b){this.g=a;this.h=b}ob.prototype.toString=function(){return"v"+this.g+"."+this.h};function pb(a,b){var c=new ob(5,0),d=qb,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function rb(a,b,c,d){Wa([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function sb(a,b,c,d){Ua([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var qb=null;function tb(){}tb.prototype.extract=function(){};tb.prototype.decode=function(){return[]};tb.prototype.clear=function(){};tb.prototype.getStreams=function(){return[]};function vb(){}vb.prototype.init=function(){};vb.prototype.parse=function(){return[]};function wb(){}function xb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(zb(a)==zb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Ab(a);b=Ab(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function zb(a){return a instanceof ArrayBuffer?a:a.buffer}function Bb(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
60
60
  function Ab(a,b,c){c=void 0===c?Infinity:c;return Cb(a,void 0===b?0:b,c,Uint8Array)}function Db(a,b,c){c=void 0===c?Infinity:c;return Cb(a,void 0===b?0:b,c,Uint16Array)}function Eb(a,b,c){c=void 0===c?Infinity:c;return Cb(a,void 0===b?0:b,c,DataView)}function Cb(a,b,c,d){var e=zb(a),f=1;"BYTES_PER_ELEMENT"in d&&(f=d.BYTES_PER_ELEMENT);var g=((a.byteOffset||0)+a.byteLength)/f;a=Math.floor(Math.max(0,Math.min(((a.byteOffset||0)+b)/f,g)));return new d(e,a,Math.floor(Math.min(a+Math.max(c,0),g))-a)}
@@ -92,7 +92,7 @@ HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORT
92
92
  MSS_LIVE_CONTENT_NOT_SUPPORTED:4047,AES_128_INVALID_IV_LENGTH:4048,AES_128_INVALID_KEY_LENGTH:4049,DASH_CONFLICTING_AES_128:4050,DASH_UNSUPPORTED_AES_128:4051,STREAMING_ENGINE_STARTUP_INVALID_STATE: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,
93
93
  NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,MIN_HDCP_VERSION_NOT_MATCH:6018,ERROR_CHECKING_HDCP_VERSION:6019,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,SRC_EQUALS_PRELOAD_NOT_SUPPORTED:7005,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,
94
94
  CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,
95
- CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005};function Jc(a){this.h=a;this.g=void 0}Jc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Lc(a){this.h=a;this.g=null}Lc.prototype.X=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Lc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Mc(a){this.h=a;this.g=null}Mc.prototype.kc=function(){this.stop();this.h();return this};Mc.prototype.X=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.h()})).X(a);return this};Mc.prototype.Sa=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.g.X(a);b.h()})).X(a);return this};Mc.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};P("shaka.util.Timer",Mc);Mc.prototype.stop=Mc.prototype.stop;Mc.prototype.tickEvery=Mc.prototype.Sa;
95
+ CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005};function Jc(a){this.h=a;this.g=void 0}Jc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Kc(a){this.h=a;this.g=null}Kc.prototype.X=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Kc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Mc(a){this.h=a;this.g=null}Mc.prototype.kc=function(){this.stop();this.h();return this};Mc.prototype.X=function(a){var b=this;this.stop();this.g=(new Kc(function(){b.h()})).X(a);return this};Mc.prototype.Sa=function(a){var b=this;this.stop();this.g=(new Kc(function(){b.g.X(a);b.h()})).X(a);return this};Mc.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};P("shaka.util.Timer",Mc);Mc.prototype.stop=Mc.prototype.stop;Mc.prototype.tickEvery=Mc.prototype.Sa;
96
96
  Mc.prototype.tickAfter=Mc.prototype.X;Mc.prototype.tickNow=Mc.prototype.kc;function Nc(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function Oc(a){return""!=Pc().canPlayType(a)}function Qc(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Rc(){return Sc("Xbox One")}function Tc(){return Sc("Tizen")}function Uc(){return Sc("Tizen 3")}function Vc(){return Sc("Tizen 2")}function Wc(){return Sc("Web0S")}function Xc(){return Sc("CrKey")}
97
97
  function Yc(){if(!Sc("Chrome")||navigator.userAgent.match(/Edge\//))return null;var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null}function Zc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Tc()&&!Sc("PC=EOS")&&!Sc("PC=APL")&&!Sc("VirginMedia")&&!Sc("SOPOpenBrowser")&&!$c()&&!Sc("AFT")&&!Sc("WPE")}function ad(){return Sc("PlayStation 5")}function $c(){return Sc("PlayStation 4")}function bd(){return Sc("Hisense")||Sc("VIDAA")}
98
98
  function cd(){if(!Zc())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function Sc(a){return(navigator.userAgent||"").includes(a)}function Pc(){if(dd)return dd;ed||(ed=new Mc(function(){dd=null}));(dd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(dd=document.createElement("video"));ed.X(1);return dd}
@@ -141,20 +141,20 @@ function Ce(a,b,c){var d={};b=u(b);for(var e=b.next();!e.done;d={ue:d.ue},e=b.ne
141
141
  function Ee(a,b,c){function d(h,k,l){return h>=k&&h<=l}var e=a.video;if(e&&e.width&&e.height){var f=e.width,g=e.height;g>f&&(g=u([g,f]),f=g.next().value,g=g.next().value);if(!d(f,b.minWidth,Math.min(b.maxWidth,c.width))||!d(g,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))return!1}return a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
142
142
  function Fe(a,b,c){var d=!1;a=u(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=Ee(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function Ge(a,b,c){c=void 0===c?[]:c;return L(function(d){if(1==d.g)return C(d,He(a,b,0<b.offlineSessionIds.length,c),2);Ie(b);return C(d,Je(b),0)})}
143
143
  function He(a,b,c,d){var e,f;return L(function(g){if(1==g.g)return C(g,Ke(b.variants,c,!1,d),2);e=null;a&&(f=a.g)&&(e=f.keySystem);b.variants=b.variants.filter(function(h){var k=Le(h,e);if(!k){var l=[];h.audio&&l.push(Me(h.audio));h.video&&l.push(Me(h.video))}return k});F(g)})}
144
- function Le(a,b){var c=Rc(),d=Sc("Firefox")&&Sc("Android"),e=a.video,f=e&&e.width||0,g=e&&e.height||0;if(c&&e&&(1920<f||1080<g)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return!1;if(e){c=Ne(e.codecs);if(e.codecs.includes(",")){f=e.codecs.split(",");c=Fd("video",f);c=Ne(c);f=Fd("audio",f);f=Oe(f);g=Pd(e.mimeType,f,"audio");if(!lb(g))return!1;c=[c,f].join()}f=Pd(e.mimeType,c,"video");if(!lb(f))return!1;e.codecs=c}e=a.audio;if(d&&e&&e.encrypted&&e.codecs.toLowerCase().includes("opus"))return!1;
145
- if(e){d=Oe(e.codecs);c=Pd(e.mimeType,d,"audio");if(!lb(c))return!1;e.codecs=d}return a.decodingInfos.some(function(h){return!h.supported||b&&(h=h.keySystemAccess)&&h.keySystem!=b?!1:!0})}function Pe(a){var b=[];for(c in a)b.push(c);b.sort();var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=JSON.stringify(e);e=a[e];e instanceof Object?(e=Pe(e),c.push(d+":"+e)):(e=JSON.stringify(e),c.push(d+":"+e))}return"{"+c.join(",")+"}"}
144
+ function Le(a,b){var c=Rc(),d=Sc("Firefox")&&Sc("Android"),e=a.video,f=e&&e.width||0,g=e&&e.height||0;if(c&&e&&(1920<f||1080<g)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return!1;if(e){c=Ne(e.codecs);if(e.codecs.includes(",")){f=e.codecs.split(",");c=Fd("video",f);c=Ne(c);f=Fd("audio",f);f=Oe(f,e.mimeType);g=Pd(e.mimeType,f,"audio");if(!lb(g))return!1;c=[c,f].join()}f=Pd(e.mimeType,c,"video");if(!lb(f))return!1;e.codecs=c}e=a.audio;if(d&&e&&e.encrypted&&e.codecs.toLowerCase().includes("opus"))return!1;
145
+ if(e){d=Oe(e.codecs,e.mimeType);c=Pd(e.mimeType,d,"audio");if(!lb(c))return!1;e.codecs=d}return a.decodingInfos.some(function(h){return!h.supported||b&&(h=h.keySystemAccess)&&h.keySystem!=b?!1:!0})}function Pe(a){var b=[];for(c in a)b.push(c);b.sort();var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=JSON.stringify(e);e=a[e];e instanceof Object?(e=Pe(e),c.push(d+":"+e)):(e=JSON.stringify(e),c.push(d+":"+e))}return"{"+c.join(",")+"}"}
146
146
  function Qe(a,b){var c,d,e,f,g,h,k;return L(function(l){if(1==l.g){c=function(m,n){if(m){var q=ye(m);q.supported=m.supported&&n.supported;q.powerEfficient=m.powerEfficient&&n.powerEfficient;q.smooth=m.smooth&&n.smooth;n.keySystemAccess&&!q.keySystemAccess&&(q.keySystemAccess=n.keySystemAccess);return q}return n};d=null;e=[];f={};g=u(b);for(h=g.next();!h.done;f={Gc:f.Gc,Hc:f.Hc},h=g.next())k=h.value,f.Hc=Pe(k),f.Gc=Re,f.Gc[f.Hc]?d=c(d,f.Gc[f.Hc]):e.push(Se(k).then(function(m){return function(n){var q=
147
147
  null;n=u(n||[]);for(var p=n.next();!p.done;p=n.next())q=c(q,p.value);q&&(m.Gc[m.Hc]=q,d=c(d,q))}}(f)));return C(l,Promise.all(e),2)}d&&a.decodingInfos.push(d);F(l)})}
148
148
  function Se(a){var b=[""];a.video&&(b=Xd(a.video.contentType).split(","));var c=[""];a.audio&&(c=Xd(a.audio.contentType).split(","));var d=[];b=u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f={},g=u(c),h=g.next();!h.done;f={Mb:f.Mb},h=g.next())h=h.value,f.Mb=ye(a),a.video&&(f.Mb.video.contentType=Md(Wd(f.Mb.video.contentType),e)),a.audio&&(f.Mb.audio.contentType=Md(Wd(f.Mb.audio.contentType),h)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.Mb).then(function(n){l(n)}).catch(m)}}(f)))}return Promise.all(d).catch(function(){JSON.stringify(a);
149
149
  return null})}
150
150
  function Ke(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A;return L(function(D){switch(D.g){case 1:if(e=a.some(function(G){return G.decodingInfos.length}))return D.return();f={};g=u(d);h=g.next();case 2:if(h.done){D.u(4);break}f.pe=h.value;k=!1;l=u(a);m=l.next();case 5:if(m.done){D.u(7);break}n=m.value;q=Te(n,b,c).filter(function(G){return function(J){J=J[0];return(J.keySystemConfiguration&&J.keySystemConfiguration.keySystem)===G.pe}}(f));p=u(q);t=p.next();case 8:if(t.done){D.u(10);break}x=t.value;
151
151
  return C(D,Qe(n,x),9);case 9:t=p.next();D.u(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();D.u(5);break;case 7:if(k)return D.return();f={pe:f.pe};h=g.next();D.u(2);break;case 4:w=u(a),m=w.next();case 12:if(m.done){D.u(0);break}z=m.value;v=Te(z,b,c).filter(function(G){G=G[0];G=G.keySystemConfiguration&&G.keySystemConfiguration.keySystem;return!G||!d.includes(G)});B=u(v);t=B.next();case 15:if(t.done){m=w.next();D.u(12);break}A=t.value;return C(D,Qe(z,A),16);case 16:t=B.next(),D.u(15)}})}
152
- function Te(a,b,c){var d=a.audio,e=a.video,f=[],g=[];if(e)for(var h=u(e.fullMimeTypes),k=h.next();!k.done;k=h.next()){k=k.value;var l=Xd(k);if(l.includes(",")&&!d){var m=l.split(",");l=Fd("video",m);m=Fd("audio",m);m=Oe(m);m=Pd(Wd(k),m,"audio");g.push({contentType:m,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1})}l=Ne(l);k={contentType:Pd(Wd(k),l,"video"),width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":k.transferFunction=
153
- "srgb";break;case "PQ":k.transferFunction="pq";break;case "HLG":k.transferFunction="hlg"}f.push(k)}if(d)for(h=u(d.fullMimeTypes),k=h.next();!k.done;k=h.next())k=k.value,l=Oe(Xd(k)),k=Pd(Wd(k),l,"audio"),g.push({contentType:k,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});h=[];0==f.length&&f.push(null);0==g.length&&g.push(null);f=u(f);for(k=f.next();!k.done;k=f.next())for(k=k.value,l=u(g),m=l.next();!m.done;m=l.next()){m=
154
- m.value;var n={type:c?"file":"media-source"};k&&(n.video=k);m&&(n.audio=m);h.push(n)}g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[h];a=[];c=new Map;g=u(g);for(var q=g.next();!q.done;q=g.next())f=q.value,c.get(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f);g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];f=u(c.keys());for(k=f.next();!k.done;k=f.next()){k=k.value;l=[];m=u(h);for(n=m.next();!n.done;n=m.next()){n=Object.assign({},
155
- n.value);var p=c.get(k),t={keySystem:k,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};p=u(p);for(q=p.next();!q.done;q=p.next()){q=q.value;if(q.initData&&q.initData.length){for(var x=new Set,w=u(q.initData),z=w.next();!z.done;z=w.next())x.add(z.value.initDataType);t.initDataType=q.initData[0].initDataType}q.distinctiveIdentifierRequired&&(t.distinctiveIdentifier="required");q.persistentStateRequired&&(t.persistentState="required");q.sessionType&&(t.sessionTypes=
156
- [q.sessionType]);d&&(""!=q.audioRobustness?t.audio?t.audio.robustness=t.audio.robustness||q.audioRobustness:t.audio={robustness:q.audioRobustness}:t.audio||(t.audio={}));e&&(""!=q.videoRobustness?t.video?t.video.robustness=t.video.robustness||q.videoRobustness:t.video={robustness:q.videoRobustness}:t.video||(t.video={}))}n.keySystemConfiguration=t;l.push(n)}a.push(l)}return a}function Oe(a){return"flac"==a.toLowerCase()?cd()?"fLaC":"flac":"Opus"===a?"opus":a}
157
- function Ne(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}function Ie(a){a.textStreams=a.textStreams.filter(function(b){b=Md(b.mimeType,b.codecs);return de(b)})}
152
+ function Te(a,b,c){var d=a.audio,e=a.video,f=[],g=[];if(e)for(var h=u(e.fullMimeTypes),k=h.next();!k.done;k=h.next()){k=k.value;var l=Xd(k);if(l.includes(",")&&!d){var m=l.split(","),n=Wd(k);l=Fd("video",m);m=Fd("audio",m);m=Oe(m,n);n=Pd(n,m,"audio");g.push({contentType:n,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1})}l=Ne(l);k={contentType:Pd(Wd(k),l,"video"),width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":k.transferFunction=
153
+ "srgb";break;case "PQ":k.transferFunction="pq";break;case "HLG":k.transferFunction="hlg"}f.push(k)}if(d)for(h=u(d.fullMimeTypes),k=h.next();!k.done;k=h.next())l=k.value,k=Wd(l),l=Oe(Xd(l),k),k=Pd(k,l,"audio"),g.push({contentType:k,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});h=[];0==f.length&&f.push(null);0==g.length&&g.push(null);f=u(f);for(k=f.next();!k.done;k=f.next())for(k=k.value,l=u(g),n=l.next();!n.done;n=
154
+ l.next())n=n.value,m={type:c?"file":"media-source"},k&&(m.video=k),n&&(m.audio=n),h.push(m);g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[h];a=[];c=new Map;g=u(g);for(var q=g.next();!q.done;q=g.next())f=q.value,c.get(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f);g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];f=u(c.keys());for(k=f.next();!k.done;k=f.next()){k=k.value;l=[];n=u(h);for(m=n.next();!m.done;m=n.next()){m=Object.assign({},
155
+ m.value);var p=c.get(k),t={keySystem:k,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};p=u(p);for(q=p.next();!q.done;q=p.next()){q=q.value;if(q.initData&&q.initData.length){for(var x=new Set,w=u(q.initData),z=w.next();!z.done;z=w.next())x.add(z.value.initDataType);t.initDataType=q.initData[0].initDataType}q.distinctiveIdentifierRequired&&(t.distinctiveIdentifier="required");q.persistentStateRequired&&(t.persistentState="required");q.sessionType&&(t.sessionTypes=
156
+ [q.sessionType]);d&&(""!=q.audioRobustness?t.audio?t.audio.robustness=t.audio.robustness||q.audioRobustness:t.audio={robustness:q.audioRobustness}:t.audio||(t.audio={}));e&&(""!=q.videoRobustness?t.video?t.video.robustness=t.video.robustness||q.videoRobustness:t.video={robustness:q.videoRobustness}:t.video||(t.video={}))}m.keySystemConfiguration=t;l.push(m)}a.push(l)}return a}
157
+ function Oe(a,b){return"flac"==a.toLowerCase()?cd()?"fLaC":"flac":"opus"===a.toLowerCase()?cd()?"mp4"==Sd(b)?"Opus":"opus":"opus":a}function Ne(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}function Ie(a){a.textStreams=a.textStreams.filter(function(b){b=Md(b.mimeType,b.codecs);return de(b)})}
158
158
  function Je(a){var b,c,d,e,f,g,h,k;return L(function(l){switch(l.g){case 1:b=[],c=u(a.imageStreams),d=c.next();case 2:if(d.done){l.u(4);break}e=d.value;f=e.mimeType;"application/mp4"==f&&"mjpg"==e.codecs&&(f="image/jpg");if(Ue.has(f)){l.u(5);break}g=Ve.get(f);if(!g){Ue.set(f,!1);l.u(5);break}return C(l,We(g),7);case 7:h=l.h,Ue.set(f,h);case 5:(k=Ue.get(f))&&b.push(e);d=c.next();l.u(2);break;case 4:a.imageStreams=b,F(l)}})}
159
159
  function We(a){return new Promise(function(b){var c=new Image;c.src=a;"decode"in c?c.decode().then(function(){b(!0)}).catch(function(){b(!1)}):c.onload=c.onerror=function(){b(2===c.height)}})}
160
160
  function Xe(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=[];g&&h.push(g);f&&h.push(f);var k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set;if(b)for(var n=u(b.roles),q=n.next();!q.done;q=n.next())m.add(q.value);if(c)for(n=u(c.roles),q=n.next();!q.done;q=n.next())m.add(q.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
@@ -164,22 +164,22 @@ b.accessibilityPurpose,a.originalLanguage=b.originalLanguage);return a}
164
164
  function Ye(a){return{id:a.id,active:!1,type:Id,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,
165
165
  originalVideoId:null,originalAudioId:null,originalTextId:a.originalId,originalImageId:null,accessibilityPurpose:a.accessibilityPurpose,originalLanguage:a.originalLanguage}}
166
166
  function Ze(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,
167
- primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId,accessibilityPurpose:null,originalLanguage:null}}function df(a){a.__shaka_id||(a.__shaka_id=ef++);return a.__shaka_id}
168
- function ff(a){var b=gf(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="unknown");"subtitles"==a.kind&&(b.mimeType="text/vtt");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function hf(a){var b=gf(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
169
- function gf(a){var b=a.language;return{id:df(a),active:!1,type:"",bandwidth:0,language:qe(b||"und"),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,
167
+ primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId,accessibilityPurpose:null,originalLanguage:null}}function $e(a){a.__shaka_id||(a.__shaka_id=af++);return a.__shaka_id}
168
+ function bf(a){var b=gf(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="unknown");"subtitles"==a.kind&&(b.mimeType="text/vtt");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function hf(a){var b=gf(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
169
+ function gf(a){var b=a.language;return{id:$e(a),active:!1,type:"",bandwidth:0,language:qe(b||"und"),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,
170
170
  originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:b}}function jf(a){return a.allowedByApplication&&a.allowedByKeySystem&&0==a.disabledUntilTime}function kf(a){return a.filter(function(b){return jf(b)})}
171
- function lf(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=xe(qe(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return qe(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=qf(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(le,[]);return a.length?
172
- qf(e,a[0]):e}function qf(a,b){return a.filter(function(c){return c.roles.includes(b)})}function Me(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}P("shaka.util.StreamUtils",Ae);Ae.meetsRestrictions=Ee;
173
- var Re={},ef=0,Ue=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Ve=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function rf(){var a=this;this.s=null;this.o=!1;this.i=new Sa;this.F=new db;navigator.connection&&navigator.connection.addEventListener&&this.F.D(navigator.connection,"change",function(){if(a.o&&a.g.useNetworkInformation){a.i=new Sa;a.g&&a.i.configure(a.g.advanced);var b=a.chooseVariant();b&&navigator.onLine&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}});this.m=[];this.B=1;this.G=!1;this.h=this.l=this.g=this.A=null;this.C=new Mc(function(){if(a.g.restrictToElementSize){var b=a.chooseVariant();
174
- b&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}});this.j=null}r=rf.prototype;r.stop=function(){this.s=null;this.o=!1;this.m=[];this.B=1;this.l=this.A=null;this.h&&(this.h.disconnect(),this.h=null);this.C.stop();this.j=null};r.release=function(){this.F.release();this.C=null};r.init=function(a){this.s=a};
171
+ function lf(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=xe(qe(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return qe(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=mf(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(le,[]);return a.length?
172
+ mf(e,a[0]):e}function mf(a,b){return a.filter(function(c){return c.roles.includes(b)})}function Me(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}P("shaka.util.StreamUtils",Ae);Ae.meetsRestrictions=Ee;
173
+ var Re={},af=0,Ue=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Ve=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function nf(){var a=this;this.s=null;this.o=!1;this.i=new Sa;this.F=new eb;navigator.connection&&navigator.connection.addEventListener&&this.F.D(navigator.connection,"change",function(){if(a.o&&a.g.useNetworkInformation){a.i=new Sa;a.g&&a.i.configure(a.g.advanced);var b=a.chooseVariant();b&&navigator.onLine&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}});this.m=[];this.B=1;this.G=!1;this.h=this.l=this.g=this.A=null;this.C=new Mc(function(){if(a.g.restrictToElementSize){var b=a.chooseVariant();
174
+ b&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}});this.j=null}r=nf.prototype;r.stop=function(){this.s=null;this.o=!1;this.m=[];this.B=1;this.l=this.A=null;this.h&&(this.h.disconnect(),this.h=null);this.C.stop();this.j=null};r.release=function(){this.F.release();this.C=null};r.init=function(a){this.s=a};
175
175
  r.chooseVariant=function(a){a=void 0===a?!1:a;var b=Infinity,c=Infinity;this.g.restrictToScreenSize&&(c=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,b=window.screen.height*c,c*=window.screen.width);if(this.h&&this.g.restrictToElementSize){var d=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio;b=Math.min(b,this.l.clientHeight*d);c=Math.min(c,this.l.clientWidth*d)}var e=this.m.filter(function(l){return!(l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching)});e.length||(e=
176
- this.m);d=e;a&&e.length!=this.m.length&&(d=this.m.filter(function(l){return l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching?!0:!1}));a=sf(this,this.g.restrictions,d,Infinity,Infinity);if(Infinity!=b||Infinity!=c){a=tf(a);a=u(a);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.height>=b&&e.width>=c){b=e.height;c=e.width;break}a=sf(this,this.g.restrictions,d,b,c)}b=this.getBandwidthEstimate();d.length&&!a.length&&(a=sf(this,null,d,Infinity,Infinity),a=[a[0]]);c=a[0]||null;for(d=0;d<a.length;d++){e=
176
+ this.m);d=e;a&&e.length!=this.m.length&&(d=this.m.filter(function(l){return l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching?!0:!1}));a=of(this,this.g.restrictions,d,Infinity,Infinity);if(Infinity!=b||Infinity!=c){a=tf(a);a=u(a);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.height>=b&&e.width>=c){b=e.height;c=e.width;break}a=of(this,this.g.restrictions,d,b,c)}b=this.getBandwidthEstimate();d.length&&!a.length&&(a=of(this,null,d,Infinity,Infinity),a=[a[0]]);c=a[0]||null;for(d=0;d<a.length;d++){e=
177
177
  a[d];for(var f=isNaN(this.B)?1:Math.abs(this.B),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;b>=g&&b<=f&&c.bandwidth!=e.bandwidth&&(c=e)}this.A=Date.now();return c};r.enable=function(){this.o=!0};r.disable=function(){this.o=!1};r.segmentDownloaded=function(a,b,c){this.i.sample(a,b);c&&null!=this.A&&this.o&&uf(this)};
178
178
  r.trySuggestStreams=function(){null!=this.A&&this.o&&uf(this)};r.getBandwidthEstimate=function(){var a=this.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(a=1E6*navigator.connection.downlink);a=this.i.getBandwidthEstimate(a);return this.j?this.j.getBandwidthEstimate(a):a};r.setVariants=function(a){this.m=a};r.playbackRateChanged=function(a){this.B=a};
179
179
  r.setMediaElement=function(a){var b=this;this.l=a;this.h&&(this.h.disconnect(),this.h=null);this.l&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.C.X(vf)}),this.h.observe(this.l))};r.setCmsdManager=function(a){this.j=a};r.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};
180
- function uf(a){if(!a.G){var b=a.i;if(!(b.g>=b.i))return;a.G=!0}else if(Date.now()-a.A<1E3*a.g.switchInterval)return;b=a.chooseVariant();a.getBandwidthEstimate();b&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}function sf(a,b,c,d,e){if(a.j){var f=a.j.fg();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return Ee(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}
181
- function tf(a){var b=[];a=u(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}P("shaka.abr.SimpleAbrManager",rf);rf.prototype.configure=rf.prototype.configure;rf.prototype.setCmsdManager=rf.prototype.setCmsdManager;rf.prototype.setMediaElement=rf.prototype.setMediaElement;rf.prototype.playbackRateChanged=rf.prototype.playbackRateChanged;rf.prototype.setVariants=rf.prototype.setVariants;
182
- rf.prototype.getBandwidthEstimate=rf.prototype.getBandwidthEstimate;rf.prototype.trySuggestStreams=rf.prototype.trySuggestStreams;rf.prototype.segmentDownloaded=rf.prototype.segmentDownloaded;rf.prototype.disable=rf.prototype.disable;rf.prototype.enable=rf.prototype.enable;rf.prototype.chooseVariant=rf.prototype.chooseVariant;rf.prototype.init=rf.prototype.init;rf.prototype.release=rf.prototype.release;rf.prototype.stop=rf.prototype.stop;var vf=1;P("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});P("shaka.config.CodecSwitchingStrategy",{ij:"reload",Qg:"smooth"});function wf(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=u(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}wf.prototype.add=function(a,b,c){return xf(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
180
+ function uf(a){if(!a.G){var b=a.i;if(!(b.g>=b.i))return;a.G=!0}else if(Date.now()-a.A<1E3*a.g.switchInterval)return;b=a.chooseVariant();a.getBandwidthEstimate();b&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}function of(a,b,c,d,e){if(a.j){var f=a.j.fg();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return Ee(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}
181
+ function tf(a){var b=[];a=u(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}P("shaka.abr.SimpleAbrManager",nf);nf.prototype.configure=nf.prototype.configure;nf.prototype.setCmsdManager=nf.prototype.setCmsdManager;nf.prototype.setMediaElement=nf.prototype.setMediaElement;nf.prototype.playbackRateChanged=nf.prototype.playbackRateChanged;nf.prototype.setVariants=nf.prototype.setVariants;
182
+ nf.prototype.getBandwidthEstimate=nf.prototype.getBandwidthEstimate;nf.prototype.trySuggestStreams=nf.prototype.trySuggestStreams;nf.prototype.segmentDownloaded=nf.prototype.segmentDownloaded;nf.prototype.disable=nf.prototype.disable;nf.prototype.enable=nf.prototype.enable;nf.prototype.chooseVariant=nf.prototype.chooseVariant;nf.prototype.init=nf.prototype.init;nf.prototype.release=nf.prototype.release;nf.prototype.stop=nf.prototype.stop;var vf=1;P("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});P("shaka.config.CodecSwitchingStrategy",{ij:"reload",Qg:"smooth"});function wf(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=u(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}wf.prototype.add=function(a,b,c){return xf(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
183
183
  function xf(a,b,c,d){var e;if(!(e=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(e=a.audio&&b.audio)){e=a.audio;var f=b.audio;e=!!((!e.channelsCount||!f.channelsCount||2<e.channelsCount||2<f.channelsCount)&&e.channelsCount!=f.channelsCount||c&&!yf(e,f)||!zf(e.roles,f.roles)||d&&e.groupId!==f.groupId)}!(d=e)&&(d=a.video&&b.video)&&(a=a.video,b=b.video,d=!((!c||yf(a,b))&&zf(a.roles,b.roles)));return d?!1:!0}wf.prototype.values=function(){return this.g.values()};
184
184
  function yf(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return Vd(d)});b=b.codecs.split(",").map(function(d){return Vd(d)});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function zf(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=u(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Af(a,b,c){b=void 0===b?"reload":b;c=void 0===c?!1:c;this.i=a;this.h=b;this.g=c;this.j=new Bf(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"",!1,"","","",b,c)}Af.prototype.create=function(a){var b=this,c="smooth"==this.h&&nb(),d=a.filter(function(e){return xf(b.i,e,!c,b.g)});return d.length?new wf(d[0],d,!c,this.g):this.j.create(a)};
185
185
  function Bf(a,b,c,d,e,f,g,h,k,l){this.s=a;this.A=b;this.h=c;this.i=d;this.B=e;this.l=f;this.g=void 0===g?"":g;this.j=void 0===h?"":h;this.m=void 0===k?"reload":k;this.o=void 0===l?!1:l}
@@ -189,8 +189,8 @@ function Gf(a,b){return a.filter(function(c){return c.audio&&c.audio.channelsCou
189
189
  function Qf(a){var b,c;return L(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new Q(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.o);return C(d,new Promise(function(e){(new Mc(e)).X(c/1E3)}),2)}a.h*=a.m;F(d)})}function Pf(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Rf(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Rf.prototype.resolve=function(){};Rf.prototype.reject=function(){};function Sf(a,b){this.promise=a;this.i=b;this.g=!1}function Tf(a){return new Sf(Promise.reject(a),function(){return Promise.resolve()})}function Uf(){var a=Promise.reject(new Q(2,7,7001));a.catch(function(){});return new Sf(a,function(){return Promise.resolve()})}function Vf(a){return new Sf(Promise.resolve(a),function(){return Promise.resolve()})}function Wf(a){return new Sf(a,function(){return a.catch(function(){})})}Sf.prototype.abort=function(){this.g=!0;return this.i()};
190
190
  function Xf(a){return new Sf(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Sf.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
191
191
  Sf.prototype.va=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Yf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Rf,g=new Q(2,7,7001);this.promise.then(c(!0),c(!1));return new Sf(f,function(){return d()})};
192
- function Yf(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}P("shaka.util.AbortableOperation",Sf);Sf.prototype.chain=Sf.prototype.va;Sf.prototype["finally"]=Sf.prototype.finally;Sf.all=Xf;Sf.prototype.abort=Sf.prototype.abort;Sf.notAbortable=Wf;Sf.completed=Vf;Sf.aborted=Uf;Sf.failed=Tf;function S(a,b){if(b)if(b instanceof Map)for(var c=u(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});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.g=!1}
193
- function Zf(a){var b=new S(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}S.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};S.prototype.stopImmediatePropagation=function(){this.g=!0};S.prototype.stopPropagation=function(){};P("shaka.util.FakeEvent",S);
192
+ function Yf(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}P("shaka.util.AbortableOperation",Sf);Sf.prototype.chain=Sf.prototype.va;Sf.prototype["finally"]=Sf.prototype.finally;Sf.all=Xf;Sf.prototype.abort=Sf.prototype.abort;Sf.notAbortable=Wf;Sf.completed=Vf;Sf.aborted=Uf;Sf.failed=Tf;function T(a,b){if(b)if(b instanceof Map)for(var c=u(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});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.g=!1}
193
+ function Zf(a){var b=new T(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}T.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};T.prototype.stopImmediatePropagation=function(){this.g=!0};T.prototype.stopPropagation=function(){};P("shaka.util.FakeEvent",T);
194
194
  var $f={Ji:"abrstatuschanged",Ki:"adaptation",Li:"buffering",Mi:"complete",Ni:"downloadfailed",Oi:"downloadheadersreceived",Pi:"drmsessionupdate",Ri:"emsg",hj:"prft",Error:"error",Si:"expirationupdated",Ti:"firstquartile",Ui:"gapjumped",Xi:"keystatuschanged",Zi:"loaded",$i:"loading",bj:"manifestparsed",cj:"manifestupdated",dj:"mediaqualitychanged",Metadata:"metadata",ej:"midpoint",fj:"nospatialvideoinfo",gj:"onstatechange",jj:"ratechange",kj:"segmentappended",lj:"sessiondata",mj:"spatialvideoinfo",
195
195
  nj:"stalldetected",oj:"started",pj:"statechanged",qj:"streaming",rj:"textchanged",sj:"texttrackvisibility",tj:"thirdquartile",uj:"timelineregionadded",vj:"timelineregionenter",wj:"timelineregionexit",xj:"trackschanged",zj:"unloading",Bj:"variantchanged"};function ag(){this.ia=new cb;this.Vd=this}ag.prototype.addEventListener=function(a,b){this.ia&&this.ia.push(a,b)};ag.prototype.removeEventListener=function(a,b){this.ia&&this.ia.remove(a,b)};ag.prototype.dispatchEvent=function(a){if(!this.ia)return!0;var b=this.ia.get(a.type)||[],c=this.ia.get("All");c&&(b=b.concat(c));b=u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Vd;a.currentTarget=this.Vd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
196
196
  ag.prototype.release=function(){this.ia=null};function bg(){this.g=[]}function cg(a,b){a.g.push(b.finally(function(){Kb(a.g,b)}))}bg.prototype.destroy=function(){for(var a=[],b=u(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function dg(a,b,c,d,e,f){ag.call(this);this.i=!1;this.m=new bg;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.s=c||null;this.A=d||null;this.C=e||null;this.B=f||null;this.o=!1}na(dg,ag);r=dg.prototype;r.Ef=function(a){this.o=a};function eg(a,b,c,d){c=c||fg;var e=gg[a];if(!e||c>=e.priority)gg[a]={priority:c,he:b,ci:void 0===d?!1:d}}r.fi=function(a){this.g.add(a)};r.Ci=function(a){this.g.delete(a)};r.bh=function(){this.g.clear()};r.gi=function(a){this.h.add(a)};r.Di=function(a){this.h.delete(a)};
@@ -200,7 +200,7 @@ var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.va(functio
200
200
  function kg(a,b,c,d){function e(h){f=f.va(function(){c.body&&(c.body=Bb(c.body));return h(b,c,d)})}var f=Vf(void 0);a.A&&e(a.A);a=u(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.va(void 0,function(h){if(h instanceof Q&&7001==h.code)throw h;throw new Q(2,1,1006,h);})}
201
201
  function lg(a,b,c,d,e,f,g,h){a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.C&&a.C(b,d,c.uris[f],c.uris[f-1]);var k=new rc(c.uris[f]),l=k.kb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),sc(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=gg[l])?l.he:null;if(!n)return Tf(new Q(2,1,1E3,k));var q=l.ci,p=null,t=null,x=!1,w=!1,z;return Wf(Qf(e)).va(function(){if(a.i)return Uf();z=Date.now();var v=0;c.requestStartTime=Date.now();var B=n(c.uris[f],c,b,function(G,J,I){p&&p.stop();
202
202
  t&&t.X(D/1E3);a.l&&b==ng&&(v++,c.packetNumber=v,a.l(G,J,og(d),c),m=!0,h.g=I)},function(G){a.j&&a.j(G,c,b);w=!0;c.timeToFirstByte=Date.now()-c.requestStartTime});if(!q)return B;var A=c.retryParameters.connectionTimeout;A&&(p=new Mc(function(){x=!0;B.abort()}),p.X(A/1E3));var D=c.retryParameters.stallTimeout;D&&(t=new Mc(function(){x=!0;B.abort()}));return B}).va(function(v){p&&p.stop();t&&t.stop();void 0==v.timeMs&&(v.timeMs=Date.now()-z);var B={response:v,Jh:m};!w&&a.j&&a.j(v.headers,c,b);return B},
203
- function(v){p&&p.stop();t&&t.stop();if(a.s){var B=null,A=0;v instanceof Q&&(B=v,1001==v.code&&(A=v.data[1]));a.s(c,B,A,x)}if(a.i)return Uf();x&&(v=new Q(1,1,1003,c.uris[f],b));if(v instanceof Q){if(7001==v.code)throw v;if(1010==v.code)throw g;if(1==v.severity)return B=(new Map).set("error",v),B=new S("retry",B),a.dispatchEvent(B),f=(f+1)%c.uris.length,lg(a,b,c,d,e,f,v,h)}throw v;})}
203
+ function(v){p&&p.stop();t&&t.stop();if(a.s){var B=null,A=0;v instanceof Q&&(B=v,1001==v.code&&(A=v.data[1]));a.s(c,B,A,x)}if(a.i)return Uf();x&&(v=new Q(1,1,1003,c.uris[f],b));if(v instanceof Q){if(7001==v.code)throw v;if(1010==v.code)throw g;if(1==v.severity)return B=(new Map).set("error",v),B=new T("retry",B),a.dispatchEvent(B),f=(f+1)%c.uris.length,lg(a,b,c,d,e,f,v,h)}throw v;})}
204
204
  function mg(a,b,c,d){var e=Vf(void 0),f={};a=u(a.h);for(var g=a.next();!g.done;f={re:f.re},g=a.next())f.re=g.value,e=e.va(function(h){return function(){var k=c.response;k.data&&(k.data=Bb(k.data));return h.re(b,k,d)}}(f));return e.va(function(){return c},function(h){var k=2;if(h instanceof Q){if(7001==h.code)throw h;k=h.severity}throw new Q(k,1,1007,h);})}function og(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.md)return!1}return!0}P("shaka.net.NetworkingEngine",dg);
205
205
  dg.prototype.request=dg.prototype.request;dg.prototype.destroy=dg.prototype.destroy;dg.makeRequest=hg;dg.defaultRetryParameters=function(){return Pf()};dg.prototype.clearAllResponseFilters=dg.prototype.dh;dg.prototype.unregisterResponseFilter=dg.prototype.Di;dg.prototype.registerResponseFilter=dg.prototype.gi;dg.prototype.clearAllRequestFilters=dg.prototype.bh;dg.prototype.unregisterRequestFilter=dg.prototype.Ci;dg.prototype.registerRequestFilter=dg.prototype.fi;dg.unregisterScheme=function(a){delete gg[a]};
206
206
  dg.registerScheme=eg;dg.prototype.setForceHTTPS=dg.prototype.Ef;function ig(){this.g=0}dg.NumBytesRemainingClass=ig;function jg(a,b,c){Sf.call(this,a,b);this.h=c}na(jg,Sf);dg.PendingRequest=jg;var ng=1;dg.RequestType={MANIFEST:0,SEGMENT:ng,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};dg.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var fg=3;dg.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:fg};var gg={};function pg(a){this.g=!1;this.h=new Rf;this.i=a}pg.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function qg(a,b){if(a.g){if(b instanceof Q&&7003==b.code)throw b;throw new Q(2,7,7003,b);}};function rg(a,b){var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function sg(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0};function ug(a){for(var b=new Map,c=u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function vg(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function wg(a,b){this.h=Eb(a);this.i=b==xg;this.g=0}r=wg.prototype;r.ka=function(){return this.g<this.h.byteLength};r.wa=function(){return this.g};r.getLength=function(){return this.h.byteLength};r.P=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw yg();}};r.ra=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw yg();}};r.M=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw yg();}};
@@ -227,7 +227,7 @@ function Xg(a){if(!Array.from(a.children).every(function(b){return"string"===typ
227
227
  function bh(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.attributes[b];null!=a&&(e=c(a));return null==e?d:e}function ch(a,b,c){b=Rg(b);return a.attributes[b+":"+c]||null}function ah(a,b,c){b=Rg(b);var d=[];if(a.children){a=u(a.children);for(var e=a.next();!e.done;e=a.next())(e=e.value)&&e.tagName===b+":"+c&&d.push(e)}return d}function dh(a,b,c){b=u(b);for(var d=b.next();!d.done;d=b.next())if(d=ch(a,d.value,c))return d;return null}
228
228
  function eh(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}function fh(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}
229
229
  function gh(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function hh(a){a=Number(a);return 0===a%1?a:null}function ih(a){a=Number(a);return 0===a%1&&0<a?a:null}function jh(a){a=Number(a);return 0===a%1&&0<=a?a:null}function kh(a){a=Number(a);return isNaN(a)?null:a}function lh(a){return a?"true"===a.toLowerCase():!1}
230
- function mh(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}function nh(a,b,c){b=void 0===b?!0:b;c=void 0===c?!0:c;var d=document.createElement(a.tagName),e;for(e in a.attributes)d.setAttribute(e,a.attributes[e]);b&&a.parent&&"?xml"!=a.parent.tagName&&nh(a.parent,!0,!1).appendChild(d);if(c)for(a=u(a.children),b=a.next();!b.done;b=a.next())b=b.value,c=void 0,"string"==typeof b?c=new Text(b):c=nh(b,!1,!0),d.appendChild(c);return d}var Sg=new Map([]);function oh(a){var b=this;this.C=a;this.H=new Set;this.m=this.s=null;this.ia=this.da=!1;this.I=0;this.g=null;this.B=new db;this.i=new Map;this.A=new Map;this.l=new Rf;this.h=null;this.o=function(c){2==c.severity&&b.l.reject(c);a.onError(c)};this.aa=new Map;this.ea=new Map;this.L=new Mc(function(){return ph(b)});this.T=!1;this.N=[];this.Y=!1;this.K=new Mc(function(){qh(b)});this.l.catch(function(){});this.j=new pg(function(){return rh(b)});this.ba=!1;this.F=this.G=null}r=oh.prototype;r.destroy=function(){return this.j.destroy()};
230
+ function mh(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}function nh(a,b,c){b=void 0===b?!0:b;c=void 0===c?!0:c;var d=document.createElement(a.tagName),e;for(e in a.attributes)d.setAttribute(e,a.attributes[e]);b&&a.parent&&"?xml"!=a.parent.tagName&&nh(a.parent,!0,!1).appendChild(d);if(c)for(a=u(a.children),b=a.next();!b.done;b=a.next())b=b.value,c=void 0,"string"==typeof b?c=new Text(b):c=nh(b,!1,!0),d.appendChild(c);return d}var Sg=new Map([]);function oh(a){var b=this;this.C=a;this.H=new Set;this.m=this.s=null;this.ia=this.da=!1;this.I=0;this.g=null;this.B=new eb;this.i=new Map;this.A=new Map;this.l=new Rf;this.h=null;this.o=function(c){2==c.severity&&b.l.reject(c);a.onError(c)};this.aa=new Map;this.ea=new Map;this.L=new Mc(function(){return ph(b)});this.T=!1;this.N=[];this.Y=!1;this.K=new Mc(function(){qh(b)});this.l.catch(function(){});this.j=new pg(function(){return rh(b)});this.ba=!1;this.F=this.G=null}r=oh.prototype;r.destroy=function(){return this.j.destroy()};
231
231
  function rh(a){return L(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.l.reject(),a.K.stop(),a.K=null,a.L.stop(),a.L=null,C(b,sh(a),2);case 2:if(!a.m){b.u(3);break}ra(b,4);return C(b,a.m.setMediaKeys(null),6);case 6:ta(b,5);break;case 4:va(b);case 5:a.m=null;case 3:a.g=null,a.H.clear(),a.s=null,a.A=new Map,a.h=null,a.o=function(){},a.C=null,a.ba=!1,a.G=null,F(b)}})}r.configure=function(a){this.h=a;this.K&&this.K.Sa(this.h.updateExpirationTime)};
232
232
  function th(a,b,c){a.ia=!0;a.A=new Map;a.T=c;return uh(a,b)}function vh(a,b,c){a.A=new Map;c=u(c);for(var d=c.next();!d.done;d=c.next())a.A.set(d.value,{initData:null,initDataType:null});c=u(a.h.persistentSessionsMetadata);for(d=c.next();!d.done;d=c.next())d=d.value,a.A.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.T=0<a.A.size;return uh(a,b)}
233
233
  function wh(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return xh(a,g,[])}
@@ -257,7 +257,7 @@ function Mh(a,b,c,d){try{var e=a.s.createSession(d)}catch(f){a.o(new Q(2,6,6005,
257
257
  var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.o(new Q(2,6,6006,f.message,f,h))}})}
258
258
  function Fh(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,t;L(function(x){switch(x.g){case 1:c=b.target;a.h.logLicenseExchange&&td(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=hg([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(Nh(a.g.keySystem)){var w=
259
259
  id(g.body,!0,!0);if(w.includes("PlayReadyKeyMessage")){w=Pg(w,"PlayReadyKeyMessage");var z=Yg(w,"HttpHeader");z=u(z);for(var v=z.next();!v.done;v=z.next()){var B=v.value;v=Yg(B,"name")[0];B=Yg(B,"value")[0];g.headers[Wg(v)]=Wg(B)}w=Yg(w,"Challenge")[0];g.body=ud(Wg(w))}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ra(x,2);l=a.C.zb.request(2,g);return C(x,l.promise,4);case 4:k=x.h;ta(x,3);break;case 2:m=va(x);if(a.j.g)return x.return();n=new Q(2,6,6007,m);1==a.i.size?(a.o(n),
260
- d&&d.ab&&d.ab.reject(n)):(d&&d.ab&&d.ab.reject(n),a.i.delete(c),Lh(a)&&(a.l.resolve(),a.L.X(.1)));return x.return();case 3:if(a.j.g)return x.return();a.I+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&td(k.data);ra(x,5);return C(x,c.update(k.data),7);case 7:ta(x,6);break;case 5:return q=va(x),p=new Q(2,6,6008,q.message),a.o(p),d&&d.ab&&d.ab.reject(p),x.return();case 6:if(a.j.g)return x.return();t=new S("drmsessionupdate");a.C.onEvent(t);d&&(d.ab&&d.ab.resolve(),Th(a,d));F(x)}})}
260
+ d&&d.ab&&d.ab.reject(n)):(d&&d.ab&&d.ab.reject(n),a.i.delete(c),Lh(a)&&(a.l.resolve(),a.L.X(.1)));return x.return();case 3:if(a.j.g)return x.return();a.I+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&td(k.data);ra(x,5);return C(x,c.update(k.data),7);case 7:ta(x,6);break;case 5:return q=va(x),p=new Q(2,6,6008,q.message),a.o(p),d&&d.ab&&d.ab.reject(p),x.return();case 6:if(a.j.g)return x.return();t=new T("drmsessionupdate");a.C.onEvent(t);d&&(d.ab&&d.ab.resolve(),Th(a,d));F(x)}})}
261
261
  function Vh(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Nh(a.g.keySystem)&&16==g.byteLength&&(Qc()||$c())){h=Eb(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=wd(g).slice(0,32);a.aa.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.ab&&(a.i.delete(b),b.close().catch(function(){}));
262
262
  Lh(a)&&(a.l.resolve(),a.L.X(Wh))}function ph(a){var b=a.aa,c=a.ea;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.o(new Q(2,6,6014));a.C.fe(vg(c))}
263
263
  function Xh(){var a,b,c,d,e,f,g,h;return L(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,q;return L(function(p){switch(p.g){case 1:ra(p,
@@ -285,7 +285,7 @@ missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new Q(2,4,4012,a)
285
285
  function(l){g.push({box:l,Ya:1701733238})}).O("avc1",function(l){g.push({box:l,Ya:1701733238})}).O("avc3",function(l){g.push({box:l,Ya:1701733238})}).O("ac-3",function(l){g.push({box:l,Ya:1701733217})}).O("ec-3",function(l){g.push({box:l,Ya:1701733217})}).O("ac-4",function(l){g.push({box:l,Ya:1701733217})}).O("mp4a",function(l){g.push({box:l,Ya:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw bb(wd(a)),new Q(2,3,3019);g.reverse();for(var h=u(g),k=h.next();!k.done;k=h.next())k=k.value,
286
286
  a=ni(a,e,k.box,f,k.Ya);return a}
287
287
  function ni(a,b,c,d,e){var f=oi.value(),g=a.subarray(c.start,c.start+c.size),h=Eb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Eb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);pi(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Rc()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=u(d);for(d=a.next();!d.done;d=a.next())d=d.value,pi(e,d.start,d.size+k.byteLength);k=Eb(e,b.start);b=Fg(b);a=k.getUint32(b);
288
- k.setUint32(b,a+1);return e}function pi(a,b,c){a=Eb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var oi=new Jc(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function qi(a,b,c,d,e,f,g){this.$=a;this.Aa=b;this.ja=c;this.gf=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.mimeType=this.codecs=null}qi.prototype.ac=function(){return this.Aa};qi.prototype.Yb=function(){return this.ja};qi.prototype.ed=function(){return this.g};function ui(a,b){return a===b?!0:a&&b?a.ac()==b.ac()&&a.Yb()==b.Yb()&&Mb(a.$().sort(),b.$().sort())&&xb(a.ed(),b.ed()):a==b}P("shaka.media.InitSegmentReference",qi);
288
+ k.setUint32(b,a+1);return e}function pi(a,b,c){a=Eb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var oi=new Jc(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function qi(a,b,c,d,e,f,g){this.$=a;this.Aa=b;this.ja=c;this.gf=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.mimeType=this.codecs=null}qi.prototype.ac=function(){return this.Aa};qi.prototype.Yb=function(){return this.ja};qi.prototype.ed=function(){return this.g};function ri(a,b){return a===b?!0:a&&b?a.ac()==b.ac()&&a.Yb()==b.Yb()&&Mb(a.$().sort(),b.$().sort())&&xb(a.ed(),b.ed()):a==b}P("shaka.media.InitSegmentReference",qi);
289
289
  qi.prototype.getEndByte=qi.prototype.Yb;qi.prototype.getStartByte=qi.prototype.ac;
290
290
  function vi(a,b,c,d,e,f,g,h,k,l,m,n,q,p,t,x){l=void 0===l?[]:l;p=void 0===p?wi:p;this.startTime=a;this.i=this.endTime=b;this.C=c;this.Aa=d;this.ja=e;this.ca=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.A=void 0===n?null:n;this.h=void 0===q?null:q;this.status=p;this.preload=!1;this.l=!0;this.m=!1;this.aesKey=void 0===t?null:t;this.s=null;this.j=0;this.o=void 0===x?!1:x;this.Wd=this.md=!1;a=u(this.g);for(b=a.next();!b.done;b=
291
291
  a.next())b.value.pg();this.o&&this.g.length&&this.g[this.g.length-1].og();this.B=this.mimeType=this.codecs=null}r=vi.prototype;r.$=function(){return this.C()};r.getStartTime=function(){return this.startTime};r.nh=function(){return this.endTime};r.ac=function(){return this.Aa};r.Yb=function(){return this.ja};r.Eh=function(){return this.tilesLayout};r.Dh=function(){return this.A};r.bc=function(){return this.status};r.Wh=function(){this.status=xi};r.ff=function(){this.preload=!0};r.Qh=function(){return this.preload};
@@ -323,8 +323,8 @@ function Pi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.M();1=
323
323
  limitations under the License.
324
324
  */
325
325
  function Ti(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=Ab(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function Ui(a){var b=a.j.byteLength-a.i,c=new Uint8Array(4),d=Math.min(4,a.i);0!==d&&(c.set(a.j.subarray(b,b+d)),a.h=(new wg(c,0)).M(),a.g=8*d,a.i-=d)}function Vi(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;Ui(a)}a.h<<=b;a.g-=b}
326
- function Wi(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&Ui(a);c=b-c;return 0<c?d<<c|Wi(a,c):d}function Xi(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;Ui(a);return b+Xi(a)}function Yi(a){Vi(a,1+Xi(a))}function T(a){var b=Xi(a);return Wi(a,b+1)-1}function Zi(a){a=T(a);return 1&a?1+a>>>1:-1*(a>>>1)}function W(a){return 1===Wi(a,1)}function $i(a){return Wi(a,8)}
327
- function aj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=Zi(a),d=(c+d+256)%256),c=0===d?c:d}function hj(a){$i(a);T(a);return T(a)}P("shaka.util.ExpGolomb",Ti);function ij(){this.G=null;this.H=!1;this.m=this.I=null;this.j=[];this.g=[];this.A=this.B=null;this.i=[];this.h=[];this.C=null;this.l=[];this.F=this.o=this.s=null}r=ij.prototype;r.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
326
+ function Wi(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&Ui(a);c=b-c;return 0<c?d<<c|Wi(a,c):d}function Xi(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;Ui(a);return b+Xi(a)}function Yi(a){Vi(a,1+Xi(a))}function U(a){var b=Xi(a);return Wi(a,b+1)-1}function Zi(a){a=U(a);return 1&a?1+a>>>1:-1*(a>>>1)}function W(a){return 1===Wi(a,1)}function $i(a){return Wi(a,8)}
327
+ function aj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=Zi(a),d=(c+d+256)%256),c=0===d?c:d}function bj(a){$i(a);U(a);return U(a)}P("shaka.util.ExpGolomb",Ti);function ij(){this.G=null;this.H=!1;this.m=this.I=null;this.j=[];this.g=[];this.A=this.B=null;this.i=[];this.h=[];this.C=null;this.l=[];this.F=this.o=this.s=null}r=ij.prototype;r.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
328
328
  r.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,jj(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.G=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.G:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Sd:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
329
329
  k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0<m)for(var n=h+5,q=m;2<q;){var p=f[n+1]+2;switch(f[n]){case 5:var t=jd(f.subarray(n+2,n+p));-1==g.audio&&"Opus"===t?(g.audio=l,g.audioCodec="opus"):-1==g.video&&"AV01"===t&&(g.video=l,g.videoCodec="av1");break;case 106:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 122:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");break;case 124:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 127:"opus"==g.audioCodec&&(t=
330
330
  null,128===f[n+2]&&(t=f[n+3]),null!=t&&(this.F={channelCount:0===(t&15)?2:t&15,ah:t,sampleRate:48E3}))}n+=p;q-=p}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Sd&&(g.Sd=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");
@@ -338,17 +338,17 @@ r.Fb=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=u(this.i),c=b.n
338
338
  r.xc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=u(this.j),d=c.next();!d.done;d=c.next()){var e=zd.apply(rd,y(d.value)),f=kj(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=zd(d.data,e),this.g.push(d))}if(a){var g;c=u(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.qf(d,
339
339
  g,void 0),d.nalus.length&&(g=d.nalus[d.nalus.length-1]);this.g=this.g.filter(function(h){return h.nalus.length})}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};r.getStartTime=function(a){if("audio"==a){a=null;var b=this.Fb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.xc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};
340
340
  r.bd=function(){return{audio:this.A,video:this.m}};r.Od=function(){for(var a=[],b=u(this.xc()),c=b.next();!c.done;c=b.next())a.push.apply(a,y(c.value.nalus));return a};r.Hh=function(){pb("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.Xe();return{height:a.height,width:a.width}};r.Xe=function(){return"hvc"==this.m?mj(this):nj(this)};
341
- function nj(a){var b={height:null,width:null,Ea:null};a=a.Od();if(!a.length)return b;a=a.find(function(q){return 7==q.type});if(!a)return b;a=new Ti(a.data);var c=$i(a),d=$i(a),e=$i(a);Yi(a);if(oj.includes(c)){var f=T(a);3===f&&Vi(a,1);Yi(a);Yi(a);Vi(a,1);if(W(a)){f=3!==f?8:12;for(var g=0;g<f;g++)W(a)&&(6>g?aj(a,16):aj(a,64))}}Yi(a);f=T(a);if(0===f)T(a);else if(1===f)for(Vi(a,1),Yi(a),Yi(a),f=T(a),g=0;g<f;g++)Yi(a);Yi(a);Vi(a,1);f=T(a);g=T(a);var h=Wi(a,1);0===h&&Vi(a,1);Vi(a,1);var k=0,l=0,m=0,n=
342
- 0;W(a)&&(k=T(a),l=T(a),m=T(a),n=T(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.Ea="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
343
- function mj(a){var b={height:null,width:null,Ea:null};a=a.Od();if(!a.length)return b;a=a.find(function(A){return 33==A.type});if(!a)return b;var c=new Ti(a.fullData,!0);$i(c);$i(c);Wi(c,4);var d=Wi(c,3);W(c);var e=Wi(c,2),f=Wi(c,1),g=Wi(c,5),h=Wi(c,32);a=$i(c);for(var k=$i(c),l=$i(c),m=$i(c),n=$i(c),q=$i(c),p=$i(c),t=[],x=[],w=0;w<d;w++)t.push(W(c)),x.push(W(c));if(0<d)for(w=d;8>w;w++)Wi(c,2);for(w=0;w<d;w++)t[w]&&Wi(c,88),x[w]&&$i(c);T(c);d=T(c);3==d&&Wi(c,1);t=T(c);x=T(c);var z=w=0,v=0,B=0;W(c)&&
344
- (w+=T(c),z+=T(c),v+=T(c),B+=T(c));b.width=String(t-(w+z)*(1===d||2===d?2:1));b.height=String(x-(v+B)*(1===d?2:1));c=function(A){for(var D=0,G=0;32>G;G++)D|=(A>>G&1)<<31-G;return D>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+p;q&&(e+="."+q.toString(16).toUpperCase());n&&(e+="."+n.toString(16).toUpperCase());m&&(e+="."+m.toString(16).toUpperCase());l&&(e+="."+l.toString(16).toUpperCase());k&&(e+="."+k.toString(16).toUpperCase());a&&(e+="."+
341
+ function nj(a){var b={height:null,width:null,Ea:null};a=a.Od();if(!a.length)return b;a=a.find(function(q){return 7==q.type});if(!a)return b;a=new Ti(a.data);var c=$i(a),d=$i(a),e=$i(a);Yi(a);if(oj.includes(c)){var f=U(a);3===f&&Vi(a,1);Yi(a);Yi(a);Vi(a,1);if(W(a)){f=3!==f?8:12;for(var g=0;g<f;g++)W(a)&&(6>g?aj(a,16):aj(a,64))}}Yi(a);f=U(a);if(0===f)U(a);else if(1===f)for(Vi(a,1),Yi(a),Yi(a),f=U(a),g=0;g<f;g++)Yi(a);Yi(a);Vi(a,1);f=U(a);g=U(a);var h=Wi(a,1);0===h&&Vi(a,1);Vi(a,1);var k=0,l=0,m=0,n=
342
+ 0;W(a)&&(k=U(a),l=U(a),m=U(a),n=U(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.Ea="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
343
+ function mj(a){var b={height:null,width:null,Ea:null};a=a.Od();if(!a.length)return b;a=a.find(function(A){return 33==A.type});if(!a)return b;var c=new Ti(a.fullData,!0);$i(c);$i(c);Wi(c,4);var d=Wi(c,3);W(c);var e=Wi(c,2),f=Wi(c,1),g=Wi(c,5),h=Wi(c,32);a=$i(c);for(var k=$i(c),l=$i(c),m=$i(c),n=$i(c),q=$i(c),p=$i(c),t=[],x=[],w=0;w<d;w++)t.push(W(c)),x.push(W(c));if(0<d)for(w=d;8>w;w++)Wi(c,2);for(w=0;w<d;w++)t[w]&&Wi(c,88),x[w]&&$i(c);U(c);d=U(c);3==d&&Wi(c,1);t=U(c);x=U(c);var z=w=0,v=0,B=0;W(c)&&
344
+ (w+=U(c),z+=U(c),v+=U(c),B+=U(c));b.width=String(t-(w+z)*(1===d||2===d?2:1));b.height=String(x-(v+B)*(1===d?2:1));c=function(A){for(var D=0,G=0;32>G;G++)D|=(A>>G&1)<<31-G;return D>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+p;q&&(e+="."+q.toString(16).toUpperCase());n&&(e+="."+n.toString(16).toUpperCase());m&&(e+="."+m.toString(16).toUpperCase());l&&(e+="."+l.toString(16).toUpperCase());k&&(e+="."+k.toString(16).toUpperCase());a&&(e+="."+
345
345
  a.toString(16).toUpperCase());b.Ea=e;return b}function lj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function pj(a){return 0>jj(a)?!1:!0}function jj(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}P("shaka.util.TsParser",ij);ij.syncOffset=jj;ij.probe=pj;ij.prototype.getVideoInfo=ij.prototype.Xe;ij.prototype.getVideoResolution=ij.prototype.Hh;ij.prototype.getVideoNalus=ij.prototype.Od;
346
346
  ij.prototype.getCodecs=ij.prototype.bd;ij.prototype.getStartTime=ij.prototype.getStartTime;ij.prototype.getVideoData=ij.prototype.xc;ij.prototype.getAudioData=ij.prototype.Fb;ij.prototype.getMetadata=ij.prototype.getMetadata;ij.prototype.parseNalus=ij.prototype.qf;ij.prototype.parseAvcNalus=ij.prototype.bi;ij.prototype.parse=ij.prototype.parse;ij.prototype.clearData=ij.prototype.clearData;ij.Timescale=9E4;var oj=[100,110,122,244,44,83,86,118,128,138,139,134];function qj(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Wa("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,pb("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Wa("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Wa("Could not find LCEVC Library on this page"),
347
347
  a=!1):(this.h.SupportObject.SupportStatus||Wa(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}a&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function rj(a){a.g&&a.i.classList.add("shaka-hidden")}
348
- qj.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function sj(a,b,c){var d=tj,e=uj;switch(b.mimeType){case "video/webm":d=vj;break;case "video/mp4":d=wj}switch(c){case "DASH":e=xj;break;case "HLS":e=yj}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}P("shaka.lcevc.Dec",qj);qj.prototype.release=qj.prototype.release;var tj=0,vj=1,wj=2,yj=0,xj=1,uj=-1;function zj(a,b,c,d){var e=this;this.i=a;this.A=null;this.F=b;this.h={};this.G={};this.qa={};this.g=null;this.ba=!1;this.ta=c||function(){};this.T=d||null;this.j={};this.o=new db;this.m={};this.H=null;this.L=new Rf;this.N="";this.da=!1;this.l=Aj(this,this.L);this.C=!1;this.I=new pg(function(){return Bj(e)});this.B=!1;this.aa="UNKNOWN";this.pa=this.sa=!1;this.ia=new Rf;this.s=!1;this.ea=!0;this.K=this.Y=null}
348
+ qj.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function sj(a,b,c){var d=tj,e=uj;switch(b.mimeType){case "video/webm":d=vj;break;case "video/mp4":d=wj}switch(c){case "DASH":e=xj;break;case "HLS":e=yj}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}P("shaka.lcevc.Dec",qj);qj.prototype.release=qj.prototype.release;var tj=0,vj=1,wj=2,yj=0,xj=1,uj=-1;function zj(a,b,c,d){var e=this;this.i=a;this.A=null;this.F=b;this.h={};this.G={};this.qa={};this.g=null;this.ba=!1;this.ta=c||function(){};this.T=d||null;this.j={};this.o=new eb;this.m={};this.H=null;this.L=new Rf;this.N="";this.da=!1;this.l=Aj(this,this.L);this.C=!1;this.I=new pg(function(){return Bj(e)});this.B=!1;this.aa="UNKNOWN";this.pa=this.sa=!1;this.ia=new Rf;this.s=!1;this.ea=!0;this.K=this.Y=null}
349
349
  function Aj(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.o.D(c,"startstreaming",function(){a.ea=!0});a.o.D(c,"endstreaming",function(){a.ea=!1});a.o.na(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.o.na(a.i,"playing",function(){a.da=!0});a.N=Cj(c);a.i.src=a.N;return c}c=new MediaSource;a.o.na(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.o.na(a.i,"playing",function(){a.da=!0});a.N=Cj(c);a.i.src=a.N;return c}
350
- function Dj(a,b){var c,d,e,f,g,h,k,l,m,n,q;return L(function(p){if(1==p.g)return a.createSegmentIndex?C(p,a.createSegmentIndex(),2):p.u(2);if(!a.segmentIndex)return p.return(!1);if(0==a.segmentIndex.getNumReferences())return p.return(!0);c=Kd;d=new Set;e=u(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",l=h+":"+k,!d.has(l))if(d.add(l),b==c.ma){if(m=Md(h,k),!de(m))return p.return(!1)}else if(b==c.fa?k=Ne(k):b==c.S&&(k=Oe(k)),n=Qd(a,
351
- h,k),q=Od(h,k),!lb(n)&&!lc(q))return p.return(!1);return p.return(!0)})}r=zj.prototype;r.destroy=function(){return this.I.destroy()};
350
+ function Dj(a,b){var c,d,e,f,g,h,k,l,m,n,q;return L(function(p){if(1==p.g)return a.createSegmentIndex?C(p,a.createSegmentIndex(),2):p.u(2);if(!a.segmentIndex)return p.return(!1);if(0==a.segmentIndex.getNumReferences())return p.return(!0);c=Kd;d=new Set;e=u(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",l=h+":"+k,!d.has(l))if(d.add(l),b==c.ma){if(m=Md(h,k),!de(m))return p.return(!1)}else if(b==c.fa?k=Ne(k):b==c.S&&(k=Oe(k,h)),n=
351
+ Qd(a,h,k),q=Od(h,k),!lb(n)&&!lc(q))return p.return(!1);return p.return(!0)})}r=zj.prototype;r.destroy=function(){return this.I.destroy()};
352
352
  function Bj(a){var b,c,d,e,f,g,h,k;return L(function(l){if(1==l.g){b=[];for(c in a.j)for(d=a.j[c],e=d[0],a.j[c]=d.slice(0,1),e&&b.push(e.p.catch(me)),f=u(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new Q(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.F&&b.push(a.F.destroy());for(k in a.m)b.push(a.m[k].destroy());return C(l,Promise.all(b),2)}a.o&&(a.o.release(),a.o=null);a.i&&(a.i.removeAttribute("src"),a.i.load(),a.i=null);a.A=null;a.l=null;a.g=null;a.F=null;a.h={};a.m={};a.H=null;
353
353
  a.j={};a.T=null;a.K=null;F(l)})}r.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return L(function(m){switch(m.g){case 1:return f=Kd,C(m,e.L,2);case 2:e.B=b,e.aa=c,e.sa=d,e.pa=!e.B&&"HLS"==e.aa&&!e.sa,e.K=null,g=u(a.keys()),h=g.next();case 3:if(h.done){m.u(0);break}k=h.value;l=a.get(k);return C(m,Ej(e,k,l,l.codecs),6);case 6:e.s?(e.j[f.S]=[],e.j[f.fa]=[]):e.j[k]=[],h=g.next(),m.u(3)}})};
354
354
  function Ej(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,t,x;return L(function(w){switch(w.g){case 1:return e=Kd,f=Oa,g=Pa,C(w,Dj(c,b),2);case 2:g.call(f,w.h,"Type negotiation should happen before MediaSourceEngine.init!");h=Md(c.mimeType,d);if(b==e.ma){Fj(a,h,a.B,c.external);w.u(0);break}k=a.A.forceTransmux;if(!lb(h)||!a.B&&Nd.includes(h))k=!0;l=Od(c.mimeType,d);if(!k){w.u(4);break}m=Gd(e.S,(d||"").split(","));n=Gd(e.fa,(d||"").split(","));if(!m||!n){w.u(5);break}a.s=!0;return C(w,Ej(a,e.S,c,m),6);case 6:return C(w,
@@ -383,11 +383,11 @@ r.Gb=function(){return this.R()||this.dc()?Math.min(Math.max(0,(Date.now()+this.
383
383
  r.Bg=function(a){this.H=a};P("shaka.media.PresentationTimeline",hk);hk.prototype.setAvailabilityTimeOffset=hk.prototype.Bg;hk.prototype.usingPresentationStartTime=hk.prototype.Mg;hk.prototype.getSeekRangeEnd=hk.prototype.pb;hk.prototype.getSeekRangeStart=hk.prototype.$b;hk.prototype.getSafeSeekRangeStart=hk.prototype.dd;hk.prototype.getSegmentAvailabilityEnd=hk.prototype.Gb;hk.prototype.setUserSeekStart=hk.prototype.Ig;hk.prototype.getSegmentAvailabilityStart=hk.prototype.qb;
384
384
  hk.prototype.isInProgress=hk.prototype.dc;hk.prototype.isLive=hk.prototype.R;hk.prototype.offset=hk.prototype.offset;hk.prototype.notifyMaxSegmentDuration=hk.prototype.hf;hk.prototype.notifyMinSegmentStartTime=hk.prototype.de;hk.prototype.getInitialProgramDateTime=hk.prototype.qh;hk.prototype.setInitialProgramDateTime=hk.prototype.Dg;hk.prototype.isStartTimeLocked=hk.prototype.Rh;hk.prototype.lockStartTime=hk.prototype.Xd;hk.prototype.notifySegments=hk.prototype.ld;hk.prototype.notifyTimeRange=hk.prototype.sg;
385
385
  hk.prototype.getDelay=hk.prototype.mh;hk.prototype.setDelay=hk.prototype.Df;hk.prototype.getSegmentAvailabilityDuration=hk.prototype.Nd;hk.prototype.setSegmentAvailabilityDuration=hk.prototype.ke;hk.prototype.setStatic=hk.prototype.Ec;hk.prototype.setClockOffset=hk.prototype.Cg;hk.prototype.getPresentationStartTime=hk.prototype.xh;hk.prototype.setDuration=hk.prototype.$a;hk.prototype.setPresentationStartTime=hk.prototype.Eg;hk.prototype.getMaxSegmentDuration=hk.prototype.th;
386
- hk.prototype.getDuration=hk.prototype.getDuration;function ik(a,b,c){this.j=c;this.l=a;this.s=jk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.A=b;this.i=function(){}}ik.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function kk(a,b){a.i=b}function lk(a){this.g=a}function jk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=u(Ci(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function mk(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.s=c;this.l=new db;this.j=!1;this.F=a.readyState;this.C=this.i=0;this.h=d;this.o=!1;this.l.D(a,"waiting",function(){return nk(f)});this.m=(new Mc(function(){nk(f)})).Sa(this.s.gapJumpTimerTime)}mk.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.B=this.A=null};mk.prototype.mf=function(){this.o=!0;nk(this)};
387
- function nk(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=jk(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.s!=d)b.m=f,b.g=e,b.s=d,b.h=!1;e=f-b.m;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.j(new S("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Di(c,b,a.s.gapDetectionThreshold),null==
388
- d||0==d&&!a.o||(e=c.start(d),e>=a.B.pb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.C++,a.A(new S("gapjumped")))))}}};function ok(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=pk.value().get(b),c.na(a,b,d))}var pk=new Jc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function qk(a,b,c,d){var e=this;this.g=a;this.m=b;this.s=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new db;this.i=new rk(a);ok(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){sk(e,e.j())})}qk.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function tk(a){return a.o?a.g.currentTime:a.j()}
386
+ hk.prototype.getDuration=hk.prototype.getDuration;function ik(a,b,c){this.j=c;this.l=a;this.s=jk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.A=b;this.i=function(){}}ik.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function kk(a,b){a.i=b}function lk(a){this.g=a}function jk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=u(Ci(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function mk(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.s=c;this.l=new eb;this.j=!1;this.F=a.readyState;this.C=this.i=0;this.h=d;this.o=!1;this.l.D(a,"waiting",function(){return nk(f)});this.m=(new Mc(function(){nk(f)})).Sa(this.s.gapJumpTimerTime)}mk.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.B=this.A=null};mk.prototype.mf=function(){this.o=!0;nk(this)};
387
+ function nk(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=jk(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.s!=d)b.m=f,b.g=e,b.s=d,b.h=!1;e=f-b.m;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.j(new T("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Di(c,b,a.s.gapDetectionThreshold),null==
388
+ d||0==d&&!a.o||(e=c.start(d),e>=a.B.pb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.C++,a.A(new T("gapjumped")))))}}};function ok(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=pk.value().get(b),c.na(a,b,d))}var pk=new Jc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function qk(a,b,c,d){var e=this;this.g=a;this.m=b;this.s=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new eb;this.i=new rk(a);ok(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){sk(e,e.j())})}qk.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function tk(a){return a.o?a.g.currentTime:a.j()}
389
389
  function uk(a,b){0<a.g.readyState?vk(a.i,b):ok(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){sk(a,a.j())})}function sk(a,b){.001>Math.abs(a.g.currentTime-b)?wk(a):(a.h.na(a.g,"seeking",function(){wk(a)}),vk(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function wk(a){a.o=!0;a.h.D(a.g,"seeking",function(){return a.m()});a.s(a.g.currentTime)}
390
- function rk(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Mc(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}rk.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function vk(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Sa(.1)};function xk(a){this.g=a;this.j=!1;this.h=null;this.i=new db}r=xk.prototype;r.we=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.na(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;ok(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.xe=function(a){this.h=this.j?this.h:a};r.Dd=function(){return(this.j?this.g.currentTime:this.h)||0};r.Pf=function(){return 0};
390
+ function rk(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Mc(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}rk.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function vk(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Sa(.1)};function xk(a){this.g=a;this.j=!1;this.h=null;this.i=new eb}r=xk.prototype;r.we=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.na(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;ok(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.xe=function(a){this.h=this.j?this.h:a};r.Dd=function(){return(this.j?this.g.currentTime:this.h)||0};r.Pf=function(){return 0};
391
391
  r.Of=function(){return 0};r.rg=function(){};
392
392
  function yk(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.B=b.minBufferTime||0;this.l=c;this.A=e;this.s=null;this.o=zk(a,c,f);this.j=new mk(a,b.presentationTimeline,c,this.o,f);this.h=new qk(a,function(){a:{var h=g.j;h.j=!0;h.o=!1;var k=tk(g.h);h=Ak(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.s||g.s<k-1)){g.s=k;uk(g.h,h);h=void 0;break a}g.A();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},function(){var h=d;null==h?h=Infinity>g.g.getDuration()?
393
393
  g.g.$b():g.g.pb():0>h&&(h=g.g.pb()+h);return Bk(g,Ck(g,h))});this.m=new Mc(function(){if(0!=g.i.readyState&&!g.i.paused){var h=tk(g.h),k=g.g.$b(),l=g.g.pb();3>l-k&&(k=l-3);h<k&&(h=Ak(g,h),g.i.currentTime=h)}})}r=yk.prototype;r.we=function(){this.m.Sa(.25)};r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.A=function(){}};r.xe=function(a){uk(this.h,a)};
@@ -406,11 +406,11 @@ Ek.prototype.setReverse=Ek.prototype.je;function Gk(){Dk.call(this,[]);this.h=[]
406
406
  r.get=function(a){for(var b=0,c=u(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};r.offset=function(){};r.ae=function(){};r.La=function(){};r.kd=function(){};r.sc=function(){};r.le=function(){};P("shaka.media.MetaSegmentIndex",Gk);Gk.prototype.updateEvery=Gk.prototype.le;Gk.prototype.fit=Gk.prototype.sc;Gk.prototype.mergeAndEvict=Gk.prototype.kd;Gk.prototype.evict=Gk.prototype.La;Gk.prototype.merge=Gk.prototype.ae;
407
407
  Gk.prototype.offset=Gk.prototype.offset;Gk.prototype.get=Gk.prototype.get;Gk.prototype.find=Gk.prototype.find;Gk.prototype.forEachTopLevelReference=Gk.prototype.tc;Gk.prototype.release=Gk.prototype.release;function Hk(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Md();this.h=new Mc(function(){b.g.qg(.25*b.i)})}Hk.prototype.release=function(){this.set(this.Xb());this.h&&(this.h.stop(),this.h=null);this.g=null};Hk.prototype.set=function(a){this.i=a;Ik(this)};Hk.prototype.Xb=function(){return this.g.Xb()};function Ik(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Md()!=b&&a.g.Ff(b);return}catch(c){}a.h.Sa(.25);0!=a.g.Md()&&a.g.Ff(0)};function Jk(a){var b=this;this.h=a;this.g=new Set;this.i=(new Mc(function(){Kk(b,!1)})).Sa(.25)}Jk.prototype.release=function(){this.i.stop();for(var a=u(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Kk(a,b){for(var c=u(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Lk(){this.g=null;this.h=[]}function Mk(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=u(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Nk(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=u(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Ok(){this.i=this.h=null;this.g=[]}function Pk(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Qk(){this.Ed=this.A=this.B=this.G=this.C=this.s=this.j=this.F=this.m=this.i=this.L=this.N=this.H=this.I=this.K=this.l=this.o=NaN;this.g=new Lk;this.h=new Ok};function Rk(a,b,c){this.m=a;this.h=b;this.l=0;this.j=c;this.g=new Map;this.i=new Map}function Sk(a,b){a.j=b;a=u(a.g.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
408
408
  function Tk(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex&&(b=a.h.segmentIndex.xb(Math.max(b,a.l),!0))){var d=b.next().value;c&&(d=b.next().value);if(d){for(;a.g.size<a.m&&null!=d;){c=!0;d.preload&&null!=d.ja&&(c=!1);2==d.bc()&&(c=!1);c&&d.ca&&Uk(a,d.ca);c&&!a.g.has(d)&&(c=new Vk(a.j),Wk(c,d,a.h),a.g.set(d,c));a.l=d.startTime;if(a.h.fastSwitching&&d.md&&d.Wd)break;d=b.next().value}Xk(a)}}}
409
- function Uk(a,b){if(a.h.segmentIndex&&!Array.from(a.i.keys()).some(function(d){return ui(d,b)})){var c=new Vk(a.j);Wk(c,b,a.h);a.i.set(b,c)}}function Yk(a,b){b=u(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&Zk(a,c)}function $k(a){Yk(a,a.g);Yk(a,a.i);a.l=0}Rk.prototype.La=function(a,b){b=void 0===b?!1:b;for(var c=u(this.g.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&Zk(this,d);b&&Xk(this)};
410
- function Xk(a){for(var b=Array.from(a.g.keys()),c={},d=u(a.i.keys()),e=d.next();!e.done;c={wd:c.wd},e=d.next())c.wd=e.value,b.some(function(f){return function(g){return ui(g.ca,f.wd)}}(c))||Zk(a,c.wd)}function al(a,b){a.m=b;for(var c=Array.from(a.g.keys());c.length>b;){var d=c.pop();d&&Zk(a,d)}Xk(a)}function bl(a,b){b&&b!==a.h&&($k(a),a.h=b)}function Zk(a,b){var c=a.g;b instanceof qi&&(c=a.i);a=c.get(b);c.delete(b);a&&a.abort()}function Vk(a){this.g=a;this.ge=this.Gf=null}
411
- function Wk(a,b,c){var d=new Uint8Array(0);a.ge=a.g(b,c,function(e){return L(function(f){if(1==f.g)return 0<d.byteLength?d=zd(d,e):d=e,a.Gf?C(f,a.Gf(d),3):f.u(0);d=new Uint8Array(0);F(f)})})}Vk.prototype.abort=function(){this.ge&&this.ge.abort()};function cl(a){ag.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Mc(function(){for(var c=b.i(),d=u(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new S("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Sa(2)}na(cl,ag);cl.prototype.release=function(){this.g.clear();this.h.stop();ag.prototype.release.call(this)};function dl(a){ag.call(this);this.g=new Map;this.h=a}na(dl,ag);dl.prototype.release=function(){this.g.clear();ag.prototype.release.call(this)};function el(a,b){var c=a.g.get(b);c||(c={nd:[],Wf:null,contentType:b},a.g.set(b,c));return c}function fl(a,b,c){var d=el(a,b.contentType);gl(a,d);a={gf:b,position:c};d=d.nd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
409
+ function Uk(a,b){if(a.h.segmentIndex&&!Array.from(a.i.keys()).some(function(d){return ri(d,b)})){var c=new Vk(a.j);Wk(c,b,a.h);a.i.set(b,c)}}function Yk(a,b){b=u(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&Zk(a,c)}function $k(a){Yk(a,a.g);Yk(a,a.i);a.l=0}Rk.prototype.La=function(a,b){b=void 0===b?!1:b;for(var c=u(this.g.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&Zk(this,d);b&&Xk(this)};
410
+ function Xk(a){for(var b=Array.from(a.g.keys()),c={},d=u(a.i.keys()),e=d.next();!e.done;c={wd:c.wd},e=d.next())c.wd=e.value,b.some(function(f){return function(g){return ri(g.ca,f.wd)}}(c))||Zk(a,c.wd)}function al(a,b){a.m=b;for(var c=Array.from(a.g.keys());c.length>b;){var d=c.pop();d&&Zk(a,d)}Xk(a)}function bl(a,b){b&&b!==a.h&&($k(a),a.h=b)}function Zk(a,b){var c=a.g;b instanceof qi&&(c=a.i);a=c.get(b);c.delete(b);a&&a.abort()}function Vk(a){this.g=a;this.ge=this.Gf=null}
411
+ function Wk(a,b,c){var d=new Uint8Array(0);a.ge=a.g(b,c,function(e){return L(function(f){if(1==f.g)return 0<d.byteLength?d=zd(d,e):d=e,a.Gf?C(f,a.Gf(d),3):f.u(0);d=new Uint8Array(0);F(f)})})}Vk.prototype.abort=function(){this.ge&&this.ge.abort()};function cl(a){ag.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Mc(function(){for(var c=b.i(),d=u(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new T("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Sa(2)}na(cl,ag);cl.prototype.release=function(){this.g.clear();this.h.stop();ag.prototype.release.call(this)};function dl(a){ag.call(this);this.g=new Map;this.h=a}na(dl,ag);dl.prototype.release=function(){this.g.clear();ag.prototype.release.call(this)};function el(a,b){var c=a.g.get(b);c||(c={nd:[],Wf:null,contentType:b},a.g.set(b,c));return c}function fl(a,b,c){var d=el(a,b.contentType);gl(a,d);a={gf:b,position:c};d=d.nd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
412
412
  dl.prototype.j=function(a){for(var b=u(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.nd;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.gf;break a}}d=null}if(e=d)e=c.Wf,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
413
- if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Wf=d,JSON.stringify(d),c=new S("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function gl(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.nd;b.nd=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.nd=[]};function hl(a,b,c,d,e){a=hg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function il(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.B=1;this.s=this.j=null;this.H=0;this.F=!1;this.i=new Map;this.C=!1;this.I=null;this.A=!1;this.l=new pg(function(){return jl(c)});this.K=Date.now()/1E3;this.o=new Map;this.G={projection:null,hfov:null}}r=il.prototype;r.destroy=function(){return this.l.destroy()};
413
+ if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Wf=d,JSON.stringify(d),c=new T("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function gl(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.nd;b.nd=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.nd=[]};function hl(a,b,c,d,e){a=hg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function il(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.B=1;this.s=this.j=null;this.H=0;this.F=!1;this.i=new Map;this.C=!1;this.I=null;this.A=!1;this.l=new pg(function(){return jl(c)});this.K=Date.now()/1E3;this.o=new Map;this.G={projection:null,hfov:null}}r=il.prototype;r.destroy=function(){return this.l.destroy()};
414
414
  function jl(a){var b,c,d,e,f,g,h;return L(function(k){if(1==k.g){b=[];c=u(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,kl(e),b.push(ll(e));f=u(a.o.values());for(g=f.next();!g.done;g=f.next())h=g.value,$k(h);return C(k,Promise.all(b),2)}a.i.clear();a.o.clear();a.g=null;a.m=null;a.h=null;F(k)})}
415
415
  r.configure=function(a){this.h=a;this.I=new Of({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);if(a.disableAudioPrefetch){var b=this.i.get("audio");b&&b.W&&($k(b.W),b.W=null);b=u(this.o.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,$k(this.o.get(c)),this.o.delete(c)}a.disableTextPrefetch&&(b=this.i.get(Id))&&
416
416
  b.W&&($k(b.W),b.W=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.W&&($k(b.W),b.W=null);b=u(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.W?(al(c.W,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(c.W=null)):0<a.segmentPrefetchLimit&&(c.W=ml(this,c.stream));a.disableAudioPrefetch||nl(this)};r.start=function(a){var b=this;return L(function(c){if(1==c.g)return C(c,ol(b,a||new Map),2);qg(b.l);b.C=!0;F(c)})};
@@ -439,22 +439,22 @@ A.return():b.Lb?(b.Qa=!1,rl(a,b,0),A.return()):C(A,Jl(a,b,c,f,d,w),10);case 10:b
439
439
  !0,1==B.category&&b.W&&Zk(b.W,d),B.severity=2,C(A,Dl(a,b,B),0)}})}function Ml(a,b,c){var d,e,f,g,h;return L(function(k){if(1==k.g)return d=b,d.cryptoKey?k.u(2):C(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Ab(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})}
440
440
  function Il(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}function Ll(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.wf})){if(0<a.h.maxDisabledTime&&a.g.Jd(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.B);if(20<d)a.B-=.2;else if(4<d)a.B-=.04;else{b.gd=!0;a.A=!0;a.g.onError(c);return}b.wf=!0}rl(a,b,4)}
441
441
  function Hl(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x;return L(function(w){switch(w.g){case 1:d=Kd;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=Vd(b.stream.codecs);k=Wd(b.stream.mimeType);l=c.timestampOffset;if(l==b.df&&f==b.bf&&g==b.af&&h==b.cf&&k==b.mg){w.u(2);break}m=b.cf&&b.mg&&gk(a.g.V,b.type,k,h);if(!m){w.u(3);break}n=null;b.type===d.fa?n=a.i.get(d.S):b.type===d.S&&(n=a.i.get(d.fa));if(!n){w.u(3);break}return C(w,ll(n).catch(function(){}),5);case 5:n.ec=null,zl(a,n);case 3:return q=
442
- function(){var z,v,B;return L(function(A){if(1==A.g)return z=new Map,a.j.audio&&z.set(d.S,a.j.audio),a.j.video&&z.set(d.fa,a.j.video),ra(A,2),b.bf=f,b.af=g,b.cf=h,b.mg=k,b.df=l,v=a.m.sequenceMode||"HLS"==a.m.type,C(A,Xj(a.g.V,b.type,l,f,g,v,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,z),4);if(2!=A.g)return ta(A,0);B=va(A);b.bf=null;b.af=null;b.cf=null;b.df=null;throw B;})},C(w,q(),2);case 2:return ui(c.ca,b.ec)||(b.ec=c.ca,c.l&&c.ca&&(p=Kl(a,b,c.ca),t=function(){var z,v,B,A,D,G,J;return L(function(I){switch(I.g){case 1:return ra(I,
442
+ function(){var z,v,B;return L(function(A){if(1==A.g)return z=new Map,a.j.audio&&z.set(d.S,a.j.audio),a.j.video&&z.set(d.fa,a.j.video),ra(A,2),b.bf=f,b.af=g,b.cf=h,b.mg=k,b.df=l,v=a.m.sequenceMode||"HLS"==a.m.type,C(A,Xj(a.g.V,b.type,l,f,g,v,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,z),4);if(2!=A.g)return ta(A,0);B=va(A);b.bf=null;b.af=null;b.cf=null;b.df=null;throw B;})},C(w,q(),2);case 2:return ri(c.ca,b.ec)||(b.ec=c.ca,c.l&&c.ca&&(p=Kl(a,b,c.ca),t=function(){var z,v,B,A,D,G,J;return L(function(I){switch(I.g){case 1:return ra(I,
443
443
  2),C(I,p,4);case 4:return z=I.h,qg(a.l),v=null,B=new Map,A={projection:null,hfov:null},D=new zg,D.box("moov",Eg).box("trak",Eg).box("mdia",Eg).O("mdhd",function(E){v=Ni(E.reader,E.version).timescale}).box("hdlr",function(E){E=E.reader;E.skip(8);switch(E.hc()){case "soun":B.set(d.S,v);break;case "vide":B.set(d.fa,v)}v=null}).box("minf",Eg).box("stbl",Eg).O("stsd",Gg).box("encv",Jg).box("avc1",Jg).box("avc3",Jg).box("hev1",Jg).box("hvc1",Jg).box("dvav",Jg).box("dva1",Jg).box("dvh1",Jg).box("dvhe",Jg).box("vexu",
444
444
  Eg).box("proj",Eg).O("prji",function(E){E=E.reader.hc();A.projection=E}).box("hfov",function(E){E=E.reader.M()/1E3;A.hfov=E}).parse(z),Nl(a,A),B.has(b.type)?c.ca.timescale=B.get(b.type):null!=v&&(c.ca.timescale=v),G=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,C(I,a.g.Sf(b.type,z),5);case 5:return C(I,Oj(a.g.V,b.type,z,null,b.stream,G),6);case 6:ta(I,0);break;case 2:throw J=va(I),b.ec=null,J;}})},a.g.Zh(c.startTime,c.ca),e.push(t()))),a.m.sequenceMode&&(x=b.Oa?b.Oa.j:null,c.j!=x&&e.push(Zj(a.g.V,
445
445
  b.type,c.startTime))),C(w,Promise.all(e),0)}})}
446
446
  function Jl(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,q;return L(function(p){switch(p.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;m=a.h.parsePrftBox&&!a.F;if(l||m)k=new zg;l&&k.O("emsg",function(t){var x=d.emsgSchemeIdUris;if(0===t.version){var w=t.reader.hc();var z=t.reader.hc();var v=t.reader.M();var B=t.reader.M();var A=t.reader.M();var D=t.reader.M();var G=e.startTime+B/v}else v=t.reader.M(),G=t.reader.Cc()/
447
- v+e.timestampOffset,B=G-e.startTime,A=t.reader.M(),D=t.reader.M(),w=t.reader.hc(),z=t.reader.hc();t=t.reader.sb(t.reader.getLength()-t.reader.wa());if(x&&x.includes(w)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==w?a.g.$h():(x=(new Map).set("detail",{startTime:G,endTime:G+A/v,schemeIdUri:w,value:z,timescale:v,presentationTimeDelta:B,eventDuration:A,id:D,messageData:t}),x=new S("emsg",x),x.cancelable=!0,a.g.onEvent(x),x.defaultPrevented||"https://aomedia.org/emsg/ID3"!=w&&"https://developer.apple.com/streaming/emsg-id3"!=
448
- w||(w=Ji(t),w.length&&e&&a.g.ai([{cueTime:e.startTime,data:t,frames:w,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.O("prft",function(t){if(!a.F&&e.ca.timescale){var x=t.reader,w=t.version;x.M();t=x.M();var z=x.M();t=1E3*t+z/Math.pow(2,32)*1E3;0===w?x=x.M():(w=x.M(),x=x.M(),x=w*Math.pow(2,32)+x);t=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+t)).getTime();x=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-x/e.ca.timescale*1E3)});x=new S("prft",x);a.g.onEvent(x);
447
+ v+e.timestampOffset,B=G-e.startTime,A=t.reader.M(),D=t.reader.M(),w=t.reader.hc(),z=t.reader.hc();t=t.reader.sb(t.reader.getLength()-t.reader.wa());if(x&&x.includes(w)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==w?a.g.$h():(x=(new Map).set("detail",{startTime:G,endTime:G+A/v,schemeIdUri:w,value:z,timescale:v,presentationTimeDelta:B,eventDuration:A,id:D,messageData:t}),x=new T("emsg",x),x.cancelable=!0,a.g.onEvent(x),x.defaultPrevented||"https://aomedia.org/emsg/ID3"!=w&&"https://developer.apple.com/streaming/emsg-id3"!=
448
+ w||(w=Ji(t),w.length&&e&&a.g.ai([{cueTime:e.startTime,data:t,frames:w,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.O("prft",function(t){if(!a.F&&e.ca.timescale){var x=t.reader,w=t.version;x.M();t=x.M();var z=x.M();t=1E3*t+z/Math.pow(2,32)*1E3;0===w?x=x.M():(w=x.M(),x=x.M(),x=w*Math.pow(2,32)+x);t=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+t)).getTime();x=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-x/e.ca.timescale*1E3)});x=new T("prft",x);a.g.onEvent(x);
449
449
  a.F=!0}});(l||m)&&k.parse(f);return C(p,Ol(a,b,c),2);case 2:return qg(a.l),n=b.od,b.od=!1,q=b.Qf,b.Qf=!1,C(p,a.g.Sf(b.type,f),3);case 3:return C(p,Oj(a.g.V,b.type,f,e,d,h,n,q,g),4);case 4:qg(a.l),F(p)}})}function Ol(a,b,c){var d,e,f,g;return L(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Jj(a.g.V,b.type);if(null==e)return h.return();f=c-e;g=f-d;return g<=a.h.evictionGoal?h.return():C(h,a.g.V.remove(b.type,e,e+g),2)}qg(a.l);F(h)})}
450
450
  function El(a){return a&&a.type==Id&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
451
451
  function Kl(a,b,c,d){var e,f,g,h,k;return L(function(l){switch(l.g){case 1:if(e=c.ed())return l.return(e);f=null;if(b.W){var m=b.W,n=m.g;c instanceof qi&&(n=m.i);n.has(c)?(m=n.get(c),d&&(m.Gf=d),f=m.ge):f=null}f||(f=Al(c,b.stream,d||null,a.h.retryParameters,a.g.zb));g=0;b.Z&&(g=b.Z.h);b.Za=f;return C(l,f.promise,2);case 2:h=l.h;b.Za=null;k=h.data;if(!c.aesKey){l.u(3);break}return C(l,Ml(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
452
452
  function Al(a,b,c,d,e){var f=a instanceof vi?a:void 0,g=f?1:0;a=hl(a.$(),a.Aa,a.ja,d,c);a.contentType=b.type;return e.request(ng,a,{type:g,stream:b,segment:f})}
453
453
  function xl(a,b,c,d){var e,f;return L(function(g){if(1==g.g)return b.Lb=!1,b.me=!1,b.Id=0,b.Xc=!0,b.Oa=null,b.ec=null,b.Z=null,b.W&&!a.o.has(b.stream)&&$k(b.W),d?(e=a.g.Ld(),f=a.g.V.getDuration(),C(g,a.g.V.remove(b.type,e+d,f),3)):C(g,Wj(a.g.V,b.type),4);if(3!=g.g)return qg(a.l),c?C(g,a.g.V.flush(b.type),3):g.u(3);qg(a.l);b.Xc=!1;b.endOfStream=!1;b.Qa||b.ub||rl(a,b,0);F(g)})}
454
- function rl(a,b,c){var d=b.type;if(d!=Id||a.i.has(d))b.ub=(new Lc(function(){var e;return L(function(f){if(1==f.g)return ra(f,2),C(f,Bl(a,b),4);if(2!=f.g)return ta(f,0);e=va(f);if(a.g)a.g.onError(e);F(f)})})).X(c)}function kl(a){null!=a.ub&&(a.ub.stop(),a.ub=null)}function ll(a){return L(function(b){return a.Za?C(b,a.Za.abort(),0):b.u(0)})}
454
+ function rl(a,b,c){var d=b.type;if(d!=Id||a.i.has(d))b.ub=(new Kc(function(){var e;return L(function(f){if(1==f.g)return ra(f,2),C(f,Bl(a,b),4);if(2!=f.g)return ta(f,0);e=va(f);if(a.g)a.g.onError(e);F(f)})})).X(c)}function kl(a){null!=a.ub&&(a.ub.stop(),a.ub=null)}function ll(a){return L(function(b){return a.Za?C(b,a.Za.abort(),0):b.u(0)})}
455
455
  function Dl(a,b,c){var d;return L(function(e){if(1==e.g)return C(e,Qf(a.I),2);qg(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.Jd(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.h.failureCallback(c);F(e)})}
456
456
  function Pl(a){var b,c,d,e,f,g;return L(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.K<c)return h.return(!1);a.K=b;d=Kd;if(e=a.i.get(d.S))e.ec=null,zl(a,e),ll(e).catch(function(){});if(f=a.i.get(d.fa))f.ec=null,zl(a,f),ll(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.S,a.j.audio);a.j.video&&g.set(d.fa,a.j.video);return C(h,fk(a.g.V,g),2)}return h.return(!0)})}
457
- function Nl(a,b){if(a.G.projection!=b.projection||a.G.hfov!=b.hfov){if(null!=b.projection||null!=b.hfov){var c=(new Map).set("detail",b);c=new S("spatialvideoinfo",c)}else c=new S("nospatialvideoinfo");c.cancelable=!0;a.g.onEvent(c);a.G=b}};function Ql(){}
457
+ function Nl(a,b){if(a.G.projection!=b.projection||a.G.hfov!=b.hfov){if(null!=b.projection||null!=b.hfov){var c=(new Map).set("detail",b);c=new T("spatialvideoinfo",c)}else c=new T("nospatialvideoinfo");c.cancelable=!0;a.g.onEvent(c);a.G=b}};function Ql(){}
458
458
  function Rl(a,b,c,d,e){var f=e in d,g=!0,h;for(h in b){var k=e+"."+h,l=f?d[e]:c[h];f||h in c?void 0===b[h]?void 0===l||f?delete a[h]:a[h]=ye(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=ye(l)),k=Rl(a[h],b[h],l,d,k),g=g&&k):typeof b[h]!=typeof l||null==b[h]||"function"!=typeof b[h]&&b[h].constructor!=l.constructor?(Ua("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Wa("Unexpected number of arguments for "+k),a[h]=b[h]):(Ua("Invalid config, unrecognized key "+
459
459
  k),g=!1)}return g}function Sl(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function Tl(a,b){return a&&b}P("shaka.util.ConfigUtils",Ql);Ql.convertToConfigObject=Sl;Ql.mergeConfigObjects=Rl;function Ul(){}function Vl(a){a=md(a);return(new rc(a)).wb}function Wl(a,b,c){function d(h){Eb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Ab(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new Q(2,6,6015);var e;"string"==typeof b?e=od(b,!0):e=b;a=md(a);a=od(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Xl(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=md(a).split("skd://").pop();return Wl(a,c,b)}
460
460
  function Yl(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")}P("shaka.util.FairPlayUtils",Ul);Ul.commonFairPlayResponse=function(a,b){if(2===a){try{var c=hd(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Bb(ud(c)))}};Ul.expressplayFairPlayRequest=function(a,b){Yl(a,b)};
@@ -462,15 +462,15 @@ Ul.conaxFairPlayRequest=function(a,b){Yl(a,b)};Ul.ezdrmFairPlayRequest=function(
462
462
  Ul.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=md(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=Db(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Wl(a,d,b)};Ul.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=md(a).split(";").pop();return Wl(a,c,b)};Ul.verimatrixInitDataTransform=function(a,b,c){return Xl(a,b,c)};Ul.initDataTransform=Wl;
463
463
  Ul.defaultGetContentId=Vl;Ul.isFairPlaySupported=function(){var a;return L(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},ra(b,2),C(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);va(b);return b.return(!1)})};function Zl(){}
464
464
  function $l(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:Pf(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(k,l,m){window.shakaMediaKeysPolyfill&&"skd"==l&&(l=m.serverCertificate,m=Vl(k),k=Wl(k,m,l));return k},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:Rc(),minHdcpVersion:"",
465
- ignoreDuplicateInitData:!Vc()};(Rc()||$c())&&b.preferredKeySystems.push("com.microsoft.playready");var c="reload",d=!1;Vc()||Uc()||Sc("Tizen 4")||Wc()&&38===Yc()||Wc()&&53===Yc()||Wc()&&68===Yc()||Xc()&&(!Xc()||!Sc("Android"))||(navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():navigator.platform&&navigator.platform.toLowerCase().includes("windows"))&&Qc()||(c="smooth",d=!0);d={retryParameters:Pf(),availabilityWindowOverride:NaN,disableAudio:!1,
466
- disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey",
467
- "urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"},manifestPreprocessor:am,manifestPreprocessorTXml:bm,sequenceMode:!1,enableAudioGroups:!1,multiTypeVariantsAllowed:d,useStreamOnceInPeriodFlattening:!1,updatePeriod:-1},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",
468
- ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3,sequenceMode:Uc()||Vc()||Wc()&&38===Yc()||$c()?!1:!0,ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,allowLowLatencyByteRangeOptimization:!0},mss:{manifestPreprocessor:am,manifestPreprocessorTXml:bm,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready",
465
+ ignoreDuplicateInitData:!Vc()};(Rc()||$c())&&b.preferredKeySystems.push("com.microsoft.playready");var c="reload",d=!1;Vc()||Uc()||Sc("Tizen 4")||Wc()&&38===Yc()||Wc()&&53===Yc()||Wc()&&68===Yc()||!(!Xc()||Xc()&&Sc("Android")||Xc()&&Sc("Fuchsia"))||(navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():navigator.platform&&navigator.platform.toLowerCase().includes("windows"))&&Qc()||(c="smooth",d=!0);d={retryParameters:Pf(),availabilityWindowOverride:NaN,
466
+ disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey",
467
+ "urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"},manifestPreprocessor:am,manifestPreprocessorTXml:bm,sequenceMode:!1,enableAudioGroups:!1,multiTypeVariantsAllowed:d,useStreamOnceInPeriodFlattening:!1,updatePeriod:-1},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,
468
+ defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3,sequenceMode:Uc()||Vc()||Wc()&&38===Yc()||$c()?!1:!0,ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,allowLowLatencyByteRangeOptimization:!0},mss:{manifestPreprocessor:am,manifestPreprocessorTXml:bm,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready",
469
469
  "79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}};var e={retryParameters:Pf(),failureCallback:function(k){return Tl([k])},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,
470
470
  autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1,segmentPrefetchLimit:0,prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:!1,liveSyncMaxLatency:1,liveSyncPlaybackRate:1.1,liveSyncMinLatency:0,liveSyncMinPlaybackRate:1,liveSyncPanicMode:!1,liveSyncPanicThreshold:60,allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,
471
471
  vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5,infiniteLiveStreamDuration:!1};if(Wc()||Tc()||Xc()||bd())e.stallSkip=0;var f={trackSelectionCallback:function(k){return L(function(l){return l.return(k)})},downloadSizeCallback:function(k){var l;return L(function(m){if(1==m.g)return navigator.storage&&navigator.storage.estimate?C(m,navigator.storage.estimate(),3):m.return(!0);l=m.h;return m.return(l.usage+k<.95*l.quota)})},progressCallback:function(k,l){return Tl([k,l])},
472
472
  usePersistentLicense:!0,numberOfParallelDownloads:5};a={enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,
473
- clearBufferSwitch:!1,safeMarginSwitch:0};c={codecSwitchingStrategy:c,addExtraFeaturesToSourceBuffer:function(k){return Tl([k],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,modifyCueCallback:function(k,l){return Tl([k,l])}};var g=!1;if(Wc()||Tc()||Xc()||bd()||ad()||$c()||Rc())g=!0;var h={drm:b,manifest:d,streaming:e,mediaSource:c,offline:f,abrFactory:function(){return new rf},abr:a,autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",
473
+ clearBufferSwitch:!1,safeMarginSwitch:0};c={codecSwitchingStrategy:c,addExtraFeaturesToSourceBuffer:function(k){return Tl([k],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,modifyCueCallback:function(k,l){return Tl([k,l])}};var g=!1;if(Wc()||Tc()||Xc()||bd()||ad()||$c()||Rc())g=!0;var h={drm:b,manifest:d,streaming:e,mediaSource:c,offline:f,abrFactory:function(){return new nf},abr:a,autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",
474
474
  preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayer:{captionsUpdatePeriod:.25},
475
475
  textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[]},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:!1,skipPlayDetection:g}};f.trackSelectionCallback=function(k){return L(function(l){return l.return(cm(k,h.preferredAudioLanguage,h.preferredVideoHdrLevel))})};return h}
476
476
  function dm(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Rl(a,b,c||$l(),d,"")}
@@ -480,15 +480,15 @@ this.H=[];this.G=[]}na(em,ag);function fm(a,b,c){(a=b?a.G:a.H)?a.push(c):c()}fun
480
480
  r.getStats=function(){return this.ba};function lm(a){a.ea=!0;return a.l}function mm(a){a.Ha=!0;return a.I}
481
481
  r.start=function(){var a=this,b;return L(function(c){switch(c.g){case 1:return C(c,Promise.resolve(),2);case 2:return ra(c,3),C(c,nm(a),5);case 5:if(a.m)return c.return();a.qa.resolve();return C(c,om(a),6);case 6:if(a.m)return c.return();a.pa.resolve();a.o||(a.o=new Bf(a.g.preferredAudioLanguage,a.g.preferredVariantRole,a.g.preferredAudioChannelCount,a.g.preferredVideoHdrLevel,a.g.preferSpatialAudio,a.g.preferredVideoLayout,a.g.preferredAudioLabel,a.g.preferredVideoLabel,a.g.mediaSource.codecSwitchingStrategy,
482
482
  a.g.manifest.dash.enableAudioGroups),Be(a.h,a.g.preferredVideoCodecs,a.g.preferredAudioCodecs,a.g.preferredDecodingAttributes));if(a.mb){var d=a.g.abrFactory;a.s=d;a.i=d();a.i.configure(a.g.abr)}if(a.Rb){d=a.h.presentationTimeline.R();var e=kf(a.h.variants);e=a.o.create(e);a.i.configure(a.g.abr);a.i.setVariants(Array.from(e.values()));if(e=a.i.chooseVariant(!0))a.ta=e,e.video&&pm(a,e.video,d),e.audio&&pm(a,e.audio,d)}return C(c,void 0,7);case 7:if(a.m)return c.return();a.L.resolve();ta(c,0);break;
483
- case 3:throw b=va(c),a.F.reject(b),b;}})};r.dispatchEvent=function(a){return this.N?this.N.dispatchEvent(a):ag.prototype.dispatchEvent.call(this,a)};r.onError=function(a){2===a.severity&&(this.F.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new S("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function qm(a,b){a.dispatchEvent(new S("onstatechange",(new Map).set("state",b)))}
484
- function nm(a){var b,c,d,e,f;return L(function(g){if(1==g.g){qm(a,"manifest-parser");a.j||(a.B=ki(a.K,a.Y),a.j=a.B(),a.j.configure(a.g.manifest));b=Date.now()/1E3;qm(a,"manifest");if(a.h)return g.u(2);c=a;return C(g,a.j.start(a.K,a.Ub),3)}2!=g.g&&(c.h=g.h);d=new S("manifestparsed",void 0);a.dispatchEvent(d);if(0==a.h.variants.length)throw new Q(2,4,4036);rm(a.h);e=Date.now()/1E3;f=e-b;a.ba.F=f;F(g)})}
485
- function om(a){var b,c,d,e,f;return L(function(g){switch(g.g){case 1:qm(a,"drm-engine");a.Ia=Date.now()/1E3;a.l=a.Tb();a.A.g=a.l;a.l.configure(a.g.drm);var h=a.A;b=Fe(a.h.variants,h.h.restrictions,h.i);if(!b){g.u(2);break}c=new S("trackschanged",void 0);return C(g,Promise.resolve(),3);case 3:a.dispatchEvent(c);case 2:return d=kf(a.h.variants),C(g,vh(a.l,d,a.h.offlineSessionIds),4);case 4:return C(g,di(a.A,a.h),5);case 5:e=g.h;if(!e){g.u(0);break}f=new S("trackschanged",void 0);return C(g,Promise.resolve(),
483
+ case 3:throw b=va(c),a.F.reject(b),b;}})};r.dispatchEvent=function(a){return this.N?this.N.dispatchEvent(a):ag.prototype.dispatchEvent.call(this,a)};r.onError=function(a){2===a.severity&&(this.F.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new T("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function qm(a,b){a.dispatchEvent(new T("onstatechange",(new Map).set("state",b)))}
484
+ function nm(a){var b,c,d,e,f;return L(function(g){if(1==g.g){qm(a,"manifest-parser");a.j||(a.B=ki(a.K,a.Y),a.j=a.B(),a.j.configure(a.g.manifest));b=Date.now()/1E3;qm(a,"manifest");if(a.h)return g.u(2);c=a;return C(g,a.j.start(a.K,a.Ub),3)}2!=g.g&&(c.h=g.h);d=new T("manifestparsed",void 0);a.dispatchEvent(d);if(0==a.h.variants.length)throw new Q(2,4,4036);rm(a.h);e=Date.now()/1E3;f=e-b;a.ba.F=f;F(g)})}
485
+ function om(a){var b,c,d,e,f;return L(function(g){switch(g.g){case 1:qm(a,"drm-engine");a.Ia=Date.now()/1E3;a.l=a.Tb();a.A.g=a.l;a.l.configure(a.g.drm);var h=a.A;b=Fe(a.h.variants,h.h.restrictions,h.i);if(!b){g.u(2);break}c=new T("trackschanged",void 0);return C(g,Promise.resolve(),3);case 3:a.dispatchEvent(c);case 2:return d=kf(a.h.variants),C(g,vh(a.l,d,a.h.offlineSessionIds),4);case 4:return C(g,di(a.A,a.h),5);case 5:e=g.h;if(!e){g.u(0);break}f=new T("trackschanged",void 0);return C(g,Promise.resolve(),
486
486
  7);case 7:a.dispatchEvent(f),F(g)}})}r.configure=function(a,b){a=Sl(a,b);dm(this.g,a)};r.getConfiguration=function(){return ye(this.g)};
487
487
  function pm(a,b,c){var d,e,f,g,h;L(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new Rk(d,b,function(l,m,n){return Al(l,m,n||null,a.g.streaming.retryParameters,a.bb)}),a.I.set(b.id,e),C(k,b.createSegmentIndex(),2);f=a.aa||0;(h=(g=b.segmentIndex.xb(f))?g.current():null)||(h=b.segmentIndex.get(0));h&&(c?h.ca&&Uk(e,h.ca):Tk(e,h.startTime));F(k)})}r.Gi=function(){return Promise.race([this.L,this.F])};
488
488
  r.destroy=function(){var a=this,b,c,d;return L(function(e){switch(e.g){case 1:a.m=!0;if(!a.j||a.sa){e.u(2);break}return C(e,a.j.stop(),2);case 2:if(!a.i||a.da){e.u(4);break}return C(e,a.i.stop(),4);case 4:a.C&&!a.Ga&&a.C.release();if(!a.l||a.ea){e.u(6);break}return C(e,a.l.destroy(),6);case 6:if(0<a.I.size&&!a.Ha)for(b=u(a.I.values()),c=b.next();!c.done;c=b.next())d=c.value,$k(d);F(e)}})};
489
- function rm(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}P("shaka.media.PreloadManager",em);em.prototype.destroy=em.prototype.destroy;em.prototype.waitForFinish=em.prototype.Gi;function sm(a,b){ag.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{oc:null,nc:tm,cc:function(d,e){return Hm(c,"enter",d,e)}},{oc:Im,nc:tm,cc:function(d,e){return Hm(c,"enter",d,e)}},{oc:Jm,nc:tm,cc:function(d,e){return Hm(c,"enter",d,e)}},{oc:tm,nc:Im,cc:function(d,e){return Hm(c,"exit",d,e)}},{oc:tm,nc:Jm,cc:function(d,e){return Hm(c,"exit",d,e)}},{oc:Im,nc:Jm,cc:function(d,e){return Hm(c,"skip",d,e)}},{oc:Jm,nc:Im,cc:function(d,e){return Hm(c,"skip",d,e)}}];this.h=new db;this.h.D(this.i,
489
+ function rm(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}P("shaka.media.PreloadManager",em);em.prototype.destroy=em.prototype.destroy;em.prototype.waitForFinish=em.prototype.Gi;function sm(a,b){ag.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{oc:null,nc:tm,cc:function(d,e){return um(c,"enter",d,e)}},{oc:Im,nc:tm,cc:function(d,e){return um(c,"enter",d,e)}},{oc:Jm,nc:tm,cc:function(d,e){return um(c,"enter",d,e)}},{oc:tm,nc:Im,cc:function(d,e){return um(c,"exit",d,e)}},{oc:tm,nc:Jm,cc:function(d,e){return um(c,"exit",d,e)}},{oc:Im,nc:Jm,cc:function(d,e){return um(c,"skip",d,e)}},{oc:Jm,nc:Im,cc:function(d,e){return um(c,"skip",d,e)}}];this.h=new eb;this.h.D(this.i,
490
490
  "regionremove",function(d){c.g.delete(d.region)})}na(sm,ag);sm.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;ag.prototype.release.call(this)};sm.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=u(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Im:a>d.endTime?Jm:tm;this.g.set(d,f);for(var g=u(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.oc==e&&h.nc==f&&h.cc(d,b)}}};
491
- function Hm(a,b,c,d){b=new S(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Im=1,tm=2,Jm=3;function Km(a,b,c){var d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:var n=(new rc(a)).Pa.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Lm[d])return m.return(e);f=0;g=hg([a],c);ra(m,2);g.method="HEAD";return C(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];ta(m,3);break;case 2:k=va(m);if(!k||1002!=k.code&&1001!=k.code){m.u(3);break}g.method="GET";return C(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
491
+ function um(a,b,c,d){b=new T(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Im=1,tm=2,Jm=3;function Km(a,b,c){var d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:var n=(new rc(a)).Pa.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Lm[d])return m.return(e);f=0;g=hg([a],c);ra(m,2);g.method="HEAD";return C(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];ta(m,3);break;case 2:k=va(m);if(!k||1002!=k.code&&1001!=k.code){m.u(3);break}g.method="GET";return C(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
492
492
  e.toLowerCase().split(";").shift():"")}})}
493
493
  var Lm={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",ism:"application/vnd.ms-sstr+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav",sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function Mm(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Mm(g,a)}).join("");var c=[],d=700<=a.fontWeight,e="italic"==a.fontStyle,f=a.textDecoration.includes("underline");d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=Nm(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Nm(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=u(h);h=k.next().value;k=k.next().value;
494
494
  return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
@@ -498,7 +498,7 @@ r.append=function(a){var b=Om(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];v
498
498
  c.indexOf(g)});a=u(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};r.destroy=function(){this.g&&(Qm(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};r.isTextVisible=function(){return"showing"==this.g.mode};r.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
499
499
  function Rm(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b}
500
500
  function Qm(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=u(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}P("shaka.text.SimpleTextDisplayer",Pm);Pm.prototype.setTextVisibility=Pm.prototype.setTextVisibility;Pm.prototype.isTextVisible=Pm.prototype.isTextVisible;Pm.prototype.destroy=Pm.prototype.destroy;Pm.prototype.append=Pm.prototype.append;Pm.prototype.remove=Pm.prototype.remove;Pm.prototype.configure=Pm.prototype.configure;function Sm(){}r=Sm.prototype;r.configure=function(){};r.remove=function(){};r.append=function(){};r.destroy=function(){};r.isTextVisible=function(){return!1};r.setTextVisibility=function(){};P("shaka.text.StubTextDisplayer",Sm);Sm.prototype.setTextVisibility=Sm.prototype.setTextVisibility;Sm.prototype.isTextVisible=Sm.prototype.isTextVisible;Sm.prototype.destroy=Sm.prototype.destroy;Sm.prototype.append=Sm.prototype.append;Sm.prototype.remove=Sm.prototype.remove;Sm.prototype.configure=Sm.prototype.configure;function Tm(){}function Um(a){for(;a.firstChild;)a.removeChild(a.firstChild)}P("shaka.util.Dom",Tm);Tm.removeAllChildren=Um;function Vm(a,b,c){var d=this;this.m=!1;this.h=[];this.A=a;this.s=b;this.l=null;this.g=document.createElement("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.s.appendChild(this.g);c&&c.captionsUpdatePeriod||pb("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.C=(new Mc(function(){d.A.paused||
501
- Wm(d)})).Sa(c&&c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new db;this.j.D(document,"fullscreenchange",function(){Wm(d,!0)});this.j.D(this.A,"seeking",function(){Wm(d,!0)});this.j.D(this.A,"resize",function(){var e=d.A,f=e.videoWidth;e=e.videoHeight;f&&e?d.l=f/e:d.l=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){Wm(d,!0)}),this.o.observe(this.g));this.B=new Map}r=Vm.prototype;r.configure=function(a){this.C&&this.C.Sa(a.captionsUpdatePeriod)};
501
+ Wm(d)})).Sa(c&&c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new eb;this.j.D(document,"fullscreenchange",function(){Wm(d,!0)});this.j.D(this.A,"seeking",function(){Wm(d,!0)});this.j.D(this.A,"resize",function(){var e=d.A,f=e.videoWidth;e=e.videoHeight;f&&e?d.l=f/e:d.l=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){Wm(d,!0)}),this.o.observe(this.g));this.B=new Map}r=Vm.prototype;r.configure=function(a){this.C&&this.C.Sa(a.captionsUpdatePeriod)};
502
502
  r.append=function(a){var b=[].concat(y(this.h)),c={};a=u(a);for(var d=a.next();!d.done;c={ud:c.ud},d=a.next())c.ud=d.value,b.some(function(e){return function(f){return $b(f,e.ud)}}(c))||this.h.push(c.ud);Wm(this)};r.destroy=function(){if(!this.g)return Promise.resolve();this.s.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.C&&this.C.stop();this.i.clear();this.j&&(this.j.release(),this.j=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};
503
503
  r.remove=function(a,b){if(!this.g)return!1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime<a||d.endTime>=b});Wm(this,c>this.h.length);return!0};r.isTextVisible=function(){return this.m};r.setTextVisibility=function(a){this.m=a};function Xm(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
504
504
  function Ym(a,b,c,d,e){var f=!1,g=[],h=[];b=u(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.i.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Og:null;l&&(g.push(l.De),l.ic&&g.push(l.ic),m||(f=!0,a.i.delete(k),l=null));m&&(h.push(k),l?Xm(a,n)||(f=!0):(Zm(a,k,e),l=a.i.get(k),n=l.Og,f=!0));0<k.nestedCues.length&&n&&Ym(a,k.nestedCues,n,d,e);e.pop()}if(f){d=u(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(q,p){return q.startTime!=
@@ -524,10 +524,10 @@ function ln(a){function b(n){return 100*c(n/100)}function c(n){return Math.round
524
524
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function qn(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=u(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=ln(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
525
525
  function mn(a,b){if(!b||a.includes("offline:"))return a;a=new rc(a);a.g.set("CMCD",b);return a.toString()}var kn="m",hn="a",on="v",jn="av",sn="i",un="c",tn="tt";P("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Qg:"s",OTHER:"o"});function yn(a){this.h=a;this.g=null}r=yn.prototype;r.configure=function(a){this.h=a};r.fg=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(zn)?1E3*this.g.get(zn):null};r.eg=function(){return this.h.enabled&&this.g&&this.g.has(An)?1E3*this.g.get(An):null};r.yh=function(){return this.h.enabled&&this.g&&this.g.has(Bn)?this.g.get(Bn):null};r.zh=function(){return this.h.enabled&&this.g&&this.g.has(Cn)?this.g.get(Cn):null};
526
526
  r.getBandwidthEstimate=function(a){var b=this.eg();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function Dn(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}P("shaka.util.CmsdManager",yn);yn.prototype.getBandwidthEstimate=yn.prototype.getBandwidthEstimate;yn.prototype.getRoundTripTime=yn.prototype.zh;yn.prototype.getResponseDelay=yn.prototype.yh;yn.prototype.getEstimatedThroughput=yn.prototype.eg;
527
- yn.prototype.getMaxBitrate=yn.prototype.fg;var An="etp",zn="mb",Bn="rd",Cn="rtt";function En(){this.g=null;this.h=[]}function Fn(a,b){return L(function(c){if(1==c.g)return a.g?C(c,new Promise(function(d){return a.h.push(d)}),2):c.u(2);a.g=b;F(c)})}En.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function X(a,b){ag.call(this);var c=this;this.l=Gn;this.Rd=this.g=null;this.da=!1;this.Yd=new db;this.Rb=new db;this.m=new db;this.ta=new db;this.C=this.F=this.B=this.H=null;this.ce=0;this.Y=new En;this.ea=this.kf=this.qa=this.i=this.Ga=this.I=this.j=this.lb=this.K=this.wg=this.aa=this.T=this.mb=this.L=this.Td=this.G=this.bb=null;this.Ia=!1;this.pa=this.o=null;this.uf=1E9;this.$c=[];this.N=NaN;this.h=Hn(this);this.ba={width:Infinity,height:Infinity};this.Pd=new ci(this.h,this.ba,null);this.nf=[];
527
+ yn.prototype.getMaxBitrate=yn.prototype.fg;var An="etp",zn="mb",Bn="rd",Cn="rtt";function En(){this.g=null;this.h=[]}function Fn(a,b){return L(function(c){if(1==c.g)return a.g?C(c,new Promise(function(d){return a.h.push(d)}),2):c.u(2);a.g=b;F(c)})}En.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function X(a,b){ag.call(this);var c=this;this.l=Gn;this.Rd=this.g=null;this.da=!1;this.Yd=new eb;this.Rb=new eb;this.m=new eb;this.ta=new eb;this.C=this.F=this.B=this.H=null;this.ce=0;this.Y=new En;this.ea=this.kf=this.qa=this.i=this.Ga=this.I=this.j=this.lb=this.K=this.wg=this.aa=this.T=this.mb=this.L=this.Td=this.G=this.bb=null;this.Ia=!1;this.pa=this.o=null;this.uf=1E9;this.$c=[];this.N=NaN;this.h=Hn(this);this.ba={width:Infinity,height:Infinity};this.Pd=new ci(this.h,this.ba,null);this.nf=[];
528
528
  this.s=null;this.sa=new Bf(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferSpatialAudio,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.preferredVideoLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.Ha=this.h.preferredTextLanguage;this.Vb=this.h.preferredTextRole;this.Ub=this.h.preferForcedSubs;this.Tb=[];b&&b(this);this.T=In(this);this.aa=new yn(this.h.cmsd);
529
529
  this.H=Jn(this);this.H.Ef(this.h.streaming.forceHTTPS);this.A=null;Kn&&(this.A=Kn(),this.A.configure(this.h.ads));this.Yd.D(window,"online",function(){Ln(c);c.xf()});this.Ud=new Mc(function(){return Mn(c)});a&&(pb("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Vc(a,!0))}na(X,ag);function Nn(a){null!=a.K&&(rj(a.K),a.K.release(),a.K=null)}
530
- function On(a,b){if(b.lcevc.enabled){var c=a.Hb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(Qc()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Wa("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));Nn(a);null==a.K&&(a.K=new qj(a.g,a.wg,b.lcevc),a.F&&(a.F.T=a.K))}else Nn(a)}function Pn(a,b){return new S(a,b)}r=X.prototype;
530
+ function On(a,b){if(b.lcevc.enabled){var c=a.Hb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(Qc()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Wa("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));Nn(a);null==a.K&&(a.K=new qj(a.g,a.wg,b.lcevc),a.F&&(a.F.T=a.K))}else Nn(a)}function Pn(a,b){return new T(a,b)}r=X.prototype;
531
531
  r.destroy=function(){var a=this,b,c,d,e,f;return L(function(g){switch(g.g){case 1:if(a.l==Qn)return g.return();Nn(a);b=a.detach();a.l=Qn;return C(g,b,2);case 2:c=[];d=u(a.nf);for(e=d.next();!e.done;e=d.next())f=e.value,f.m||c.push(f.destroy());a.nf=[];return C(g,Promise.all(c),3);case 3:a.Yd&&(a.Yd.release(),a.Yd=null);a.Rb&&(a.Rb.release(),a.Rb=null);a.m&&(a.m.release(),a.m=null);a.ta&&(a.ta.release(),a.ta=null);a.pa=null;a.h=null;a.s=null;a.Rd=null;a.T=null;a.aa=null;if(!a.H){g.u(4);break}return C(g,
532
532
  a.H.destroy(),5);case 5:a.H=null;case 4:a.o&&(a.o.release(),a.o=null),ag.prototype.release.call(a),F(g)}})};function Rn(a,b){a.dispatchEvent(Pn("onstatechange",(new Map).set("state",b)))}
533
533
  r.Vc=function(a,b){b=void 0===b?!0:b;var c=this,d,e,f;return L(function(g){switch(g.g){case 1:if(c.l==Qn)throw new Q(2,7,7E3);d=c.g&&c.g==a;if(!c.g||c.g==a){g.u(2);break}return C(g,c.detach(),2);case 2:return C(g,Sn(c,"attach"),4);case 4:if(g.h)return g.return();ra(g,5,6);d||(Rn(c,"attach"),e=function(){var h=Tn(c);h&&Un(c,h)},c.Rb.D(a,"error",e),c.g=a);if(!b||!Nc()||c.F){g.u(6);break}return C(g,Vn(c),6);case 6:wa(g);c.Y.release();ya(g,0);break;case 5:return f=va(g),C(g,c.detach(),10);case 10:throw f;
@@ -548,10 +548,10 @@ r.preload=function(a,b,c){b=void 0===b?null:b;var d=this,e;return L(function(f){
548
548
  function Yn(a,b,c,d,e){e=void 0===e?!1:e;var f,g,h,k;return L(function(l){if(1==l.g)return f=Date.now()/1E3,d?l.u(2):C(l,Xn(a,b),3);2!=l.g&&(d=l.h);if(g=eo(a,d))return l.return(null);h=!1;k=!0;e&&(a.o&&a.pa==a.h.abrFactory&&(k=!1),a.g&&"AUDIO"===a.g.nodeName&&(h=!0));return l.return(co(a,b,c,d||null,f,!e,h,k))})}
549
549
  function co(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,q,p,t,x,w,z,v,B,A,D,G;return L(function(J){if(1==J.g)return k=null,l=ye(a.h),g&&(l.manifest.disableVideo=!0),m=function(){return k.T&&k.m?null:k},n=function(){return m()?m().getConfiguration():a.h},q=function(I,E){m()?k.configure(I,E):a.configure(I,E)},Infinity!=a.ba.width||Infinity!=a.ba.height?J.u(2):C(J,fd(),3);2!=J.g&&(p=J.h,a.ba.width=p.width,a.ba.height=p.height);t=new ci(l,a.ba,null);x={networkingEngine:a.H,
550
550
  filter:function(I){var E,H;return L(function(K){if(1==K.g)return C(K,di(t,I),2);if(4!=K.g){E=K.h;if(!E)return K.u(0);H=Pn("trackschanged");return C(K,Promise.resolve(),4)}k.dispatchEvent(H);F(K)})},makeTextStreamsForClosedCaptions:function(I){return fo(a,I)},onTimelineRegionAdded:function(I){var E=k.C;a:{var H=u(E.g);for(var K=H.next();!K.done;K=H.next())if(K=K.value,K.schemeIdUri==I.schemeIdUri&&K.id==I.id&&K.startTime==I.startTime&&K.endTime==I.endTime){H=K;break a}H=null}null==H&&(E.g.add(I),I=
551
- new S("regionadd",new Map([["region",I]])),E.dispatchEvent(I))},onEvent:function(I){return k.dispatchEvent(I)},onError:function(I){return k.onError(I)},isLowLatencyMode:function(){return n().streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return n().streaming.autoLowLatencyMode},enableLowLatencyMode:function(){q("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&k.T&&a.j.updateDuration()},newDrmInfo:function(I){var E=k.l,H=E?E.g:null;H&&E.s&&gi(t,H.keySystem,I)},onManifestUpdated:function(){var I=
551
+ new T("regionadd",new Map([["region",I]])),E.dispatchEvent(I))},onEvent:function(I){return k.dispatchEvent(I)},onError:function(I){return k.onError(I)},isLowLatencyMode:function(){return n().streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return n().streaming.autoLowLatencyMode},enableLowLatencyMode:function(){q("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&k.T&&a.j.updateDuration()},newDrmInfo:function(I){var E=k.l,H=E?E.g:null;H&&E.s&&gi(t,H.keySystem,I)},onManifestUpdated:function(){var I=
552
552
  (new Map).set("isLive",a.R());k.dispatchEvent(Pn("manifestupdated",I));fm(k,!1,function(){if(a.A)a.A.onManifestUpdated(a.R())})},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()}};w=new cl(function(){return a.Ib()});w.addEventListener("regionadd",function(I){var E=I.region;go(a,"timelineregionadded",E,k);fm(k,!1,function(){if(a.A)a.A.onDashTimedMetadata(E)})});z=null;l.streaming.observeQualityChanges&&(z=new dl(function(){return a.ob()}),z.addEventListener("qualitychange",function(I){var E=
553
553
  I.quality;I=I.position;E=(new Map).set("mediaQuality",{bandwidth:E.bandwidth,audioSamplingRate:E.audioSamplingRate,codecs:E.codecs,contentType:E.contentType,frameRate:E.frameRate,height:E.height,mimeType:E.mimeType,channelsCount:E.channelsCount,pixelAspectRatio:E.pixelAspectRatio,width:E.width}).set("position",I);a.dispatchEvent(Pn("mediaqualitychanged",E))}));v=!0;B={zb:a.H,onError:function(I){return k.onError(I)},fe:function(I){fm(k,!0,function(){a:{var E=Pn("keystatuschanged");a.dispatchEvent(E);
554
- var H=Object.keys(I);E=1==H.length&&"00"==H[0];var K=!1;if(H.length){H=u(a.i.variants);for(var M=H.next();!M.done;M=H.next()){M=M.value;var O=[];M.audio&&O.push(M.audio);M.video&&O.push(M.video);O=u(O);for(var N=O.next();!N.done;N=O.next()){var U=N.value;N=M.allowedByKeySystem;if(U.keyIds.size){M.allowedByKeySystem=!0;U=u(U.keyIds);for(var R=U.next();!R.done;R=U.next())if(R=R.value,(R=I[E?"00":R])||a.B.F)M.allowedByKeySystem=M.allowedByKeySystem&&!!R&&!ii.includes(R)}N!=M.allowedByKeySystem&&(K=!0)}}}if(K&&
554
+ var H=Object.keys(I);E=1==H.length&&"00"==H[0];var K=!1;if(H.length){H=u(a.i.variants);for(var M=H.next();!M.done;M=H.next()){M=M.value;var O=[];M.audio&&O.push(M.audio);M.video&&O.push(M.video);O=u(O);for(var N=O.next();!N.done;N=O.next()){var R=N.value;N=M.allowedByKeySystem;if(R.keyIds.size){M.allowedByKeySystem=!0;R=u(R.keyIds);for(var S=R.next();!S.done;S=R.next())if(S=S.value,(S=I[E?"00":S])||a.B.F)M.allowedByKeySystem=M.allowedByKeySystem&&!!S&&!ii.includes(S)}N!=M.allowedByKeySystem&&(K=!0)}}}if(K&&
555
555
  (ho(a),!io(a)))break a;(E=a.j.j)&&!E.allowedByKeySystem&&jo(a)}})},onExpirationUpdated:function(I,E){var H=Pn("expirationupdated");k.dispatchEvent(H);if((H=k.j)&&H.onExpirationUpdated)H.onExpirationUpdated(I,E)},onEvent:function(I){k.dispatchEvent(I);"drmsessionupdate"==I.type&&v&&(v=!1,I=Date.now()/1E3-k.Ia,(a.s||k.getStats()).j=I,a.K&&rj(a.K))}};A=Jn(a,m);D=function(){return a.rc(B)};G={config:l,Vh:x,ei:w,di:z,rc:D,Uh:t,networkingEngine:A,Xg:f,Wg:h};k=new em(b,d,e,c,G);a.nf.push(k);return J.return(k)})}
556
556
  function Xn(a,b){var c,d;return L(function(e){if(1==e.g)return c=a.h.manifest.retryParameters,C(e,Km(b,a.H,c),2);d=e.h;"application/x-mpegurl"==d&&Zc()&&(d="application/vnd.apple.mpegurl");return e.return(d)})}
557
557
  function eo(a,b){if(!Nc())return!0;if(b){if(""==(a.g||Pc()).canPlayType(b))return!1;if(!(Nc()&&b in li))return!0;if(Yd(b)){if(a.h.streaming.preferNativeHls)return!0;if(Zc()&&(a.h.drm.servers["com.apple.fps"]||a.h.drm.servers["com.apple.fps.1_0"]))return a.h.streaming.useNativeHlsForFairPlay;if(Zc())return a.h.streaming.useNativeHlsOnSafari}}return!1}
@@ -599,18 +599,18 @@ r.Te=function(){return this.B?this.B.Te():[]};r.Kd=function(){return this.B?this
599
599
  r.sd=function(a){var b=this;0==a?Wa("A trick play rate of 0 is unsupported!"):(this.ta.ib(),this.g.paused&&this.g.play(),this.G.set(a),this.l==ro&&(this.o.playbackRateChanged(a),tl(this.j,1<Math.abs(a))),this.R()&&this.ta.D(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.Ib(),e=b.h.streaming.safeSeekOffset;0<a?Math.floor(c)>=Math.floor(d.end)&&b.Wc():Math.floor(c)<=Math.floor(d.start+e)&&b.Wc()}))};
600
600
  r.Wc=function(){var a=this.G.Xb();this.l==Eo&&this.G.set(a);this.l==ro&&(this.G.set(a),this.o.playbackRateChanged(a),tl(this.j,!1));this.ta.ib()};
601
601
  r.Hb=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=u(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,jf(e)){var f=Xe(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return hf(g)}):[]};
602
- r.wc=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=u(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=Ye(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Go(this).map(function(f){return ff(f)}):[]};r.ph=function(){var a=this.$c;this.i&&(a=this.i.imageStreams);return a.map(function(b){return Ze(b)})};
602
+ r.wc=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=u(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=Ye(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Go(this).map(function(f){return bf(f)}):[]};r.ph=function(){var a=this.$c;this.i&&(a=this.i.imageStreams);return a.map(function(b){return Ze(b)})};
603
603
  r.ih=function(a){var b=this,c,d,e,f;return L(function(g){if(1==g.g){if(b.l!=ro&&b.l!=Eo)return g.return(null);c=b.$c;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.u(2):C(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],d.segmentIndex.tc(function(h){var k=Mo(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Sb;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.hg(a,h.startTime+l*m/k))}}),C(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
604
604
  function Mo(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Sb:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
605
605
  r.hg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A;return L(function(D){if(1==D.g){if(c.l!=ro&&c.l!=Eo)return D.return(null);d=c.$c;c.i&&(d=c.i.imageStreams);return(e=d.find(function(G){return G.id==a}))?e.segmentIndex?D.u(2):C(D,e.createSegmentIndex(),2):D.return(null)}f=e.segmentIndex.find(b);if(null==f)return D.return(null);g=e.segmentIndex.get(f);h=Mo(g.tilesLayout||e.tilesLayout);if(!h)return D.return(null);k=e.width||0;l=e.height||0;m=k/h.Sb;n=l/h.rows;q=h.Sb*h.rows;p=g.i-g.startTime;
606
606
  t=g.A||p/q;x=g.startTime;z=w=0;1<q&&(v=Math.floor((b-g.startTime)/t),x=g.startTime+v*t,w=v%h.Sb*m,z=Math.floor(v/h.Sb)*n);B=!1;if(A=g.s)B=!0,n=A.height,w=A.positionX,z=A.positionY,m=A.width;return D.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:w,positionY:z,startTime:x,duration:t,uris:g.$(),width:m,sprite:B})})};
607
- r.zg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(Pk(this.s.h,b,!1),wl(this.j,b),No(this),this.Ha=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Go(this);b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,df(c)==a.id?c.mode=this.da?"showing":"hidden":c.mode="disabled";No(this)}};
607
+ r.zg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(Pk(this.s.h,b,!1),wl(this.j,b),No(this),this.Ha=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Go(this);b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,$e(c)==a.id?c.mode=this.da?"showing":"hidden":c.mode="disabled";No(this)}};
608
608
  r.Bf=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Wa("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&jf(d)&&(po(this,d,!1,b,c),this.sa=new Af(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),io(this))}else if(this.g&&this.g.audioTracks)for(b=
609
- Array.from(this.g.audioTracks),b=u(b),c=b.next();!c.done;c=b.next())if(c=c.value,df(c)==a.id){Oo(this,c);break}};r.kh=function(){return Po(this.Hb())};r.Bh=function(){return Po(this.wc())};r.jh=function(){return Array.from(Qo(this.Hb()))};r.Ah=function(){return Array.from(Qo(this.wc()))};
609
+ Array.from(this.g.audioTracks),b=u(b),c=b.next();!c.done;c=b.next())if(c=c.value,$e(c)==a.id){Oo(this,c);break}};r.kh=function(){return Po(this.Hb())};r.Bh=function(){return Po(this.wc())};r.jh=function(){return Array.from(Qo(this.Hb()))};r.Ah=function(){return Array.from(Qo(this.wc()))};
610
610
  r.yg=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.C){this.sa=new Bf(a,b||"",c,"",!1,"","","",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.sa.create(this.i.variants);c=null;e=u(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,
611
611
  b))c=f;c?(a=Xe(c),this.Bf(a,!0,d)):jo(this)}else this.g&&this.g.audioTracks&&(d=lf(this.Hb(),a,b||"",!1)[0])&&this.Bf(d)};r.Af=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.C){if(this.Ha=a,this.Vb=b||"",this.Ub=c,(a=lf(this.i.textStreams,this.Ha,this.Vb,this.Ub)[0]||null)&&a!=this.j.s&&(Pk(this.s.h,a,!1),this.h.streaming.alwaysStreamText||this.$e()))wl(this.j,a),No(this)}else(a=lf(this.wc(),a,b||"",c)[0])&&this.zg(a)};
612
612
  r.ti=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.C){for(var d=null,e=u(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.sa=new Bf(d.language,"",0,"",!1,"",a,"",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),jo(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=u(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&Oo(this,b)}};
613
- r.$e=function(){var a=this.da;return this.F&&this.l==ro?this.F.F.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Go(this).some(function(b){return"showing"==b.mode}):a};r.dg=function(){return this.g&&this.g.src&&this.g.textTracks?Ro(this).map(function(a){return ff(a)}):[]};
613
+ r.$e=function(){var a=this.da;return this.F&&this.l==ro?this.F.F.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Go(this).some(function(b){return"showing"==b.mode}):a};r.dg=function(){return this.g&&this.g.src&&this.g.textTracks?Ro(this).map(function(a){return bf(a)}):[]};
614
614
  r.lh=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=qe(a),c=Ro(this).filter(function(h){return qe(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=u(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
615
615
  function Go(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Jo(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function Ro(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
616
616
  r.Fg=function(a){a=!!a;if(this.da!=a){this.da=a;if(this.l==ro)this.F.F.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=lf(this.i.textStreams,this.Ha,this.Vb,this.Ub),0<a.length&&(wl(this.j,a[0]),No(this))):sl(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Go(this);b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}zo(this)}};
@@ -663,38 +663,38 @@ X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prot
663
663
  X.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return L(function(h){if(1==h.g)return b={},a?C(h,Xh(),3):h.u(2);2!=h.g&&(b=h.h);var k={};if(Nc())for(var l in li)k[l]=!0;l=u(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,k[m]=Nc()?!!li[m]:Oc(m);c=k;l='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(y(Nd));
664
664
  k={};l=u(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=de(m)?!0:Nc()?lb(m)||(lc(m)?!0:!1):Oc(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=Yo;for(g in f)e[g]=f[g]();return h.return(e)})};
665
665
  X.isBrowserSupported=function(){window.Promise||Wa("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Sc("Trident/"))return!1;var a=cd();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Nc()?!0:Oc("application/x-mpegurl")};X.setAdManagerFactory=function(a){Kn=a};
666
- X.registerSupportPlugin=function(a,b){Yo[a]=b};X.prototype.destroy=X.prototype.destroy;var Qn=0,Gn=1,ro=2,Eo=3;X.LoadMode={DESTROYED:Qn,NOT_LOADED:Gn,MEDIA_SOURCE:ro,SRC_EQUALS:Eo};X.version="v4.8.4";var Zo=["4","8"];qb=new function(a){this.g=a;this.i=rb;this.h=sb}(new ob(Number(Zo[0]),Number(Zo[1])));var Yo={},Kn=null;function $o(){this.h=[];this.j=this.i=this.g=0};function ap(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new db;this.m.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}r=ap.prototype;r.getDuration=function(){return this.g.getDuration()};r.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.h.getRemainingTime()};r.isPaused=function(){return this.i};
666
+ X.registerSupportPlugin=function(a,b){Yo[a]=b};X.prototype.destroy=X.prototype.destroy;var Qn=0,Gn=1,ro=2,Eo=3;X.LoadMode={DESTROYED:Qn,NOT_LOADED:Gn,MEDIA_SOURCE:ro,SRC_EQUALS:Eo};X.version="v4.8.5";var Zo=["4","8"];qb=new function(a){this.g=a;this.i=rb;this.h=sb}(new ob(Number(Zo[0]),Number(Zo[1])));var Yo={},Kn=null;function $o(){this.h=[];this.j=this.i=this.g=0};function ap(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new eb;this.m.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}r=ap.prototype;r.getDuration=function(){return this.g.getDuration()};r.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.h.getRemainingTime()};r.isPaused=function(){return this.i};
667
667
  r.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};r.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};r.canSkipNow=function(){return this.h.getAdSkippableState()};r.skip=function(){return this.h.skip()};r.pause=function(){return this.h.pause()};r.play=function(){return this.h.resume()};r.getVolume=function(){return this.h.getVolume()};r.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
668
668
  r.isMuted=function(){return 0==this.h.getVolume()};r.isLinear=function(){return this.g.isLinear()};r.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};r.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
669
669
  r.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};r.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.g.getTitle()};r.getDescription=function(){return this.g.getDescription()};r.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};r.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};r.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
670
670
  r.getAdId=function(){return this.g.getAdId()};r.getCreativeAdId=function(){return this.g.getCreativeAdId()};r.getAdvertiserName=function(){return this.g.getAdvertiserName()};r.getMediaUrl=function(){return this.g.getMediaUrl()};r.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};r.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};r.release=function(){this.h=this.g=null};P("shaka.ads.ClientSideAd",ap);ap.prototype.release=ap.prototype.release;
671
671
  ap.prototype.getPodIndex=ap.prototype.getPodIndex;ap.prototype.getTimeOffset=ap.prototype.getTimeOffset;ap.prototype.getMediaUrl=ap.prototype.getMediaUrl;ap.prototype.getAdvertiserName=ap.prototype.getAdvertiserName;ap.prototype.getCreativeAdId=ap.prototype.getCreativeAdId;ap.prototype.getAdId=ap.prototype.getAdId;ap.prototype.getVastMediaWidth=ap.prototype.getVastMediaWidth;ap.prototype.getVastMediaHeight=ap.prototype.getVastMediaHeight;ap.prototype.getVastMediaBitrate=ap.prototype.getVastMediaBitrate;
672
672
  ap.prototype.getDescription=ap.prototype.getDescription;ap.prototype.getTitle=ap.prototype.getTitle;ap.prototype.getPositionInSequence=ap.prototype.getPositionInSequence;ap.prototype.getSequenceLength=ap.prototype.getSequenceLength;ap.prototype.setMuted=ap.prototype.setMuted;ap.prototype.resize=ap.prototype.resize;ap.prototype.isLinear=ap.prototype.isLinear;ap.prototype.isMuted=ap.prototype.isMuted;ap.prototype.setVolume=ap.prototype.setVolume;ap.prototype.getVolume=ap.prototype.getVolume;
673
- ap.prototype.play=ap.prototype.play;ap.prototype.pause=ap.prototype.pause;ap.prototype.skip=ap.prototype.skip;ap.prototype.canSkipNow=ap.prototype.canSkipNow;ap.prototype.getTimeUntilSkippable=ap.prototype.getTimeUntilSkippable;ap.prototype.isSkippable=ap.prototype.isSkippable;ap.prototype.isPaused=ap.prototype.isPaused;ap.prototype.getRemainingTime=ap.prototype.getRemainingTime;ap.prototype.getMinSuggestedDuration=ap.prototype.getMinSuggestedDuration;ap.prototype.getDuration=ap.prototype.getDuration;function bp(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.C=!1;this.A=this.s=null;this.F=NaN;this.m=e;this.j=null;this.h=new db;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.8.4");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
674
- function(g){cp(f,g)});this.h.D(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){dp(f,g)});this.h.D(this.i,"ended",function(){f.l.contentComplete()});this.h.na(this.i,"play",function(){f.C=!0})}bp.prototype.configure=function(a){this.s=a};bp.prototype.stop=function(){this.g&&this.g.stop();this.o&&Um(this.o)};bp.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};
675
- function dp(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new S("ad-error",b));ep(a,null);a.m(new S("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
676
- function cp(a,b){a.m(new S("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));if(a.s.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.B);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.D(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.D(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.B);a.m(new S("ima-ad-manager-loaded",(new Map).set("imaAdManager",
677
- a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=u(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.m(new S("ad-cue-points-changed",(new Map).set("cuepoints",b)))}fp(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,gp(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.D(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,gp(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.A=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,
678
- a.i.offsetHeight,gp(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.A.observe(a.i)):a.h.D(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,gp(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.C||a.s.skipPlayDetection?a.g.start():a.h.na(a.i,"play",function(){a.C=!0;a.g.start()})}catch(f){ep(a,null)}}
673
+ ap.prototype.play=ap.prototype.play;ap.prototype.pause=ap.prototype.pause;ap.prototype.skip=ap.prototype.skip;ap.prototype.canSkipNow=ap.prototype.canSkipNow;ap.prototype.getTimeUntilSkippable=ap.prototype.getTimeUntilSkippable;ap.prototype.isSkippable=ap.prototype.isSkippable;ap.prototype.isPaused=ap.prototype.isPaused;ap.prototype.getRemainingTime=ap.prototype.getRemainingTime;ap.prototype.getMinSuggestedDuration=ap.prototype.getMinSuggestedDuration;ap.prototype.getDuration=ap.prototype.getDuration;function bp(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.F=!1;this.A=this.s=null;this.G=NaN;this.m=e;this.j=null;this.h=new eb;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.C=new google.ima.AdDisplayContainer(this.o,this.i);this.C.initialize();this.l=new google.ima.AdsLoader(this.C);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.8.5");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,
674
+ google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){cp(f,g)});this.h.D(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){dp(f,g)});this.h.D(this.i,"ended",function(){f.l.contentComplete()});this.h.na(this.i,"play",function(){f.F=!0})}bp.prototype.configure=function(a){this.s=a};bp.prototype.stop=function(){this.g&&this.g.stop();this.o&&Um(this.o)};
675
+ bp.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy();this.C.destroy()};function dp(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new T("ad-error",b));ep(a,null);a.m(new T("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
676
+ function cp(a,b){a.m(new T("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));if(a.s.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.B);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.D(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.D(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.B);a.m(new T("ima-ad-manager-loaded",(new Map).set("imaAdManager",
677
+ a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=u(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.m(new T("ad-cue-points-changed",(new Map).set("cuepoints",b)))}fp(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,gp(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.D(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,gp(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.A=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,
678
+ a.i.offsetHeight,gp(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.A.observe(a.i)):a.h.D(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,gp(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.F||a.s.skipPlayDetection?a.g.start():a.h.na(a.i,"play",function(){a.F=!0;a.g.start()})}catch(f){ep(a,null)}}
679
679
  function gp(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
680
- function fp(a){function b(c,d){c=(new Map).set("originalEvent",c);a.m(new S(d,c))}a.h.D(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){dp(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){hp(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.STARTED,function(c){hp(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.D(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
680
+ function fp(a){function b(c,d){c=(new Map).set("originalEvent",c);a.m(new T(d,c))}a.h.D(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){dp(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){hp(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.STARTED,function(c){hp(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.D(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
681
681
  function(c){b(c,"ad-third-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){ep(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){ep(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.D(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.D(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
682
682
  a.h.D(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.D(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.D(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.D(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.D(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.D(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});
683
683
  a.h.D(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.D(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.D(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.D(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.D(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.D(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.D(a.g,
684
684
  google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.D(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.D(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.D(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}
685
- function hp(a,b){var c=b.getAd();c?(a.j=new ap(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.m(new S("ad-started",b)),a.j.isLinear()&&(a.o.setAttribute("ad-active","true"),a.s.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.l=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):Wa("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
686
- function ep(a,b){a.m(new S("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.o.removeAttribute("ad-active"),a.s.customPlayheadTracker||a.i.ended||a.i.play())};function ip(a,b,c,d,e){this.h=a;this.g=e;this.i=b;this.j=c;this.l=d}r=ip.prototype;r.getDuration=function(){return this.h.durationInSeconds};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime};r.isPaused=function(){return this.g.paused};r.isSkippable=function(){return this.h.skipOffset?!0:!1};
685
+ function hp(a,b){var c=b.getAd();c?(a.j=new ap(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.m(new T("ad-started",b)),a.j.isLinear()&&(a.o.setAttribute("ad-active","true"),a.s.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.l=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):Wa("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
686
+ function ep(a,b){a.m(new T("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.o.removeAttribute("ad-active"),a.s.customPlayheadTracker||a.i.ended||a.i.play())};function ip(a,b,c,d,e){this.h=a;this.g=e;this.i=b;this.j=c;this.l=d}r=ip.prototype;r.getDuration=function(){return this.h.durationInSeconds};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime};r.isPaused=function(){return this.g.paused};r.isSkippable=function(){return this.h.skipOffset?!0:!1};
687
687
  r.getTimeUntilSkippable=function(){if(!this.h.skipOffset)return this.getRemainingTime();var a=this.getRemainingTime()-this.h.skipOffset;return Math.max(a,0)};r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};r.skip=function(){this.g.currentTime+=this.getRemainingTime()};r.pause=function(){return this.g.pause()};r.play=function(){return this.g.play()};r.getVolume=function(){return this.g.volume};r.setVolume=function(a){this.g.volume=a};r.isMuted=function(){return this.g.muted};
688
688
  r.isLinear=function(){return this.l};r.resize=function(){};r.setMuted=function(a){this.g.muted=a};r.getSequenceLength=function(){return this.j?this.j:1};r.getPositionInSequence=function(){return this.i?this.i:1};r.getTitle=function(){return this.h.adTitle};r.getDescription=function(){return""};r.getVastMediaBitrate=function(){return 0};r.getVastMediaHeight=function(){return 0};r.getVastMediaWidth=function(){return 0};r.getAdId=function(){return this.h.adId};r.getCreativeAdId=function(){return this.h.creativeId};
689
689
  r.getAdvertiserName=function(){return""};r.getMediaUrl=function(){return null};r.getTimeOffset=function(){return 0};r.getPodIndex=function(){return 0};r.release=function(){this.j=this.i=this.g=this.h=null};P("shaka.ads.MediaTailorAd",ip);ip.prototype.release=ip.prototype.release;ip.prototype.getPodIndex=ip.prototype.getPodIndex;ip.prototype.getTimeOffset=ip.prototype.getTimeOffset;ip.prototype.getMediaUrl=ip.prototype.getMediaUrl;ip.prototype.getAdvertiserName=ip.prototype.getAdvertiserName;
690
690
  ip.prototype.getCreativeAdId=ip.prototype.getCreativeAdId;ip.prototype.getAdId=ip.prototype.getAdId;ip.prototype.getVastMediaWidth=ip.prototype.getVastMediaWidth;ip.prototype.getVastMediaHeight=ip.prototype.getVastMediaHeight;ip.prototype.getVastMediaBitrate=ip.prototype.getVastMediaBitrate;ip.prototype.getDescription=ip.prototype.getDescription;ip.prototype.getTitle=ip.prototype.getTitle;ip.prototype.getPositionInSequence=ip.prototype.getPositionInSequence;ip.prototype.getSequenceLength=ip.prototype.getSequenceLength;
691
691
  ip.prototype.setMuted=ip.prototype.setMuted;ip.prototype.resize=ip.prototype.resize;ip.prototype.isLinear=ip.prototype.isLinear;ip.prototype.isMuted=ip.prototype.isMuted;ip.prototype.setVolume=ip.prototype.setVolume;ip.prototype.getVolume=ip.prototype.getVolume;ip.prototype.play=ip.prototype.play;ip.prototype.pause=ip.prototype.pause;ip.prototype.skip=ip.prototype.skip;ip.prototype.canSkipNow=ip.prototype.canSkipNow;ip.prototype.getTimeUntilSkippable=ip.prototype.getTimeUntilSkippable;
692
- ip.prototype.isSkippable=ip.prototype.isSkippable;ip.prototype.isPaused=ip.prototype.isPaused;ip.prototype.getRemainingTime=ip.prototype.getRemainingTime;ip.prototype.getMinSuggestedDuration=ip.prototype.getMinSuggestedDuration;ip.prototype.getDuration=ip.prototype.getDuration;function jp(a,b,c,d){this.B=a;this.K=b;this.g=c;this.l=null;this.Y=NaN;this.i=d;this.I=!1;this.A=null;this.j=[];this.N=[];this.L=this.C=this.h=null;this.F=new Map;this.m=[];this.s=[];this.G="";this.T=!0;this.H="";this.o=new db}jp.prototype.stop=function(){for(var a=u(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.o.Kb(b.target,b.type,b.listener);kp(this);this.m=[];this.s=[];this.G="";this.T=!0;this.H="";this.A=null;this.j=[];this.N=[];this.F.clear()};
692
+ ip.prototype.isSkippable=ip.prototype.isSkippable;ip.prototype.isPaused=ip.prototype.isPaused;ip.prototype.getRemainingTime=ip.prototype.getRemainingTime;ip.prototype.getMinSuggestedDuration=ip.prototype.getMinSuggestedDuration;ip.prototype.getDuration=ip.prototype.getDuration;function jp(a,b,c,d){this.B=a;this.K=b;this.g=c;this.l=null;this.Y=NaN;this.i=d;this.I=!1;this.A=null;this.j=[];this.N=[];this.L=this.C=this.h=null;this.F=new Map;this.m=[];this.s=[];this.G="";this.T=!0;this.H="";this.o=new eb}jp.prototype.stop=function(){for(var a=u(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.o.Kb(b.target,b.type,b.listener);kp(this);this.m=[];this.s=[];this.G="";this.T=!0;this.H="";this.A=null;this.j=[];this.N=[];this.F.clear()};
693
693
  jp.prototype.release=function(){this.stop();this.o&&this.o.release()};jp.prototype.onManifestUpdated=function(a){this.I=a;""!=this.G&&(lp(this,this.G,this.T),this.T=!1)};jp.prototype.getCuePoints=function(){for(var a=[],b=u(this.j),c=b.next();!c.done;c=b.next()){c=u(c.value.ads);for(var d=c.next();!d.done;d=c.next())d=d.value,a.push({start:d.startTimeInSeconds,end:d.startTimeInSeconds+d.durationInSeconds})}return a};
694
- function mp(a,b,c){var d,e,f,g,h,k,l,m,n,q,p;L(function(t){if(1==t.g)return d=hg([b],Pf()),d.method="POST",c&&(e=JSON.stringify(c),d.body=nd(e)),f=a.K.request(7,d),ra(t,2),C(t,f.promise,4);if(2!=t.g){g=t.h;h=hd(g.data);k=JSON.parse(h);if(k.manifestUrl&&k.trackingUrl)l=new rc(b),m=new rc(k.trackingUrl),a.G=l.resolve(m).toString(),n=Date.now()/1E3,q=n-a.Y,a.i(new S("ads-loaded",(new Map).set("loadTime",q))),p=new rc(k.manifestUrl),a.l.resolve(l.resolve(p).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");
694
+ function mp(a,b,c){var d,e,f,g,h,k,l,m,n,q,p;L(function(t){if(1==t.g)return d=hg([b],Pf()),d.method="POST",c&&(e=JSON.stringify(c),d.body=nd(e)),f=a.K.request(7,d),ra(t,2),C(t,f.promise,4);if(2!=t.g){g=t.h;h=hd(g.data);k=JSON.parse(h);if(k.manifestUrl&&k.trackingUrl)l=new rc(b),m=new rc(k.trackingUrl),a.G=l.resolve(m).toString(),n=Date.now()/1E3,q=n-a.Y,a.i(new T("ads-loaded",(new Map).set("loadTime",q))),p=new rc(k.manifestUrl),a.l.resolve(l.resolve(p).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");
695
695
  return ta(t,0)}va(t);if(!a.H.length)return a.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),a.l=null,t.return();a.l.resolve(a.H);a.l=null;F(t)})}
696
- function lp(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x,w,z;L(function(v){if(1==v.g)return d=hg([b],Pf()),e=a.K.request(7,d),ra(v,2),C(v,e.promise,4);if(2!=v.g){f=v.h;g=[];h=hd(f.data);k=JSON.parse(h);if(0<k.avails.length){if(JSON.stringify(a.j)!=JSON.stringify(k.avails)){a.j=k.avails;l=u(a.j);for(m=l.next();!m.done;m=l.next())for(n=m.value,q=u(n.nonLinearAdsList),p=q.next();!p.done;p=q.next())for(t=p.value,x=u(t.nonLinearAdList),w=x.next();!w.done;w=x.next())z=w.value,np(a,z);g=a.getCuePoints();a.i(new S("ad-cue-points-changed",
697
- (new Map).set("cuepoints",g)))}}else a.j.length&&a.i(new S("ad-cue-points-changed",(new Map).set("cuepoints",g))),kp(a),a.j=[];c&&(a.I||0<g.length)&&op(a);return ta(v,0)}va(v);F(v)})}
696
+ function lp(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x,w,z;L(function(v){if(1==v.g)return d=hg([b],Pf()),e=a.K.request(7,d),ra(v,2),C(v,e.promise,4);if(2!=v.g){f=v.h;g=[];h=hd(f.data);k=JSON.parse(h);if(0<k.avails.length){if(JSON.stringify(a.j)!=JSON.stringify(k.avails)){a.j=k.avails;l=u(a.j);for(m=l.next();!m.done;m=l.next())for(n=m.value,q=u(n.nonLinearAdsList),p=q.next();!p.done;p=q.next())for(t=p.value,x=u(t.nonLinearAdList),w=x.next();!w.done;w=x.next())z=w.value,np(a,z);g=a.getCuePoints();a.i(new T("ad-cue-points-changed",
697
+ (new Map).set("cuepoints",g)))}}else a.j.length&&a.i(new T("ad-cue-points-changed",(new Map).set("cuepoints",g))),kp(a),a.j=[];c&&(a.I||0<g.length)&&op(a);return ta(v,0)}va(v);F(v)})}
698
698
  function np(a,b){var c,d,e,f,g,h,k,l;L(function(m){if(1==m.g){if(!b.staticResource)return m.return();c=pp(b);if(d=a.F.get(c))return m.return();e=hg([b.staticResource],Pf());f=a.K.request(7,e);ra(m,2);a.F.set(c,[]);return C(m,f.promise,4)}if(2!=m.g)return g=m.h,h=hd(g.data),k=JSON.parse(h),l=k.apps,a.F.set(c,l),ta(m,0);va(m);a.F.delete(c);F(m)})}
699
699
  function pp(a){return[a.adId,a.adParameters,a.adSystem,a.adTitle,a.creativeAdId,a.creativeId,a.creativeSequence,a.height,a.width,a.staticResource].join("")}function op(a){qp(a);a.I||(rp(a),a.o.D(a.g,"seeked",function(){rp(a)}),a.o.D(a.g,"ended",function(){kp(a)}));a.o.D(a.g,"timeupdate",function(){qp(a)})}
700
700
  function rp(a){var b=a.g.currentTime;if(0!=b&&null==a.A){for(var c,d,e=u(a.j),f=e.next();!f.done;f=e.next()){f=f.value;for(var g=u(f.ads),h=g.next();!h.done;h=g.next())if(h=h.value,!d)h.startTimeInSeconds<b&&(d=h,c=f);else if(h.startTimeInSeconds<b&&h.startTimeInSeconds>d.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break}}c&&d&&!a.N.includes(d.adId)&&(a.A=b,a.g.currentTime=c.startTimeInSeconds)}}
@@ -705,31 +705,31 @@ if(a.h)break;for(f=0;f<e.nonLinearAdsList.length;f++)if(g=e.nonLinearAdsList[f],
705
705
  function kp(a){if(a.h){for(;a.B.lastChild;)a.B.removeChild(a.B.firstChild);a.I||a.N.push(a.C.adId);sp(a,"complete");for(var b=u(a.m),c=b.next();!c.done;c=b.next())c=c.value,a.o.Kb(c.target,c.type,c.listener);a.m=[];a.s=[];b=a.h.getPositionInSequence();c=a.h.getSequenceLength();b===c&&sp(a,"breakEnd");a.h=null;a.C=null;a.L=null}}
706
706
  function tp(a){var b=!1;a.g.paused?b=!0:(sp(a,"impression"),sp(a,"start"));a.m.push({target:a.g,type:"volumechange",listener:function(){a.g.muted&&sp(a,"mute")}});a.m.push({target:a.g,type:"volumechange",listener:function(){a.g.muted||sp(a,"unmute")}});a.m.push({target:a.g,type:"play",listener:function(){b?(sp(a,"impression"),sp(a,"start"),b=!1):sp(a,"resume")}});a.m.push({target:a.g,type:"pause",listener:function(){sp(a,"pause")}});for(var c=u(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.o.D(d.target,
707
707
  d.type,d.listener)}
708
- function sp(a,b){var c=a.C.trackingEvents.find(function(e){return e.eventType==b});c||(c=a.L.adBreakTrackingEvents.find(function(e){return e.eventType==b}));if(c){c=u(c.beaconUrls);for(var d=c.next();!d.done;d=c.next())(d=d.value)&&""!=d&&(d=hg([d],Pf()),d.method="POST",a.K.request(7,d))}switch(b){case "impression":a.i(new S("ad-impression"));break;case "start":a.i(new S("ad-started",(new Map).set("ad",a.h)));break;case "mute":a.i(new S("ad-muted"));break;case "unmute":a.i(new S("ad-volume-changed"));break;
709
- case "resume":a.i(new S("ad-resumed"));break;case "pause":a.i(new S("ad-paused"));break;case "firstQuartile":a.i(new S("ad-first-quartile"));break;case "midpoint":a.i(new S("ad-midpoint"));break;case "thirdQuartile":a.i(new S("ad-third-quartile"));break;case "complete":a.i(new S("ad-complete"));a.i(new S("ad-stopped"));break;case "breakStart":a.B.setAttribute("ad-active","true");break;case "breakEnd":a.B.removeAttribute("ad-active")}};function up(a,b){this.g=a;this.i=null;this.h=b}r=up.prototype;r.getDuration=function(){return this.i?this.i.duration:-1};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1};r.isPaused=function(){return this.h.paused};r.isSkippable=function(){return this.g.isSkippable()};r.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
708
+ function sp(a,b){var c=a.C.trackingEvents.find(function(e){return e.eventType==b});c||(c=a.L.adBreakTrackingEvents.find(function(e){return e.eventType==b}));if(c){c=u(c.beaconUrls);for(var d=c.next();!d.done;d=c.next())(d=d.value)&&""!=d&&(d=hg([d],Pf()),d.method="POST",a.K.request(7,d))}switch(b){case "impression":a.i(new T("ad-impression"));break;case "start":a.i(new T("ad-started",(new Map).set("ad",a.h)));break;case "mute":a.i(new T("ad-muted"));break;case "unmute":a.i(new T("ad-volume-changed"));break;
709
+ case "resume":a.i(new T("ad-resumed"));break;case "pause":a.i(new T("ad-paused"));break;case "firstQuartile":a.i(new T("ad-first-quartile"));break;case "midpoint":a.i(new T("ad-midpoint"));break;case "thirdQuartile":a.i(new T("ad-third-quartile"));break;case "complete":a.i(new T("ad-complete"));a.i(new T("ad-stopped"));break;case "breakStart":a.B.setAttribute("ad-active","true");break;case "breakEnd":a.B.removeAttribute("ad-active")}};function up(a,b){this.g=a;this.i=null;this.h=b}r=up.prototype;r.getDuration=function(){return this.i?this.i.duration:-1};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1};r.isPaused=function(){return this.h.paused};r.isSkippable=function(){return this.g.isSkippable()};r.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
710
710
  r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};r.skip=function(){this.h.currentTime+=this.getRemainingTime()};r.pause=function(){return this.h.pause()};r.play=function(){return this.h.play()};r.getVolume=function(){return this.h.volume};r.setVolume=function(a){this.h.volume=a};r.isMuted=function(){return this.h.muted};r.isLinear=function(){return!0};r.resize=function(){};r.setMuted=function(a){this.h.muted=a};
711
711
  r.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};r.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.g.getTitle()};r.getDescription=function(){return this.g.getDescription()};r.getVastMediaBitrate=function(){return 0};r.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};r.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};r.getAdId=function(){return this.g.getAdId()};
712
712
  r.getCreativeAdId=function(){return this.g.getCreativeAdId()};r.getAdvertiserName=function(){return this.g.getAdvertiserName()};r.getMediaUrl=function(){return null};r.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};r.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};r.release=function(){this.h=this.i=this.g=null};P("shaka.ads.ServerSideAd",up);up.prototype.release=up.prototype.release;up.prototype.getPodIndex=up.prototype.getPodIndex;
713
713
  up.prototype.getTimeOffset=up.prototype.getTimeOffset;up.prototype.getMediaUrl=up.prototype.getMediaUrl;up.prototype.getAdvertiserName=up.prototype.getAdvertiserName;up.prototype.getCreativeAdId=up.prototype.getCreativeAdId;up.prototype.getAdId=up.prototype.getAdId;up.prototype.getVastMediaWidth=up.prototype.getVastMediaWidth;up.prototype.getVastMediaHeight=up.prototype.getVastMediaHeight;up.prototype.getVastMediaBitrate=up.prototype.getVastMediaBitrate;up.prototype.getDescription=up.prototype.getDescription;
714
714
  up.prototype.getTitle=up.prototype.getTitle;up.prototype.getPositionInSequence=up.prototype.getPositionInSequence;up.prototype.getSequenceLength=up.prototype.getSequenceLength;up.prototype.setMuted=up.prototype.setMuted;up.prototype.resize=up.prototype.resize;up.prototype.isLinear=up.prototype.isLinear;up.prototype.isMuted=up.prototype.isMuted;up.prototype.setVolume=up.prototype.setVolume;up.prototype.getVolume=up.prototype.getVolume;up.prototype.play=up.prototype.play;up.prototype.pause=up.prototype.pause;
715
- up.prototype.skip=up.prototype.skip;up.prototype.canSkipNow=up.prototype.canSkipNow;up.prototype.getTimeUntilSkippable=up.prototype.getTimeUntilSkippable;up.prototype.isSkippable=up.prototype.isSkippable;up.prototype.isPaused=up.prototype.isPaused;up.prototype.getRemainingTime=up.prototype.getRemainingTime;up.prototype.getMinSuggestedDuration=up.prototype.getMinSuggestedDuration;up.prototype.getDuration=up.prototype.getDuration;function vp(a,b,c,d){var e=this;this.s=a;this.l=b;this.j=null;this.F=NaN;this.i=d;this.G=!1;this.A=this.m=this.o=null;this.B="";this.C=[];this.h=new db;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.s,a);this.i(new S("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){wp(e,f)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.B.length?
716
- e.j.resolve(e.B):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new up(f,e.l);e.A&&(e.m.i=e.A);e.i(new S("ad-started",(new Map).set("ad",e.m)));e.s.setAttribute("ad-active","true")});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.s.removeAttribute("ad-active");
717
- var f=e.l.currentTime;e.o&&e.o>f&&(e.l.currentTime=e.o,e.o=null)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.A=f.getStreamData().adProgressData;e.m&&(e.m.i=e.A)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new S("ad-first-quartile"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new S("ad-midpoint"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new S("ad-third-quartile"))});
718
- this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new S("ad-complete"));e.i(new S("ad-stopped"));e.s.removeAttribute("ad-active");e.m=null});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new S("ad-skipped"));e.i(new S("ad-stopped"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=u(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.C=
719
- f;e.i(new S("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}r=vp.prototype;r.configure=function(){};r.stop=function(){this.B="";this.o=null;this.C=[]};r.release=function(){this.stop();this.h&&this.h.release()};r.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};r.getCuePoints=function(){return this.C};
720
- function wp(a,b){a.i(new S("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.G||a.h.D(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.o=c,a.l.currentTime=d.start)}})};function Y(){ag.call(this);this.g=this.h=this.i=null;this.j=new $o;this.m=navigator.language;this.l=null}na(Y,ag);r=Y.prototype;r.setLocale=function(a){this.m=a};r.configure=function(a){this.l=a;this.i&&this.i.configure(this.l);this.g&&this.g.configure(this.l)};r.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new Q(2,10,1E4);this.i&&this.i.release();this.i=new bp(a,b,this.m,c,function(e){return xp(d,e)});this.i.configure(this.l)};
721
- r.release=function(){this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);ag.prototype.release.call(this)};r.onAssetUnload=function(){this.i&&this.i.stop();this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new S("ad-stopped"));this.j=new $o};r.requestClientSideAds=function(a){if(!this.i)throw new Q(1,10,10001);var b=this.i;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.F=Date.now()/1E3;b.l.requestAds(a)};
715
+ up.prototype.skip=up.prototype.skip;up.prototype.canSkipNow=up.prototype.canSkipNow;up.prototype.getTimeUntilSkippable=up.prototype.getTimeUntilSkippable;up.prototype.isSkippable=up.prototype.isSkippable;up.prototype.isPaused=up.prototype.isPaused;up.prototype.getRemainingTime=up.prototype.getRemainingTime;up.prototype.getMinSuggestedDuration=up.prototype.getMinSuggestedDuration;up.prototype.getDuration=up.prototype.getDuration;function vp(a,b,c,d){var e=this;this.s=a;this.l=b;this.j=null;this.F=NaN;this.i=d;this.G=!1;this.A=this.m=this.o=null;this.B="";this.C=[];this.h=new eb;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.s,a);this.i(new T("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){wp(e,f)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.B.length?
716
+ e.j.resolve(e.B):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new up(f,e.l);e.A&&(e.m.i=e.A);e.i(new T("ad-started",(new Map).set("ad",e.m)));e.s.setAttribute("ad-active","true")});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.s.removeAttribute("ad-active");
717
+ var f=e.l.currentTime;e.o&&e.o>f&&(e.l.currentTime=e.o,e.o=null)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.A=f.getStreamData().adProgressData;e.m&&(e.m.i=e.A)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new T("ad-first-quartile"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new T("ad-midpoint"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new T("ad-third-quartile"))});
718
+ this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new T("ad-complete"));e.i(new T("ad-stopped"));e.s.removeAttribute("ad-active");e.m=null});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new T("ad-skipped"));e.i(new T("ad-stopped"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=u(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.C=
719
+ f;e.i(new T("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}r=vp.prototype;r.configure=function(){};r.stop=function(){this.B="";this.o=null;this.C=[]};r.release=function(){this.stop();this.h&&this.h.release()};r.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};r.getCuePoints=function(){return this.C};
720
+ function wp(a,b){a.i(new T("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.G||a.h.D(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.o=c,a.l.currentTime=d.start)}})};function Y(){ag.call(this);this.g=this.h=this.i=null;this.j=new $o;this.m=navigator.language;this.l=null}na(Y,ag);r=Y.prototype;r.setLocale=function(a){this.m=a};r.configure=function(a){this.l=a;this.i&&this.i.configure(this.l);this.g&&this.g.configure(this.l)};r.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new Q(2,10,1E4);this.i&&this.i.release();this.i=new bp(a,b,this.m,c,function(e){return xp(d,e)});this.i.configure(this.l)};
721
+ r.release=function(){this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);ag.prototype.release.call(this)};r.onAssetUnload=function(){this.i&&this.i.stop();this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new T("ad-stopped"));this.j=new $o};r.requestClientSideAds=function(a){if(!this.i)throw new Q(1,10,10001);var b=this.i;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.G=Date.now()/1E3;b.l.requestAds(a)};
722
722
  r.updateClientSideAdsRenderingSettings=function(a){if(!this.i)throw new Q(1,10,10001);var b=this.i;b.B=a;b.g&&b.g.updateAdsRenderingSettings(b.B)};r.initMediaTailor=function(a,b,c){var d=this;this.h&&this.h.release();this.h=new jp(a,b,c,function(e){return xp(d,e)})};r.requestMediaTailorStream=function(a,b,c){if(!this.h)throw new Q(1,10,10005);var d=this.h;c=void 0===c?"":c;d.l?a=Promise.reject(new Q(1,10,10004)):(d.l=new Rf,mp(d,a,b),d.H=c||"",d.Y=Date.now()/1E3,a=d.l);return a};
723
- r.addMediaTailorTrackingUrl=function(a){if(!this.h)throw new Q(1,10,10005);var b=this.h;b.G=a;b.i(new S("ads-loaded",(new Map).set("loadTime",0)))};r.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new Q(2,10,10002);this.g&&this.g.release();this.g=new vp(a,b,this.m,function(d){return xp(c,d)});this.g.configure(this.l)};
724
- r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new Q(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Wa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.8.4";c=this.g;c.j?a=Promise.reject(new Q(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
725
- (c.G=!0),c.j=new Rf,c.g.requestStream(a),c.B=b||"",c.F=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new Q(1,10,10003);(a.mpt||a.mpv)&&Wa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.8.4";this.g.g.replaceAdTagParameters(a)};
723
+ r.addMediaTailorTrackingUrl=function(a){if(!this.h)throw new Q(1,10,10005);var b=this.h;b.G=a;b.i(new T("ads-loaded",(new Map).set("loadTime",0)))};r.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new Q(2,10,10002);this.g&&this.g.release();this.g=new vp(a,b,this.m,function(d){return xp(c,d)});this.g.configure(this.l)};
724
+ r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new Q(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Wa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.8.5";c=this.g;c.j?a=Promise.reject(new Q(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
725
+ (c.G=!0),c.j=new Rf,c.g.requestStream(a),c.B=b||"",c.F=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new Q(1,10,10003);(a.mpt||a.mpv)&&Wa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.8.5";this.g.g.replaceAdTagParameters(a)};
726
726
  r.getServerSideCuePoints=function(){pb("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};r.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.h&&(a=a.concat(this.h.getCuePoints()));return a};r.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};r.onManifestUpdated=function(a){if(this.h)this.h.onManifestUpdated(a)};
727
727
  r.onDashTimedMetadata=function(a){this.g&&"urn:google:dai:2018"==a.schemeIdUri&&this.g.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};r.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};r.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};
728
728
  function xp(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.j.h.push(b.loadTime);break;case "ad-started":a.j.g++;break;case "ad-complete":a.j.i++;break;case "ad-skipped":a.j.j++}a.dispatchEvent(b)}P("shaka.ads.AdManager",Y);Y.prototype.onCueMetadataChange=Y.prototype.onCueMetadataChange;Y.prototype.onHlsTimedMetadata=Y.prototype.onHlsTimedMetadata;Y.prototype.onDashTimedMetadata=Y.prototype.onDashTimedMetadata;Y.prototype.onManifestUpdated=Y.prototype.onManifestUpdated;Y.prototype.getStats=Y.prototype.getStats;
729
729
  Y.prototype.getCuePoints=Y.prototype.getCuePoints;Y.prototype.getServerSideCuePoints=Y.prototype.getServerSideCuePoints;Y.prototype.replaceServerSideAdTagParameters=Y.prototype.replaceServerSideAdTagParameters;Y.prototype.requestServerSideStream=Y.prototype.requestServerSideStream;Y.prototype.initServerSide=Y.prototype.initServerSide;Y.prototype.addMediaTailorTrackingUrl=Y.prototype.addMediaTailorTrackingUrl;Y.prototype.requestMediaTailorStream=Y.prototype.requestMediaTailorStream;
730
730
  Y.prototype.initMediaTailor=Y.prototype.initMediaTailor;Y.prototype.updateClientSideAdsRenderingSettings=Y.prototype.updateClientSideAdsRenderingSettings;Y.prototype.requestClientSideAds=Y.prototype.requestClientSideAds;Y.prototype.onAssetUnload=Y.prototype.onAssetUnload;Y.prototype.release=Y.prototype.release;Y.prototype.initClientSide=Y.prototype.initClientSide;Y.prototype.configure=Y.prototype.configure;Y.prototype.setLocale=Y.prototype.setLocale;Y.ADS_LOADED="ads-loaded";Y.AD_STARTED="ad-started";
731
731
  Y.AD_FIRST_QUARTILE="ad-first-quartile";Y.AD_MIDPOINT="ad-midpoint";Y.AD_THIRD_QUARTILE="ad-third-quartile";Y.AD_COMPLETE="ad-complete";Y.AD_STOPPED="ad-stopped";Y.AD_SKIPPED="ad-skipped";Y.AD_VOLUME_CHANGED="ad-volume-changed";Y.AD_MUTED="ad-muted";Y.AD_PAUSED="ad-paused";Y.AD_RESUMED="ad-resumed";Y.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Y.CUEPOINTS_CHANGED="ad-cue-points-changed";Y.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Y.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";
732
- Y.AD_CLICKED="ad-clicked";Y.AD_PROGRESS="ad-progress";Y.AD_BUFFERING="ad-buffering";Y.AD_IMPRESSION="ad-impression";Y.AD_DURATION_CHANGED="ad-duration-changed";Y.AD_CLOSED="ad-closed";Y.AD_LOADED="ad-loaded";Y.ALL_ADS_COMPLETED="all-ads-completed";Y.AD_LINEAR_CHANGED="ad-linear-changed";Y.AD_METADATA="ad-metadata";Y.AD_RECOVERABLE_ERROR="ad-recoverable-error";Y.AD_ERROR="ad-error";Y.AD_BREAK_READY="ad-break-ready";Y.AD_INTERACTION="ad-interaction";Kn=function(){return new Y};function yp(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof S){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);b=u(Object.getOwnPropertyNames(c));for(d=b.next();!d.done;d=b.next())e.add(d.value);b={};e=u(e);for(d=e.next();!d.done;d=e.next())d=d.value,b[d]=c[d];c={__type__:"Error",contents:b}}else if(c instanceof
732
+ Y.AD_CLICKED="ad-clicked";Y.AD_PROGRESS="ad-progress";Y.AD_BUFFERING="ad-buffering";Y.AD_IMPRESSION="ad-impression";Y.AD_DURATION_CHANGED="ad-duration-changed";Y.AD_CLOSED="ad-closed";Y.AD_LOADED="ad-loaded";Y.ALL_ADS_COMPLETED="all-ads-completed";Y.AD_LINEAR_CHANGED="ad-linear-changed";Y.AD_METADATA="ad-metadata";Y.AD_RECOVERABLE_ERROR="ad-recoverable-error";Y.AD_ERROR="ad-error";Y.AD_BREAK_READY="ad-break-ready";Y.AD_INTERACTION="ad-interaction";Kn=function(){return new Y};function yp(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof T){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);b=u(Object.getOwnPropertyNames(c));for(d=b.next();!d.done;d=b.next())e.add(d.value);b={};e=u(e);for(d=e.next();!d.done;d=e.next())d=d.value,b[d]=c[d];c={__type__:"Error",contents:b}}else if(c instanceof
733
733
  TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=u(Ci(c));for(d=c.next();!d.done;d=c.next())d=d.value,b=d.end,e.start.push(d.start),e.end.push(b);c=e}else c=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return c}})}
734
734
  function zp(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=Ap(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c;return d})}
735
735
  function Ap(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
@@ -743,29 +743,29 @@ r.cast=function(){var a=this;return L(function(b){if(!a.m)throw new Q(1,8,8E3);i
743
743
  r.get=function(a,b){var c=this;if("video"==a){if(Ep.includes(b))return function(){return c.vg.apply(c,[a,b].concat(y(Ha.apply(0,arguments))))}}else if("player"==a){if(Hp[b]&&!this.get("player","isLive")())return function(){};if(Kp.includes(b))return function(){return c.vg.apply(c,[a,b].concat(y(Ha.apply(0,arguments))))};if(Lp.includes(b))return function(){return c.ji.apply(c,[a,b].concat(y(Ha.apply(0,arguments))))};if(Fp[b]||Gp[b])return function(){return c.g[a][b]}}return this.g[a][b]};
744
744
  r.set=function(a,b,c){this.g[a][b]=c;Xp(this,{type:"set",targetName:a,property:b,value:c})};function Sp(a,b){var c=a.N();Qp=b;b.addUpdateListener(a.B);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.C);Np(a);Xp(a,{type:"init",initState:c,appData:a.o});a.j.resolve()}function Yp(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new Q(2,8,c,b))}
745
745
  r.vg=function(a,b){Xp(this,{type:"call",targetName:a,methodName:b,args:Ha.apply(2,arguments)})};r.ji=function(a,b){var c=Ha.apply(2,arguments),d=new Rf,e=this.H.toString();this.H++;this.i[e]=d;try{Xp(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Rp(a){var b=Qp;b.removeUpdateListener(a.B);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.C)}
746
- function Np(a){var b=Qp?"connected"==Qp.status:!1;if(a.h&&!b){a.F();for(var c in a.g)a.g[c]={};Pp(a)}a.h=b;a.I=b?Qp.receiver.friendlyName:"";a.l.kc()}function Pp(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new Q(1,7,7E3))}}function Xp(a,b){b=yp(b);var c=Qp;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},$a)}catch(d){throw b=new Q(2,8,8005,d),c=new S("error",(new Map).set("detail",b)),a.A("player",c),a.uc(),b;}}var Up=.02,Tp=!1,Qp=null,Wp=null,Op=new Set;
746
+ function Np(a){var b=Qp?"connected"==Qp.status:!1;if(a.h&&!b){a.F();for(var c in a.g)a.g[c]={};Pp(a)}a.h=b;a.I=b?Qp.receiver.friendlyName:"";a.l.kc()}function Pp(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new Q(1,7,7E3))}}function Xp(a,b){b=yp(b);var c=Qp;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},$a)}catch(d){throw b=new Q(2,8,8005,d),c=new T("error",(new Map).set("detail",b)),a.A("player",c),a.uc(),b;}}var Up=.02,Tp=!1,Qp=null,Wp=null,Op=new Set;
747
747
  function Vp(a){Wp?window.__onGCastApiAvailable=Wp:delete window.__onGCastApiAvailable;Wp=null;if(a)for(var b=u(Op),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function $p(a,b,c,d){d=void 0===d?!1:d;ag.call(this);var e=this;this.i=a;this.h=b;this.m=this.o=this.j=this.s=this.l=null;this.C=c;this.B=d;this.A=new Map;this.g=new Mp(c,function(){return aq(e)},function(){return bq(e)},function(f,g){return cq(e,f,g)},function(){return dq(e)},function(){return eq(e)},d);fq(this)}na($p,ag);r=$p.prototype;
748
748
  r.destroy=function(a){a&&this.g.uc();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.s=this.l=this.i=null;ag.prototype.release.call(this);return Promise.all(a)};r.Gh=function(){return this.l};r.vh=function(){return this.s};r.Zg=function(){return this.g.m&&Tp};r.Va=function(){return this.g.Va()};r.vf=function(){return this.g.vf()};
749
749
  r.cast=function(){var a=this;return L(function(b){return 1==b.g?C(b,a.g.cast(),2):a.h?C(b,a.h.lc(),0):b.return()})};r.Cf=function(a){this.g.Cf(a)};r.Ai=function(){Zp(this.g)};r.uc=function(){this.g.uc()};
750
750
  r.$g=function(a,b){b=void 0===b?!1:b;var c=this;return L(function(d){if(1==d.g){if(a==c.C&&b==c.B)return d.return();c.C=a;c.B=b;c.g.uc();return C(d,c.g.destroy(),2)}c.g=null;c.g=new Mp(a,function(){return aq(c)},function(){return bq(c)},function(e,f){return cq(c,e,f)},function(){return dq(c)},function(){return eq(c)},b);c.g.init();F(d)})};
751
- function fq(a){a.g.init();a.m=new db;for(var b=u(Bp),c=b.next();!c.done;c=b.next())a.m.D(a.i,c.value,function(f){a.g.Va()||(f=Zf(f),a.j.dispatchEvent(f))});for(var d in $f)a.m.D(a.h,$f[d],function(f){a.g.Va()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.Kc=e,Object.defineProperty(a.l,b.Kc,{configurable:!1,enumerable:!0,get:function(f){return function(){return gq(a,f.Kc)}}(b),set:function(f){return function(g){var h=f.Kc;a.g.Va()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={Kc:b.Kc};a.s={};hq(a,
751
+ function fq(a){a.g.init();a.m=new eb;for(var b=u(Bp),c=b.next();!c.done;c=b.next())a.m.D(a.i,c.value,function(f){a.g.Va()||(f=Zf(f),a.j.dispatchEvent(f))});for(var d in $f)a.m.D(a.h,$f[d],function(f){a.g.Va()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.Kc=e,Object.defineProperty(a.l,b.Kc,{configurable:!1,enumerable:!0,get:function(f){return function(){return gq(a,f.Kc)}}(b),set:function(f){return function(g){var h=f.Kc;a.g.Va()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={Kc:b.Kc};a.s={};hq(a,
752
752
  function(f){Object.defineProperty(a.s,f,{configurable:!1,enumerable:!0,get:function(){return iq(a,f)}})});jq(a);a.j=new ag;a.j.Vd=a.l;a.o=new ag;a.o.Vd=a.s}function jq(a){var b=new Map;hq(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.A.set(c,d):a.A.set(d,c)):b.set(d,c)})}
753
753
  function hq(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=u(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
754
- function eq(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.ad(),startTime:null};a.i.pause();for(var c=u(Dp),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=u(Ip);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=u(Jp);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function aq(a){var b=new S("caststatuschanged");a.dispatchEvent(b)}
755
- function bq(a){var b=new S(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
754
+ function eq(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.ad(),startTime:null};a.i.pause();for(var c=u(Dp),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=u(Ip);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=u(Jp);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function aq(a){var b=new T("caststatuschanged");a.dispatchEvent(b)}
755
+ function bq(a){var b=new T(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
756
756
  function dq(a){for(var b=u(Ip),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();d=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;c=null;d||(c=a.g.get("video","currentTime"));var g;(d=a.g.get("player","getTextTracks")())&&d.length&&(g=d.find(function(l){return l.active}));var h=a.g.get("player","isTextTrackVisible")();e&&(a.i.autoplay=!1,b=a.h.load(e,c));var k={};c=u(Dp);for(d=c.next();!d.done;d=c.next())d=
757
- d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=u(Dp),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=u(Jp);for(m=l.next();!m.done;m=l.next()){var n=m.value;m=n[1];n=a.g.get("player",n[0])();a.h[m](n)}a.h.Fg(h);g&&a.h.Af(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new S("error",l);a.h.dispatchEvent(l)})}
757
+ d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=u(Dp),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=u(Jp);for(m=l.next();!m.done;m=l.next()){var n=m.value;m=n[1];n=a.g.get("player",n[0])();a.h[m](n)}a.h.Fg(h);g&&a.h.Af(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new T("error",l);a.h.dispatchEvent(l)})}
758
758
  function gq(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.Va()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Va()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
759
759
  function iq(a,b){a.A.has(b)&&(b=a.A.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Zb()};if("getDrmEngine"==b)return function(){return a.h.B};if("getAdManager"==b)return function(){return a.h.bg()};
760
760
  if("setVideoContainer"==b)return function(c){return a.h.Jg(c)};if(a.g.Va()){if("getManifest"==b||"drmInfo"==b)return function(){Wa(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Wa(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Va()&&0==Object.keys(a.g.g.video).length&&(Fp[b]||Gp[b])||!a.g.Va()?a.h[b].bind(a.h):a.g.get("player",b)}
761
761
  function cq(a,b,c){a.g.Va()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}P("shaka.cast.CastProxy",$p);$p.prototype.changeReceiverId=$p.prototype.$g;$p.prototype.forceDisconnect=$p.prototype.uc;$p.prototype.suggestDisconnect=$p.prototype.Ai;$p.prototype.setAppData=$p.prototype.Cf;$p.prototype.cast=$p.prototype.cast;$p.prototype.receiverName=$p.prototype.vf;$p.prototype.isCasting=$p.prototype.Va;$p.prototype.canCast=$p.prototype.Zg;$p.prototype.getPlayer=$p.prototype.vh;
762
- $p.prototype.getVideo=$p.prototype.Gh;$p.prototype.destroy=$p.prototype.destroy;function kq(a,b,c,d){ag.call(this);var e=this;this.g=a;this.h=b;this.j=new db;this.H={video:a,player:b};this.C=c||function(){};this.I=d||function(f){return f};this.i=null;this.F=!1;this.o=!0;this.m=0;this.B=!1;this.A=!0;this.s=this.l=null;this.G=new Mc(function(){lq(e)});mq(this)}na(kq,ag);r=kq.prototype;r.isConnected=function(){return this.F};r.Mh=function(){return this.o};r.wi=function(a){this.i=a};r.eh=function(){this.i=null};
762
+ $p.prototype.getVideo=$p.prototype.Gh;$p.prototype.destroy=$p.prototype.destroy;function kq(a,b,c,d){ag.call(this);var e=this;this.g=a;this.h=b;this.j=new eb;this.H={video:a,player:b};this.C=c||function(){};this.I=d||function(f){return f};this.i=null;this.F=!1;this.o=!0;this.m=0;this.B=!1;this.A=!0;this.s=this.l=null;this.G=new Mc(function(){lq(e)});mq(this)}na(kq,ag);r=kq.prototype;r.isConnected=function(){return this.F};r.Mh=function(){return this.o};r.wi=function(a){this.i=a};r.eh=function(){this.i=null};
763
763
  r.xi=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};r.vi=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};r.ui=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
764
764
  r.destroy=function(){var a=this,b,c;return L(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.G&&(a.G.stop(),a.G=null),a.g=null,a.H=null,a.C=null,a.F=!1,a.o=!0,a.l=null,a.s=null,ag.prototype.release.call(a),C(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();F(d)})};
765
765
  function mq(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return nq(a)};b.onSenderDisconnected=function(){return nq(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&oq(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);oq(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.s=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.s.onMessage=function(e){return pq(a,
766
766
  e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return qq(a,e)};b.start();b=u(Bp);for(var c=b.next();!c.done;c=b.next())a.j.D(a.g,c.value,function(e){return rq(a,"video",e)});for(var d in $f)a.j.D(a.h,$f[d],function(e){return rq(a,"player",e)});a.j.D(a.g,"loadeddata",function(){a.B=!0});a.j.D(a.h,"loading",function(){a.o=!1;sq(a)});a.j.D(a.g,"playing",function(){a.o=!1;sq(a)});a.j.D(a.g,"pause",function(){sq(a)});a.j.D(a.h,"unloading",function(){a.o=!0;sq(a)});
767
- a.j.D(a.g,"ended",function(){(new Mc(function(){a.g&&a.g.ended&&(a.o=!0,sq(a))})).X(tq)})}function nq(a){a.m=0;a.A=!0;a.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;sq(a)}function sq(a){var b;L(function(c){if(1==c.g)return C(c,Promise.resolve(),2);if(!a.h)return c.return();b=new S("caststatuschanged");a.dispatchEvent(b);uq(a)||vq(a);F(c)})}
768
- function wq(a,b,c){var d,e,f,g,h,k,l,m,n,q;L(function(p){switch(p.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.C(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,ra(p,5),C(p,a.h.load(b.manifest,b.startTime),7)):C(p,Promise.resolve(),3);case 7:ta(p,3);break;case 5:return g=va(p),h=(new Map).set("detail",g),k=new S("error",h),a.h&&a.h.dispatchEvent(k),p.return();case 3:if(!a.h)return p.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)q=b.playerAfterLoad[n],a.h[n](q);
767
+ a.j.D(a.g,"ended",function(){(new Mc(function(){a.g&&a.g.ended&&(a.o=!0,sq(a))})).X(tq)})}function nq(a){a.m=0;a.A=!0;a.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;sq(a)}function sq(a){var b;L(function(c){if(1==c.g)return C(c,Promise.resolve(),2);if(!a.h)return c.return();b=new T("caststatuschanged");a.dispatchEvent(b);uq(a)||vq(a);F(c)})}
768
+ function wq(a,b,c){var d,e,f,g,h,k,l,m,n,q;L(function(p){switch(p.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.C(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,ra(p,5),C(p,a.h.load(b.manifest,b.startTime),7)):C(p,Promise.resolve(),3);case 7:ta(p,3);break;case 5:return g=va(p),h=(new Map).set("detail",g),k=new T("error",h),a.h&&a.h.dispatchEvent(k),p.return();case 3:if(!a.h)return p.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)q=b.playerAfterLoad[n],a.h[n](q);
769
769
  a.g.autoplay=f;b.manifest&&(a.g.play(),vq(a));F(p)}})}function rq(a,b,c){a.h&&(lq(a),oq(a,{type:"event",targetName:b,event:c},a.l))}
770
770
  function lq(a){a.G.X(xq);for(var b={video:{},player:{}},c=u(Cp),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.R())for(var e in Hp)0==a.m%Hp[e]&&(b.player[e]=a.h[e]());for(var f in Fp)0==a.m%Fp[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;oq(a,{type:"update",update:b},a.l);for(var g in Gp)0==a.m%Gp[g]&&(b={player:{}},b.player[g]=a.h[g](),oq(a,{type:"update",update:b},a.l));a.B&&(a.m+=
771
771
  1);uq(a)}function uq(a){return a.A&&(a.g.duration||a.h.R())?(yq(a),a.A=!1,!0):!1}function yq(a,b){var c={contentId:a.h.ad(),streamType:a.h.R()?"LIVE":"BUFFERED",contentType:""};a.h.R()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);vq(a,void 0===b?0:b,c)}
@@ -841,7 +841,7 @@ function Js(a,b,c,d,e,f,g,h){var k=d.yc.length;d.timeline&&d.timeline.length!=d.
841
841
  function Ks(a){return[a.J.Jb,a.ua.Jb,a.za.Jb].filter(ne).map(function(b){return Vg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.kg&&(a.kg=!0);var c=qd(b.attributes.media);b=bh(b,"mediaRange",gh,{start:0,end:null});return{Yh:c,start:b.start,end:b.end}})};function Ls(a,b,c,d,e,f,g,h){var k=Ms(a,g),l=Ns(a);Os(l);var m=ze(a);if(l.hd)return Fs(a,k),{vc:function(){var x=hs(l.hd,m.J.id,null,null,m.bandwidth||null,null);x=Ad(m.J.nb(),[x]);return Es(m,b,k,x,0,null,l.Bb)}};if(l.Da)return d||"image"===a.ua.contentType||(a.presentationTimeline.hf(l.Da),a.presentationTimeline.de(a.ha.start)),{vc:function(){return Ps(m,l,e,k,f,g,h)}};var n=null;d=d=null;a.za.id&&a.J.id&&(d=a.za.id+","+a.J.id,d=c[d])&&(n=d.segmentIndex);var q=a.ha.start,p=a.ha.duration?q+a.ha.duration:
842
842
  Infinity,t=!(a.Eb&&a.ha.Ze);n?(c=n,Qs(c,l,q,p,t,k),c.La(a.presentationTimeline.qb())):n=new Rs(l,a.J.id,a.bandwidth,a.J.nb,q,p,k,t,g,a.J.zf);l.timeline&&"image"!==a.ua.contentType&&a.presentationTimeline.sg(l.timeline,q);d&&a.Eb&&(d.segmentIndex=n);return{vc:function(){n instanceof Rs&&0==n.getNumReferences()&&Qs(n,l,q,p,t,k);return Promise.resolve(n)}}}function Ss(a){return a.qd}
843
843
  function Ns(a){var b=is(a,Ss),c=js(a,Ss,"media"),d=js(a,Ss,"index");return{Da:b.Da,timescale:b.timescale,rd:b.rd,Bb:b.Bb,Lf:b.Lf,timeline:b.timeline,zc:c&&qd(c),hd:d,mimeType:a.J.mimeType,codecs:a.J.codecs}}function Os(a){var b=a.hd?1:0;b+=a.timeline?1:0;b+=a.Da?1:0;if(0==b)throw new Q(2,4,4002);1!=b&&(a.hd&&(a.timeline=null),a.Da=null);if(!a.hd&&!a.zc)throw new Q(2,4,4002);}
844
- function Ps(a,b,c,d,e,f,g){function h(K){var M=(K-x)*t,O=M+b.Bb,N=M+n;M=N+t;var U=Math.min(M,l());N=new vi(N,U,function(){var R=O*w;"BigInt"in window&&R>Number.MAX_SAFE_INTEGER&&(R=BigInt(O)*BigInt(w));R=hs(z,B,K,null,v,R);return Ad(A(),[R])},0,null,d,D,n,l(),[],"",null,null,wi,f);N.codecs=a.J.codecs;N.mimeType=a.J.mimeType;N.i=M;return N}function k(){var K=[Math.max(m.qb(),n),Math.min(m.Gb(),l())].map(function(M){return M-n});K=[Math.ceil(K[0]/t),Math.ceil(K[1]/t)-1];a.J.Qb&&K[1]++;return K.map(function(M){return M+
844
+ function Ps(a,b,c,d,e,f,g){function h(K){var M=(K-x)*t,O=M+b.Bb,N=M+n;M=N+t;var R=Math.min(M,l());N=new vi(N,R,function(){var S=O*w;"BigInt"in window&&S>Number.MAX_SAFE_INTEGER&&(S=BigInt(O)*BigInt(w));S=hs(z,B,K,null,v,S);return Ad(A(),[S])},0,null,d,D,n,l(),[],"",null,null,wi,f);N.codecs=a.J.codecs;N.mimeType=a.J.mimeType;N.i=M;return N}function k(){var K=[Math.max(m.qb(),n),Math.min(m.Gb(),l())].map(function(M){return M-n});K=[Math.ceil(K[0]/t),Math.ceil(K[1]/t)-1];a.J.Qb&&K[1]++;return K.map(function(M){return M+
845
845
  x})}function l(){var K=null!=q&&e[q]||p;return K?n+K:Infinity}var m=a.presentationTimeline,n=a.ha.start,q=a.za.id,p=a.ha.duration,t=b.Da,x=b.rd,w=b.timescale,z=b.zc,v=a.bandwidth||null,B=a.J.id,A=a.J.nb,D=n-b.Bb,G=k();c=a.Eb?Math.max(G[0],G[1]-c+1):G[0];g=g||G[1];G=[];for(var J=c;J<=g;++J){var I=h(J);G.push(I)}var E=new Dk(G);G=m.Gb()<l();J=m.R();if(G||J){var H=Math.max(c,g+1);E.le(t,function(){var K=m.qb();E.La(K);var M=u(k());M.next();M=M.next().value;for(var O=[];H<=M;){var N=h(H);O.push(N);H++}return K>
846
846
  l()&&!O.length?null:O})}return Promise.resolve(E)}function Ms(a,b){var c=js(a,Ss,"initialization");if(!c)return null;c=qd(c);var d=a.J.id,e=a.bandwidth||null,f=a.J.nb;b=new qi(function(){var g=hs(c,d,null,null,e,null);return Ad(f(),[g])},0,null,zs(a),null,null,b);b.codecs=a.J.codecs;b.mimeType=a.J.mimeType;return b}function Rs(a,b,c,d,e,f,g,h,k,l){Dk.call(this,[]);this.h=a;this.F=b;this.B=c;this.C=d;this.i=e;this.l=f;this.s=g;this.A=k;this.G=l;h&&Ts(this)}na(Rs,Dk);r=Rs.prototype;
847
847
  r.getNumReferences=function(){return this.h?this.h.timeline.length:0};r.release=function(){Dk.prototype.release.call(this);this.h=null};r.La=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.getNumReferences()&&this.release())}};
@@ -856,12 +856,12 @@ function $s(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}Ws.
856
856
  function at(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e={},f=u(a.m),g=f.next();!g.done;e={Pb:e.Pb},g=f.next())if(e.Pb=g.value,g=b.get(e.Pb))d.push({rf:e.Pb,location:g});else if(g=a.F.find(function(k){return function(l){return l.Wi==k.Pb}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].Pg?(h=new rc(h),tc(h,g["URI-REPLACEMENT"].Pg),d.push({rf:e.Pb,location:h.toString()})):d.push({rf:e.Pb,location:h}))}e=Date.now();f=u(a.j.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
857
857
  h=a.j.get(g),e>h&&a.j.delete(g);d=d.filter(function(k){for(var l=u(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new rc(k.location)).wb))return!1;return!0});d.length&&(a.B=d[0].rf);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=u(a.h.split(",")),g=e.next();!g.done;g=e.next())if(f=b.get(g.value))a.B=a.h,d.push(f);if(!d.length)for(b=u(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Ad(a.i,d)};function bt(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.o=this.m=!1;this.s=new Set}r=bt.prototype;r.release=function(){for(var a=u(this.h.concat(this.g,this.l,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.l=[];this.i=[];this.j=[]};r.Fh=function(){return this.j};r.We=function(){return this.l.slice()};r.oh=function(){return this.i};
858
858
  function ct(a,b){var c=[],d=[],e=[],f=[];a=u(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[dt(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[et(n),n]})),l=new Map(h.textStreams.map(function(n){return[ft(n),n]}));h=new Map(h.imageStreams.map(function(n){return[gt(n),n]}));if(b){var m=ht(Id);l.set(ft(m),m);m=ht("image");h.set(gt(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{Rf:c,Ng:d,Kg:e,jg:f}}
859
- r.Uf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,U;return L(function(R){if(1==R.g){d=Kd;if(!b&&1==a.length)return e=ct(a,!1),f=e.Rf,g=e.Ng,h=e.Kg,k=e.jg,c.h=Array.from(f[0].values()),c.g=Array.from(g[0].values()),c.l=Array.from(h[0].values()),c.i=Array.from(k[0].values()),R.u(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.s.has(n.id)||(c.s.add(n.id),-1==l&&(l=m));if(-1==l)return R.return();q=ct(a,!0);p=q.Rf;t=q.Ng;x=q.Kg;w=q.jg;return C(R,Promise.all([it(c,c.h,p,l,jt,
860
- kt),it(c,c.g,t,l,jt,kt),it(c,c.l,x,l,jt,kt),it(c,c.i,w,l,jt,kt)]),2)}z=0;v=[];if(c.g.length&&c.h.length)for(I=u(c.h),E=I.next();!E.done;E=I.next())for(H=E.value,K=u(c.g),M=K.next();!M.done;M=K.next())O=M.value,N=ai(H.drmInfos,O.drmInfos),H.drmInfos.length&&O.drmInfos.length&&!N.length||(U=z++,v.push({id:U,language:H.language,disabledUntilTime:0,primary:H.primary,audio:H,video:O,bandwidth:(H.bandwidth||0)+(O.bandwidth||0),drmInfos:N,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));
861
- else for(B=c.g.length?c.g:c.h,A=u(B),D=A.next();!D.done;D=A.next())G=D.value,J=z++,v.push({id:J,language:G.language,disabledUntilTime:0,primary:G.primary,audio:G.type==d.S?G:null,video:G.type==d.fa?G:null,bandwidth:G.bandwidth||0,drmInfos:G.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});c.j=v;F(R)})};
862
- function lt(a){var b,c,d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N;return L(function(U){switch(U.g){case 1:b=Kd;if(1==a.length)return U.return(a[0]);c=a.map(function(R){return new Map(R.filter(function(V){return V.type===b.S}).map(function(V){return[dt(V),V]}))});d=a.map(function(R){return new Map(R.filter(function(V){return V.type===b.fa}).map(function(V){return[et(V),V]}))});e=a.map(function(R){return new Map(R.filter(function(V){return V.type===b.ma}).map(function(V){return[ft(V),V]}))});
863
- f=a.map(function(R){return new Map(R.filter(function(V){return V.type===b.ve}).map(function(V){return[gt(V),V]}))});g=u(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=mt(b.ma),k.set(ft(l),l);m=u(f);for(n=m.next();!n.done;n=m.next())q=n.value,p=mt(b.ve),q.set(gt(p),p);t=new bt;return C(U,it(t,[],c,0,nt,ot),2);case 2:return x=U.h,C(U,it(t,[],d,0,nt,ot),3);case 3:return w=U.h,C(U,it(t,[],e,0,nt,ot),4);case 4:return z=U.h,C(U,it(t,[],f,0,nt,ot),5);case 5:v=U.h;B=0;if(w.length&&x.length)for(I=u(x),E=
864
- I.next();!E.done;E=I.next())for(H=E.value,K=u(w),M=K.next();!M.done;M=K.next())O=M.value,N=B++,O.variantIds.push(N),H.variantIds.push(N);else for(A=w.concat(x),D=u(A),G=D.next();!G.done;G=D.next())J=G.value,J.variantIds=[B++];return U.return(w.concat(x).concat(z).concat(v))}})}
859
+ r.Uf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,R;return L(function(S){if(1==S.g){d=Kd;if(!b&&1==a.length)return e=ct(a,!1),f=e.Rf,g=e.Ng,h=e.Kg,k=e.jg,c.h=Array.from(f[0].values()),c.g=Array.from(g[0].values()),c.l=Array.from(h[0].values()),c.i=Array.from(k[0].values()),S.u(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.s.has(n.id)||(c.s.add(n.id),-1==l&&(l=m));if(-1==l)return S.return();q=ct(a,!0);p=q.Rf;t=q.Ng;x=q.Kg;w=q.jg;return C(S,Promise.all([it(c,c.h,p,l,jt,
860
+ kt),it(c,c.g,t,l,jt,kt),it(c,c.l,x,l,jt,kt),it(c,c.i,w,l,jt,kt)]),2)}z=0;v=[];if(c.g.length&&c.h.length)for(I=u(c.h),E=I.next();!E.done;E=I.next())for(H=E.value,K=u(c.g),M=K.next();!M.done;M=K.next())O=M.value,N=ai(H.drmInfos,O.drmInfos),H.drmInfos.length&&O.drmInfos.length&&!N.length||(R=z++,v.push({id:R,language:H.language,disabledUntilTime:0,primary:H.primary,audio:H,video:O,bandwidth:(H.bandwidth||0)+(O.bandwidth||0),drmInfos:N,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));
861
+ else for(B=c.g.length?c.g:c.h,A=u(B),D=A.next();!D.done;D=A.next())G=D.value,J=z++,v.push({id:J,language:G.language,disabledUntilTime:0,primary:G.primary,audio:G.type==d.S?G:null,video:G.type==d.fa?G:null,bandwidth:G.bandwidth||0,drmInfos:G.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});c.j=v;F(S)})};
862
+ function lt(a){var b,c,d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N;return L(function(R){switch(R.g){case 1:b=Kd;if(1==a.length)return R.return(a[0]);c=a.map(function(S){return new Map(S.filter(function(V){return V.type===b.S}).map(function(V){return[dt(V),V]}))});d=a.map(function(S){return new Map(S.filter(function(V){return V.type===b.fa}).map(function(V){return[et(V),V]}))});e=a.map(function(S){return new Map(S.filter(function(V){return V.type===b.ma}).map(function(V){return[ft(V),V]}))});
863
+ f=a.map(function(S){return new Map(S.filter(function(V){return V.type===b.ve}).map(function(V){return[gt(V),V]}))});g=u(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=mt(b.ma),k.set(ft(l),l);m=u(f);for(n=m.next();!n.done;n=m.next())q=n.value,p=mt(b.ve),q.set(gt(p),p);t=new bt;return C(R,it(t,[],c,0,nt,ot),2);case 2:return x=R.h,C(R,it(t,[],d,0,nt,ot),3);case 3:return w=R.h,C(R,it(t,[],e,0,nt,ot),4);case 4:return z=R.h,C(R,it(t,[],f,0,nt,ot),5);case 5:v=R.h;B=0;if(w.length&&x.length)for(I=u(x),E=
864
+ I.next();!E.done;E=I.next())for(H=E.value,K=u(w),M=K.next();!M.done;M=K.next())O=M.value,N=B++,O.variantIds.push(N),H.variantIds.push(N);else for(A=w.concat(x),D=u(A),G=D.next();!G.done;G=D.next())J=G.value,J.variantIds=[B++];return R.return(w.concat(x).concat(z).concat(v))}})}
865
865
  function it(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I;return L(function(E){switch(E.g){case 1:g=[];for(h=0;h<d;h++)g.push(new Set);for(k=d;k<c.length;k++)g.push(new Set(c[k].values()));l=u(b);m=l.next();case 2:if(m.done){E.u(4);break}n=m.value;return C(E,pt(a,n,c,d,f,g),5);case 5:q=E.h;if(!q)throw new Q(2,4,4037);m=l.next();E.u(2);break;case 4:p=u(g);for(t=p.next();!t.done;t=p.next())for(x=t.value,w=u(x),z=w.next();!z.done;z=w.next())v=z.value,(B=qt(a,v,c,e,f,g))&&b.push(B);A=u(g);for(t=
866
866
  A.next();!t.done;t=A.next())for(D=t.value,G={},J=u(D),z=J.next();!z.done;G={Bd:G.Bd},z=J.next())if(G.Bd=z.value,!rt(G.Bd)&&(I=b.some(function(H){return function(K){return st(a,H.Bd,K)}}(G))))throw new Q(2,4,4037);return E.return(b)}})}function pt(a,b,c,d,e,f){return L(function(g){if(1==g.g)return tt(a,c,b),b.matchedStreams?b.segmentIndex?C(g,ut(b,d),2):g.u(2):g.return(!1);vt(b,d,e,f);return g.return(!0)})}
867
867
  function ut(a,b){var c,d,e,f,g,h,k;return L(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=u(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return C(l,Promise.all(c),2)}if(a.segmentIndex instanceof Gk)for(h=b;h<d.length;h++)k=d[h],k.segmentIndex&&a.segmentIndex.h.push(k.segmentIndex);F(l)})}
@@ -892,13 +892,13 @@ r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(a){if(this.
892
892
  function Pt(a){var b,c,d,e,f,g,h;return L(function(k){if(1==k.g)return b=a.o,1<a.o.length&&a.h&&(c=at(a.h,"Location",!0),c.length&&(b=c)),d=hg(b,a.g.retryParameters),e=Date.now(),C(k,Rt(a,d,0,{type:4}),2);if(3!=k.g){f=k.h;if(!a.i)return k.return(0);f.uri&&f.uri!=f.originalUri&&!a.o.includes(f.uri)&&a.o.unshift(f.uri);return C(k,St(a,f.data,f.uri),3)}g=Date.now();h=(g-e)/1E3;a.H.sample(1,h);return k.return(h)})}
893
893
  function St(a,b,c){var d,e,f,g,h,k,l,m,n,q,p;return L(function(t){if(1==t.g){d=b;e=a.g.dash.manifestPreprocessor;f=am;if(e!=f){pb("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");g=Mt(d,"MPD");if(!g)throw new Q(2,4,4001,c);e(g);d=nd(g.outerHTML)}h=Og(d,"MPD");if(!h)throw new Q(2,4,4001,c);k=a.g.dash.manifestPreprocessorTXml;l=bm;k!=l&&k(h);if(m=a.g.dash.disableXlinkProcessing)return t.return(Tt(a,h,c));n=a.g.dash.xlinkFailGracefully;
894
894
  q=ns(h,a.g.retryParameters,n,c,a.i.networkingEngine);cg(a.F,q);return C(t,q.promise,2)}p=t.h;return t.return(Tt(a,p,c))})}
895
- function Tt(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,U,R,V,xa,Ca,eb,Fa,Va,ua,kb,yb,hb,Za,$e,xd,Zd,kd,Bc,$d,af,ae,yd,ri,tg,si,ti,bf,be,cf;return L(function(Sb){switch(Sb.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=Vg(b,"Location");h=u(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=Xg(l))q=Ad(d,[n])[0],m&&(a.h?$s(a.h,"Location",m,q):f.set(m,q)),e.push(q);a.h?(p=at(a.h,"Location",!0),0<p.length&&(d=a.o=p)):e.length&&(d=a.o=e);t=Promise.resolve();
895
+ function Tt(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,R,S,V,xa,Ca,db,Fa,Va,ua,kb,yb,hb,Za,cf,xd,Zd,kd,Bc,$d,df,ae,yd,si,tg,ti,ui,ef,be,ff;return L(function(Sb){switch(Sb.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=Vg(b,"Location");h=u(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=Xg(l))q=Ad(d,[n])[0],m&&(a.h?$s(a.h,"Location",m,q):f.set(m,q)),e.push(q);a.h?(p=at(a.h,"Location",!0),0<p.length&&(d=a.o=p)):e.length&&(d=a.o=e);t=Promise.resolve();
896
896
  if((x=Zg(b,"ContentSteering"))&&a.i){w=x.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=w;else if(a.h=new Ws(a.i),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=w,z=Xg(x))(v=bh(x,"queryBeforeStart",lh,!1))?t=Xs(a.h,z):Xs(a.h,z);B=u(f.keys());for(A=B.next();!A.done;A=B.next())D=A.value,G=f.get(D),$s(a.h,"Location",D,G)}J=Vg(b,"BaseURL");E=!1;if(a.h)for(H=u(J),K=H.next();!K.done;K=H.next())M=K.value,O=M.attributes.serviceLocation,N=Xg(M),O&&N&&($s(a.h,"BaseURL",O,N),E=!0);E&&a.h||
897
- (U=J.map(Xg),I=Ad(d,U));R=function(){return a.h&&E?at(a.h,"BaseURL"):I?I:[]};V=0;J&&J.length&&(V=bh(J[0],"availabilityTimeOffset",kh)||0);xa=a.g.dash.ignoreMinBufferTime;Ca=0;xa||(Ca=bh(b,"minBufferTime",fh)||0);a.G=bh(b,"minimumUpdatePeriod",fh,-1);eb=bh(b,"availabilityStartTime",eh);Fa=bh(b,"timeShiftBufferDepth",fh);Va=a.g.dash.ignoreSuggestedPresentationDelay;ua=null;Va||(ua=bh(b,"suggestedPresentationDelay",fh));kb=a.g.dash.ignoreMaxSegmentDuration;yb=null;kb||(yb=bh(b,"maxSegmentDuration",fh));
898
- hb=b.attributes.type||"static";if(a.j)for(Za=a.j.presentationTimeline,$e=u(Object.values(a.m)),xd=$e.next();!xd.done;xd=$e.next())Zd=xd.value,Zd.segmentIndex&&Zd.segmentIndex.La(Za.qb());else kd=a.g.defaultPresentationDelay||1.5*Ca,Bc=null!=ua?ua:kd,Za=new hk(eb,Bc,a.g.dash.autoCorrectDrift);Za.Ec("static"==hb);($d=Za.R())&&!isNaN(a.g.availabilityWindowOverride)&&(Fa=a.g.availabilityWindowOverride);null==Fa&&(Fa=Infinity);Za.ke(Fa);af=b.attributes.profiles||"";ae={Eb:"static"!=hb,presentationTimeline:Za,
899
- za:null,ha:null,ua:null,J:null,bandwidth:0,kg:!1,Qb:V,profiles:af.split(",")};yd=Ut(a,ae,R,b);ri=yd.duration;tg=yd.periods;"static"!=hb&&yd.Zf||Za.$a(ri||Infinity);a.C&&!a.s&&(si=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?Za.Bg(a.C):a.C&&Wa("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");Za.hf(yb||1);
900
- return C(Sb,a.l.Uf(tg,ae.Eb),2);case 2:return C(Sb,t,3);case 3:a.s&&(Ca=0,ti=null!=ua?ua:a.g.defaultPresentationDelay,Za.Df(ti));if(a.j){a.j.variants=a.l.j;bf=a.l.We();0<bf.length&&(a.j.textStreams=bf);a.j.imageStreams=a.l.i;a.i.filter(a.j);Sb.u(4);break}a.j={presentationTimeline:Za,variants:a.l.j,textStreams:a.l.We(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:Ca||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Vt(b)};if(!Za.Mg()){Sb.u(5);
901
- break}be=Vg(b,"UTCTiming");return C(Sb,Wt(a,R,be),6);case 6:cf=Sb.h;if(!a.i)return Sb.return();Za.Cg(cf);case 5:Za.Xd();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),F(Sb)}})}
897
+ (R=J.map(Xg),I=Ad(d,R));S=function(){return a.h&&E?at(a.h,"BaseURL"):I?I:[]};V=0;J&&J.length&&(V=bh(J[0],"availabilityTimeOffset",kh)||0);xa=a.g.dash.ignoreMinBufferTime;Ca=0;xa||(Ca=bh(b,"minBufferTime",fh)||0);a.G=bh(b,"minimumUpdatePeriod",fh,-1);db=bh(b,"availabilityStartTime",eh);Fa=bh(b,"timeShiftBufferDepth",fh);Va=a.g.dash.ignoreSuggestedPresentationDelay;ua=null;Va||(ua=bh(b,"suggestedPresentationDelay",fh));kb=a.g.dash.ignoreMaxSegmentDuration;yb=null;kb||(yb=bh(b,"maxSegmentDuration",fh));
898
+ hb=b.attributes.type||"static";if(a.j)for(Za=a.j.presentationTimeline,cf=u(Object.values(a.m)),xd=cf.next();!xd.done;xd=cf.next())Zd=xd.value,Zd.segmentIndex&&Zd.segmentIndex.La(Za.qb());else kd=a.g.defaultPresentationDelay||1.5*Ca,Bc=null!=ua?ua:kd,Za=new hk(db,Bc,a.g.dash.autoCorrectDrift);Za.Ec("static"==hb);($d=Za.R())&&!isNaN(a.g.availabilityWindowOverride)&&(Fa=a.g.availabilityWindowOverride);null==Fa&&(Fa=Infinity);Za.ke(Fa);df=b.attributes.profiles||"";ae={Eb:"static"!=hb,presentationTimeline:Za,
899
+ za:null,ha:null,ua:null,J:null,bandwidth:0,kg:!1,Qb:V,profiles:df.split(",")};yd=Ut(a,ae,S,b);si=yd.duration;tg=yd.periods;"static"!=hb&&yd.Zf||Za.$a(si||Infinity);a.C&&!a.s&&(ti=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?Za.Bg(a.C):a.C&&Wa("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");Za.hf(yb||1);
900
+ return C(Sb,a.l.Uf(tg,ae.Eb),2);case 2:return C(Sb,t,3);case 3:a.s&&(Ca=0,ui=null!=ua?ua:a.g.defaultPresentationDelay,Za.Df(ui));if(a.j){a.j.variants=a.l.j;ef=a.l.We();0<ef.length&&(a.j.textStreams=ef);a.j.imageStreams=a.l.i;a.i.filter(a.j);Sb.u(4);break}a.j={presentationTimeline:Za,variants:a.l.j,textStreams:a.l.We(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:Ca||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Vt(b)};if(!Za.Mg()){Sb.u(5);
901
+ break}be=Vg(b,"UTCTiming");return C(Sb,Wt(a,S,be),6);case 6:ff=Sb.h;if(!a.i)return Sb.return();Za.Cg(ff);case 5:Za.Xd();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),F(Sb)}})}
902
902
  function Vt(a){var b=Zg(a,"ServiceDescription");if(!b)return null;a=Zg(b,"Latency");b=Zg(b,"PlaybackRate");return a&&a.attributes.max||b?{maxLatency:a&&a.attributes.max?parseInt(a.attributes.max,10)/1E3:null,maxPlaybackRate:b?parseFloat(b.attributes.max):null,minLatency:a&&a.attributes.min?parseInt(a.attributes.min,10)/1E3:null,minPlaybackRate:b?parseFloat(b.attributes.min):null}:null}
903
903
  function Ut(a,b,c,d){var e=bh(d,"mediaPresentationDuration",fh),f=[],g=0;d=Vg(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=bh(k,"start",fh,g),n=k.attributes.id,q=bh(k,"duration",fh),p=null;if(l){var t=bh(l,"start",fh);null!=t&&(p=t-m)}else null!=e&&(p=e-m);null==p&&(p=q);if(!(null!==a.B&&null!==n&&null!==m&&m<a.B)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=iu(a,b,c,{start:m,duration:p,node:k,Ze:null==p||!l});f.push(g);b.za.id&&p&&(a.L[b.za.id]=p);if(null==
904
904
  p){g=null;break}g=m+p}}a.K=f.map(function(x){return x.id});return null!=e?{periods:f,duration:e,Zf:!1}:{periods:f,duration:g,Zf:!0}}
@@ -951,90 +951,90 @@ this.da=new Map;this.ia=new Map;this.pa=new Map;this.lb=this.B=!1;this.bb=new Qa
951
951
  r.stop=function(){this.s&&(this.s.stop(),this.s=null);var a=[];this.N&&(a.push(this.N.destroy()),this.N=null);this.g=this.i=null;this.Ia.clear();this.C=null;this.h.clear();this.H.clear();this.G.clear();this.o.clear();this.Y.clear();this.ba.clear();this.da.clear();this.ia.clear();this.pa.clear();this.j&&this.j.destroy();return Promise.all(a)};
952
952
  r.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return L(function(m){if(1==m.g){if(!gv(a))return m.return();b=[];c=Array.from(a.h.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=u(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(hv(a,g));return C(m,Promise.all(b),2)}iv(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.fd});d.length&&!h&&(k=jv,kv(a,k.Rg),l=d.map(function(n){return n.yb}),a.l.$a(Math.min.apply(Math,y(l))),a.i.updateDuration());
953
953
  h&&lv(a);F(m)})};function mv(a,b){return gv(a)?a.K.get(b.type):b.$d}
954
- function hv(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,U;return L(function(R){if(1==R.g){c=[];d=u(b.$());for(e=d.next();!e.done;e=d.next())f=e.value,g=new rc(f),h=g.g,b.Gd&&(0<=b.gb&&h.add("_HLS_msn",String(b.gb)),0<=b.hb&&h.add("_HLS_part",String(b.hb))),b.Hd&&h.add("_HLS_skip","YES"),Hc(h)&&vc(g,h),c.push(g.toString());return C(R,ev(a,c,!0),2)}if(3!=R.g){k=R.h;if(!b.stream.segmentIndex)return R.return();l=Qu(a.Ga,k.data);if(1!=l.type)throw new Q(2,4,4017);m=k.uri;m==k.originalUri||
955
- b.$().includes(m)||b.ug.push(m);n=Fu(l.g,"EXT-X-DEFINE");q=nv(a,n,m);p=b.stream;t=mv(a,b);return C(R,ov(a,l,p.mimeType,b.$,q),3)}x=R.h;w=x.keyIds;z=x.drmInfos;v=function(V,xa){return V.size===xa.size&&[].concat(y(V)).every(function(Ca){return xa.has(Ca)})};v(p.keyIds,w)||(p.keyIds=w,p.drmInfos=z,a.i.newDrmInfo(p));B=pv(a,l,p,t,q,b.$,b.type);A=B.segments;if(D=B.bandwidth)p.bandwidth=D;p.segmentIndex.kd(A,a.l.qb());A.length&&(G=Iu(l.g,"EXT-X-MEDIA-SEQUENCE",0),I=(J=Hu(l.g,"EXT-X-SKIP"))?Number(Z(J,
956
- "SKIPPED-SEGMENTS")):0,E=qv(G,A),H=E.gb,K=E.hb,b.gb=H+I,b.hb=K,M=t.get(G),p.segmentIndex.La(M));O=A[0];b.fc=O.startTime;N=A[A.length-1];b.yb=N.endTime;if(U=Hu(l.g,"EXT-X-ENDLIST"))b.fd=!0;rv(a,l);F(R)})}r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(){};r.banLocation=function(a){this.j&&this.j.banLocation(a)};
954
+ function hv(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,R;return L(function(S){if(1==S.g){c=[];d=u(b.$());for(e=d.next();!e.done;e=d.next())f=e.value,g=new rc(f),h=g.g,b.Gd&&(0<=b.gb&&h.add("_HLS_msn",String(b.gb)),0<=b.hb&&h.add("_HLS_part",String(b.hb))),b.Hd&&h.add("_HLS_skip","YES"),Hc(h)&&vc(g,h),c.push(g.toString());return C(S,ev(a,c,!0),2)}if(3!=S.g){k=S.h;if(!b.stream.segmentIndex)return S.return();l=Qu(a.Ga,k.data);if(1!=l.type)throw new Q(2,4,4017);m=k.uri;m==k.originalUri||
955
+ b.$().includes(m)||b.ug.push(m);n=Fu(l.g,"EXT-X-DEFINE");q=nv(a,n,m);p=b.stream;t=mv(a,b);return C(S,ov(a,l,p.mimeType,b.$,q),3)}x=S.h;w=x.keyIds;z=x.drmInfos;v=function(V,xa){return V.size===xa.size&&[].concat(y(V)).every(function(Ca){return xa.has(Ca)})};v(p.keyIds,w)||(p.keyIds=w,p.drmInfos=z,a.i.newDrmInfo(p));B=pv(a,l,p,t,q,b.$,b.type);A=B.segments;if(D=B.bandwidth)p.bandwidth=D;p.segmentIndex.kd(A,a.l.qb());A.length&&(G=Iu(l.g,"EXT-X-MEDIA-SEQUENCE",0),I=(J=Hu(l.g,"EXT-X-SKIP"))?Number(Z(J,
956
+ "SKIPPED-SEGMENTS")):0,E=qv(G,A),H=E.gb,K=E.hb,b.gb=H+I,b.hb=K,M=t.get(G),p.segmentIndex.La(M));O=A[0];b.fc=O.startTime;N=A[A.length-1];b.yb=N.endTime;if(R=Hu(l.g,"EXT-X-ENDLIST"))b.fd=!0;rv(a,l);F(S)})}r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(){};r.banLocation=function(a){this.j&&this.j.banLocation(a)};
957
957
  function sv(a,b){for(var c=-1==a.I,d=u(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=mv(a,e);if(f=f.g[0]||null){g=u(g);for(var h=g.next();!h.done;h=g.next()){h=u(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.I=Math.max(a.I,k));e.Ee=k;break}}}}if(!(0>a.I))for(b=u(b),e=b.next();!e.done;e=b.next())if(c=e.value,tv(a,c.type)&&(d=c.stream.segmentIndex))if(e=a.I-c.Ee,0<e&&(d.g.splice(0,e),d=d.g[0]||null))d=-d.startTime,c.stream.segmentIndex.offset(d),uv(a,
958
958
  c,d)}
959
959
  function vv(a,b){if(Infinity==a.T){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.h&&(a.T=Math.min(a.T,d.h))}}b=a.T;if(Infinity!=b)for(d=u(a.h.values()),c=d.next();!c.done;c=d.next())if(c=c.value,!tv(a,c.type)){var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.h)Ua("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.$(),"Expect AV sync issues!");else for(uv(a,c,f.h-b-f.startTime),c=u(e),e=c.next();!e.done;e=c.next())e.value.Hf(b)}}}
960
960
  function uv(a,b,c){b.fc+=c;b.yb+=c;a=mv(a,b);for(var d=u(a),e=d.next();!e.done;e=d.next()){var f=u(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.$()}
961
- function fv(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,U,R,V,xa,Ca,eb,Fa,Va;return L(function(ua){switch(ua.g){case 1:d=Qu(a.Ga,b);e=Fu(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];k=function(){return[c]};if(1==d.type)return C(ua,wv(a,d,k),7);xv(a,e);l=Fu(d.g,"EXT-X-MEDIA");m=Fu(d.g,"EXT-X-STREAM-INF");n=Fu(d.g,"EXT-X-IMAGE-STREAM-INF");q=Fu(d.g,"EXT-X-I-FRAME-STREAM-INF");p=Fu(d.g,"EXT-X-SESSION-KEY");t=Fu(d.g,"EXT-X-SESSION-DATA");x=Fu(d.g,"EXT-X-CONTENT-STEERING");yv(a,t);return C(ua,
961
+ function fv(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,R,S,V,xa,Ca,db,Fa,Va;return L(function(ua){switch(ua.g){case 1:d=Qu(a.Ga,b);e=Fu(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];k=function(){return[c]};if(1==d.type)return C(ua,wv(a,d,k),7);xv(a,e);l=Fu(d.g,"EXT-X-MEDIA");m=Fu(d.g,"EXT-X-STREAM-INF");n=Fu(d.g,"EXT-X-IMAGE-STREAM-INF");q=Fu(d.g,"EXT-X-I-FRAME-STREAM-INF");p=Fu(d.g,"EXT-X-SESSION-KEY");t=Fu(d.g,"EXT-X-SESSION-DATA");x=Fu(d.g,"EXT-X-CONTENT-STEERING");yv(a,t);return C(ua,
962
962
  zv(a,x),4);case 4:return Av(a,m),Bv(a,l),C(ua,Cv(a,m,p,l,k,a.o),5);case 5:return f=ua.h,g=Dv(a,l),C(ua,Ev(a,n,q),6);case 6:h=ua.h;ua.u(3);break;case 7:return w=ua.h,z=w.type,v=w.mimeType,B=w.codecs,A=w.language,D=w.height,G=w.width,J=w.channelCount,I=w.sampleRate,E=w.closedCaptions,H=w.Nf,C(ua,Fv(a,a.A++,d,k,c,B,z,A,!0,"Media Playlist",J,E,null,!1,I,!1,v),8);case 8:K=ua.h,a.h.set(c,K),"video"==z&&Gv(K.stream,G,D,null,H,null),f.push({id:0,language:qe(A||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==
963
963
  z?K.stream:null,video:"video"==z?K.stream:null,bandwidth:K.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new Q(2,7,7001);a.l=new hk(null,0);a.l.Ec(!0);1==d.type&&(gv(a)&&(Hv(a,d),M=a.m,a.s.X(M)),O=Array.from(a.h.values()),Iv(a,O),lv(a));a.C={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,
964
- type:"HLS",serviceDescription:null};if(a.ea||!a.g.hls.disableCodecGuessing){ua.u(9);break}N=[];U=u(a.C.variants);for(R=U.next();!R.done;R=U.next())V=R.value,V.audio&&""===V.audio.codecs&&N.push(V.audio.createSegmentIndex()),V.video&&""===V.video.codecs&&N.push(V.video.createSegmentIndex());return C(ua,Promise.all(N),9);case 9:a.i.makeTextStreamsForClosedCaptions(a.C);if(1==f.length){xa=[];Ca=f[0];eb=u([Ca.video,Ca.audio]);for(Fa=eb.next();!Fa.done;Fa=eb.next())(Va=Fa.value)&&!Va.segmentIndex&&xa.push(Va.createSegmentIndex());
964
+ type:"HLS",serviceDescription:null};if(a.ea||!a.g.hls.disableCodecGuessing){ua.u(9);break}N=[];R=u(a.C.variants);for(S=R.next();!S.done;S=R.next())V=S.value,V.audio&&""===V.audio.codecs&&N.push(V.audio.createSegmentIndex()),V.video&&""===V.video.codecs&&N.push(V.video.createSegmentIndex());return C(ua,Promise.all(N),9);case 9:a.i.makeTextStreamsForClosedCaptions(a.C);if(1==f.length){xa=[];Ca=f[0];db=u([Ca.video,Ca.audio]);for(Fa=db.next();!Fa.done;Fa=db.next())(Va=Fa.value)&&!Va.segmentIndex&&xa.push(Va.createSegmentIndex());
965
965
  if(0<xa.length)return C(ua,Promise.all(xa),0)}ua.u(0)}})}
966
- function wv(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A;return L(function(D){switch(D.g){case 1:d=Xu(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return D.return(d);e=Math.trunc((b.segments.length-1)/2);f=b.segments[e];g=Ju(c(),b.segments[0].h);h=g[0];k=new rc(h);l=k.Pa.split(".").pop();if(m=Jv[l])return D.return(Xu(m));n=ng;q=null;p=Kv(a,b,f.g,c);a.Y.clear();if(!p){D.u(2);break}t=hl(p.$(),p.ac(),p.Yb(),a.g.retryParameters);return C(D,Lv(a,t,n,{type:0}),3);case 3:x=D.h,q=x.data;case 2:return w=
967
- hg(g,a.g.retryParameters),C(D,Lv(a,w,n,{type:1}),4);case 4:z=D.h;(v=z.headers["content-type"])&&(v=v.split(";")[0].toLowerCase());if("ts"==l||"video/mp2t"==v){var G=z.data;var J=Ab(G);J=(new ij).parse(J);var I=J.bd();J=J.Xe();var E=[],H=!1,K=!1;switch(I.audio){case "aac":case "aac-loas":E.push("mp4a.40.2");H=!0;break;case "mp3":E.push("mp4a.40.34");H=!0;break;case "ac3":E.push("ac-3");H=!0;break;case "ec3":E.push("ec-3");H=!0;break;case "opus":E.push("opus"),H=!0}switch(I.video){case "avc":J.Ea?E.push(J.Ea):
968
- E.push("avc1.42E01E");K=!0;break;case "hvc":J.Ea?E.push(J.Ea):E.push("hvc1.1.6.L93.90");K=!0;break;case "av1":E.push("av01.0.01M.08"),K=!0}if(E.length){I=H&&!K;H=new Map;if(K){K=new Gb("video/mp2t");K.i(G);G=u(K.j());for(var M=G.next();!M.done;M=G.next())M=M.value,H.set(M,M);K.g()}J={type:I?"audio":"video",mimeType:"video/mp2t",codecs:E.join(", "),language:null,height:J.height,width:J.width,channelCount:null,sampleRate:null,closedCaptions:H,Nf:null}}else J=null;if(B=J)return D.return(B)}else if("mp4"==
969
- l||"cmfv"==l||"m4s"==l||"video/mp4"==v||"audio/mp4"==v||"video/iso.segment"==v)if(A=Yu(q,z.data))return D.return(A);return D.return(d)}})}
970
- function lv(a){if(gv(a)){if(a.qa==Mv){for(var b,c=b=Infinity,d=u(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.yb),c=Math.min(c,e.fc));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.s);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.ke(b)}}else a.l.$a(Nv(a));if(!a.l.o)for(b=u(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=c.stream.segmentIndex.get(0))&&
966
+ function wv(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J;return L(function(I){switch(I.g){case 1:d=Xu(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return I.return(d);e=b.segments[0];f=Ju(c(),e.h);g=f[0];h=new rc(g);k=h.Pa.split(".").pop();if(l=Jv[k])return I.return(Xu(l));m=ng;n=null;q=Kv(a,b,e.g,c);a.Y.clear();if(!q){I.u(2);break}p=hl(q.$(),q.ac(),q.Yb(),a.g.retryParameters);return C(I,Lv(a,p,m,{type:0}),3);case 3:t=I.h,n=t.data;case 2:x=0;w=null;if(z=Hu(e.g,"EXT-X-BYTERANGE"))v=
967
+ u(Mv(null,z.value)),x=v.next().value,w=v.next().value;B=hl(f,x,w,a.g.retryParameters);return C(I,Lv(a,B,m,{type:1}),4);case 4:A=I.h;(D=A.headers["content-type"])&&(D=D.split(";")[0].toLowerCase());if("ts"==k||"video/mp2t"==D){var E=A.data;var H=Ab(E);H=(new ij).parse(H);var K=H.bd();H=H.Xe();var M=[],O=!1,N=!1;switch(K.audio){case "aac":case "aac-loas":M.push("mp4a.40.2");O=!0;break;case "mp3":M.push("mp4a.40.34");O=!0;break;case "ac3":M.push("ac-3");O=!0;break;case "ec3":M.push("ec-3");O=!0;break;
968
+ case "opus":M.push("opus"),O=!0}switch(K.video){case "avc":H.Ea?M.push(H.Ea):M.push("avc1.42E01E");N=!0;break;case "hvc":H.Ea?M.push(H.Ea):M.push("hvc1.1.6.L93.90");N=!0;break;case "av1":M.push("av01.0.01M.08"),N=!0}if(M.length){K=O&&!N;O=new Map;if(N){N=new Gb("video/mp2t");N.i(E);E=u(N.j());for(var R=E.next();!R.done;R=E.next())R=R.value,O.set(R,R);N.g()}H={type:K?"audio":"video",mimeType:"video/mp2t",codecs:M.join(", "),language:null,height:H.height,width:H.width,channelCount:null,sampleRate:null,
969
+ closedCaptions:O,Nf:null}}else H=null;if(G=H)return I.return(G)}else if("mp4"==k||"cmfv"==k||"m4s"==k||"fmp4"==k||"video/mp4"==D||"audio/mp4"==D||"video/iso.segment"==D)if(J=Yu(n,A.data))return I.return(J);return I.return(d)}})}
970
+ function lv(a){if(gv(a)){if(a.qa==Nv){for(var b,c=b=Infinity,d=u(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.yb),c=Math.min(c,e.fc));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.s);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.ke(b)}}else a.l.$a(Ov(a));if(!a.l.o)for(b=u(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=c.stream.segmentIndex.get(0))&&
971
971
  c.h&&a.l.Dg(c.h);a.l.Xd()}function xv(a,b){var c=(new rc(a.aa)).g;b=u(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Z(e,"NAME");var f=Z(e,"VALUE");e=Z(e,"QUERYPARAM");d&&f&&(a.o.has(d)||a.o.set(d,f));e&&(d=c.get(e)[0])&&!a.o.has(d)&&a.o.set(e,d)}}
972
972
  function nv(a,b,c){c=(new rc(c)).g;var d=new Map;b=u(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=Z(f,"NAME"),h=Z(f,"VALUE");e=Z(f,"QUERYPARAM");f=Z(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.o.get(f))&&d.set(f,e)}return d}
973
- function Av(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"AUDIO");c=Z(d,"VIDEO");var f=Z(d,"SUBTITLES");d=Ov(a,d);if(f){var g=Gd(Id,d);a.G.set(f,g);Kb(d,g)}e&&(f=Gd("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.G.set(e,f));c&&(e=Gd("video",d),e||(e=a.g.hls.defaultVideoCodec),a.G.set(c,e))}}
974
- function yv(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"DATA-ID");c=Z(d,"URI");var f=Z(d,"LANGUAGE");d=Z(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",Ju([a.aa],c,a.o)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new S("sessiondata",e);if(a.i)a.i.onEvent(c)}}
973
+ function Av(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"AUDIO");c=Z(d,"VIDEO");var f=Z(d,"SUBTITLES");d=Pv(a,d);if(f){var g=Gd(Id,d);a.G.set(f,g);Kb(d,g)}e&&(f=Gd("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.G.set(e,f));c&&(e=Gd("video",d),e||(e=a.g.hls.defaultVideoCodec),a.G.set(c,e))}}
974
+ function yv(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"DATA-ID");c=Z(d,"URI");var f=Z(d,"LANGUAGE");d=Z(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",Ju([a.aa],c,a.o)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new T("sessiondata",e);if(a.i)a.i.onEvent(c)}}
975
975
  function zv(a,b){var c,d,e,f,g,h;return L(function(k){if(!a.i||!a.g)return k.return();d=u(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=Z(f,"PATHWAY-ID"),h=Z(f,"SERVER-URI"),g&&h){a.j=new Ws(a.i);a.j.configure(a.g);a.j.i=[a.aa];a.j.setManifestType("HLS");a.j.h=g;c=Xs(a.j,h);break}return C(k,c,0)})}
976
- function Dv(a,b){var c=Gu(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Pv(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=u(c);for(var d=c.next();!d.done;d=c.next()){var e=Cu(d.value,"GROUP-ID");if(d=a.G.get(e))if(e=a.H.get(e)){e=u(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Qv(Id,d)||Rv(Id),Sv(f.stream)}}return b.filter(function(g){return g})}
977
- function Sv(a){a.fullMimeTypes=new Set([Md(a.mimeType,a.codecs)])}
978
- function Ev(a,b,c){var d,e;return L(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return L(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);ra(m,2);return C(m,Tv(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=va(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=Cu(g,"URI"),k=Z(g,"CODECS")||"";if(a.h.has(h))var l=a.h.get(h);else{var m=Z(g,"LANGUAGE"),n=Z(g,"NAME"),
979
- q=Z(g,"CHARACTERISTICS"),p=Uv(a,a.A++,[h],k,"image",m,!1,n,null,null,q,!1,null,!1),t=Z(g,"RESOLUTION"),x=u(t?t.split("x"):[null,null]),w=x.next().value,z=x.next().value;p.stream.width=Number(w)||void 0;p.stream.height=Number(z)||void 0;var v=Z(g,"BANDWIDTH");v&&(p.stream.bandwidth=Number(v));a.h.set(h,p);l=p}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(B){if(a.g.hls.ignoreImageStreamFailures)return null;throw B;}})),C(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}
980
- function Vv(a,b,c){b=b.filter(function(h){var k=Z(h,"URI")||"";return"SUBTITLES"!=Z(h,"TYPE")&&""!=k});var d={};b=u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=Au(e);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)Pv(a,d[g],c)}
981
- function Cv(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,U,R,V,xa,Ca,eb;return L(function(Fa){switch(Fa.g){case 1:g=[];h=new Set;if(!(0<c.length)){Fa.u(2);break}k=u(c);l=k.next();case 3:if(l.done){Fa.u(2);break}m=l.value;n=Cu(m,"METHOD");q=Z(m,"KEYFORMAT")||"identity";p=null;if("NONE"==n||Wv(n)){Fa.u(4);break}if("identity"!=q){p=(t=Xv[q])?t(m,""):null;Fa.u(6);break}return C(Fa,Yv(a,m,"",e,null,f),8);case 8:p=Fa.h;case 6:if(p){if(p.keyIds)for(x=u(p.keyIds),w=x.next();!w.done;w=
982
- x.next())z=w.value,h.add(z);g.push(p)}case 4:l=k.next();Fa.u(3);break;case 2:v={};B=u(b);for(A=B.next();!A.done;A=B.next())D=A.value,G=Au(D),v[G]?v[G].push(D):v[G]=[D];J=[];for(I in v)E=v[I],H=E[0],K=Z(H,"FRAME-RATE"),M=Number(Z(H,"AVERAGE-BANDWIDTH"))||Number(Cu(H,"BANDWIDTH")),O=Z(H,"RESOLUTION"),N=u(O?O.split("x"):[null,null]),U=N.next().value,R=N.next().value,V=Z(H,"VIDEO-RANGE"),(xa=Z(H,"REQ-VIDEO-LAYOUT"))&&xa.includes(",")&&(Ca=xa.split(",").filter(function(Va){return"CH-STEREO"==Va||"CH-MONO"==
983
- Va}),xa=Ca[0]),xa=xa||"CH-MONO",eb=Zv(a,E,d,M),J.push.apply(J,y($v(a,eb.audio,eb.video,M,U,R,K,V,xa,g,h)));return Fa.return(J.filter(function(Va){return null!=Va}))}})}
984
- function Zv(a,b,c,d){for(var e={audio:[],video:[]},f=new Map,g=[],h=!1,k=!1,l=u(b),m=l.next();!m.done;m=l.next()){var n=m.value;m=Z(n,"AUDIO");var q=Z(n,"VIDEO"),p=m||q;p&&(g.includes(p)||g.push(p),(n=Z(n,"PATHWAY-ID"))&&f.set(p,n),m?h=!0:q&&(k=!0))}g.length&&c.length&&(l=c.filter(function(w){return g.includes(Cu(w,"GROUP-ID"))}),Vv(a,l,f));l=(f=g.sort().join(","))&&a.H.has(f)?a.H.get(f):[];h?e.audio.push.apply(e.audio,y(l)):k&&e.video.push.apply(e.video,y(l));m=!1;var t=b.map(function(w){return Cu(w,
985
- "URI")});k=e.audio.find(function(w){return w&&w.$().find(function(z){return t.includes(z)})});h=Ov(a,b[0]);q=Gd("video",h);(p=Gd("audio",h))&&!q?(k="audio",m=0<e.audio.length):!e.audio.length&&!e.video.length&&p&&q?(k="video",h=[[q,p].join()]):e.audio.length&&k?(k="audio",m=!0):k=e.video.length&&!e.audio.length?"audio":"video";if(!m){var x=n=p=q=m=null;!l.length&&(c=c.find(function(w){var z=Z(w,"URI")||"",v=Z(w,"TYPE");w=Cu(w,"GROUP-ID");return"SUBTITLES"!=v&&""==z&&g.includes(w)}))&&(m=Z(c,"LANGUAGE"),
986
- q=Z(c,"NAME"),p=aw(c),bw(c),n=Z(c,"CHARACTERISTICS"),x=cw(c));a=dw(a,b,h,k,m,q,p,n,x);f&&(a.stream.groupId=f);l.length||(a.stream.bandwidth=d);e[a.stream.type]=[a]}return e}
987
- function Ov(a,b){var c=Z(b,"CODECS")||"";b=Z(b,"SUPPLEMENTAL-CODECS");a.ea=0<c.length;a.ea||a.g.hls.disableCodecGuessing||(c=[],a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec),c=c.join(","));a=c.split(/\s*,\s*/);b&&(b=b.split(/\s*,\s*/).map(function(d){return d.split("/")[0]}),a.push.apply(a,y(b)));return Zu(a)}function aw(a){return(a=Z(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}
988
- function cw(a){return(a=Z(a,"SAMPLE-RATE"))?parseInt(a,10):null}function bw(a){return(a=Z(a,"CHANNELS"))?a.includes("/JOC"):!1}
989
- function $v(a,b,c,d,e,f,g,h,k,l,m){for(var n=u(c),q=n.next();!q.done;q=n.next())Gv(q.value.stream,e,f,g,h,k);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=u(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=u(c),h=g.next();!h.done;h=g.next()){var p=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=p?p.stream:null)k.drmInfos=l,k.keyIds=m;n=f?f.stream.drmInfos:null;q=p?p.stream.drmInfos:null;p=p?p.$().sort().join(","):"";var t=f?f.$().sort().join(","):
976
+ function Dv(a,b){var c=Gu(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Qv(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=u(c);for(var d=c.next();!d.done;d=c.next()){var e=Cu(d.value,"GROUP-ID");if(d=a.G.get(e))if(e=a.H.get(e)){e=u(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Rv(Id,d)||Sv(Id),Tv(f.stream)}}return b.filter(function(g){return g})}
977
+ function Tv(a){a.fullMimeTypes=new Set([Md(a.mimeType,a.codecs)])}
978
+ function Ev(a,b,c){var d,e;return L(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return L(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);ra(m,2);return C(m,Uv(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=va(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=Cu(g,"URI"),k=Z(g,"CODECS")||"";if(a.h.has(h))var l=a.h.get(h);else{var m=Z(g,"LANGUAGE"),n=Z(g,"NAME"),
979
+ q=Z(g,"CHARACTERISTICS"),p=Vv(a,a.A++,[h],k,"image",m,!1,n,null,null,q,!1,null,!1),t=Z(g,"RESOLUTION"),x=u(t?t.split("x"):[null,null]),w=x.next().value,z=x.next().value;p.stream.width=Number(w)||void 0;p.stream.height=Number(z)||void 0;var v=Z(g,"BANDWIDTH");v&&(p.stream.bandwidth=Number(v));a.h.set(h,p);l=p}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(B){if(a.g.hls.ignoreImageStreamFailures)return null;throw B;}})),C(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}
980
+ function Wv(a,b,c){b=b.filter(function(h){var k=Z(h,"URI")||"";return"SUBTITLES"!=Z(h,"TYPE")&&""!=k});var d={};b=u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=Au(e);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)Qv(a,d[g],c)}
981
+ function Cv(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,R,S,V,xa,Ca,db;return L(function(Fa){switch(Fa.g){case 1:g=[];h=new Set;if(!(0<c.length)){Fa.u(2);break}k=u(c);l=k.next();case 3:if(l.done){Fa.u(2);break}m=l.value;n=Cu(m,"METHOD");q=Z(m,"KEYFORMAT")||"identity";p=null;if("NONE"==n||Xv(n)){Fa.u(4);break}if("identity"!=q){p=(t=Yv[q])?t(m,""):null;Fa.u(6);break}return C(Fa,Zv(a,m,"",e,null,f),8);case 8:p=Fa.h;case 6:if(p){if(p.keyIds)for(x=u(p.keyIds),w=x.next();!w.done;w=
982
+ x.next())z=w.value,h.add(z);g.push(p)}case 4:l=k.next();Fa.u(3);break;case 2:v={};B=u(b);for(A=B.next();!A.done;A=B.next())D=A.value,G=Au(D),v[G]?v[G].push(D):v[G]=[D];J=[];for(I in v)E=v[I],H=E[0],K=Z(H,"FRAME-RATE"),M=Number(Z(H,"AVERAGE-BANDWIDTH"))||Number(Cu(H,"BANDWIDTH")),O=Z(H,"RESOLUTION"),N=u(O?O.split("x"):[null,null]),R=N.next().value,S=N.next().value,V=Z(H,"VIDEO-RANGE"),(xa=Z(H,"REQ-VIDEO-LAYOUT"))&&xa.includes(",")&&(Ca=xa.split(",").filter(function(Va){return"CH-STEREO"==Va||"CH-MONO"==
983
+ Va}),xa=Ca[0]),xa=xa||"CH-MONO",db=$v(a,E,d,M),J.push.apply(J,y(aw(a,db.audio,db.video,M,R,S,K,V,xa,g,h)));return Fa.return(J.filter(function(Va){return null!=Va}))}})}
984
+ function $v(a,b,c,d){for(var e={audio:[],video:[]},f=new Map,g=[],h=!1,k=!1,l=u(b),m=l.next();!m.done;m=l.next()){var n=m.value;m=Z(n,"AUDIO");var q=Z(n,"VIDEO"),p=m||q;p&&(g.includes(p)||g.push(p),(n=Z(n,"PATHWAY-ID"))&&f.set(p,n),m?h=!0:q&&(k=!0))}g.length&&c.length&&(l=c.filter(function(w){return g.includes(Cu(w,"GROUP-ID"))}),Wv(a,l,f));l=(f=g.sort().join(","))&&a.H.has(f)?a.H.get(f):[];h?e.audio.push.apply(e.audio,y(l)):k&&e.video.push.apply(e.video,y(l));m=!1;var t=b.map(function(w){return Cu(w,
985
+ "URI")});k=e.audio.find(function(w){return w&&w.$().find(function(z){return t.includes(z)})});h=Pv(a,b[0]);q=Gd("video",h);(p=Gd("audio",h))&&!q?(k="audio",m=0<e.audio.length):!e.audio.length&&!e.video.length&&p&&q?(k="video",h=[[q,p].join()]):e.audio.length&&k?(k="audio",m=!0):k=e.video.length&&!e.audio.length?"audio":"video";if(!m){var x=n=p=q=m=null;!l.length&&(c=c.find(function(w){var z=Z(w,"URI")||"",v=Z(w,"TYPE");w=Cu(w,"GROUP-ID");return"SUBTITLES"!=v&&""==z&&g.includes(w)}))&&(m=Z(c,"LANGUAGE"),
986
+ q=Z(c,"NAME"),p=bw(c),cw(c),n=Z(c,"CHARACTERISTICS"),x=dw(c));a=ew(a,b,h,k,m,q,p,n,x);f&&(a.stream.groupId=f);l.length||(a.stream.bandwidth=d);e[a.stream.type]=[a]}return e}
987
+ function Pv(a,b){var c=Z(b,"CODECS")||"";b=Z(b,"SUPPLEMENTAL-CODECS");a.ea=0<c.length;a.ea||a.g.hls.disableCodecGuessing||(c=[],a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec),c=c.join(","));a=c.split(/\s*,\s*/);b&&(b=b.split(/\s*,\s*/).map(function(d){return d.split("/")[0]}),a.push.apply(a,y(b)));return Zu(a)}function bw(a){return(a=Z(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}
988
+ function dw(a){return(a=Z(a,"SAMPLE-RATE"))?parseInt(a,10):null}function cw(a){return(a=Z(a,"CHANNELS"))?a.includes("/JOC"):!1}
989
+ function aw(a,b,c,d,e,f,g,h,k,l,m){for(var n=u(c),q=n.next();!q.done;q=n.next())Gv(q.value.stream,e,f,g,h,k);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=u(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=u(c),h=g.next();!h.done;h=g.next()){var p=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=p?p.stream:null)k.drmInfos=l,k.keyIds=m;n=f?f.stream.drmInfos:null;q=p?p.stream.drmInfos:null;p=p?p.$().sort().join(","):"";var t=f?f.$().sort().join(","):
990
990
  "";p=p+" - "+t;h&&k&&!$h(n,q)||a.Ia.has(p)||(h={id:a.A++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.Ia.add(p))}return e}
991
991
  function Bv(a,b){b=Gu(b,"CLOSED-CAPTIONS");b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"LANGUAGE");c=qe(e||"und");e||(e=Z(d,"NAME"))&&(c=e);e=Cu(d,"GROUP-ID");d=Cu(d,"INSTREAM-ID").replace("SERVICE","svc");a.F.get(e)||a.F.set(e,new Map);a.F.get(e).set(d,c)}}
992
- function Pv(a,b,c){for(var d=[],e=[],f=new Map,g=u(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=Cu(k,"URI");k=Cu(k,"GROUP-ID");d.push(h);e.push(k);f.set(k,h)}g=e.sort().join(",");h=b[0];b="";k=Cu(h,"TYPE").toLowerCase();"subtitles"==k&&(k=Id);if(k==Id)b=Z(h,"CODECS")||"";else{e=u(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,a.G.has(l)){b=a.G.get(l);break}}e=d.sort().join(",");if(a.h.has(e))return a.h.get(e);l=a.A++;if(a.j){f=u(f);for(var m=f.next();!m.done;m=f.next()){var n=u(m.value);
993
- m=n.next().value;n=n.next().value;(m=c.get(m))&&$s(a.j,l,m,n)}}c=Z(h,"LANGUAGE");f=Z(h,"NAME");m="YES"==Z(h,"DEFAULT");n="audio"==k?aw(h):null;var q="audio"==k?bw(h):!1,p=Z(h,"CHARACTERISTICS"),t="YES"==Z(h,"FORCED");h="audio"==k?cw(h):null;d=Uv(a,l,d,b,k,c,m,f,n,null,p,t,h,q);d.stream&&(d.stream.groupId=g);a.H.has(g)?a.H.get(g).push(d):a.H.set(g,[d]);a.h.set(e,d);return d}
994
- function Tv(a,b){var c,d,e,f,g,h,k,l,m,n;return L(function(q){if(1==q.g){c=Cu(b,"URI");d=Z(b,"CODECS","jpeg")||"";if(a.h.has(c))return q.return(a.h.get(c));e=Z(b,"LANGUAGE");f=Z(b,"NAME");g=Z(b,"CHARACTERISTICS");h=Uv(a,a.A++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=Z(b,"RESOLUTION"))?C(q,h.stream.createSegmentIndex(),3):q.u(2)}2!=q.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
992
+ function Qv(a,b,c){for(var d=[],e=[],f=new Map,g=u(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=Cu(k,"URI");k=Cu(k,"GROUP-ID");d.push(h);e.push(k);f.set(k,h)}g=e.sort().join(",");h=b[0];b="";k=Cu(h,"TYPE").toLowerCase();"subtitles"==k&&(k=Id);if(k==Id)b=Z(h,"CODECS")||"";else{e=u(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,a.G.has(l)){b=a.G.get(l);break}}e=d.sort().join(",");if(a.h.has(e))return a.h.get(e);l=a.A++;if(a.j){f=u(f);for(var m=f.next();!m.done;m=f.next()){var n=u(m.value);
993
+ m=n.next().value;n=n.next().value;(m=c.get(m))&&$s(a.j,l,m,n)}}c=Z(h,"LANGUAGE");f=Z(h,"NAME");m="YES"==Z(h,"DEFAULT");n="audio"==k?bw(h):null;var q="audio"==k?cw(h):!1,p=Z(h,"CHARACTERISTICS"),t="YES"==Z(h,"FORCED");h="audio"==k?dw(h):null;d=Vv(a,l,d,b,k,c,m,f,n,null,p,t,h,q);d.stream&&(d.stream.groupId=g);a.H.has(g)?a.H.get(g).push(d):a.H.set(g,[d]);a.h.set(e,d);return d}
994
+ function Uv(a,b){var c,d,e,f,g,h,k,l,m,n;return L(function(q){if(1==q.g){c=Cu(b,"URI");d=Z(b,"CODECS","jpeg")||"";if(a.h.has(c))return q.return(a.h.get(c));e=Z(b,"LANGUAGE");f=Z(b,"NAME");g=Z(b,"CHARACTERISTICS");h=Vv(a,a.A++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=Z(b,"RESOLUTION"))?C(q,h.stream.createSegmentIndex(),3):q.u(2)}2!=q.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
995
995
  Number(m.split("x")[1]));if(n=Z(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.set(c,h);return q.return(h)})}
996
- function dw(a,b,c,d,e,f,g,h,k){for(var l=a.A++,m=[],n=u(b),q=n.next();!q.done;q=n.next()){var p=q.value;q=Cu(p,"URI");p=Z(p,"PATHWAY-ID");a.j&&p&&$s(a.j,l,p,q);m.push(q)}n=m.sort().join(",");if(a.h.has(n))return a.h.get(n);a:{b=Z(b[0],"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.F.get(b);break a}if(!b&&a.F.size)for(b=u(a.F.keys()).next();!b.done;){b=a.F.get(b.value);break a}}b=null}c=Fd(d,c);d=Uv(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.h.set(n,d);return d}
997
- function Uv(a,b,c,d,e,f,g,h,k,l,m,n,q,p){function t(D){var G,J,I,E,H,K,M,O,N,U,R,V,xa,Ca,eb,Fa,Va;return L(function(ua){switch(ua.g){case 1:return G=v.$(),C(ua,ev(a,v.$(),!0),2);case 2:J=ua.h;if(D.aborted)return ua.return();I=J.uri;I==J.originalUri||G.includes(I)||z.push(I);E=Qu(a.Ga,J.data);H=void 0;if(a.ea||!a.g.hls.disableCodecGuessing){ua.u(3);break}return C(ua,wv(a,E,x),4);case 4:K=ua.h,H=K.mimeType,d=K.codecs;case 3:return M=gv(a),C(ua,Fv(a,0,E,x,I,d,e,f,g,h,k,l,m,n,q,p,H),5);case 5:O=ua.h;
998
- if(D.aborted)return ua.return();N=O.stream;gv(a)&&!M&&Hv(a,E);v.fc=O.fc;v.yb=O.yb;v.Hd=O.Hd;v.Gd=O.Gd;v.fd=O.fd;v.$d=O.$d;v.gb=O.gb;v.hb=O.hb;v.ef=!0;w.segmentIndex=N.segmentIndex;w.encrypted=N.encrypted;w.drmInfos=N.drmInfos;w.keyIds=N.keyIds;w.mimeType=N.mimeType;w.bandwidth=w.bandwidth||N.bandwidth;w.codecs=w.codecs||N.codecs;Sv(w);w.drmInfos.length&&a.i.newDrmInfo(w);U=Kd;if(e==U.fa||e==U.S)for(R=u(a.h.values()),V=R.next();!V.done;V=R.next())xa=V.value,xa.ef||xa.type!=e||(xa.stream.mimeType=N.mimeType,
999
- Sv(xa.stream));e==U.ma&&(Ca=N.segmentIndex.get(0))&&Ca.ca&&(w.mimeType="application/mp4",Sv(w));ew(a)&&(a.mb?Iv(a,[v]):(a.mb=!0,eb=Array.from(a.h.values()),Fa=eb.filter(function(kb){return kb.stream.segmentIndex}),Iv(a,Fa),lv(a),Va=a.m,0<Va&&a.s.X(Va)));F(ua)}})}function x(){return a.j&&1<c.length?at(a.j,b):z.concat(Ku([a.aa],c,a.o))}var w=fw(a,d,e,f,g,h,k,l,m,n,q,p),z=[],v={stream:w,type:e,ug:z,$:x,fc:0,yb:0,$d:new Map,Hd:!1,Gd:!1,fd:!1,Ee:-1,gb:-1,hb:-1,ef:!1},B=null,A=new AbortController;w.createSegmentIndex=
1000
- function(){if(B)return B;A=new AbortController;return B=new Promise(function(D){D(t(A.signal))})};w.closeSegmentIndex=function(){B&&!w.segmentIndex&&A.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);B=null};return v}function Nv(a){var b=Infinity;a=u(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.yb));return b}
1001
- function iv(a,b){var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.tc(function(e){c.push(e)});a.l.ld(c)}function Iv(a,b){if(!gv(a))for(var c=Nv(a),d=u(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.sc(0,c);iv(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?sv(a,b):(vv(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&sv(a,b))}
1002
- function tv(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}function ew(a){if(!a.C)return!1;var b=[],c=[];a=u(a.C.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
1003
- function Fv(a,b,c,d,e,f,g,h,k,l,m,n,q,p,t,x,w){var z,v,B,A,D,G,J,I,E,H,K,M,O,N,U,R,V,xa,Ca,eb,Fa,Va,ua;return L(function(kb){switch(kb.g){case 1:if(1!=c.type)throw new Q(2,4,4017);z=Fu(c.g,"EXT-X-DEFINE");v=nv(a,z,e);var yb=Hu(c.g,"EXT-X-PLAYLIST-TYPE"),hb=Hu(c.g,"EXT-X-ENDLIST");hb=yb&&"VOD"==yb.value||hb;yb=yb&&"EVENT"==yb.value&&!hb;yb=!hb&&!yb;hb?kv(a,dv):yb?kv(a,Mv):kv(a,gw);gv(a)&&rv(a,c);if(w){kb.u(2);break}return C(kb,hw(a,g,f,c,v,d),3);case 3:w=kb.h;case 2:return C(kb,ov(a,c,w,d,v),4);case 4:B=
1004
- kb.h;A=B.drmInfos;D=B.keyIds;G=B.encrypted;J=B.Vg;if(G&&!A.length&&!J)throw new Q(2,4,4026);I=fw(a,f,g,h,k,l,m,n,q,p,t,x);I.encrypted=G;I.drmInfos=A;I.keyIds=D;I.mimeType=w;Sv(I);E=gv(a)?a.K.get(g):new Map;H=pv(a,c,I,E,v,d,g);K=H.segments;if(M=H.bandwidth)I.bandwidth=M;gv(a)&&rv(a,c);O=K[0].startTime;N=K[K.length-1];U=N.endTime;R=new Dk(K);I.segmentIndex=R;xa=(V=Hu(c.g,"EXT-X-SERVER-CONTROL"))?null!=Bu(V,"CAN-SKIP-UNTIL"):!1;Ca=V?null!=Bu(V,"CAN-BLOCK-RELOAD"):!1;eb=Iu(c.g,"EXT-X-MEDIA-SEQUENCE",
1005
- 0);Fa=qv(eb,K);Va=Fa.gb;ua=Fa.hb;return kb.return({stream:I,type:g,ug:[],$:d,fc:O,yb:U,Hd:xa,Gd:Ca,fd:!1,Ee:-1,gb:Va,hb:ua,$d:E,ef:!1})}})}function qv(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{gb:a,hb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{gb:a,hb:c};c=d.length-1;d[d.length-1].preload||(a++,c=0);return{gb:a,hb:c}}
1006
- function fw(a,b,c,d,e,f,g,h,k,l,m,n){var q=Qv(c,b)||Rv(c),p=[];if(k){k=u(k.split(","));for(var t=k.next();!t.done;t=k.next())p.push(t.value)}k=void 0;t=null;c==Id?k=p.includes("public.accessibility.transcribes-spoken-dialog")&&p.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":p.includes("public.accessibility.describes-video")&&(t="visually impaired");p.length||"subtitle"!==k||p.push("subtitle");a={id:a.A++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
996
+ function ew(a,b,c,d,e,f,g,h,k){for(var l=a.A++,m=[],n=u(b),q=n.next();!q.done;q=n.next()){var p=q.value;q=Cu(p,"URI");p=Z(p,"PATHWAY-ID");a.j&&p&&$s(a.j,l,p,q);m.push(q)}n=m.sort().join(",");if(a.h.has(n))return a.h.get(n);a:{b=Z(b[0],"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.F.get(b);break a}if(!b&&a.F.size)for(b=u(a.F.keys()).next();!b.done;){b=a.F.get(b.value);break a}}b=null}c=Fd(d,c);d=Vv(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.h.set(n,d);return d}
997
+ function Vv(a,b,c,d,e,f,g,h,k,l,m,n,q,p){function t(D){var G,J,I,E,H,K,M,O,N,R,S,V,xa,Ca,db,Fa,Va;return L(function(ua){switch(ua.g){case 1:return G=v.$(),C(ua,ev(a,v.$(),!0),2);case 2:J=ua.h;if(D.aborted)return ua.return();I=J.uri;I==J.originalUri||G.includes(I)||z.push(I);E=Qu(a.Ga,J.data);H=void 0;if(a.ea||!a.g.hls.disableCodecGuessing){ua.u(3);break}return C(ua,wv(a,E,x),4);case 4:K=ua.h,H=K.mimeType,d=K.codecs;case 3:return M=gv(a),C(ua,Fv(a,0,E,x,I,d,e,f,g,h,k,l,m,n,q,p,H),5);case 5:O=ua.h;
998
+ if(D.aborted)return ua.return();N=O.stream;gv(a)&&!M&&Hv(a,E);v.fc=O.fc;v.yb=O.yb;v.Hd=O.Hd;v.Gd=O.Gd;v.fd=O.fd;v.$d=O.$d;v.gb=O.gb;v.hb=O.hb;v.ef=!0;w.segmentIndex=N.segmentIndex;w.encrypted=N.encrypted;w.drmInfos=N.drmInfos;w.keyIds=N.keyIds;w.mimeType=N.mimeType;w.bandwidth=w.bandwidth||N.bandwidth;w.codecs=w.codecs||N.codecs;Tv(w);w.drmInfos.length&&a.i.newDrmInfo(w);R=Kd;if(e==R.fa||e==R.S)for(S=u(a.h.values()),V=S.next();!V.done;V=S.next())xa=V.value,xa.ef||xa.type!=e||(xa.stream.mimeType=N.mimeType,
999
+ Tv(xa.stream));e==R.ma&&(Ca=N.segmentIndex.get(0))&&Ca.ca&&(w.mimeType="application/mp4",Tv(w));fw(a)&&(a.mb?Iv(a,[v]):(a.mb=!0,db=Array.from(a.h.values()),Fa=db.filter(function(kb){return kb.stream.segmentIndex}),Iv(a,Fa),lv(a),Va=a.m,0<Va&&a.s.X(Va)));F(ua)}})}function x(){return a.j&&1<c.length?at(a.j,b):z.concat(Ku([a.aa],c,a.o))}var w=gw(a,d,e,f,g,h,k,l,m,n,q,p),z=[],v={stream:w,type:e,ug:z,$:x,fc:0,yb:0,$d:new Map,Hd:!1,Gd:!1,fd:!1,Ee:-1,gb:-1,hb:-1,ef:!1},B=null,A=new AbortController;w.createSegmentIndex=
1000
+ function(){if(B)return B;A=new AbortController;return B=new Promise(function(D){D(t(A.signal))})};w.closeSegmentIndex=function(){B&&!w.segmentIndex&&A.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);B=null};return v}function Ov(a){var b=Infinity;a=u(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.yb));return b}
1001
+ function iv(a,b){var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.tc(function(e){c.push(e)});a.l.ld(c)}function Iv(a,b){if(!gv(a))for(var c=Ov(a),d=u(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.sc(0,c);iv(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?sv(a,b):(vv(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&sv(a,b))}
1002
+ function tv(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}function fw(a){if(!a.C)return!1;var b=[],c=[];a=u(a.C.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
1003
+ function Fv(a,b,c,d,e,f,g,h,k,l,m,n,q,p,t,x,w){var z,v,B,A,D,G,J,I,E,H,K,M,O,N,R,S,V,xa,Ca,db,Fa,Va,ua;return L(function(kb){switch(kb.g){case 1:if(1!=c.type)throw new Q(2,4,4017);z=Fu(c.g,"EXT-X-DEFINE");v=nv(a,z,e);var yb=Hu(c.g,"EXT-X-PLAYLIST-TYPE"),hb=Hu(c.g,"EXT-X-ENDLIST");hb=yb&&"VOD"==yb.value||hb;yb=yb&&"EVENT"==yb.value&&!hb;yb=!hb&&!yb;hb?kv(a,dv):yb?kv(a,Nv):kv(a,hw);gv(a)&&rv(a,c);if(w){kb.u(2);break}return C(kb,iw(a,g,f,c,v,d),3);case 3:w=kb.h;case 2:return C(kb,ov(a,c,w,d,v),4);case 4:B=
1004
+ kb.h;A=B.drmInfos;D=B.keyIds;G=B.encrypted;J=B.Vg;if(G&&!A.length&&!J)throw new Q(2,4,4026);I=gw(a,f,g,h,k,l,m,n,q,p,t,x);I.encrypted=G;I.drmInfos=A;I.keyIds=D;I.mimeType=w;Tv(I);E=gv(a)?a.K.get(g):new Map;H=pv(a,c,I,E,v,d,g);K=H.segments;if(M=H.bandwidth)I.bandwidth=M;gv(a)&&rv(a,c);O=K[0].startTime;N=K[K.length-1];R=N.endTime;S=new Dk(K);I.segmentIndex=S;xa=(V=Hu(c.g,"EXT-X-SERVER-CONTROL"))?null!=Bu(V,"CAN-SKIP-UNTIL"):!1;Ca=V?null!=Bu(V,"CAN-BLOCK-RELOAD"):!1;db=Iu(c.g,"EXT-X-MEDIA-SEQUENCE",
1005
+ 0);Fa=qv(db,K);Va=Fa.gb;ua=Fa.hb;return kb.return({stream:I,type:g,ug:[],$:d,fc:O,yb:R,Hd:xa,Gd:Ca,fd:!1,Ee:-1,gb:Va,hb:ua,$d:E,ef:!1})}})}function qv(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{gb:a,hb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{gb:a,hb:c};c=d.length-1;d[d.length-1].preload||(a++,c=0);return{gb:a,hb:c}}
1006
+ function gw(a,b,c,d,e,f,g,h,k,l,m,n){var q=Rv(c,b)||Sv(c),p=[];if(k){k=u(k.split(","));for(var t=k.next();!t.done;t=k.next())p.push(t.value)}k=void 0;t=null;c==Id?k=p.includes("public.accessibility.transcribes-spoken-dialog")&&p.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":p.includes("public.accessibility.describes-video")&&(t="visually impaired");p.length||"subtitle"!==k||p.push("subtitle");a={id:a.A++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
1007
1007
  segmentIndex:null,mimeType:q,codecs:b,kind:c==Id?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:qe(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:p,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:t,external:!1,fastSwitching:!1,fullMimeTypes:new Set};
1008
- Sv(a);return a}
1009
- function ov(a,b,c,d,e){var f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,U,R;return L(function(V){switch(V.g){case 1:f=new Map;if(b.segments)for(g=u(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=Fu(k.g,"EXT-X-KEY"),m=null,l.length)for(m=Kv(a,b,k.g,d,e),n=u(l),q=n.next();!q.done;q=n.next())p=q.value,f.set(p,m);x=t=!1;w=[];z=new Set;v=u(f);B=v.next();case 2:if(B.done){V.u(4);break}A=B.value;D=u(A);G=D.next().value;J=D.next().value;I=G;E=J;H=Cu(I,"METHOD");if("NONE"==H){V.u(3);break}t=
1010
- !0;K=Z(I,"KEYFORMAT")||"identity";M=null;if(Wv(H)){x=!0;V.u(3);break}if("identity"!=K){M=(O=Xv[K])?O(I,c):null;V.u(6);break}return C(V,Yv(a,I,c,d,E,e),8);case 8:M=V.h;case 6:if(M){if(M.keyIds)for(N=u(M.keyIds),U=N.next();!U.done;U=N.next())R=U.value,z.add(R);w.push(M)}case 3:B=v.next();V.u(2);break;case 4:return V.return({drmInfos:w,keyIds:z,encrypted:t,Vg:x})}})}
1011
- function iw(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Wa("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new Q(2,4,4042);var f=0,g=Z(b,"IV","");if(g){var h=vd(g.substr(2));if(16!=h.byteLength)throw new Q(2,4,4048);}else f=Iu(c.g,"EXT-X-MEDIA-SEQUENCE",0);c=b.toString()+"-"+f;if(!a.ba.has(c)){var k={bitsKey:128,blockCipherMode:"CBC",iv:h,firstMediaSequenceNumber:f};switch(Cu(b,"METHOD")){case "AES-256":k.bitsKey=256;break;case "AES-256-CTR":k.bitsKey=
1008
+ Tv(a);return a}
1009
+ function ov(a,b,c,d,e){var f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N,R,S;return L(function(V){switch(V.g){case 1:f=new Map;if(b.segments)for(g=u(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=Fu(k.g,"EXT-X-KEY"),m=null,l.length)for(m=Kv(a,b,k.g,d,e),n=u(l),q=n.next();!q.done;q=n.next())p=q.value,f.set(p,m);x=t=!1;w=[];z=new Set;v=u(f);B=v.next();case 2:if(B.done){V.u(4);break}A=B.value;D=u(A);G=D.next().value;J=D.next().value;I=G;E=J;H=Cu(I,"METHOD");if("NONE"==H){V.u(3);break}t=
1010
+ !0;K=Z(I,"KEYFORMAT")||"identity";M=null;if(Xv(H)){x=!0;V.u(3);break}if("identity"!=K){M=(O=Yv[K])?O(I,c):null;V.u(6);break}return C(V,Zv(a,I,c,d,E,e),8);case 8:M=V.h;case 6:if(M){if(M.keyIds)for(N=u(M.keyIds),R=N.next();!R.done;R=N.next())S=R.value,z.add(S);w.push(M)}case 3:B=v.next();V.u(2);break;case 4:return V.return({drmInfos:w,keyIds:z,encrypted:t,Vg:x})}})}
1011
+ function jw(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Wa("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new Q(2,4,4042);var f=0,g=Z(b,"IV","");if(g){var h=vd(g.substr(2));if(16!=h.byteLength)throw new Q(2,4,4048);}else f=Iu(c.g,"EXT-X-MEDIA-SEQUENCE",0);c=b.toString()+"-"+f;if(!a.ba.has(c)){var k={bitsKey:128,blockCipherMode:"CBC",iv:h,firstMediaSequenceNumber:f};switch(Cu(b,"METHOD")){case "AES-256":k.bitsKey=256;break;case "AES-256-CTR":k.bitsKey=
1012
1012
  256,k.blockCipherMode="CTR"}k.fetchKey=function(){var l,m,n,q,p,t,x;return L(function(w){if(1==w.g)return l=Ju(d(),Cu(b,"URI"),e),m=l.sort().join(""),a.da.has(m)||(n=hg(l,a.g.retryParameters),q=Lv(a,n,6),a.da.set(m,q)),C(w,a.da.get(m),2);if(3!=w.g){p=w.h;if(!p.data||p.data.byteLength!=k.bitsKey/8)throw new Q(2,4,4049);t={name:"CTR"==k.blockCipherMode?"AES-CTR":"AES-CBC",length:k.bitsKey};x=k;return C(w,window.crypto.subtle.importKey("raw",p.data,t,!0,["decrypt"]),3)}x.cryptoKey=w.h;k.fetchKey=void 0;
1013
1013
  F(w)})};a.ba.set(c,k)}return a.ba.get(c)}
1014
1014
  function rv(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Hu(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Hu(b.g,"EXT-X-TARGETDURATION");if(!d)throw new Q(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Hu(b.g,"EXT-X-PART-INF"))a.L=Number(Cu(e,"PART-TARGET"));b=Hu(b.g,"EXT-X-SERVER-CONTROL");a.B&&a.L?(a.m=a.lb?5*a.L<=c?Math.min(a.L,a.m):Math.min(c,a.m):Math.min(a.L,a.m),a.ta=b?Number(Cu(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
1015
1015
  Bu(b,"HOLD-BACK"):null,a.sa=c?Number(c.value):0);a.Ha=Math.max(d,a.Ha)}function Hv(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ta)b=a.ta;else if(a.sa)b=a.sa;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.Ha*c}a.l.Eg(0);a.l.Df(b);a.l.Ec(!1)}
1016
- function Kv(a,b,c,d,e){var f=Hu(c,"EXT-X-MAP");if(!f)return null;var g=Cu(f,"URI"),h=Ju(d(),g,e);g=[h.toString(),Z(f,"BYTERANGE","")].join("-");if(!a.Y.has(g)){var k=void 0,l=null;c=u(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?Wv(Cu(m,"METHOD"))&&m.id<f.id&&(k=iw(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=jw(h,f,l,k);a.Y.set(g,b)}return a.Y.get(g)}
1017
- function jw(a,b,c,d){var e=0,f=null;b=Z(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new qi(function(){return a},e,f,null,null,null,d)}
1018
- function kw(a,b,c,d,e,f,g,h,k){var l=d.g,m=Hu(l,"EXTINF"),n=0,q=0,p=null;d.rb.length&&!a.B&&Wa("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var t=null;if(!a.g.hls.ignoreManifestProgramDateTime){var x=Hu(l,"EXT-X-PROGRAM-DATE-TIME");x&&x.value&&(t=eh(x.value))}var w=wi;Hu(l,"EXT-X-GAP")&&(w=2);if(!m){if(0==d.rb.length)throw new Q(2,4,4024,"EXTINF");
1016
+ function Kv(a,b,c,d,e){var f=Hu(c,"EXT-X-MAP");if(!f)return null;var g=Cu(f,"URI"),h=Ju(d(),g,e);g=[h.toString(),Z(f,"BYTERANGE","")].join("-");if(!a.Y.has(g)){var k=void 0,l=null;c=u(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?Xv(Cu(m,"METHOD"))&&m.id<f.id&&(k=jw(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=kw(h,f,l,k);a.Y.set(g,b)}return a.Y.get(g)}
1017
+ function kw(a,b,c,d){var e=0,f=null;b=Z(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new qi(function(){return a},e,f,null,null,null,d)}
1018
+ function lw(a,b,c,d,e,f,g,h,k){var l=d.g,m=Hu(l,"EXTINF"),n=0,q=0,p=null;d.rb.length&&!a.B&&Wa("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var t=null;if(!a.g.hls.ignoreManifestProgramDateTime){var x=Hu(l,"EXT-X-PROGRAM-DATE-TIME");x&&x.value&&(t=eh(x.value))}var w=wi;Hu(l,"EXT-X-GAP")&&(w=2);if(!m){if(0==d.rb.length)throw new Q(2,4,4024,"EXTINF");
1019
1019
  if(!a.B)return null}var z=[];x=!1;var v=null,B=!1,A=!1;if(a.B&&d.rb.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=t,G={},J=0;J<d.rb.length;G={Qc:G.Qc,yd:G.yd},J++){var I=d.rb[J],E=0==J?c:z[z.length-1],H=0==J?e:E.endTime,K=Number(Z(I,"DURATION"))||a.L;if(K){var M=H+K,O=0,N=null;"EXT-X-PRELOAD-HINT"==I.name?(O=(O=Z(I,"BYTERANGE-START"))?Number(O):0,(E=Z(I,"BYTERANGE-LENGTH"))?N=O+Number(E)-1:O&&(N=Number.MAX_SAFE_INTEGER)):
1020
- (O=Z(I,"BYTERANGE"),N=u(lw(E,O)),O=N.next().value,N=N.next().value);G.yd=Z(I,"URI");if(G.yd){E=wi;"YES"==Z(I,"GAP")&&(E=2,B=!0);G.Qc=null;var U=function(V){return function(){null==V.Qc&&(V.Qc=Ju(h(),V.yd,f));return V.Qc}}(G);n&&0<=O&&null!=N&&(v=U,x=!0);H=new vi(H,M,U,O,N,b,0,0,Infinity,[],"",null,D,E,k);"EXT-X-PRELOAD-HINT"==I.name&&(H.ff(),A=!0);"YES"!=Z(I,"INDEPENDENT")&&0<J&&H.Zd();z.push(H);D&&(D+=K)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(z.length)n=z[z.length-
1021
- 1].endTime;else return null;x&&(B||0!=z[0].Aa?(x=!1,v=null):z=[]);(m=Hu(l,"EXT-X-BYTERANGE"))?(p=u(lw(c,m.value)),q=p.next().value,p=p.next().value):z.length&&(q=z[0].Aa,p=z[z.length-1].ja);c="";m=null;"image"==g.type&&(c="1x1",g=Hu(l,"EXT-X-TILES"))&&(c=Cu(g,"LAYOUT"),(g=Z(g,"DURATION"))&&(m=Number(g)));var R=null;b=new vi(e,n,function(){if(v)return v();null==R&&(R=Ju(h(),d.h,f));return R||[]},q,p,b,0,0,Infinity,z,c,m,t,w,k,0<z.length&&!!d.h);x&&(a.lb=!0,b.ng(),A&&b.ff());return b}
1022
- function lw(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.ja+1,d=c+b-1);return[c,d]}
1023
- function pv(a,b,c,d,e,f,g){var h=b.segments,k=void 0,l=Iu(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),m=Iu(b.g,"EXT-X-MEDIA-SEQUENCE",0),n=Hu(b.g,"EXT-X-SKIP"),q=n?Number(Z(n,"SKIPPED-SEGMENTS")):0,p=m+q,t=0;gv(a)&&d.has(p)&&(t=d.get(p));0===t&&a.qa==Mv&&0<d.size&&!d.has(p)&&(t=a.l.qb());var x=[],w=null;n=[];for(var z=0;z<h.length;z++){var v=h[z],B=0==z?t:w.endTime;p=m+q+z;Hu(v.g,"EXT-X-DISCONTINUITY")&&l++;var A=u(v.g);for(var D=A.next();!D.done;D=A.next())D=D.value,"EXT-X-KEY"==D.name&&(Wv(Cu(D,"METHOD"))?
1024
- k=iw(a,D,b,f,e):k=void 0);d.set(p,B);A=Kv(a,b,v.g,f,e);!a.B&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.B=a.i.isLowLatencyMode());if(B=kw(a,A,w,v,B,e,c,f,k))(w=Iu(v.g,"EXT-X-BITRATE"))?n.push({bitrate:w,duration:B.endTime-B.startTime}):n.length&&(w=n.pop(),w.duration+=B.endTime-B.startTime,n.push(w)),w=B,B.j=l,tv(a,g)&&null!=a.I&&p<a.I||x.push(B)}b=void 0;n.length&&(b=n.reduce(function(G,J){return G+J.duration},0),b=Math.round(n.reduce(function(G,J){return G+J.bitrate*J.duration},0)/
1020
+ (O=Z(I,"BYTERANGE"),N=u(Mv(E,O)),O=N.next().value,N=N.next().value);G.yd=Z(I,"URI");if(G.yd){E=wi;"YES"==Z(I,"GAP")&&(E=2,B=!0);G.Qc=null;var R=function(V){return function(){null==V.Qc&&(V.Qc=Ju(h(),V.yd,f));return V.Qc}}(G);n&&0<=O&&null!=N&&(v=R,x=!0);H=new vi(H,M,R,O,N,b,0,0,Infinity,[],"",null,D,E,k);"EXT-X-PRELOAD-HINT"==I.name&&(H.ff(),A=!0);"YES"!=Z(I,"INDEPENDENT")&&0<J&&H.Zd();z.push(H);D&&(D+=K)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(z.length)n=z[z.length-
1021
+ 1].endTime;else return null;x&&(B||0!=z[0].Aa?(x=!1,v=null):z=[]);(m=Hu(l,"EXT-X-BYTERANGE"))?(p=u(Mv(c,m.value)),q=p.next().value,p=p.next().value):z.length&&(q=z[0].Aa,p=z[z.length-1].ja);c="";m=null;"image"==g.type&&(c="1x1",g=Hu(l,"EXT-X-TILES"))&&(c=Cu(g,"LAYOUT"),(g=Z(g,"DURATION"))&&(m=Number(g)));var S=null;b=new vi(e,n,function(){if(v)return v();null==S&&(S=Ju(h(),d.h,f));return S||[]},q,p,b,0,0,Infinity,z,c,m,t,w,k,0<z.length&&!!d.h);x&&(a.lb=!0,b.ng(),A&&b.ff());return b}
1022
+ function Mv(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.ja+1,d=c+b-1);return[c,d]}
1023
+ function pv(a,b,c,d,e,f,g){var h=b.segments,k=void 0,l=Iu(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),m=Iu(b.g,"EXT-X-MEDIA-SEQUENCE",0),n=Hu(b.g,"EXT-X-SKIP"),q=n?Number(Z(n,"SKIPPED-SEGMENTS")):0,p=m+q,t=0;gv(a)&&d.has(p)&&(t=d.get(p));0===t&&a.qa==Nv&&0<d.size&&!d.has(p)&&(t=a.l.qb());var x=[],w=null;n=[];for(var z=0;z<h.length;z++){var v=h[z],B=0==z?t:w.endTime;p=m+q+z;Hu(v.g,"EXT-X-DISCONTINUITY")&&l++;var A=u(v.g);for(var D=A.next();!D.done;D=A.next())D=D.value,"EXT-X-KEY"==D.name&&(Xv(Cu(D,"METHOD"))?
1024
+ k=jw(a,D,b,f,e):k=void 0);d.set(p,B);A=Kv(a,b,v.g,f,e);!a.B&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.B=a.i.isLowLatencyMode());if(B=lw(a,A,w,v,B,e,c,f,k))(w=Iu(v.g,"EXT-X-BITRATE"))?n.push({bitrate:w,duration:B.endTime-B.startTime}):n.length&&(w=n.pop(),w.duration+=B.endTime-B.startTime,n.push(w)),w=B,B.j=l,tv(a,g)&&null!=a.I&&p<a.I||x.push(B)}b=void 0;n.length&&(b=n.reduce(function(G,J){return G+J.duration},0),b=Math.round(n.reduce(function(G,J){return G+J.bitrate*J.duration},0)/
1025
1025
  b*1E3));if(n=x.some(function(G){return null!=G.h}))for(c={},d=0;d<x.length;c={Jc:c.Jc,Ic:c.Ic,td:c.td,Cb:c.Cb,Fc:c.Fc},d++)if(c.Cb=x[d],null==c.Cb.h)for(c.Ic=0,c.Jc=d,e=function(G){return function(){var J=x[G.Jc];if(J){if(null!=J.h)return J.h+G.Ic;G.Ic-=J.endTime-J.startTime;G.Jc+=1}return null}}(c),c.Fc=0,c.td=d,f=function(G){return function(){var J=x[G.td];if(J){J!=G.Cb&&(G.Fc+=J.endTime-J.startTime);if(null!=J.h)return J.h+G.Fc;--G.td}return null}}(c);null==c.Cb.h;)c.Cb.h=f(),null==c.Cb.h&&(c.Cb.h=
1026
- e());if(n)for(c=u(x),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.h,e=u(e.g),f=e.next();!f.done;f=e.next())f=f.value,f.h=d,d+=f.endTime-f.startTime;c=a.T;if(n&&Infinity!=c&&!tv(a,g))for(a=u(x),d=a.next();!d.done;d=a.next())d.value.Hf(c);return{segments:x,bandwidth:b}}function Qv(a,b){if(a==Id){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}
1027
- function Rv(a){return a==Id?"text/vtt":mw[a].mp4}
1028
- function hw(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,t,x,w,z,v;return L(function(B){switch(B.g){case 1:g=ng;h=Math.trunc((d.segments.length-1)/2);k=Ju(f(),d.segments[h].h,e);l=new rc(k[0]);m=l.Pa.split(".").pop();n=mw[b];if((q=n[m])||(q=Jv[m])||(q=Qv(b,c)))return B.return(q);t=1;x=hg(k,a.g.retryParameters);ra(B,2);x.method="HEAD";return C(B,Lv(a,x,g,{type:t}),4);case 4:w=B.h;p=w.headers["content-type"];ta(B,3);break;case 2:z=va(B);if(!z||1002!=z.code&&1001!=z.code){B.u(3);break}x.method="GET";return C(B,
1029
- Lv(a,x,g,{type:t}),6);case 6:v=B.h,p=v.headers["content-type"];case 3:return p?B.return(p.split(";")[0]):B.return(Rv(b))}})}function Gv(a,b,c,d,e,f){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0)}function ev(a,b,c){return Lv(a,hg(b,a.g.retryParameters),0,{type:c?2:3})}
1026
+ e());if(n)for(c=u(x),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.h,e=u(e.g),f=e.next();!f.done;f=e.next())f=f.value,f.h=d,d+=f.endTime-f.startTime;c=a.T;if(n&&Infinity!=c&&!tv(a,g))for(a=u(x),d=a.next();!d.done;d=a.next())d.value.Hf(c);return{segments:x,bandwidth:b}}function Rv(a,b){if(a==Id){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}
1027
+ function Sv(a){return a==Id?"text/vtt":mw[a].mp4}
1028
+ function iw(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,t,x,w,z,v;return L(function(B){switch(B.g){case 1:g=ng;h=Math.trunc((d.segments.length-1)/2);k=Ju(f(),d.segments[h].h,e);l=new rc(k[0]);m=l.Pa.split(".").pop();n=mw[b];if((q=n[m])||(q=Jv[m])||(q=Rv(b,c)))return B.return(q);t=1;x=hg(k,a.g.retryParameters);ra(B,2);x.method="HEAD";return C(B,Lv(a,x,g,{type:t}),4);case 4:w=B.h;p=w.headers["content-type"];ta(B,3);break;case 2:z=va(B);if(!z||1002!=z.code&&1001!=z.code){B.u(3);break}x.method="GET";return C(B,
1029
+ Lv(a,x,g,{type:t}),6);case 6:v=B.h,p=v.headers["content-type"];case 3:return p?B.return(p.split(";")[0]):B.return(Sv(b))}})}function Gv(a,b,c,d,e,f){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0)}function ev(a,b,c){return Lv(a,hg(b,a.g.retryParameters),0,{type:c?2:3})}
1030
1030
  function cv(a){var b,c,d,e,f,g;L(function(h){switch(h.g){case 1:if(!a.i)return h.return();ra(h,2);b=Date.now();return C(h,a.update(),4);case 4:c=Date.now();gv(a)&&(d=(c-b)/1E3,a.bb.sample(1,d),e=a.m,f=Math.max(0,e-Ra(a.bb)),a.s.X(f));ta(h,3);break;case 2:g=va(h);if(!a.i)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(g),h.return();g.severity=1;a.i.onError(g);a.s.X(.1);case 3:if(!a.i)return h.return();a.i.onManifestUpdated();F(h)}})}
1031
- function gv(a){return a.qa!=dv}function kv(a,b){a.qa=b;a.l&&a.l.Ec(!gv(a));gv(a)||a.s.stop()}function Lv(a,b,c,d){if(!a.N)throw new Q(2,7,7001);b=a.i.networkingEngine.request(c,b,d);cg(a.N,b);return b.promise}function Wv(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
1032
- function Yv(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,t,x,w,z,v,B,A;return L(function(D){switch(D.g){case 1:if("video/mp2t"==c)throw new Q(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new Q(2,4,4041);g=Cu(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return D.return(null);k=Ju(d(),Cu(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=wd(ud(k[0].split("data:text/plain;base64,").pop()));D.u(2);break}m=k.sort().join("");a.ia.has(m)||(n=hg(k,a.g.retryParameters),q=Lv(a,n,6),a.ia.set(m,
1031
+ function gv(a){return a.qa!=dv}function kv(a,b){a.qa=b;a.l&&a.l.Ec(!gv(a));gv(a)||a.s.stop()}function Lv(a,b,c,d){if(!a.N)throw new Q(2,7,7001);b=a.i.networkingEngine.request(c,b,d);cg(a.N,b);return b.promise}function Xv(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
1032
+ function Zv(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,t,x,w,z,v,B,A;return L(function(D){switch(D.g){case 1:if("video/mp2t"==c)throw new Q(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new Q(2,4,4041);g=Cu(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return D.return(null);k=Ju(d(),Cu(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=wd(ud(k[0].split("data:text/plain;base64,").pop()));D.u(2);break}m=k.sort().join("");a.ia.has(m)||(n=hg(k,a.g.retryParameters),q=Lv(a,n,6),a.ia.set(m,
1033
1033
  q));return C(D,a.ia.get(m),3);case 3:p=D.h,l=wd(p.data);case 2:t="00000000000000000000000000000000";if(!e){D.u(4);break}if(a.pa.has(e)){x=a.pa.get(e);D.u(5);break}w=hl(e.$(),e.ac(),e.Yb(),a.g.retryParameters);z=ng;return C(D,Lv(a,w,z,{type:0}),6);case 6:v=D.h,x=av(v.data),a.pa.set(e,x);case 5:x&&(t=x);case 4:return B=new Map,B.set(t,l),A="cenc","SAMPLE-AES"==g&&(A="cbcs"),D.return(Cd(B,A))}})}P("shaka.hls.HlsParser",bv);
1034
1034
  var Jv={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},mw={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
1035
- vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Xv={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new Q(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new Q(2,4,4041);a=Cu(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a))return null;b="cenc";"SAMPLE-AES"==a&&(b="cbcs");return Bd("com.apple.fps",b,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},
1035
+ vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Yv={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new Q(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new Q(2,4,4041);a=Cu(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a))return null;b="cenc";"SAMPLE-AES"==a&&(b="cbcs");return Bd("com.apple.fps",b,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},
1036
1036
  "urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Cu(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");b=Cu(a,"URI");b=Wu(b);b=Ab(b.data);c=Bd("com.widevine.alpha",c,[{initDataType:"cenc",initData:b}]);if(a=Z(a,"KEYID"))c.keyIds=new Set([a.toLowerCase().substr(2)]);return c},"com.microsoft.playready":function(a){var b=Cu(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==
1037
- b&&(c="cbcs");a=Cu(a,"URI");a=Wu(a);a=Ab(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Ng(a,b,new Set,0);return Bd("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},dv="VOD",gw="EVENT",Mv="LIVE",jv={Rg:dv,Qi:gw,Yi:Mv};li["application/x-mpegurl"]=function(){return new bv};li["application/vnd.apple.mpegurl"]=function(){return new bv};function nw(a){var b=0,c=Eb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Ab(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function ow(a){if(a=pw(a))a:{a=u(Yg(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=Zg(b.value,"LA_URL")){a=Wg(b);break a}a=""}else a="";return a}
1037
+ b&&(c="cbcs");a=Cu(a,"URI");a=Wu(a);a=Ab(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Ng(a,b,new Set,0);return Bd("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},dv="VOD",hw="EVENT",Nv="LIVE",jv={Rg:dv,Qi:hw,Yi:Nv};li["application/x-mpegurl"]=function(){return new bv};li["application/vnd.apple.mpegurl"]=function(){return new bv};function nw(a){var b=0,c=Eb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Ab(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function ow(a){if(a=pw(a))a:{a=u(Yg(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=Zg(b.value,"LA_URL")){a=Wg(b);break a}a=""}else a="";return a}
1038
1038
  function pw(a){a=ud(Wg(a));a=nw(a).filter(function(b){return b.type===qw})[0];if(!a)return null;a=id(a.value,!0);return(a=Pg(a,"WRMHEADER"))?a:null}var qw=1,rw=(new Map).set("com.microsoft.playready",ow).set("com.microsoft.playready.recommendation",ow).set("com.microsoft.playready.software",ow).set("com.microsoft.playready.hardware",ow);function sw(a){if(!tw){tw=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);uw=vw("ftyp",b,d,b,c);b=vw("dref",ww);xw=vw("dinf",b)}this.g=a}
1039
1039
  function yw(a){for(var b=[],c=u(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=vw;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(zw+1));m=Math.floor(m%(zw+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(y(Aw(h,4)),[0,0,0,0],y(Aw(n,4)),y(Aw(m,4)),[0,0,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,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],y(Aw(k,2)),[0,0],y(Aw(l,
1040
1040
  2)),[0,0]));h=vw("tkhd",h);k=vw;n=g.duration*g.timescale;l=Math.floor(n/(zw+1));n=Math.floor(n%(zw+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(y(Aw(g.timescale,4)),y(Aw(l,4)),y(Aw(n,4)),y(Aw(m,2)),[0,0]));l=vw("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Bw;break;case "audio":m=Cw}n=vw("hdlr",m);a:{switch(g.type){case "video":g=vw("minf",vw("vmhd",Dw),xw,Ew(g));break a;
@@ -1131,14 +1131,14 @@ r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new ux(this.g);th
1131
1131
  function By(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,t,x,w,z,v,B;return L(function(A){switch(A.g){case 1:return Dy(),h=g=null,k=new Lx,n=m=l=null,ra(A,2,3),C(A,d(),5);case 5:return g=A.h,C(A,Ey(a,b,g,e),6);case 6:q=A.h;Fy(a);p=!q.presentationTimeline.R()&&!q.presentationTimeline.dc();if(!p)throw new Q(2,9,9005,b);return C(A,a.rc(q,function(D){n=n||D},e),7);case 7:h=A.h;Fy(a);if(n)throw n;return C(A,Gy(q,h,e),8);case 8:return C(A,k.init(),9);case 9:return Fy(a),C(A,Nx(k),10);case 10:return l=A.h,Fy(a),t=Hy(h,
1132
1132
  q,b,c,e,f),x=t.Th,w=t.Jf,C(A,l.Ba.addManifests([x]),11);case 11:z=A.h;Fy(a);m=z[0];Fy(a);if(n)throw n;return C(A,Iy(a,w,m,x,f,e,l.Ba,q,h),12);case 12:return Fy(a),Jy(q,x,h,e),C(A,l.Ba.updateManifest(m,x),13);case 13:return Fy(a),v=new dy("manifest",l.path.fb,l.path.Ba,m),A.return(uy(v,x));case 3:return wa(A),C(A,k.destroy(),14);case 14:if(!g){A.u(15);break}return C(A,g.stop(),15);case 15:if(!h){A.u(17);break}return C(A,h.destroy(),17);case 17:ya(A,0);break;case 2:B=va(A);if(null==m){A.u(19);break}return C(A,
1133
1133
  Ky(m),19);case 19:throw n||B;}})}
1134
- function Iy(a,b,c,d,e,f,g,h,k){var l,m,n,q,p,t,x,w,z,v;return L(function(B){switch(B.g){case 1:l={};m=0;n=function(A,D){var G,J,I,E,H,K,M;return L(function(O){if(1==O.g){G={};J=u(A);for(I=J.next();!I.done;G={Ob:G.Ob},I=J.next())G.Ob=I.value,E=rx(G.Ob,f),H=G.Ob.i,K=G.Ob.h,M=function(N){return function(U){var R,V,xa;return L(function(Ca){if(1==Ca.g)return C(Ca,g.addSegments([{data:U}]),2);R=Ca.h;Fy(a);V=N.Ob.g;xa=qx(V);l[xa]=R[0];m+=U.byteLength;F(Ca)})}}(G),xx(e,G.Ob.groupId,E,H,K,M);return C(O,zx(e),
1134
+ function Iy(a,b,c,d,e,f,g,h,k){var l,m,n,q,p,t,x,w,z,v;return L(function(B){switch(B.g){case 1:l={};m=0;n=function(A,D){var G,J,I,E,H,K,M;return L(function(O){if(1==O.g){G={};J=u(A);for(I=J.next();!I.done;G={Ob:G.Ob},I=J.next())G.Ob=I.value,E=rx(G.Ob,f),H=G.Ob.i,K=G.Ob.h,M=function(N){return function(R){var S,V,xa;return L(function(Ca){if(1==Ca.g)return C(Ca,g.addSegments([{data:R}]),2);S=Ca.h;Fy(a);V=N.Ob.g;xa=qx(V);l[xa]=S[0];m+=R.byteLength;F(Ca)})}}(G),xx(e,G.Ob.groupId,E,H,K,M);return C(O,zx(e),
1135
1135
  2)}if(!D)return O.u(0);Fy(a);Jy(h,d,k,f);return C(O,g.updateManifest(c,d),0)})};q=!1;ra(B,2);if(!Ly(h)||!q||My(h)){B.u(4);break}return C(B,n(b.filter(function(A){return A.h}),!0),5);case 5:return Fy(a),b=b.filter(function(A){return!A.h}),p=l,t=m,l={},m=0,C(B,Ny(g,c,d,p,t,function(){return Fy(a)}),6);case 6:Fy(a);case 4:if(q){B.u(7);break}return C(B,n(b,!1),8);case 8:return Fy(a),x=l,w=m,l={},m=0,C(B,Ny(g,c,d,x,w,function(){return Fy(a)}),9);case 9:Fy(a);case 7:ta(B,0);break;case 2:return z=va(B),
1136
1136
  v=Object.values(l),C(B,g.removeSegments(v,function(){}),10);case 10:throw z;}})}function Ky(a){var b,c,d,e;return L(function(f){switch(f.g){case 1:return b=new Lx,C(f,b.init(),2);case 2:return C(f,Nx(b),3);case 3:return c=f.h,d=new dy("manifest",c.path.fb,c.path.Ba,a),C(f,b.destroy(),4);case 4:return e=new zy,C(f,e.remove(d.toString()),0)}})}
1137
1137
  function Ny(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,t,x,w;return L(function(z){switch(z.g){case 1:g=!1;ra(z,2);h=!0;k=u(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=u(m.segments),q=n.next();!q.done;q=n.next())p=q.value,t=p.pendingSegmentRefId?d[p.pendingSegmentRefId]:null,null!=t&&(p.dataKey=t,p.pendingSegmentRefId=void 0),t=p.pendingInitSegmentRefId?d[p.pendingInitSegmentRefId]:null,null!=t&&(p.initSegmentKey=t,p.pendingInitSegmentRefId=void 0),p.pendingSegmentRefId&&(h=!1),p.pendingInitSegmentRefId&&
1138
1138
  (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return C(z,a.updateManifest(b,c),4);case 4:g=!0;f();ta(z,0);break;case 2:return x=va(z),C(z,Ky(b),5);case 5:if(g){z.u(6);break}w=Object.values(d);return C(z,a.removeSegments(w,function(){}),6);case 6:throw x;}})}
1139
- function Gy(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N;return L(function(U){switch(U.g){case 1:return d={width:Infinity,height:Infinity},De(a,c.restrictions,d),C(U,He(b,a,c.offline.usePersistentLicense,c.drm.preferredKeySystems),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;Be(a,g,h,f);k=u(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(Xe(m));n=u(a.textStreams);for(q=n.next();!q.done;q=n.next())p=q.value,e.push(Ye(p));
1140
- t=u(a.imageStreams);for(x=t.next();!x.done;x=t.next())w=x.value,e.push(Ze(w));return C(U,c.offline.trackSelectionCallback(e),3);case 3:z=U.h;v=a.presentationTimeline.getDuration();B=0;A=u(z);for(D=A.next();!D.done;D=A.next())G=D.value,J=G.bandwidth*v/8,B+=J;ra(U,4);return C(U,c.offline.downloadSizeCallback(B),6);case 6:I=U.h;if(!I)throw new Q(2,9,9014);ta(U,5);break;case 4:E=va(U);if(E instanceof Q)throw E;throw new Q(2,9,9015);case 5:H=new Set;K=new Set;M=new Set;O=u(z);for(D=O.next();!D.done;D=
1141
- O.next())N=D.value,"variant"==N.type&&H.add(N.id),"text"==N.type&&K.add(N.id),"image"==N.type&&M.add(N.id);a.variants=a.variants.filter(function(R){return H.has(R.id)});a.textStreams=a.textStreams.filter(function(R){return K.has(R.id)});a.imageStreams=a.imageStreams.filter(function(R){return M.has(R.id)});Oy(a);F(U)}})}
1139
+ function Gy(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,t,x,w,z,v,B,A,D,G,J,I,E,H,K,M,O,N;return L(function(R){switch(R.g){case 1:return d={width:Infinity,height:Infinity},De(a,c.restrictions,d),C(R,He(b,a,c.offline.usePersistentLicense,c.drm.preferredKeySystems),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;Be(a,g,h,f);k=u(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(Xe(m));n=u(a.textStreams);for(q=n.next();!q.done;q=n.next())p=q.value,e.push(Ye(p));
1140
+ t=u(a.imageStreams);for(x=t.next();!x.done;x=t.next())w=x.value,e.push(Ze(w));return C(R,c.offline.trackSelectionCallback(e),3);case 3:z=R.h;v=a.presentationTimeline.getDuration();B=0;A=u(z);for(D=A.next();!D.done;D=A.next())G=D.value,J=G.bandwidth*v/8,B+=J;ra(R,4);return C(R,c.offline.downloadSizeCallback(B),6);case 6:I=R.h;if(!I)throw new Q(2,9,9014);ta(R,5);break;case 4:E=va(R);if(E instanceof Q)throw E;throw new Q(2,9,9015);case 5:H=new Set;K=new Set;M=new Set;O=u(z);for(D=O.next();!D.done;D=
1141
+ O.next())N=D.value,"variant"==N.type&&H.add(N.id),"text"==N.type&&K.add(N.id),"image"==N.type&&M.add(N.id);a.variants=a.variants.filter(function(S){return H.has(S.id)});a.textStreams=a.textStreams.filter(function(S){return K.has(S.id)});a.imageStreams=a.imageStreams.filter(function(S){return M.has(S.id)});Oy(a);F(R)}})}
1142
1142
  function Hy(a,b,c,d,e,f){var g=sy(c,b,d),h=e.offline.progressCallback;wx(f,function(p,t){g.size=t;h(g,p)},function(p,t){k&&e.offline.usePersistentLicense&&l==t&&Eh(a,"cenc",p)});var k=Ly(b)&&!My(b),l=null;k&&(l=Py.get(a.g.keySystem));for(var m=new vy,n=u(b.textStreams),q=n.next();!q.done;q=n.next())m.g[q.value.id]=52;n=u(b.imageStreams);for(q=n.next();!q.done;q=n.next())xy(m,q.value);q=u(b.variants);for(n=q.next();!n.done;n=q.next())wy(m,n.value);m=Qy(f,m,b,e);f=m.streams;m=m.Jf;q=a.g;n=e.offline.usePersistentLicense;
1143
1143
  q&&n&&(q.initData=[]);return{Th:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.cd(),streams:f,sessionIds:n?Oh(a):[],drmInfo:q,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},Jf:m}}function Ly(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
1144
1144
  function My(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function Jy(a,b,c,d){b.expiration=c.cd();c=Oh(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Ly(a)&&d.offline.usePersistentLicense&&!c.length)throw new Q(2,9,9007);}r.remove=function(a){return Ry(this,Sy(this,a))};
@@ -1158,7 +1158,7 @@ function Wy(a,b,c,d){var e,f,g;return L(function(h){if(1==h.g){if(!d.drmInfo)ret
1158
1158
  function $y(a){for(var b=new Set,c=u(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=u(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=u(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
1159
1159
  function Oy(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=u(b),d=c.next();!d.done;d=c.next()){d=u(b);for(var e=d.next();!e.done;e=d.next());}b=u(a);for(c=b.next();!c.done;c=b.next())for(c=u(a),d=c.next();!d.done;d=c.next());}P("shaka.offline.Storage",zy);zy.deleteAll=function(){var a;return L(function(b){return 1==b.g?(a=new Lx,sa(b,2),C(b,Sx(a),2)):5!=b.g?(wa(b),C(b,a.destroy(),5)):ya(b,0)})};
1160
1160
  zy.prototype.list=zy.prototype.list;zy.prototype.removeEmeSessions=zy.prototype.ki;zy.prototype.remove=zy.prototype.remove;zy.prototype.store=zy.prototype.store;zy.prototype.getNetworkingEngine=zy.prototype.Zb;zy.prototype.getConfiguration=zy.prototype.getConfiguration;zy.prototype.configure=zy.prototype.configure;zy.prototype.destroy=zy.prototype.destroy;zy.support=Ay;
1161
- var Py=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95");Yo.offline=Ay;function cz(){}function dz(a,b){a={priority:b||0,callback:a};for(b=0;b<ez.length;b++)if(ez[b].priority<a.priority){ez.splice(b,0,a);return}ez.push(a)}P("shaka.polyfill",cz);cz.register=dz;cz.installAll=function(){for(var a=u(ez),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Wa("Error installing polyfill!",c)}}};var ez=[];function fz(){this.g=new gz}function hz(){window.AbortController||(window.AbortController=fz,window.AbortSignal=gz)}fz.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new S("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};da.Object.defineProperties(fz.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});cz.AbortController=fz;fz.install=hz;
1161
+ var Py=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95");Yo.offline=Ay;function cz(){}function dz(a,b){a={priority:b||0,callback:a};for(b=0;b<ez.length;b++)if(ez[b].priority<a.priority){ez.splice(b,0,a);return}ez.push(a)}P("shaka.polyfill",cz);cz.register=dz;cz.installAll=function(){for(var a=u(ez),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Wa("Error installing polyfill!",c)}}};var ez=[];function fz(){this.g=new gz}function hz(){window.AbortController||(window.AbortController=fz,window.AbortSignal=gz)}fz.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new T("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};da.Object.defineProperties(fz.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});cz.AbortController=fz;fz.install=hz;
1162
1162
  function gz(){ag.call(this);this.h=!1;this.g=void 0;this.onabort=null}na(gz,ag);da.Object.defineProperties(gz.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});dz(hz);function iz(){}function jz(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=u(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())kz(b.value)}function kz(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}cz.Aria=iz;iz.install=jz;dz(jz);function lz(){}function mz(){nz()}cz.EncryptionScheme=lz;lz.install=mz;dz(mz,-2);function oz(){}
1163
1163
  function pz(){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.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),
1164
1164
  Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",qz);document.addEventListener("webkitfullscreenerror",qz);document.addEventListener("mozfullscreenchange",qz);document.addEventListener("mozfullscreenerror",qz);document.addEventListener("MSFullscreenChange",qz);document.addEventListener("MSFullscreenError",qz)}}
@@ -1174,7 +1174,7 @@ function Cz(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.
1174
1174
  function Fz(){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"mp2t"!=Sd(c)&&a(c)};if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"mp2t"!=Sd(c)&&b(c)}}}
1175
1175
  function Ez(){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"opus"!=Vd(c)&&a(c)};if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"opus"!=Vd(c)&&b(c)}}}
1176
1176
  function Gz(){var a=MediaSource.isTypeSupported;Wc()||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}cz.MediaSource=Az;Az.install=Bz;dz(Bz);function Hz(){}function Iz(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?Jz():void 0!=window.orientation&&Kz())}function Jz(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
1177
- function Kz(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new Lz;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new S("change");b.dispatchEvent(c)})}cz.Orientation=Hz;Hz.install=Iz;function Lz(){ag.call(this);this.type="";this.angle=0}na(Lz,ag);
1177
+ function Kz(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new Lz;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new T("change");b.dispatchEvent(c)})}cz.Orientation=Hz;Hz.install=Iz;function Lz(){ag.call(this);this.type="";this.angle=0}na(Lz,ag);
1178
1178
  Lz.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
1179
1179
  Lz.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};dz(Iz);function Mz(){}var Nz,Oz,Pz,Qz,Rz,Sz;function Tz(a,b){try{var c=new Uz(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Vz(a){var b=this.mediaKeys;b&&b!=a&&Wz(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?Wz(a,this):Promise.resolve()}
1180
1180
  function Xz(a){a=Ab(a.initData);if(Eb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=id(a.subarray(4),!0);a=nd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Bb(a);this.dispatchEvent(b)}cz.PatchedMediaKeysApple=Mz;
@@ -1183,11 +1183,11 @@ Mz.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(vo
1183
1183
  Tz;window.shakaMediaKeysPolyfill=!0}};
1184
1184
  function Uz(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=u(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=u(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
1185
1185
  g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=u(c.videoCapabilities),g=c.next();!g.done;g=c.next())f=g.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
1186
- Uz.prototype.createMediaKeys=function(){var a=new Yz(this.keySystem);return Promise.resolve(a)};Uz.prototype.getConfiguration=function(){return this.g};function Yz(a){this.h=new WebKitMediaKeys(a);this.g=new db}Yz.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new Zz(this.h,a)};Yz.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1187
- function Wz(a,b){a.g.ib();if(!b)return Promise.resolve();a.g.D(b,"webkitneedkey",Xz);try{return ok(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}Yz.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function Zz(a){ag.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new db;this.sessionId="";this.expiration=NaN;this.closed=new Rf;this.keyStatuses=new $z}na(Zz,ag);r=Zz.prototype;
1188
- r.generateRequest=function(a,b){var c=this;this.h=new Rf;try{var d=this.l.createSession("video/mp4",Ab(b));this.i=d;this.sessionId=d.sessionId||"";this.j.D(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.bc()?"license-request":"license-renewal").set("message",Bb(e.message));e=new S("message",e);c.dispatchEvent(e)});this.j.D(d,"webkitkeyadded",function(){c.g&&(aA(c,"usable"),c.g.resolve(),c.g=null)});this.j.D(d,"webkitkeyerror",
1186
+ Uz.prototype.createMediaKeys=function(){var a=new Yz(this.keySystem);return Promise.resolve(a)};Uz.prototype.getConfiguration=function(){return this.g};function Yz(a){this.h=new WebKitMediaKeys(a);this.g=new eb}Yz.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new Zz(this.h,a)};Yz.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1187
+ function Wz(a,b){a.g.ib();if(!b)return Promise.resolve();a.g.D(b,"webkitneedkey",Xz);try{return ok(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}Yz.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function Zz(a){ag.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new eb;this.sessionId="";this.expiration=NaN;this.closed=new Rf;this.keyStatuses=new $z}na(Zz,ag);r=Zz.prototype;
1188
+ r.generateRequest=function(a,b){var c=this;this.h=new Rf;try{var d=this.l.createSession("video/mp4",Ab(b));this.i=d;this.sessionId=d.sessionId||"";this.j.D(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.bc()?"license-request":"license-renewal").set("message",Bb(e.message));e=new T("message",e);c.dispatchEvent(e)});this.j.D(d,"webkitkeyadded",function(){c.g&&(aA(c,"usable"),c.g.resolve(),c.g=null)});this.j.D(d,"webkitkeyerror",
1189
1189
  function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:aA(c,"output-not-allowed");break;default:aA(c,"internal-error")}});aA(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
1190
- r.update=function(a){this.g=new Rf;try{this.i.update(Ab(a))}catch(b){this.g.reject(b)}return this.g};r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.ib()}catch(a){this.closed.reject(a)}return this.closed};r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function aA(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new S("keystatuseschange");a.dispatchEvent(b)}
1190
+ r.update=function(a){this.g=new Rf;try{this.i.update(Ab(a))}catch(b){this.g.reject(b)}return this.g};r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.ib()}catch(a){this.closed.reject(a)}return this.closed};r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function aA(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new T("keystatuseschange");a.dispatchEvent(b)}
1191
1191
  function $z(){this.size=0;this.g=void 0}r=$z.prototype;r.bc=function(){return this.g};r.forEach=function(a){this.g&&a(this.g,bi.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=bi.value();return this.g&&xb(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};function bA(){}function cA(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=dA,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=eA,window.MediaKeys=fA,window.MediaKeySystemAccess=gA,window.shakaMediaKeysPolyfill=!0)}function dA(){return Promise.reject(Error("The key system specified is not supported."))}
1192
1192
  function eA(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}cz.PatchedMediaKeysNop=bA;bA.install=cA;function fA(){throw new TypeError("Illegal constructor.");}fA.prototype.createSession=function(){};fA.prototype.setServerCertificate=function(){};fA.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function gA(){this.keySystem="";throw new TypeError("Illegal constructor.");}gA.prototype.getConfiguration=function(){};
1193
1193
  gA.prototype.createMediaKeys=function(){};dz(cA,-10);function hA(){}
@@ -1195,14 +1195,14 @@ function iA(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAcce
1195
1195
  function oA(a){var b=jA;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function kA(a,b){try{var c=new nA(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function lA(a){var b=this.mediaKeys;b&&b!=a&&pA(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&pA(a,this);return Promise.resolve()}cz.PatchedMediaKeysWebkit=hA;hA.install=iA;
1196
1196
  function nA(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=u(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=u(f.audioCapabilities),
1197
1197
  l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=u(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
1198
- d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}nA.prototype.createMediaKeys=function(){var a=new mA(this.g);return Promise.resolve(a)};nA.prototype.getConfiguration=function(){return this.h};function mA(a){this.l=a;this.h=null;this.g=new db;this.i=[];this.j=new Map}
1199
- function pA(a,b){a.h=b;a.g.ib();var c=jA;b&&(a.g.D(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Bb(d.initData);a.h.dispatchEvent(e)}),a.g.D(b,c+"keymessage",function(d){var e=qA(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.bc()?"licenserequest":"licenserenewal").set("message",d.message),d=new S("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.D(b,c+"keyadded",function(d){if(d=qA(a,d.sessionId))rA(d,"usable"),
1198
+ d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}nA.prototype.createMediaKeys=function(){var a=new mA(this.g);return Promise.resolve(a)};nA.prototype.getConfiguration=function(){return this.h};function mA(a){this.l=a;this.h=null;this.g=new eb;this.i=[];this.j=new Map}
1199
+ function pA(a,b){a.h=b;a.g.ib();var c=jA;b&&(a.g.D(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Bb(d.initData);a.h.dispatchEvent(e)}),a.g.D(b,c+"keymessage",function(d){var e=qA(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.bc()?"licenserequest":"licenserenewal").set("message",d.message),d=new T("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.D(b,c+"keyadded",function(d){if(d=qA(a,d.sessionId))rA(d,"usable"),
1200
1200
  d.g&&d.g.resolve(),d.g=null}),a.g.D(b,c+"keyerror",function(d){var e=qA(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?rA(e,"output-restricted"):1==f?rA(e,"expired"):rA(e,"internal-error"))}}))}
1201
1201
  mA.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new sA(b,this.l,a);this.i.push(a);return a};mA.prototype.setServerCertificate=function(){return Promise.resolve(!1)};mA.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
1202
1202
  function qA(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function sA(a,b,c){ag.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Rf;this.keyStatuses=new tA}na(sA,ag);
1203
1203
  function uA(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Ab(nd("LOAD_SESSION|"+c));else{var e=nd("PERSISTENT|");d=zd(e,b)}else d=Ab(b)}catch(g){return Promise.reject(g)}a.h=new Rf;var f=oA("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Mc(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).X(.01)}return a.h}
1204
1204
  function vA(a,b,c){if(a.g)a.g.then(function(){return vA(a,b,c)}).catch(function(){return vA(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=hd(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=ud(e.keys[0].k);e=ud(e.keys[0].kid)}else d=Ab(c),e=null;var f=oA("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
1205
- function rA(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new S("keystatuseschange");a.dispatchEvent(b)}r=sA.prototype;r.generateRequest=function(a,b){return uA(this,b,null)};r.load=function(a){return"persistent-license"==this.l?uA(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new Rf;vA(this,b,a);return b};
1205
+ function rA(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new T("keystatuseschange");a.dispatchEvent(b)}r=sA.prototype;r.generateRequest=function(a,b){return uA(this,b,null)};r.load=function(a){return"persistent-license"==this.l?uA(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new Rf;vA(this,b,a);return b};
1206
1206
  r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=oA("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function tA(){this.size=0;this.g=void 0}r=tA.prototype;r.bc=function(){return this.g};
1207
1207
  r.forEach=function(a){this.g&&a(this.g,bi.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=bi.value();return this.g&&xb(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};var jA="";dz(iA);function wA(){}function xA(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=yA,Object.defineProperty(a,"disablePictureInPicture",{get:zA,set:AA,enumerable:!0,configurable:!0}),document.exitPictureInPicture=BA,document.addEventListener("webkitpresentationmodechanged",CA,!0))}}
1208
1208
  function CA(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){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)}
@@ -1275,17 +1275,17 @@ Na:0,Ma:0,Ja:0,Ka:2,Xa:0}});f+=k.U}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio"
1275
1275
  dC.prototype.getOriginalMimeType=dC.prototype.getOriginalMimeType;dC.prototype.convertCodecs=dC.prototype.convertCodecs;dC.prototype.isSupported=dC.prototype.isSupported;dC.prototype.destroy=dC.prototype.destroy;jc("audio/ac3",function(){return new dC("audio/ac3")},pc);function eC(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new Ti(a.subarray(b+2));Vi(c,2);Vi(c,3);var d=Wi(c,11)+1<<1,e=Wi(c,2);if(3==e){e=Wi(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=Wi(c,2);var g=Wi(c,3),h=Wi(c,1);c=Wi(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,ga:a,U:d}};function fC(a){this.i=a;this.h=0;this.g=new Map}r=fC.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?lb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};r.getOriginalMimeType=function(){return this.i};
1276
1276
  r.transmux=function(a,b,c,d){a=Ab(a);for(var e=Ki(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Ji(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=eC(a,f);if(!k)return Promise.reject(new Q(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ga;h.push({data:a.subarray(f,f+k.U),size:k.U,duration:1536,
1277
1277
  Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}});f+=k.U}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,Ta:[],ga:e,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.h,baseMediaDecodeTime:a,Ra:h},stream:b};a=new sw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=yw(a),this.g.set(b.id,d));b=Pw(a);this.h++;b=zd(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ec3Transmuxer",fC);fC.prototype.transmux=fC.prototype.transmux;
1278
- fC.prototype.getOriginalMimeType=fC.prototype.getOriginalMimeType;fC.prototype.convertCodecs=fC.prototype.convertCodecs;fC.prototype.isSupported=fC.prototype.isSupported;fC.prototype.destroy=fC.prototype.destroy;jc("audio/ec3",function(){return new fC("audio/ec3")},pc);function gC(a){if(!a.length)return null;var b=a.find(function(x){return 7==x.type});a=a.find(function(x){return 8==x.type});if(!b||!a)return null;var c=new Ti(b.data),d=$i(c);$i(c);$i(c);Yi(c);if(hC.includes(d)&&(d=T(c),3===d&&Vi(c,1),Yi(c),Yi(c),Vi(c,1),W(c))){d=3!==d?8:12;for(var e=0;e<d;e++)W(c)&&(6>e?aj(c,16):aj(c,64))}Yi(c);d=T(c);if(0===d)T(c);else if(1===d)for(Vi(c,1),Yi(c),Yi(c),d=T(c),e=0;e<d;e++)Yi(c);Yi(c);Vi(c,1);var f=T(c),g=T(c),h=Wi(c,1);0===h&&Vi(c,1);Vi(c,1);var k=0,l=0,m=0,n=0;W(c)&&
1279
- (k=T(c),l=T(c),m=T(c),n=T(c));e=d=1;if(W(c)&&W(c)){var q=$i(c),p=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],t=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<q&&16>=q?(d=p[q-1],e=t[q-1]):255===q&&(d=Wi(c,16),e=Wi(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,y(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,y(a));a=new Uint8Array([1,k[3],k[4],k[5],255,
1278
+ fC.prototype.getOriginalMimeType=fC.prototype.getOriginalMimeType;fC.prototype.convertCodecs=fC.prototype.convertCodecs;fC.prototype.isSupported=fC.prototype.isSupported;fC.prototype.destroy=fC.prototype.destroy;jc("audio/ec3",function(){return new fC("audio/ec3")},pc);function gC(a){if(!a.length)return null;var b=a.find(function(x){return 7==x.type});a=a.find(function(x){return 8==x.type});if(!b||!a)return null;var c=new Ti(b.data),d=$i(c);$i(c);$i(c);Yi(c);if(hC.includes(d)&&(d=U(c),3===d&&Vi(c,1),Yi(c),Yi(c),Vi(c,1),W(c))){d=3!==d?8:12;for(var e=0;e<d;e++)W(c)&&(6>e?aj(c,16):aj(c,64))}Yi(c);d=U(c);if(0===d)U(c);else if(1===d)for(Vi(c,1),Yi(c),Yi(c),d=U(c),e=0;e<d;e++)Yi(c);Yi(c);Vi(c,1);var f=U(c),g=U(c),h=Wi(c,1);0===h&&Vi(c,1);Vi(c,1);var k=0,l=0,m=0,n=0;W(c)&&
1279
+ (k=U(c),l=U(c),m=U(c),n=U(c));e=d=1;if(W(c)&&W(c)){var q=$i(c),p=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],t=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<q&&16>=q?(d=p[q-1],e=t[q-1]):255===q&&(d=Wi(c,16),e=Wi(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,y(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,y(a));a=new Uint8Array([1,k[3],k[4],k[5],255,
1280
1280
  225].concat(k,[1],b));return{height:c,width:f,oa:a,xa:d,ya:e}}
1281
- function iC(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=u(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=hj(new Ti(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length?
1281
+ function iC(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=u(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=bj(new Ti(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length?
1282
1282
  {data:zd.apply(rd,y(c)),jd:b}:null}var hC=[100,110,122,244,44,83,86,118,128,138,139,134];function jC(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=kC(b.fullData);a=lC(c.fullData);var f=mC(d.fullData);b=nC(b.fullData,c.fullData,d.fullData,{jf:e.jf,If:e.If,Re:a.Re,Se:a.Se,Le:a.Le,Qe:a.Qe,Me:a.Me,Ne:a.Ne,Oe:a.Oe,Pe:a.Pe,Fe:a.Fe,Ge:a.Ge,He:a.He,Ie:a.Ie,Je:a.Je,Ke:a.Ke,Ce:a.Ce,be:a.be,Be:a.Be,Ae:a.Ae,ze:a.ze,pf:f.pf});return{height:a.height,width:a.width,
1283
1283
  oa:b,xa:a.ri,ya:a.pi}}function kC(a){var b=new Ti(a,!0);$i(b);$i(b);Wi(b,4);Wi(b,2);Wi(b,6);a=Wi(b,3);b=W(b);return{jf:a+1,If:b}}
1284
- function lC(a){a=new Ti(a,!0);$i(a);$i(a);var b=0,c=0,d=0,e=0;Wi(a,4);var f=Wi(a,3);W(a);for(var g=Wi(a,2),h=Wi(a,1),k=Wi(a,5),l=$i(a),m=$i(a),n=$i(a),q=$i(a),p=$i(a),t=$i(a),x=$i(a),w=$i(a),z=$i(a),v=$i(a),B=$i(a),A=[],D=[],G=0;G<f;G++)A.push(W(a)),D.push(W(a));if(0<f)for(G=f;8>G;G++)Wi(a,2);for(G=0;G<f;G++)A[G]&&Wi(a,88),D[G]&&$i(a);T(a);A=T(a);3==A&&Wi(a,1);D=T(a);G=T(a);W(a)&&(b+=T(a),c+=T(a),d+=T(a),e+=T(a));var J=T(a),I=T(a),E=T(a);if(W(a))for(var H=0;H<=f;H++)T(a),T(a),T(a);else T(a),T(a),
1285
- T(a);T(a);T(a);T(a);T(a);T(a);T(a);if(W(a)&&W(a))for(H=0;4>H;H++)for(var K=0;K<(3===H?2:6);K++)if(W(a)){var M=Math.min(64,1<<4+(H<<1));1<H&&Zi(a);for(var O=0;O<M;O++)Zi(a)}else T(a);W(a);W(a);W(a)&&($i(a),T(a),T(a),W(a));H=T(a);for(M=K=0;M<H;M++)if(O=!1,0!==M&&(O=W(a)),O){M===H&&T(a);W(a);T(a);for(var N=O=0;N<=K;N++){var U=W(a),R=!1;U||(R=W(a));(U||R)&&O++}K=O}else{N=T(a);O=T(a);K=N+O;for(U=0;U<N;U++)T(a),W(a);for(N=0;N<O;N++)T(a),W(a)}if(W(a))for(H=T(a),K=0;K<H;K++){for(M=0;M<E+4;M++)Wi(a,1);Wi(a,
1286
- 1)}H=E=1;K=0;W(a);W(a);if(W(a)){W(a)&&(M=$i(a),O=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],N=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<M&&16>=M?(E=O[M-1],H=N[M-1]):255===M&&(E=Wi(a,16),H=Wi(a,16)));W(a)&&W(a);W(a)&&(Wi(a,3),W(a),W(a)&&($i(a),$i(a),$i(a)));W(a)&&(T(a),T(a));W(a);W(a);W(a);if(M=W(a))T(a),T(a),T(a),T(a);if(W(a)&&(Wi(a,32),Wi(a,32),W(a)&&T(a),W(a))){N=!1;M=W(a);O=W(a);if(M||O){if(N=W(a))$i(a),Wi(a,5),W(a),Wi(a,5);Wi(a,4);Wi(a,4);N&&Wi(a,4);Wi(a,5);Wi(a,5);Wi(a,5)}for(U=0;U<=
1287
- f;U++){var V=!0;R=1;W(a)||(V=W(a));var xa=!1;V?T(a):xa=W(a);xa||(R=T(a)+1);if(M){for(V=0;V<R;V++)T(a),T(a),N&&(T(a),T(a));W(a)}if(O){for(V=0;V<R;V++)T(a),T(a),N&&(T(a),T(a));W(a)}}}W(a)&&(W(a),W(a),W(a),K=T(a),T(a),T(a),T(a),T(a))}return{Le:B,Re:g,Se:h,Qe:k,Me:l,Ne:m,Oe:n,Pe:q,Fe:p,Ge:t,He:x,Ie:w,Je:z,Ke:v,be:K,Ce:0,Be:A,Ae:J,ze:I,width:D-(b+c)*(1===A||2===A?2:1),height:G-(d+e)*(1===A?2:1),ri:E,pi:H}}
1288
- function mC(a){var b=new Ti(a,!0);$i(b);$i(b);T(b);T(b);W(b);W(b);Wi(b,3);W(b);W(b);T(b);T(b);Zi(b);W(b);W(b);W(b)&&T(b);Zi(b);Zi(b);W(b);W(b);W(b);W(b);a=W(b);b=W(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{pf:c}}
1284
+ function lC(a){a=new Ti(a,!0);$i(a);$i(a);var b=0,c=0,d=0,e=0;Wi(a,4);var f=Wi(a,3);W(a);for(var g=Wi(a,2),h=Wi(a,1),k=Wi(a,5),l=$i(a),m=$i(a),n=$i(a),q=$i(a),p=$i(a),t=$i(a),x=$i(a),w=$i(a),z=$i(a),v=$i(a),B=$i(a),A=[],D=[],G=0;G<f;G++)A.push(W(a)),D.push(W(a));if(0<f)for(G=f;8>G;G++)Wi(a,2);for(G=0;G<f;G++)A[G]&&Wi(a,88),D[G]&&$i(a);U(a);A=U(a);3==A&&Wi(a,1);D=U(a);G=U(a);W(a)&&(b+=U(a),c+=U(a),d+=U(a),e+=U(a));var J=U(a),I=U(a),E=U(a);if(W(a))for(var H=0;H<=f;H++)U(a),U(a),U(a);else U(a),U(a),
1285
+ U(a);U(a);U(a);U(a);U(a);U(a);U(a);if(W(a)&&W(a))for(H=0;4>H;H++)for(var K=0;K<(3===H?2:6);K++)if(W(a)){var M=Math.min(64,1<<4+(H<<1));1<H&&Zi(a);for(var O=0;O<M;O++)Zi(a)}else U(a);W(a);W(a);W(a)&&($i(a),U(a),U(a),W(a));H=U(a);for(M=K=0;M<H;M++)if(O=!1,0!==M&&(O=W(a)),O){M===H&&U(a);W(a);U(a);for(var N=O=0;N<=K;N++){var R=W(a),S=!1;R||(S=W(a));(R||S)&&O++}K=O}else{N=U(a);O=U(a);K=N+O;for(R=0;R<N;R++)U(a),W(a);for(N=0;N<O;N++)U(a),W(a)}if(W(a))for(H=U(a),K=0;K<H;K++){for(M=0;M<E+4;M++)Wi(a,1);Wi(a,
1286
+ 1)}H=E=1;K=0;W(a);W(a);if(W(a)){W(a)&&(M=$i(a),O=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],N=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<M&&16>=M?(E=O[M-1],H=N[M-1]):255===M&&(E=Wi(a,16),H=Wi(a,16)));W(a)&&W(a);W(a)&&(Wi(a,3),W(a),W(a)&&($i(a),$i(a),$i(a)));W(a)&&(U(a),U(a));W(a);W(a);W(a);if(M=W(a))U(a),U(a),U(a),U(a);if(W(a)&&(Wi(a,32),Wi(a,32),W(a)&&U(a),W(a))){N=!1;M=W(a);O=W(a);if(M||O){if(N=W(a))$i(a),Wi(a,5),W(a),Wi(a,5);Wi(a,4);Wi(a,4);N&&Wi(a,4);Wi(a,5);Wi(a,5);Wi(a,5)}for(R=0;R<=
1287
+ f;R++){var V=!0;S=1;W(a)||(V=W(a));var xa=!1;V?U(a):xa=W(a);xa||(S=U(a)+1);if(M){for(V=0;V<S;V++)U(a),U(a),N&&(U(a),U(a));W(a)}if(O){for(V=0;V<S;V++)U(a),U(a),N&&(U(a),U(a));W(a)}}}W(a)&&(W(a),W(a),W(a),K=U(a),U(a),U(a),U(a),U(a))}return{Le:B,Re:g,Se:h,Qe:k,Me:l,Ne:m,Oe:n,Pe:q,Fe:p,Ge:t,He:x,Ie:w,Je:z,Ke:v,be:K,Ce:0,Be:A,Ae:J,ze:I,width:D-(b+c)*(1===A||2===A?2:1),height:G-(d+e)*(1===A?2:1),ri:E,pi:H}}
1288
+ function mC(a){var b=new Ti(a,!0);$i(b);$i(b);U(b);U(b);W(b);W(b);Wi(b,3);W(b);W(b);U(b);U(b);Zi(b);W(b);W(b);W(b)&&U(b);Zi(b);Zi(b);W(b);W(b);W(b);W(b);a=W(b);b=W(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{pf:c}}
1289
1289
  function nC(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.Re&3)<<6|(d.Se?1:0)<<5|d.Qe&31;e[2]=d.Me;e[3]=d.Ne;e[4]=d.Oe;e[5]=d.Pe;e[6]=d.Fe;e[7]=d.Ge;e[8]=d.He;e[9]=d.Ie;e[10]=d.Je;e[11]=d.Ke;e[12]=d.Le;e[13]=240|(d.be&3840)>>8;e[14]=d.be&255;e[15]=252|d.pf&3;e[16]=252|d.Be&3;e[17]=248|d.Ae&7;e[18]=248|d.ze&7;e[19]=0;e[20]=0;e[21]=(d.Ce&3)<<6|(d.jf&7)<<3|(d.If?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1290
1290
  255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function oC(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*pC[14*(3===c?3-d:3===d?3:4)+e-1];f=qC[3*(3===c?0:2===c?1:2)+f];c=rC[c][d];var h=sC[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,U:k,oi:8*c*h}}return null}
1291
1291
  function tC(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function uC(a,b){if(b+1<a.length&&tC(a,b)){var c=oC(a,b),d=4;c&&c.U&&(d=c.U);b+=d;return b===a.length||b+1<a.length&&tC(a,b)}return!1}
@@ -1310,23 +1310,23 @@ r.transmux=function(a,b,c){if(!c)return Promise.resolve(Ab(a));if(!b.mssPrivateD
1310
1310
  1;var t=e.fetch("moof");k.data_offset=t.getLength()+8;var x=e.fetch("saio");null!==x&&(x.offset[0]=AC(t,"traf")+AC(h,"senc")+16);var w=Ab(e.write());return Promise.resolve(w)}catch(z){return z instanceof Q?Promise.reject(z):Promise.reject(new Q(2,3,3022))}};function AC(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c}P("shaka.transmuxer.MssTransmuxer",xC);xC.prototype.transmux=xC.prototype.transmux;xC.prototype.getOriginalMimeType=xC.prototype.getOriginalMimeType;
1311
1311
  xC.prototype.convertCodecs=xC.prototype.convertCodecs;xC.prototype.isSupported=xC.prototype.isSupported;xC.prototype.destroy=xC.prototype.destroy;var zC=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);jc("mss/audio/mp4",function(){return new xC("mss/audio/mp4")},pc);jc("mss/video/mp4",function(){return new xC("mss/video/mp4")},pc);function BC(a){this.l=a;this.g=0;this.i=new Map;this.h=this.j=null}r=BC.prototype;r.destroy=function(){this.i.clear();this.h&&this.h.destroy()};
1312
1312
  r.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Xd(c).split(",");c=Gd("audio",d);d=Gd("video",d);if(c&&(c=Td(c),!CC.includes(c))||d&&(c=Td(d),!DC.includes(c)))return!1;if(b)return lb(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return lb(b)||lb(a)};
1313
- r.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Xd(b).replace("mp4a.40.34","mp3").split(",").map(Ne).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};r.getOriginalMimeType=function(){return this.l};
1313
+ r.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Xd(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return Oe(c,"audio/mp4")}).map(Ne).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};r.getOriginalMimeType=function(){return this.l};
1314
1314
  r.transmux=function(a,b,c,d,e){var f=Ab(a);if("audio"==e&&!pj(f)){for(var g=Ki(f),h=g.length;h<f.length;h++)if(uC(f,h))return Promise.reject(new Q(2,3,3018));for(h=g.length;h<f.length;h++)if(ZB(f,h))return this.h||(this.h=new aC("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new Q(2,3,3018))}this.j?this.j.clearData():this.j=new ij;var k=this.j.parse(f),l=[],m=k.bd();try{var n=null;if("video"==e){switch(m.video){case "avc":var q=[],p=null,t=[],x=k.xc();if(!x.length)throw new Q(2,3,
1315
1315
  3023);for(var w=0;w<x.length;w++){var z=x[w],v=z.nalus;t.push.apply(t,y(v));var B=iC(v);if(B){null==p&&(p=z.dts);var A=void 0;A=w+1<x.length?(x[w+1].dts||0)-(z.dts||0):1<x.length?(z.dts||0)-(x[w-1].dts||0):9E4*(c.endTime-c.startTime);q.push({data:B.data,size:B.data.byteLength,duration:A,Ua:Math.round((z.pts||0)-(z.dts||0)),flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:B.jd?2:1,Xa:B.jd?0:1}})}}var D=gC(t);if(!D||null==p)throw new Q(2,3,3018);b.height=D.height;b.width=D.width;n={id:b.id,type:"video",codecs:"avc1",
1316
- encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Ta:[],ga:new Uint8Array([]),oa:D.oa,xa:D.xa,ya:D.ya,data:{jb:this.g,baseMediaDecodeTime:p,Ra:q},stream:b};break;case "hvc":var G=[],J=null,I=[],E=k.xc();if(!E.length)throw new Q(2,3,3023);for(var H=0;H<E.length;H++){var K=E[H],M=K.nalus;I.push.apply(I,y(M));for(var O=!1,N=[],U=!1,R=u(M),V=R.next();!V.done;V=R.next()){var xa=V.value;switch(xa.type){case 1:case 0:var Ca=U=!0;break;case 19:case 20:case 21:O=Ca=U=!0;break;case 32:Ca=
1317
- !0;break;case 33:Ca=!0;break;case 34:Ca=!0;break;case 35:U=Ca=!0;break;case 39:case 40:Ca=!0;break;default:Ca=!1}if(U&&Ca){var eb=xa.fullData.byteLength,Fa=new Uint8Array(4);Fa[0]=eb>>24&255;Fa[1]=eb>>16&255;Fa[2]=eb>>8&255;Fa[3]=eb&255;N.push(Fa);N.push(xa.fullData)}}var Va=N.length?{data:zd.apply(rd,y(N)),jd:O}:null;if(Va){null==J&&null!=K.dts&&(J=K.dts);var ua=void 0;ua=H+1<E.length?(E[H+1].dts||0)-(K.dts||0):1<E.length?(K.dts||0)-(E[H-1].dts||0):9E4*(c.endTime-c.startTime);G.push({data:Va.data,
1316
+ encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Ta:[],ga:new Uint8Array([]),oa:D.oa,xa:D.xa,ya:D.ya,data:{jb:this.g,baseMediaDecodeTime:p,Ra:q},stream:b};break;case "hvc":var G=[],J=null,I=[],E=k.xc();if(!E.length)throw new Q(2,3,3023);for(var H=0;H<E.length;H++){var K=E[H],M=K.nalus;I.push.apply(I,y(M));for(var O=!1,N=[],R=!1,S=u(M),V=S.next();!V.done;V=S.next()){var xa=V.value;switch(xa.type){case 1:case 0:var Ca=R=!0;break;case 19:case 20:case 21:O=Ca=R=!0;break;case 32:Ca=
1317
+ !0;break;case 33:Ca=!0;break;case 34:Ca=!0;break;case 35:R=Ca=!0;break;case 39:case 40:Ca=!0;break;default:Ca=!1}if(R&&Ca){var db=xa.fullData.byteLength,Fa=new Uint8Array(4);Fa[0]=db>>24&255;Fa[1]=db>>16&255;Fa[2]=db>>8&255;Fa[3]=db&255;N.push(Fa);N.push(xa.fullData)}}var Va=N.length?{data:zd.apply(rd,y(N)),jd:O}:null;if(Va){null==J&&null!=K.dts&&(J=K.dts);var ua=void 0;ua=H+1<E.length?(E[H+1].dts||0)-(K.dts||0):1<E.length?(K.dts||0)-(E[H-1].dts||0):9E4*(c.endTime-c.startTime);G.push({data:Va.data,
1318
1318
  size:Va.data.byteLength,duration:ua,Ua:Math.round((K.pts||0)-(K.dts||0)),flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:Va.jd?2:1,Xa:Va.jd?0:1}})}}var kb=jC(I);if(!kb||null==J)throw new Q(2,3,3018);b.height=kb.height;b.width=kb.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Ta:[],ga:new Uint8Array([]),oa:kb.oa,xa:kb.xa,ya:kb.ya,data:{jb:this.g,baseMediaDecodeTime:J,Ra:G},stream:b}}n&&(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var yb=
1319
- [],hb,Za=null,$e=u(k.Fb()),xd=$e.next();!xd.done;xd=$e.next()){var Zd=xd.value,kd=Zd.data;if(kd){var Bc=0;hb=YB(kd,Bc);if(!hb)throw new Q(2,3,3018);b.audioSamplingRate=hb.sampleRate;b.channelsCount=hb.channelCount;null==Za&&null!==Zd.pts&&(Za=Zd.pts);for(;Bc<kd.length;){var $d=XB(kd,Bc);if($d){var af=$d.Qd+$d.U;Bc+af<=kd.length&&yb.push({data:kd.subarray(Bc+$d.Qd,Bc+af),size:$d.U,duration:1024,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}});Bc+=af}else Bc++}}}if(!hb||null==Za){if(!k.xc().length)throw new Q(2,
1320
- 3,3018);Za=9E4*c.startTime;var ae=Gd("audio",b.codecs.split(","));if(!ae||!b.channelsCount||!b.audioSamplingRate)throw new Q(2,3,3018);hb={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,Ea:ae};var yd=$B(ae,b.channelsCount);if(!yd)throw new Q(2,3,3018);for(var ri=Za+9E4*(c.endTime-c.startTime),tg=Za;tg<ri;)yb.push({data:yd,size:yd.byteLength,duration:1024,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}}),tg+=1024/hb.sampleRate*9E4}var si=hb.sampleRate,ti=Za/9E4*si;n={id:b.id,type:"audio",codecs:hb.Ea,
1321
- encrypted:b.encrypted&&0<b.drmInfos.length,timescale:si,duration:d,Ta:[],ga:new Uint8Array([]),oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:ti,Ra:yb},stream:b};break;case "ac3":for(var bf=[],be=0,cf=new Uint8Array([]),Sb=null,Xt=u(k.Fb()),um=Xt.next();!um.done;um=Xt.next()){var vm=um.value,wm=vm.data;null==Sb&&null!==vm.pts&&(Sb=vm.pts);for(var mf=0;mf<wm.length;){var Dd=bC(wm,mf);Dd?(b.audioSamplingRate=Dd.sampleRate,b.channelsCount=Dd.channelCount,be=Dd.sampleRate,cf=Dd.ga,
1322
- bf.push({data:wm.subarray(mf,mf+Dd.U),size:Dd.U,duration:1536,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}}),mf+=Dd.U):mf++}}if(0==be||0==cf.byteLength||null==Sb)throw new Q(2,3,3018);var SC=Sb/9E4*be;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:be,duration:d,Ta:[],ga:cf,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:SC,Ra:bf},stream:b};break;case "ec3":for(var Yt=[],bj=0,xm=new Uint8Array([]),cj=null,Zt=u(k.Fb()),ym=Zt.next();!ym.done;ym=
1323
- Zt.next()){var zm=ym.value,Am=zm.data;null==cj&&null!==zm.pts&&(cj=zm.pts);for(var nf=0;nf<Am.length;){var Ed=eC(Am,nf);Ed?(b.audioSamplingRate=Ed.sampleRate,b.channelsCount=Ed.channelCount,bj=Ed.sampleRate,xm=Ed.ga,Yt.push({data:Am.subarray(nf,nf+Ed.U),size:Ed.U,duration:1536,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}}),nf+=Ed.U):nf++}}if(0==bj||0==xm.byteLength||null==cj)throw new Q(2,3,3018);var TC=cj/9E4*bj;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:bj,
1324
- duration:d,Ta:[],ga:xm,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:TC,Ra:Yt},stream:b};break;case "mp3":for(var $t=[],dj,ej=null,au=u(k.Fb()),Bm=au.next();!Bm.done;Bm=au.next()){var Cm=Bm.value,Hg=Cm.data;if(Hg){null==ej&&null!==Cm.pts&&(ej=Cm.pts);for(var ge=0;ge<Hg.length;){var of=oC(Hg,ge);of?(dj||(dj=of),ge+of.U<=Hg.length&&$t.push({data:Hg.subarray(ge,ge+of.U),size:of.U,duration:1152,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}}),ge+=of.U):ge++}}}if(!dj||null==ej)throw new Q(2,
1325
- 3,3018);var bu=dj.sampleRate,UC=ej/9E4*bu;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:bu,duration:d,Ta:[],ga:new Uint8Array([]),oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:UC,Ra:$t},stream:b};break;case "opus":var cu=[],fj=null,Kc=k.F;if(!Kc)throw new Q(2,3,3018);var ub=[];switch(Kc.ah){case 1:case 2:ub=[0];break;case 0:ub=[255,1,1,0,1];break;case 128:ub=[255,2,0,0,1];break;case 3:ub=[1,2,1,0,2,1];break;case 4:ub=[1,2,2,0,1,2,3];
1326
- break;case 5:ub=[1,3,2,0,4,1,2,3];break;case 6:ub=[1,4,2,0,4,1,2,3,5];break;case 7:ub=[1,4,2,0,4,1,2,3,5,6];break;case 8:ub=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:ub=[1,1,2,0,1];break;case 131:ub=[1,1,3,0,1,2];break;case 132:ub=[1,1,4,0,1,2,3];break;case 133:ub=[1,1,5,0,1,2,3,4];break;case 134:ub=[1,1,6,0,1,2,3,4,5];break;case 135:ub=[1,1,7,0,1,2,3,4,5,6];break;case 136:ub=[1,1,8,0,1,2,3,4,5,6,7]}var du=new Uint8Array([0,Kc.channelCount,0,0,Kc.sampleRate>>>24&255,Kc.sampleRate>>>17&255,Kc.sampleRate>>>
1327
- 8&255,Kc.sampleRate>>>0&255,0,0].concat(y(ub)));for(var eu=Kc.sampleRate,fu=u(k.Fb()),Dm=fu.next();!Dm.done;Dm=fu.next()){var Em=Dm.value,pf=Em.data;null==fj&&null!==Em.pts&&(fj=Em.pts);for(var Ig=0;Ig<pf.length;){for(var VC=0!==(pf[Ig+1]&16),WC=0!==(pf[Ig+1]&8),ld=Ig+2,gj=0;255===pf[ld];)gj+=255,ld+=1;gj+=pf[ld];ld+=1;ld+=VC?2:0;ld+=WC?2:0;var gu=pf.slice(ld,ld+gj);cu.push({data:gu,size:gu.byteLength,duration:960,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}});Ig=ld+gj}}if(0==du.byteLength||null==fj)throw new Q(2,
1328
- 3,3018);b.audioSamplingRate=Kc.sampleRate;b.channelsCount=Kc.channelCount;var XC=fj/9E4*eu;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:eu,duration:d,Ta:[],ga:du,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:XC,Ra:cu},stream:b}}n&&(l.push(n),n=null)}}catch(Fm){return Fm&&3023==Fm.code?Promise.resolve(new Uint8Array([])):Promise.reject(Fm)}if(!l.length)return Promise.reject(new Q(2,3,3018));var hu=new sw(l);if(this.i.has(b.id))var Gm=
1329
- this.i.get(b.id);else Gm=yw(hu),this.i.set(b.id,Gm);var YC=Pw(hu);this.g++;var ZC=zd(Gm,YC);return Promise.resolve(ZC)};P("shaka.transmuxer.TsTransmuxer",BC);BC.prototype.transmux=BC.prototype.transmux;BC.prototype.getOriginalMimeType=BC.prototype.getOriginalMimeType;BC.prototype.convertCodecs=BC.prototype.convertCodecs;BC.prototype.isSupported=BC.prototype.isSupported;BC.prototype.destroy=BC.prototype.destroy;var CC=["aac","ac-3","ec-3","mp3","opus"],DC=["avc","hevc"];
1319
+ [],hb,Za=null,cf=u(k.Fb()),xd=cf.next();!xd.done;xd=cf.next()){var Zd=xd.value,kd=Zd.data;if(kd){var Bc=0;hb=YB(kd,Bc);if(!hb)throw new Q(2,3,3018);b.audioSamplingRate=hb.sampleRate;b.channelsCount=hb.channelCount;null==Za&&null!==Zd.pts&&(Za=Zd.pts);for(;Bc<kd.length;){var $d=XB(kd,Bc);if($d){var df=$d.Qd+$d.U;Bc+df<=kd.length&&yb.push({data:kd.subarray(Bc+$d.Qd,Bc+df),size:$d.U,duration:1024,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}});Bc+=df}else Bc++}}}if(!hb||null==Za){if(!k.xc().length)throw new Q(2,
1320
+ 3,3018);Za=9E4*c.startTime;var ae=Gd("audio",b.codecs.split(","));if(!ae||!b.channelsCount||!b.audioSamplingRate)throw new Q(2,3,3018);hb={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,Ea:ae};var yd=$B(ae,b.channelsCount);if(!yd)throw new Q(2,3,3018);for(var si=Za+9E4*(c.endTime-c.startTime),tg=Za;tg<si;)yb.push({data:yd,size:yd.byteLength,duration:1024,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}}),tg+=1024/hb.sampleRate*9E4}var ti=hb.sampleRate,ui=Za/9E4*ti;n={id:b.id,type:"audio",codecs:hb.Ea,
1321
+ encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ti,duration:d,Ta:[],ga:new Uint8Array([]),oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:ui,Ra:yb},stream:b};break;case "ac3":for(var ef=[],be=0,ff=new Uint8Array([]),Sb=null,Xt=u(k.Fb()),vm=Xt.next();!vm.done;vm=Xt.next()){var wm=vm.value,xm=wm.data;null==Sb&&null!==wm.pts&&(Sb=wm.pts);for(var pf=0;pf<xm.length;){var Dd=bC(xm,pf);Dd?(b.audioSamplingRate=Dd.sampleRate,b.channelsCount=Dd.channelCount,be=Dd.sampleRate,ff=Dd.ga,
1322
+ ef.push({data:xm.subarray(pf,pf+Dd.U),size:Dd.U,duration:1536,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}}),pf+=Dd.U):pf++}}if(0==be||0==ff.byteLength||null==Sb)throw new Q(2,3,3018);var SC=Sb/9E4*be;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:be,duration:d,Ta:[],ga:ff,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:SC,Ra:ef},stream:b};break;case "ec3":for(var Yt=[],cj=0,ym=new Uint8Array([]),dj=null,Zt=u(k.Fb()),zm=Zt.next();!zm.done;zm=
1323
+ Zt.next()){var Am=zm.value,Bm=Am.data;null==dj&&null!==Am.pts&&(dj=Am.pts);for(var qf=0;qf<Bm.length;){var Ed=eC(Bm,qf);Ed?(b.audioSamplingRate=Ed.sampleRate,b.channelsCount=Ed.channelCount,cj=Ed.sampleRate,ym=Ed.ga,Yt.push({data:Bm.subarray(qf,qf+Ed.U),size:Ed.U,duration:1536,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}}),qf+=Ed.U):qf++}}if(0==cj||0==ym.byteLength||null==dj)throw new Q(2,3,3018);var TC=dj/9E4*cj;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:cj,
1324
+ duration:d,Ta:[],ga:ym,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:TC,Ra:Yt},stream:b};break;case "mp3":for(var $t=[],ej,fj=null,au=u(k.Fb()),Cm=au.next();!Cm.done;Cm=au.next()){var Dm=Cm.value,Hg=Dm.data;if(Hg){null==fj&&null!==Dm.pts&&(fj=Dm.pts);for(var ge=0;ge<Hg.length;){var rf=oC(Hg,ge);rf?(ej||(ej=rf),ge+rf.U<=Hg.length&&$t.push({data:Hg.subarray(ge,ge+rf.U),size:rf.U,duration:1152,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}}),ge+=rf.U):ge++}}}if(!ej||null==fj)throw new Q(2,
1325
+ 3,3018);var bu=ej.sampleRate,UC=fj/9E4*bu;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:bu,duration:d,Ta:[],ga:new Uint8Array([]),oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:UC,Ra:$t},stream:b};break;case "opus":var cu=[],gj=null,Lc=k.F;if(!Lc)throw new Q(2,3,3018);var ub=[];switch(Lc.ah){case 1:case 2:ub=[0];break;case 0:ub=[255,1,1,0,1];break;case 128:ub=[255,2,0,0,1];break;case 3:ub=[1,2,1,0,2,1];break;case 4:ub=[1,2,2,0,1,2,3];
1326
+ break;case 5:ub=[1,3,2,0,4,1,2,3];break;case 6:ub=[1,4,2,0,4,1,2,3,5];break;case 7:ub=[1,4,2,0,4,1,2,3,5,6];break;case 8:ub=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:ub=[1,1,2,0,1];break;case 131:ub=[1,1,3,0,1,2];break;case 132:ub=[1,1,4,0,1,2,3];break;case 133:ub=[1,1,5,0,1,2,3,4];break;case 134:ub=[1,1,6,0,1,2,3,4,5];break;case 135:ub=[1,1,7,0,1,2,3,4,5,6];break;case 136:ub=[1,1,8,0,1,2,3,4,5,6,7]}var du=new Uint8Array([0,Lc.channelCount,0,0,Lc.sampleRate>>>24&255,Lc.sampleRate>>>17&255,Lc.sampleRate>>>
1327
+ 8&255,Lc.sampleRate>>>0&255,0,0].concat(y(ub)));for(var eu=Lc.sampleRate,fu=u(k.Fb()),Em=fu.next();!Em.done;Em=fu.next()){var Fm=Em.value,sf=Fm.data;null==gj&&null!==Fm.pts&&(gj=Fm.pts);for(var Ig=0;Ig<sf.length;){for(var VC=0!==(sf[Ig+1]&16),WC=0!==(sf[Ig+1]&8),ld=Ig+2,hj=0;255===sf[ld];)hj+=255,ld+=1;hj+=sf[ld];ld+=1;ld+=VC?2:0;ld+=WC?2:0;var gu=sf.slice(ld,ld+hj);cu.push({data:gu,size:gu.byteLength,duration:960,Ua:0,flags:{Wa:0,Na:0,Ma:0,Ja:0,Ka:2,Xa:0}});Ig=ld+hj}}if(0==du.byteLength||null==gj)throw new Q(2,
1328
+ 3,3018);b.audioSamplingRate=Lc.sampleRate;b.channelsCount=Lc.channelCount;var XC=gj/9E4*eu;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:eu,duration:d,Ta:[],ga:du,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:XC,Ra:cu},stream:b}}n&&(l.push(n),n=null)}}catch(Gm){return Gm&&3023==Gm.code?Promise.resolve(new Uint8Array([])):Promise.reject(Gm)}if(!l.length)return Promise.reject(new Q(2,3,3018));var hu=new sw(l);if(this.i.has(b.id))var Hm=
1329
+ this.i.get(b.id);else Hm=yw(hu),this.i.set(b.id,Hm);var YC=Pw(hu);this.g++;var ZC=zd(Hm,YC);return Promise.resolve(ZC)};P("shaka.transmuxer.TsTransmuxer",BC);BC.prototype.transmux=BC.prototype.transmux;BC.prototype.getOriginalMimeType=BC.prototype.getOriginalMimeType;BC.prototype.convertCodecs=BC.prototype.convertCodecs;BC.prototype.isSupported=BC.prototype.isSupported;BC.prototype.destroy=BC.prototype.destroy;var CC=["aac","ac-3","ec-3","mp3","opus"],DC=["avc","hevc"];
1330
1330
  jc("video/mp2t",function(){return new BC("video/mp2t")},nc);/*
1331
1331
  @license
1332
1332
  EME Encryption Scheme Polyfill