shaka-player 4.6.6 → 4.6.7

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.
@@ -58,8 +58,8 @@ function M(a,b){a=a.split(".");var c=Pa;a[0]in c||"undefined"==typeof c.execScri
58
58
  function O(a,b){if(b)if(b instanceof Map)for(var c=t(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}
59
59
  function Qa(a){var b=new O(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}O.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};O.prototype.stopImmediatePropagation=function(){this.g=!0};O.prototype.stopPropagation=function(){};M("shaka.util.FakeEvent",O);
60
60
  var Ra={hj:"abrstatuschanged",ij:"adaptation",jj:"buffering",kj:"complete",lj:"downloadfailed",mj:"downloadheadersreceived",nj:"drmsessionupdate",pj:"emsg",Fj:"prft",Error:"error",qj:"expirationupdated",rj:"firstquartile",sj:"gapjumped",vj:"keystatuschanged",xj:"loaded",yj:"loading",Aj:"manifestparsed",Bj:"manifestupdated",Cj:"mediaqualitychanged",Metadata:"metadata",Dj:"midpoint",Ej:"onstatechange",Hj:"ratechange",Ij:"segmentappended",Jj:"sessiondata",Kj:"stalldetected",Lj:"started",Mj:"statechanged",
61
- Nj:"streaming",Oj:"textchanged",Pj:"texttrackvisibility",Qj:"thirdquartile",Rj:"timelineregionadded",Sj:"timelineregionenter",Tj:"timelineregionexit",Uj:"trackschanged",Wj:"unloading",Yj:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Va(a){var b=Ga.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ua.apply(Sa,w(b)))}function Ya(){}function Za(){}function $a(){}function ab(){}var Wa=new Set;window.console&&(Ua=function(){return console.warn.apply(console,w(Ga.apply(0,arguments)))},Ta=function(){console.error.apply(console,w(Ga.apply(0,arguments)))});function bb(){this.g={}}p=bb.prototype;p.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};p.get=function(a){return(a=this.g[a])?a.slice():null};p.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])};p.forEach=function(a){for(var b in this.g)a(b,this.g[b])};p.size=function(){return Object.keys(this.g).length};p.keys=function(){return Object.keys(this.g)};function cb(){this.wa=new bb;this.ee=this}cb.prototype.addEventListener=function(a,b){this.wa&&this.wa.push(a,b)};cb.prototype.removeEventListener=function(a,b){this.wa&&this.wa.remove(a,b)};cb.prototype.dispatchEvent=function(a){if(!this.wa)return!0;var b=this.wa.get(a.type)||[],c=this.wa.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.ee;a.currentTarget=this.ee;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
62
- cb.prototype.release=function(){this.wa=null};function db(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function eb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function fb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function gb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
61
+ Nj:"streaming",Oj:"textchanged",Pj:"texttrackvisibility",Qj:"thirdquartile",Rj:"timelineregionadded",Sj:"timelineregionenter",Tj:"timelineregionexit",Uj:"trackschanged",Wj:"unloading",Yj:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Va(a){var b=Ga.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ua.apply(Sa,w(b)))}function Ya(){}function Za(){}function $a(){}function ab(){}var Wa=new Set;window.console&&(Ua=function(){return console.warn.apply(console,w(Ga.apply(0,arguments)))},Ta=function(){console.error.apply(console,w(Ga.apply(0,arguments)))});function bb(){this.g={}}p=bb.prototype;p.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};p.get=function(a){return(a=this.g[a])?a.slice():null};p.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])};p.forEach=function(a){for(var b in this.g)a(b,this.g[b])};p.size=function(){return Object.keys(this.g).length};p.keys=function(){return Object.keys(this.g)};function cb(){this.oa=new bb;this.ee=this}cb.prototype.addEventListener=function(a,b){this.oa&&this.oa.push(a,b)};cb.prototype.removeEventListener=function(a,b){this.oa&&this.oa.remove(a,b)};cb.prototype.dispatchEvent=function(a){if(!this.oa)return!0;var b=this.oa.get(a.type)||[],c=this.oa.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.ee;a.currentTarget=this.ee;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
62
+ cb.prototype.release=function(){this.oa=null};function db(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function eb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function fb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function gb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
63
63
  @license
64
64
  Copyright 2008 The Closure Library Authors
65
65
  SPDX-License-Identifier: Apache-2.0
@@ -69,10 +69,10 @@ var jb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
69
69
  Copyright 2006 The Closure Library Authors
70
70
  SPDX-License-Identifier: Apache-2.0
71
71
  */
72
- function kb(a){var b;a instanceof kb?(nb(this,a.pb),this.rc=a.rc,ob(this,a.Cb),pb(this,a.Kc),this.Sa=a.Sa,qb(this,a.g.clone()),this.dc=a.dc):a&&(b=String(a).match(jb))?(nb(this,b[1]||"",!0),this.rc=sb(b[2]||""),ob(this,b[3]||"",!0),pb(this,b[4]),this.Sa=sb(b[5]||"",!0),qb(this,b[6]||"",!0),this.dc=sb(b[7]||"")):this.g=new tb(null)}p=kb.prototype;p.pb="";p.rc="";p.Cb="";p.Kc=null;p.Sa="";p.dc="";
73
- p.toString=function(){var a=[],b=this.pb;b&&a.push(ub(b,vb,!0),":");if(b=this.Cb){a.push("//");var c=this.rc;c&&a.push(ub(c,vb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Kc;null!=b&&a.push(":",String(b))}if(b=this.Sa)this.Cb&&"/"!=b.charAt(0)&&a.push("/"),a.push(ub(b,"/"==b.charAt(0)?wb:xb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.dc)&&a.push("#",ub(b,yb));return a.join("")};
74
- p.resolve=function(a){var b=this.clone();"data"===b.pb&&(b=new kb);var c=!!a.pb;c?nb(b,a.pb):c=!!a.rc;c?b.rc=a.rc:c=!!a.Cb;c?ob(b,a.Cb):c=null!=a.Kc;var d=a.Sa;if(c)pb(b,a.Kc);else if(c=!!a.Sa){if("/"!=d.charAt(0))if(this.Cb&&!this.Sa)d="/"+d;else{var e=b.Sa.lastIndexOf("/");-1!=e&&(d=b.Sa.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
75
- h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Sa=d:c=""!==a.g.toString();c?qb(b,a.g.clone()):c=!!a.dc;c&&(b.dc=a.dc);return b};p.clone=function(){return new kb(this)};function nb(a,b,c){a.pb=c?sb(b,!0):b;a.pb&&(a.pb=a.pb.replace(/:$/,""))}function ob(a,b,c){a.Cb=c?sb(b,!0):b}function pb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Kc=b}else a.Kc=null}
72
+ function kb(a){var b;a instanceof kb?(nb(this,a.pb),this.rc=a.rc,ob(this,a.Db),pb(this,a.Kc),this.Sa=a.Sa,qb(this,a.g.clone()),this.dc=a.dc):a&&(b=String(a).match(jb))?(nb(this,b[1]||"",!0),this.rc=sb(b[2]||""),ob(this,b[3]||"",!0),pb(this,b[4]),this.Sa=sb(b[5]||"",!0),qb(this,b[6]||"",!0),this.dc=sb(b[7]||"")):this.g=new tb(null)}p=kb.prototype;p.pb="";p.rc="";p.Db="";p.Kc=null;p.Sa="";p.dc="";
73
+ p.toString=function(){var a=[],b=this.pb;b&&a.push(ub(b,vb,!0),":");if(b=this.Db){a.push("//");var c=this.rc;c&&a.push(ub(c,vb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Kc;null!=b&&a.push(":",String(b))}if(b=this.Sa)this.Db&&"/"!=b.charAt(0)&&a.push("/"),a.push(ub(b,"/"==b.charAt(0)?wb:xb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.dc)&&a.push("#",ub(b,yb));return a.join("")};
74
+ p.resolve=function(a){var b=this.clone();"data"===b.pb&&(b=new kb);var c=!!a.pb;c?nb(b,a.pb):c=!!a.rc;c?b.rc=a.rc:c=!!a.Db;c?ob(b,a.Db):c=null!=a.Kc;var d=a.Sa;if(c)pb(b,a.Kc);else if(c=!!a.Sa){if("/"!=d.charAt(0))if(this.Db&&!this.Sa)d="/"+d;else{var e=b.Sa.lastIndexOf("/");-1!=e&&(d=b.Sa.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
75
+ h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Sa=d:c=""!==a.g.toString();c?qb(b,a.g.clone()):c=!!a.dc;c&&(b.dc=a.dc);return b};p.clone=function(){return new kb(this)};function nb(a,b,c){a.pb=c?sb(b,!0):b;a.pb&&(a.pb=a.pb.replace(/:$/,""))}function ob(a,b,c){a.Db=c?sb(b,!0):b}function pb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Kc=b}else a.Kc=null}
76
76
  function qb(a,b,c){b instanceof tb?a.g=b:(c||(b=ub(b,zb)),a.g=new tb(b))}function sb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function ub(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Ab),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Ab(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var vb=/[#\/\?@]/g,xb=/[#\?:]/g,wb=/[#\?]/g,zb=/[#\?@]/g,yb=/#/g;function tb(a){this.g=a||null}
77
77
  function Bb(a){if(!a.Ja&&(a.Ja={},a.gd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}p=tb.prototype;p.Ja=null;p.gd=null;function Cb(a){Bb(a);return a.gd}p.add=function(a,b){Bb(this);this.g=null;var c=this.Ja.hasOwnProperty(a)?this.Ja[a]:null;c||(this.Ja[a]=c=[]);c.push(b);this.gd++;return this};
78
78
  p.set=function(a,b){Bb(this);this.g=null;this.Ja.hasOwnProperty(a)?this.Ja[a]=[b]:this.add(a,b);return this};p.get=function(a){Bb(this);return this.Ja[a]||[]};p.toString=function(){if(this.g)return this.g;if(!this.Ja)return"";var a=[],b;for(b in this.Ja)for(var c=encodeURIComponent(b),d=this.Ja[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};
@@ -87,7 +87,7 @@ NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CE
87
87
  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,CS_IMA_SDK_MISSING:1E4,
88
88
  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 Eb(a,b){if(0==b.length)return a;if(1==a.length&&1==b.length){var c=new kb(a[0]);b=new kb(b[0]);return[c.resolve(b).toString()]}b=b.map(function(g){return new kb(g)});c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=new kb(d.value);for(var e=t(b),f=e.next();!f.done;f=e.next())c.push(d.resolve(f.value).toString())}return c}
89
89
  function Fb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}function Ib(a,b){if(1==b.length)return b[0];a=Jb(a,b);if(null!=a)return a;throw new P(2,4,4025,b);}
90
- function Jb(a,b){for(var c=t(Kb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Lb?"":null}var Lb="text",Mb={qa:"video",W:"audio",xa:Lb,dd:"image",fj:"application"},Kb={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Nb(){}function Ob(a,b){a=Pb(a);b=Pb(b);return a.split("-")[0]==b.split("-")[0]}function Qb(a,b){a=Pb(a);b=Pb(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Rb(a,b){a=Pb(a);b=Pb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}function Pb(a){var b=a.split("-x-"),c=b[0].split("-");a=c[0]||"";c=c[1]||"";b=b[1]?"x-"+b[1]:"";a=a.toLowerCase();a=Sb.get(a)||a;c=c.toUpperCase();return(c?a+"-"+c:a)+(b?"-"+b:"")}
90
+ function Jb(a,b){for(var c=t(Kb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Lb?"":null}var Lb="text",Mb={ra:"video",W:"audio",xa:Lb,dd:"image",fj:"application"},Kb={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Nb(){}function Ob(a,b){a=Pb(a);b=Pb(b);return a.split("-")[0]==b.split("-")[0]}function Qb(a,b){a=Pb(a);b=Pb(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Rb(a,b){a=Pb(a);b=Pb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}function Pb(a){var b=a.split("-x-"),c=b[0].split("-");a=c[0]||"";c=c[1]||"";b=b[1]?"x-"+b[1]:"";a=a.toLowerCase();a=Sb.get(a)||a;c=c.toUpperCase();return(c?a+"-"+c:a)+(b?"-"+b:"")}
91
91
  function Tb(a,b){var c=Ub(a),d=Ub(b);return a!=c&&b!=d&&c==d}function Vb(a,b){a=Pb(a);b=Pb(b);return b==a?4:Qb(b,a)?3:Rb(b,a)?2:Qb(a,b)?1:0}function Ub(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Sb.get(a)||a}function Wb(a){return a.language?Pb(a.language):a.audio&&a.audio.language?Pb(a.audio.language):a.video&&a.video.language?Pb(a.video.language):"und"}
92
92
  function Xb(a,b){a=Pb(a);var c=new Set,d=t(b);for(b=d.next();!b.done;b=d.next())c.add(Pb(b.value));d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,b==a)return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Qb(b,a))return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Rb(b,a))return b;c=t(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,Qb(a,b))return b;return null}M("shaka.util.LanguageUtils",Nb);Nb.findClosestLocale=Xb;Nb.getLocaleForVariant=Wb;
93
93
  Nb.getLocaleForText=function(a){return Pb(a.language||"und")};Nb.getBase=Ub;Nb.relatedness=Vb;Nb.areSiblings=Tb;Nb.normalize=Pb;Nb.isSiblingOf=Rb;Nb.isParentOf=Qb;Nb.areLanguageCompatible=Ob;Nb.areLocaleCompatible=function(a,b){a=Pb(a);b=Pb(b);return a==b};
@@ -98,11 +98,11 @@ var Sb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
98
98
  "sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie",
99
99
  "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Yb(a){cb.call(this);this.j=Pb(a);this.i=new Map;this.g=new Set;this.h=new Map}pa(Yb,cb);p=Yb.prototype;p.release=function(){cb.prototype.release.call(this)};
100
100
  p.wg=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Pb(c.value));Zb(this);a=gb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new O("unknown-locales",(new Map).set("locales",a)));a=gb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new O("locale-changed",a))};
101
- p.ua=function(a,b,c){a=Pb(a);void 0===c&&(c=$b);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=$b||d.set(f,e)});this.h.set(a,d);Zb(this);this.dispatchEvent(new O("locale-updated"));return this};p.Si=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};p.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new O("unknown-localization",a));return""};
101
+ p.va=function(a,b,c){a=Pb(a);void 0===c&&(c=$b);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=$b||d.set(f,e)});this.h.set(a,d);Zb(this);this.dispatchEvent(new O("locale-updated"));return this};p.Si=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};p.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new O("unknown-localization",a));return""};
102
102
  p.Oh=function(){return this.g};
103
103
  function Zb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=t(d),h=g.next();!h.done;f={vc:f.vc},h=g.next()){f.vc=h.value;e.add(f.vc);e.add(Ub(f.vc));h=gb(b.keys(),function(l){return function(m){return Tb(m,l.vc)}}(f));h.sort();var k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=gb(b.keys(),function(l){return function(m){return Ub(m)==l.vc}}(f));h.sort();k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=t(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
104
104
  c.reverse();a.i.clear();b=t(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=t(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,ac(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new O("missing-localizations",d)))}function ac(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}M("shaka.ui.Localization",Yb);Yb.prototype.getCurrentLocales=Yb.prototype.Oh;
105
- Yb.prototype.resolve=Yb.prototype.resolve;Yb.prototype.resolveDictionary=Yb.prototype.Si;Yb.prototype.insert=Yb.prototype.ua;Yb.prototype.changeLocale=Yb.prototype.wg;Yb.prototype.release=Yb.prototype.release;var $b=1;Yb.ConflictResolution={USE_OLD:0,USE_NEW:$b};Yb.UNKNOWN_LOCALES="unknown-locales";Yb.UNKNOWN_LOCALIZATION="unknown-localization";Yb.MISSING_LOCALIZATIONS="missing-localizations";Yb.LOCALE_CHANGED="locale-changed";Yb.LOCALE_UPDATED="locale-updated";function cc(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}cc.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 dc(a){return a.h/(1-Math.pow(a.g,a.i))};function ec(){this.h=new cc(2);this.j=new cc(5);this.g=0;this.i=128E3;this.l=16E3}ec.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)};ec.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)}};ec.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(dc(this.h),dc(this.j))};function fc(a){if(gc.has(a))return gc.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);gc.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),gc.set(a,b),b):!1}function hc(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var gc=new Map;function ic(){}ic.prototype.extract=function(){};ic.prototype.decode=function(){return[]};ic.prototype.clear=function(){};ic.prototype.getStreams=function(){return[]};function jc(){}jc.prototype.init=function(){};jc.prototype.parse=function(){return[]};function kc(){}function lc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(mc(a)==mc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=nc(a);b=nc(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function mc(a){return a instanceof ArrayBuffer?a:a.buffer}function oc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
105
+ Yb.prototype.resolve=Yb.prototype.resolve;Yb.prototype.resolveDictionary=Yb.prototype.Si;Yb.prototype.insert=Yb.prototype.va;Yb.prototype.changeLocale=Yb.prototype.wg;Yb.prototype.release=Yb.prototype.release;var $b=1;Yb.ConflictResolution={USE_OLD:0,USE_NEW:$b};Yb.UNKNOWN_LOCALES="unknown-locales";Yb.UNKNOWN_LOCALIZATION="unknown-localization";Yb.MISSING_LOCALIZATIONS="missing-localizations";Yb.LOCALE_CHANGED="locale-changed";Yb.LOCALE_UPDATED="locale-updated";function cc(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}cc.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 dc(a){return a.h/(1-Math.pow(a.g,a.i))};function ec(){this.h=new cc(2);this.j=new cc(5);this.g=0;this.i=128E3;this.l=16E3}ec.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)};ec.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)}};ec.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(dc(this.h),dc(this.j))};function fc(a){if(gc.has(a))return gc.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);gc.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),gc.set(a,b),b):!1}function hc(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var gc=new Map;function ic(){}ic.prototype.extract=function(){};ic.prototype.decode=function(){return[]};ic.prototype.clear=function(){};ic.prototype.getStreams=function(){return[]};function jc(){}jc.prototype.init=function(){};jc.prototype.parse=function(){return[]};function kc(){}function lc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(mc(a)==mc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=nc(a);b=nc(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function mc(a){return a instanceof ArrayBuffer?a:a.buffer}function oc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
106
106
  function nc(a,b,c){c=void 0===c?Infinity:c;return pc(a,void 0===b?0:b,c,Uint8Array)}function qc(a,b,c){c=void 0===c?Infinity:c;return pc(a,void 0===b?0:b,c,Uint16Array)}function rc(a,b,c){c=void 0===c?Infinity:c;return pc(a,void 0===b?0:b,c,DataView)}function pc(a,b,c,d){var e=mc(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)}
107
107
  M("shaka.util.BufferUtils",kc);kc.toDataView=rc;kc.toUint16=qc;kc.toUint8=nc;kc.toArrayBuffer=oc;kc.equal=lc;function sc(){}sc.prototype.init=function(){};sc.prototype.i=function(){};sc.prototype.h=function(){};sc.prototype.j=function(){};M("shaka.media.IClosedCaptionParser",sc);function tc(a){this.l=new jc;if(a=uc[a.toLowerCase()])this.l=a();this.g=new ic;if(a=vc)this.g=a()}tc.prototype.init=function(a){this.l.init(a)};tc.prototype.i=function(a){a=this.l.parse(a);a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=nc(b.packet);0<c.length&&this.g.extract(c,b.pts)}return this.g.decode()};
108
108
  tc.prototype.h=function(){this.g.clear()};tc.prototype.j=function(){return this.g.getStreams()};M("shaka.media.ClosedCaptionParser",tc);tc.findDecoder=function(){return vc};tc.unregisterDecoder=function(){vc=null};tc.registerDecoder=function(a){vc=a};tc.findParser=function(a){return uc[a]};tc.unregisterParser=function(a){delete uc[a]};tc.registerParser=function(a,b){uc[a]=b};var uc={},vc=null;function wc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function xc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function yc(a,b,c){c||(c=wc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Fe:d.Fe},e=a.next()){d.Fe=e.value;e=b.findIndex(function(f){return function(g){return c(f.Fe,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
@@ -120,7 +120,7 @@ function od(a,b,c,d,e){var f,g,h,k;return K(function(l){if(1==l.g)return D(l,Pro
120
120
  ld.prototype.remove=function(a,b){var c=this;return K(function(d){if(1==d.g)return D(d,Promise.resolve(),2);!c.j||!c.j.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));F(d)})};function pd(a,b,c){a.l=b;a.m=c}function qd(a,b,c){a.D=b;if(b=a.s.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)}
121
121
  function rd(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())rd(a,d.value,c)}
122
122
  function sd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);rd(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.D&&a.j.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.s.has(f)||a.s.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.s.get(f).set(h,k);a.g=null==a.g?Math.max(c,
123
- a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}M("shaka.text.TextEngine",ld);ld.prototype.destroy=ld.prototype.destroy;ld.findParser=function(a){return nd[a]};ld.unregisterParser=function(a){delete nd[a]};ld.registerParser=function(a,b){nd[a]=b};var nd={};function td(a,b){return a.concat(b)}function ud(){}function vd(a){return null!=a};function wd(a){this.h=a;this.g=null}wd.prototype.S=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};wd.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function xd(a){this.h=a;this.g=null}xd.prototype.La=function(){this.stop();this.h();return this};xd.prototype.S=function(a){var b=this;this.stop();this.g=(new wd(function(){b.h()})).S(a);return this};xd.prototype.va=function(a){var b=this;this.stop();this.g=(new wd(function(){b.g.S(a);b.h()})).S(a);return this};xd.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};M("shaka.util.Timer",xd);xd.prototype.stop=xd.prototype.stop;xd.prototype.tickEvery=xd.prototype.va;
123
+ a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}M("shaka.text.TextEngine",ld);ld.prototype.destroy=ld.prototype.destroy;ld.findParser=function(a){return nd[a]};ld.unregisterParser=function(a){delete nd[a]};ld.registerParser=function(a,b){nd[a]=b};var nd={};function td(a,b){return a.concat(b)}function ud(){}function vd(a){return null!=a};function wd(a){this.h=a;this.g=null}wd.prototype.S=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};wd.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function xd(a){this.h=a;this.g=null}xd.prototype.La=function(){this.stop();this.h();return this};xd.prototype.S=function(a){var b=this;this.stop();this.g=(new wd(function(){b.h()})).S(a);return this};xd.prototype.wa=function(a){var b=this;this.stop();this.g=(new wd(function(){b.g.S(a);b.h()})).S(a);return this};xd.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};M("shaka.util.Timer",xd);xd.prototype.stop=xd.prototype.stop;xd.prototype.tickEvery=xd.prototype.wa;
124
124
  xd.prototype.tickAfter=xd.prototype.S;xd.prototype.tickNow=xd.prototype.La;function yd(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function zd(a){return""!=Ad().canPlayType(a)}function Bd(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Cd(){return Dd("Xbox One")}function Ed(){return Dd("Tizen")}function Fd(){return Dd("Tizen 3")}function Gd(){return Dd("Tizen 2")}function Hd(){return Dd("Web0S")&&Dd("Chrome/38.0.2125.122 Safari/537.36")}
125
125
  function Id(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Ed()&&!Dd("PC=EOS")&&!Dd("PC=APL")&&!Dd("VirginMedia")&&!Dd("SOPOpenBrowser")&&!Jd()&&!Dd("AFT")&&!Dd("WPE")}function Jd(){return Dd("PlayStation 4")}function Kd(){if(!Id())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 Dd(a){return(navigator.userAgent||"").includes(a)}
126
126
  function Ad(){if(Ld)return Ld;Md||(Md=new xd(function(){Ld=null}));(Ld=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Ld=document.createElement("video"));Md.S(1);return Ld}var Md=null,Ld=null;function Od(){}
@@ -131,8 +131,8 @@ q.push(g.id);e.set(k,l)}a.variants=a.variants.filter(function(u){var v=u.audio;u
131
131
  function Qd(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={Me:d.Me},e=b.next())if(d.Me=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Me)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={De:d.De},b=c.next())if(d.De=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.De)}}(d)),b.length){a=b;break}return a}function Rd(a,b,c){a.variants=a.variants.filter(function(d){return Sd(d,b,c)})}
132
132
  function Sd(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
133
133
  function Td(a,b){return K(function(c){if(1==c.g)return D(c,Ud(a,b,0<b.offlineSessionIds.length),2);Vd(b);return D(c,Wd(b),0)})}
134
- function Ud(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return D(h,Xd(b.variants,c,!1,[]),2);d=null;a&&(e=a.g)&&(d=e.keySystem);f=Mb;g=Cd();b.variants=b.variants.filter(function(k){var l=k.video,m=l&&l.width||0,n=l&&l.height||0;if(g&&l&&(1920<m||1080<n)&&(l.codecs.includes("avc1.")||l.codecs.includes("avc3.")))return Za(Yd(k)),!1;if(l){m=Zd(l.codecs);if(l.codecs.includes(",")){n=l.codecs.split(",");m=Ib(f.qa,n);m=Zd(m);n=Ib(f.W,n);n=$d(n);var r=gd(l.mimeType,n,f.W);if(!fc(r))return!1;m=[m,n].join()}n=
135
- gd(l.mimeType,m,f.qa);if(!fc(n))return!1;l.codecs=m}if(l=k.audio){m=$d(l.codecs);n=gd(l.mimeType,m,f.W);if(!fc(n))return!1;l.codecs=m}(l=k.decodingInfos.some(function(q){return!q.supported||d&&(q=q.keySystemAccess)&&q.keySystem!=d?!1:!0}))||Za(Yd(k));return l});F(h)})}
134
+ function Ud(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return D(h,Xd(b.variants,c,!1,[]),2);d=null;a&&(e=a.g)&&(d=e.keySystem);f=Mb;g=Cd();b.variants=b.variants.filter(function(k){var l=k.video,m=l&&l.width||0,n=l&&l.height||0;if(g&&l&&(1920<m||1080<n)&&(l.codecs.includes("avc1.")||l.codecs.includes("avc3.")))return Za(Yd(k)),!1;if(l){m=Zd(l.codecs);if(l.codecs.includes(",")){n=l.codecs.split(",");m=Ib(f.ra,n);m=Zd(m);n=Ib(f.W,n);n=$d(n);var r=gd(l.mimeType,n,f.W);if(!fc(r))return!1;m=[m,n].join()}n=
135
+ gd(l.mimeType,m,f.ra);if(!fc(n))return!1;l.codecs=m}if(l=k.audio){m=$d(l.codecs);n=gd(l.mimeType,m,f.W);if(!fc(n))return!1;l.codecs=m}(l=k.decodingInfos.some(function(q){return!q.supported||d&&(q=q.keySystemAccess)&&q.keySystem!=d?!1:!0}))||Za(Yd(k));return l});F(h)})}
136
136
  function ae(a){var b=[];for(c in a)b.push(c);b.sort();var c=[];b=t(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=ae(e),c.push(d+":"+e)):(e=JSON.stringify(e),c.push(d+":"+e))}return"{"+c.join(",")+"}"}
137
137
  function be(a,b){var c,d,e;return K(function(f){switch(f.g){case 1:c=ae(b);ta(f,2);d=ce;if(d[c]){a.decodingInfos.push(d[c]);f.F(4);break}return D(f,navigator.mediaCapabilities.decodingInfo(b),5);case 5:e=f.h,d[c]=e,a.decodingInfos.push(e);case 4:va(f,0);break;case 2:wa(f),JSON.stringify(b),F(f)}})}
138
138
  function Xd(a,b,c,d){var e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B;return K(function(C){switch(C.g){case 1:if(e=a.some(function(E){return E.decodingInfos.length}))return C.return();f={};g=t(d);h=g.next();case 2:if(h.done){C.F(4);break}f.He=h.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){C.F(7);break}n=m.value;r=de(n,b,c).filter(function(E){return function(H){return(H.keySystemConfiguration&&H.keySystemConfiguration.keySystem)===E.He}}(f));q=t(r);u=q.next();case 8:if(u.done){C.F(10);break}v=u.value;return D(C,
@@ -196,12 +196,12 @@ function Kf(a){if(!a)return"";a=nc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.suba
196
196
  function Lf(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new P(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=rc(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Mf.value()(d)}
197
197
  function Nf(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=nc(a);if(239==c[0]&&187==c[1]&&191==c[2])return Kf(c);if(254==c[0]&&255==c[1])return Lf(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Lf(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Lf(a,!1);if(0==c[1]&&0==c[3])return Lf(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Kf(a);throw new P(2,2,2003);}
198
198
  function Of(a){if(window.TextEncoder&&!Jd()){var b=new TextEncoder;return oc(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return oc(b)}function Pf(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c}M("shaka.util.StringUtils",Jf);Jf.resetFromCharCode=function(){Mf.g=void 0};Jf.toUTF16=Pf;Jf.toUTF8=Of;Jf.fromBytesAutoDetect=Nf;Jf.fromUTF16=Lf;
199
- Jf.fromUTF8=Kf;var Mf=new Ff(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={Nb:65536};0<b.Nb;b={Nb:b.Nb},b.Nb/=2)if(a(b.Nb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.Nb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.Nb));return e}}(b);return null});function Qf(a,b){this.h=rc(a);this.i=b==Rf;this.g=0}p=Qf.prototype;p.sa=function(){return this.g<this.h.byteLength};p.Ca=function(){return this.g};p.getLength=function(){return this.h.byteLength};p.na=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Sf();}};p.Qa=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Sf();}};p.N=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Sf();}};
199
+ Jf.fromUTF8=Kf;var Mf=new Ff(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={Nb:65536};0<b.Nb;b={Nb:b.Nb},b.Nb/=2)if(a(b.Nb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.Nb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.Nb));return e}}(b);return null});function Qf(a,b){this.h=rc(a);this.i=b==Rf;this.g=0}p=Qf.prototype;p.ua=function(){return this.g<this.h.byteLength};p.Ca=function(){return this.g};p.getLength=function(){return this.h.byteLength};p.na=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Sf();}};p.Qa=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Sf();}};p.N=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Sf();}};
200
200
  p.Ug=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Sf();}};p.Lc=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw Sf();}if(2097151<b)throw new P(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};p.Ib=function(a){if(this.g+a>this.h.byteLength)throw Sf();var b=nc(this.h,this.g,a);this.g+=a;return b};
201
- p.skip=function(a){if(this.g+a>this.h.byteLength)throw Sf();this.g+=a};p.Ti=function(a){if(this.g<a)throw Sf();this.g-=a};p.seek=function(a){if(0>a||a>this.h.byteLength)throw Sf();this.g=a};p.wd=function(){for(var a=this.g;this.sa()&&0!=this.h.getUint8(this.g);)this.g+=1;a=nc(this.h,a,this.g-a);this.g+=1;return Kf(a)};function Sf(){return new P(2,3,3E3)}M("shaka.util.DataViewReader",Qf);Qf.prototype.readTerminatedString=Qf.prototype.wd;Qf.prototype.seek=Qf.prototype.seek;Qf.prototype.rewind=Qf.prototype.Ti;
202
- Qf.prototype.skip=Qf.prototype.skip;Qf.prototype.readBytes=Qf.prototype.Ib;Qf.prototype.readUint64=Qf.prototype.Lc;Qf.prototype.readInt32=Qf.prototype.Ug;Qf.prototype.readUint32=Qf.prototype.N;Qf.prototype.readUint16=Qf.prototype.Qa;Qf.prototype.readUint8=Qf.prototype.na;Qf.prototype.getLength=Qf.prototype.getLength;Qf.prototype.getPosition=Qf.prototype.Ca;Qf.prototype.hasMoreData=Qf.prototype.sa;var Rf=1;Qf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Rf};function Tf(){this.i=[];this.h=[];this.g=!1}p=Tf.prototype;p.box=function(a,b){a=Uf(a);this.i[a]=Vf;this.h[a]=b;return this};p.V=function(a,b){a=Uf(a);this.i[a]=Wf;this.h[a]=b;return this};p.stop=function(){this.g=!0};p.parse=function(a,b,c){a=new Qf(a,0);for(this.g=!1;a.sa()&&!this.g;)this.ud(0,a,b,c)};
201
+ p.skip=function(a){if(this.g+a>this.h.byteLength)throw Sf();this.g+=a};p.Ti=function(a){if(this.g<a)throw Sf();this.g-=a};p.seek=function(a){if(0>a||a>this.h.byteLength)throw Sf();this.g=a};p.wd=function(){for(var a=this.g;this.ua()&&0!=this.h.getUint8(this.g);)this.g+=1;a=nc(this.h,a,this.g-a);this.g+=1;return Kf(a)};function Sf(){return new P(2,3,3E3)}M("shaka.util.DataViewReader",Qf);Qf.prototype.readTerminatedString=Qf.prototype.wd;Qf.prototype.seek=Qf.prototype.seek;Qf.prototype.rewind=Qf.prototype.Ti;
202
+ Qf.prototype.skip=Qf.prototype.skip;Qf.prototype.readBytes=Qf.prototype.Ib;Qf.prototype.readUint64=Qf.prototype.Lc;Qf.prototype.readInt32=Qf.prototype.Ug;Qf.prototype.readUint32=Qf.prototype.N;Qf.prototype.readUint16=Qf.prototype.Qa;Qf.prototype.readUint8=Qf.prototype.na;Qf.prototype.getLength=Qf.prototype.getLength;Qf.prototype.getPosition=Qf.prototype.Ca;Qf.prototype.hasMoreData=Qf.prototype.ua;var Rf=1;Qf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Rf};function Tf(){this.i=[];this.h=[];this.g=!1}p=Tf.prototype;p.box=function(a,b){a=Uf(a);this.i[a]=Vf;this.h[a]=b;return this};p.V=function(a,b){a=Uf(a);this.i[a]=Wf;this.h[a]=b;return this};p.stop=function(){this.g=!0};p.parse=function(a,b,c){a=new Qf(a,0);for(this.g=!1;a.ua()&&!this.g;)this.ud(0,a,b,c)};
203
203
  p.ud=function(a,b,c,d){var e=b.Ca();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.N(),g=b.N(),h=Xf(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Ca()+8>b.getLength()){this.g=!0;return}f=b.Lc();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Wf){if(d&&b.Ca()+4>b.getLength()){this.g=!0;return}n=b.N();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.Ca(),b=0<d?b.Ib(d):new Uint8Array(0),b=new Qf(b,0),l({name:h,parser:this,
204
- partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Ca(),b.getLength()-b.Ca()))}};function Yf(a){for(var b=Zf(a);a.reader.sa()&&!a.parser.g;)a.parser.ud(a.start+b,a.reader,a.partialOkay)}function $f(a){for(var b=Zf(a),c=a.reader.N(),d=0;d<c&&(a.parser.ud(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function ag(a){var b=Zf(a);for(a.reader.skip(78);a.reader.sa()&&!a.parser.g;)a.parser.ud(a.start+b,a.reader,a.partialOkay)}
204
+ partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Ca(),b.getLength()-b.Ca()))}};function Yf(a){for(var b=Zf(a);a.reader.ua()&&!a.parser.g;)a.parser.ud(a.start+b,a.reader,a.partialOkay)}function $f(a){for(var b=Zf(a),c=a.reader.N(),d=0;d<c&&(a.parser.ud(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function ag(a){var b=Zf(a);for(a.reader.skip(78);a.reader.ua()&&!a.parser.g;)a.parser.ud(a.start+b,a.reader,a.partialOkay)}
205
205
  function bg(a){return function(b){a(b.reader.Ib(b.reader.getLength()-b.reader.Ca()))}}function Uf(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Xf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Zf(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}M("shaka.util.Mp4Parser",Tf);Tf.headerSize=Zf;Tf.typeToString=Xf;Tf.allData=bg;Tf.visualSampleEntry=ag;Tf.sampleDescription=$f;Tf.children=Yf;Tf.prototype.parseNext=Tf.prototype.ud;
206
206
  Tf.prototype.parse=Tf.prototype.parse;Tf.prototype.stop=Tf.prototype.stop;Tf.prototype.fullBox=Tf.prototype.V;Tf.prototype.box=Tf.prototype.box;var Vf=0,Wf=1;function cg(){}function dg(a){a=nc(a);a=Mf.value()(a);return btoa(a)}function eg(a,b){b=void 0==b?!0:b;a=dg(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function fg(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}function gg(a){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(2*d,2),16);return c}
207
207
  function ig(a){var b=nc(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function jg(){for(var a=Ga.apply(0,arguments),b=0,c=0;c<a.length;++c)b+=a[c].byteLength;b=new Uint8Array(b);for(var d=c=0;d<a.length;++d){var e=a[d];e instanceof Uint8Array?b.set(e,c):b.set(nc(e),c);c+=e.byteLength}return b}M("shaka.util.Uint8ArrayUtils",cg);cg.concat=jg;cg.toHex=ig;cg.fromHex=gg;cg.fromBase64=fg;cg.toBase64=eg;cg.toStandardBase64=dg;function kg(a){var b=this;this.g=[];this.h=[];this.data=[];(new Tf).box("moov",Yf).box("moof",Yf).V("pssh",function(c){if(!(1<c.version)){var d=nc(c.reader.h,-12,c.size);b.data.push(d);b.g.push(ig(c.reader.Ib(16)));if(0<c.version){d=c.reader.N();for(var e=0;e<d;e++){var f=ig(c.reader.Ib(16));b.h.push(f)}}}}).parse(a)}
@@ -212,7 +212,7 @@ function xg(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-
212
212
  function yg(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 zg(a){a=Number(a);return 0===a%1?a:null}function Ag(a){a=Number(a);return 0===a%1&&0<a?a:null}function Bg(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Cg(a){a=Number(a);return isNaN(a)?null:a}function Dg(a){return a?"true"===a.toLowerCase():!1}
213
213
  function Eg(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
214
214
  function Fg(a,b){var c=new DOMParser,d=Gg.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function Hg(a,b){try{var c=Nf(a);return Fg(c,b)}catch(d){return null}}
215
- var Gg=new Ff(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Ig(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.m=this.u=null;this.ha=this.$=!1;this.J=0;this.g=null;this.D=new Af;this.i=new Map;this.C=new Map;this.l=new $e;this.h=null;this.s=function(d){2==d.severity&&c.l.reject(d);a.onError(d)};this.T=new Map;this.wa=new Map;this.U=new xd(function(){return Jg(c)});this.M=!1;this.L=[];this.P=!1;this.ea=(new xd(function(){Kg(c)})).va(b);this.l.catch(function(){});this.j=new yf(function(){return Lg(c)});this.Z=!1;this.K=this.H=null}p=Ig.prototype;
215
+ var Gg=new Ff(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Ig(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.m=this.u=null;this.ha=this.$=!1;this.J=0;this.g=null;this.D=new Af;this.i=new Map;this.C=new Map;this.l=new $e;this.h=null;this.s=function(d){2==d.severity&&c.l.reject(d);a.onError(d)};this.T=new Map;this.oa=new Map;this.U=new xd(function(){return Jg(c)});this.M=!1;this.L=[];this.P=!1;this.ea=(new xd(function(){Kg(c)})).wa(b);this.l.catch(function(){});this.j=new yf(function(){return Lg(c)});this.Z=!1;this.K=this.H=null}p=Ig.prototype;
216
216
  p.destroy=function(){return this.j.destroy()};function Lg(a){return K(function(b){switch(b.g){case 1:return a.D.release(),a.D=null,a.l.reject(),a.ea.stop(),a.ea=null,a.U.stop(),a.U=null,D(b,Mg(a),2);case 2:if(!a.m){b.F(3);break}ta(b,4);return D(b,a.m.setMediaKeys(null),6);case 6:va(b,5);break;case 4:wa(b);case 5:a.m=null;case 3:a.g=null,a.I.clear(),a.u=null,a.C=new Map,a.h=null,a.s=function(){},a.G=null,a.Z=!1,a.H=null,F(b)}})}p.configure=function(a){this.h=a};
217
217
  function Ng(a,b,c){a.ha=!0;a.C=new Map;a.M=c;return Og(a,b)}function Pg(a,b,c){a.C=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next())a.C.set(d.value,{initData:null,initDataType:null});c=t(a.h.persistentSessionsMetadata);for(d=c.next();!d.done;d=c.next())d=d.value,a.C.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.M=0<a.C.size;return Og(a,b)}
218
218
  function Qg(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 Rg(a,g,[])}
@@ -222,10 +222,10 @@ function Wg(a){var b;return K(function(c){switch(c.g){case 1:if(a.m.mediaKeys)re
222
222
  p.wc=function(a){var b=this;return K(function(c){if(1==c.g){if(!b.u)return b.D.ka(a,"encrypted",function(){b.s(new P(2,6,6010))}),c.return();b.m=a;b.D.ka(b.m,"play",function(){for(var d=t(b.L),e=d.next();!e.done;e=d.next())Zg(b,e.value);b.P=!0;b.L=[]});"webkitCurrentPlaybackTargetIsWireless"in b.m&&b.D.o(b.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Mg(b)});b.K=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.K||"com.apple.fps"!==b.g.keySystem||
223
223
  b.C.size?D(c,Wg(b),2):c.F(2)}$g(b).catch(function(){});b.K||b.C.size||b.h.parseInbandPsshEnabled||b.D.o(b.m,"encrypted",function(d){return Xg(b,d)});F(c)})};
224
224
  function ah(a){var b,c,d,e,f;return K(function(g){switch(g.g){case 1:if(!a.u||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.F(2);break}b=qf([a.g.serverCertificateUri],a.h.retryParameters);ta(g,3);c=a.G.pc.request(5,b);return D(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=nc(d.data);va(g,4);break;case 3:throw e=wa(g),new P(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
225
- ta(g,6);return D(g,a.u.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=wa(g),new P(2,6,6004,f.message);}})}function bh(a,b){var c,d,e;return K(function(f){if(1==f.g)return D(f,ch(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.vb=new $e,d.push(e.vb);d.push(c.remove());return D(f,Promise.all(d),3)}a.i.delete(c);F(f)})}
225
+ ta(g,6);return D(g,a.u.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=wa(g),new P(2,6,6004,f.message);}})}function bh(a,b){var c,d,e;return K(function(f){if(1==f.g)return D(f,ch(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.wb=new $e,d.push(e.wb);d.push(c.remove());return D(f,Promise.all(d),3)}a.i.delete(c);F(f)})}
226
226
  function $g(a){var b,c,d,e,f;return K(function(g){if(1==g.g){if(!a.C.size)return g.F(2);a.C.forEach(function(h,k){ch(a,k,h)});return D(g,a.l,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&dh(a))return g.return(a.l);a.l=new $e;a.l.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=t(c);for(e=d.next();!e.done;e=d.next())f=e.value,Yg(a,f.initDataType,f.initData);c.length||a.l.resolve();return g.return(a.l)})}
227
227
  function Yg(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(lc(c,e.value.initData)&&a.h.ignoreDuplicateInitData)return;0<a.i.size&&eh(a)&&(a.l.resolve(),a.l=new $e,a.l.catch(function(){}));fh(a,b,c,a.g.sessionType)}}function gh(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function hh(a){a=a.i.keys();a=db(a,function(b){return b.sessionId});return Array.from(a)}
228
- p.qf=function(){var a=this,b=this.i.keys();b=db(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};p.kd=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};p.Xd=function(){return Hf(this.wa)};
228
+ p.qf=function(){var a=this,b=this.i.keys();b=db(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};p.kd=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};p.Xd=function(){return Hf(this.oa)};
229
229
  function Rg(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z;return K(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=ih(a,c,d);x.F(2);break}return D(x,jh(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new P(2,6,6001);zf(a.j);ta(x,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.I.add(n.contentType.toLowerCase());r=t(k);for(m=r.next();!m.done;m=r.next())q=m.value,a.I.add(q.contentType.toLowerCase());if(c.length){var A=
230
230
  f.keySystem;var B=d.get(f.keySystem);var C=[],E=[],H=[],G=[],I=new Set;kh(B,C,H,E,G,I);var J=a.M?"persistent-license":"temporary";A={keySystem:A,licenseServerUri:C[0],distinctiveIdentifierRequired:B[0].distinctiveIdentifierRequired,persistentStateRequired:B[0].persistentStateRequired,sessionType:B[0].sessionType||J,audioRobustness:B[0].audioRobustness||"",videoRobustness:B[0].videoRobustness||"",serverCertificate:H[0],serverCertificateUri:E[0],initData:G,keyIds:I};B=t(B);for(C=B.next();!C.done;C=
231
231
  B.next())C=C.value,C.distinctiveIdentifierRequired&&(A.distinctiveIdentifierRequired=C.distinctiveIdentifierRequired),C.persistentStateRequired&&(A.persistentStateRequired=C.persistentStateRequired);B=A}else B=f.keySystem,A=b.get(f.keySystem),C=[],E=[],H=[],G=[],I=new Set,kh(A.drmInfos,C,H,E,G,I),B={keySystem:B,licenseServerUri:C[0],distinctiveIdentifierRequired:"required"==A.distinctiveIdentifier,persistentStateRequired:"required"==A.persistentState,sessionType:A.sessionTypes[0]||"temporary",audioRobustness:(A.audioCapabilities?
@@ -237,15 +237,15 @@ function jh(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y;return K(function(z){switch(z
237
237
  z.h,z.return(c);case 6:wa(z);case 7:zf(a.j);case 3:h=g.next();z.F(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.F(11);break}r=n.value;q=t(b.keys());h=q.next();case 12:if(h.done){n=m.next();z.F(9);break}u=h.value;v=b.get(u);y=v.drmInfos.some(function(x){return!!x.licenseServerUri});if(y!=r){z.F(13);break}ta(z,15);return D(z,navigator.requestMediaKeySystemAccess(u,[v]),17);case 17:return c=z.h,z.return(c);case 15:wa(z);case 16:zf(a.j);case 13:h=q.next();z.F(12);break;case 11:return z.return(c)}})}
238
238
  function Sg(a){a=Gf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=eg(gg(f),!1));f=e;22!=f.length&&(f=eg(gg(e),!1));e={kty:"oct",kid:g,k:f};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:nc(Of(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",
239
239
  videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}function lh(a){eh(a)&&a.l.resolve()}function mh(a,b){(new xd(function(){b.loaded=!0;lh(a)})).S(nh)}
240
- function ch(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:try{d=a.u.createSession("persistent-license")}catch(n){return e=new P(2,6,6005,n.message),a.s(e),m.return(Promise.reject(e))}a.D.o(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.P?a.L.push(n):Zg(a,n)});a.D.o(d,"keystatuseschange",function(n){return oh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Mf:Infinity,vb:null,type:"persistent-license"};a.i.set(d,f);ta(m,2);return D(m,
240
+ function ch(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:try{d=a.u.createSession("persistent-license")}catch(n){return e=new P(2,6,6005,n.message),a.s(e),m.return(Promise.reject(e))}a.D.o(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.P?a.L.push(n):Zg(a,n)});a.D.o(d,"keystatuseschange",function(n){return oh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Mf:Infinity,wb:null,type:"persistent-license"};a.i.set(d,f);ta(m,2);return D(m,
241
241
  d.load(b),4);case 4:return g=m.h,zf(a.j),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.s(new P(h,6,6013)),f.loaded=!0),mh(a,f),lh(a),m.return(d);case 2:k=wa(m),zf(a.j,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.s(new P(l,6,6005,k.message)),f.loaded=!0,lh(a);case 3:return m.return(Promise.resolve())}})}
242
- function fh(a,b,c,d){try{var e=a.u.createSession(d)}catch(f){a.s(new P(2,6,6005,f.message));return}a.D.o(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.P?a.L.push(f):Zg(a,f)});a.D.o(e,"keystatuseschange",function(f){return oh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Mf:Infinity,vb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof P||(b=new P(2,6,6016,f));a.s(b);return}a.h.logLicenseExchange&&eg(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
242
+ function fh(a,b,c,d){try{var e=a.u.createSession(d)}catch(f){a.s(new P(2,6,6005,f.message));return}a.D.o(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.P?a.L.push(f):Zg(a,f)});a.D.o(e,"keystatuseschange",function(f){return oh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Mf:Infinity,wb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof P||(b=new P(2,6,6016,f));a.s(b);return}a.h.logLicenseExchange&&eg(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
243
243
  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.s(new P(2,6,6006,f.message,f,h))}})}
244
244
  function Zg(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u;K(function(v){switch(v.g){case 1:c=b.target;a.h.logLicenseExchange&&eg(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=qf([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(gh(a.g.keySystem)){var y=
245
245
  Lf(g.body,!0,!0);if(y.includes("PlayReadyKeyMessage")){y=Fg(y,"PlayReadyKeyMessage");for(var z=t(y.getElementsByTagName("HttpHeader")),x=z.next();!x.done;x=z.next())x=x.value,g.headers[x.getElementsByTagName("name")[0].textContent]=x.getElementsByTagName("value")[0].textContent;g.body=fg(y.getElementsByTagName("Challenge")[0].textContent)}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ta(v,2);l=a.G.pc.request(2,g);return D(v,l.promise,4);case 4:k=v.h;va(v,3);break;case 2:return m=
246
- wa(v),n=new P(2,6,6007,m),a.s(n),d&&d.vb&&d.vb.reject(n),v.return();case 3:if(a.j.g)return v.return();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&eg(k.data);ta(v,5);return D(v,c.update(k.data),7);case 7:va(v,6);break;case 5:return r=wa(v),q=new P(2,6,6008,r.message),a.s(q),d&&d.vb&&d.vb.reject(q),v.return();case 6:if(a.j.g)return v.return();u=new O("drmsessionupdate");a.G.onEvent(u);d&&(d.vb&&d.vb.resolve(),mh(a,d));F(v)}})}
247
- function oh(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(gh(a.g.keySystem)&&16==g.byteLength&&(Bd()||Jd())){h=rc(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=ig(g).slice(0,32);a.T.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.vb&&(a.i.delete(b),b.close().catch(function(){}));
248
- eh(a)&&(a.l.resolve(),a.U.S(ph))}function Jg(a){var b=a.T,c=a.wa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.s(new P(2,6,6014));a.G.ue(Hf(c))}
246
+ wa(v),n=new P(2,6,6007,m),a.s(n),d&&d.wb&&d.wb.reject(n),v.return();case 3:if(a.j.g)return v.return();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&eg(k.data);ta(v,5);return D(v,c.update(k.data),7);case 7:va(v,6);break;case 5:return r=wa(v),q=new P(2,6,6008,r.message),a.s(q),d&&d.wb&&d.wb.reject(q),v.return();case 6:if(a.j.g)return v.return();u=new O("drmsessionupdate");a.G.onEvent(u);d&&(d.wb&&d.wb.resolve(),mh(a,d));F(v)}})}
247
+ function oh(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(gh(a.g.keySystem)&&16==g.byteLength&&(Bd()||Jd())){h=rc(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=ig(g).slice(0,32);a.T.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.wb&&(a.i.delete(b),b.close().catch(function(){}));
248
+ eh(a)&&(a.l.resolve(),a.U.S(ph))}function Jg(a){var b=a.T,c=a.oa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.s(new P(2,6,6014));a.G.ue(Hf(c))}
249
249
  function qh(){var a,b,c,d,e,f,g,h;return K(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 com.adobe.primetime".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,
250
250
  r;return K(function(q){switch(q.g){case 1:ta(q,2);if("org.w3.clearkey"===l&&Kd())throw Error("Unsupported keySystem");return D(q,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=q.h,r=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Fd()&&(r=!1),f.set(l,{persistentState:r}),D(q,m.createMediaKeys(),5);case 5:va(q,0);break;case 2:wa(q),f.set(l,null),F(q)}})},h=a.map(function(l){return g(l)}),D(k,Promise.all(h),2)):k.return(Hf(f))})}
251
251
  function rh(a){var b;return K(function(c){if(1==c.g)return b=new Promise(function(d,e){(new xd(e)).S(sh)}),ta(c,2),D(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);wa(c);F(c)})}
@@ -281,7 +281,7 @@ function Sh(a){for(var b=0,c=[];Oh(a,b);){var d=Qh(a,b+6);a[b+5]>>6&1&&(b+=10);b
281
281
  Nh.getID3Frames=Sh;function Uh(a,b){var c=null,d=null,e=null,f=a.N();b&1&&(e=a.Lc());b&2&&a.skip(4);b&8&&(c=a.N());b&16&&(d=a.N());return{trackId:f,Cg:c,Dh:d,Zj:e}}function Wh(a,b){return 1==b?(b=a.N(),a=a.N(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.N()}}function Xh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.N();a.skip(4);a=a.Qa();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
282
282
  function Yh(a,b,c){var d=a.N(),e=[],f=null;c&1&&(f=a.N());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Wf:null,sampleSize:null,xe:null};c&256&&(h.Wf=a.N());c&512&&(h.sampleSize=a.N());c&1024&&a.skip(4);c&2048&&(h.xe=0==b?a.N():a.Ug());e.push(h)}return{dk:d,Xg:e,Ch:f}}
283
283
  function Zh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.N();1==b?a.skip(8):a.skip(4);a.skip(4);a.skip(8);a.skip(2);a.skip(2);a.skip(2);a.skip(2);a.skip(36);b=a.Qa()+a.Qa()/16;a=a.Qa()+a.Qa()/16;return{trackId:c,width:b,height:a}}
284
- function $h(a){for(var b="mp4a",c,d;a.sa();){c=a.na();for(var e=a.na();e&128;)e=a.na();if(3==c)a.Qa(),e=a.na(),e&128&&a.Qa(),e&64&&a.skip(a.na()),e&32&&a.Qa();else if(4==c)d=a.na(),a.skip(12);else if(5==c)break}d&&(b+="."+this.g(d),5==c&&a.sa()&&(c=a.na(),d=(c&248)>>3,31===d&&a.sa()&&(d=32+((c&7)<<3)+((a.na()&224)>>5)),b+="."+d));return{ra:b}}function ai(a,b){a.skip(87);return{ra:b+"."+this.g(a.na())+this.g(a.na())+this.g(a.na())}}function bi(a){a=a.N();return{ra:Xf(a)}};/*
284
+ function $h(a){for(var b="mp4a",c,d;a.ua();){c=a.na();for(var e=a.na();e&128;)e=a.na();if(3==c)a.Qa(),e=a.na(),e&128&&a.Qa(),e&64&&a.skip(a.na()),e&32&&a.Qa();else if(4==c)d=a.na(),a.skip(12);else if(5==c)break}d&&(b+="."+this.g(d),5==c&&a.ua()&&(c=a.na(),d=(c&248)>>3,31===d&&a.ua()&&(d=32+((c&7)<<3)+((a.na()&224)>>5)),b+="."+d));return{sa:b}}function ai(a,b){a.skip(87);return{sa:b+"."+this.g(a.na())+this.g(a.na())+this.g(a.na())}}function bi(a){a=a.N();return{sa:Xf(a)}};/*
285
285
 
286
286
  Copyright Brightcove, Inc.
287
287
 
@@ -312,27 +312,27 @@ p.ec=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.n
312
312
  p.Dc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=jg.apply(cg,w(d.value)),f=oi(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=jg(d.data,e),this.g.push(d))}if(a){var g;c=t(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.Pf(d,g),d.nalus.length&&
313
313
  (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)};p.getStartTime=function(a){if("audio"==a){a=null;var b=this.ec();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Dc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};p.hd=function(){return{audio:this.s,video:this.m}};
314
314
  p.ae=function(){for(var a=[],b=t(this.Dc()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.nalus));return a};p.ki=function(){Ae("TsParser","Please use getVideoInfo function instead.");var a=this.xf();return{height:a.height,width:a.width}};p.xf=function(){return"hvc"==this.m?pi(this):qi(this)};
315
- function qi(a){var b={height:null,width:null,ra:null};a=a.ae();if(!a.length)return b;a=a.find(function(r){return 7==r.type});if(!a)return b;a=new ci(a.data);var c=ji(a),d=ji(a),e=ji(a);hi(a);if(ri.includes(c)){var f=Q(a);3===f&&ei(a,1);hi(a);hi(a);ei(a,1);if(S(a)){f=3!==f?8:12;for(var g=0;g<f;g++)S(a)&&(6>g?ki(a,16):ki(a,64))}}hi(a);f=Q(a);if(0===f)Q(a);else if(1===f)for(ei(a,1),hi(a),hi(a),f=Q(a),g=0;g<f;g++)hi(a);hi(a);ei(a,1);f=Q(a);g=Q(a);var h=fi(a,1);0===h&&ei(a,1);ei(a,1);var k=0,l=0,m=0,n=
316
- 0;S(a)&&(k=Q(a),l=Q(a),m=Q(a),n=Q(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.ra="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
317
- function pi(a){var b={height:null,width:null,ra:null};a=a.ae();if(!a.length)return b;a=a.find(function(B){return 33==B.type});if(!a)return b;var c=new ci(a.fullData,!0);ji(c);ji(c);fi(c,4);var d=fi(c,3);S(c);var e=fi(c,2),f=fi(c,1),g=fi(c,5),h=fi(c,32);a=ji(c);for(var k=ji(c),l=ji(c),m=ji(c),n=ji(c),r=ji(c),q=ji(c),u=[],v=[],y=0;y<d;y++)u.push(S(c)),v.push(S(c));if(0<d)for(y=d;8>y;y++)fi(c,2);for(y=0;y<d;y++)u[y]&&fi(c,88),v[y]&&ji(c);Q(c);d=Q(c);3==d&&fi(c,1);u=Q(c);v=Q(c);var z=y=0,x=0,A=0;S(c)&&
315
+ function qi(a){var b={height:null,width:null,sa:null};a=a.ae();if(!a.length)return b;a=a.find(function(r){return 7==r.type});if(!a)return b;a=new ci(a.data);var c=ji(a),d=ji(a),e=ji(a);hi(a);if(ri.includes(c)){var f=Q(a);3===f&&ei(a,1);hi(a);hi(a);ei(a,1);if(S(a)){f=3!==f?8:12;for(var g=0;g<f;g++)S(a)&&(6>g?ki(a,16):ki(a,64))}}hi(a);f=Q(a);if(0===f)Q(a);else if(1===f)for(ei(a,1),hi(a),hi(a),f=Q(a),g=0;g<f;g++)hi(a);hi(a);ei(a,1);f=Q(a);g=Q(a);var h=fi(a,1);0===h&&ei(a,1);ei(a,1);var k=0,l=0,m=0,n=
316
+ 0;S(a)&&(k=Q(a),l=Q(a),m=Q(a),n=Q(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.sa="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
317
+ function pi(a){var b={height:null,width:null,sa:null};a=a.ae();if(!a.length)return b;a=a.find(function(B){return 33==B.type});if(!a)return b;var c=new ci(a.fullData,!0);ji(c);ji(c);fi(c,4);var d=fi(c,3);S(c);var e=fi(c,2),f=fi(c,1),g=fi(c,5),h=fi(c,32);a=ji(c);for(var k=ji(c),l=ji(c),m=ji(c),n=ji(c),r=ji(c),q=ji(c),u=[],v=[],y=0;y<d;y++)u.push(S(c)),v.push(S(c));if(0<d)for(y=d;8>y;y++)fi(c,2);for(y=0;y<d;y++)u[y]&&fi(c,88),v[y]&&ji(c);Q(c);d=Q(c);3==d&&fi(c,1);u=Q(c);v=Q(c);var z=y=0,x=0,A=0;S(c)&&
318
318
  (y+=Q(c),z+=Q(c),x+=Q(c),A+=Q(c));b.width=String(u-(y+z)*(1===d||2===d?2:1));b.height=String(v-(x+A)*(1===d?2:1));c=function(B){for(var C=0,E=0;32>E;E++)C|=(B>>E&1)<<31-E;return C>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+q;r&&(e+="."+r.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+="."+
319
- a.toString(16).toUpperCase());b.ra=e;return b}function si(a){return 0>ni(a)?!1:!0}function ni(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}M("shaka.util.TsParser",mi);mi.syncOffset=ni;mi.probe=si;mi.prototype.getVideoInfo=mi.prototype.xf;mi.prototype.getVideoResolution=mi.prototype.ki;mi.prototype.getVideoNalus=mi.prototype.ae;mi.prototype.getCodecs=mi.prototype.hd;mi.prototype.getStartTime=mi.prototype.getStartTime;
319
+ a.toString(16).toUpperCase());b.sa=e;return b}function si(a){return 0>ni(a)?!1:!0}function ni(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}M("shaka.util.TsParser",mi);mi.syncOffset=ni;mi.probe=si;mi.prototype.getVideoInfo=mi.prototype.xf;mi.prototype.getVideoResolution=mi.prototype.ki;mi.prototype.getVideoNalus=mi.prototype.ae;mi.prototype.getCodecs=mi.prototype.hd;mi.prototype.getStartTime=mi.prototype.getStartTime;
320
320
  mi.prototype.getVideoData=mi.prototype.Dc;mi.prototype.getAudioData=mi.prototype.ec;mi.prototype.getMetadata=mi.prototype.getMetadata;mi.prototype.parseNalus=mi.prototype.Pf;mi.prototype.parseAvcNalus=mi.prototype.Ii;mi.prototype.parse=mi.prototype.parse;mi.prototype.clearData=mi.prototype.clearData;mi.Timescale=9E4;var ri=[100,110,122,244,44,83,86,118,128,138,139,134];function ti(a,b,c){this.g=null;this.s=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ua("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,Ae("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ua("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Ua("Could not find LCEVC Library on this page"),
321
321
  a=!1):(this.h.SupportObject.SupportStatus||Ua(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 ui(a){a.g&&a.i.classList.add("shaka-hidden")}
322
- ti.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function vi(a,b,c){var d=wi,e=xi;switch(b.mimeType){case "video/webm":d=yi;break;case "video/mp4":d=zi}switch(c){case "DASH":e=Ai;break;case "HLS":e=Bi}a.g&&(a.s=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}M("shaka.lcevc.Dec",ti);ti.prototype.release=ti.prototype.release;var wi=0,yi=1,zi=2,Bi=0,Ai=1,xi=-1;function Di(a,b,c,d){var e=this;this.i=a;this.G=null;this.H=b;this.g={};this.I={};this.ea={};this.h=null;this.U=!1;this.oa=c||function(){};this.P=d||null;this.j={};this.u=new Af;this.m={};this.J=null;this.L=new $e;this.M="";this.Z=!1;this.l=Ei(this,this.L);this.D=!1;this.K=new yf(function(){return Fi(e)});this.C=!1;this.T="UNKNOWN";this.wa=this.ha=!1;this.ya=new $e;this.s=!1;this.$=!0}
322
+ ti.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function vi(a,b,c){var d=wi,e=xi;switch(b.mimeType){case "video/webm":d=yi;break;case "video/mp4":d=zi}switch(c){case "DASH":e=Ai;break;case "HLS":e=Bi}a.g&&(a.s=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}M("shaka.lcevc.Dec",ti);ti.prototype.release=ti.prototype.release;var wi=0,yi=1,zi=2,Bi=0,Ai=1,xi=-1;function Ci(a,b,c,d){var e=this;this.i=a;this.G=null;this.H=b;this.g={};this.I={};this.ea={};this.h=null;this.U=!1;this.qa=c||function(){};this.P=d||null;this.j={};this.u=new Af;this.m={};this.J=null;this.L=new $e;this.M="";this.Z=!1;this.l=Ei(this,this.L);this.D=!1;this.K=new yf(function(){return Fi(e)});this.C=!1;this.T="UNKNOWN";this.oa=this.ha=!1;this.ya=new $e;this.s=!1;this.$=!0}
323
323
  function Ei(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.u.ka(c,"sourceopen",function(){URL.revokeObjectURL(a.M);b.resolve()});a.u.o(c,"startstreaming",function(){a.$=!0});a.u.o(c,"endstreaming",function(){a.$=!1});a.u.ka(a.i,"playing",function(){a.Z=!0});a.M=Gi(c);a.i.src=a.M;return c}c=new MediaSource;a.u.ka(c,"sourceopen",function(){URL.revokeObjectURL(a.M);b.resolve()});a.u.ka(a.i,"playing",function(){a.Z=!0});a.M=Gi(c);a.i.src=a.M;return c}
324
- p=Di.prototype;p.destroy=function(){return this.K.destroy()};
324
+ p=Ci.prototype;p.destroy=function(){return this.K.destroy()};
325
325
  function Fi(a){var b,c,d,e,f,g,h,k;return K(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(ud)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new P(2,7,7003,void 0));a.h&&b.push(a.h.destroy());a.H&&b.push(a.H.destroy());for(k in a.m)b.push(a.m[k].destroy());return D(l,Promise.all(b),2)}a.u&&(a.u.release(),a.u=null);a.i&&(a.i.removeAttribute("src"),a.i.load(),a.i=null);a.G=null;a.l=null;a.h=null;a.H=null;a.g={};a.m={};a.J=null;
326
- a.j={};a.P=null;F(l)})}p.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 K(function(m){if(1==m.g)return f=Mb,D(m,e.L,2);e.C=b;e.T=c;e.ha=d;e.wa=!e.C&&"HLS"==e.T&&!e.ha;g=t(a.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=a.get(k),Hi(e,k,l,l.codecs),e.s?(e.j[f.W]=[],e.j[f.qa]=[]):e.j[k]=[];F(m)})};
326
+ a.j={};a.P=null;F(l)})}p.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 K(function(m){if(1==m.g)return f=Mb,D(m,e.L,2);e.C=b;e.T=c;e.ha=d;e.oa=!e.C&&"HLS"==e.T&&!e.ha;g=t(a.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=a.get(k),Hi(e,k,l,l.codecs),e.s?(e.j[f.W]=[],e.j[f.ra]=[]):e.j[k]=[];F(m)})};
327
327
  function Hi(a,b,c,d){var e=dd(c.mimeType,d);if(b==Lb)Ii(a,e,a.C,c.external);else{var f=a.G.forceTransmux;if(!fc(e)||!a.C&&ed.includes(e))f=!0;var g=fd(c.mimeType,d);if(f){f=Jb("audio",(d||"").split(","));d=Jb("video",(d||"").split(","));if(f&&d){a.s=!0;Hi(a,"audio",c,f);Hi(a,"video",c,d);return}if(d=Yc(g))e=d(),a.m[b]=e,e=e.convertCodecs(b,g)}g=e+a.G.sourceBufferExtraFeatures;zf(a.K);try{var h=a.l.addSourceBuffer(g)}catch(k){throw new P(2,3,3015,k,"The mediaSource_ status was "+a.l.readyState+" expected 'open'");
328
328
  }a.C&&(h.mode=Ji);a.u.o(h,"error",function(){a.j[b][0].p.reject(new P(2,3,3014,a.i.error?a.i.error.code:0))});a.u.o(h,"updateend",function(){return Ki(a,b)});a.g[b]=h;a.I[b]=e;a.ea[b]=!!c.drmInfos.length}}p.configure=function(a){this.G=a};
329
329
  function Ii(a,b,c,d){a.h||(a.h=new ld(a.H));var e=a.h;d=d||a.U;a=a.T;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,nd[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):Ua('Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):Ua('Text parsers should have a "setManifestType" method!'),e.C=d)}function Li(a){return a.D?!1:a.l?"ended"==a.l.readyState:!0}
330
330
  function Mi(a,b){a.D||!Object.keys(a.g).length?a=null:b==Lb?a=a.h.g:(a=Ni(a,b),a=!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null);return a}function Oi(a,b){return a.D?null:b==Lb?a.h.h:Ih(Ni(a,b))}function Pi(a,b,c){if(a.D)return 0;if(b==Lb)return a=a.h,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Ni(a,b);return Kh(a,c)}
331
- p.Db=function(){var a={total:this.D?[]:Lh(this.i.buffered),audio:this.D?[]:Lh(Ni(this,"audio")),video:this.D?[]:Lh(Ni(this,"video")),text:[]};if(this.h){var b=this.h.g,c=this.h.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Ni(a,b){try{return a.g[b].buffered}catch(c){return null}}
332
- function Qi(a,b,c,d,e,f){var g=null,h=nc(c);if(ed.includes(e))f=Sh(h),f.length&&d&&((b=f.find(function(n){return"com.apple.streaming.transportStreamTimestamp"===n.description}))&&b.data&&(g=Math.round(b.data)/1E3),a.oa([{cueTime:d.startTime,data:h,frames:f,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(e.includes("/mp4")&&d&&0==d.timestampOffset&&d.g&&d.g.timescale){var k=d.g.timescale;if(!isNaN(k)){var l=0,m=!1;(new Tf).box("moof",Yf).box("traf",Yf).V("tfdt",function(n){l=Wh(n.reader,n.version).baseMediaDecodeTime/
333
- k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!si(h)||(h=(new mi).parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.oa(h,f,d?d.endTime:null));return g}
334
- function Ri(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,r,q,u,v,y,z,x,A,B;return K(function(C){switch(C.g){case 1:m=Mb;if(b!=m.xa){C.F(2);break}if(!a.C){C.F(3);break}return D(C,a.ya,4);case 4:n=C.h,a.h.u=n;case 3:return D(C,od(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.aa()[0]:null),5);case 5:return C.return();case 2:if(l||!a.s){C.F(6);break}return D(C,Ri(a,m.W,c,d,e,f,g,h,k,!0),7);case 7:return D(C,Ri(a,m.qa,c,d,e,f,g,h,k,!0),8);case 8:return C.return();
335
- case 6:if(!a.g[b])return C.return();r=a.g[b].timestampOffset;q=a.I[b];a.m[b]&&(q=a.m[b].getOriginalMimeType());d&&(u=Qi(a,b,c,d,q,r),null!=u&&(v=d.startTime-u,y=Math.abs(r-v),(.001<=y||g||h)&&(!k||0<v||!r)&&(r=v,a.wa&&(Si(a,b,function(){return Ti(a,b)}),Si(a,b,function(){return Ui(a,b,r)}))),z=b==m.qa||!(m.qa in a.g),a.C&&z&&a.ya.resolve(r)));f&&b==m.qa&&(a.h||Ii(a,"application/cea-608",a.C,!1),a.J||(x=q.split(";",1)[0],a.J=new tc(x)),d?(A=a.J.i(c),A.length&&sd(a.h,A,d.startTime,d.endTime,r)):a.J.init(c));
331
+ p.Eb=function(){var a={total:this.D?[]:Lh(this.i.buffered),audio:this.D?[]:Lh(Ni(this,"audio")),video:this.D?[]:Lh(Ni(this,"video")),text:[]};if(this.h){var b=this.h.g,c=this.h.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Ni(a,b){try{return a.g[b].buffered}catch(c){return null}}
332
+ function Qi(a,b,c,d,e,f){var g=null,h=nc(c);if(ed.includes(e))f=Sh(h),f.length&&d&&((b=f.find(function(n){return"com.apple.streaming.transportStreamTimestamp"===n.description}))&&b.data&&(g=Math.round(b.data)/1E3),a.qa([{cueTime:d.startTime,data:h,frames:f,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(e.includes("/mp4")&&d&&0==d.timestampOffset&&d.g&&d.g.timescale){var k=d.g.timescale;if(!isNaN(k)){var l=0,m=!1;(new Tf).box("moof",Yf).box("traf",Yf).V("tfdt",function(n){l=Wh(n.reader,n.version).baseMediaDecodeTime/
333
+ k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!si(h)||(h=(new mi).parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.qa(h,f,d?d.endTime:null));return g}
334
+ function Ri(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,r,q,u,v,y,z,x,A,B;return K(function(C){switch(C.g){case 1:m=Mb;if(b!=m.xa){C.F(2);break}if(!a.C){C.F(3);break}return D(C,a.ya,4);case 4:n=C.h,a.h.u=n;case 3:return D(C,od(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.aa()[0]:null),5);case 5:return C.return();case 2:if(l||!a.s){C.F(6);break}return D(C,Ri(a,m.W,c,d,e,f,g,h,k,!0),7);case 7:return D(C,Ri(a,m.ra,c,d,e,f,g,h,k,!0),8);case 8:return C.return();
335
+ case 6:if(!a.g[b])return C.return();r=a.g[b].timestampOffset;q=a.I[b];a.m[b]&&(q=a.m[b].getOriginalMimeType());d&&(u=Qi(a,b,c,d,q,r),null!=u&&(v=d.startTime-u,y=Math.abs(r-v),(.001<=y||g||h)&&(!k||0<v||!r)&&(r=v,a.oa&&(Si(a,b,function(){return Ti(a,b)}),Si(a,b,function(){return Ui(a,b,r)}))),z=b==m.ra||!(m.ra in a.g),a.C&&z&&a.ya.resolve(r)));f&&b==m.ra&&(a.h||Ii(a,"application/cea-608",a.C,!1),a.J||(x=q.split(";",1)[0],a.J=new tc(x)),d?(A=a.J.i(c),A.length&&sd(a.h,A,d.startTime,d.endTime,r)):a.J.init(c));
336
336
  if(!a.m[b]){C.F(9);break}return D(C,a.m[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=C.h;case 9:return c=Vi(a,c,d?d.startTime:null,b),d&&a.C&&b!=m.xa&&(g||h)&&(B=d.startTime,Si(a,b,function(){return Ti(a,b)}),Si(a,b,function(){return Ui(a,b,B)})),D(C,Si(a,b,function(){var E=c;if("video"==b&&a.P){var H=a.P;H.g&&H.g.appendBuffer(E,"video",H.s,-r)}a.g[b].appendBuffer(E)}),11);case 11:F(C)}})}function Wi(a,b){var c=Oi(a,"video")||0;qd(a.h,b,c)}function Xi(a){a.h&&qd(a.h,"",0)}
337
337
  p.remove=function(a,b,c){var d=this,e;return K(function(f){return 1==f.g?(e=Mb,a==e.xa?D(f,d.h.remove(b,c),0):D(f,Si(d,a,function(){return Yi(d,a,b,c)}),4)):d.s?D(f,Si(d,e.W,function(){return Yi(d,e.W,b,c)}),0):f.F(0)})};function Zi(a,b){var c;return K(function(d){return 1==d.g?(c=Mb,b==c.xa?a.h?D(d,a.h.remove(0,Infinity),0):d.return():D(d,Si(a,b,function(){return Yi(a,b,0,a.l.duration)}),4)):a.s?D(d,Si(a,c.W,function(){return Yi(a,c.W,0,a.l.duration)}),0):d.F(0)})}
338
338
  p.flush=function(a){var b=this,c;return K(function(d){return 1==d.g?(c=Mb,a==c.xa?d.return():D(d,Si(b,a,function(){b.i.currentTime-=.001;Ki(b,a)}),2)):b.s?D(d,Si(b,c.W,function(){var e=c.W;b.i.currentTime-=.001;Ki(b,e)}),0):d.F(0)})};
@@ -344,39 +344,39 @@ function cj(a,b){var c,d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:zf(a.
344
344
  }})}function dj(a,b){a.j[b].shift();ej(a,b)}function ej(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new P(2,3,3017,b)):c.p.reject(new P(2,3,3015,d,a.i.error||"No error in the media element")),dj(a,b)}}function Vi(a,b,c,d){var e=a.ea[d];a.G.insertFakeEncryptionInInit&&null==c&&e&&(Ed()||Cd()||Dd("SOPOpenBrowser"))&&"mp4"==a.I[d].split(";")[0].split("/")[1]&&(b=zh(b));return b}
345
345
  function fj(a,b,c,d){return Si(a,b,function(){b!==Lb&&(hc()&&(a.m[b]&&(a.m[b].destroy(),delete a.m[b]),d&&(a.m[b]=d),a.g[b].changeType(c+a.G.sourceBufferExtraFeatures),a.I[b]=c),Ki(a,b))})}
346
346
  function gj(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B,C,E,H,G;return K(function(I){switch(I.g){case 1:c=Mb;a.D=!0;a.s=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.Z&&(a.i.autoplay=!1);ua(I,2);a.u.Jb();g=[];for(h in a.m)g.push(a.m[h].destroy());for(k in a.j)for(l=a.j[k],m=l[0],a.j[k]=l.slice(0,1),m&&g.push(m.p.catch(ud)),n=t(l.slice(1)),r=n.next();!r.done;r=n.next())q=r.value,q.p.reject(new P(2,7,7003,void 0));for(u in a.g){v=a.g[u];try{a.l.removeSourceBuffer(v)}catch(J){}}return D(I,Promise.all(g),
347
- 4);case 4:return a.m={},a.g={},y=a.l.duration,a.L=new $e,a.l=Ei(a,a.L),D(I,a.L,5);case 5:a.l.duration=y;z=new $e;x=a.l.sourceBuffers;A=b.size;B=0;a.u.o(x,"addsourcebuffer",function(){B++;B===A&&z.resolve()});C=t(b.keys());for(E=C.next();!E.done;E=C.next())H=E.value,G=b.get(H),Hi(a,H,G,G.codecs),a.s?(a.j[c.W]=[],a.j[c.qa]=[]):a.j[H]=[];a.i.currentTime=d;return D(I,z,2);case 2:xa(I),a.D=!1,zf(a.K),a.u.ka(a.i,"canplay",function(){zf(a.K);a.i.autoplay=e;f||a.i.play()}),ya(I,0)}})}
347
+ 4);case 4:return a.m={},a.g={},y=a.l.duration,a.L=new $e,a.l=Ei(a,a.L),D(I,a.L,5);case 5:a.l.duration=y;z=new $e;x=a.l.sourceBuffers;A=b.size;B=0;a.u.o(x,"addsourcebuffer",function(){B++;B===A&&z.resolve()});C=t(b.keys());for(E=C.next();!E.done;E=C.next())H=E.value,G=b.get(H),Hi(a,H,G,G.codecs),a.s?(a.j[c.W]=[],a.j[c.ra]=[]):a.j[H]=[];a.i.currentTime=d;return D(I,z,2);case 2:xa(I),a.D=!1,zf(a.K),a.u.ka(a.i,"canplay",function(){zf(a.K);a.i.autoplay=e;f||a.i.play()}),ya(I,0)}})}
348
348
  function hj(a,b){return cj(a,function(){return gj(a,b)})}
349
349
  function aj(a,b,c,d){var e,f,g,h,k,l,m,n,r,q,u;return K(function(v){if(1==v.g){if(b==Lb)return v.return(!1);e=id(kd(a.I[b]))[0];f=jd(a.I[b]);h=dd(c.mimeType,c.codecs);k=a.G.forceTransmux;if(!fc(h)||!a.C&&ed.includes(h))k=!0;l=fd(c.mimeType,c.codecs);k&&(m=Yc(l))&&(g=m(),h=g.convertCodecs(b,l));n=kd(h);r=id(n)[0];q=jd(h);if(e===r&&f===q)return v.return(!1);u=!0;if(a.s||n.split(",").length&&g&&!a.m[b])u=!1;if(u&&"smooth"===a.G.codecSwitchingStrategy&&hc())return D(v,fj(a,b,h,g),3);g&&g.destroy();return D(v,
350
350
  hj(a,d),3)}return v.return(!0)})}function ij(a,b,c){if(b==Lb)var d=!1;else{d=id(kd(a.I[b]))[0];var e=jd(a.I[b]),f=dd(c.mimeType,c.codecs),g=a.G.forceTransmux;if(!fc(f)||!a.C&&ed.includes(f))g=!0;c=fd(c.mimeType,c.codecs);g&&(g=Yc(c))&&(g=g(),f=g.convertCodecs(b,c),g.destroy());b=id(kd(f))[0];f=jd(f);d=d!==b||e!==f}return d?"smooth"!==a.G.codecSwitchingStrategy||!hc()||a.s:!1}var Gi=window.URL.createObjectURL,Ji="sequence";function jj(a,b,c){this.i=a;this.m=b;this.u=this.j=Infinity;this.g=1;this.h=this.l=null;this.s=0;this.G=!0;this.H=0;this.C=void 0===c?!0:c;this.I=0;this.D=!1}p=jj.prototype;p.getDuration=function(){return this.j};p.Xh=function(){return this.g};p.eh=function(a){this.i=a};p.ab=function(a){this.j=a};p.$h=function(){return this.i};p.$g=function(a){this.s=a};p.Mc=function(a){this.G=a};p.Ae=function(a){this.u=a};p.ah=function(a){this.m=a};p.Ph=function(){return this.m};
351
351
  p.Tg=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.re(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.C&&!this.D&&(this.i=(Date.now()+this.s)/1E3-this.h-this.g)}};
352
352
  p.td=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.s)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.re(b);this.h=Math.max(this.h,c);null!=this.i&&this.C&&!this.D&&(this.i=d-this.h-this.g)}};p.je=function(){this.D=!0};p.re=function(a){this.l=null==this.l?a:Math.min(this.l,a)};p.Jf=function(a){this.g=Math.max(this.g,a)};
353
- p.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};p.R=function(){return Infinity==this.j&&!this.G};p.kc=function(){return Infinity!=this.j&&!this.G};p.Fb=function(){return Math.max(this.H,this.Ub()-this.u)};p.gh=function(a){this.H=a};p.Ub=function(){return this.R()||this.kc()?Math.min(Math.max(0,(Date.now()+this.s)/1E3-this.g-this.i)+this.I,this.j):this.h?Math.min(this.h,this.j):this.j};
354
- p.ld=function(a){var b=Math.max(this.l,this.H);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Ub()-this.u+a,this.Eb()))};p.Cc=function(){return this.ld(0)};p.Eb=function(){return Math.max(0,this.Ub()-(this.R()||this.kc()?this.m:0))};p.lh=function(){return null==this.i||null!=this.h&&this.C?!1:!0};p.Zg=function(a){this.I=a};M("shaka.media.PresentationTimeline",jj);jj.prototype.setAvailabilityTimeOffset=jj.prototype.Zg;jj.prototype.usingPresentationStartTime=jj.prototype.lh;
355
- jj.prototype.getSeekRangeEnd=jj.prototype.Eb;jj.prototype.getSeekRangeStart=jj.prototype.Cc;jj.prototype.getSafeSeekRangeStart=jj.prototype.ld;jj.prototype.getSegmentAvailabilityEnd=jj.prototype.Ub;jj.prototype.setUserSeekStart=jj.prototype.gh;jj.prototype.getSegmentAvailabilityStart=jj.prototype.Fb;jj.prototype.isInProgress=jj.prototype.kc;jj.prototype.isLive=jj.prototype.R;jj.prototype.offset=jj.prototype.offset;jj.prototype.notifyMaxSegmentDuration=jj.prototype.Jf;
353
+ p.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};p.R=function(){return Infinity==this.j&&!this.G};p.kc=function(){return Infinity!=this.j&&!this.G};p.sb=function(){return Math.max(this.H,this.Ub()-this.u)};p.gh=function(a){this.H=a};p.Ub=function(){return this.R()||this.kc()?Math.min(Math.max(0,(Date.now()+this.s)/1E3-this.g-this.i)+this.I,this.j):this.h?Math.min(this.h,this.j):this.j};
354
+ p.ld=function(a){var b=Math.max(this.l,this.H);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Ub()-this.u+a,this.Fb()))};p.Cc=function(){return this.ld(0)};p.Fb=function(){return Math.max(0,this.Ub()-(this.R()||this.kc()?this.m:0))};p.lh=function(){return null==this.i||null!=this.h&&this.C?!1:!0};p.Zg=function(a){this.I=a};M("shaka.media.PresentationTimeline",jj);jj.prototype.setAvailabilityTimeOffset=jj.prototype.Zg;jj.prototype.usingPresentationStartTime=jj.prototype.lh;
355
+ jj.prototype.getSeekRangeEnd=jj.prototype.Fb;jj.prototype.getSeekRangeStart=jj.prototype.Cc;jj.prototype.getSafeSeekRangeStart=jj.prototype.ld;jj.prototype.getSegmentAvailabilityEnd=jj.prototype.Ub;jj.prototype.setUserSeekStart=jj.prototype.gh;jj.prototype.getSegmentAvailabilityStart=jj.prototype.sb;jj.prototype.isInProgress=jj.prototype.kc;jj.prototype.isLive=jj.prototype.R;jj.prototype.offset=jj.prototype.offset;jj.prototype.notifyMaxSegmentDuration=jj.prototype.Jf;
356
356
  jj.prototype.notifyMinSegmentStartTime=jj.prototype.re;jj.prototype.lockStartTime=jj.prototype.je;jj.prototype.notifySegments=jj.prototype.td;jj.prototype.notifyTimeRange=jj.prototype.Tg;jj.prototype.getDelay=jj.prototype.Ph;jj.prototype.setDelay=jj.prototype.ah;jj.prototype.setSegmentAvailabilityDuration=jj.prototype.Ae;jj.prototype.setStatic=jj.prototype.Mc;jj.prototype.setClockOffset=jj.prototype.$g;jj.prototype.getPresentationStartTime=jj.prototype.$h;jj.prototype.setDuration=jj.prototype.ab;
357
- jj.prototype.setPresentationStartTime=jj.prototype.eh;jj.prototype.getMaxSegmentDuration=jj.prototype.Xh;jj.prototype.getDuration=jj.prototype.getDuration;function kj(a,b,c){this.j=c;this.l=a;this.u=lj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.C=b;this.i=function(){}}kj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function mj(a,b){a.i=b}function nj(a){this.g=a}function lj(a){if(a.g.paused||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Lh(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 oj(a,b,c,d,e){var f=this;this.C=e;this.g=a;this.D=b;this.u=c;this.l=new Af;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.s=!1;this.l.o(a,"waiting",function(){return pj(f)});this.m=(new xd(function(){pj(f)})).va(this.u.gapJumpTimerTime)}oj.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.D=this.C=null};oj.prototype.Nf=function(){this.s=!0;pj(this)};
357
+ jj.prototype.setPresentationStartTime=jj.prototype.eh;jj.prototype.getMaxSegmentDuration=jj.prototype.Xh;jj.prototype.getDuration=jj.prototype.getDuration;function kj(a,b,c){this.j=c;this.l=a;this.u=lj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.C=b;this.i=function(){}}kj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function mj(a,b){a.i=b}function nj(a){this.g=a}function lj(a){if(a.g.paused||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Lh(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 oj(a,b,c,d,e){var f=this;this.C=e;this.g=a;this.D=b;this.u=c;this.l=new Af;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.s=!1;this.l.o(a,"waiting",function(){return pj(f)});this.m=(new xd(function(){pj(f)})).wa(this.u.gapJumpTimerTime)}oj.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.D=this.C=null};oj.prototype.Nf=function(){this.s=!0;pj(this)};
358
358
  function pj(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.H&&(a.H=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=lj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.u!=d)b.m=f,b.g=e,b.u=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.s++,b.j(new O("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Mh(c,b,a.u.gapDetectionThreshold),null==
359
- d||0==d&&!a.s||(e=c.start(d),e>=a.D.Eb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.G++,a.C(new O("gapjumped")))))}}};function qj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=rj.value().get(b),c.ka(a,b,d))}var rj=new Ff(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function sj(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.s=!1;this.h=new Af;this.i=new tj(a);qj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){uj(e,e.j())})}sj.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 vj(a){return a.s?a.g.currentTime:a.j()}
359
+ d||0==d&&!a.s||(e=c.start(d),e>=a.D.Fb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.G++,a.C(new O("gapjumped")))))}}};function qj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=rj.value().get(b),c.ka(a,b,d))}var rj=new Ff(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function sj(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.s=!1;this.h=new Af;this.i=new tj(a);qj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){uj(e,e.j())})}sj.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 vj(a){return a.s?a.g.currentTime:a.j()}
360
360
  function wj(a,b){0<a.g.readyState?xj(a.i,b):qj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){uj(a,a.j())})}function uj(a,b){.001>Math.abs(a.g.currentTime-b)?yj(a):(a.h.ka(a.g,"seeking",function(){yj(a)}),xj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function yj(a){a.s=!0;a.h.o(a.g,"seeking",function(){return a.m()});a.u(a.g.currentTime)}
361
- function tj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new xd(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}tj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function xj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.va(.1)};function zj(a){this.g=a;this.j=!1;this.h=null;this.i=new Af}p=zj.prototype;p.Ne=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ka(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;qj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};p.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};p.Oe=function(a){this.h=this.j?this.h:a};p.Nd=function(){return(this.j?this.g.currentTime:this.h)||0};p.qg=function(){return 0};
361
+ function tj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new xd(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}tj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function xj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.wa(.1)};function zj(a){this.g=a;this.j=!1;this.h=null;this.i=new Af}p=zj.prototype;p.Ne=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ka(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;qj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};p.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};p.Oe=function(a){this.h=this.j?this.h:a};p.Nd=function(){return(this.j?this.g.currentTime:this.h)||0};p.qg=function(){return 0};
362
362
  p.pg=function(){return 0};p.Sg=function(){};
363
363
  function Aj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.D=b.minBufferTime||0;this.l=c;this.C=e;this.u=null;this.s=Bj(a,c,f);this.j=new oj(a,b.presentationTimeline,c,this.s,f);this.h=new sj(a,function(){a:{var h=g.j;h.j=!0;h.s=!1;var k=vj(g.h);h=Cj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.u||g.u<k-1)){g.u=k;wj(g.h,h);h=void 0;break a}g.C();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()?
364
- g.g.Cc():g.g.Eb():0>h&&(h=g.g.Eb()+h);return Dj(g,Ej(g,h))});this.m=new xd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=vj(g.h),k=g.g.Cc(),l=g.g.Eb();3>l-k&&(k=l-3);h<k&&(h=Cj(g,h),g.i.currentTime=h)}})}p=Aj.prototype;p.Ne=function(){this.m.va(.25)};p.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.C=function(){}};p.Oe=function(a){wj(this.h,a)};
364
+ g.g.Cc():g.g.Fb():0>h&&(h=g.g.Fb()+h);return Dj(g,Ej(g,h))});this.m=new xd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=vj(g.h),k=g.g.Cc(),l=g.g.Fb();3>l-k&&(k=l-3);h<k&&(h=Cj(g,h),g.i.currentTime=h)}})}p=Aj.prototype;p.Ne=function(){this.m.wa(.25)};p.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.C=function(){}};p.Oe=function(a){wj(this.h,a)};
365
365
  p.Nd=function(){var a=vj(this.h);return 0<this.i.readyState&&!this.i.paused?Ej(this,a):a};p.qg=function(){return this.s?this.s.s:0};p.pg=function(){return this.j.G};p.Sg=function(){this.j.Nf()};function Dj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
366
- function Cj(a,b){var c=Math.max(a.D,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.Cc(),f=a.g.Eb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.ld(c),k=a.g.ld(d);c=a.g.ld(c+d);return b>=g?Dj(a,b):b>f?f:b<e?Jh(a.i.buffered,k)?k:c:b>=h||Jh(a.i.buffered,b)?b:c}function Ej(a,b){var c=a.g.Cc();if(b<c)return c;a=a.g.Eb();return b>a?a:b}
366
+ function Cj(a,b){var c=Math.max(a.D,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.Cc(),f=a.g.Fb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.ld(c),k=a.g.ld(d);c=a.g.ld(c+d);return b>=g?Dj(a,b):b>f?f:b<e?Jh(a.i.buffered,k)?k:c:b>=h||Jh(a.i.buffered,b)?b:c}function Ej(a,b){var c=a.g.Cc();if(b<c)return c;a=a.g.Fb();return b>a?a:b}
367
367
  function Bj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new kj(new nj(a),b.stallThreshold,c);mj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Fj(a){this.g=a;this.l=null;this.j=0;this.s=!1}p=Fj.prototype;p.hc=function(){return this.g.length};p.release=function(){this.s||(this.g=[],this.l&&this.l.stop(),this.l=null)};p.Di=function(){this.s=!0};function Gj(a,b){a=t(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}p.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};
368
368
  p.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};p.offset=function(a){if(!this.s)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};p.oe=function(a){if(!this.s&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,w(a))}};
369
369
  p.sd=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.oe(a);this.qb(b)};p.qb=function(a){if(!this.s){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}};
370
370
  p.yc=function(a,b,c){c=void 0===c?!1:c;if(!this.s){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new Fh(a.startTime,b,a.J,a.bb,a.Ia,a.g,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.I,a.i,a.status,a.aes128Key),this.g[this.g.length-1].l=a.l)}};
371
- p.Be=function(a,b){var c=this;this.s||(this.l&&this.l.stop(),this.l=new xd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.l.stop(),c.l=null)}),this.l.va(a))};Fj.prototype[Symbol.iterator]=function(){return this.fc(0)};
371
+ p.Be=function(a,b){var c=this;this.s||(this.l&&this.l.stop(),this.l=new xd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.l.stop(),c.l=null)}),this.l.wa(a))};Fj.prototype[Symbol.iterator]=function(){return this.fc(0)};
372
372
  Fj.prototype.fc=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){for(;e&&!f.m;)e--,f=c.h[e];if(!f.m)return Ta("No independent partial segment found!"),null;b++;d=e-1;break}}return new Hj(this,b,d)};function Ij(a,b,c){a=new Fh(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Fj([a])}M("shaka.media.SegmentIndex",Fj);Fj.forSingleSegment=Ij;
373
373
  Fj.prototype.getIteratorForTime=Fj.prototype.fc;Fj.prototype.updateEvery=Fj.prototype.Be;Fj.prototype.fit=Fj.prototype.yc;Fj.prototype.evict=Fj.prototype.qb;Fj.prototype.mergeAndEvict=Fj.prototype.sd;Fj.prototype.offset=Fj.prototype.offset;Fj.prototype.get=Fj.prototype.get;Fj.prototype.find=Fj.prototype.find;Fj.prototype.markImmutable=Fj.prototype.Di;Fj.prototype.release=Fj.prototype.release;function Hj(a,b,c){this.i=a;this.g=b;this.h=c}Hj.prototype.Bh=function(){return this.g};
374
374
  Hj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.h.length&&a.C&&this.h>=a.h.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.h.length?a.h[this.h]:a};Hj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.h.length?(this.h++,a.C&&this.h==a.h.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};M("shaka.media.SegmentIterator",Hj);Hj.prototype.next=Hj.prototype.next;Hj.prototype.current=Hj.prototype.current;
375
375
  Hj.prototype.currentPosition=Hj.prototype.Bh;function Jj(){Fj.call(this,[]);this.h=[]}pa(Jj,Fj);p=Jj.prototype;p.clone=function(){var a=new Jj;a.h=this.h.slice();return a};p.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};p.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.j+d.hc()}return null};
376
376
  p.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.j+d.hc()}return null};p.offset=function(){};p.oe=function(){};p.qb=function(){};p.sd=function(){};p.yc=function(){};p.Be=function(){};M("shaka.media.MetaSegmentIndex",Jj);Jj.prototype.updateEvery=Jj.prototype.Be;Jj.prototype.fit=Jj.prototype.yc;Jj.prototype.mergeAndEvict=Jj.prototype.sd;Jj.prototype.evict=Jj.prototype.qb;Jj.prototype.merge=Jj.prototype.oe;Jj.prototype.offset=Jj.prototype.offset;
377
- Jj.prototype.get=Jj.prototype.get;Jj.prototype.find=Jj.prototype.find;Jj.prototype.release=Jj.prototype.release;function Kj(a){var b=this;this.g=a;this.h=this.g.$d();this.i=new xd(function(){b.g.Rg(.25*b.h)})}Kj.prototype.release=function(){this.i&&(this.i.stop(),this.i=null);this.g=null};Kj.prototype.set=function(a){if(this.h!=a)a:{this.h=a,this.i.stop();if(0<=this.h)try{var b=this.h;this.g.$d()!=b&&this.g.dg(b);break a}catch(c){}this.i.va(.25);0!=this.g.$d()&&this.g.dg(0)}};Kj.prototype.jd=function(){return this.g.jd()};function Lj(a){var b=this;this.h=a;this.g=new Set;this.i=(new xd(function(){Mj(b,!1)})).va(.25)}Lj.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Mj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Nj(a){cb.call(this);this.g=new Map;this.h=a}pa(Nj,cb);Nj.prototype.release=function(){this.g.clear();cb.prototype.release.call(this)};function Oj(a,b){var c=a.g.get(b);c||(c={vd:[],Ag:null,contentType:b},a.g.set(b,c));return c}function Pj(a,b,c){var d=Oj(a,b.contentType);Qj(a,d);a={Hf:b,position:c};d=d.vd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
377
+ Jj.prototype.get=Jj.prototype.get;Jj.prototype.find=Jj.prototype.find;Jj.prototype.release=Jj.prototype.release;function Kj(a){var b=this;this.g=a;this.h=this.g.$d();this.i=new xd(function(){b.g.Rg(.25*b.h)})}Kj.prototype.release=function(){this.i&&(this.i.stop(),this.i=null);this.g=null};Kj.prototype.set=function(a){if(this.h!=a)a:{this.h=a,this.i.stop();if(0<=this.h)try{var b=this.h;this.g.$d()!=b&&this.g.dg(b);break a}catch(c){}this.i.wa(.25);0!=this.g.$d()&&this.g.dg(0)}};Kj.prototype.jd=function(){return this.g.jd()};function Lj(a){var b=this;this.h=a;this.g=new Set;this.i=(new xd(function(){Mj(b,!1)})).wa(.25)}Lj.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Mj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Nj(a){cb.call(this);this.g=new Map;this.h=a}pa(Nj,cb);Nj.prototype.release=function(){this.g.clear();cb.prototype.release.call(this)};function Oj(a,b){var c=a.g.get(b);c||(c={vd:[],Ag:null,contentType:b},a.g.set(b,c));return c}function Pj(a,b,c){var d=Oj(a,b.contentType);Qj(a,d);a={Hf:b,position:c};d=d.vd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
378
378
  Nj.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.vd;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Hf;break a}}d=null}if(e=d)e=c.Ag,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);
379
- 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.Ag=d,JSON.stringify(d),c=new O("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Qj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.vd;b.vd=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.vd=[]};function Rj(a){cb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new xd(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new O("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).va(2)}pa(Rj,cb);Rj.prototype.release=function(){this.g.clear();this.h.stop();cb.prototype.release.call(this)};function Sj(a,b){cb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{tc:null,sc:Tj,jc:function(d,e){return Uj(c,"enter",d,e)}},{tc:Vj,sc:Tj,jc:function(d,e){return Uj(c,"enter",d,e)}},{tc:Wj,sc:Tj,jc:function(d,e){return Uj(c,"enter",d,e)}},{tc:Tj,sc:Vj,jc:function(d,e){return Uj(c,"exit",d,e)}},{tc:Tj,sc:Wj,jc:function(d,e){return Uj(c,"exit",d,e)}},{tc:Vj,sc:Wj,jc:function(d,e){return Uj(c,"skip",d,e)}},{tc:Wj,sc:Vj,jc:function(d,e){return Uj(c,"skip",d,e)}}];this.h=new Af;this.h.o(this.i,
379
+ 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.Ag=d,JSON.stringify(d),c=new O("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Qj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.vd;b.vd=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.vd=[]};function Rj(a){cb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new xd(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new O("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).wa(2)}pa(Rj,cb);Rj.prototype.release=function(){this.g.clear();this.h.stop();cb.prototype.release.call(this)};function Sj(a,b){cb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{tc:null,sc:Tj,jc:function(d,e){return Uj(c,"enter",d,e)}},{tc:Vj,sc:Tj,jc:function(d,e){return Uj(c,"enter",d,e)}},{tc:Wj,sc:Tj,jc:function(d,e){return Uj(c,"enter",d,e)}},{tc:Tj,sc:Vj,jc:function(d,e){return Uj(c,"exit",d,e)}},{tc:Tj,sc:Wj,jc:function(d,e){return Uj(c,"exit",d,e)}},{tc:Vj,sc:Wj,jc:function(d,e){return Uj(c,"skip",d,e)}},{tc:Wj,sc:Vj,jc:function(d,e){return Uj(c,"skip",d,e)}}];this.h=new Af;this.h.o(this.i,
380
380
  "regionremove",function(d){c.g.delete(d.region)})}pa(Sj,cb);Sj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;cb.prototype.release.call(this)};Sj.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Vj:a>d.endTime?Wj:Tj;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.tc==e&&h.sc==f&&h.jc(d,b)}}};
381
381
  function Uj(a,b,c,d){b=new O(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Vj=1,Tj=2,Wj=3;function Xj(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function Yj(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.fc(Math.max(b.startTime,a.j));if(d){var e=b;c&&(e=d.next().value)&&e.startTime==b.startTime&&e.endTime==b.endTime&&(e=null);for(;a.g.size<a.i&&null!=e;)b=!0,e.s&&null!=e.Ia&&(b=!1),2==e.ic()&&(b=!1),b&&!a.g.has(e)&&(b=new Zj(a.l),ak(b,e,a.h),a.g.set(e,b)),a.j=e.startTime,e=d.next().value}}}
382
382
  function bk(a,b){if(a.h.segmentIndex&&a.g.size<a.i&&!a.g.has(b)){var c=new Zj(a.l);ak(c,b,a.h);a.g.set(b,c)}}function ck(a){if(0!==a.g.size){for(var b=t(a.g.keys()),c=b.next();!c.done;c=b.next())(c=c.value)&&dk(a,c);a.j=0}}function ek(a,b){b&&b!==a.h&&(ck(a),a.h=b)}function dk(a,b){var c=a.g.get(b);a.g.delete(b);c&&c.abort()}function Zj(a){this.i=a;this.g=this.h=null}
@@ -389,22 +389,22 @@ function rk(a,b,c,d,e,f){var g=a.h.get(b.type);g||b.type!=Lb?g&&(g.qc&&(b.trickM
389
389
  function vk(a,b){var c,d;return K(function(e){if(1==e.g){if(!b.Za)return e.return();c=b.stream;d=b.Za;return c.segmentIndex?e.F(2):D(e,c.createSegmentIndex(),2)}if(b.Za!=d||b.stream!=c)return e.return();var f=a.g.Zd();var g=Oi(a.g.Y,b.type),h=b.stream.segmentIndex.find(b.Oa?b.Oa.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ia?k.Ia-k.bb:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.g)&&(h+=(k.Ia?k.Ia-k.bb:null)||0),k=a.g.getBandwidthEstimate(),
390
390
  f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal)||b.Za.h.g>h?!0:!1):f=!1;f&&b.Za.abort();F(e)})}
391
391
  p.zd=function(){if(this.g)for(var a=this.g.Zd(),b=t(this.h.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.h.get(d);var e=null;c.ba&&(e=c.ba.current());if(!e||e.startTime>a||e.endTime<a)c.ba=null;e=this.g.Y;e.D?e=!1:d==Lb?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Ni(e,d),e=Jh(e,a));e||((null!=Oi(this.g.Y,d)||c.Pa)&&wk(this,c),c.Za&&(c.Za.abort(),c.Za=null),d===Lb&&(d=this.g.Y,d.J&&d.J.h()),c.zd=!0)}};
392
- function wk(a,b){b.ed||b.Lb||(b.Pa?(b.Lb=!0,b.Sd=0):null==Mi(a.g.Y,b.type)?null==b.wb&&ok(a,b,0):(ik(b),uk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
393
- function lk(a){var b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){b=Mb;if(!a.j)throw new P(2,5,5006);c=new Map;d=new Set;a.j.audio&&(c.set(b.W,a.j.audio),d.add(a.j.audio));a.j.video&&(c.set(b.qa,a.j.video),d.add(a.j.video));a.s&&(c.set(b.xa,a.s),d.add(a.s));e=a.g.Y;return D(m,e.init(c,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}zf(a.l);a.updateDuration();f=t(c.keys());for(g=f.next();!g.done;g=f.next())h=g.value,k=c.get(h),a.h.has(h)||(l=nk(a,k),a.h.set(h,l),ok(a,l,
394
- 0));F(m)})}function nk(a,b){return{stream:b,type:b.type,ba:null,Fa:kk(a,b),Oa:null,Hc:null,Ef:null,Cf:null,Bf:null,qc:null,endOfStream:!1,Pa:!1,wb:null,Lb:!1,Sd:0,Ce:!1,ed:!1,zd:!0,If:!1,Tf:!1,nd:!1,Za:null}}function kk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.i.segmentPrefetchLimit?new Xj(a.i.segmentPrefetchLimit,b,function(c,d,e){return xk(a,c,d,e)}):null}p.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.Y.ab(a):this.g.Y.ab(Math.pow(2,32))};
395
- function yk(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:zf(a.l);if(b.Pa||null==b.wb||b.ed)return h.return();b.wb=null;if(!b.Lb){h.F(2);break}return D(h,uk(a,b,b.Ce,b.Sd),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.F(4);break}c=b.stream;return D(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Pa||b.wb||ok(a,b,0),h.return();case 4:ta(h,6);d=zk(a,b);null!=d&&(ok(a,b,d),b.nd=!1);va(h,7);break;case 6:return e=
392
+ function wk(a,b){b.ed||b.Lb||(b.Pa?(b.Lb=!0,b.Sd=0):null==Mi(a.g.Y,b.type)?null==b.xb&&ok(a,b,0):(ik(b),uk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
393
+ function lk(a){var b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){b=Mb;if(!a.j)throw new P(2,5,5006);c=new Map;d=new Set;a.j.audio&&(c.set(b.W,a.j.audio),d.add(a.j.audio));a.j.video&&(c.set(b.ra,a.j.video),d.add(a.j.video));a.s&&(c.set(b.xa,a.s),d.add(a.s));e=a.g.Y;return D(m,e.init(c,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}zf(a.l);a.updateDuration();f=t(c.keys());for(g=f.next();!g.done;g=f.next())h=g.value,k=c.get(h),a.h.has(h)||(l=nk(a,k),a.h.set(h,l),ok(a,l,
394
+ 0));F(m)})}function nk(a,b){return{stream:b,type:b.type,ba:null,Fa:kk(a,b),Oa:null,Hc:null,Ef:null,Cf:null,Bf:null,qc:null,endOfStream:!1,Pa:!1,xb:null,Lb:!1,Sd:0,Ce:!1,ed:!1,zd:!0,If:!1,Tf:!1,nd:!1,Za:null}}function kk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.i.segmentPrefetchLimit?new Xj(a.i.segmentPrefetchLimit,b,function(c,d,e){return xk(a,c,d,e)}):null}p.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.Y.ab(a):this.g.Y.ab(Math.pow(2,32))};
395
+ function yk(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:zf(a.l);if(b.Pa||null==b.xb||b.ed)return h.return();b.xb=null;if(!b.Lb){h.F(2);break}return D(h,uk(a,b,b.Ce,b.Sd),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.F(4);break}c=b.stream;return D(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Pa||b.xb||ok(a,b,0),h.return();case 4:ta(h,6);d=zk(a,b);null!=d&&(ok(a,b,d),b.nd=!1);va(h,7);break;case 6:return e=
396
396
  wa(h),D(h,Ak(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.h.values());if(!a.D||!f.every(function(k){return k.endOfStream})){h.F(0);break}return D(h,a.g.Y.endOfStream(),10);case 10:zf(a.l),g=a.g.Y.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.ab(g),F(h)}})}
397
397
  function zk(a,b){if(Bk(b))return Wi(a.g.Y,b.stream.originalId||""),null;b.type==Lb&&Xi(a.g.Y);if(!a.g.Y.$&&b.type!=Lb)return a.i.updateIntervalSeconds/2;var c=a.g.Zd(),d=b.Oa?b.Oa.endTime:c,e=Pi(a.g.Y,b.type,c),f=Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal,a.i.bufferingGoal)*a.C,g=a.m.presentationTimeline.getDuration()-d,h=Oi(a.g.Y,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.h.get(Lb))&&Bk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.i.updateIntervalSeconds/
398
398
  2;e=Ck(a,b,c,h);if(!e)return a.i.updateIntervalSeconds;f=Infinity;g=Array.from(a.h.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,Bk(h)||h.ba&&!h.ba.current()||(f=Math.min(f,h.Oa?h.Oa.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.i.updateIntervalSeconds;b.Fa&&b.ba&&(d=e.g,!d||b.Oa&&Eh(d,b.Hc)||bk(b.Fa,d),Yj(b.Fa,e));Dk(a,b,c,e).catch(function(){});return null}
399
399
  function Ck(a,b,c,d){if(b.ba)return b.ba.current();if(b.Oa||d)return c=b.Oa?b.Oa.endTime:d,b.If=!0,b.ba=b.stream.segmentIndex.fc(c),b.ba&&b.ba.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.ba=b.stream.segmentIndex.fc(d),e=b.ba&&b.ba.next().value);e||(b.ba=b.stream.segmentIndex.fc(c),e=b.ba&&b.ba.next().value);return e}
400
400
  function Dk(a,b,c,d){var e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A;return K(function(B){switch(B.g){case 1:e=Mb;f=b.stream;g=b.ba;b.Pa=!0;ta(B,2);if(2==d.ic())throw new P(1,1,1011);return D(B,Ek(a,b,d),4);case 4:zf(a.l);if(a.u)return B.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.i.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.u))return n=new Uint8Array(0),q=r=!1,v=function(C){var E,H,G,I;return K(function(J){switch(J.g){case 1:if(r)return J.return();q=!0;zf(a.l);if(a.u)return J.return();
401
401
  ta(J,2);n=Fk(n,C);E=!1;H=0;(new Tf).box("mdat",function(L){H=L.size+L.start;E=!0}).parse(n,!1,!0);if(!E){J.F(4);break}G=n.subarray(0,H);n=n.subarray(H);return D(J,Gk(a,b,c,f,d,G,!0),5);case 5:b.Fa&&b.ba&&Yj(b.Fa,d,!0);case 4:va(J,0);break;case 2:u=I=wa(J),F(J)}})},D(B,Hk(a,b,d,v),9);l=Hk(a,b,d);return D(B,l,7);case 7:m=B.h;zf(a.l);if(a.u)return B.return();zf(a.l);return b.Lb?(b.Pa=!1,ok(a,b,0),B.return()):D(B,Gk(a,b,c,f,d,m),6);case 9:y=B.h;if(u)throw u;if(q){B.F(10);break}r=!0;zf(a.l);return a.u?
402
- B.return():b.Lb?(b.Pa=!1,ok(a,b,0),B.return()):D(B,Gk(a,b,c,f,d,y),10);case 10:b.Fa&&b.ba&&Yj(b.Fa,d,!0);case 6:zf(a.l);if(a.u)return B.return();b.Oa=d;g.next();b.Pa=!1;b.Tf=!1;z=a.g.Y.Db();x=z[b.type];$a(JSON.stringify(x));b.Lb||a.g.Nf(d.startTime,d.endTime,b.type);ok(a,b,0);va(B,0);break;case 2:A=wa(B);zf(a.l,A);if(a.u)return B.return();b.Pa=!1;if(7001==A.code)b.Pa=!1,ik(b),ok(a,b,0),B.F(0);else if(b.type==e.xa&&a.i.ignoreTextStreamFailures)a.h.delete(e.xa),B.F(0);else if(3017==A.code)Ik(a,b,A),
402
+ B.return():b.Lb?(b.Pa=!1,ok(a,b,0),B.return()):D(B,Gk(a,b,c,f,d,y),10);case 10:b.Fa&&b.ba&&Yj(b.Fa,d,!0);case 6:zf(a.l);if(a.u)return B.return();b.Oa=d;g.next();b.Pa=!1;b.Tf=!1;z=a.g.Y.Eb();x=z[b.type];$a(JSON.stringify(x));b.Lb||a.g.Nf(d.startTime,d.endTime,b.type);ok(a,b,0);va(B,0);break;case 2:A=wa(B);zf(a.l,A);if(a.u)return B.return();b.Pa=!1;if(7001==A.code)b.Pa=!1,ik(b),ok(a,b,0),B.F(0);else if(b.type==e.xa&&a.i.ignoreTextStreamFailures)a.h.delete(e.xa),B.F(0);else if(3017==A.code)Ik(a,b,A),
403
403
  B.F(0);else return b.nd=!0,A.severity=2,D(B,Ak(a,b,A),0)}})}function Jk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return d=b,d.cryptoKey?h.F(2):D(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=nc(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h.return(window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Fk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
404
404
  function Ik(a,b,c){if(!Array.from(a.h.values()).some(function(e){return e!=b&&e.Tf})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.nd=!0;a.u=!0;a.g.onError(c);return}b.Tf=!0}ok(a,b,4)}
405
- function Ek(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v;return K(function(y){if(1==y.g){d=Mb;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=id(b.stream.codecs)[0];k=jd(b.stream.mimeType);l=c.timestampOffset;if(l==b.Ef&&f==b.Cf&&g==b.Bf&&h==b.Df&&k==b.Ng)return y.F(2);if(m=b.Df&&b.Ng&&ij(a.g.Y,b.type,b.stream))n=null,b.type===d.qa?n=a.h.get(d.W):b.type===d.W&&(n=a.h.get(d.qa)),n&&(n.Hc=null,wk(a,n),jk(n).catch(function(){}));r=function(){var z,x,A,B;return K(function(C){if(1==C.g)return z=
406
- new Map,a.j.audio&&z.set(d.W,a.j.audio),a.j.video&&z.set(d.qa,a.j.video),ta(C,2),b.Cf=f,b.Bf=g,b.Df=h,b.Ng=k,b.Ef=l,x=a.m.sequenceMode||"HLS"==a.m.type,D(C,$i(a.g.Y,b.type,l,f,g,x,b.stream,z),4);if(2!=C.g)return m&&(A=null,b.type===d.qa?A=a.h.get(d.W):b.type===d.W&&(A=a.h.get(d.qa)),A&&(A.Lb=!1,A.Pa=!1,wk(a,A))),va(C,0);B=wa(C);b.Cf=null;b.Bf=null;b.Df=null;b.Ef=null;throw B;})};return D(y,r(),2)}Eh(c.g,b.Hc)||(b.Hc=c.g,c.m&&c.g&&(q=Hk(a,b,c.g),u=function(){var z,x,A,B,C,E;return K(function(H){switch(H.g){case 1:return ta(H,
407
- 2),D(H,q,4);case 4:return z=H.h,zf(a.l),x=null,A=new Map,B=new Tf,B.box("moov",Yf).box("trak",Yf).box("mdia",Yf).V("mdhd",function(G){x=Xh(G.reader,G.version).timescale}).box("hdlr",function(G){G=G.reader;G.skip(8);G=G.Ib(4);var I=String.fromCharCode(G[0]);I+=String.fromCharCode(G[1]);I+=String.fromCharCode(G[2]);I+=String.fromCharCode(G[3]);switch(I){case "soun":A.set(d.W,x);break;case "vide":A.set(d.qa,x)}x=null}).parse(z),A.has(b.type)?c.g.timescale=A.get(b.type):null!=x&&(c.g.timescale=x),C=b.stream.closedCaptions&&
405
+ function Ek(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v;return K(function(y){if(1==y.g){d=Mb;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=id(b.stream.codecs)[0];k=jd(b.stream.mimeType);l=c.timestampOffset;if(l==b.Ef&&f==b.Cf&&g==b.Bf&&h==b.Df&&k==b.Ng)return y.F(2);if(m=b.Df&&b.Ng&&ij(a.g.Y,b.type,b.stream))n=null,b.type===d.ra?n=a.h.get(d.W):b.type===d.W&&(n=a.h.get(d.ra)),n&&(n.Hc=null,wk(a,n),jk(n).catch(function(){}));r=function(){var z,x,A,B;return K(function(C){if(1==C.g)return z=
406
+ new Map,a.j.audio&&z.set(d.W,a.j.audio),a.j.video&&z.set(d.ra,a.j.video),ta(C,2),b.Cf=f,b.Bf=g,b.Df=h,b.Ng=k,b.Ef=l,x=a.m.sequenceMode||"HLS"==a.m.type,D(C,$i(a.g.Y,b.type,l,f,g,x,b.stream,z),4);if(2!=C.g)return m&&(A=null,b.type===d.ra?A=a.h.get(d.W):b.type===d.W&&(A=a.h.get(d.ra)),A&&(A.Lb=!1,A.Pa=!1,wk(a,A))),va(C,0);B=wa(C);b.Cf=null;b.Bf=null;b.Df=null;b.Ef=null;throw B;})};return D(y,r(),2)}Eh(c.g,b.Hc)||(b.Hc=c.g,c.m&&c.g&&(q=Hk(a,b,c.g),u=function(){var z,x,A,B,C,E;return K(function(H){switch(H.g){case 1:return ta(H,
407
+ 2),D(H,q,4);case 4:return z=H.h,zf(a.l),x=null,A=new Map,B=new Tf,B.box("moov",Yf).box("trak",Yf).box("mdia",Yf).V("mdhd",function(G){x=Xh(G.reader,G.version).timescale}).box("hdlr",function(G){G=G.reader;G.skip(8);G=G.Ib(4);var I=String.fromCharCode(G[0]);I+=String.fromCharCode(G[1]);I+=String.fromCharCode(G[2]);I+=String.fromCharCode(G[3]);switch(I){case "soun":A.set(d.W,x);break;case "vide":A.set(d.ra,x)}x=null}).parse(z),A.has(b.type)?c.g.timescale=A.get(b.type):null!=x&&(c.g.timescale=x),C=b.stream.closedCaptions&&
408
408
  0<b.stream.closedCaptions.size,D(H,a.g.ug(b.type,z),5);case 5:return D(H,Ri(a.g.Y,b.type,z,null,b.stream,C),6);case 6:va(H,0);break;case 2:throw E=wa(H),b.Hc=null,E;}})},a.g.Fi(c.startTime,c.g),e.push(u())));a.m.sequenceMode&&(v=b.Oa?b.Oa.l:null,c.l!=v||b.If)&&(b.If=!1,e.push(bj(a.g.Y,b.type,c.startTime)));return D(y,Promise.all(e),0)})}
409
409
  function Gk(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,r;return K(function(q){switch(q.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.i.dispatchAllEmsgBoxes;m=a.i.parsePrftBox&&!a.G;if(l||m)k=new Tf;l&&k.V("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var y=u.reader.wd();var z=u.reader.wd();var x=u.reader.N();var A=u.reader.N();var B=u.reader.N();var C=u.reader.N();var E=e.startTime+A/x}else x=u.reader.N(),E=u.reader.Lc()/
410
410
  x+e.timestampOffset,A=E-e.startTime,B=u.reader.N(),C=u.reader.N(),y=u.reader.wd(),z=u.reader.wd();u=u.reader.Ib(u.reader.getLength()-u.reader.Ca());if(v&&v.includes(y)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.Gi():(v=(new Map).set("detail",{startTime:E,endTime:E+B/x,schemeIdUri:y,value:z,timescale:x,presentationTimeDelta:A,eventDuration:B,id:C,messageData:u}),v=new O("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=y&&"https://developer.apple.com/streaming/emsg-id3"!=
@@ -413,10 +413,10 @@ a.G=!0}});(l||m)&&k.parse(f);return D(q,Kk(a,b,c),2);case 2:return zf(a.l),n=b.z
413
413
  function Bk(a){return a&&a.type==Lb&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
414
414
  function Hk(a,b,c,d){var e,f,g,h,k;return K(function(l){switch(l.g){case 1:if(c instanceof Dh&&(e=c.g))return l.return(e);f=null;if(b.Fa){var m=b.Fa;if(m.g.has(c)){var n=m.g.get(c);d&&(n.h=d);m.g.delete(c);f=n.g}else f=null}f||(f=xk(a,c,b.stream,d));g=0;b.ba&&(g=b.ba.g);b.Za=f;return D(l,f.promise,2);case 2:h=l.h;b.Za=null;k=h.data;if(!c.aes128Key){l.F(3);break}return D(l,Jk(k,c.aes128Key,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
415
415
  function xk(a,b,c,d){var e=b instanceof Fh?b:void 0,f=e?1:0;b=fk(b.aa(),b.bb,b.Ia,a.i.retryParameters,d);return a.g.pc.request(wf,b,{type:f,stream:c,segment:e})}
416
- function uk(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.Lb=!1,b.Ce=!1,b.Sd=0,b.ed=!0,b.Oa=null,b.Hc=null,b.ba=null,b.Fa&&ck(b.Fa),d?(e=a.g.Zd(),f=a.g.Y.getDuration(),D(g,a.g.Y.remove(b.type,e+d,f),3)):D(g,Zi(a.g.Y,b.type),4);if(3!=g.g)return zf(a.l),c?D(g,a.g.Y.flush(b.type),3):g.F(3);zf(a.l);b.ed=!1;b.endOfStream=!1;b.Pa||b.wb||ok(a,b,0);F(g)})}
417
- function ok(a,b,c){var d=b.type;if(d!=Lb||a.h.has(d))b.wb=(new wd(function(){var e;return K(function(f){if(1==f.g)return ta(f,2),D(f,yk(a,b),4);if(2!=f.g)return va(f,0);e=wa(f);if(a.g)a.g.onError(e);F(f)})})).S(c)}function ik(a){null!=a.wb&&(a.wb.stop(),a.wb=null)}function jk(a){return K(function(b){return a.Za?D(b,a.Za.abort(),0):b.F(0)})}
418
- function Ak(a,b,c){var d;return K(function(e){if(1==e.g)return D(e,Ze(a.I),2);zf(a.l);d=0===a.i.maxDisabledTime&&1011==c.code?1:a.i.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.Xe(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.i.failureCallback(c);F(e)})};function Lk(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:var n=(new kb(a)).Sa.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Mk[d])return m.return(e);f=0;g=qf([a],c);ta(m,2);g.method="HEAD";return D(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];va(m,3);break;case 2:k=wa(m);if(!k||1002!=k.code){m.F(3);break}g.method="GET";return D(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?e.toLowerCase().split(";").shift():
419
- "")}})}
416
+ function uk(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.Lb=!1,b.Ce=!1,b.Sd=0,b.ed=!0,b.Oa=null,b.Hc=null,b.ba=null,b.Fa&&ck(b.Fa),d?(e=a.g.Zd(),f=a.g.Y.getDuration(),D(g,a.g.Y.remove(b.type,e+d,f),3)):D(g,Zi(a.g.Y,b.type),4);if(3!=g.g)return zf(a.l),c?D(g,a.g.Y.flush(b.type),3):g.F(3);zf(a.l);b.ed=!1;b.endOfStream=!1;b.Pa||b.xb||ok(a,b,0);F(g)})}
417
+ function ok(a,b,c){var d=b.type;if(d!=Lb||a.h.has(d))b.xb=(new wd(function(){var e;return K(function(f){if(1==f.g)return ta(f,2),D(f,yk(a,b),4);if(2!=f.g)return va(f,0);e=wa(f);if(a.g)a.g.onError(e);F(f)})})).S(c)}function ik(a){null!=a.xb&&(a.xb.stop(),a.xb=null)}function jk(a){return K(function(b){return a.Za?D(b,a.Za.abort(),0):b.F(0)})}
418
+ function Ak(a,b,c){var d;return K(function(e){if(1==e.g)return D(e,Ze(a.I),2);zf(a.l);d=0===a.i.maxDisabledTime&&1011==c.code?1:a.i.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.Xe(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.i.failureCallback(c);F(e)})};function Lk(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:var n=(new kb(a)).Sa.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Mk[d])return m.return(e);f=0;g=qf([a],c);ta(m,2);g.method="HEAD";return D(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];va(m,3);break;case 2:k=wa(m);if(!k||1002!=k.code&&1001!=k.code){m.F(3);break}g.method="GET";return D(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
419
+ e.toLowerCase().split(";").shift():"")}})}
420
420
  var Mk={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 Nk(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Nk(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=Ok(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Ok(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value;k=k.next().value;
421
421
  return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
422
422
  function Ok(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7<a.length&&(a=a.slice(0,7));switch(a){case "white":case "#fff":case "#ffffff":return"white";case "lime":case "#0f0":case "#00ff00":return"lime";case "cyan":case "#0ff":case "#00ffff":return"cyan";case "red":case "#f00":case "#ff0000":return"red";
@@ -430,7 +430,7 @@ function Rk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t
430
430
  Copyright 2023 Google LLC
431
431
  SPDX-License-Identifier: Apache-2.0
432
432
  */
433
- function Tk(){}p=Tk.prototype;p.remove=function(){};p.append=function(){};p.destroy=function(){};p.isTextVisible=function(){return!1};p.setTextVisibility=function(){};M("shaka.text.StubTextDisplayer",Tk);Tk.prototype.setTextVisibility=Tk.prototype.setTextVisibility;Tk.prototype.isTextVisible=Tk.prototype.isTextVisible;Tk.prototype.destroy=Tk.prototype.destroy;Tk.prototype.append=Tk.prototype.append;Tk.prototype.remove=Tk.prototype.remove;function Uk(){}function T(a){return document.createElement(a)}function Vk(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Wk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}M("shaka.util.Dom",Uk);Uk.removeAllChildren=Wk;function Xk(a,b){var c=this;this.m=!1;this.i=[];this.D=a;this.u=b;this.j=null;this.g=T("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.u.appendChild(this.g);this.G=(new xd(function(){Yk(c)})).va(.25);this.h=new Map;this.l=new Af;this.l.o(document,"fullscreenchange",function(){Yk(c,!0)});this.l.o(this.D,"resize",function(){var d=
433
+ function Tk(){}p=Tk.prototype;p.remove=function(){};p.append=function(){};p.destroy=function(){};p.isTextVisible=function(){return!1};p.setTextVisibility=function(){};M("shaka.text.StubTextDisplayer",Tk);Tk.prototype.setTextVisibility=Tk.prototype.setTextVisibility;Tk.prototype.isTextVisible=Tk.prototype.isTextVisible;Tk.prototype.destroy=Tk.prototype.destroy;Tk.prototype.append=Tk.prototype.append;Tk.prototype.remove=Tk.prototype.remove;function Uk(){}function T(a){return document.createElement(a)}function Vk(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Wk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}M("shaka.util.Dom",Uk);Uk.removeAllChildren=Wk;function Xk(a,b){var c=this;this.m=!1;this.i=[];this.D=a;this.u=b;this.j=null;this.g=T("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.u.appendChild(this.g);this.G=(new xd(function(){Yk(c)})).wa(.25);this.h=new Map;this.l=new Af;this.l.o(document,"fullscreenchange",function(){Yk(c,!0)});this.l.o(this.D,"resize",function(){var d=
434
434
  c.D,e=d.videoWidth;d=d.videoHeight;e&&d?c.j=e/d:c.j=null});this.s=null;"ResizeObserver"in window&&(this.s=new ResizeObserver(function(){Yk(c,!0)}),this.s.observe(this.g));this.C=new Map}p=Xk.prototype;p.append=function(a){var b=[].concat(w(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={Gd:c.Gd},d=a.next())c.Gd=d.value,b.some(function(e){return function(f){return Mc(f,e.Gd)}}(c))||this.i.push(c.Gd);Yk(this)};
435
435
  p.destroy=function(){if(!this.g)return Promise.resolve();this.u.removeChild(this.g);this.g=null;this.m=!1;this.i=[];this.G&&this.G.stop();this.h.clear();this.l&&(this.l.release(),this.l=null);this.s&&(this.s.disconnect(),this.s=null);return Promise.resolve()};p.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});Yk(this,c>this.i.length);return!0};p.isTextVisible=function(){return this.m};
436
436
  p.setTextVisibility=function(a){this.m=a};function Zk(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
@@ -450,13 +450,13 @@ Xk.prototype.isTextVisible=Xk.prototype.isTextVisible;Xk.prototype.remove=Xk.pro
450
450
  break;case "right":g.push("align:right");break;case Dc:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}M("shaka.text.WebVttGenerator",function(){});function gl(a,b){this.h=a;this.g=b;this.j="";this.s=void 0;this.i=!1;this.m=!0;this.l=!1}gl.prototype.configure=function(a){this.g=a};
451
451
  function hl(a,b,c){try{if(!a.g.enabled)return b;var d=il(a);a:{switch(c.toLowerCase()){case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":var e=jl;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":e=kl;break a}e=void 0}d.ot=e;d.su=!0;var f=ll(d);return ml(b,f)}catch(g){return Va("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}
452
452
  function il(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.s,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}function nl(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,il(a));c.pr=a.h.Tb();var e=c.ot===ol||c.ot===jl;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=pl(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=ll(c);f&&(b.uris=b.uris.map(function(g){return ml(g,f)}))}}}
453
- function ql(a){if(0===a.type)return rl;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?jl:ol;if("audio"==b)return sl;if("text"==b)return"application/mp4"===a.mimeType?tl:ul}}function vl(a,b){b=a.h.Db()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
453
+ function ql(a){if(0===a.type)return rl;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?jl:ol;if("audio"==b)return sl;if("text"==b)return"application/mp4"===a.mimeType?tl:ul}}function vl(a,b){b=a.h.Eb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
454
454
  function wl(a,b){var c=a.h.gb();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case ol:return a.videoBandwidth||NaN;case sl:return a.audioBandwidth||NaN;default:return a.bandwidth}}
455
455
  function ll(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
456
456
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function pl(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=t(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=ll(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
457
457
  function ml(a,b){if(!b||a.includes("offline:"))return a;a=new kb(a);a.g.set("CMCD",b);return a.toString()}var kl="m",sl="a",ol="v",jl="av",rl="i",ul="c",tl="tt";M("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",oh:"s",OTHER:"o"});function xl(){}
458
458
  function yl(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]=hf(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=hf(l)),k=yl(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?(Ta("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ua("Unexpected number of arguments for "+k),a[h]=b[h]):(Ta("Invalid config, unrecognized key "+
459
- k),g=!1)}return g}function zl(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 Al(a,b){return a&&b}M("shaka.util.ConfigUtils",xl);xl.convertToConfigObject=zl;xl.mergeConfigObjects=yl;function Bl(){this.g=null;this.h=[]}function Cl(a,b){return K(function(c){if(1==c.g)return a.g?D(c,new Promise(function(d){return a.h.push(d)}),2):c.F(2);a.g=b;F(c)})}Bl.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Dl(){}function El(a){a=Nf(a);return(new kb(a)).Cb}function Fl(a,b,c){function d(h){rc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(nc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new P(2,6,6015);var e;"string"==typeof b?e=Pf(b,!0):e=b;a=Nf(a);a=Pf(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Gl(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Nf(a).split("skd://").pop();return Fl(a,c,b)}
459
+ k),g=!1)}return g}function zl(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 Al(a,b){return a&&b}M("shaka.util.ConfigUtils",xl);xl.convertToConfigObject=zl;xl.mergeConfigObjects=yl;function Bl(){this.g=null;this.h=[]}function Cl(a,b){return K(function(c){if(1==c.g)return a.g?D(c,new Promise(function(d){return a.h.push(d)}),2):c.F(2);a.g=b;F(c)})}Bl.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Dl(){}function El(a){a=Nf(a);return(new kb(a)).Db}function Fl(a,b,c){function d(h){rc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(nc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new P(2,6,6015);var e;"string"==typeof b?e=Pf(b,!0):e=b;a=Nf(a);a=Pf(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Gl(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Nf(a).split("skd://").pop();return Fl(a,c,b)}
460
460
  function Hl(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")}M("shaka.util.FairPlayUtils",Dl);Dl.commonFairPlayResponse=function(a,b){if(2===a){try{var c=Kf(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=oc(fg(c)))}};Dl.expressplayFairPlayRequest=function(a,b){Hl(a,b)};
461
461
  Dl.conaxFairPlayRequest=function(a,b){Hl(a,b)};Dl.ezdrmFairPlayRequest=function(a,b){Hl(a,b)};Dl.verimatrixFairPlayRequest=function(a,b){2===a&&(a=nc(b.body),a=eg(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=Of("spc="+a))};Dl.expressplayInitDataTransform=function(a,b,c){return Gl(a,b,c)};
462
462
  Dl.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Nf(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=qc(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Fl(a,d,b)};Dl.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Nf(a).split(";").pop();return Fl(a,c,b)};Dl.verimatrixInitDataTransform=function(a,b,c){return Gl(a,b,c)};Dl.initDataTransform=Fl;
@@ -473,36 +473,36 @@ sourceBufferExtraFeatures:"",forceTransmux:!1,insertFakeEncryptionInInit:!0},off
473
473
  maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:!1}};e.trackSelectionCallback=function(h){return K(function(k){return k.return(Kl(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};
474
474
  return g}function Ll(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 yl(a,b,c||Jl(),d,"")}
475
475
  function Kl(a,b,c){var d=c;"AUTO"==d&&(d=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=Xb(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return Pb(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height-
476
- h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Lb&&"image"!=c.type||b.push(c);return b}M("shaka.util.PlayerConfiguration",Il);Il.mergeConfigObjects=Ll;Il.createDefault=Jl;function Ml(){this.g=null;this.h=[]}function Nl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(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 Ol(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(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 Pl(){this.i=this.h=null;this.g=[]}function Ql(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 Rl(){this.C=this.D=this.I=this.G=this.u=this.j=this.H=this.m=this.i=this.M=this.P=this.J=this.K=this.L=this.l=this.s=NaN;this.g=new Ml;this.h=new Pl};function V(a,b){cb.call(this);var c=this;this.l=Sl;this.Td=this.g=null;this.Z=!1;this.ie=new Af;this.Ta=new Af;this.m=new Af;this.G=this.I=this.s=this.J=null;this.ke=0;this.U=new Bl;this.ea=this.$=this.i=this.qe=this.H=this.j=this.ha=this.L=this.kh=this.T=this.oa=this.M=this.K=this.Ma=null;this.Pb=!1;this.Lf=this.u=null;this.Vf=1E9;this.Ab=[];this.P=NaN;this.h=Tl(this);this.Sf={width:Infinity,height:Infinity};this.C=null;this.ya=new Je(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount,
477
- this.h.preferredVideoHdrLevel,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.Ha=this.h.preferredTextLanguage;this.xb=this.h.preferredTextRole;this.zb=this.h.preferForcedSubs;this.Ua=[];b&&b(this);this.T=Ul(this);this.J=Vl(this);this.J.ag(this.h.streaming.forceHTTPS);this.D=null;Wl&&(this.D=Wl());this.ie.o(window,"online",function(){Xl(c);c.Uf()});this.be=new xd(function(){return Yl(c)});a&&(Ae("Player",
476
+ h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Lb&&"image"!=c.type||b.push(c);return b}M("shaka.util.PlayerConfiguration",Il);Il.mergeConfigObjects=Ll;Il.createDefault=Jl;function Ml(){this.g=null;this.h=[]}function Nl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(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 Ol(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(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 Pl(){this.i=this.h=null;this.g=[]}function Ql(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 Rl(){this.C=this.D=this.I=this.G=this.u=this.j=this.H=this.m=this.i=this.M=this.P=this.J=this.K=this.L=this.l=this.s=NaN;this.g=new Ml;this.h=new Pl};function V(a,b){cb.call(this);var c=this;this.l=Sl;this.Td=this.g=null;this.Z=!1;this.ie=new Af;this.Ta=new Af;this.m=new Af;this.G=this.I=this.s=this.J=null;this.ke=0;this.U=new Bl;this.ea=this.$=this.i=this.qe=this.H=this.j=this.ha=this.L=this.kh=this.T=this.qa=this.M=this.K=this.Ma=null;this.Pb=!1;this.Lf=this.u=null;this.Vf=1E9;this.Bb=[];this.P=NaN;this.h=Tl(this);this.Sf={width:Infinity,height:Infinity};this.C=null;this.ya=new Je(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount,
477
+ this.h.preferredVideoHdrLevel,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.Ha=this.h.preferredTextLanguage;this.yb=this.h.preferredTextRole;this.Ab=this.h.preferForcedSubs;this.Ua=[];b&&b(this);this.T=Ul(this);this.J=Vl(this);this.J.ag(this.h.streaming.forceHTTPS);this.D=null;Wl&&(this.D=Wl());this.ie.o(window,"online",function(){Xl(c);c.Uf()});this.be=new xd(function(){return Yl(c)});a&&(Ae("Player",
478
478
  "Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.wc(a,!0))}pa(V,cb);function Zl(a){null!=a.L&&(ui(a.L),a.L.release(),a.L=null)}
479
479
  function $l(a,b){if(b.lcevc.enabled){var c=a.gb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(Bd()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Ua("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));Zl(a);null==a.L&&(a.L=new ti(a.g,a.kh,b.lcevc),a.I&&(a.I.P=a.L))}else Zl(a)}function am(a,b){return new O(a,b)}p=V.prototype;
480
480
  p.destroy=function(){var a=this,b;return K(function(c){switch(c.g){case 1:if(a.l==bm)return c.return();Zl(a);b=a.detach();a.l=bm;return D(c,b,2);case 2:a.ie&&(a.ie.release(),a.ie=null);a.Ta&&(a.Ta.release(),a.Ta=null);a.m&&(a.m.release(),a.m=null);a.Lf=null;a.h=null;a.C=null;a.Td=null;a.T=null;if(!a.J){c.F(3);break}return D(c,a.J.destroy(),4);case 4:a.J=null;case 3:a.u&&(a.u.release(),a.u=null),cb.prototype.release.call(a),F(c)}})};
481
481
  function cm(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Dd("Trident/"))return!1;var a=Kd();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:yd()?!0:zd("application/x-mpegurl")}function dm(a,b){a.dispatchEvent(am("onstatechange",(new Map).set("state",b)))}
482
482
  p.wc=function(a,b){b=void 0===b?!0:b;var c=this,d,e;return K(function(f){switch(f.g){case 1:if(c.l==bm)throw new P(2,7,7E3);if(!c.g||c.g==a){f.F(2);break}return D(f,c.detach(),2);case 2:return D(f,hm(c,"attach"),4);case 4:if(f.h)return f.return();ta(f,5,6);dm(c,"attach");d=function(){var g=im(c);g&&jm(c,g)};c.Ta.o(a,"error",d);c.g=a;if(!b||!yd()||c.I){f.F(6);break}return D(f,km(c),6);case 6:xa(f);c.U.release();ya(f,0);break;case 5:return e=wa(f),D(f,c.detach(),10);case 10:throw e;}})};
483
483
  p.sg=function(a){this.kh=a};p.detach=function(a){a=void 0===a?!1:a;var b=this;return K(function(c){if(1==c.g){if(b.l==bm)throw new P(2,7,7E3);return D(c,b.Nc(!1,a),2)}if(3!=c.g)return D(c,hm(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.Ta.Jb(),b.g=null),dm(b,"detach"),b.D&&!a&&b.D.release()}finally{b.U.release()}F(c)})};function hm(a,b){var c;return K(function(d){return 1==d.g?(c=++a.ke,D(d,Cl(a.U,b),2)):c!=a.ke?(a.U.release(),d.return(!0)):d.return(!1)})}
484
- p.Nc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return K(function(r){switch(r.g){case 1:return c.l!=bm&&(c.l=Sl),D(r,hm(c,"unload"),2);case 2:if(r.h)return r.return();ua(r,3);c.Pb=!1;dm(c,"unload");a&&!yd()&&(a=!1);Zl(c);d=c.Ua.map(function(q){return q()});c.Ua=[];return D(r,Promise.all(d),5);case 5:c.dispatchEvent(am("unloading"));c.oa&&(c.oa.release(),c.oa=null);c.g&&c.m.Jb();c.be.stop();c.Ma&&(c.Ma.release(),c.Ma=null);if(!c.H){r.F(6);break}return D(r,c.H.stop(),
484
+ p.Nc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return K(function(r){switch(r.g){case 1:return c.l!=bm&&(c.l=Sl),D(r,hm(c,"unload"),2);case 2:if(r.h)return r.return();ua(r,3);c.Pb=!1;dm(c,"unload");a&&!yd()&&(a=!1);Zl(c);d=c.Ua.map(function(q){return q()});c.Ua=[];return D(r,Promise.all(d),5);case 5:c.dispatchEvent(am("unloading"));c.qa&&(c.qa.release(),c.qa=null);c.g&&c.m.Jb();c.be.stop();c.Ma&&(c.Ma.release(),c.Ma=null);if(!c.H){r.F(6);break}return D(r,c.H.stop(),
485
485
  7);case 7:c.H=null,c.qe=null;case 6:if(!c.u){r.F(8);break}return D(r,c.u.stop(),8);case 8:if(!c.j){r.F(10);break}return D(r,c.j.destroy(),11);case 11:c.j=null;case 10:c.K&&(c.K.release(),c.K=null);c.G&&(c.G.release(),c.G=null);if(!c.I){r.F(12);break}return D(r,c.I.destroy(),13);case 13:c.I=null;case 12:if(c.D&&!b)c.D.onAssetUnload();c.g&&Wk(c.g);if(!c.g||!c.g.src){r.F(14);break}return D(r,new Promise(function(q){return(new xd(q)).S(.1)}),15);case 15:c.g.removeAttribute("src"),c.g.load();case 14:if(!c.s){r.F(16);
486
- break}return D(r,c.s.destroy(),17);case 17:c.s=null;case 16:c.$=null;c.M=null;if(c.i){e=t(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.C=new Rl;c.Rf=null;c.Ab=[];c.P=NaN;lm(c);case 3:xa(r);c.U.release();ya(r,4);break;case 4:if(a&&yd()&&!c.I)return D(r,km(c),0);
486
+ break}return D(r,c.s.destroy(),17);case 17:c.s=null;case 16:c.$=null;c.M=null;if(c.i){e=t(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.C=new Rl;c.Rf=null;c.Bb=[];c.P=NaN;lm(c);case 3:xa(r);c.U.release();ya(r,4);break;case 4:if(a&&yd()&&!c.I)return D(r,km(c),0);
487
487
  r.F(0)}})};p.ej=function(a){this.ea=a};
488
488
  p.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:if(d.l==bm)throw new P(2,7,7E3);return D(m,Cl(d.U,"load"),2);case 2:d.U.release();if(!d.g)throw new P(2,7,7002);if(!d.$){m.F(3);break}return D(m,d.Nc(!1),3);case 3:e=++d.ke;f=function(){if(d.ke!=e)throw new P(2,7,7E3);};g=function(n,r){return K(function(q){switch(q.g){case 1:return ua(q,2),D(q,Cl(d.U,r),4);case 4:return f(),D(q,n(),5);case 5:f();case 2:xa(q),d.U.release(),ya(q,0)}})};ta(m,5);
489
489
  d.ea=b;d.Pb=!1;d.dispatchEvent(am("loading"));h=Date.now()/1E3;d.C=new Rl;d.$=a;if(c){m.F(7);break}return D(m,g(function(){return K(function(n){if(1==n.g)return D(n,mm(d),2);c=n.h;F(n)})},"guessMimeType_"),7);case 7:if(k=nm(d,c))return D(m,g(function(){return K(function(n){return D(n,om(d,c),0)})},"initializeSrcEqualsDrmInner_"),16);if(d.I){m.F(11);break}return D(m,g(function(){return K(function(n){return D(n,km(d),0)})},"initializeMediaSourceEngineInner_"),11);case 11:return D(m,g(function(){return K(function(n){return D(n,
490
490
  pm(d,c),0)})},"parseManifestInner_"),13);case 13:return D(m,g(function(){return K(function(n){return D(n,qm(d),0)})},"initializeDrmInner_"),14);case 14:return D(m,g(function(){return K(function(n){return D(n,rm(d,h),0)})},"loadInner_"),10);case 16:return D(m,g(function(){return K(function(n){return D(n,sm(d,h,c),0)})},"srcEqualsInner_"),10);case 10:d.dispatchEvent(am("loaded"));va(m,0);break;case 5:l=wa(m);if(7E3==l.code){m.F(18);break}return D(m,d.Nc(!1),18);case 18:throw l;}})};
491
491
  function mm(a){var b,c;return K(function(d){if(1==d.g)return b=a.h.manifest.retryParameters,D(d,Lk(a.$,a.J,b),2);c=d.h;"application/x-mpegurl"==c&&Id()&&(c="application/vnd.apple.mpegurl");return d.return(c)})}function nm(a,b){if(!yd())return!0;if(b){if(""==(a.g||Ad()).canPlayType(b))return!1;if(!(yd()&&b in yh))return!0;if("application/x-mpegurl"===b||"application/vnd.apple.mpegurl"===b){if(a.h.streaming.preferNativeHls)return!0;if(Id())return a.h.streaming.useNativeHlsOnSafari}}return!1}
492
492
  function km(a){var b,c,d,e,f;return K(function(g){if(1==g.g)return dm(a,"media-source"),b=a.h.textDisplayFactory,c=b(),a.Rf=b,d=tm(a.g,c,function(h,k,l){um(a,h,k,l)},a.L),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.U=f,D(g,d.L,2);a.I=d;F(g)})}
493
- function pm(a,b){var c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g)return c=a.J,dm(a,"manifest-parser"),a.qe=xh(a.$,b||null),a.H=a.qe(),d=hf(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.H.configure(d),a.oa=new Rj(function(){return a.Ea()}),a.oa.addEventListener("regionadd",function(n){n=n.region;vm(a,"timelineregionadded",n);if(a.D)a.D.onDashTimedMetadata(n)}),a.ha=null,a.h.streaming.observeQualityChanges&&(a.ha=new Nj(function(){return a.Db()}),a.ha.addEventListener("qualitychange",
493
+ function pm(a,b){var c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g)return c=a.J,dm(a,"manifest-parser"),a.qe=xh(a.$,b||null),a.H=a.qe(),d=hf(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.H.configure(d),a.qa=new Rj(function(){return a.Ea()}),a.qa.addEventListener("regionadd",function(n){n=n.region;vm(a,"timelineregionadded",n);if(a.D)a.D.onDashTimedMetadata(n)}),a.ha=null,a.h.streaming.observeQualityChanges&&(a.ha=new Nj(function(){return a.Eb()}),a.ha.addEventListener("qualitychange",
494
494
  function(n){var r=n.quality;n=n.position;r=(new Map).set("mediaQuality",{bandwidth:r.bandwidth,audioSamplingRate:r.audioSamplingRate,codecs:r.codecs,contentType:r.contentType,frameRate:r.frameRate,height:r.height,mimeType:r.mimeType,channelsCount:r.channelsCount,pixelAspectRatio:r.pixelAspectRatio,width:r.width}).set("position",n);a.dispatchEvent(am("mediaqualitychanged",r))})),e={networkingEngine:c,filter:function(n){return wm(a,n)},makeTextStreamsForClosedCaptions:function(n){return xm(a,n)},onTimelineRegionAdded:function(n){var r=
495
- a.oa;a:{var q=t(r.g);for(var u=q.next();!u.done;u=q.next())if(u=u.value,u.schemeIdUri==n.schemeIdUri&&u.id==n.id&&u.startTime==n.startTime&&u.endTime==n.endTime){q=u;break a}q=null}null==q&&(r.g.add(n),n=new O("regionadd",new Map([["region",n]])),r.dispatchEvent(n))},onEvent:function(n){return a.dispatchEvent(n)},onError:function(n){return jm(a,n)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",
495
+ a.qa;a:{var q=t(r.g);for(var u=q.next();!u.done;u=q.next())if(u=u.value,u.schemeIdUri==n.schemeIdUri&&u.id==n.id&&u.startTime==n.startTime&&u.endTime==n.endTime){q=u;break a}q=null}null==q&&(r.g.add(n),n=new O("regionadd",new Map([["region",n]])),r.dispatchEvent(n))},onEvent:function(n){return a.dispatchEvent(n)},onError:function(n){return jm(a,n)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",
496
496
  !0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(n){var r=a.s?a.s.g:null;r&&a.s.u&&ym(a,r.keySystem,n)},onManifestUpdated:function(){var n=(new Map).set("isLive",a.R());a.dispatchEvent(am("manifestupdated",n));if(a.D)a.D.onManifestUpdated(a.R())},getBandwidthEstimate:function(){return a.u.getBandwidthEstimate()}},f=Date.now()/1E3,dm(a,"manifest"),g=a,D(m,a.H.start(a.$,e),2);g.i=m.h;h=am("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new P(2,4,4036);
497
497
  zm(a.i);k=Date.now()/1E3;l=k-f;a.C.H=l;F(m)})}function qm(a){var b,c;return K(function(d){return 1==d.g?(dm(a,"drm-engine"),b=Date.now()/1E3,c=!0,a.s=Am(a,{pc:a.J,onError:function(e){jm(a,e)},ue:function(e){Bm(a,e)},onExpirationUpdated:function(e,f){Cm(a,e,f)},onEvent:function(e){a.dispatchEvent(e);"drmsessionupdate"==e.type&&c&&(c=!1,a.C.j=Date.now()/1E3-b,a.L&&ui(a.L))}}),a.s.configure(a.h.drm),D(d,Pg(a.s,a.i.variants,a.i.offlineSessionIds),2)):3!=d.g?D(d,a.s.wc(a.g),3):D(d,wm(a,a.i),0)})}
498
498
  function rm(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B;return K(function(C){switch(C.g){case 1:dm(a,"load");c=a.g;a.K=new Kj({$d:function(){return c.playbackRate},jd:function(){return c.defaultPlaybackRate},dg:function(E){c.playbackRate=E},Rg:function(E){c.currentTime+=E}});d=function(){return Dm(a)};e=function(){return Em(a)};a.m.o(c,"playing",d);a.m.o(c,"pause",d);a.m.o(c,"ended",d);a.m.o(c,"ratechange",e);$l(a,a.h);f=a.h.abrFactory;a.u&&a.Lf==f||(a.Lf=f,a.u=f(),"function"!=typeof a.u.setMediaElement&&
499
- (Ae("AbrManager","Please use an AbrManager with setMediaElement function."),a.u.setMediaElement=function(){}),a.u.configure(a.h.abr));a.ya=new Je(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount,a.h.preferredVideoHdrLevel,a.h.preferredVideoLayout,a.h.preferredAudioLabel,a.h.mediaSource.codecSwitchingStrategy,a.h.manifest.dash.enableAudioGroups);a.Ha=a.h.preferredTextLanguage;a.xb=a.h.preferredTextRole;a.zb=a.h.preferForcedSubs;Fm(a.i.presentationTimeline,a.h.playRangeStart,
499
+ (Ae("AbrManager","Please use an AbrManager with setMediaElement function."),a.u.setMediaElement=function(){}),a.u.configure(a.h.abr));a.ya=new Je(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount,a.h.preferredVideoHdrLevel,a.h.preferredVideoLayout,a.h.preferredAudioLabel,a.h.mediaSource.codecSwitchingStrategy,a.h.manifest.dash.enableAudioGroups);a.Ha=a.h.preferredTextLanguage;a.yb=a.h.preferredTextRole;a.Ab=a.h.preferForcedSubs;Fm(a.i.presentationTimeline,a.h.playRangeStart,
500
500
  a.h.playRangeEnd);a.u.init(function(E,H,G){a.j&&E!=a.j.j&&Gm(a,E,!0,void 0===H?!1:H,void 0===G?0:G)});a.u.setMediaElement(c);Pd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredDecodingAttributes);a.j=Hm(a);a.j.configure(a.h.streaming);a.l=Im;c.textTracks&&a.m.o(c.textTracks,"addtrack",function(E){if(E.track)switch(E=E.track,E.kind){case "chapters":Jm(a,E)}});a.dispatchEvent(am("streaming"));g=null;(h=a.j.j)||(g=Km(a,!0));k=[];l=h||g;m=t([l.video,l.audio]);for(n=m.next();!n.done;n=
501
501
  m.next())(r=n.value)&&!r.segmentIndex&&k.push(r.createSegmentIndex());if(!(0<k.length)){C.F(2);break}return D(C,Promise.all(k),2);case 2:if(a.H&&a.H.onInitialVariantChosen)a.H.onInitialVariantChosen(l);Fm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.G=Lm(a,a.ea);a.Ma=Mm(a,b);q=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Nm(a,c,q);if(h){C.F(4);break}Gm(a,g,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){C.F(4);break}u=a.G;v=u.Oe;return D(C,Om(g,a.G.Nd()),6);case 6:v.call(u,
502
- C.h);case 4:return a.G.Ne(),y=a.Wb().find(function(E){return E.active}),y||((z=re(a.i.textStreams,a.Ha,a.xb,a.zb)[0]||null)&&Ql(a.C.h,z,!0),g&&(z?(g.audio&&Pm(a,g.audio,z)&&(a.Z=!0),a.Z&&a.I.H.setTextVisibility(!0),Qm(a)):a.Z=!1),z&&(a.h.streaming.alwaysStreamText||a.mc())&&tk(a.j,z)),D(C,a.j.start(),7);case 7:a.h.abr.enabled&&(a.u.enable(),Rm(a));Sm(a);Tm(a);a.i.variants.some(function(E){return E.primary});(x=a.R())&&(a.h.streaming.liveSync||a.i.serviceDescription)?(A=function(){return Um(a)},a.m.o(c,
502
+ C.h);case 4:return a.G.Ne(),y=a.Wb().find(function(E){return E.active}),y||((z=re(a.i.textStreams,a.Ha,a.yb,a.Ab)[0]||null)&&Ql(a.C.h,z,!0),g&&(z?(g.audio&&Pm(a,g.audio,z)&&(a.Z=!0),a.Z&&a.I.H.setTextVisibility(!0),Qm(a)):a.Z=!1),z&&(a.h.streaming.alwaysStreamText||a.mc())&&tk(a.j,z)),D(C,a.j.start(),7);case 7:a.h.abr.enabled&&(a.u.enable(),Rm(a));Sm(a);Tm(a);a.i.variants.some(function(E){return E.primary});(x=a.R())&&(a.h.streaming.liveSync||a.i.serviceDescription)?(A=function(){return Um(a)},a.m.o(c,
503
503
  "timeupdate",A)):x||(B=function(){return Vm(a)},a.m.o(c,"timeupdate",B),Vm(a));if(a.D)a.D.onManifestUpdated(x);a.Pb=!0;a.m.ka(c,"loadedmetadata",function(){a.C.m=Date.now()/1E3-b});F(C)}})}
504
504
  function om(a,b){var c,d,e,f;return K(function(g){return 1==g.g?(c=Mb,d=Date.now()/1E3,e=!0,a.s=Am(a,{pc:a.J,onError:function(h){jm(a,h)},ue:function(h){Bm(a,h)},onExpirationUpdated:function(h,k){Cm(a,h,k)},onEvent:function(h){a.dispatchEvent(h);"drmsessionupdate"==h.type&&e&&(e=!1,a.C.j=Date.now()/1E3-d)}}),a.s.configure(a.h.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,
505
- mimeType:b?jd(b):"",codecs:b?kd(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.qa,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},a.s.Z=!0,D(g,Pg(a.s,[f],[]),2)):D(g,a.s.wc(a.g),0)})}
505
+ mimeType:b?jd(b):"",codecs:b?kd(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.ra,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},a.s.Z=!0,D(g,Pg(a.s,[f],[]),2)):D(g,a.s.wc(a.g),0)})}
506
506
  function sm(a,b,c){var d,e,f,g,h,k,l,m,n,r;return K(function(q){if(1==q.g)return dm(a,"src-equals"),d=a.g,a.G=new zj(d),e=!1,a.Ua.push(function(){e=!0}),null!=a.ea&&a.G.Oe(a.ea),a.K=new Kj({$d:function(){return d.playbackRate},jd:function(){return d.defaultPlaybackRate},dg:function(u){d.playbackRate=u},Rg:function(u){d.currentTime+=u}}),f=a.h.streaming.rebufferingGoal,Nm(a,d,f),g=function(){return Dm(a)},h=function(){return Em(a)},a.m.o(d,"playing",g),a.m.o(d,"pause",g),a.m.o(d,"ended",g),a.m.o(d,
507
507
  "ratechange",h),"none"!=d.preload&&a.m.ka(d,"loadedmetadata",function(){a.C.m=Date.now()/1E3-b}),d.audioTracks&&(a.m.o(d.audioTracks,"addtrack",function(){return Sm(a)}),a.m.o(d.audioTracks,"removetrack",function(){return Sm(a)}),a.m.o(d.audioTracks,"change",function(){return Sm(a)})),d.textTracks&&(a.m.o(d.textTracks,"addtrack",function(u){if(u.track)switch(u=u.track,u.kind){case "metadata":Wm(a,u);break;case "chapters":Jm(a,u);break;default:Sm(a)}}),a.m.o(d.textTracks,"removetrack",function(){return Sm(a)}),
508
508
  a.m.o(d.textTracks,"change",function(){return Sm(a)})),d.src=hl(a.T,a.$,c),(Ed()||Dd("Web0S"))&&d.load(),a.l=Xm,a.dispatchEvent(am("streaming")),k=new $e,qj(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.G.Ne();k.resolve()}),qj(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var u;return K(function(v){if(1==v.g)return Ym(a),u=Zm(a),u.find(function(y){return"disabled"!=y.mode})?(0<u.length&&(a.Z=!0),v.F(2)):D(v,new Promise(function(y){a.m.ka(d.textTracks,"change",y);(new xd(y)).S(1)}),2);if(e)return v.return();
@@ -514,10 +514,10 @@ function Jm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new xd(functio
514
514
  function Vl(a){return new mf(function(b,c,d){a.u&&a.u.segmentDownloaded(b,c,d)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(am("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(am("downloadfailed",b))},function(b,c,d){var e=a.T;d=void 0===d?{}:d;if(e.g.enabled)if("HEAD"===c.method)nl(e,c);else switch(b){case 0:try{if(e.g.enabled){if(d.type){a:{switch(d.type){case 4:var f=
515
515
  "d";break a;case 3:case 2:f="h";break a;case 5:f="s";break a}f=void 0}e.s=f}nl(e,c,{ot:kl,su:!e.i})}}catch(m){Va("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",m)}break;case wf:b=d;try{if(e.g.enabled){var g=b.segment;f=0;g&&(f=g.endTime-g.startTime);var h={d:1E3*f,st:e.h.R()?"l":"v"};h.ot=ql(b);var k=h.ot===ol||h.ot===sl||h.ot===jl||h.ot===tl,l=b.stream;l&&(k&&(h.bl=vl(e,l.type)),l.bandwidth&&(h.br=l.bandwidth/1E3));k&&h.ot!==tl&&(h.tb=wl(e,h.ot)/1E3);nl(e,c,h)}}catch(m){Va("CMCD_SEGMENT_ERROR",
516
516
  "Could not generate segment CMCD data.",m)}break;case 2:case 5:case 6:nl(e,c,{ot:"k"});break;case 4:nl(e,c,{ot:"o"})}},function(b,c,d,e){a.H&&a.H.banLocation&&a.H.banLocation(e)})}function Lm(a,b){return new Aj(a.g,a.i,a.h.streaming,b,function(){a.Ma&&Mj(a.Ma,!0);a.j&&a.j.zd();a.M&&cn(a)},function(c){return a.dispatchEvent(c)})}
517
- function Mm(a,b){b=new Sj(a.oa,a.R()||0<b);b.addEventListener("enter",function(d){vm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){vm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(vm(a,"timelineregionenter",e),vm(a,"timelineregionexit",e))});var c=new Lj(a.g);c.g.add(b);a.ha&&c.g.add(a.ha);return c}
517
+ function Mm(a,b){b=new Sj(a.qa,a.R()||0<b);b.addEventListener("enter",function(d){vm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){vm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(vm(a,"timelineregionenter",e),vm(a,"timelineregionexit",e))});var c=new Lj(a.g);c.g.add(b);a.ha&&c.g.add(a.ha);return c}
518
518
  function Nm(a,b,c){a.M=new Se;a.M.g=Ue;Ve(a.M,c,Math.min(.5,c/2));lm(a);a.m.o(b,"waiting",function(){return cn(a)});a.m.o(b,"stalled",function(){return cn(a)});a.m.o(b,"canplaythrough",function(){return cn(a)});a.m.o(b,"progress",function(){return cn(a)})}
519
- function cn(a){switch(a.l){case Xm:if(a.g.ended)var b=!0;else{var c=Ih(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Im:a:if(a.g.ended||Li(a.I))b=!0;else{if(a.i.presentationTimeline.R()){c=a.i.presentationTimeline.Ub();var d=Ih(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Kh(a.g.buffered,a.g.currentTime);c=a.M;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Te:Ue;c.g=d;b!=d&&lm(a)}function tm(a,b,c,d){return new Di(a,b,c,d)}
520
- function Ul(a){return new gl({getBandwidthEstimate:function(){return a.u?a.u.getBandwidthEstimate():NaN},Db:function(){return a.Db()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Tb:function(){return a.Tb()},Sb:function(){return a.Sb()},gb:function(){return a.gb()},R:function(){return a.R()}},a.h.cmcd)}
519
+ function cn(a){switch(a.l){case Xm:if(a.g.ended)var b=!0;else{var c=Ih(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Im:a:if(a.g.ended||Li(a.I))b=!0;else{if(a.i.presentationTimeline.R()){c=a.i.presentationTimeline.Ub();var d=Ih(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Kh(a.g.buffered,a.g.currentTime);c=a.M;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Te:Ue;c.g=d;b!=d&&lm(a)}function tm(a,b,c,d){return new Ci(a,b,c,d)}
520
+ function Ul(a){return new gl({getBandwidthEstimate:function(){return a.u?a.u.getBandwidthEstimate():NaN},Eb:function(){return a.Eb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Tb:function(){return a.Tb()},Sb:function(){return a.Sb()},gb:function(){return a.gb()},R:function(){return a.R()}},a.h.cmcd)}
521
521
  function Hm(a){return new gk(a.i,{Zd:function(){return a.G?a.G.Nd():0},getBandwidthEstimate:function(){return a.u.getBandwidthEstimate()},Y:a.I,pc:a.J,onError:function(b){return jm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Gi:function(){a.H&&a.H.update&&a.H.update()},Nf:function(b,c,d){a.G&&a.G.Sg();cn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(am("segmentappended",b))},Fi:function(b,c){(c=c.Hf)&&a.ha&&Pj(a.ha,c,b)},ug:function(b,c){var d=a.s;if(d.h.parseInbandPsshEnabled&&
522
522
  !d.K&&["audio","video"].includes(b)){c=new kg(nc(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Yg(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},Hi:function(b,c,d){um(a,b,c,d)},Xe:function(b,c){return a.Xe(b,c)}})}
523
523
  p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=zl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Ae("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(Ae("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
@@ -526,26 +526,26 @@ function dn(a){if(a.H){var b=hf(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.di
526
526
  e.destroy());d.h&&(d.h.j=c);a.Rf=b;a.j&&(b=a.j,(c=b.h.get(Lb))&&rk(b,c.stream,!0,0,!0))}a.u&&(a.u.configure(a.h.abr),a.h.abr.enabled?a.u.enable():a.u.disable(),Rm(a));a.M&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Ve(a.M,b,Math.min(.5,b/2)));a.i&&Fm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.D&&a.D.configure(a.h.ads);a.T&&a.T.configure(a.h.cmcd)}p.getConfiguration=function(){var a=Tl(this);Ll(a,this.h,Tl(this));return a};
527
527
  p.Hh=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Ea().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};p.Ri=function(){for(var a in this.h)delete this.h[a];Ll(this.h,Tl(this),Tl(this));dn(this)};p.Yd=function(){return this.l};p.uf=function(){return this.i?this.i.type:null};p.Yh=function(){return this.g};
528
528
  p.Sb=function(){return this.J};p.rf=function(){return this.$};p.Vd=function(){return this.D?this.D:null};p.R=function(){return this.i?this.i.presentationTimeline.R():this.g&&this.g.src?Infinity==this.g.duration:!1};p.kc=function(){return this.i?this.i.presentationTimeline.kc():!1};p.Fc=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
529
- p.Ea=function(){if(this.i){if(!this.Pb&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.Cc(),end:a.Eb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};p.li=function(){this.R()&&(this.g.currentTime=this.Ea().end)};p.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};p.drmInfo=function(){return this.s?this.s.g:null};p.kd=function(){return this.s?this.s.kd():Infinity};
529
+ p.Ea=function(){if(this.i){if(!this.Pb&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.Cc(),end:a.Fb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};p.li=function(){this.R()&&(this.g.currentTime=this.Ea().end)};p.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};p.drmInfo=function(){return this.s?this.s.g:null};p.kd=function(){return this.s?this.s.kd():Infinity};
530
530
  p.qf=function(){return this.s?this.s.qf():[]};p.Xd=function(){return this.s?this.s.Xd():{}};p.pd=function(){return this.M?this.M.g==Ue:!1};p.Tb=function(){return this.g?this.K?this.K.h:1:0};p.Ed=function(a){0==a?Ua("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.K.set(a),this.l==Im&&(this.u.playbackRateChanged(a),qk(this.j,1<Math.abs(a))))};p.Te=function(){var a=this.K.jd();this.l==Xm&&this.K.set(a);this.l==Im&&(this.K.set(a),this.u.playbackRateChanged(a),qk(this.j,!1))};
531
531
  p.gb=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,pe(e)){var f=he(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 oe(g)}):[]};
532
- p.Wb=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=ie(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Zm(this).map(function(f){return me(f)}):[]};p.Wd=function(){var a=this.Ab;this.i&&(a=this.i.imageStreams);return a.map(function(b){return je(b)})};
533
- p.Eh=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=Im&&b.l!=Xm)return g.return(null);c=b.Ab;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.F(2):D(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],Gj(d.segmentIndex,function(h){var k=gn(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.cc;for(var l=h.j-h.startTime,m=0;m<k;m++)e.push(b.wf(a,h.startTime+l*m/k))}}),D(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
532
+ p.Wb=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=ie(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Zm(this).map(function(f){return me(f)}):[]};p.Wd=function(){var a=this.Bb;this.i&&(a=this.i.imageStreams);return a.map(function(b){return je(b)})};
533
+ p.Eh=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=Im&&b.l!=Xm)return g.return(null);c=b.Bb;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.F(2):D(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],Gj(d.segmentIndex,function(h){var k=gn(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.cc;for(var l=h.j-h.startTime,m=0;m<k;m++)e.push(b.wf(a,h.startTime+l*m/k))}}),D(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
534
534
  function gn(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{cc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
535
- p.wf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B;return K(function(C){if(1==C.g){if(c.l!=Im&&c.l!=Xm)return C.return(null);d=c.Ab;c.i&&(d=c.i.imageStreams);return(e=d.find(function(E){return E.id==a}))?e.segmentIndex?C.F(2):D(C,e.createSegmentIndex(),2):C.return(null)}f=e.segmentIndex.find(b);if(null==f)return C.return(null);g=e.segmentIndex.get(f);h=gn(g.tilesLayout||e.tilesLayout);if(!h)return C.return(null);k=e.width||0;l=e.height||0;m=k/h.cc;n=l/h.rows;r=h.cc*h.rows;q=g.j-g.startTime;
535
+ p.wf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B;return K(function(C){if(1==C.g){if(c.l!=Im&&c.l!=Xm)return C.return(null);d=c.Bb;c.i&&(d=c.i.imageStreams);return(e=d.find(function(E){return E.id==a}))?e.segmentIndex?C.F(2):D(C,e.createSegmentIndex(),2):C.return(null)}f=e.segmentIndex.find(b);if(null==f)return C.return(null);g=e.segmentIndex.get(f);h=gn(g.tilesLayout||e.tilesLayout);if(!h)return C.return(null);k=e.width||0;l=e.height||0;m=k/h.cc;n=l/h.rows;r=h.cc*h.rows;q=g.j-g.startTime;
536
536
  u=g.I||q/r;v=g.startTime;z=y=0;1<r&&(x=Math.floor((b-g.startTime)/u),v=g.startTime+x*u,y=x%h.cc*m,z=Math.floor(x/h.cc)*n);A=!1;if(B=g.H)A=!0,n=B.height,y=B.positionX,z=B.positionY,m=B.width;return C.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:y,positionY:z,startTime:v,duration:u,uris:g.aa(),width:m,sprite:A})})};
537
537
  p.Yf=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&&(Ql(this.C.h,b,!1),tk(this.j,b),hn(this),this.Ha=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Zm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,ke(c)==a.id?c.mode=this.Z?"showing":"hidden":c.mode="disabled";hn(this)}};
538
538
  p.ze=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&&Ua("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&&pe(d)&&(Gm(this,d,!1,b,c),this.ya=new Ie(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),Tm(this))}else if(this.g&&this.g.audioTracks)for(b=
539
539
  Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,ke(c)==a.id){jn(this,c);break}};p.Gh=function(){return kn(this.gb())};p.ci=function(){return kn(this.Wb())};p.Fh=function(){return Array.from(ln(this.gb()))};p.bi=function(){return Array.from(ln(this.Wb()))};
540
540
  p.ye=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.G){this.ya=new Je(a,b||"",c,"","","",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.ya.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,b))c=
541
- f;c?(a=he(c),this.ze(a,!0,d)):fn(this)}else this.g&&this.g.audioTracks&&(d=re(this.gb(),a,b||"",!1)[0])&&this.ze(d)};p.Yg=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.G){if(this.Ha=a,this.xb=b||"",this.zb=c,(a=re(this.i.textStreams,this.Ha,this.xb,this.zb)[0]||null)&&a!=this.j.s&&(Ql(this.C.h,a,!1),this.h.streaming.alwaysStreamText||this.mc()))tk(this.j,a),hn(this)}else(a=re(this.Wb(),a,b||"",c)[0])&&this.Yf(a)};
541
+ f;c?(a=he(c),this.ze(a,!0,d)):fn(this)}else this.g&&this.g.audioTracks&&(d=re(this.gb(),a,b||"",!1)[0])&&this.ze(d)};p.Yg=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.G){if(this.Ha=a,this.yb=b||"",this.Ab=c,(a=re(this.i.textStreams,this.Ha,this.yb,this.Ab)[0]||null)&&a!=this.j.s&&(Ql(this.C.h,a,!1),this.h.streaming.alwaysStreamText||this.mc()))tk(this.j,a),hn(this)}else(a=re(this.Wb(),a,b||"",c)[0])&&this.Yf(a)};
542
542
  p.Wi=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.G){for(var d=null,e=t(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.ya=new Je(d.language,"",0,"","",a,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),fn(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&jn(this,b)}};
543
543
  p.mc=function(){var a=this.Z;return this.I&&this.l==Im?this.I.H.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Zm(this).some(function(b){return"showing"==b.mode}):a};p.Gg=function(){return this.g&&this.g.src&&this.g.textTracks?mn(this).map(function(a){return me(a)}):[]};
544
544
  p.tf=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=Pb(a),c=mn(this).filter(function(h){return Pb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(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};
545
545
  function Zm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function bn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function mn(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
546
- p.fg=function(a){a=!!a;if(this.Z!=a){this.Z=a;if(this.l==Im)this.I.H.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=re(this.i.textStreams,this.Ha,this.xb,this.zb),0<a.length&&(tk(this.j,a[0]),hn(this))):pk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Zm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Qm(this)}};
546
+ p.fg=function(a){a=!!a;if(this.Z!=a){this.Z=a;if(this.l==Im)this.I.H.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=re(this.i.textStreams,this.Ha,this.yb,this.Ab),0<a.length&&(tk(this.j,a[0]),hn(this))):pk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Zm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Qm(this)}};
547
547
  p.Zh=function(){if(!this.R())return null;if(this.G)var a=this.G.Nd();else{if(null==this.ea)return new Date;a=this.ea}if(this.i)return new Date(1E3*(this.i.presentationTimeline.i+a));if(this.g&&this.g.getStartDate){var b=this.g.getStartDate();return isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)}return null};
548
- p.Ig=function(){if(!this.R())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};p.Db=function(){if(this.l==Im)return this.I.Db();var a={total:[],audio:[],video:[],text:[]};this.l==Xm&&(a.total=Lh(this.g.buffered));return a};
548
+ p.Ig=function(){if(!this.R())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};p.Eb=function(){if(this.l==Im)return this.I.Eb();var a={total:[],audio:[],video:[],text:[]};this.l==Xm&&(a.total=Lh(this.g.buffered));return a};
549
549
  p.getStats=function(){if(this.l!=Im&&this.l!=Xm)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};Dm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.C;b=
550
550
  Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.G&&(this.C.M=this.G.pg(),this.C.P=this.G.qg());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.C;var d=Number(c.totalVideoFrames);b.L=Number(c.droppedVideoFrames);b.K=d;this.C.J=Number(c.corruptedVideoFrames)}this.s?(c=this.s,c=c.J?c.J:NaN):c=NaN;this.C.u=c;if(this.l==Im){if(c=this.j.j)this.C.D=(this.K?this.K.h:1)*c.bandwidth;c&&c.video&&(b=this.C,d=c.video.height||NaN,b.s=c.video.width||NaN,b.l=d);this.R()&&(c=this.Ig().valueOf()+
551
551
  1E3*a.currentTime,this.C.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.C.I=this.i.presentationTimeline.g);c=this.u.getBandwidthEstimate();this.C.C=c}this.l==Xm&&(c=this.C,b=a.videoHeight||NaN,c.s=a.videoWidth||NaN,c.l=b);var e=this.C;a=e.s;c=e.l;b=e.D;d=e.K;var f=e.L,g=e.J,h=e.P,k=e.M,l=e.C,m=e.i,n=e.m,r=e.H,q=e.j,u=Nl(e.g,"playing"),v=Nl(e.g,"paused"),y=Nl(e.g,"buffering"),z=e.u,x=e.G,A=e.I,B=Ol(e.g),C=[];e=t(e.h.g);for(var E=e.next();!E.done;E=e.next())E=E.value,C.push({timestamp:E.timestamp,
@@ -555,12 +555,12 @@ h.i&&(q=h.i.presentationTimeline.getDuration());if(Infinity==q)throw new P(1,4,4
555
555
  primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1};x=dd(z.mimeType,z.codecs);A=md(x);if(!A)throw new P(2,2,2014,d);h.i.textStreams.push(z);Sm(h);return B.return(ie(z))}})};
556
556
  p.sh=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x;return K(function(A){switch(A.g){case 1:if(c.l!=Im&&c.l!=Xm)throw new P(1,7,7004);if(b){A.F(2);break}return D(A,nn(c,a),3);case 3:b=A.h;case 2:if("text/vtt"!=b)throw new P(1,2,2017,a);d=Mb;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new P(1,4,4045);return D(A,pn(c,a,c.J,c.h.streaming.retryParameters),4);case 4:f=A.h;g=nd[b];if(!g)throw new P(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
557
557
  vttOffset:0};l=nc(f);m=h.parseMedia(l,k,a);n=[];r={};q=t(m);for(u=q.next();!u.done;r={Rc:r.Rc},u=q.next())v=u.value,r.Rc=Eb([a],[v.payload])[0],y=new Fh(v.startTime,v.endTime,function(B){return function(){return[B.Rc]}}(r),0,null,null,0,0,Infinity),r.Rc.includes("#xywh")&&(z=r.Rc.split("#xywh=")[1].split(","),4===z.length&&y.fh({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],10)})),n.push(y);x={id:c.Vf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
558
- segmentIndex:new Fj(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.dd,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1};c.l==Xm?c.Ab.push(x):c.i.imageStreams.push(x);Sm(c);return A.return(je(x))}})};
558
+ segmentIndex:new Fj(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.dd,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1};c.l==Xm?c.Bb.push(x):c.i.imageStreams.push(x);Sm(c);return A.return(je(x))}})};
559
559
  p.qh=function(a,b,c){var d=this,e,f,g,h;return K(function(k){switch(k.g){case 1:if(d.l!=Im&&d.l!=Xm)throw new P(1,7,7004);if(c){k.F(2);break}return D(k,nn(d,a),3);case 3:c=k.h;case 2:return e=[],d.D&&(e=d.D.getCuePoints()),D(k,on(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Gg();h=g.find(function(l){return l.language==b});if(!h){k.F(5);break}return D(k,new Promise(function(l,m){d.m.ka(f,"load",l);d.m.ka(f,"error",function(){m(new P(1,2,2015))})}),6);case 6:return Sm(d),k.return(h);case 5:throw new P(1,
560
560
  2,2012);}})};function nn(a,b){var c;return K(function(d){switch(d.g){case 1:return ta(d,2),D(d,Lk(b,a.J,a.h.streaming.retryParameters),4);case 4:c=d.h;va(d,3);break;case 2:wa(d);case 3:if(c)return d.return(c);throw new P(1,2,2011,b);}})}
561
561
  function on(a,b,c,d,e,f,g){var h,k,l,m;return K(function(n){if(1==n.g)return"text/vtt"!=e||g.length?D(n,pn(a,b,a.J,a.h.streaming.retryParameters),3):n.F(2);2!=n.g&&(h=n.h,k=qn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Gi(l),e="text/vtt");m=document.createElement("track");var r=a.T,q=b;try{if(r.g.enabled){var u=il(r);u.ot=ul;u.su=!0;var v=ll(u);var y=ml(q,v)}else y=q}catch(z){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",z),y=q}m.src=y;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
562
562
  a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n.return(m)})}function pn(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){e=wf;f=qf([b],d);f.method="GET";var k=a.T;try{k.g.enabled&&nl(k,f,{ot:ul,su:!0})}catch(l){Va("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return D(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
563
- function qn(a,b,c,d){var e=nd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=nc(b),b=c.parseMedia(b,a,null),fl(b,d);throw new P(2,2,2014,c);}p.cg=function(a,b){this.Sf.width=a;this.Sf.height=b};p.Uf=function(a){if(this.l==Im){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.u)b=!1;else{for(var c=t(b.h.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.nd||d.Pa||d.wb||(d.nd=!1,ok(b,d,a));b=!0}}else b=!1;return b};
563
+ function qn(a,b,c,d){var e=nd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=nc(b),b=c.parseMedia(b,a,null),fl(b,d);throw new P(2,2,2014,c);}p.cg=function(a,b){this.Sf.width=a;this.Sf.height=b};p.Uf=function(a){if(this.l==Im){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.u)b=!1;else{for(var c=t(b.h.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.nd||d.Pa||d.xb||(d.nd=!1,ok(b,d,a));b=!0}}else b=!1;return b};
564
564
  p.Vh=function(){Ua("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};p.Wh=function(){return this.qe};
565
565
  function Tl(a){var b=Jl();b.streaming.failureCallback=function(c){if(a.R()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Uf(d))}};b.textDisplayFactory=function(){return a.Td?new Xk(a.g,a.Td):HTMLMediaElement.prototype.addTextTrack?new Qk(a.g,"Shaka Player TextTrack"):new Tk};return b}p.gg=function(a){this.Td=a};
566
566
  function xm(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new Jj,l=e.closedCaptions.get(g);h={id:a.Vf++,originalId:g,groupId:null,
@@ -579,7 +579,7 @@ function Yl(a){function b(g){var h="";g.video&&(h+="video:"+g.video.id);g.audio&
579
579
  function fn(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!0:e;var f=Km(a);f&&Gm(a,f,e,b,c,d)}function Gm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&sk(a.j,b,d,e,!0);else{var h=a.C.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));sk(a.j,b,d,e,f,c);d=null;g&&(d=he(g));b=he(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.L&&vi(a.L,b,a.uf()),c=am("adaptation",c),tn(a,c)):un(a,d,b)}}
580
580
  function jn(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=oe(c);b=oe(b);un(a,c,b)}function Pm(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=Pb(a.h.preferredTextLanguage);c=Pb(c.language);if(2==a.h.autoShowText)return Ob(c,d);if(3==a.h.autoShowText)return a=Pb(b.language),Ob(c,d)&&!Ob(a,c);Ua("Invalid autoShowText setting!");return!1}function Sm(a){var b=am("trackschanged");tn(a,b)}
581
581
  function un(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.L&&vi(a.L,c,a.uf());c=am("variantchanged",b);tn(a,c)}function hn(a){var b=am("textchanged");tn(a,b)}function Qm(a){var b=am("texttrackvisibility");tn(a,b)}function Rm(a){a.h.abr.enabled||Xl(a);var b=(new Map).set("newStatus",a.h.abr.enabled);tn(a,am("abrstatuschanged",b))}function Xl(a,b){b=void 0===b?!0:b;if(a.l==Im){a.be.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&Tm(a)}}
582
- p.Xe=function(a,b){if(!this.h.abr.enabled||this.l===bm||!navigator.onLine)return!1;if(this.i.variants.some(function(f){return(f=f[a.type])&&f.id!==a.id?"audio"==a.type?a.language===f.language:!0:!1})){for(var c=t(this.i.variants),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[a.type];e&&e.id===a.id&&(d.disabledUntilTime=Date.now()/1E3+b)}this.be.va(1);b=this.Db().video.reduce(function(f,g){return f+g.end-g.start},0);fn(this,!0,b,!0,!1);return!0}return!1};
582
+ p.Xe=function(a,b){if(!this.h.abr.enabled||this.l===bm||!navigator.onLine)return!1;if(this.i.variants.some(function(f){return(f=f[a.type])&&f.id!==a.id?"audio"==a.type?a.language===f.language:!0:!1})){for(var c=t(this.i.variants),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[a.type];e&&e.id===a.id&&(d.disabledUntilTime=Date.now()/1E3+b)}this.be.wa(1);b=this.Eb().video.reduce(function(f,g){return f+g.end-g.start},0);fn(this,!0,b,!0,!1);return!0}return!1};
583
583
  function jm(a,b){if(a.l!=bm){2===b.severity&&Xl(a,!1);var c=am("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function vm(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(am(b,c))}
584
584
  function im(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new P(2,3,3016,b,c,a.g.error.message)}
585
585
  function Bm(a,b){if(a.j){var c=am("keystatuschanged");a.dispatchEvent(c);var d=Object.keys(b);c=1==d.length&&"00"==d[0];var e=!1;if(d.length){d=t(a.i.variants);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=t(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[c?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&
@@ -588,21 +588,21 @@ function sn(a,b){a=a.s?a.s.Xd():{};var c=Object.keys(a);c=c.length&&"00"==c[0];v
588
588
  missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new P(2,4,4012,a);}function tn(a,b){K(function(c){if(1==c.g)return D(c,Promise.resolve(),2);a.l!=bm&&a.dispatchEvent(b);F(c)})}function ln(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Pb(c.language)):b.add("und");return b}
589
589
  function kn(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Pb(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=t(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=null;c.has(l)&&c.get(l).has(m)&&(n=c.get(l).get(m));
590
590
  h.push({language:l,role:m,label:n})}});return h}M("shaka.Player",V);V.prototype.setVideoContainer=V.prototype.gg;V.prototype.getManifestParserFactory=V.prototype.Wh;V.prototype.getManifest=V.prototype.Vh;V.prototype.retryStreaming=V.prototype.Uf;V.prototype.setMaxHardwareResolution=V.prototype.cg;V.prototype.addChaptersTrack=V.prototype.qh;V.prototype.addThumbnailsTrack=V.prototype.sh;V.prototype.addTextTrackAsync=V.prototype.rh;V.prototype.getStats=V.prototype.getStats;
591
- V.prototype.getBufferedInfo=V.prototype.Db;V.prototype.getPresentationStartTimeAsDate=V.prototype.Ig;V.prototype.getPlayheadTimeAsDate=V.prototype.Zh;V.prototype.setTextTrackVisibility=V.prototype.fg;V.prototype.getChapters=V.prototype.tf;V.prototype.getChaptersTracks=V.prototype.Gg;V.prototype.isTextTrackVisible=V.prototype.mc;V.prototype.selectVariantsByLabel=V.prototype.Wi;V.prototype.selectTextLanguage=V.prototype.Yg;V.prototype.selectAudioLanguage=V.prototype.ye;
591
+ V.prototype.getBufferedInfo=V.prototype.Eb;V.prototype.getPresentationStartTimeAsDate=V.prototype.Ig;V.prototype.getPlayheadTimeAsDate=V.prototype.Zh;V.prototype.setTextTrackVisibility=V.prototype.fg;V.prototype.getChapters=V.prototype.tf;V.prototype.getChaptersTracks=V.prototype.Gg;V.prototype.isTextTrackVisible=V.prototype.mc;V.prototype.selectVariantsByLabel=V.prototype.Wi;V.prototype.selectTextLanguage=V.prototype.Yg;V.prototype.selectAudioLanguage=V.prototype.ye;
592
592
  V.prototype.getTextLanguages=V.prototype.bi;V.prototype.getAudioLanguages=V.prototype.Fh;V.prototype.getTextLanguagesAndRoles=V.prototype.ci;V.prototype.getAudioLanguagesAndRoles=V.prototype.Gh;V.prototype.selectVariantTrack=V.prototype.ze;V.prototype.selectTextTrack=V.prototype.Yf;V.prototype.getThumbnails=V.prototype.wf;V.prototype.getAllThumbnails=V.prototype.Eh;V.prototype.getImageTracks=V.prototype.Wd;V.prototype.getTextTracks=V.prototype.Wb;V.prototype.getVariantTracks=V.prototype.gb;
593
593
  V.prototype.cancelTrickPlay=V.prototype.Te;V.prototype.trickPlay=V.prototype.Ed;V.prototype.getPlaybackRate=V.prototype.Tb;V.prototype.isBuffering=V.prototype.pd;V.prototype.getKeyStatuses=V.prototype.Xd;V.prototype.getActiveSessionsMetadata=V.prototype.qf;V.prototype.getExpiration=V.prototype.kd;V.prototype.drmInfo=V.prototype.drmInfo;V.prototype.keySystem=V.prototype.keySystem;V.prototype.goToLive=V.prototype.li;V.prototype.seekRange=V.prototype.Ea;V.prototype.isAudioOnly=V.prototype.Fc;
594
594
  V.prototype.isInProgress=V.prototype.kc;V.prototype.isLive=V.prototype.R;V.prototype.getAdManager=V.prototype.Vd;V.prototype.getAssetUri=V.prototype.rf;V.prototype.getNetworkingEngine=V.prototype.Sb;V.prototype.getMediaElement=V.prototype.Yh;V.prototype.getManifestType=V.prototype.uf;V.prototype.getLoadMode=V.prototype.Yd;V.prototype.resetConfiguration=V.prototype.Ri;V.prototype.getBufferFullness=V.prototype.Hh;V.prototype.getConfiguration=V.prototype.getConfiguration;V.prototype.configure=V.prototype.configure;
595
595
  V.prototype.releaseAllMutexes=V.prototype.Ni;V.prototype.load=V.prototype.load;V.prototype.updateStartTime=V.prototype.ej;V.prototype.unload=V.prototype.Nc;V.prototype.detach=V.prototype.detach;V.prototype.attachCanvas=V.prototype.sg;V.prototype.attach=V.prototype.wc;
596
596
  V.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return K(function(h){if(1==h.g)return b={},a?D(h,qh(),3):h.F(2);2!=h.g&&(b=h.h);var k={};if(yd())for(var l in yh)k[l]=!0;l=t(["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]=yd()?!!yh[m]:zd(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(w(ed));
597
- k={};l=t(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=yd()?md(m)?!0:fc(m)||(Yc(m)?!0:!1):zd(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=wn;for(g in f)e[g]=f[g]();return h.return(e)})};V.isBrowserSupported=cm;V.setAdManagerFactory=function(a){Wl=a};V.registerSupportPlugin=function(a,b){wn[a]=b};V.prototype.destroy=V.prototype.destroy;var bm=0,Sl=1,Im=2,Xm=3;V.LoadMode={DESTROYED:bm,NOT_LOADED:Sl,MEDIA_SOURCE:Im,SRC_EQUALS:Xm};V.version="v4.6.6";var xn=["4","6"];
598
- Be=new function(a){this.g=a;this.i=Ce;this.h=De}(new ze(Number(xn[0]),Number(xn[1])));var vn=["output-restricted","internal-error"],wn={},Wl=null;function yn(){this.h=[];this.j=this.i=this.g=0};function zn(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.l=this.h.getVolume();this.j=new Af;this.j.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=zn.prototype;p.getDuration=function(){return this.g.getDuration()};p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.h.getRemainingTime()};p.isPaused=function(){return this.i};
597
+ k={};l=t(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=yd()?md(m)?!0:fc(m)||(Yc(m)?!0:!1):zd(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=wn;for(g in f)e[g]=f[g]();return h.return(e)})};V.isBrowserSupported=cm;V.setAdManagerFactory=function(a){Wl=a};V.registerSupportPlugin=function(a,b){wn[a]=b};V.prototype.destroy=V.prototype.destroy;var bm=0,Sl=1,Im=2,Xm=3;V.LoadMode={DESTROYED:bm,NOT_LOADED:Sl,MEDIA_SOURCE:Im,SRC_EQUALS:Xm};V.version="v4.6.7";var xn=["4","6"];
598
+ Be=new function(a){this.g=a;this.i=Ce;this.h=De}(new ze(Number(xn[0]),Number(xn[1])));var vn=["output-restricted","internal-error"],wn={},Wl=null;function yn(){this.h=[];this.j=this.i=this.g=0};function zn(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new Af;this.l.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=zn.prototype;p.getDuration=function(){return this.g.getDuration()};p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.h.getRemainingTime()};p.isPaused=function(){return this.i};
599
599
  p.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.h.getAdSkippableState()};p.skip=function(){return this.h.skip()};p.pause=function(){return this.h.pause()};p.play=function(){return this.h.resume()};p.getVolume=function(){return this.h.getVolume()};p.setVolume=function(a){return this.h.setVolume(a)};p.isMuted=function(){return 0==this.h.getVolume()};
600
- p.isLinear=function(){return this.g.isLinear()};p.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};p.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};
600
+ p.isLinear=function(){return this.g.isLinear()};p.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};p.setMuted=function(a){a?(this.j=this.getVolume(),this.setVolume(0)):this.setVolume(this.j)};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};
601
601
  p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};p.getAdId=function(){return this.g.getAdId()};p.getCreativeAdId=function(){return this.g.getCreativeAdId()};
602
602
  p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return this.g.getMediaUrl()};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.g=null};M("shaka.ads.ClientSideAd",zn);zn.prototype.release=zn.prototype.release;zn.prototype.getPodIndex=zn.prototype.getPodIndex;zn.prototype.getTimeOffset=zn.prototype.getTimeOffset;
603
603
  zn.prototype.getMediaUrl=zn.prototype.getMediaUrl;zn.prototype.getAdvertiserName=zn.prototype.getAdvertiserName;zn.prototype.getCreativeAdId=zn.prototype.getCreativeAdId;zn.prototype.getAdId=zn.prototype.getAdId;zn.prototype.getVastMediaWidth=zn.prototype.getVastMediaWidth;zn.prototype.getVastMediaHeight=zn.prototype.getVastMediaHeight;zn.prototype.getVastMediaBitrate=zn.prototype.getVastMediaBitrate;zn.prototype.getDescription=zn.prototype.getDescription;zn.prototype.getTitle=zn.prototype.getTitle;
604
604
  zn.prototype.getPositionInSequence=zn.prototype.getPositionInSequence;zn.prototype.getSequenceLength=zn.prototype.getSequenceLength;zn.prototype.setMuted=zn.prototype.setMuted;zn.prototype.resize=zn.prototype.resize;zn.prototype.isLinear=zn.prototype.isLinear;zn.prototype.isMuted=zn.prototype.isMuted;zn.prototype.setVolume=zn.prototype.setVolume;zn.prototype.getVolume=zn.prototype.getVolume;zn.prototype.play=zn.prototype.play;zn.prototype.pause=zn.prototype.pause;zn.prototype.skip=zn.prototype.skip;
605
- zn.prototype.canSkipNow=zn.prototype.canSkipNow;zn.prototype.getTimeUntilSkippable=zn.prototype.getTimeUntilSkippable;zn.prototype.isSkippable=zn.prototype.isSkippable;zn.prototype.isPaused=zn.prototype.isPaused;zn.prototype.getRemainingTime=zn.prototype.getRemainingTime;zn.prototype.getMinSuggestedDuration=zn.prototype.getMinSuggestedDuration;zn.prototype.getDuration=zn.prototype.getDuration;function An(a,b,c,d,e){var f=this;this.s=a;this.i=b;this.D=!1;this.u=this.G=null;this.H=NaN;this.m=e;this.j=null;this.h=new Af;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.6.6");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
605
+ zn.prototype.canSkipNow=zn.prototype.canSkipNow;zn.prototype.getTimeUntilSkippable=zn.prototype.getTimeUntilSkippable;zn.prototype.isSkippable=zn.prototype.isSkippable;zn.prototype.isPaused=zn.prototype.isPaused;zn.prototype.getRemainingTime=zn.prototype.getRemainingTime;zn.prototype.getMinSuggestedDuration=zn.prototype.getMinSuggestedDuration;zn.prototype.getDuration=zn.prototype.getDuration;function An(a,b,c,d,e){var f=this;this.s=a;this.i=b;this.D=!1;this.u=this.G=null;this.H=NaN;this.m=e;this.j=null;this.h=new Af;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.6.7");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
606
606
  function(g){Bn(f,g)});this.h.o(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Cn(f,g)});this.h.o(this.i,"ended",function(){f.l.contentComplete()});this.h.ka(this.i,"play",function(){f.D=!0})}An.prototype.configure=function(a){this.G=a};An.prototype.stop=function(){this.g&&this.g.stop();this.s&&Wk(this.s)};An.prototype.release=function(){this.stop();this.u&&this.u.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};
607
607
  function Cn(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new O("ad-error",b));Dn(a,null);a.m(new O("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
608
608
  function Bn(a,b){a.m(new O("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.H)));if(a.G.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.o(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.o(a.i,"volumechange",function(){a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume)})}else a.g=b.getAdsManager(a.i,a.C);a.m(new O("ima-ad-manager-loaded",(new Map).set("imaAdManager",
@@ -613,7 +613,7 @@ function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLET
613
613
  a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.o(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.o(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});
614
614
  a.h.o(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.o(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.o(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.o(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.o(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.o(a.g,
615
615
  google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}
616
- function Gn(a,b){var c=b.getAd();c?(a.j=new zn(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.m(new O("ad-started",b)),a.j.isLinear()&&(a.s.setAttribute("ad-active","true"),a.i.pause(),a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))):Ua("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
616
+ function Gn(a,b){var c=b.getAd();c?(a.j=new zn(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.m(new O("ad-started",b)),a.j.isLinear()&&(a.s.setAttribute("ad-active","true"),a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):Ua("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
617
617
  function Dn(a,b){a.m(new O("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.s.removeAttribute("ad-active"),a.i.ended||a.i.play())};function Hn(a,b,c,d,e){this.h=a;this.g=e;this.i=b;this.j=c;this.l=d}p=Hn.prototype;p.getDuration=function(){return this.h.durationInSeconds};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime};p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return this.h.skipOffset?!0:!1};
618
618
  p.getTimeUntilSkippable=function(){if(!this.h.skipOffset)return this.getRemainingTime();var a=this.getRemainingTime()-this.h.skipOffset;return Math.max(a,0)};p.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};p.skip=function(){this.g.currentTime+=this.getRemainingTime()};p.pause=function(){return this.g.pause()};p.play=function(){return this.g.play()};p.getVolume=function(){return this.g.volume};p.setVolume=function(a){this.g.volume=a};p.isMuted=function(){return this.g.muted};
619
619
  p.isLinear=function(){return this.l};p.resize=function(){};p.setMuted=function(a){this.g.muted=a};p.getSequenceLength=function(){return this.j?this.j:1};p.getPositionInSequence=function(){return this.i?this.i:1};p.getTitle=function(){return this.h.adTitle};p.getDescription=function(){return""};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return 0};p.getVastMediaWidth=function(){return 0};p.getAdId=function(){return this.h.adId};p.getCreativeAdId=function(){return this.h.creativeId};
@@ -652,8 +652,8 @@ function Vn(a,b){a.i(new O("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-
652
652
  p.release=function(){this.h&&(this.h.release(),this.h=null);this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);cb.prototype.release.call(this)};p.onAssetUnload=function(){this.h&&this.h.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new O("ad-stopped"));this.j=new yn};p.requestClientSideAds=function(a){if(!this.h)throw new P(1,10,10001);var b=this.h;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.H=Date.now()/1E3;b.l.requestAds(a)};
653
653
  p.updateClientSideAdsRenderingSettings=function(a){if(!this.h)throw new P(1,10,10001);var b=this.h;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};p.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new In(a,b,c,function(e){return Wn(d,e)})};p.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new P(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new P(1,10,10004)):(d.l=new $e,Ln(d,a,b),d.I=c||"",d.U=Date.now()/1E3,a=d.l);return a};
654
654
  p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new P(2,10,10002);this.g&&this.g.release();this.g=new Un(a,b,this.m,function(d){return Wn(c,d)});this.g.configure(this.l)};
655
- p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('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.6.6";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
656
- (c.I=!0),c.j=new $e,c.g.requestStream(a),c.D=b||"",c.H=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ua('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.6.6";this.g.g.replaceAdTagParameters(a)};
655
+ p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('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.6.7";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
656
+ (c.I=!0),c.j=new $e,c.g.requestStream(a),c.D=b||"",c.H=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ua('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.6.7";this.g.g.replaceAdTagParameters(a)};
657
657
  p.getServerSideCuePoints=function(){Ae("AdManager","Please use getCuePoints function.");return this.getCuePoints()};p.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};p.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};p.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
658
658
  p.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};p.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};
659
659
  function Wn(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)}M("shaka.ads.AdManager",W);W.prototype.onCueMetadataChange=W.prototype.onCueMetadataChange;W.prototype.onHlsTimedMetadata=W.prototype.onHlsTimedMetadata;W.prototype.onDashTimedMetadata=W.prototype.onDashTimedMetadata;W.prototype.onManifestUpdated=W.prototype.onManifestUpdated;W.prototype.getStats=W.prototype.getStats;
@@ -714,28 +714,28 @@ var op=0,qp=1,sp=2,up=3,pp=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[9
714
714
  [35,"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),vp=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
715
715
  [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]),lp=new Map([[1,10],[2,15.33],[3,20.66],[4,26],[5,31.33],[6,36.66],[7,42],[8,47.33],[9,52.66],[10,58],[11,63.33],[12,68.66],[13,74],[14,79.33],[15,84.66]]);function xp(a,b){this.h=yp;this.s=new ip(a,b);this.i=new ip(a,b);this.g=this.j=new ip(a,b);this.l=0;this.m=null}function zp(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Ap&&a.h!==Bp&&(e=kp(d,a.l,c),c=a.i,c.g=0<c.h?c.h:0,mp(c,0,15),c=a.j,c.g=0<c.h?c.h:0,mp(c,0,15),d.g=15);a.h=Ap;d.h=b;return e}function Cp(a){a.h=Dp;a.g=a.j;a.g.h=0}function Ep(a){Va("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=Bp}
716
716
  var yp=0,Dp=1,Ap=3,Bp=4,Fp="black green blue cyan red yellow magenta black".split(" "),Gp="white green blue cyan red yellow magenta white_italics".split(" ");function Hp(){this.l=!1;this.D=this.H=0;this.G=Ip;this.i=[];this.g=this.h=this.j=0;this.C=this.s=!1;this.u="white";this.m="black";Jp(this)}function Jp(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Kp())}function Kp(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Lp(a,b){Mp(a)&&(a.i[a.h][a.g]=new hp(b,a.C,a.s,a.m,a.u),a.g++)}function Mp(a){var b=a.g<a.D&&0<=a.g;return a.h<a.H&&0<=a.h&&b}Hp.prototype.isVisible=function(){return this.l};
717
- function Np(a,b,c){var d=new Ac(a.j,b,"");d.textAlign=a.G===Op?"left":a.G===Pp?"right":Dc;if(c=ep(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Op=0,Pp=1,Ip=2;function Qp(){this.i=[];this.h=null;this.g=0}function Rp(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new Sp(a.h)),a.h=null,a.g=0))}function Sp(a){this.g=0;this.h=a}Sp.prototype.sa=function(){return this.g<this.h.length};Sp.prototype.Ca=function(){return this.g};function Tp(a){if(!a.sa())throw new P(2,2,3E3);return a.h[a.g++]}Sp.prototype.skip=function(a){if(this.g+a>this.h.length)throw new P(2,2,3E3);this.g+=a};function Up(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
717
+ function Np(a,b,c){var d=new Ac(a.j,b,"");d.textAlign=a.G===Op?"left":a.G===Pp?"right":Dc;if(c=ep(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Op=0,Pp=1,Ip=2;function Qp(){this.i=[];this.h=null;this.g=0}function Rp(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new Sp(a.h)),a.h=null,a.g=0))}function Sp(a){this.g=0;this.h=a}Sp.prototype.ua=function(){return this.g<this.h.length};Sp.prototype.Ca=function(){return this.g};function Tp(a){if(!a.ua())throw new P(2,2,3E3);return a.h[a.g++]}Sp.prototype.skip=function(a){if(this.g+a>this.h.length)throw new P(2,2,3E3);this.g+=a};function Up(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
718
718
  function Vp(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=Tp(b).value;b=null;c=t(Wp(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Np(e,d,a.i)),Jp(e);return b}if(137===c)for(b=Tp(b).value,b=t(Wp(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=Tp(b).value;b=null;c=t(Wp(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Np(e,d,a.i)),e.l=!1;return b}if(139===c){c=Tp(b).value;
719
719
  b=null;c=t(Wp(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Np(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=Tp(b).value,Xp(a,b,d);if(143===c)return d=Xp(a,255,d),Yp(a),d;if(144===c)b.skip(1),d=Tp(b).value,a.g&&(a.g.s=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=Tp(b).value,c=Tp(b).value,b.skip(1),a.g&&(b=Zp((c&48)>>4,(c&12)>>2,c&3),a.g.u=Zp((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=Tp(b).value,b=Tp(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
720
720
  b.skip(1),d=Tp(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new Hp;f.j=d;a.h[c]=f}d=Tp(b).value;Tp(b);Tp(b);f=Tp(b).value;var g=Tp(b).value;b=Tp(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.s=!1,b.u="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.H=(f&15)+1;b.D=(g&63)+1;a.g=a.h[c]}}}return null}function Wp(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
721
721
  function Xp(a,b,c){var d=null;b=t(Wp(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=Np(f,c,a.i));a.h[e]=null}return d}function Yp(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function Zp(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return $p[a<<2|b<<1|c]}
722
722
  var aq=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),$p="black blue green cyan red magenta yellow white".split(" ");function bq(){this.h=[];this.g=[];this.i=new Qp;this.l=0;this.m=new Map([["CC1",new xp(0,0)],["CC2",new xp(0,1)],["CC3",new xp(1,0)],["CC4",new xp(1,1)]]);this.u=this.s=0;this.j=new Map;this.D=!0;this.C=new Set;cq(this)}bq.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;cq(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())Yp(b.value)};
723
723
  function cq(a){a.s=0;a.u=0;for(var b=t(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=yp,c.g=c.j,c.m=null,jp(c.i),jp(c.j),jp(c.s);a.D=!0}
724
- bq.prototype.extract=function(a,b){if(this.D){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.D=!1}a=new Qf(a,0);if(!(8>a.getLength())&&181===a.na()&&49===a.Qa()&&1195456820===a.N()&&3===a.na()&&(c=a.na(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.na(),f=(e&4)>>2,g=a.na(),h=a.na();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,eb:g,Bb:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}};
724
+ bq.prototype.extract=function(a,b){if(this.D){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.D=!1}a=new Qf(a,0);if(!(8>a.getLength())&&181===a.na()&&49===a.Qa()&&1195456820===a.N()&&3===a.na()&&(c=a.na(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.na(),f=(e&4)>>2,g=a.na(),h=a.na();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,eb:g,Cb:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}};
725
725
  bq.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=t(this.h),d=c.next();!d.done;d=c.next())(d=dq(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())Rp(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=eq(this,d.value),b.push.apply(b,w(d));this.i.i=[];this.h=[];this.g=[];return b};
726
- function dq(a,b){var c=b.type;if(16===(b.eb&112)){var d=b.eb>>3&1;0===c?a.s=d:a.u=d}d="CC"+(c<<1|(c?a.u:a.s)+1);c=a.m.get(d);if(255===b.eb&&255===b.Bb||!b.eb&&!b.Bb||!fq(b.eb)||!fq(b.Bb))return 45<=++a.l&&cq(a),null;a.l=0;b.eb&=127;b.Bb&=127;if(!b.eb&&!b.Bb)return null;a.C.add(d);a=null;if(16===(b.eb&112))a:{d=b.eb;a=b.Bb;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var e=(a&30)>>1;d="white";var f=!1;7>e?d=Gp[e]:
726
+ function dq(a,b){var c=b.type;if(16===(b.eb&112)){var d=b.eb>>3&1;0===c?a.s=d:a.u=d}d="CC"+(c<<1|(c?a.u:a.s)+1);c=a.m.get(d);if(255===b.eb&&255===b.Cb||!b.eb&&!b.Cb||!fq(b.eb)||!fq(b.Cb))return 45<=++a.l&&cq(a),null;a.l=0;b.eb&=127;b.Cb&=127;if(!b.eb&&!b.Cb)return null;a.C.add(d);a=null;if(16===(b.eb&112))a:{d=b.eb;a=b.Cb;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var e=(a&30)>>1;d="white";var f=!1;7>e?d=Gp[e]:
727
727
  7===e&&(f=!0);a=1===(a&1);c.h!==Bp&&(e=c.g,c.h===Ap&&b!==e.g&&(c=1+b-e.h,wp(e,c,1+e.g-e.h,e.h),mp(e,0,c-1),mp(e,b+1,15-b)),e.g=b,e.m=a,e.j=f,e.l=d,e.s="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",np(c.g,op,32),d=!1,b=Gp[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Fp[(a&14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))np(c.g,qp,a);else if(18===
728
- (d&246)&&32===(a&224))np(c.g,d&1?up:sp,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.Bb){case 32:Cp(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=zp(c,2,a);break;case 38:d=zp(c,3,a);break;case 39:d=zp(c,4,a);break;case 40:np(c.g,op,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:jp(c.s);Ep(c);break;case 43:Ep(c);break;case 44:b=c.i;d=null;c.h!==Bp&&(d=kp(b,c.l,a));mp(b,0,15);break;case 45:b=c.g;c.h!==Ap?d=null:(d=kp(b,c.l,a),f=b.g-b.h+1,wp(b,f-1,f,b.h),mp(b,0,
729
- f-1),mp(b,b.g,15-b.g),c.l=a);break;case 46:mp(c.j,0,15);break;case 47:b=null,c.h!==Bp&&(b=kp(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Cp(c),c.l=a,d=b}a=d;break a}a=null}else d=b.Bb,np(c.g,op,b.eb),np(c.g,op,d);return a}
730
- function eq(a,b){var c=[];try{for(;b.sa();){var d=Tp(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Tp(b).value&63);if(0!=e){a.C.add("svc"+e);a.j.has(e)||a.j.set(e,new Up(e));for(var g=a.j.get(e),h=b.Ca();b.Ca()-h<f;){e=b;var k=Tp(e),l=k.value,m=k.pts;if(16===l){var n=Tp(e);l=l<<16|n.value}if(0<=l&&31>=l){var r=m;if(g.g){var q=g.g;e=null;switch(l){case 8:!Mp(q)||0>=q.g&&0>=q.h||(0>=q.g?(q.g=q.D-1,q.h--):q.g--,q.i[q.h][q.g]=null);break;case 13:q.isVisible()&&(e=Np(q,r,g.i));if(q.h+1>=q.H){r=q;for(var u=
728
+ (d&246)&&32===(a&224))np(c.g,d&1?up:sp,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.Cb){case 32:Cp(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=zp(c,2,a);break;case 38:d=zp(c,3,a);break;case 39:d=zp(c,4,a);break;case 40:np(c.g,op,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:jp(c.s);Ep(c);break;case 43:Ep(c);break;case 44:b=c.i;d=null;c.h!==Bp&&(d=kp(b,c.l,a));mp(b,0,15);break;case 45:b=c.g;c.h!==Ap?d=null:(d=kp(b,c.l,a),f=b.g-b.h+1,wp(b,f-1,f,b.h),mp(b,0,
729
+ f-1),mp(b,b.g,15-b.g),c.l=a);break;case 46:mp(c.j,0,15);break;case 47:b=null,c.h!==Bp&&(b=kp(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Cp(c),c.l=a,d=b}a=d;break a}a=null}else d=b.Cb,np(c.g,op,b.eb),np(c.g,op,d);return a}
730
+ function eq(a,b){var c=[];try{for(;b.ua();){var d=Tp(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Tp(b).value&63);if(0!=e){a.C.add("svc"+e);a.j.has(e)||a.j.set(e,new Up(e));for(var g=a.j.get(e),h=b.Ca();b.Ca()-h<f;){e=b;var k=Tp(e),l=k.value,m=k.pts;if(16===l){var n=Tp(e);l=l<<16|n.value}if(0<=l&&31>=l){var r=m;if(g.g){var q=g.g;e=null;switch(l){case 8:!Mp(q)||0>=q.g&&0>=q.h||(0>=q.g?(q.g=q.D-1,q.h--):q.g--,q.i[q.h][q.g]=null);break;case 13:q.isVisible()&&(e=Np(q,r,g.i));if(q.h+1>=q.H){r=q;for(var u=
731
731
  0,v=1;16>v;v++,u++)r.i[u]=r.i[v];for(v=0;1>v;v++,u++)r.i[u]=Kp()}else q.h++;q.g=0;break;case 14:q.isVisible()&&(e=Np(q,r,g.i));q.i[q.h]=Kp();q.g=0;break;case 12:q.isVisible()&&(e=Np(q,r,g.i)),Jp(q),r=q,r.h=0,r.g=0}var y=e}else y=null}else if(128<=l&&159>=l)y=Vp(g,e,l,m);else{if(4096<=l&&4127>=l)r=l&255,8<=r&&15>=r?e.skip(1):16<=r&&23>=r?e.skip(2):24<=r&&31>=r&&e.skip(3);else if(4224<=l&&4255>=l)r=l&255,128<=r&&135>=r?e.skip(4):136<=r&&143>=r&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Lp(g.g,
732
732
  "\u266a"):Lp(g.g,String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Lp(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(aq.has(e)){var z=aq.get(e);Lp(g.g,z)}else Lp(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Lp(g.g,"_"):Lp(g.g,"[CC]"));y=null}(e=y)&&c.push(e)}}}}catch(x){if(x instanceof P&&3E3===x.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw x;}return c}function fq(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}
733
733
  bq.prototype.getStreams=function(){return Array.from(this.C)};M("shaka.cea.CeaDecoder",bq);vc=function(){return new bq};function gq(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(w(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function hq(){this.j=new Map;this.i=this.h=0;this.g=iq}
734
734
  hq.prototype.init=function(a){function b(f){f=f.name;f in jq&&(c.g=jq[f])}var c=this,d=[],e=[];(new Tf).box("moov",Yf).box("mvex",Yf).V("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.N();g=g.N();c.h=f;c.i=g}).box("trak",Yf).V("tkhd",function(f){f=Zh(f.reader,f.version);d.push(f.trackId)}).box("mdia",Yf).V("mdhd",function(f){f=Xh(f.reader,f.version);e.push(f.timescale)}).box("minf",Yf).box("stbl",Yf).V("stsd",$f).box("avc1",b).box("avc3",b).box("hev1",b).box("hvc1",b).box("dvh1",b).box("dvhe",
735
- b).box("encv",ag).box("sinf",Yf).box("frma",function(f){f=bi(f.reader).ra;f in jq&&(c.g=jq[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new P(2,2,2010);this.g==iq&&Ua("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
735
+ b).box("encv",ag).box("sinf",Yf).box("frma",function(f){f=bi(f.reader).sa;f in jq&&(c.g=jq[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new P(2,2,2010);this.g==iq&&Ua("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
736
736
  hq.prototype.parse=function(a){var b=this;if(this.g==iq)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Tf).box("moof",function(l){f=l.start;g=[];Yf(l)}).box("traf",Yf).V("trun",function(l){l=Yh(l.reader,l.version,l.flags);g.push(l)}).V("tfhd",function(l){l=Uh(l.reader,l.flags);d=l.Cg||b.h;e=l.Dh||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).V("tfdt",function(l){h=Wh(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Ua("Unable to find base media decode time for CEA captions!"),
737
737
  new P(2,2,2010);kq(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c};
738
- function kq(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.Xg});n=[].concat.apply([],w(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Ch);b.sa();){g=b.N();var r=b.na(),q=null;q=!1;h=1;switch(a.g){case lq:q=r&31;q=6==q;break;case mq:h=2;b.skip(1);q=r>>1&63;q=39==q||40==q;break;default:return}if(q)for(r=0,l<n.length&&(r=n[l].xe||0),r=(c+r)/d,h=t(gq(b.Ib(g-h))),q=h.next();!q.done;q=h.next())k.push({packet:q.value,pts:r});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
738
+ function kq(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.Xg});n=[].concat.apply([],w(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Ch);b.ua();){g=b.N();var r=b.na(),q=null;q=!1;h=1;switch(a.g){case lq:q=r&31;q=6==q;break;case mq:h=2;b.skip(1);q=r>>1&63;q=39==q||40==q;break;default:return}if(q)for(r=0,l<n.length&&(r=n[l].xe||0),r=(c+r)/d,h=t(gq(b.Ib(g-h))),q=h.next();!q.done;q=h.next())k.push({packet:q.value,pts:r});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
739
739
  c+(n[l].Wf||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}M("shaka.cea.Mp4CeaParser",hq);var iq=0,lq=1,mq=2,jq={avc1:lq,avc3:lq,hev1:mq,hvc1:mq,dvh1:mq,dvhe:mq};uc["video/mp4"]=function(){return new hq};function nq(){}nq.prototype.init=function(){};nq.prototype.parse=function(a){var b=[];a=nc(a);if(!si(a))return b;a=(new mi).parse(a);var c=a.hd(),d=a.ae();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(gq(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};M("shaka.cea.TsCeaParser",nq);uc["video/mp2t"]=function(){return new nq};function oq(a,b,c){var d=pq(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(k){return k.keyId}));h.delete(null);if(1<h.size)throw new P(2,4,4010);if(!b){f=d.filter(function(k){return"urn:mpeg:dash:sea:2012"==k.yd});if(1<f.length)throw new P(2,4,4050);f.length&&(g=qq(f[0]));f=d.filter(function(k){return"urn:mpeg:dash:mp4protection:2011"==k.yd?(e=k.init||e,!1):"urn:mpeg:dash:sea:2012"!=k.yd});f.length&&(a=rq(e,f,c,h),0==a.length&&(a=[Fb("",e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),
740
740
  c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Fb(c,e));if(h=Array.from(h)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=h;return{Bg:h,$j:e,drmInfos:a,Pe:g,Fg:!0}}
741
741
  function sq(a,b,c,d){var e=oq(a,c,d);if(b.Fg){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.Fg=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new P(2,4,4008);return e.Bg||b.Bg}
@@ -751,47 +751,47 @@ var wq=1,xq=(new Map).set("com.widevine.alpha",function(a){var b=og(a.node,"http
751
751
  b.textContent:(a=og(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function zq(a,b,c,d,e,f){var g={RepresentationID:b,Number:c,SubNumber:d,Bandwidth:e,Time:f};return a.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(h,k,l,m){if("$$"==h)return"$";var n=g[k];if(null==n)return h;"RepresentationID"==k&&l&&(l=void 0);"Time"==k&&"bigint"!=typeof n&&(.2<=Math.abs(n-Math.round(n))&&Ua("Calculated $Time$ values must be close to integers"),n=Math.round(n));switch(m){case void 0:case "d":case "i":case "u":h=n.toString();
752
752
  break;case "o":h=n.toString(8);break;case "x":h=n.toString(16);break;case "X":h=n.toString(16).toUpperCase();break;default:h=n.toString()}l=window.parseInt(l,10)||1;return Array(Math.max(0,l-h.length)+1).join("0")+h})}
753
753
  function Aq(a,b){var c=Bq(a,b,"timescale"),d=1;c&&(d=Ag(c)||1);var e=Bq(a,b,"duration");c=Ag(e||"");"image"==a.O.contentType&&(c=Cg(e||""));c&&(c/=d);var f=Bq(a,b,"startNumber");e=Number(Bq(a,b,"presentationTimeOffset"))||0;var g=Bg(f||"");if(null==f||null==g)g=1;var h=Cq(a,b,"SegmentTimeline");b=null;if(h){b=d;a=a.ia.duration||Infinity;f=g;h=ng(h,"S");for(var k=[],l=-e,m=0;m<h.length;++m){var n=h[m],r=h[m+1],q=vg(n,"t",Bg),u=vg(n,"d",Bg),v=vg(n,"r",zg);n=vg(n,"k",zg)||0;null!=q&&(q-=e);if(!u)break;
754
- q=null!=q?q:l;v=v||0;if(0>v)if(r){r=vg(r,"t",Bg);if(null==r)break;else if(q>=r)break;v=Math.ceil((r-q)/u)-1}else{if(Infinity==a)break;else if(q/b>=a)break;v=Math.ceil((a*b-q)/u)-1}0<k.length&&q!=l&&(k[k.length-1].end=q/b);for(r=0;r<=v;++r)l=q+u,k.push({start:q/b,end:l/b,og:q,sb:n,Vi:k.length+f}),q=l}b=k}return{timescale:d,Ka:c,Dd:g,Kb:e/d||0,ng:e,timeline:b}}function Dq(a,b){return[b(a.O),b(a.Aa),b(a.Ga)].filter(vd)}
754
+ q=null!=q?q:l;v=v||0;if(0>v)if(r){r=vg(r,"t",Bg);if(null==r)break;else if(q>=r)break;v=Math.ceil((r-q)/u)-1}else{if(Infinity==a)break;else if(q/b>=a)break;v=Math.ceil((a*b-q)/u)-1}0<k.length&&q!=l&&(k[k.length-1].end=q/b);for(r=0;r<=v;++r)l=q+u,k.push({start:q/b,end:l/b,og:q,ub:n,Vi:k.length+f}),q=l}b=k}return{timescale:d,Ka:c,Dd:g,Kb:e/d||0,ng:e,timeline:b}}function Dq(a,b){return[b(a.O),b(a.Aa),b(a.Ga)].filter(vd)}
755
755
  function Bq(a,b,c){b=Dq(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.getAttribute(c));d=b.next());return a}function Cq(a,b,c){b=Dq(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=mg(d.value,c));d=b.next());return a}
756
756
  function Eq(a,b,c,d,e,f){for(var g=rg(a,"http://www.w3.org/1999/xlink","href"),h=rg(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return bf(new P(2,4,4028));if("onLoad"!=h)return bf(new P(2,4,4027));var m=Eb([d],[g]);return e.request(0,qf(m,b)).Ba(function(n){n=Hg(n.data,a.tagName);if(!n)return bf(new P(2,4,4001,g));
757
757
  for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var r=n.childNodes[0];n.removeChild(r);a.appendChild(r)}n=t(Array.from(n.attributes));for(r=n.next();!r.done;r=n.next())a.setAttributeNode(r.value.cloneNode(!1));return Fq(a,b,c,m[0],e,f+1)})}
758
758
  function Fq(a,b,c,d,e,f){f=void 0===f?0:f;if(rg(a,"http://www.w3.org/1999/xlink","href")){var g=Eq(a,b,c,d,e,f);c&&(g=g.Ba(void 0,function(){return Fq(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==rg(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Fq(k,b,c,d,e,f)));return ff(g).Ba(function(){return a})};function Gq(a,b,c,d,e,f,g){var h,k=(new Tf).V("sidx",function(l){h=Hq(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new P(2,3,3004);}
759
- function Hq(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.N();if(0==k)throw new P(2,3,3005);if(0==g.version){var l=g.reader.N();var m=g.reader.N()}else l=g.reader.Lc(),m=g.reader.Lc();g.reader.skip(2);var n=g.reader.Qa();a=a+g.size+m;for(m=0;m<n;m++){var r=g.reader.N(),q=(r&2147483648)>>>31;r&=2147483647;var u=g.reader.N();g.reader.skip(4);if(1==q)throw new P(2,3,3006);h.push(new Fh(l/k+c,(l+u)/k+c,function(){return f},a,a+r-1,b,c,d,e));l+=u;a+=r}g.parser.stop();return h};function Iq(a){this.h=rc(a);this.g=new Qf(this.h,0)}Iq.prototype.sa=function(){return this.g.sa()};
759
+ function Hq(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.N();if(0==k)throw new P(2,3,3005);if(0==g.version){var l=g.reader.N();var m=g.reader.N()}else l=g.reader.Lc(),m=g.reader.Lc();g.reader.skip(2);var n=g.reader.Qa();a=a+g.size+m;for(m=0;m<n;m++){var r=g.reader.N(),q=(r&2147483648)>>>31;r&=2147483647;var u=g.reader.N();g.reader.skip(4);if(1==q)throw new P(2,3,3006);h.push(new Fh(l/k+c,(l+u)/k+c,function(){return f},a,a+r-1,b,c,d,e));l+=u;a+=r}g.parser.stop();return h};function Iq(a){this.h=rc(a);this.g=new Qf(this.h,0)}Iq.prototype.ua=function(){return this.g.ua()};
760
760
  function Jq(a){var b=Kq(a);if(7<b.length)throw new P(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Kq(a);a:{d=t(Lq);for(var e=d.next();!e.done;e=d.next())if(lc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.Ca();else{if(8==b.length&&b[1]&224)throw new P(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.Ca()+b<=a.h.byteLength?b:a.h.byteLength-a.g.Ca();d=rc(a.h,a.g.Ca(),b);a.g.skip(b);return new Mq(c,
761
761
  d)}function Kq(a){var b=a.g.Ca(),c=a.g.na();if(0==c)throw new P(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return nc(a.h,b,c)}var Lq=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function Mq(a,b){this.id=a;this.g=b}
762
- function Nq(a){if(8<a.g.byteLength)throw new P(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new P(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Oq(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Iq(a.g);for(var n=null,r=null;a.sa();){var q=Jq(a);if(187==q.id){var u=Pq(q);u&&(q=c*u.dj,u=b+u.Mi,null!=n&&m.push(new Fh(n+g,q+g,l,r,u-1,f,g,h,k)),n=q,r=u)}}null!=n&&m.push(new Fh(n+g,d+g,l,r,null,f,g,h,k));return m}
763
- function Pq(a){var b=new Iq(a.g);a=Jq(b);if(179!=a.id)throw new P(2,3,3013);a=Nq(a);b=Jq(b);if(183!=b.id)throw new P(2,3,3012);b=new Iq(b.g);for(var c=0;b.sa();){var d=Jq(b);if(241==d.id){c=Nq(d);break}}return{dj:a,Mi:c}};function Qq(a,b,c){b=Cq(a,b,"Initialization");if(!b)return null;var d=a.O.rb(),e=b.getAttribute("sourceURL");e&&(d=Eb(d,[e]));e=0;var f=null;if(b=vg(b,"range",yg))e=b.start,f=b.end;return new Dh(function(){return d},e,f,Rq(a),null,null,c)}
762
+ function Nq(a){if(8<a.g.byteLength)throw new P(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new P(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Oq(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Iq(a.g);for(var n=null,r=null;a.ua();){var q=Jq(a);if(187==q.id){var u=Pq(q);u&&(q=c*u.dj,u=b+u.Mi,null!=n&&m.push(new Fh(n+g,q+g,l,r,u-1,f,g,h,k)),n=q,r=u)}}null!=n&&m.push(new Fh(n+g,d+g,l,r,null,f,g,h,k));return m}
763
+ function Pq(a){var b=new Iq(a.g);a=Jq(b);if(179!=a.id)throw new P(2,3,3013);a=Nq(a);b=Jq(b);if(183!=b.id)throw new P(2,3,3012);b=new Iq(b.g);for(var c=0;b.ua();){var d=Jq(b);if(241==d.id){c=Nq(d);break}}return{dj:a,Mi:c}};function Qq(a,b,c){b=Cq(a,b,"Initialization");if(!b)return null;var d=a.O.rb(),e=b.getAttribute("sourceURL");e&&(d=Eb(d,[e]));e=0;var f=null;if(b=vg(b,"range",yg))e=b.start,f=b.end;return new Dh(function(){return d},e,f,Rq(a),null,null,c)}
764
764
  function Sq(a,b,c){var d=Number(Bq(a,Tq,"presentationTimeOffset"))||0,e=Bq(a,Tq,"timescale"),f=1;e&&(f=Ag(e)||1);var g=d/f||0,h=Qq(a,Tq,c);Uq(a,h);var k=jf(a);return{Ac:function(){var l=Cq(k,Tq,"RepresentationIndex");var m=k.O.rb();l&&(l=l.getAttribute("sourceURL"))&&(m=Eb(m,[l]));l=Vq(k);return Wq(k,b,h,m,l.start,l.end,g)}}}
765
765
  function Wq(a,b,c,d,e,f,g){var h,k,l,m,n,r,q,u,v,y,z,x,A,B,C;return K(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.Qb||!a.ia.yf,l=a.ia.start,m=a.ia.duration,n=a.O.mimeType.split("/")[1],r=b,q=null,u=[r(d,e,f,!1),"webm"==n?r(c.aa(),c.bb,c.Ia,!0):null],r=null,D(E,Promise.all(u),2);v=E.h;y=v[0];z=v[1]||null;x=null;A=l-g;B=l;C=m?l+m:Infinity;if("mp4"==n)var H=Gq(y,e,d,c,A,B,C);else{H=new Iq(z);if(440786851!=Jq(H).id)throw new P(2,3,3008);var G=Jq(H);if(408125543!=G.id)throw new P(2,3,3009);
766
- H=G.g.byteOffset;G=new Iq(G.g);for(var I=null;G.sa();){var J=Jq(G);if(357149030==J.id){I=J;break}}if(!I)throw new P(2,3,3010);I=new Iq(I.g);J=1E6;for(G=null;I.sa();){var L=Jq(I);if(2807729==L.id)J=Nq(L);else if(17545==L.id)if(4==L.g.byteLength)G=L.g.getFloat32(0);else if(8==L.g.byteLength)G=L.g.getFloat64(0);else throw new P(2,3,3003);}if(null==G)throw new P(2,3,3011);I=J/1E9;G*=I;J=Jq(new Iq(y));if(475249515!=J.id)throw new P(2,3,3007);H=Oq(J,H,I,G,d,c,A,B,C)}x=H;h.td(x);q=new Fj(x);k&&q.yc(B,C,
766
+ H=G.g.byteOffset;G=new Iq(G.g);for(var I=null;G.ua();){var J=Jq(G);if(357149030==J.id){I=J;break}}if(!I)throw new P(2,3,3010);I=new Iq(I.g);J=1E6;for(G=null;I.ua();){var L=Jq(I);if(2807729==L.id)J=Nq(L);else if(17545==L.id)if(4==L.g.byteLength)G=L.g.getFloat32(0);else if(8==L.g.byteLength)G=L.g.getFloat64(0);else throw new P(2,3,3003);}if(null==G)throw new P(2,3,3011);I=J/1E9;G*=I;J=Jq(new Iq(y));if(475249515!=J.id)throw new P(2,3,3007);H=Oq(J,H,I,G,d,c,A,B,C)}x=H;h.td(x);q=new Fj(x);k&&q.yc(B,C,
767
767
  !0);return E.return(q)})}function Tq(a){return a.Bd}function Vq(a){var b=Cq(a,Tq,"RepresentationIndex");a=Bq(a,Tq,"indexRange");a=yg(a||"");b&&(a=vg(b,"range",yg,a));return a}function Uq(a,b){Xq(a,b);if(!Vq(a))throw new P(2,4,4002);}function Xq(a,b){var c=a.O.mimeType.split("/")[1];if(a.O.contentType!=Lb&&"mp4"!=c&&"webm"!=c)throw new P(2,4,4006);if("webm"==c&&!b)throw new P(2,4,4005);}
768
- function Rq(a){var b=a.O;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.se,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Yq(a,b,c){var d=Qq(a,Zq,c),e=$q(a);if(!e.Ka&&!e.timeline&&1<e.Ic.length)throw new P(2,4,4002);if(!e.Ka&&!a.ia.duration&&!e.timeline&&1==e.Ic.length)throw new P(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new P(2,4,4002);var f=null,g=null;a.Ga.id&&a.O.id&&(g=b[a.Ga.id+","+a.O.id])&&(f=g.segmentIndex);var h=ar(a.ia.start,a.ia.duration,a.O.rb,e,d,c);b=!f;f?f.sd(h,a.presentationTimeline.Fb()):f=new Fj(h);a.presentationTimeline.td(h);a.Qb&&a.ia.yf||f.yc(a.ia.start,a.ia.duration?a.ia.start+
768
+ function Rq(a){var b=a.O;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.se,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Yq(a,b,c){var d=Qq(a,Zq,c),e=$q(a);if(!e.Ka&&!e.timeline&&1<e.Ic.length)throw new P(2,4,4002);if(!e.Ka&&!a.ia.duration&&!e.timeline&&1==e.Ic.length)throw new P(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new P(2,4,4002);var f=null,g=null;a.Ga.id&&a.O.id&&(g=b[a.Ga.id+","+a.O.id])&&(f=g.segmentIndex);var h=ar(a.ia.start,a.ia.duration,a.O.rb,e,d,c);b=!f;f?f.sd(h,a.presentationTimeline.sb()):f=new Fj(h);a.presentationTimeline.td(h);a.Qb&&a.ia.yf||f.yc(a.ia.start,a.ia.duration?a.ia.start+
769
769
  a.ia.duration:Infinity,b);g&&(g.segmentIndex=f);return{Ac:function(){f&&0!=f.hc()||f.oe(h);return Promise.resolve(f)}}}function Zq(a){return a.Zb}function $q(a){var b=br(a);a=Aq(a,Zq);var c=a.Dd;0==c&&(c=1);var d=0;a.Ka?d=a.Ka*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{Ka:a.Ka,startTime:d,Dd:c,Kb:a.Kb,timeline:a.timeline,Ic:b}}
770
770
  function ar(a,b,c,d,e,f){var g=d.Ic.length;d.timeline&&d.timeline.length!=d.Ic.length&&(g=Math.min(d.timeline.length,d.Ic.length));for(var h=a-d.Kb,k=b?a+b:Infinity,l=[],m=d.startTime,n={},r=0;r<g;n={$c:n.$c,Xc:n.Xc},r++){n.Xc=d.Ic[r];var q=void 0;q=null!=d.Ka?m+d.Ka:d.timeline?d.timeline[r].end:m+b;n.$c=null;l.push(new Fh(a+m,a+q,function(u){return function(){null==u.$c&&(u.$c=Eb(c(),[u.Xc.Ei]));return u.$c}}(n),n.Xc.start,n.Xc.end,e,h,a,k,[],"",null,null,Gh,f));m=q}return l}
771
771
  function br(a){return[a.O.Zb,a.Aa.Zb,a.Ga.Zb].filter(vd).map(function(b){return ng(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Lg&&(a.Lg=!0);var c=b.getAttribute("media");b=vg(b,"mediaRange",yg,{start:0,end:null});return{Ei:c,start:b.start,end:b.end}})};function cr(a,b,c,d,e,f,g){var h=dr(a,g),k=er(a);fr(k);var l=jf(a);if(k.od)return Xq(a,h),{Ac:function(){var u=zq(k.od,l.O.id,null,null,l.bandwidth||null,null);u=Eb(l.O.rb(),[u]);return Wq(l,b,h,u,0,null,k.Kb)}};if(k.Ka)return d||"image"===a.Aa.contentType||(a.presentationTimeline.Jf(k.Ka),a.presentationTimeline.re(a.ia.start)),{Ac:function(){return gr(l,k,e,h,f,g)}};var m=null;d=d=null;a.Ga.id&&a.O.id&&(d=a.Ga.id+","+a.O.id,d=c[d])&&(m=d.segmentIndex);var n=a.ia.start,r=a.ia.duration?n+a.ia.duration:
772
- Infinity,q=!(a.Qb&&a.ia.yf);m?(c=m,hr(c,k,n,r,q,h),c.qb(a.presentationTimeline.Fb())):m=new ir(k,a.O.id,a.bandwidth,a.O.rb,n,r,h,q,g,a.O.Xf);k.timeline&&"image"!==a.Aa.contentType&&a.presentationTimeline.Tg(k.timeline,n);d&&a.Qb&&(d.segmentIndex=m);return{Ac:function(){m instanceof ir&&0==m.hc()&&hr(m,k,n,r,q,h);return Promise.resolve(m)}}}function jr(a){return a.Cd}
772
+ Infinity,q=!(a.Qb&&a.ia.yf);m?(c=m,hr(c,k,n,r,q,h),c.qb(a.presentationTimeline.sb())):m=new ir(k,a.O.id,a.bandwidth,a.O.rb,n,r,h,q,g,a.O.Xf);k.timeline&&"image"!==a.Aa.contentType&&a.presentationTimeline.Tg(k.timeline,n);d&&a.Qb&&(d.segmentIndex=m);return{Ac:function(){m instanceof ir&&0==m.hc()&&hr(m,k,n,r,q,h);return Promise.resolve(m)}}}function jr(a){return a.Cd}
773
773
  function er(a){var b=Aq(a,jr),c=Bq(a,jr,"media");a=Bq(a,jr,"index");return{Ka:b.Ka,timescale:b.timescale,Dd:b.Dd,Kb:b.Kb,ng:b.ng,timeline:b.timeline,Jc:c,od:a}}function fr(a){var b=a.od?1:0;b+=a.timeline?1:0;b+=a.Ka?1:0;if(0==b)throw new P(2,4,4002);1!=b&&(a.od&&(a.timeline=null),a.Ka=null);if(!a.od&&!a.Jc)throw new P(2,4,4002);}
774
- function gr(a,b,c,d,e,f){function g(J){var L=(J-u)*q,N=L+b.Kb,R=L+m;L=R+q;var U=Math.min(L,k());R=new Fh(R,U,function(){var Z=N*v;"BigInt"in window&&Z>Number.MAX_SAFE_INTEGER&&(Z=BigInt(N)*BigInt(v));Z=zq(y,x,J,null,z,Z);return Eb(A(),[Z])},0,null,d,B,m,k(),[],"",null,null,Gh,f);R.j=L;return R}function h(){var J=[Math.max(l.Fb(),m),Math.min(l.Ub(),k())].map(function(L){return L-m});return[Math.ceil(J[0]/q),Math.ceil(J[1]/q)-1].map(function(L){return L+u})}function k(){var J=null!=n&&e[n]||r;return J?
775
- m+J:Infinity}var l=a.presentationTimeline,m=a.ia.start,n=a.Ga.id,r=a.ia.duration,q=b.Ka,u=b.Dd,v=b.timescale,y=b.Jc,z=a.bandwidth||null,x=a.O.id,A=a.O.rb,B=m-b.Kb,C=h();a=a.Qb?Math.max(C[0],C[1]-c+1):C[0];C=C[1];c=[];for(var E=a;E<=C;++E){var H=g(E);c.push(H)}var G=new Fj(c);c=l.Ub()<k();E=l.R();if(c||E){var I=Math.max(a,C+1);G.Be(q,function(){var J=l.Fb();G.qb(J);var L=t(h());L.next();L=L.next().value;for(var N=[];I<=L;){var R=g(I);N.push(R);I++}return J>k()&&!N.length?null:N})}return Promise.resolve(G)}
774
+ function gr(a,b,c,d,e,f){function g(J){var L=(J-u)*q,N=L+b.Kb,R=L+m;L=R+q;var U=Math.min(L,k());R=new Fh(R,U,function(){var Z=N*v;"BigInt"in window&&Z>Number.MAX_SAFE_INTEGER&&(Z=BigInt(N)*BigInt(v));Z=zq(y,x,J,null,z,Z);return Eb(A(),[Z])},0,null,d,B,m,k(),[],"",null,null,Gh,f);R.j=L;return R}function h(){var J=[Math.max(l.sb(),m),Math.min(l.Ub(),k())].map(function(L){return L-m});return[Math.ceil(J[0]/q),Math.ceil(J[1]/q)-1].map(function(L){return L+u})}function k(){var J=null!=n&&e[n]||r;return J?
775
+ m+J:Infinity}var l=a.presentationTimeline,m=a.ia.start,n=a.Ga.id,r=a.ia.duration,q=b.Ka,u=b.Dd,v=b.timescale,y=b.Jc,z=a.bandwidth||null,x=a.O.id,A=a.O.rb,B=m-b.Kb,C=h();a=a.Qb?Math.max(C[0],C[1]-c+1):C[0];C=C[1];c=[];for(var E=a;E<=C;++E){var H=g(E);c.push(H)}var G=new Fj(c);c=l.Ub()<k();E=l.R();if(c||E){var I=Math.max(a,C+1);G.Be(q,function(){var J=l.sb();G.qb(J);var L=t(h());L.next();L=L.next().value;for(var N=[];I<=L;){var R=g(I);N.push(R);I++}return J>k()&&!N.length?null:N})}return Promise.resolve(G)}
776
776
  function dr(a,b){var c=Bq(a,jr,"initialization");if(!c)return null;var d=a.O.id,e=a.bandwidth||null,f=a.O.rb;return new Dh(function(){var g=zq(c,d,null,null,e,null);return Eb(f(),[g])},0,null,Rq(a),null,null,b)}function ir(a,b,c,d,e,f,g,h,k,l){Fj.call(this,[]);this.h=a;this.H=b;this.D=c;this.G=d;this.i=e;this.m=f;this.u=g;this.C=k;this.I=l;h&&kr(this)}pa(ir,Fj);p=ir.prototype;p.hc=function(){return this.h?this.h.timeline.length:0};p.release=function(){Fj.prototype.release.call(this);this.h=null};
777
777
  p.qb=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.hc()&&this.release())}};function hr(a,b,c,d,e,f){a.u=f;if(a.h){c=a.h.timeline;a.h.Jc=b.Jc;var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end});0<b.length&&a.h.timeline.push.apply(a.h.timeline,w(b));a.m!==d&&(a.m=d)}else a.h=b,a.i=c,a.m=d;e&&kr(a)}
778
778
  function kr(a){if(!a.s){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.m)b.pop();else break;a.qb(a.i);0!==b.length&&Infinity!==a.m&&(b[b.length-1].end=a.m-a.i)}}
779
779
  p.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.i)return this.j;if(!this.h)return null;var b=this.h.timeline;if(a<this.i||a>this.m)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.i;e=e.end+this.i;d<c&&(e=b[d+1].start+this.i);if(a>=f&&a<e)return d+this.j}return null};
780
- p.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.hc()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.Jc,e=this.h.timeline[a],f=e.Vi,g=this.h.ng+e.og;c=this.i-this.h.Kb;for(var h=[],k=(e.end-e.start)/e.sb,l={},m=0;m<e.sb;l={bd:l.bd,Le:l.Le},m++){var n=e.start+k*m,r=n+k;l.Le=m+1;l.bd=null;n=new Fh(this.i+n,this.i+r,function(q){return function(){if(!b.h)return[];null==q.bd&&(q.bd=lr(b.h.Jc,b.H,f,b.D,g,q.Le,b.G));return q.bd}}(l),0,null,this.u,c,this.i,this.m,[],"",null,null,Gh,this.C);
781
- 0==this.I?0<m&&n.le():0!=m%this.I&&n.le();h.push(n)}c=new Fh(this.i+e.start,this.i+e.end,function(){return 0<e.sb?[]:lr(d,b.H,f,b.D,g,null,b.G)},0,null,this.u,c,this.i,this.m,h,"",null,null,Gh,this.C,0<e.sb);this.g[a]=c}return c};function lr(a,b,c,d,e,f,g){a=zq(a,b,c,f,d||null,e);return Eb(g(),[a]).map(function(h){return h.toString()})};function mr(a){this.s=null;this.C=a;this.I=new kf;this.j=[];this.h=null;this.m=[];this.D=null;this.H=[];this.G=300;this.l=new Map;this.i=new Map;this.g=null;this.u="UNKNOWN"}mr.prototype.configure=function(a){this.s=a};mr.prototype.destroy=function(){this.C=this.s=null;this.j=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy()};mr.prototype.setManifestType=function(a){this.u=a};
780
+ p.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.hc()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.Jc,e=this.h.timeline[a],f=e.Vi,g=this.h.ng+e.og;c=this.i-this.h.Kb;for(var h=[],k=(e.end-e.start)/e.ub,l={},m=0;m<e.ub;l={bd:l.bd,Le:l.Le},m++){var n=e.start+k*m,r=n+k;l.Le=m+1;l.bd=null;n=new Fh(this.i+n,this.i+r,function(q){return function(){if(!b.h)return[];null==q.bd&&(q.bd=lr(b.h.Jc,b.H,f,b.D,g,q.Le,b.G));return q.bd}}(l),0,null,this.u,c,this.i,this.m,[],"",null,null,Gh,this.C);
781
+ 0==this.I?0<m&&n.le():0!=m%this.I&&n.le();h.push(n)}c=new Fh(this.i+e.start,this.i+e.end,function(){return 0<e.ub?[]:lr(d,b.H,f,b.D,g,null,b.G)},0,null,this.u,c,this.i,this.m,h,"",null,null,Gh,this.C,0<e.ub);this.g[a]=c}return c};function lr(a,b,c,d,e,f,g){a=zq(a,b,c,f,d||null,e);return Eb(g(),[a]).map(function(h){return h.toString()})};function mr(a){this.s=null;this.C=a;this.I=new kf;this.j=[];this.h=null;this.m=[];this.D=null;this.H=[];this.G=300;this.l=new Map;this.i=new Map;this.g=null;this.u="UNKNOWN"}mr.prototype.configure=function(a){this.s=a};mr.prototype.destroy=function(){this.C=this.s=null;this.j=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy()};mr.prototype.setManifestType=function(a){this.u=a};
782
782
  function nr(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g)return c=Eb(a.j,[or(a,b)]),d=qf(c,a.s.retryParameters),e=a.C.networkingEngine.request(8,d),lf(a.I,e),ta(l,2),D(l,e.promise,4);if(2!=l.g)return f=l.h,g=Kf(f.data),h=JSON.parse(g),1==h.VERSION&&pr(a,h,f.uri),va(l,0);if((k=wa(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new xd(function(){nr(a,b)});a.g.S(a.G);F(l)})}
783
783
  function or(a,b){if(!a.m.length)return b;b=new kb(b);var c=a.D||a.m[0],d=Math.round(a.C.getBandwidthEstimate()),e=b.g;"DASH"==a.u?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.u&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Cb(e)&&qb(b,e);return b.toString()}function pr(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new xd(function(){nr(a,d)});if(c=b.TTL)a.G=c;a.g.S(a.G);a.m=b["PATHWAY-PRIORITY"]||[];a.H=b["PATHWAY-CLONES"]||[]}
784
784
  function qr(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}
785
785
  function rr(a,b){b=a.l.get(b)||new Map;for(var c=[],d={},e=t(a.m),f=e.next();!f.done;d={bc:d.bc},f=e.next())if(d.bc=f.value,f=b.get(d.bc))c.push({Qf:d.bc,location:f});else if(f=a.H.find(function(h){return function(k){return k.uj==h.bc}}(d))){var g=b.get(f["BASE-ID"]);g&&(f["URI-REPLACEMENT"].nh?(g=new kb(g),ob(g,f["URI-REPLACEMENT"].nh),c.push({Qf:d.bc,location:g.toString()})):c.push({Qf:d.bc,location:g}))}d=Date.now();e=t(a.i.keys());for(f=e.next();!f.done;f=e.next())f=f.value,g=a.i.get(f),d>g&&
786
- a.i.delete(f);c=c.filter(function(h){for(var k=t(a.i.keys()),l=k.next();!l.done;l=k.next())if(l.value.includes((new kb(h.location)).Cb))return!1;return!0});c.length&&(a.D=c[0].Qf);c=c.map(function(h){return h.location});if(!c.length&&a.h)for(d=t(a.h.split(",")),f=d.next();!f.done;f=d.next())if(e=b.get(f.value))a.D=a.h,c.push(e);if(!c.length)for(b=t(b.values()),d=b.next();!d.done;d=b.next())c.push(d.value);return Eb(a.j,c)};function sr(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=new Set}p=sr.prototype;p.release=function(){for(var a=t(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=[]};p.ii=function(){return this.j};p.vf=function(){return this.l.slice()};p.Rh=function(){return this.i};
786
+ a.i.delete(f);c=c.filter(function(h){for(var k=t(a.i.keys()),l=k.next();!l.done;l=k.next())if(l.value.includes((new kb(h.location)).Db))return!1;return!0});c.length&&(a.D=c[0].Qf);c=c.map(function(h){return h.location});if(!c.length&&a.h)for(d=t(a.h.split(",")),f=d.next();!f.done;f=d.next())if(e=b.get(f.value))a.D=a.h,c.push(e);if(!c.length)for(b=t(b.values()),d=b.next();!d.done;d=b.next())c.push(d.value);return Eb(a.j,c)};function sr(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=new Set}p=sr.prototype;p.release=function(){for(var a=t(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=[]};p.ii=function(){return this.j};p.vf=function(){return this.l.slice()};p.Rh=function(){return this.i};
787
787
  p.yg=function(a,b){var c,d,e,f,g=this,h,k,l,m,n,r,q,u,v,y,z,x,A,B,C,E,H,G,I,J,L,N,R,U,Z,aa,la,Oa,Xa,Gb;return K(function(lb){if(1==lb.g){h=Mb;tr(a);if(!b&&1==a.length)return k=a[0],g.h=k.audioStreams,g.g=k.videoStreams,g.l=k.textStreams,g.i=k.imageStreams,lb.F(2);l=-1;for(m=0;m<a.length;m++)n=a[m],g.m.has(n.id)||(g.m.add(n.id),-1==l&&(l=m));if(-1==l)return lb.return();for(var bc=[],Aa=[],mb=[],hb=[],Hb=t(a),ib=Hb.next();!ib.done;ib=Hb.next())ib=ib.value,bc.push(ib.audioStreams),Aa.push(ib.videoStreams),
788
788
  mb.push(ib.textStreams),hb.push(ib.imageStreams);c=bc;d=Aa;e=mb;f=hb;r=c;q=d;u=e;v=f;y=t(u);for(z=y.next();!z.done;z=y.next())x=z.value,x.push(ur(h.xa));A=t(v);for(B=A.next();!B.done;B=A.next())C=B.value,C.push(ur(h.dd));return D(lb,Promise.all([vr(g.h,r,l,wr,xr),vr(g.g,q,l,wr,xr),vr(g.l,u,l,wr,xr),vr(g.i,v,l,wr,xr)]),2)}E=0;H=[];if(g.g.length&&g.h.length)for(R=t(g.h),U=R.next();!U.done;U=R.next())for(Z=U.value,aa=t(g.g),la=aa.next();!la.done;la=aa.next())Oa=la.value,Xa=uh(Z.drmInfos,Oa.drmInfos),
789
- Z.drmInfos.length&&Oa.drmInfos.length&&!Xa.length||(Gb=E++,H.push({id:Gb,language:Z.language,disabledUntilTime:0,primary:Z.primary,audio:Z,video:Oa,bandwidth:(Z.bandwidth||0)+(Oa.bandwidth||0),drmInfos:Xa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(G=g.g.length?g.g:g.h,I=t(G),J=I.next();!J.done;J=I.next())L=J.value,N=E++,H.push({id:N,language:L.language,disabledUntilTime:0,primary:L.primary,audio:L.type==h.W?L:null,video:L.type==h.qa?L:null,bandwidth:L.bandwidth||0,
789
+ Z.drmInfos.length&&Oa.drmInfos.length&&!Xa.length||(Gb=E++,H.push({id:Gb,language:Z.language,disabledUntilTime:0,primary:Z.primary,audio:Z,video:Oa,bandwidth:(Z.bandwidth||0)+(Oa.bandwidth||0),drmInfos:Xa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(G=g.g.length?g.g:g.h,I=t(G),J=I.next();!J.done;J=I.next())L=J.value,N=E++,H.push({id:N,language:L.language,disabledUntilTime:0,primary:L.primary,audio:L.type==h.W?L:null,video:L.type==h.ra?L:null,bandwidth:L.bandwidth||0,
790
790
  drmInfos:L.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});g.j=H;F(lb)})};
791
791
  function tr(a){a=t(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.videoStreams=yr(b.videoStreams,function(c,d){return c.id!==d.id&&c.fastSwitching==d.fastSwitching&&c.width===d.width&&c.frameRate===d.frameRate&&c.codecs===d.codecs&&c.mimeType===d.mimeType&&c.label===d.label&&yc(c.roles,d.roles)&&If(c.closedCaptions,d.closedCaptions)&&c.bandwidth===d.bandwidth}),b.audioStreams=yr(b.audioStreams,function(c,d){return c.id!==d.id&&c.fastSwitching==d.fastSwitching&&c.channelsCount===d.channelsCount&&
792
792
  c.language===d.language&&c.bandwidth===d.bandwidth&&c.label===d.label&&c.codecs===d.codecs&&c.mimeType===d.mimeType&&yc(c.roles,d.roles)&&c.audioSamplingRate===d.audioSamplingRate&&c.primary===d.primary}),b.textStreams=yr(b.textStreams,function(c,d){return c.id!==d.id&&c.language===d.language&&c.label===d.label&&c.codecs===d.codecs&&c.mimeType===d.mimeType&&c.bandwidth===d.bandwidth&&yc(c.roles,d.roles)}),b.imageStreams=yr(b.imageStreams,function(c,d){return c.id!==d.id&&c.width===d.width&&c.codecs===
793
793
  d.codecs&&c.mimeType===d.mimeType})}function yr(a,b){var c=[],d={};a=t(a);for(var e=a.next();!e.done;d={Ld:d.Ld},e=a.next())d.Ld=e.value,c.some(function(f){return function(g){return b(f.Ld,g)}}(d))||c.push(d.Ld);return c}
794
- function zr(a){var b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B,C,E,H,G,I,J,L;return K(function(N){switch(N.g){case 1:b=Mb;if(1==a.length)return N.return(a[0]);c=a.map(function(R){return R.filter(function(U){return U.type==b.W})});d=a.map(function(R){return R.filter(function(U){return U.type==b.qa})});e=a.map(function(R){return R.filter(function(U){return U.type==b.xa})});f=a.map(function(R){return R.filter(function(U){return U.type==b.dd})});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,k.push(Ar(b.xa));
794
+ function zr(a){var b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B,C,E,H,G,I,J,L;return K(function(N){switch(N.g){case 1:b=Mb;if(1==a.length)return N.return(a[0]);c=a.map(function(R){return R.filter(function(U){return U.type==b.W})});d=a.map(function(R){return R.filter(function(U){return U.type==b.ra})});e=a.map(function(R){return R.filter(function(U){return U.type==b.xa})});f=a.map(function(R){return R.filter(function(U){return U.type==b.dd})});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,k.push(Ar(b.xa));
795
795
  l=t(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(Ar(b.dd));return D(N,vr([],c,0,Br,Cr),2);case 2:return r=N.h,D(N,vr([],d,0,Br,Cr),3);case 3:return q=N.h,D(N,vr([],e,0,Br,Cr),4);case 4:return u=N.h,D(N,vr([],f,0,Br,Cr),5);case 5:v=N.h;y=0;if(q.length&&r.length)for(C=t(r),E=C.next();!E.done;E=C.next())for(H=E.value,G=t(q),I=G.next();!I.done;I=G.next())J=I.value,L=y++,J.variantIds.push(L),H.variantIds.push(L);else for(z=q.concat(r),x=t(z),A=x.next();!A.done;A=x.next())B=A.value,B.variantIds=
796
796
  [y++];return N.return(q.concat(r).concat(u).concat(v))}})}
797
797
  function vr(a,b,c,d,e){var f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B,C,E,H,G,I;return K(function(J){switch(J.g){case 1:f=Mb;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=t(a);l=k.next();case 2:if(l.done){J.F(4);break}m=l.value;return D(J,Dr(m,b,c,e,g),5);case 5:n=J.h;if(!n)throw new P(2,4,4037);l=k.next();J.F(2);break;case 4:r=t(g);for(q=r.next();!q.done;q=r.next())for(u=q.value,v=t(u),y=v.next();!y.done;y=v.next())z=y.value,(x=Er(z,b,d,e,g))&&a.push(x);A=t(g);for(q=A.next();!q.done;q=
@@ -804,7 +804,7 @@ function xr(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSche
804
804
  (a.closedCaptions=new Map);c=t(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=wr(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),xr(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&xr(a.trickModeVideo,b)}
805
805
  function Cr(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(w(a.keyIds),w(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,w(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;a.closedCaptions.set(c,d)}}
806
806
  function Fr(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=b,f={audio:Ir,video:Ir,text:Jr,image:Kr}[e.type],g={audio:Lr,video:Mr,text:Nr,image:Or}[e.type],h=null;d=t(d.value);for(var k=d.next();!k.done;k=d.next())k=k.value,!f(e,k)||h&&!g(e,h,k)||(h=k);e=h;if(!e)return;c.push(e)}b.matchedStreams=c}
807
- function Ir(a,b){function c(d){if(!Pr.has(d)){var e=hd(d);Pr.set(d,e)}return Pr.get(d)}return b.mimeType!=a.mimeType||c(b.codecs)!=c(a.codecs)||a.drmInfos&&!th(a.drmInfos,b.drmInfos)?!1:!0}function Jr(a,b){return a.language?b.language?0==Vb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function Kr(a){return a.tilesLayout?!0:!1}
807
+ function Ir(a,b){function c(d){if(!Pr.has(d)){var e=hd(d);Pr.set(d,e)}return Pr.get(d)}return b.mimeType!=a.mimeType||c(b.codecs)!=c(a.codecs)||a.drmInfos&&!th(a.drmInfos,b.drmInfos)?!1:!0}function Jr(a,b){return a.language?b.language?a.forced!==b.forced||0==Vb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function Kr(a){return a.tilesLayout?!0:!1}
808
808
  function Lr(a,b,c){if(a.id==c.id)return!0;var d=Vb(a.language,b.language),e=Vb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;
809
809
  d=Qr(a.channelsCount,b.channelsCount,c.channelsCount);if(d==Rr)return!0;if(d==Sr)return!1;d=Qr(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==Rr?!0:d==Sr?!1:a.bandwidth&&Tr(a.bandwidth,b.bandwidth,c.bandwidth)==Rr?!0:!1}
810
810
  function Mr(a,b,c){if(a.id==c.id)return!0;var d=Qr(a.width*a.height,b.width*b.height,c.width*c.height);if(d==Rr)return!0;if(d==Sr)return!1;if(a.frameRate){d=Qr(a.frameRate,b.frameRate,c.frameRate);if(d==Rr)return!0;if(d==Sr)return!1}return a.bandwidth&&Tr(a.bandwidth,b.bandwidth,c.bandwidth)==Rr?!0:!1}
@@ -820,14 +820,14 @@ function Xr(a){var b,c,d,e,f;return K(function(g){if(1==g.g)return b=qf(a.s,a.g.
820
820
  function $r(a,b,c){var d,e,f,g,h;return K(function(k){if(1==k.g){d=Hg(b,"MPD");if(!d)throw new P(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k.return(as(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Fq(d,a.g.retryParameters,f,c,a.i.networkingEngine);lf(a.G,g);return D(k,g.promise,2)}h=k.h;return k.return(as(a,h,c))})}
821
821
  function as(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B,C,E,H,G,I,J,L,N,R,U,Z,aa,la,Oa,Xa,Gb,lb,bc,Aa,mb,hb,Hb,ib,Vh,Nd,Ne,Oe;return K(function(rb){switch(rb.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=ng(b,"Location").map(tg).filter(vd);0<f.length&&(g=Eb(e,f),e=a.s=g);h=Promise.resolve();if((k=mg(b,"ContentSteering"))&&a.i)if(l=k.getAttribute("defaultServiceLocation"),a.h)a.h.j=e,a.h.h=l;else if(a.h=new mr(a.i),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.j=e,a.h.h=l,m=tg(k))(n=
822
822
  vg(k,"queryBeforeStart",Dg,!1))?h=nr(a.h,m):nr(a.h,m);r=ng(b,"BaseURL");u=!1;if(a.h)for(a.h.l.clear(),v=t(r),y=v.next();!y.done;y=v.next())z=y.value,x=z.getAttribute("serviceLocation"),A=tg(z),x&&A&&(qr(a.h,"BaseURL",x,A),u=!0);u&&a.h||(B=r.map(tg),q=Eb(e,B));C=function(){return a.h&&u?rr(a.h,"BaseURL"):q?q:[]};E=0;r&&r.length&&(E=vg(r[0],"availabilityTimeOffset",Cg)||0);H=a.g.dash.ignoreMinBufferTime;G=0;H||(G=vg(b,"minBufferTime",xg)||0);a.H=vg(b,"minimumUpdatePeriod",xg,-1);I=vg(b,"availabilityStartTime",
823
- wg);J=vg(b,"timeShiftBufferDepth",xg);L=a.g.dash.ignoreSuggestedPresentationDelay;N=null;L||(N=vg(b,"suggestedPresentationDelay",xg));R=a.g.dash.ignoreMaxSegmentDuration;U=null;R||(U=vg(b,"maxSegmentDuration",xg));Z=b.getAttribute("type")||"static";if(a.j)for(aa=a.j.presentationTimeline,la=t(Object.values(a.m)),Oa=la.next();!Oa.done;Oa=la.next())Xa=Oa.value,Xa.segmentIndex&&Xa.segmentIndex.qb(aa.Fb());else Gb=a.g.defaultPresentationDelay||1.5*G,lb=null!=N?N:Gb,aa=new jj(I,lb,a.g.dash.autoCorrectDrift);
823
+ wg);J=vg(b,"timeShiftBufferDepth",xg);L=a.g.dash.ignoreSuggestedPresentationDelay;N=null;L||(N=vg(b,"suggestedPresentationDelay",xg));R=a.g.dash.ignoreMaxSegmentDuration;U=null;R||(U=vg(b,"maxSegmentDuration",xg));Z=b.getAttribute("type")||"static";if(a.j)for(aa=a.j.presentationTimeline,la=t(Object.values(a.m)),Oa=la.next();!Oa.done;Oa=la.next())Xa=Oa.value,Xa.segmentIndex&&Xa.segmentIndex.qb(aa.sb());else Gb=a.g.defaultPresentationDelay||1.5*G,lb=null!=N?N:Gb,aa=new jj(I,lb,a.g.dash.autoCorrectDrift);
824
824
  aa.Mc("static"==Z);(bc=aa.R())&&!isNaN(a.g.availabilityWindowOverride)&&(J=a.g.availabilityWindowOverride);null==J&&(J=Infinity);aa.Ae(J);Aa=b.getAttribute("profiles")||"";mb={Qb:"static"!=Z,presentationTimeline:aa,Ga:null,ia:null,Aa:null,O:null,bandwidth:0,Lg:!1,xc:E,profiles:Aa.split(",")};hb=bs(a,mb,C,b);Hb=hb.duration;ib=hb.periods;"static"!=Z&&hb.Dg||aa.ab(Hb||Infinity);a.D&&!a.u&&(Vh=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.u=a.i.isLowLatencyMode());a.u?aa.Zg(a.D):a.D&&Ua("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.");
825
825
  aa.Jf(U||1);return D(rb,a.l.yg(ib,mb.Qb),2);case 2:return D(rb,h,3);case 3:a.u&&(G=0);if(a.j){a.j.variants=a.l.j;Nd=a.l.vf();0<Nd.length&&(a.j.textStreams=Nd);a.j.imageStreams=a.l.i;a.i.filter(a.j);rb.F(4);break}a.j={presentationTimeline:aa,variants:a.l.j,textStreams:a.l.vf(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:G||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:cs(b)};if(!aa.lh()){rb.F(5);break}Ne=ng(b,"UTCTiming");return D(rb,
826
826
  ds(a,C,Ne),6);case 6:Oe=rb.h;if(!a.i)return rb.return();aa.$g(Oe);case 5:aa.je();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),F(rb)}})}
827
827
  function cs(a){a=mg(a,"ServiceDescription");if(!a)return null;var b=mg(a,"Latency"),c=mg(a,"PlaybackRate");if(b&&b.getAttribute("max")||c){a=b&&b.getAttribute("max")?parseInt(b.getAttribute("max"),10)/1E3:null;var d=c?parseFloat(c.getAttribute("max")):null;b=b&&b.getAttribute("min")?parseInt(b.getAttribute("min"),10)/1E3:null;c=c?parseFloat(c.getAttribute("min")):null;return{maxLatency:a,maxPlaybackRate:d,minLatency:b,minPlaybackRate:c}}return null}
828
828
  function bs(a,b,c,d){var e=vg(d,"mediaPresentationDuration",xg),f=[],g=0;d=ng(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=vg(k,"start",xg,g),n=k.id,r=vg(k,"duration",xg),q=null;if(l){var u=vg(l,"start",xg);null!=u&&(q=u-m)}else null!=e&&(q=e-m);null==q&&(q=r);if(!(null!==a.C&&null!==n&&null!==m&&m<a.C)||a.L.includes(n)||h+1==d.length){null!==m&&(null===a.C||m>a.C)&&(a.C=m);g=es(a,b,c,{start:m,duration:q,node:k,yf:null==q||!l});f.push(g);b.Ga.id&&q&&(a.M[b.Ga.id]=q);if(null==q){g=
829
829
  null;break}g=m+q}}a.L=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,Dg:!1}:{periods:f,duration:g,Dg:!0}}
830
- function es(a,b,c,d){b.Ga=fs(a,d.node,null,c);b.ia=d;b.Ga.xc=b.xc;b.Ga.id||(b.Ga.id="__shaka_period_"+d.start);var e=ng(d.node,"EventStream");c=b.presentationTimeline.Fb();e=t(e);for(var f=e.next();!f.done;f=e.next())gs(a,d.start,d.duration,f.value,c);c=ng(d.node,"AdaptationSet").map(function(m){return hs(a,b,m)}).filter(vd);if(b.Qb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.Qi);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new P(2,4,4018);
830
+ function es(a,b,c,d){b.Ga=fs(a,d.node,null,c);b.ia=d;b.Ga.xc=b.xc;b.Ga.id||(b.Ga.id="__shaka_period_"+d.start);var e=ng(d.node,"EventStream");c=b.presentationTimeline.sb();e=t(e);for(var f=e.next();!f.done;f=e.next())gs(a,d.start,d.duration,f.value,c);c=ng(d.node,"AdaptationSet").map(function(m){return hs(a,b,m)}).filter(vd);if(b.Qb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.Qi);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new P(2,4,4018);
831
831
  }d=c.filter(function(m){return!m.mg});c=c.filter(function(m){return m.mg});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.mg.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={Md:h.Md},l=k.next())h.Md=l.value,h.Md.trickModeVideo=e.streams.find(function(m){return function(n){return hd(m.Md.codecs)==hd(n.codecs)}}(h))}}}c=is(a.g.disableAudio,d,"audio");e=is(a.g.disableVideo,d,"video");f=is(a.g.disableText,
832
832
  d,Lb);d=is(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new P(2,4,4004);return{id:b.Ga.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function is(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,w(e.streams));return d},[])}
833
833
  function hs(a,b,c){function d(G){switch(G){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Aa=fs(a,c,b.Ga,null);var e=!1,f=ng(c,"Role"),g=f.map(function(G){return G.getAttribute("value")}).filter(vd),h=void 0,k=b.Aa.contentType==Lb;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
@@ -856,7 +856,7 @@ case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return
856
856
  3);break;case 5:wa(n);case 3:g=f.next();n.F(2);break;case 4:return Ua("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
857
857
  function gs(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=vg(d,"timescale",Bg)||1;d=t(ng(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=vg(k,"presentationTime",Bg)||0,m=vg(k,"duration",Bg)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.i.onTimelineRegionAdded(k))}}
858
858
  function ms(a,b,c,d,e){var f,g,h,k;return K(function(l){if(1==l.g)return f=wf,g=e?0:1,h=fk(b,c,d,a.g.retryParameters),D(l,Zr(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function ks(a,b){b=dd(a,b);return md(b)?Lb:a.split("/")[0]}function Zr(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);lf(a.G,b);return b.promise}M("shaka.dash.DashParser",Vr);yh["application/dash+xml"]=function(){return new Vr};yh["video/vnd.mpeg.dash.mpd"]=function(){return new Vr};function qs(){}M("shaka.dependencies",qs);qs.has=function(a){return rs.has(a)};qs.add=function(a,b){if(!ss[a])throw Error(a+" is not supported");a==ts?Ae("mux.js","mux.js is no longer used in Shaka Player."):rs.set(a,function(){return b})};var ts="muxjs",ss={ck:ts,ISOBoxer:"ISOBoxer"};qs.Allowed=ss;var rs=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function us(a,b,c){this.type=a;this.g=b;this.segments=c||null}function vs(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}vs.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.g?this.g.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
859
- function ws(a){var b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}vs.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function X(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function xs(a,b){a=a.getAttribute(b);if(!a)throw new P(2,4,4023,b);return a.value}function ys(a,b,c){c=void 0===c?[]:c;this.g=b;this.h=a;this.sb=c}
859
+ function ws(a){var b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}vs.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function X(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function xs(a,b){a=a.getAttribute(b);if(!a)throw new P(2,4,4023,b);return a.value}function ys(a,b,c){c=void 0===c?[]:c;this.g=b;this.h=a;this.ub=c}
860
860
  function zs(a,b){this.name=a;this.value=b};function As(a,b){return a.filter(function(c){return c.name==b})}function Bs(a,b){return a.filter(function(c){return xs(c,"TYPE")==b})}function Cs(a,b){a=As(a,b);return a.length?a[0]:null}function Ds(a,b,c){c=void 0===c?0:c;return(a=Cs(a,b))?Number(a.value):c}function Es(a,b,c){return b?Fs(a,[b],c):[]}
861
861
  function Fs(a,b,c){if(!b.length)return[];b=Eb(a,b);a=[];b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=a,f=e.push;var g=d.value;if((d=c)&&d.size){g=String(g).replace(/%7B/g,"{").replace(/%7D/g,"}");var h=g.match(/{\$\w*}/g);if(h){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=k.slice(2,k.length-1),m=d.get(l);if(m)g=g.replace(k,m);else throw new P(2,4,4039,l);}}d=g}else d=g;f.call(e,d)}return a};function Gs(a){this.h=a||"";this.g=0}function Hs(a){Is(a,/[ \t]+/gm)}function Is(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function Js(a){return a.g==a.h.length?null:(a=Is(a,/[^ \t\n]*/gm))?a[0]:null};function Ks(){this.g=0}
862
862
  function Ls(a,b){b=Kf(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var c=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(c[0]))throw new P(2,4,4015);b=0;for(var d=!0,e=t(c),f=e.next();!f.done;f=e.next())if(f=f.value,/^#(?!EXT)/m.test(f)||d)d=!1;else if(f=Ms(a,f),--a.g,Ns.includes(f.name)){b=1;break}else"EXT-X-STREAM-INF"==f.name&&(d=!0);e=[];d=!0;for(f=0;f<c.length;f++){var g=c[f],h=c[f+1];if(/^#(?!EXT)/m.test(g)||d)d=!1;else{g=Ms(a,g);if(Os.includes(g.name)){if(1!=b)throw new P(2,4,4017);g=
@@ -865,27 +865,27 @@ g.name&&(g.g.push(new zs("URI",h)),d=!0)}}return new us(b,e)}function Ms(a,b){a=
865
865
  var Ns="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF".split(" "),Os="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Ps(){}function Qs(a){try{var b=Rs(a);return df({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return bf(c)}}
866
866
  function Rs(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new P(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new P(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=fg(a):e=Of(a);return{data:e,contentType:c}}M("shaka.net.DataUriPlugin",Ps);Ps.parse=Qs;nf("data",Qs);function Ss(a){var b=jd(a),c=b.split("/")[0];a=kd(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map}}
867
867
  function Ts(a,b){function c(v){return d(v.name)}function d(v){v=v.toLowerCase();switch(v){case "avc1":case "avc3":e.push(v+".42E01E");g=!0;break;case "hev1":case "hvc1":e.push(v+".1.6.L93.90");g=!0;break;case "dvh1":case "dvhe":e.push(v+".05.04");g=!0;break;case "vp09":e.push(v+".00.10.08");g=!0;break;case "av01":e.push(v+".0.01M.08");g=!0;break;case "mp4a":e.push("mp4a.40.2");f=!0;break;case "ac-3":case "ec-3":case "opus":case "flac":e.push(v),f=!0}}var e=[],f=!1,g=!1,h=null,k=null,l=null,m=null,
868
- n=null;(new Tf).box("moov",Yf).box("trak",Yf).V("tkhd",function(v){v=Zh(v.reader,v.version);k=String(v.height);l=String(v.width)}).box("mdia",Yf).V("mdhd",function(v){h=Xh(v.reader,v.version).language}).box("minf",Yf).box("stbl",Yf).V("stsd",$f).box("mp4a",function(v){var y=v.reader;y.skip(6);y.skip(2);y.skip(8);var z=y.Qa();y.skip(2);y.skip(2);y.skip(2);y=y.Qa()+y.Qa()/65536;m=z;n=y;v.reader.sa()?Yf(v):c(v)}).box("esds",function(v){v=$h(v.reader);e.push(v.ra);f=!0}).box("ac-3",c).box("ec-3",c).box("opus",
869
- c).box("Opus",c).box("fLaC",c).box("avc1",function(v){v=ai(v.reader,v.name);e.push(v.ra);g=!0}).box("avc3",function(v){v=ai(v.reader,v.name);e.push(v.ra);g=!0}).box("hev1",c).box("hvc1",c).box("dvh1",c).box("dvhe",c).box("vp09",c).box("av01",c).box("enca",ag).box("encv",ag).box("sinf",Yf).box("frma",function(v){v=bi(v.reader).ra;d(v)}).parse(a||b,!0);if(!e.length)return null;var r=f&&!g,q=new Map;if(g){var u=new tc("video/mp4");a&&u.init(a);u.i(b);a=t(u.j());for(b=a.next();!b.done;b=a.next())b=b.value,
870
- q.set(b,b);u.h()}return{type:r?"audio":"video",mimeType:r?"audio/mp4":"video/mp4",codecs:Us(e).join(", "),language:h,height:k,width:l,channelCount:m,sampleRate:n,closedCaptions:q}}function Us(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=id(d)[0];b.has(e)||(c.push(d),b.add(e))}return c};function Vs(){var a=this;this.g=this.h=null;this.C=1;this.s=new Map;this.J=new Map;this.L=new Map;this.L.set("video",new Map);this.L.set("audio",new Map);this.L.set(Lb,new Map);this.L.set("image",new Map);this.Ha=new Set;this.i=new Map;this.l=null;this.Z="";this.ha=new Ks;this.K=-1;this.T=Infinity;this.$=this.Ua=!1;this.u=new xd(function(){Ws(a)});this.ya=Xs;this.G=null;this.oa=0;this.m=Infinity;this.ea=this.wa=this.M=0;this.P=new kf;this.H=new Map;this.I=new Map;this.U=new Map;this.Ta=this.D=!1;
868
+ n=null;(new Tf).box("moov",Yf).box("trak",Yf).V("tkhd",function(v){v=Zh(v.reader,v.version);k=String(v.height);l=String(v.width)}).box("mdia",Yf).V("mdhd",function(v){h=Xh(v.reader,v.version).language}).box("minf",Yf).box("stbl",Yf).V("stsd",$f).box("mp4a",function(v){var y=v.reader;y.skip(6);y.skip(2);y.skip(8);var z=y.Qa();y.skip(2);y.skip(2);y.skip(2);y=y.Qa()+y.Qa()/65536;m=z;n=y;v.reader.ua()?Yf(v):c(v)}).box("esds",function(v){v=$h(v.reader);e.push(v.sa);f=!0}).box("ac-3",c).box("ec-3",c).box("opus",
869
+ c).box("Opus",c).box("fLaC",c).box("avc1",function(v){v=ai(v.reader,v.name);e.push(v.sa);g=!0}).box("avc3",function(v){v=ai(v.reader,v.name);e.push(v.sa);g=!0}).box("hev1",c).box("hvc1",c).box("dvh1",c).box("dvhe",c).box("vp09",c).box("av01",c).box("enca",ag).box("encv",ag).box("sinf",Yf).box("frma",function(v){v=bi(v.reader).sa;d(v)}).parse(a||b,!0);if(!e.length)return null;var r=f&&!g,q=new Map;if(g){var u=new tc("video/mp4");a&&u.init(a);u.i(b);a=t(u.j());for(b=a.next();!b.done;b=a.next())b=b.value,
870
+ q.set(b,b);u.h()}return{type:r?"audio":"video",mimeType:r?"audio/mp4":"video/mp4",codecs:Us(e).join(", "),language:h,height:k,width:l,channelCount:m,sampleRate:n,closedCaptions:q}}function Us(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=id(d)[0];b.has(e)||(c.push(d),b.add(e))}return c};function Vs(){var a=this;this.g=this.h=null;this.C=1;this.s=new Map;this.J=new Map;this.L=new Map;this.L.set("video",new Map);this.L.set("audio",new Map);this.L.set(Lb,new Map);this.L.set("image",new Map);this.Ha=new Set;this.i=new Map;this.l=null;this.Z="";this.qa=new Ks;this.K=-1;this.T=Infinity;this.$=this.Ua=!1;this.u=new xd(function(){Ws(a)});this.oa=Xs;this.G=null;this.ya=0;this.m=Infinity;this.ha=this.ea=this.M=0;this.P=new kf;this.H=new Map;this.I=new Map;this.U=new Map;this.Ta=this.D=!1;
871
871
  this.Ma=new cc(5);this.j=null}p=Vs.prototype;p.configure=function(a){this.g=a;this.j&&this.j.configure(this.g)};p.start=function(a,b){var c=this,d;return K(function(e){return 1==e.g?(c.h=b,c.D=b.isLowLatencyMode(),D(e,Ys(c,[a]),2)):3!=e.g?(d=e.h,c.Z=d.uri,D(e,Zs(c,d.data,a),3)):e.return(c.G)})};
872
872
  p.stop=function(){this.u&&(this.u.stop(),this.u=null);var a=[];this.P&&(a.push(this.P.destroy()),this.P=null);this.g=this.h=null;this.Ha.clear();this.G=null;this.i.clear();this.J.clear();this.I.clear();this.s.clear();this.U.clear();this.j&&this.j.destroy();return Promise.all(a)};
873
873
  p.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){if(!$s(a))return m.return();b=[];c=Array.from(a.i.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(at(a,g));return D(m,Promise.all(b),2)}bt(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.md});d.length&&!h&&(k=ct,dt(a,k.ph),l=d.map(function(n){return n.Gb}),a.l.ab(Math.min.apply(Math,w(l))),a.h.updateDuration());
874
874
  h&&et(a);F(m)})};function ft(a,b){return $s(a)?a.L.get(b.type):b.me}
875
- function at(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B,C,E,H,G,I,J,L,N,R,U,Z;return K(function(aa){if(1==aa.g){c=[];d=t(b.aa());for(e=d.next();!e.done;e=d.next())f=e.value,g=new kb(f),h=g.g,b.Qd&&(0<=b.kb&&h.add("_HLS_msn",String(b.kb)),0<=b.mb&&h.add("_HLS_part",String(b.mb))),b.Rd&&h.add("_HLS_skip","YES"),Cb(h)&&qb(g,h),c.push(g.toString());return D(aa,Ys(a,c,!0),2)}k=aa.h;if(!b.stream.segmentIndex)return aa.return();l=Ls(a.ha,k.data);if(1!=l.type)throw new P(2,4,4017);m=k.uri;m==k.originalUri||
876
- b.aa().includes(m)||b.Vg.push(m);n=As(l.g,"EXT-X-DEFINE");r=gt(a,n,m);q=b.stream;u=ft(a,b);v=ht(l,q.mimeType);y=v.keyIds;z=v.drmInfos;x=function(la,Oa){return la.size===Oa.size&&[].concat(w(la)).every(function(Xa){return Oa.has(Xa)})};x(q.keyIds,y)||(q.keyIds=y,q.drmInfos=z,a.h.newDrmInfo(q));A=it(a,l,q,u,r,b.aa);B=A.segments;C=A.bandwidth;q.bandwidth=C;q.segmentIndex.sd(B,a.l.Fb());B.length&&(E=Ds(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(H=Cs(l.g,"EXT-X-SKIP"))?Number(X(H,"SKIPPED-SEGMENTS")):0,I=jt(E,B),
875
+ function at(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B,C,E,H,G,I,J,L,N,R,U,Z;return K(function(aa){if(1==aa.g){c=[];d=t(b.aa());for(e=d.next();!e.done;e=d.next())f=e.value,g=new kb(f),h=g.g,b.Qd&&(0<=b.kb&&h.add("_HLS_msn",String(b.kb)),0<=b.mb&&h.add("_HLS_part",String(b.mb))),b.Rd&&h.add("_HLS_skip","YES"),Cb(h)&&qb(g,h),c.push(g.toString());return D(aa,Ys(a,c,!0),2)}k=aa.h;if(!b.stream.segmentIndex)return aa.return();l=Ls(a.qa,k.data);if(1!=l.type)throw new P(2,4,4017);m=k.uri;m==k.originalUri||
876
+ b.aa().includes(m)||b.Vg.push(m);n=As(l.g,"EXT-X-DEFINE");r=gt(a,n,m);q=b.stream;u=ft(a,b);v=ht(l,q.mimeType);y=v.keyIds;z=v.drmInfos;x=function(la,Oa){return la.size===Oa.size&&[].concat(w(la)).every(function(Xa){return Oa.has(Xa)})};x(q.keyIds,y)||(q.keyIds=y,q.drmInfos=z,a.h.newDrmInfo(q));A=it(a,l,q,u,r,b.aa);B=A.segments;C=A.bandwidth;q.bandwidth=C;q.segmentIndex.sd(B,a.l.sb());B.length&&(E=Ds(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(H=Cs(l.g,"EXT-X-SKIP"))?Number(X(H,"SKIPPED-SEGMENTS")):0,I=jt(E,B),
877
877
  J=I.kb,L=I.mb,b.kb=J+G,b.mb=L,N=u.get(E),q.segmentIndex.qb(N));R=B[0];b.nc=R.startTime;U=B[B.length-1];b.Gb=U.endTime;if(Z=Cs(l.g,"EXT-X-ENDLIST"))b.md=!0;kt(a,l);F(aa)})}p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(a){this.j&&this.j.i.set(a,Date.now()+6E4)};
878
878
  function lt(a,b){for(var c=-1==a.K,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=ft(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.K=Math.max(a.K,k));e.Ye=k;break}}}}if(!(0>a.K))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(d.g.splice(0,a.K-c.Ye),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),mt(a,c,d)}
879
879
  function nt(a,b){if(Infinity==a.T){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.i&&(a.T=Math.min(a.T,d.i))}}b=a.T;if(Infinity!=b)for(d=t(a.i.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.i)Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.aa(),"Expect AV sync issues!");else for(mt(a,c,f.i-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.hg(b)}}}
880
880
  function mt(a,b,c){b.nc+=c;b.Gb+=c;a=ft(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.aa()}
881
- function Zs(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B,C,E,H,G,I,J,L,N,R,U,Z,aa;return K(function(la){switch(la.g){case 1:d=Ls(a.ha,b);e=As(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];if(1==d.type)return v=function(){return[c]},D(la,ot(a,d,v),6);pt(a,e);k=As(d.g,"EXT-X-MEDIA");l=As(d.g,"EXT-X-STREAM-INF");m=As(d.g,"EXT-X-IMAGE-STREAM-INF");n=As(d.g,"EXT-X-I-FRAME-STREAM-INF");r=As(d.g,"EXT-X-SESSION-KEY");q=As(d.g,"EXT-X-SESSION-DATA");u=As(d.g,"EXT-X-CONTENT-STEERING");qt(a,q);return D(la,rt(a,u),4);
881
+ function Zs(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B,C,E,H,G,I,J,L,N,R,U,Z,aa;return K(function(la){switch(la.g){case 1:d=Ls(a.qa,b);e=As(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];if(1==d.type)return v=function(){return[c]},D(la,ot(a,d,v),6);pt(a,e);k=As(d.g,"EXT-X-MEDIA");l=As(d.g,"EXT-X-STREAM-INF");m=As(d.g,"EXT-X-IMAGE-STREAM-INF");n=As(d.g,"EXT-X-I-FRAME-STREAM-INF");r=As(d.g,"EXT-X-SESSION-KEY");q=As(d.g,"EXT-X-SESSION-DATA");u=As(d.g,"EXT-X-CONTENT-STEERING");qt(a,q);return D(la,rt(a,u),4);
882
882
  case 4:return st(a,l),tt(a,k),f=ut(a,l,r,k),g=vt(a,k),D(la,wt(a,m,n),5);case 5:h=la.h;la.F(3);break;case 6:return y=la.h,z=y.type,x=y.mimeType,A=y.codecs,B=y.language,C=y.height,E=y.width,H=y.channelCount,G=y.sampleRate,I=y.closedCaptions,D(la,xt(a,a.C++,d,v,c,A,z,B,!0,"Media Playlist",H,I,null,!1,G,!1,x),7);case 7:J=la.h,a.i.set(c,J),"video"==z&&yt(J.stream,E,C,null,null,null),f.push({id:0,language:Pb(B||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==z?J.stream:null,video:"video"==z?J.stream:
883
883
  null,bandwidth:J.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new P(2,7,7001);a.l=new jj(null,0);a.l.Mc(!0);1==d.type&&($s(a)&&(zt(a,d),L=a.m,a.u.S(L)),N=Array.from(a.i.values()),At(a,N),et(a));a.G={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null};
884
884
  if(a.$||!a.g.hls.disableCodecGuessing){la.F(8);break}R=[];U=t(a.G.variants);for(Z=U.next();!Z.done;Z=U.next())aa=Z.value,aa.audio&&""===aa.audio.codecs&&R.push(aa.audio.createSegmentIndex()),aa.video&&""===aa.video.codecs&&R.push(aa.video.createSegmentIndex());return D(la,Promise.all(R),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.G),F(la)}})}
885
885
  function ot(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B;return K(function(C){switch(C.g){case 1:d=Ss(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return C.return(d);e=Math.trunc((b.segments.length-1)/2);f=b.segments[e];g=Es(c(),b.segments[0].h);h=g[0];k=new kb(h);l=k.Sa.split(".").pop();if(m=Bt[l])return C.return(Ss(m));n=wf;r=null;q=Ct(a,b,f.g,c);a.U.clear();if(!q){C.F(2);break}u=qf(q.aa(),a.g.retryParameters);return D(C,Dt(a,u,n,{type:0}),3);case 3:v=C.h,r=v.data;case 2:return y=
886
- qf(g,a.g.retryParameters),D(C,Dt(a,y,n,{type:1}),4);case 4:z=C.h;(x=z.headers["content-type"])&&(x=x.split(";")[0].toLowerCase());if("ts"==l||"video/mp2t"==x){var E=z.data;var H=nc(E);H=(new mi).parse(H);var G=H.hd();H=H.xf();var I=[],J=!1,L=!1;switch(G.audio){case "aac":I.push("mp4a.40.2");J=!0;break;case "mp3":I.push("mp4a.40.34");J=!0;break;case "ac3":I.push("ac-3");J=!0;break;case "ec3":I.push("ec-3"),J=!0}switch(G.video){case "avc":H.ra?I.push(H.ra):I.push("avc1.42E01E");L=!0;break;case "hvc":H.ra?
887
- I.push(H.ra):I.push("hvc1.1.6.L93.90"),L=!0}if(I.length){G=J&&!L;J=new Map;if(L){L=new tc("video/mp2t");L.i(E);E=t(L.j());for(var N=E.next();!N.done;N=E.next())N=N.value,J.set(N,N);L.h()}H={type:G?"audio":"video",mimeType:"video/mp2t",codecs:I.join(", "),language:null,height:H.height,width:H.width,channelCount:null,sampleRate:null,closedCaptions:J}}else H=null;if(A=H)return C.return(A)}else if("mp4"==l||"cmfv"==l||"m4s"==l||"video/mp4"==x||"audio/mp4"==x||"video/iso.segment"==x)if(B=Ts(r,z.data))return C.return(B);
888
- return C.return(d)}})}function et(a){if($s(a)){if(a.ya==Et){for(var b,c=b=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.Gb),c=Math.min(c,e.nc));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.Ae(b)}}else a.l.ab(Ft(a));a.l.je()}
886
+ qf(g,a.g.retryParameters),D(C,Dt(a,y,n,{type:1}),4);case 4:z=C.h;(x=z.headers["content-type"])&&(x=x.split(";")[0].toLowerCase());if("ts"==l||"video/mp2t"==x){var E=z.data;var H=nc(E);H=(new mi).parse(H);var G=H.hd();H=H.xf();var I=[],J=!1,L=!1;switch(G.audio){case "aac":I.push("mp4a.40.2");J=!0;break;case "mp3":I.push("mp4a.40.34");J=!0;break;case "ac3":I.push("ac-3");J=!0;break;case "ec3":I.push("ec-3"),J=!0}switch(G.video){case "avc":H.sa?I.push(H.sa):I.push("avc1.42E01E");L=!0;break;case "hvc":H.sa?
887
+ I.push(H.sa):I.push("hvc1.1.6.L93.90"),L=!0}if(I.length){G=J&&!L;J=new Map;if(L){L=new tc("video/mp2t");L.i(E);E=t(L.j());for(var N=E.next();!N.done;N=E.next())N=N.value,J.set(N,N);L.h()}H={type:G?"audio":"video",mimeType:"video/mp2t",codecs:I.join(", "),language:null,height:H.height,width:H.width,channelCount:null,sampleRate:null,closedCaptions:J}}else H=null;if(A=H)return C.return(A)}else if("mp4"==l||"cmfv"==l||"m4s"==l||"video/mp4"==x||"audio/mp4"==x||"video/iso.segment"==x)if(B=Ts(r,z.data))return C.return(B);
888
+ return C.return(d)}})}function et(a){if($s(a)){if(a.oa==Et){for(var b,c=b=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.Gb),c=Math.min(c,e.nc));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.Ae(b)}}else a.l.ab(Ft(a));a.l.je()}
889
889
  function pt(a,b){var c=(new kb(a.Z)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=X(e,"NAME");var f=X(e,"VALUE");e=X(e,"QUERYPARAM");d&&f&&(a.s.has(d)||a.s.set(d,f));e&&(d=c.get(e)[0])&&!a.s.has(d)&&a.s.set(e,d)}}
890
890
  function gt(a,b,c){c=(new kb(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=X(f,"NAME"),h=X(f,"VALUE");e=X(f,"QUERYPARAM");f=X(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.s.get(f))&&d.set(f,e)}return d}
891
891
  function st(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=X(d,"AUDIO");c=X(d,"VIDEO");var f=X(d,"SUBTITLES");d=Gt(a,d);if(f){var g=Jb(Lb,d);a.I.set(f,g);xc(d,g)}e&&(f=Jb("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.I.set(e,f));c&&(e=Jb("video",d),e||(e=a.g.hls.defaultVideoCodec),a.I.set(c,e))}}
@@ -909,8 +909,8 @@ m=n.next().value;n=n.next().value;(m=c.get(m))&&qr(a.j,l,m,n)}}c=X(h,"LANGUAGE")
909
909
  function Kt(a,b){var c,d,e,f,g,h,k,l,m,n;return K(function(r){if(1==r.g){c=xs(b,"URI");d=X(b,"CODECS","jpeg")||"";if(a.i.has(c))return r.return(a.i.get(c));e=X(b,"LANGUAGE");f=X(b,"NAME");g=X(b,"CHARACTERISTICS");h=Lt(a,a.C++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=X(b,"RESOLUTION"))?D(r,h.stream.createSegmentIndex(),3):r.F(2)}2!=r.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])*
910
910
  Number(m.split("x")[1]));if(n=X(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.i.set(c,h);return r.return(h)})}
911
911
  function Tt(a,b,c,d,e,f,g,h,k){for(var l=a.C++,m=[],n=t(b),r=n.next();!r.done;r=n.next()){var q=r.value;r=xs(q,"URI");q=X(q,"PATHWAY-ID");a.j&&q&&qr(a.j,l,q,r);m.push(r)}n=m.sort().join(",");if(a.i.has(n))return a.i.get(n);a:{b=X(b[0],"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.H.get(b);break a}if(!b&&a.H.size)for(b=t(a.H.keys()).next();!b.done;){b=a.H.get(b.value);break a}}b=null}c=Ib(d,c);d=Lt(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.i.set(n,d);return d}
912
- function Lt(a,b,c,d,e,f,g,h,k,l,m,n,r,q){function u(C){var E,H,G,I,J,L,N,R,U,Z,aa,la,Oa,Xa,Gb,lb,bc;return K(function(Aa){switch(Aa.g){case 1:return E=x.aa(),D(Aa,Ys(a,x.aa(),!0),2);case 2:H=Aa.h;if(C.aborted)return Aa.return();G=H.uri;G==H.originalUri||E.includes(G)||z.push(G);I=Ls(a.ha,H.data);J=void 0;if(a.$||!a.g.hls.disableCodecGuessing){Aa.F(3);break}return D(Aa,ot(a,I,v),4);case 4:L=Aa.h,J=L.mimeType,d=L.codecs;case 3:return N=$s(a),D(Aa,xt(a,0,I,v,G,d,e,f,g,h,k,l,m,n,r,q,J),5);case 5:R=Aa.h;
913
- if(C.aborted)return Aa.return();U=R.stream;$s(a)&&!N&&zt(a,I);x.nc=R.nc;x.Gb=R.Gb;x.Rd=R.Rd;x.Qd=R.Qd;x.md=R.md;x.me=R.me;x.kb=R.kb;x.mb=R.mb;x.Ff=!0;y.segmentIndex=U.segmentIndex;y.encrypted=U.encrypted;y.drmInfos=U.drmInfos;y.keyIds=U.keyIds;y.mimeType=U.mimeType;y.bandwidth=U.bandwidth;y.codecs=U.codecs||y.codecs;y.drmInfos.length&&a.h.newDrmInfo(y);Z=Mb;if(e==Z.qa||e==Z.W)for(aa=t(a.i.values()),la=aa.next();!la.done;la=aa.next())Oa=la.value,Oa.Ff||Oa.type!=e||(Oa.stream.mimeType=U.mimeType);e==
912
+ function Lt(a,b,c,d,e,f,g,h,k,l,m,n,r,q){function u(C){var E,H,G,I,J,L,N,R,U,Z,aa,la,Oa,Xa,Gb,lb,bc;return K(function(Aa){switch(Aa.g){case 1:return E=x.aa(),D(Aa,Ys(a,x.aa(),!0),2);case 2:H=Aa.h;if(C.aborted)return Aa.return();G=H.uri;G==H.originalUri||E.includes(G)||z.push(G);I=Ls(a.qa,H.data);J=void 0;if(a.$||!a.g.hls.disableCodecGuessing){Aa.F(3);break}return D(Aa,ot(a,I,v),4);case 4:L=Aa.h,J=L.mimeType,d=L.codecs;case 3:return N=$s(a),D(Aa,xt(a,0,I,v,G,d,e,f,g,h,k,l,m,n,r,q,J),5);case 5:R=Aa.h;
913
+ if(C.aborted)return Aa.return();U=R.stream;$s(a)&&!N&&zt(a,I);x.nc=R.nc;x.Gb=R.Gb;x.Rd=R.Rd;x.Qd=R.Qd;x.md=R.md;x.me=R.me;x.kb=R.kb;x.mb=R.mb;x.Ff=!0;y.segmentIndex=U.segmentIndex;y.encrypted=U.encrypted;y.drmInfos=U.drmInfos;y.keyIds=U.keyIds;y.mimeType=U.mimeType;y.bandwidth=U.bandwidth;y.codecs=U.codecs||y.codecs;y.drmInfos.length&&a.h.newDrmInfo(y);Z=Mb;if(e==Z.ra||e==Z.W)for(aa=t(a.i.values()),la=aa.next();!la.done;la=aa.next())Oa=la.value,Oa.Ff||Oa.type!=e||(Oa.stream.mimeType=U.mimeType);e==
914
914
  Z.xa&&(Xa=U.segmentIndex.get(0))&&Xa.g&&(y.mimeType="application/mp4");Ut(a)&&(a.Ua?At(a,[x]):(a.Ua=!0,Gb=Array.from(a.i.values()),lb=Gb.filter(function(mb){return mb.stream.segmentIndex}),At(a,lb),et(a),bc=a.m,0<bc&&a.u.S(bc)));F(Aa)}})}function v(){return a.j&&1<c.length?rr(a.j,b):z.concat(Fs([a.Z],c,a.s))}var y=Vt(a,d,e,f,g,h,k,l,m,n,r,q),z=[],x={stream:y,type:e,Vg:z,aa:v,nc:0,Gb:0,me:new Map,Rd:!1,Qd:!1,md:!1,Ye:-1,kb:-1,mb:-1,Ff:!1},A=null,B=new AbortController;y.createSegmentIndex=function(){if(A)return A;
915
915
  B=new AbortController;return A=new Promise(function(C){C(u(B.signal))})};y.closeSegmentIndex=function(){A&&!y.segmentIndex&&B.abort();y.segmentIndex&&(y.segmentIndex.release(),y.segmentIndex=null);A=null};return x}function Ft(a){var b=Infinity;a=t(a.i.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.Gb));return b}
916
916
  function bt(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Gj(d.segmentIndex,function(e){c.push(e)});a.l.td(c)}function At(a,b){if(!$s(a))for(var c=Ft(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.yc(0,c);bt(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?lt(a,b):nt(a,b)}
@@ -923,29 +923,29 @@ segmentIndex:null,mimeType:r,codecs:b,kind:c==Lb?"subtitle":void 0,encrypted:!1,
923
923
  function ht(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=As(d.value.g,"EXT-X-KEY"),c.push.apply(c,w(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=xs(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=X(g,"KEYFORMAT")||"identity",g=(h=Nt[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,uh:d}}
924
924
  function Yt(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new P(2,4,4042);var f=0,g=X(b,"IV","");if(g){var h=gg(g.substr(2));if(16!=h.byteLength)throw new P(2,4,4048);}else f=Ds(c.g,"EXT-X-MEDIA-SEQUENCE",0);var k={method:"AES-128",iv:h,firstMediaSequenceNumber:f,fetchKey:function(){var l,m,n,r,q;return K(function(u){if(1==u.g)return l=Es(d(),xs(b,"URI"),e),m=qf([l],a.g.retryParameters),
925
925
  D(u,Dt(a,m,6),2);if(3!=u.g){n=u.h;if(!n.data||16!=n.data.byteLength)throw new P(2,4,4049);r={name:"AES-CBC"};q=k;return D(u,window.crypto.subtle.importKey("raw",n.data,r,!0,["decrypt"]),3)}q.cryptoKey=u.h;k.fetchKey=void 0;F(u)})}};return k}
926
- function kt(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Cs(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Cs(b.g,"EXT-X-TARGETDURATION");if(!d)throw new P(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Cs(b.g,"EXT-X-PART-INF"))a.M=Number(xs(e,"PART-TARGET"));b=Cs(b.g,"EXT-X-SERVER-CONTROL");a.D&&a.M?(a.m=a.Ta?5*a.M<=c?Math.min(a.M,a.m):Math.min(c,a.m):Math.min(a.M,a.m),a.ea=b?Number(xs(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
927
- b.getAttribute("HOLD-BACK"):null,a.wa=c?Number(c.value):0);a.oa=Math.max(d,a.oa)}function zt(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ea)b=a.ea;else if(a.wa)b=a.wa;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.oa*c}a.l.eh(0);a.l.ah(b);a.l.Mc(!1)}
926
+ function kt(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Cs(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Cs(b.g,"EXT-X-TARGETDURATION");if(!d)throw new P(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Cs(b.g,"EXT-X-PART-INF"))a.M=Number(xs(e,"PART-TARGET"));b=Cs(b.g,"EXT-X-SERVER-CONTROL");a.D&&a.M?(a.m=a.Ta?5*a.M<=c?Math.min(a.M,a.m):Math.min(c,a.m):Math.min(a.M,a.m),a.ha=b?Number(xs(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
927
+ b.getAttribute("HOLD-BACK"):null,a.ea=c?Number(c.value):0);a.ya=Math.max(d,a.ya)}function zt(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ha)b=a.ha;else if(a.ea)b=a.ea;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.ya*c}a.l.eh(0);a.l.ah(b);a.l.Mc(!1)}
928
928
  function Ct(a,b,c,d,e){var f=Cs(c,"EXT-X-MAP");if(!f)return null;var g=xs(f,"URI"),h=Es(d(),g,e);g=[h.toString(),X(f,"BYTERANGE","")].join("-");if(!a.U.has(g)){var k=void 0,l=null;c=t(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?"AES-128"==xs(m,"METHOD")&&m.id<f.id&&(k=Yt(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=Zt(h,f,l,k);a.U.set(g,b)}return a.U.get(g)}
929
929
  function Zt(a,b,c,d){var e=0,f=null;b=X(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 Dh(function(){return a},e,f,null,null,null,d)}
930
- function $t(a,b,c,d,e,f,g,h,k){var l=d.g,m=Cs(l,"EXTINF"),n=0,r=0,q=null;d.sb.length&&!a.D&&Ua("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 u=null;if(!a.g.hls.ignoreManifestProgramDateTime){var v=Cs(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=wg(v.value))}var y=Gh;Cs(l,"EXT-X-GAP")&&(y=2);if(!m){if(0==d.sb.length)throw new P(2,4,4024,"EXTINF");
931
- if(!a.D)return null}var z=[];v=!1;var x=null,A=!1,B=!1;if(a.D&&d.sb.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var C=u,E={},H=0;H<d.sb.length;E={Zc:E.Zc,Jd:E.Jd},H++){var G=d.sb[H],I=0==H?c:z[z.length-1],J=0==H?e:I.endTime,L=Number(X(G,"DURATION"))||a.M;if(L){var N=J+L,R=0,U=null;"EXT-X-PRELOAD-HINT"==G.name?(R=(R=X(G,"BYTERANGE-START"))?Number(R):0,(I=X(G,"BYTERANGE-LENGTH"))?U=R+Number(I)-1:R&&(U=Number.MAX_SAFE_INTEGER)):
930
+ function $t(a,b,c,d,e,f,g,h,k){var l=d.g,m=Cs(l,"EXTINF"),n=0,r=0,q=null;d.ub.length&&!a.D&&Ua("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 u=null;if(!a.g.hls.ignoreManifestProgramDateTime){var v=Cs(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=wg(v.value))}var y=Gh;Cs(l,"EXT-X-GAP")&&(y=2);if(!m){if(0==d.ub.length)throw new P(2,4,4024,"EXTINF");
931
+ if(!a.D)return null}var z=[];v=!1;var x=null,A=!1,B=!1;if(a.D&&d.ub.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var C=u,E={},H=0;H<d.ub.length;E={Zc:E.Zc,Jd:E.Jd},H++){var G=d.ub[H],I=0==H?c:z[z.length-1],J=0==H?e:I.endTime,L=Number(X(G,"DURATION"))||a.M;if(L){var N=J+L,R=0,U=null;"EXT-X-PRELOAD-HINT"==G.name?(R=(R=X(G,"BYTERANGE-START"))?Number(R):0,(I=X(G,"BYTERANGE-LENGTH"))?U=R+Number(I)-1:R&&(U=Number.MAX_SAFE_INTEGER)):
932
932
  (R=X(G,"BYTERANGE"),U=t(au(I,R)),R=U.next().value,U=U.next().value);E.Jd=X(G,"URI");if(E.Jd){I=Gh;"YES"==X(G,"GAP")&&(I=2,A=!0);E.Zc=null;var Z=function(la){return function(){null==la.Zc&&(la.Zc=Es(h(),la.Jd,f));return la.Zc}}(E);n&&0<=R&&null!=U&&(x=Z,v=!0);J=new Fh(J,N,Z,R,U,b,0,0,Infinity,[],"",null,C,I,k);"EXT-X-PRELOAD-HINT"==G.name&&(J.Gf(),B=!0);"YES"!=X(G,"INDEPENDENT")&&0<H&&J.le();z.push(J);C&&(C+=L)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(z.length)n=z[z.length-
933
933
  1].endTime;else return null;v&&(A||0!=z[0].bb?(v=!1,x=null):z=[]);(m=Cs(l,"EXT-X-BYTERANGE"))?(q=t(au(c,m.value)),r=q.next().value,q=q.next().value):z.length&&(r=z[0].bb,q=z[z.length-1].Ia);c="";m=null;"image"==g.type&&(c="1x1",g=Cs(l,"EXT-X-TILES"))&&(c=xs(g,"LAYOUT"),(g=X(g,"DURATION"))&&(m=Number(g)));var aa=null;b=new Fh(e,n,function(){if(x)return x();null==aa&&(aa=Es(h(),d.h,f));return aa||[]},r,q,b,0,0,Infinity,z,c,m,u,y,k,0<z.length&&!!d.h);v&&(a.Ta=!0,b.Og(),B&&b.Gf());return b}
934
934
  function au(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ia+1,d=c+b-1);return[c,d]}
935
- function it(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Ds(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=Ds(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=Cs(b.g,"EXT-X-SKIP"),n=m?Number(X(m,"SKIPPED-SEGMENTS")):0,r=l+n,q=0;$s(a)&&d.has(r)&&(q=d.get(r));var u=[],v=null;m=[];for(var y=0;y<g.length;y++){var z=g[y],x=0==y?q:v.endTime;r=l+n+y;Cs(z.g,"EXT-X-DISCONTINUITY")&&k++;var A=t(z.g);for(var B=A.next();!B.done;B=A.next())B=B.value,"EXT-X-KEY"==B.name&&("AES-128"==xs(B,"METHOD")?h=Yt(a,B,b,f,e):h=void 0);d.set(r,x);A=Ct(a,
936
- b,z.g,f,e);!a.D&&a.h.isAutoLowLatencyMode()&&(a.h.enableLowLatencyMode(),a.D=a.h.isLowLatencyMode());if(x=$t(a,A,v,z,x,e,c,f,h))(v=Ds(z.g,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:x.endTime-x.startTime}):m.length&&(v=m.pop(),v.duration+=x.endTime-x.startTime,m.push(v)),v=x,x.l=k,a.g.hls.ignoreManifestProgramDateTime&&null!=a.K&&r<a.K||u.push(x)}b=void 0;m.length&&(b=m.reduce(function(C,E){return C+E.duration},0),b=Math.round(m.reduce(function(C,E){return C+E.bitrate*E.duration},0)/b*1E3));if(m=
937
- u.some(function(C){return null!=C.i}))for(c={},d=0;d<u.length;c={Qc:c.Qc,Pc:c.Pc,Fd:c.Fd,Mb:c.Mb,Oc:c.Oc},d++)if(c.Mb=u[d],null==c.Mb.i)for(c.Pc=0,c.Qc=d,e=function(C){return function(){var E=u[C.Qc];if(E){if(null!=E.i)return E.i+C.Pc;C.Pc-=E.endTime-E.startTime;C.Qc+=1}return null}}(c),c.Oc=0,c.Fd=d,f=function(C){return function(){var E=u[C.Fd];if(E){E!=C.Mb&&(C.Oc+=E.endTime-E.startTime);if(null!=E.i)return E.i+C.Oc;--C.Fd}return null}}(c);null==c.Mb.i;)c.Mb.i=f(),null==c.Mb.i&&(c.Mb.i=e());if(m)for(c=
938
- t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.i,e=t(e.h),f=e.next();!f.done;f=e.next())f=f.value,f.i=d,d+=f.endTime-f.startTime;a=a.T;if(m&&Infinity!=a)for(m=t(u),d=m.next();!d.done;d=m.next())d.value.hg(a);return{segments:u,bandwidth:b}}function It(a,b){if(a==Lb){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"}
939
- function Jt(a){return a==Lb?"text/vtt":bu[a].mp4}
940
- function Xt(a,b,c,d,e,f){var g,h,k,l,m,n,r,q,u,v,y,z,x;return K(function(A){switch(A.g){case 1:g=wf;h=Math.trunc((d.segments.length-1)/2);k=Es(f(),d.segments[h].h,e);l=new kb(k[0]);m=l.Sa.split(".").pop();n=bu[b];if((r=n[m])||(r=Bt[m])||(r=It(b,c)))return A.return(r);u=1;v=qf(k,a.g.retryParameters);ta(A,2);v.method="HEAD";return D(A,Dt(a,v,g,{type:u}),4);case 4:y=A.h;q=y.headers["content-type"];va(A,3);break;case 2:z=wa(A);if(!z||1002!=z.code){A.F(3);break}v.method="GET";return D(A,Dt(a,v,g,{type:u}),
941
- 6);case 6:x=A.h,q=x.headers["content-type"];case 3:return q?A.return(q.split(";")[0]):A.return(Jt(b))}})}function yt(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 Ys(a,b,c){return Dt(a,qf(b,a.g.retryParameters),0,{type:c?2:3})}
935
+ function it(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Ds(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=Ds(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=Cs(b.g,"EXT-X-SKIP"),n=m?Number(X(m,"SKIPPED-SEGMENTS")):0,r=l+n,q=0;$s(a)&&d.has(r)&&(q=d.get(r));0===q&&a.oa==Et&&0<d.size&&!d.has(r)&&(q=a.l.sb());var u=[],v=null;m=[];for(var y=0;y<g.length;y++){var z=g[y],x=0==y?q:v.endTime;r=l+n+y;Cs(z.g,"EXT-X-DISCONTINUITY")&&k++;var A=t(z.g);for(var B=A.next();!B.done;B=A.next())B=B.value,"EXT-X-KEY"==B.name&&("AES-128"==xs(B,
936
+ "METHOD")?h=Yt(a,B,b,f,e):h=void 0);d.set(r,x);A=Ct(a,b,z.g,f,e);!a.D&&a.h.isAutoLowLatencyMode()&&(a.h.enableLowLatencyMode(),a.D=a.h.isLowLatencyMode());if(x=$t(a,A,v,z,x,e,c,f,h))(v=Ds(z.g,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:x.endTime-x.startTime}):m.length&&(v=m.pop(),v.duration+=x.endTime-x.startTime,m.push(v)),v=x,x.l=k,a.g.hls.ignoreManifestProgramDateTime&&null!=a.K&&r<a.K||u.push(x)}b=void 0;m.length&&(b=m.reduce(function(C,E){return C+E.duration},0),b=Math.round(m.reduce(function(C,
937
+ E){return C+E.bitrate*E.duration},0)/b*1E3));if(m=u.some(function(C){return null!=C.i}))for(c={},d=0;d<u.length;c={Qc:c.Qc,Pc:c.Pc,Fd:c.Fd,Mb:c.Mb,Oc:c.Oc},d++)if(c.Mb=u[d],null==c.Mb.i)for(c.Pc=0,c.Qc=d,e=function(C){return function(){var E=u[C.Qc];if(E){if(null!=E.i)return E.i+C.Pc;C.Pc-=E.endTime-E.startTime;C.Qc+=1}return null}}(c),c.Oc=0,c.Fd=d,f=function(C){return function(){var E=u[C.Fd];if(E){E!=C.Mb&&(C.Oc+=E.endTime-E.startTime);if(null!=E.i)return E.i+C.Oc;--C.Fd}return null}}(c);null==
938
+ c.Mb.i;)c.Mb.i=f(),null==c.Mb.i&&(c.Mb.i=e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.i,e=t(e.h),f=e.next();!f.done;f=e.next())f=f.value,f.i=d,d+=f.endTime-f.startTime;a=a.T;if(m&&Infinity!=a)for(m=t(u),d=m.next();!d.done;d=m.next())d.value.hg(a);return{segments:u,bandwidth:b}}
939
+ function It(a,b){if(a==Lb){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"}function Jt(a){return a==Lb?"text/vtt":bu[a].mp4}
940
+ function Xt(a,b,c,d,e,f){var g,h,k,l,m,n,r,q,u,v,y,z,x;return K(function(A){switch(A.g){case 1:g=wf;h=Math.trunc((d.segments.length-1)/2);k=Es(f(),d.segments[h].h,e);l=new kb(k[0]);m=l.Sa.split(".").pop();n=bu[b];if((r=n[m])||(r=Bt[m])||(r=It(b,c)))return A.return(r);u=1;v=qf(k,a.g.retryParameters);ta(A,2);v.method="HEAD";return D(A,Dt(a,v,g,{type:u}),4);case 4:y=A.h;q=y.headers["content-type"];va(A,3);break;case 2:z=wa(A);if(!z||1002!=z.code&&1001!=z.code){A.F(3);break}v.method="GET";return D(A,
941
+ Dt(a,v,g,{type:u}),6);case 6:x=A.h,q=x.headers["content-type"];case 3:return q?A.return(q.split(";")[0]):A.return(Jt(b))}})}function yt(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 Ys(a,b,c){return Dt(a,qf(b,a.g.retryParameters),0,{type:c?2:3})}
942
942
  function Ws(a){var b,c,d,e,f,g;K(function(h){switch(h.g){case 1:if(!a.h)return h.return();ta(h,2);b=Date.now();return D(h,a.update(),4);case 4:c=Date.now();$s(a)&&(d=(c-b)/1E3,a.Ma.sample(1,d),e=a.m,f=Math.max(0,e-dc(a.Ma)),a.u.S(f));va(h,3);break;case 2:g=wa(h);if(!a.h)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.h.onError(g),h.return();g.severity=1;a.h.onError(g);a.u.S(.1);case 3:if(!a.h)return h.return();a.h.onManifestUpdated();F(h)}})}
943
- function $s(a){return a.ya!=Xs}function dt(a,b){a.ya=b;a.l&&a.l.Mc(!$s(a));$s(a)||a.u.stop()}function Dt(a,b,c,d){if(!a.P)throw new P(2,7,7001);b=a.h.networkingEngine.request(c,b,d);lf(a.P,b);return b.promise}M("shaka.hls.HlsParser",Vs);
943
+ function $s(a){return a.oa!=Xs}function dt(a,b){a.oa=b;a.l&&a.l.Mc(!$s(a));$s(a)||a.u.stop()}function Dt(a,b,c,d){if(!a.P)throw new P(2,7,7001);b=a.h.networkingEngine.request(c,b,d);lf(a.P,b);return b.promise}M("shaka.hls.HlsParser",Vs);
944
944
  var Bt={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},bu={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",
945
945
  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"}},Nt={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new P(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new P(2,4,4041);return Fb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=xs(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
946
946
  b=xs(a,"URI");b=Rs(b);b=nc(b.data);b=Fb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=X(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=xs(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=xs(a,"URI");a=Rs(a);a=nc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=lg(a,b,new Set,0);return Fb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a){a=
947
947
  xs(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Fb("org.w3.clearkey",null):null}},Xs="VOD",Wt="EVENT",Et="LIVE",ct={ph:Xs,oj:Wt,wj:Et};yh["application/x-mpegurl"]=function(){return new Vs};yh["application/vnd.apple.mpegurl"]=function(){return new Vs};function cu(a){var b=0,c=rc(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=nc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function du(a){if(a=eu(a))a:{a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next())if(b=mg(b.value,"LA_URL")){a=b.textContent;break a}a=""}else a="";return a}
948
- function eu(a){a=fg(a.textContent);a=cu(a).filter(function(b){return b.type===fu})[0];if(!a)return null;a=Lf(a.value,!0);return(a=Fg(a,"WRMHEADER"))?a:null}var fu=1,gu=(new Map).set("com.microsoft.playready",du).set("com.microsoft.playready.recommendation",du).set("com.microsoft.playready.software",du).set("com.microsoft.playready.hardware",du);function hu(a){if(!ku){ku=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);lu=mu("ftyp",b,d,b,c);b=mu("dref",nu);ou=mu("dinf",b)}this.g=a}
948
+ function eu(a){a=fg(a.textContent);a=cu(a).filter(function(b){return b.type===fu})[0];if(!a)return null;a=Lf(a.value,!0);return(a=Fg(a,"WRMHEADER"))?a:null}var fu=1,gu=(new Map).set("com.microsoft.playready",du).set("com.microsoft.playready.recommendation",du).set("com.microsoft.playready.software",du).set("com.microsoft.playready.hardware",du);function hu(a){if(!iu){iu=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);lu=mu("ftyp",b,d,b,c);b=mu("dref",nu);ou=mu("dinf",b)}this.g=a}
949
949
  function pu(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=mu;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/(qu+1));m=Math.floor(m%(qu+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(w(ru(h,4)),[0,0,0,0],w(ru(n,4)),w(ru(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],w(ru(k,2)),[0,0],w(ru(l,
950
950
  2)),[0,0]));h=mu("tkhd",h);k=mu;n=g.duration*g.timescale;l=Math.floor(n/(qu+1));n=Math.floor(n%(qu+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(w(ru(g.timescale,4)),w(ru(l,4)),w(ru(n,4)),w(ru(m,2)),[0,0]));l=mu("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=su;break;case "audio":m=tu}n=mu("hdlr",m);a:{switch(g.type){case "video":g=mu("minf",mu("vmhd",uu),ou,vu(g));break a;
951
951
  case "audio":g=mu("minf",mu("smhd",wu),ou,vu(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=jg.apply(cg,w(b));f=a.g[0];c=mu;d=f.duration*f.timescale;e=Math.floor(d/(qu+1));d=Math.floor(d%(qu+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(ru(f.timescale,4)),w(ru(e,4)),w(ru(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,
@@ -959,11 +959,11 @@ case "audio":if(a.codecs.includes("mp3"))a=mu(".mp3",zu(a));else if(a.codecs.inc
959
959
  function zu(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(w(ru(a.stream.audioSamplingRate||44100,2)),[0,0]))}
960
960
  function yu(a){var b=mu;var c=a.codecs.substring(0,a.codecs.indexOf("."));for(var d=0,e=0;e<c.length;e+=1)d|=c.charCodeAt(e)<<8*(c.length-e-1);c=new Uint8Array([].concat(w(ru(d,4))));c=mu("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=mu("schm",d);e=mu;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);a=t(a.stream.drmInfos);for(var g=a.next();!g.done;g=a.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=xu(h.value)}a=new Uint8Array([0,
961
961
  0,0,0,0,0,1,8]);f=mu("tenc",a,f);return b("sinf",c,d,e("schi",f))}
962
- function Fu(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=mu;var g=new Uint8Array([0,0,0,0].concat(w(ru(c.data?c.data.ub:0,4))));g=mu("mfhd",g);var h;var k=c.data?c.data.$a:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.Wa<<4|m.Ya<<2|m.Xa}k=mu("sdtp",l);var n=k.length+92;l=mu;h=new Uint8Array([0,0,0,58].concat(w(ru(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=mu("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
962
+ function Fu(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=mu;var g=new Uint8Array([0,0,0,0].concat(w(ru(c.data?c.data.vb:0,4))));g=mu("mfhd",g);var h;var k=c.data?c.data.$a:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.Wa<<4|m.Ya<<2|m.Xa}k=mu("sdtp",l);var n=k.length+92;l=mu;h=new Uint8Array([0,0,0,58].concat(w(ru(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=mu("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
963
963
  0;var r=Math.floor(m%(qu+1));m=new Uint8Array([1,0,0,0].concat(w(ru(Math.floor(m/(qu+1)),4)),w(ru(r,4))));m=mu("tfdt",m);var q=n;n=c.data?c.data.$a:[];r=n.length;var u=12+16*r,v=new Uint8Array(u);q+=8+u;v.set(["video"===c.type?1:0,0,15,1].concat(w(ru(r,4)),w(ru(q,4))),0);for(q=0;q<r;q++){var y=n[q];u=ru(y.duration,4);var z=ru(y.size,4),x=y.flags;y=ru(y.fb,4);v.set([].concat(w(u),w(z),[x.hb<<2|x.Wa,x.Ya<<6|x.Xa<<4|x.ib,x.Va&61440,x.Va&15],w(y)),12+16*q)}n=mu("trun",v);k=l("traf",h,m,n,k);f=f("moof",
964
964
  g,k);e.call(d,b,[f,Gu(c)])}return jg.apply(cg,w(b))}function Gu(a){a=(a.data?a.data.$a:[]).map(function(b){return b.data});a=jg.apply(cg,w(a));return mu("mdat",a)}function ru(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function xu(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}
965
965
  function mu(a){var b=Ga.apply(1,arguments),c=Hu[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],Hu[a]=c);for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e}
966
- var ku=!1,qu=Math.pow(2,32)-1,Hu={},su=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),tu=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Bu=new Uint8Array([0,0,0,0,0,0,0,0]),Cu=new Uint8Array([0,0,0,0,0,0,0,0]),Eu=new Uint8Array([0,0,0,0,0,0,0,0]),Du=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),uu=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),wu=new Uint8Array([0,
966
+ var iu=!1,qu=Math.pow(2,32)-1,Hu={},su=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),tu=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Bu=new Uint8Array([0,0,0,0,0,0,0,0]),Cu=new Uint8Array([0,0,0,0,0,0,0,0]),Eu=new Uint8Array([0,0,0,0,0,0,0,0]),Du=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),uu=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),wu=new Uint8Array([0,
967
967
  0,0,0,0,0,0,0]),Au=new Uint8Array([0,0,0,0,0,0,0,1]),lu=new Uint8Array([]),nu=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ou=new Uint8Array([]);function Iu(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.u=1;this.i=null;this.D=new cc(5);this.s=new xd(function(){Ju(a)});this.C=new kf;this.m=new Map}p=Iu.prototype;p.configure=function(a){this.g=a};p.start=function(a,b){var c=this;return K(function(d){if(1==d.g)return c.l=[a],c.h=b,D(d,Ku(c),2);if(!c.h)throw new P(2,7,7001);return d.return(c.j)})};
968
968
  function Ju(a){var b;K(function(c){switch(c.g){case 1:return ta(c,2),D(c,Ku(a),4);case 4:va(c,3);break;case 2:b=wa(c),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();F(c)}})}p.stop=function(){this.g=this.h=null;this.l=[];this.j=null;null!=this.s&&(this.s.stop(),this.s=null);this.m.clear();return this.C.destroy()};
969
969
  p.update=function(){var a=this,b;return K(function(c){if(1==c.g)return ta(c,2),D(c,Ku(a),4);if(2!=c.g)return va(c,0);b=wa(c);if(!a.h||!b)return c.return();a.h.onError(b);F(c)})};p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(){};
@@ -1061,7 +1061,7 @@ function uw(a,b,c,d){var e,f,g,h,k;return K(function(l){if(1==l.g)return e=null,
1061
1061
  c.configure(d.manifest),vw(a),D(l,c.start(b,g),2);if(3!=l.g)return h=l.h,vw(a),k=Rw(h),D(l,Promise.all(db(k,function(m){return m.createSegmentIndex()})),3);vw(a);if(e)throw e;return l.return(h)})}function ww(a,b,c,d){var e;return K(function(f){return 1==f.g?(e=new Ig({pc:a.g,onError:c,ue:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),D(f,Ng(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?D(f,$g(e),3):f.return(e)})}
1062
1062
  function Hw(a,b,c,d){var e=new Map,f=Rw(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=Sw(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),jg:Array.from(e.values())}}
1063
1063
  function Sw(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,
1064
- spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;Tw(d,c.presentationTimeline.Fb(),function(l){var m=gv(l),n=void 0;if(!f.has(m)){var r=l.endTime-l.startTime;r=ow(b,d.id)*r;r=jv(a.g,r);f.set(m,new fv(l,r,k,!1))}l.g&&(n=gv(l.g),f.has(n)||(r=.5*ow(b,d.id),r=jv(a.g,r),f.set(n,new fv(l.g,r,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,
1064
+ spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;Tw(d,c.presentationTimeline.sb(),function(l){var m=gv(l),n=void 0;if(!f.has(m)){var r=l.endTime-l.startTime;r=ow(b,d.id)*r;r=jv(a.g,r);f.set(m,new fv(l,r,k,!1))}l.g&&(n=gv(l.g),f.has(n)||(r=.5*ow(b,d.id),r=jv(a.g,r),f.set(n,new fv(l.g,r,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,
1065
1065
  endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function Tw(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function vw(a){if(a.l.g)throw new P(2,9,7001);}function tw(){if(!qw())throw new P(2,9,9E3);}
1066
1066
  function Iw(a,b){return K(function(c){if(1==c.g)return a.i.push(b),ua(c,2),D(c,b,4);if(2!=c.g)return c.return(c.h);xa(c);xc(a.i,b);return ya(c,0)})}function sw(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){xc(a.i,c)})}function Ow(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
1067
1067
  function Nw(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=Hv(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:Mw(d,!1),videoCapabilities:Mw(d,!0)}});return D(h,fw(b,a,f),2)}return 3!=h.g?(g=h.h,D(h,e.remove(g),3)):D(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
@@ -1083,172 +1083,172 @@ function ux(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=func
1083
1083
  function vx(){var a=MediaSource.isTypeSupported;Dd("Web0S")||(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)})}Uw.MediaSource=ox;ox.install=px;Xw(px);function wx(){}function xx(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?yx():void 0!=window.orientation&&zx())}function yx(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
1084
1084
  function zx(){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 Ax;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new O("change");b.dispatchEvent(c)})}Uw.Orientation=wx;wx.install=xx;function Ax(){cb.call(this);this.type="";this.angle=0}pa(Ax,cb);
1085
1085
  Ax.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)};
1086
- Ax.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};Xw(xx);function Bx(){}var Cx,Dx,Ex,Fx,Gx,Hx;function Ix(a,b){try{var c=new Jx(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Kx(a){var b=this.mediaKeys;b&&b!=a&&Lx(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?Lx(a,this):Promise.resolve()}
1087
- function Mx(a){a=nc(a.initData);if(rc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Lf(a.subarray(4),!0);a=Of(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=oc(a);this.dispatchEvent(b)}Uw.PatchedMediaKeysApple=Bx;
1088
- Bx.uninstall=function(){Cx&&(Cx=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Dx),HTMLMediaElement.prototype.setMediaKeys=Ex,window.MediaKeys=Fx,window.MediaKeySystemAccess=Gx,navigator.requestMediaKeySystemAccess=Hx,Dx=Hx=Ex=Gx=Fx=null,window.shakaMediaKeysPolyfill=!1)};
1089
- Bx.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Cx=!0,Dx=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),Ex=HTMLMediaElement.prototype.setMediaKeys,Fx=window.MediaKeys,Gx=window.MediaKeySystemAccess,Hx=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Kx;window.MediaKeys=Nx;window.MediaKeySystemAccess=Jx;navigator.requestMediaKeySystemAccess=
1090
- Ix;window.shakaMediaKeysPolyfill=!0}};
1091
- function Jx(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(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=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
1086
+ Ax.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};Xw(xx);function Bx(){}var Cx,Dx,Ex,Fx,Gx,Hx;
1087
+ function Ix(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Cx=!0,Dx=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),Ex=HTMLMediaElement.prototype.setMediaKeys,Fx=window.MediaKeys,Gx=window.MediaKeySystemAccess,Hx=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Jx;window.MediaKeys=Kx;window.MediaKeySystemAccess=Lx;navigator.requestMediaKeySystemAccess=
1088
+ Mx;window.shakaMediaKeysPolyfill=!0}}function Mx(a,b){try{var c=new Lx(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Jx(a){var b=this.mediaKeys;b&&b!=a&&Nx(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?Nx(a,this):Promise.resolve()}
1089
+ function Ox(a){a=nc(a.initData);if(rc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Lf(a.subarray(4),!0);a=Of(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=oc(a);this.dispatchEvent(b)}Uw.PatchedMediaKeysApple=Bx;
1090
+ Bx.uninstall=function(){Cx&&(Cx=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Dx),HTMLMediaElement.prototype.setMediaKeys=Ex,window.MediaKeys=Fx,window.MediaKeySystemAccess=Gx,navigator.requestMediaKeySystemAccess=Hx,Dx=Hx=Ex=Gx=Fx=null,window.shakaMediaKeysPolyfill=!1)};Bx.install=Ix;
1091
+ function Lx(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(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=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
1092
1092
  g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(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;}
1093
- Jx.prototype.createMediaKeys=function(){var a=new Nx(this.keySystem);return Promise.resolve(a)};Jx.prototype.getConfiguration=function(){return this.g};function Nx(a){this.h=new WebKitMediaKeys(a);this.g=new Af}Nx.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new Ox(this.h,a)};Nx.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1094
- function Lx(a,b){a.g.Jb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",Mx);try{return qj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}Nx.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function Ox(a){cb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Af;this.sessionId="";this.expiration=NaN;this.closed=new $e;this.keyStatuses=new Px}pa(Ox,cb);p=Ox.prototype;
1095
- p.generateRequest=function(a,b){var c=this;this.h=new $e;try{var d=this.l.createSession("video/mp4",nc(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ic()?"license-request":"license-renewal").set("message",oc(e.message));e=new O("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(Qx(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
1096
- 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:Qx(c,"output-not-allowed");break;default:Qx(c,"internal-error")}});Qx(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
1097
- p.update=function(a){this.g=new $e;try{this.i.update(nc(a))}catch(b){this.g.reject(b)}return this.g};p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Jb()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function Qx(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new O("keystatuseschange");a.dispatchEvent(b)}
1098
- function Px(){this.size=0;this.g=void 0}p=Px.prototype;p.ic=function(){return this.g};p.forEach=function(a){this.g&&a(this.g,vh.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=vh.value();return this.g&&lc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};function Rx(){}function Sx(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Tx,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Ux,window.MediaKeys=Vx,window.MediaKeySystemAccess=Wx,window.shakaMediaKeysPolyfill=!0)}function Tx(){return Promise.reject(Error("The key system specified is not supported."))}
1099
- function Ux(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Uw.PatchedMediaKeysNop=Rx;Rx.install=Sx;function Vx(){throw new TypeError("Illegal constructor.");}Vx.prototype.createSession=function(){};Vx.prototype.setServerCertificate=function(){};Vx.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function Wx(){this.keySystem="";throw new TypeError("Illegal constructor.");}Wx.prototype.getConfiguration=function(){};
1100
- Wx.prototype.createMediaKeys=function(){};Xw(Sx,-10);function Xx(){}
1101
- function Yx(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Zx="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=$x;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=ay;window.MediaKeys=by;window.MediaKeySystemAccess=cy;window.shakaMediaKeysPolyfill=!0}}
1102
- function dy(a){var b=Zx;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function $x(a,b){try{var c=new cy(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function ay(a){var b=this.mediaKeys;b&&b!=a&&ey(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&ey(a,this);return Promise.resolve()}Uw.PatchedMediaKeysWebkit=Xx;Xx.install=Yx;
1103
- function cy(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=t(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=t(f.audioCapabilities),
1093
+ Lx.prototype.createMediaKeys=function(){var a=new Kx(this.keySystem);return Promise.resolve(a)};Lx.prototype.getConfiguration=function(){return this.g};function Kx(a){this.h=new WebKitMediaKeys(a);this.g=new Af}Kx.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new Px(this.h,a)};Kx.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1094
+ function Nx(a,b){a.g.Jb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",Ox);try{return qj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}Kx.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function Px(a){cb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Af;this.sessionId="";this.expiration=NaN;this.closed=new $e;this.keyStatuses=new Qx}pa(Px,cb);p=Px.prototype;
1095
+ p.generateRequest=function(a,b){var c=this;this.h=new $e;try{var d=this.l.createSession("video/mp4",nc(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ic()?"license-request":"license-renewal").set("message",oc(e.message));e=new O("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(Rx(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
1096
+ 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:Rx(c,"output-not-allowed");break;default:Rx(c,"internal-error")}});Rx(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
1097
+ p.update=function(a){this.g=new $e;try{this.i.update(nc(a))}catch(b){this.g.reject(b)}return this.g};p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Jb()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function Rx(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new O("keystatuseschange");a.dispatchEvent(b)}
1098
+ function Qx(){this.size=0;this.g=void 0}p=Qx.prototype;p.ic=function(){return this.g};p.forEach=function(a){this.g&&a(this.g,vh.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=vh.value();return this.g&&lc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||Xw(Ix);function Sx(){}function Tx(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Ux,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Vx,window.MediaKeys=Wx,window.MediaKeySystemAccess=Xx,window.shakaMediaKeysPolyfill=!0)}function Ux(){return Promise.reject(Error("The key system specified is not supported."))}
1099
+ function Vx(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Uw.PatchedMediaKeysNop=Sx;Sx.install=Tx;function Wx(){throw new TypeError("Illegal constructor.");}Wx.prototype.createSession=function(){};Wx.prototype.setServerCertificate=function(){};Wx.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function Xx(){this.keySystem="";throw new TypeError("Illegal constructor.");}Xx.prototype.getConfiguration=function(){};
1100
+ Xx.prototype.createMediaKeys=function(){};Xw(Tx,-10);function Yx(){}
1101
+ function Zx(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)$x="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=ay;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=by;window.MediaKeys=cy;window.MediaKeySystemAccess=dy;window.shakaMediaKeysPolyfill=!0}}
1102
+ function ey(a){var b=$x;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function ay(a,b){try{var c=new dy(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function by(a){var b=this.mediaKeys;b&&b!=a&&fy(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&fy(a,this);return Promise.resolve()}Uw.PatchedMediaKeysWebkit=Yx;Yx.install=Zx;
1103
+ function dy(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=t(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=t(f.audioCapabilities),
1104
1104
  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=t(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"]):
1105
- 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;}cy.prototype.createMediaKeys=function(){var a=new by(this.g);return Promise.resolve(a)};cy.prototype.getConfiguration=function(){return this.h};function by(a){this.l=a;this.h=null;this.g=new Af;this.i=[];this.j=new Map}
1106
- function ey(a,b){a.h=b;a.g.Jb();var c=Zx;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=oc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=fy(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ic()?"licenserequest":"licenserenewal").set("message",d.message),d=new O("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=fy(a,d.sessionId))gy(d,"usable"),
1107
- d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=fy(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?gy(e,"output-restricted"):1==f?gy(e,"expired"):gy(e,"internal-error"))}}))}
1108
- by.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 hy(b,this.l,a);this.i.push(a);return a};by.prototype.setServerCertificate=function(){return Promise.resolve(!1)};by.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
1109
- function fy(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 hy(a,b,c){cb.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 $e;this.keyStatuses=new iy}pa(hy,cb);
1110
- function jy(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=nc(Of("LOAD_SESSION|"+c));else{var e=Of("PERSISTENT|");d=jg(e,b)}else d=nc(b)}catch(g){return Promise.reject(g)}a.h=new $e;var f=dy("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new xd(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).S(.01)}return a.h}
1111
- function ky(a,b,c){if(a.g)a.g.then(function(){return ky(a,b,c)}).catch(function(){return ky(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Kf(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=fg(e.keys[0].k);e=fg(e.keys[0].kid)}else d=nc(c),e=null;var f=dy("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
1112
- function gy(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new O("keystatuseschange");a.dispatchEvent(b)}p=hy.prototype;p.generateRequest=function(a,b){return jy(this,b,null)};p.load=function(a){return"persistent-license"==this.l?jy(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new $e;ky(this,b,a);return b};
1113
- p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=dy("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function iy(){this.size=0;this.g=void 0}p=iy.prototype;p.ic=function(){return this.g};
1114
- p.forEach=function(a){this.g&&a(this.g,vh.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=vh.value();return this.g&&lc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var Zx="";Xw(Yx);function ly(){}function my(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=ny,Object.defineProperty(a,"disablePictureInPicture",{get:oy,set:py,enumerable:!0,configurable:!0}),document.exitPictureInPicture=qy,document.addEventListener("webkitpresentationmodechanged",ry,!0))}}
1115
- function ry(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)}
1116
- function ny(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function qy(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
1117
- function oy(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function py(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Uw.PiPWebkit=ly;ly.install=my;Xw(my);function sy(){}function ty(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=uy))}function uy(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Uw.RandomUUID=sy;sy.install=ty;Xw(ty);function vy(){}function wy(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=xy)}function xy(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Uw.StorageEstimate=vy;vy.install=wy;Xw(wy);function yy(){}function zy(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Ay})}function Ay(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Uw.Symbol=yy;yy.install=zy;Xw(zy);function By(){}function Cy(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}Uw.VideoPlayPromise=By;By.install=Cy;Xw(Cy);function Dy(){}function Ey(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Hd())&&(a.getVideoPlaybackQuality=Fy)}}function Fy(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Uw.VideoPlaybackQuality=Dy;Dy.install=Ey;Xw(Ey);function Gy(){}function Hy(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Iy;else if(6==b)a=Jy;else{try{var c=!!Iy(1,2,"")}catch(d){c=!1}c&&(a=Iy)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Iy(a,b,c){return new window.TextTrackCue(a,b,c)}function Jy(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Uw.VTTCue=Gy;Gy.install=Hy;Xw(Hy);function Ky(){}Ky.prototype.parseInit=function(){};Ky.prototype.setSequenceMode=function(){};Ky.prototype.setManifestType=function(){};Ky.prototype.parseMedia=function(a,b){var c=null,d=[];a=Kf(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=Ly.exec(e))){var f=My.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Ac(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1118
- M("shaka.text.LrcTextParser",Ky);Ky.prototype.parseMedia=Ky.prototype.parseMedia;Ky.prototype.setManifestType=Ky.prototype.setManifestType;Ky.prototype.setSequenceMode=Ky.prototype.setSequenceMode;Ky.prototype.parseInit=Ky.prototype.parseInit;var Ly=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,My=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;nd["application/x-subtitle-lrc"]=function(){return new Ky};function Ny(){}Ny.prototype.parseInit=function(){};Ny.prototype.setSequenceMode=function(){};Ny.prototype.setManifestType=function(){};
1119
- Ny.prototype.parseMedia=function(a,b,c){var d=Kf(a);a=[];if(""==d)return a;var e=Fg(d,"tt");if(!e)throw new P(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=sg(e,Oy,"frameRate"),g=sg(e,Oy,"subFrameRate"),h=sg(e,Oy,"frameRateMultiplier"),k=sg(e,Oy,"tickRate"),l=sg(e,Oy,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=sg(e,Py,"extent");if("default"!=m&&"preserve"!=m)throw new P(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new Qy(f,
1120
- g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{cc:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?qg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var r=t(e),q=r.next();!q.done;q=r.next()){var u=q.value;q=new Bc;var v=u.getAttribute("xml:id");if(v){q.id=v;var y=null;n&&(y=Ry.exec(n)||Sy.exec(n));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var z,x;if(z=Ty(u,h,"extent"))z=(x=Ry.exec(z))||Sy.exec(z),
1121
- null!=z&&(q.width=Number(z[1]),q.height=Number(z[2]),x||(null!=v&&(q.width=100*q.width/v),null!=y&&(q.height=100*q.height/y)),q.widthUnits=x||null!=v?Tc:0,q.heightUnits=x||null!=y?Tc:0);if(u=Ty(u,h,"origin"))z=(x=Ry.exec(u))||Sy.exec(u),null!=z&&(q.viewportAnchorX=Number(z[1]),q.viewportAnchorY=Number(z[2]),x||(null!=y&&(q.viewportAnchorY=100*q.viewportAnchorY/y),null!=v&&(q.viewportAnchorX=100*q.viewportAnchorX/v)),q.viewportAnchorUnits=x||null!=v?Tc:0)}else q=null;q&&k.push(q)}if(ng(d,"p").length)throw new P(2,
1122
- 2,2001,"<p> can only be inside <div> in TTML");n=t(ng(d,"div"));for(r=n.next();!r.done;r=n.next())if(ng(r.value,"span").length)throw new P(2,2,2001,"<span> can only be inside <p> in TTML");if(b=Uy(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
1123
- function Uy(a,b,c,d,e,f,g,h,k,l,m,n){var r=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var q=document.createElement("span");q.textContent=a.textContent}else q=a;for(var u=null,v=t(Vy),y=v.next();!y.done&&!(u=Wy(q,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=null;var z=sg(q,Vy,"backgroundImage");n&&z&&!z.startsWith("#")&&(y=new kb(n),z=new kb(z),(y=y.resolve(z).toString())&&(v=y));if("p"==a.nodeName||u||v)m=!0;a=m;y="default"==(q.getAttribute("xml:space")||
1124
- (h?"default":"preserve"));z=Array.from(q.childNodes).every(function(C){return C.nodeType==Node.TEXT_NODE});h=[];if(!z)for(var x=t(q.childNodes),A=x.next();!A.done;A=x.next())(A=Uy(A.value,b,c,d,e,f,g,y,k,q,m,n))&&h.push(A);d=null!=l;n=/\S/.test(q.textContent);A=q.hasAttribute("begin")||q.hasAttribute("end")||q.hasAttribute("dur");if(!(A||n||"br"==q.tagName||0!=h.length||d&&!y))return null;x=Xy(q,c);n=x.start;for(x=x.end;r&&r.nodeType==Node.ELEMENT_NODE&&"tt"!=r.tagName;)x=Yy(r,c,n,x),n=x.start,x=
1125
- x.end,r=r.parentNode;null==n&&(n=0);n+=b.periodStart;x=null==x?Infinity:x+b.periodStart;n=Math.max(n,b.segmentStart);x=Math.min(x,b.segmentEnd);if(!A&&0<h.length)for(n=Infinity,x=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),x=Math.max(x,c.endTime);if("br"==q.tagName)return e=new Ac(n,x,""),e.lineBreak=!0,e;b="";z&&(b=q.textContent,y&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new Ac(n,x,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=Wy(q,"region",f,"")[0];
1126
- if(q.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var B=k.getAttribute("xml:id");b.region=g.filter(function(C){return C.id==B})[0]}g=k;l&&d&&!q.getAttribute("region")&&!q.getAttribute("style")&&(g=Wy(l,"region",f,"")[0]);Zy(b,q,g,u,v,e,a,0==h.length);return b}
1127
- function Zy(a,b,c,d,e,f,g,h){g=g||h;"rtl"==$y(b,c,f,"direction",g)&&(a.direction="rtl");h=$y(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Ec);(h=$y(b,c,f,"textAlign",!0))?(a.positionAlign=az[h],a.lineAlign=bz[h],a.textAlign=Nc[h.toUpperCase()]):a.textAlign=Dc;if(h=$y(b,c,f,"displayAlign",!0))a.displayAlign=Oc[h.toUpperCase()];if(h=$y(b,c,f,"color",g))a.color=h;if(h=$y(b,c,f,"backgroundColor",
1128
- g))a.backgroundColor=h;if(h=$y(b,c,f,"border",g))a.border=h;if(h=$y(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h}(h=$y(b,c,f,"fontWeight",g))&&
1129
- "bold"==h&&(a.fontWeight=700);h=$y(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=$y(b,c,f,"lineHeight",g))&&h.match(cz)&&(a.lineHeight=h);(h=$y(b,c,f,"fontSize",g))&&(h.match(cz)||h.match(dz))&&(a.fontSize=h);if(h=$y(b,c,f,"fontStyle",g))a.fontStyle=Sc[h.toUpperCase()];d?(e=d.getAttribute("imageType")||d.getAttribute("imagetype"),h=d.getAttribute("encoding"),d=d.textContent.trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=$y(b,
1130
- c,f,"textOutline",g))d=d.split(" "),d[0].match(cz)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(cz)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=$y(b,c,f,"letterSpacing",g))&&d.match(cz)&&(a.letterSpacing=d);(d=$y(b,c,f,"linePadding",g))&&d.match(cz)&&(a.linePadding=d);if(d=$y(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=Ty(c,f,"textDecoration"))&&ez(a,d);(d=fz(b,f,"textDecoration"))&&ez(a,d);if(d=$y(b,c,f,"textCombine",g))a.textCombineUpright=d;switch($y(b,c,f,
1105
+ 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;}dy.prototype.createMediaKeys=function(){var a=new cy(this.g);return Promise.resolve(a)};dy.prototype.getConfiguration=function(){return this.h};function cy(a){this.l=a;this.h=null;this.g=new Af;this.i=[];this.j=new Map}
1106
+ function fy(a,b){a.h=b;a.g.Jb();var c=$x;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=oc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=gy(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ic()?"licenserequest":"licenserenewal").set("message",d.message),d=new O("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=gy(a,d.sessionId))hy(d,"usable"),
1107
+ d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=gy(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?hy(e,"output-restricted"):1==f?hy(e,"expired"):hy(e,"internal-error"))}}))}
1108
+ cy.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 iy(b,this.l,a);this.i.push(a);return a};cy.prototype.setServerCertificate=function(){return Promise.resolve(!1)};cy.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
1109
+ function gy(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 iy(a,b,c){cb.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 $e;this.keyStatuses=new jy}pa(iy,cb);
1110
+ function ky(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=nc(Of("LOAD_SESSION|"+c));else{var e=Of("PERSISTENT|");d=jg(e,b)}else d=nc(b)}catch(g){return Promise.reject(g)}a.h=new $e;var f=ey("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new xd(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).S(.01)}return a.h}
1111
+ function ly(a,b,c){if(a.g)a.g.then(function(){return ly(a,b,c)}).catch(function(){return ly(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Kf(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=fg(e.keys[0].k);e=fg(e.keys[0].kid)}else d=nc(c),e=null;var f=ey("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
1112
+ function hy(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new O("keystatuseschange");a.dispatchEvent(b)}p=iy.prototype;p.generateRequest=function(a,b){return ky(this,b,null)};p.load=function(a){return"persistent-license"==this.l?ky(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new $e;ly(this,b,a);return b};
1113
+ p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=ey("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function jy(){this.size=0;this.g=void 0}p=jy.prototype;p.ic=function(){return this.g};
1114
+ p.forEach=function(a){this.g&&a(this.g,vh.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=vh.value();return this.g&&lc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var $x="";Xw(Zx);function my(){}function ny(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=oy,Object.defineProperty(a,"disablePictureInPicture",{get:py,set:qy,enumerable:!0,configurable:!0}),document.exitPictureInPicture=ry,document.addEventListener("webkitpresentationmodechanged",sy,!0))}}
1115
+ function sy(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)}
1116
+ function oy(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function ry(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
1117
+ function py(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function qy(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Uw.PiPWebkit=my;my.install=ny;Xw(ny);function ty(){}function uy(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=vy))}function vy(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Uw.RandomUUID=ty;ty.install=uy;Xw(uy);function wy(){}function xy(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=yy)}function yy(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Uw.StorageEstimate=wy;wy.install=xy;Xw(xy);function zy(){}function Ay(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:By})}function By(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Uw.Symbol=zy;zy.install=Ay;Xw(Ay);function Cy(){}function Dy(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}Uw.VideoPlayPromise=Cy;Cy.install=Dy;Xw(Dy);function Ey(){}function Fy(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Hd())&&(a.getVideoPlaybackQuality=Gy)}}function Gy(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Uw.VideoPlaybackQuality=Ey;Ey.install=Fy;Xw(Fy);function Hy(){}function Iy(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Jy;else if(6==b)a=Ky;else{try{var c=!!Jy(1,2,"")}catch(d){c=!1}c&&(a=Jy)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Jy(a,b,c){return new window.TextTrackCue(a,b,c)}function Ky(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Uw.VTTCue=Hy;Hy.install=Iy;Xw(Iy);function Ly(){}Ly.prototype.parseInit=function(){};Ly.prototype.setSequenceMode=function(){};Ly.prototype.setManifestType=function(){};Ly.prototype.parseMedia=function(a,b){var c=null,d=[];a=Kf(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=My.exec(e))){var f=Ny.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Ac(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1118
+ M("shaka.text.LrcTextParser",Ly);Ly.prototype.parseMedia=Ly.prototype.parseMedia;Ly.prototype.setManifestType=Ly.prototype.setManifestType;Ly.prototype.setSequenceMode=Ly.prototype.setSequenceMode;Ly.prototype.parseInit=Ly.prototype.parseInit;var My=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Ny=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;nd["application/x-subtitle-lrc"]=function(){return new Ly};function Oy(){}Oy.prototype.parseInit=function(){};Oy.prototype.setSequenceMode=function(){};Oy.prototype.setManifestType=function(){};
1119
+ Oy.prototype.parseMedia=function(a,b,c){var d=Kf(a);a=[];if(""==d)return a;var e=Fg(d,"tt");if(!e)throw new P(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=sg(e,Py,"frameRate"),g=sg(e,Py,"subFrameRate"),h=sg(e,Py,"frameRateMultiplier"),k=sg(e,Py,"tickRate"),l=sg(e,Py,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=sg(e,Qy,"extent");if("default"!=m&&"preserve"!=m)throw new P(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new Ry(f,
1120
+ g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{cc:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?qg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var r=t(e),q=r.next();!q.done;q=r.next()){var u=q.value;q=new Bc;var v=u.getAttribute("xml:id");if(v){q.id=v;var y=null;n&&(y=Sy.exec(n)||Ty.exec(n));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var z,x;if(z=Uy(u,h,"extent"))z=(x=Sy.exec(z))||Ty.exec(z),
1121
+ null!=z&&(q.width=Number(z[1]),q.height=Number(z[2]),x||(null!=v&&(q.width=100*q.width/v),null!=y&&(q.height=100*q.height/y)),q.widthUnits=x||null!=v?Tc:0,q.heightUnits=x||null!=y?Tc:0);if(u=Uy(u,h,"origin"))z=(x=Sy.exec(u))||Ty.exec(u),null!=z&&(q.viewportAnchorX=Number(z[1]),q.viewportAnchorY=Number(z[2]),x||(null!=y&&(q.viewportAnchorY=100*q.viewportAnchorY/y),null!=v&&(q.viewportAnchorX=100*q.viewportAnchorX/v)),q.viewportAnchorUnits=x||null!=v?Tc:0)}else q=null;q&&k.push(q)}if(ng(d,"p").length)throw new P(2,
1122
+ 2,2001,"<p> can only be inside <div> in TTML");n=t(ng(d,"div"));for(r=n.next();!r.done;r=n.next())if(ng(r.value,"span").length)throw new P(2,2,2001,"<span> can only be inside <p> in TTML");if(b=Vy(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
1123
+ function Vy(a,b,c,d,e,f,g,h,k,l,m,n){var r=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var q=document.createElement("span");q.textContent=a.textContent}else q=a;for(var u=null,v=t(Wy),y=v.next();!y.done&&!(u=Xy(q,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=null;var z=sg(q,Wy,"backgroundImage");n&&z&&!z.startsWith("#")&&(y=new kb(n),z=new kb(z),(y=y.resolve(z).toString())&&(v=y));if("p"==a.nodeName||u||v)m=!0;a=m;y="default"==(q.getAttribute("xml:space")||
1124
+ (h?"default":"preserve"));z=Array.from(q.childNodes).every(function(C){return C.nodeType==Node.TEXT_NODE});h=[];if(!z)for(var x=t(q.childNodes),A=x.next();!A.done;A=x.next())(A=Vy(A.value,b,c,d,e,f,g,y,k,q,m,n))&&h.push(A);d=null!=l;n=/\S/.test(q.textContent);A=q.hasAttribute("begin")||q.hasAttribute("end")||q.hasAttribute("dur");if(!(A||n||"br"==q.tagName||0!=h.length||d&&!y))return null;x=Yy(q,c);n=x.start;for(x=x.end;r&&r.nodeType==Node.ELEMENT_NODE&&"tt"!=r.tagName;)x=Zy(r,c,n,x),n=x.start,x=
1125
+ x.end,r=r.parentNode;null==n&&(n=0);n+=b.periodStart;x=null==x?Infinity:x+b.periodStart;n=Math.max(n,b.segmentStart);x=Math.min(x,b.segmentEnd);if(!A&&0<h.length)for(n=Infinity,x=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),x=Math.max(x,c.endTime);if("br"==q.tagName)return e=new Ac(n,x,""),e.lineBreak=!0,e;b="";z&&(b=q.textContent,y&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new Ac(n,x,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=Xy(q,"region",f,"")[0];
1126
+ if(q.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var B=k.getAttribute("xml:id");b.region=g.filter(function(C){return C.id==B})[0]}g=k;l&&d&&!q.getAttribute("region")&&!q.getAttribute("style")&&(g=Xy(l,"region",f,"")[0]);$y(b,q,g,u,v,e,a,0==h.length);return b}
1127
+ function $y(a,b,c,d,e,f,g,h){g=g||h;"rtl"==az(b,c,f,"direction",g)&&(a.direction="rtl");h=az(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Ec);(h=az(b,c,f,"textAlign",!0))?(a.positionAlign=bz[h],a.lineAlign=cz[h],a.textAlign=Nc[h.toUpperCase()]):a.textAlign=Dc;if(h=az(b,c,f,"displayAlign",!0))a.displayAlign=Oc[h.toUpperCase()];if(h=az(b,c,f,"color",g))a.color=h;if(h=az(b,c,f,"backgroundColor",
1128
+ g))a.backgroundColor=h;if(h=az(b,c,f,"border",g))a.border=h;if(h=az(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h}(h=az(b,c,f,"fontWeight",g))&&
1129
+ "bold"==h&&(a.fontWeight=700);h=az(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=az(b,c,f,"lineHeight",g))&&h.match(dz)&&(a.lineHeight=h);(h=az(b,c,f,"fontSize",g))&&(h.match(dz)||h.match(ez))&&(a.fontSize=h);if(h=az(b,c,f,"fontStyle",g))a.fontStyle=Sc[h.toUpperCase()];d?(e=d.getAttribute("imageType")||d.getAttribute("imagetype"),h=d.getAttribute("encoding"),d=d.textContent.trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=az(b,
1130
+ c,f,"textOutline",g))d=d.split(" "),d[0].match(dz)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(dz)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=az(b,c,f,"letterSpacing",g))&&d.match(dz)&&(a.letterSpacing=d);(d=az(b,c,f,"linePadding",g))&&d.match(dz)&&(a.linePadding=d);if(d=az(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=Uy(c,f,"textDecoration"))&&fz(a,d);(d=gz(b,f,"textDecoration"))&&fz(a,d);if(d=az(b,c,f,"textCombine",g))a.textCombineUpright=d;switch(az(b,c,f,
1131
1131
  "ruby",g)){case "container":a.rubyTag="ruby";break;case "text":a.rubyTag="rt"}}
1132
- function ez(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&xc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&xc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
1133
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&xc(a.textDecoration,"overline")}}function $y(a,b,c,d,e){e=void 0===e?!0:e;return(a=fz(a,c,d))?a:e?Ty(b,c,d):null}function Ty(a,b,c){if(!a)return null;var d=sg(a,Py,c);return d?d:gz(a,b,c)}function fz(a,b,c){var d=sg(a,Py,c);return d?d:gz(a,b,c)}
1134
- function gz(a,b,c){a=Wy(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=rg(a[e],"urn:ebu:tt:style",c);f||(f=sg(a[e],Py,c));f||(f=fz(a[e],b,c));f&&(d=f)}return d}
1135
- function Wy(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?rg(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function Yy(a,b,c,d){a=Xy(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}
1136
- function Xy(a,b){var c=hz(a.getAttribute("begin"),b),d=hz(a.getAttribute("end"),b);a=hz(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
1137
- function hz(a,b){var c=null;if(iz.test(a)){a=iz.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(jz.test(a))c=kz(jz,a);else if(lz.test(a))c=kz(lz,a);else if(mz.test(a))a=mz.exec(a),c=Number(a[1])/b.frameRate;else if(nz.test(a))a=nz.exec(a),c=Number(a[1])/b.g;else if(oz.test(a))c=kz(oz,a);else if(a)throw new P(2,2,2001,"Could not parse cue time range in TTML");return c}
1138
- function kz(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}M("shaka.text.TtmlTextParser",Ny);Ny.prototype.parseMedia=Ny.prototype.parseMedia;Ny.prototype.setManifestType=Ny.prototype.setManifestType;Ny.prototype.setSequenceMode=Ny.prototype.setSequenceMode;Ny.prototype.parseInit=Ny.prototype.parseInit;
1139
- function Qy(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
1140
- var Ry=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,dz=/^(\d{1,2}(?:\.\d+)?|100)%$/,cz=/^(\d+px|\d+em|\d*\.?\d+c)$/,Sy=/^(\d+)px (\d+)px$/,iz=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,jz=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,lz=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,mz=/^(\d*(?:\.\d*)?)f$/,nz=/^(\d*(?:\.\d*)?)t$/,oz=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),bz={left:Hc,center:"center",right:"end",start:Hc,
1141
- end:"end"},az={left:"line-left",center:"center",right:"line-right"},Oy=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Py=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Vy=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];nd["application/ttml+xml"]=function(){return new Ny};function pz(){this.g=new Ny}pz.prototype.parseInit=function(a){var b=!1;(new Tf).box("moov",Yf).box("trak",Yf).box("mdia",Yf).box("minf",Yf).box("stbl",Yf).V("stsd",$f).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new P(2,2,2007);};pz.prototype.setSequenceMode=function(){};pz.prototype.setManifestType=function(){};
1142
- pz.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[];(new Tf).box("mdat",bg(function(g){e=!0;f=f.concat(d.g.parseMedia(g,b,c))})).parse(a,!1);if(!e)throw new P(2,2,2007);return f};M("shaka.text.Mp4TtmlParser",pz);pz.prototype.parseMedia=pz.prototype.parseMedia;pz.prototype.setManifestType=pz.prototype.setManifestType;pz.prototype.setSequenceMode=pz.prototype.setSequenceMode;pz.prototype.parseInit=pz.prototype.parseInit;nd['application/mp4; codecs="stpp"']=function(){return new pz};
1143
- nd['application/mp4; codecs="stpp.ttml"']=function(){return new pz};nd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new pz};nd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new pz};function qz(){this.h=!1;this.g="UNKNOWN"}qz.prototype.parseInit=function(){};qz.prototype.setSequenceMode=function(a){this.h=a};qz.prototype.setManifestType=function(a){this.g=a};
1144
- qz.prototype.parseMedia=function(a,b){a=Kf(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new P(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&this.h){var d=c[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),e=c[0].match(/MPEGTS:(\d+)/m);if(d&&e){a=rz(new Gs(d[1]));if(null==a)throw new P(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
1132
+ function fz(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&xc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&xc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
1133
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&xc(a.textDecoration,"overline")}}function az(a,b,c,d,e){e=void 0===e?!0:e;return(a=gz(a,c,d))?a:e?Uy(b,c,d):null}function Uy(a,b,c){if(!a)return null;var d=sg(a,Qy,c);return d?d:hz(a,b,c)}function gz(a,b,c){var d=sg(a,Qy,c);return d?d:hz(a,b,c)}
1134
+ function hz(a,b,c){a=Xy(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=rg(a[e],"urn:ebu:tt:style",c);f||(f=sg(a[e],Qy,c));f||(f=gz(a[e],b,c));f&&(d=f)}return d}
1135
+ function Xy(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?rg(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function Zy(a,b,c,d){a=Yy(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}
1136
+ function Yy(a,b){var c=iz(a.getAttribute("begin"),b),d=iz(a.getAttribute("end"),b);a=iz(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
1137
+ function iz(a,b){var c=null;if(jz.test(a)){a=jz.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(kz.test(a))c=lz(kz,a);else if(mz.test(a))c=lz(mz,a);else if(nz.test(a))a=nz.exec(a),c=Number(a[1])/b.frameRate;else if(oz.test(a))a=oz.exec(a),c=Number(a[1])/b.g;else if(pz.test(a))c=lz(pz,a);else if(a)throw new P(2,2,2001,"Could not parse cue time range in TTML");return c}
1138
+ function lz(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}M("shaka.text.TtmlTextParser",Oy);Oy.prototype.parseMedia=Oy.prototype.parseMedia;Oy.prototype.setManifestType=Oy.prototype.setManifestType;Oy.prototype.setSequenceMode=Oy.prototype.setSequenceMode;Oy.prototype.parseInit=Oy.prototype.parseInit;
1139
+ function Ry(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
1140
+ var Sy=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,ez=/^(\d{1,2}(?:\.\d+)?|100)%$/,dz=/^(\d+px|\d+em|\d*\.?\d+c)$/,Ty=/^(\d+)px (\d+)px$/,jz=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,kz=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,mz=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,nz=/^(\d*(?:\.\d*)?)f$/,oz=/^(\d*(?:\.\d*)?)t$/,pz=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),cz={left:Hc,center:"center",right:"end",start:Hc,
1141
+ end:"end"},bz={left:"line-left",center:"center",right:"line-right"},Py=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Qy=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Wy=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];nd["application/ttml+xml"]=function(){return new Oy};function qz(){this.g=new Oy}qz.prototype.parseInit=function(a){var b=!1;(new Tf).box("moov",Yf).box("trak",Yf).box("mdia",Yf).box("minf",Yf).box("stbl",Yf).V("stsd",$f).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new P(2,2,2007);};qz.prototype.setSequenceMode=function(){};qz.prototype.setManifestType=function(){};
1142
+ qz.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[];(new Tf).box("mdat",bg(function(g){e=!0;f=f.concat(d.g.parseMedia(g,b,c))})).parse(a,!1);if(!e)throw new P(2,2,2007);return f};M("shaka.text.Mp4TtmlParser",qz);qz.prototype.parseMedia=qz.prototype.parseMedia;qz.prototype.setManifestType=qz.prototype.setManifestType;qz.prototype.setSequenceMode=qz.prototype.setSequenceMode;qz.prototype.parseInit=qz.prototype.parseInit;nd['application/mp4; codecs="stpp"']=function(){return new qz};
1143
+ nd['application/mp4; codecs="stpp.ttml"']=function(){return new qz};nd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new qz};nd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new qz};function rz(){this.h=!1;this.g="UNKNOWN"}rz.prototype.parseInit=function(){};rz.prototype.setSequenceMode=function(a){this.h=a};rz.prototype.setManifestType=function(a){this.g=a};
1144
+ rz.prototype.parseMedia=function(a,b){a=Kf(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new P(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&this.h){var d=c[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),e=c[0].match(/MPEGTS:(\d+)/m);if(d&&e){a=sz(new Gs(d[1]));if(null==a)throw new P(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
1145
1145
  e/9E4-a}}else c[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g&&(a=b.segmentStart);b=[];e=t(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new Gs(d);var f=new Bc;Js(d);Hs(d);for(var g=Js(d);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=
1146
- Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Hs(d);g=Js(d)}b.push(f)}e=new Map;sz(e);d=[];c=t(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=
1146
+ Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Hs(d);g=Js(d)}b.push(f)}e=new Map;tz(e);d=[];c=t(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=
1147
1147
  t(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&(g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=e.get(g))||(l=new Ac(0,0,""));for(var m=!1,n=0;n<k.length;n++){var r=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(r){var q=r[2].trim().replace(";","");switch(r[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=q;break;case "color":m=!0;l.color=q;break;case "font-family":m=!0;l.fontFamily=q;break;
1148
1148
  case "font-size":m=!0;l.fontSize=q;break;case "font-weight":if(700<=parseInt(q,10)||"bold"==q)m=!0,l.fontWeight=700;break;case "font-style":switch(q){case "normal":m=!0;l.fontStyle=Kc;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(q);break;case "text-combine-upright":m=!0;l.textCombineUpright=q;break;case "text-shadow":m=!0;l.textShadow=q;break;case "white-space":m=!0,l.wrapLine="noWrap"!=q}}}m&&e.set(g,
1149
- l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else if(h=null,f[0].includes("--\x3e")||(h=f[0],f.splice(0,1)),g=new Gs(f[0]),k=rz(g),n=Is(g,/[ \t]+--\x3e[ \t]+/g),l=rz(g),null==k||null==n||null==l)Ua("Failed to parse VTT time code. Cue skipped:",h,f),f=null;else{k+=m;l+=m;f=f.slice(1).join("\n").trim();e.has("global")?(m=e.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new Ac(k,l,"");Hs(g);for(k=Js(g);k;)tz(m,k,b),Hs(g),k=Js(g);uz(f,
1150
- m,e);null!=h&&(m.id=h);f=m}f&&d.push(f)}return d};function sz(a){for(var b=t(Object.entries(Qc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new Ac(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(Rc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new Ac(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
1151
- function uz(a,b,c){0===c.size&&sz(c);a:{for(var d=[],e=-1,f="",g=0;g<a.length;g++)if("/"===a[g]&&0<g&&"<"===a[g-1]){var h=a.indexOf(">",g);if(h<=g)break a;if((h=a.substring(g+1,h))&&"c"===h){var k=d.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=a[g]:f+=a[g]}else f+=a[g]}else"<"===a[g]?(e=g+1,"c"!=a[e]&&(e=-1)):">"===a[g]&&0<e&&(d.push(a.substr(e,g-e)),e=-1),f+=a[g];a=f}d=a;a=[];f=-1;for(e=0;e<d.length;e++)"<"===d[e]?f=e+1:">"===d[e]&&0<f&&(f=d.substr(f,
1152
- e-f),f.match(vz)&&a.push(f),f=-1);a=t(a);for(e=a.next();!e.done;e=a.next())e=e.value,d=d.replace("<"+e+">",'<div time="'+e+'">'),d+="</div>";a=d;a:{e=a;f=[];g=-1;a="";d=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){d=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)a+="/"+k+">";else{if(!l.startsWith("v")){a+=e[h];continue}a+="/"+l+">"}h+=k.length+1}else a+=e[h]}else a+=e[h]}else"<"===e[h]?(g=h+1,"v"!=e[g]&&(g=-1)):">"===
1153
- e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),a+=e[h];e=t(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),a=a.replace("<"+f+">","<"+g+">"),a=a.replace("</"+f+">","</"+g+">"),d||(a+="</"+g+">")}if(d=Fg("<span>"+a+"</span>","span")){d=d.childNodes;if(1==d.length&&(e=d[0],e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE)){b.payload=wz(a);return}a=t(d);for(d=a.next();!d.done;d=a.next())xz(d.value,b,c)}else b.payload=wz(a)}
1154
- function yz(a,b){return a&&0<a.length?a:b}
1155
- function xz(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Bc;d.position=null;d.size=0;if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var e=t(a.nodeName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(g=c.get(g))&&(d.backgroundColor=yz(g.backgroundColor,d.backgroundColor),d.color=yz(g.color,d.color),d.fontFamily=yz(g.fontFamily,
1156
- d.fontFamily),d.fontSize=yz(g.fontSize,d.fontSize),d.fontWeight=g.fontWeight,d.fontStyle=g.fontStyle,d.opacity=g.opacity,d.rubyTag=g.rubyTag,d.textCombineUpright=g.textCombineUpright,d.textShadow=g.textShadow,d.wrapLine=g.wrapLine);switch(f){case "br":d=Lc(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=700;break;case "i":d.fontStyle="italic";break;case "u":d.textDecoration.push("underline");break;case "font":if(f=a.getAttribute("color"))d.color=f;break;case "div":f=a.getAttribute("time");
1157
- if(!f)break;if(f=rz(new Gs(f)))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.childNodes;if(ug(a)||1==e.length&&ug(e[0]))for(e=!0,c=t(a.textContent.split("\n")),a=c.next();!a.done;a=c.next())a=a.value,e||(e=Lc(d.startTime,d.endTime),b.nestedCues.push(e)),0<a.length&&(e=d.clone(),e.payload=wz(a),b.nestedCues.push(e)),e=!1;else for(b.nestedCues.push(d),b=t(e),a=b.next();!a.done;a=b.next())xz(a.value,d,c)}
1158
- function tz(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Dc:a.textAlign=Nc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
1159
- b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Cc);else if(d=/^region:(.*)$/.exec(b)){if(b=zz(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=Pc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Gc,a.line=Number(c[1]),c[2]&&(a.lineAlign=Pc[c[2].toUpperCase()])}
1160
- function zz(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}function rz(a){a=Is(a,vz);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}
1161
- function wz(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}M("shaka.text.VttTextParser",qz);qz.prototype.parseMedia=qz.prototype.parseMedia;qz.prototype.setManifestType=qz.prototype.setManifestType;qz.prototype.setSequenceMode=qz.prototype.setSequenceMode;qz.prototype.parseInit=qz.prototype.parseInit;
1162
- var vz=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;nd["text/vtt"]=function(){return new qz};nd['text/vtt; codecs="vtt"']=function(){return new qz};nd['text/vtt; codecs="wvtt"']=function(){return new qz};function Az(){this.g=null}Az.prototype.parseInit=function(a){var b=this,c=!1;(new Tf).box("moov",Yf).box("trak",Yf).box("mdia",Yf).V("mdhd",function(d){d=Xh(d.reader,d.version);b.g=d.timescale}).box("minf",Yf).box("stbl",Yf).V("stsd",$f).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new P(2,2,2008);if(!c)throw new P(2,2,2008);};Az.prototype.setSequenceMode=function(){};Az.prototype.setManifestType=function(){};
1163
- Az.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Tf).box("moof",Yf).box("traf",Yf).V("tfdt",function(A){g=!0;c=Wh(A.reader,A.version).baseMediaDecodeTime}).V("tfhd",function(A){l=Uh(A.reader,A.flags).Cg}).V("trun",function(A){h=!0;d=Yh(A.reader,A.version,A.flags).Xg}).box("mdat",bg(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);a=c;for(var m=new Qf(e,0),n=t(d),r=n.next();!r.done;r=n.next()){r=
1164
- r.value;var q=r.Wf||l,u=r.xe?c+r.xe:a;a=u+(q||0);var v=0;do{var y=m.N();v+=y;var z=m.N(),x=null;"vttc"==Xf(z)?8<y&&(x=m.Ib(y-8)):m.skip(y-8);q&&x&&(y=Bz(x,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(y))}while(r.sampleSize&&v<r.sampleSize)}return f.filter(vd)};function Bz(a,b,c){var d,e,f;(new Tf).box("payl",bg(function(g){d=Kf(g)})).box("iden",bg(function(g){e=Kf(g)})).box("sttg",bg(function(g){f=Kf(g)})).parse(a);return d?Cz(d,e,f,b,c):null}
1165
- function Cz(a,b,c,d,e){d=new Ac(d,e,"");uz(a,d,new Map);b&&(d.id=b);if(c)for(a=new Gs(c),b=Js(a);b;)tz(d,b,[]),Hs(a),b=Js(a);return d}M("shaka.text.Mp4VttParser",Az);Az.prototype.parseMedia=Az.prototype.parseMedia;Az.prototype.setManifestType=Az.prototype.setManifestType;Az.prototype.setSequenceMode=Az.prototype.setSequenceMode;Az.prototype.parseInit=Az.prototype.parseInit;nd['application/mp4; codecs="wvtt"']=function(){return new Az};function Dz(){}Dz.prototype.parseInit=function(){};Dz.prototype.setSequenceMode=function(){};Dz.prototype.setManifestType=function(){};Dz.prototype.parseMedia=function(a){var b=Kf(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Gs(c[0]),e=Ez(d),f=Is(d,/,/g);d=Ez(d);if(null==e||null==f||null==d)throw new P(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Ac(e,d,c.slice(1).join("\n").trim()))}return a};
1166
- function Ez(a){a=Is(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}M("shaka.text.SbvTextParser",Dz);Dz.prototype.parseMedia=Dz.prototype.parseMedia;Dz.prototype.setManifestType=Dz.prototype.setManifestType;Dz.prototype.setSequenceMode=Dz.prototype.setSequenceMode;Dz.prototype.parseInit=Dz.prototype.parseInit;nd["text/x-subviewer"]=function(){return new Dz};function Fz(){this.g=new qz}Fz.prototype.parseInit=function(){};Fz.prototype.setSequenceMode=function(){};Fz.prototype.setManifestType=function(){};Fz.prototype.parseMedia=function(a,b,c){a=Kf(a);a=Gz(a);a=nc(Of(a));return this.g.parseMedia(a,b,c)};
1167
- function Gz(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}M("shaka.text.SrtTextParser",Fz);Fz.srt2webvtt=Gz;Fz.prototype.parseMedia=Fz.prototype.parseMedia;
1168
- Fz.prototype.setManifestType=Fz.prototype.setManifestType;Fz.prototype.setSequenceMode=Fz.prototype.setSequenceMode;Fz.prototype.parseInit=Fz.prototype.parseInit;nd["text/srt"]=function(){return new Fz};function Hz(){}Hz.prototype.parseInit=function(){};Hz.prototype.setSequenceMode=function(){};Hz.prototype.setManifestType=function(){};
1169
- Hz.prototype.parseMedia=function(a){var b="",c="";a=Kf(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=Iz.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=Jz.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(Kz);else if("Style"==e){e=f.split(Kz);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
1170
- [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Ke:e.Ke},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Jz.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Kz);else if("Dialogue"==f){g=g.split(Kz);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=Lz(f.Start);var k=Lz(f.End);g=new Ac(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Ke=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Ke}}(e)))&&Mz(g,f);d.push(g)}return d};
1171
- function Mz(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=Nz(c))a.color=c;if(c=b.BackColour)if(c=Nz(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Ic;a.textAlign="start";break;case 2:a.displayAlign=Ic;a.textAlign=Dc;break;case 3:a.displayAlign=Ic;a.textAlign="end";
1149
+ l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else if(h=null,f[0].includes("--\x3e")||(h=f[0],f.splice(0,1)),g=new Gs(f[0]),k=sz(g),n=Is(g,/[ \t]+--\x3e[ \t]+/g),l=sz(g),null==k||null==n||null==l)Ua("Failed to parse VTT time code. Cue skipped:",h,f),f=null;else{k+=m;l+=m;f=f.slice(1).join("\n").trim();e.has("global")?(m=e.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new Ac(k,l,"");Hs(g);for(k=Js(g);k;)uz(m,k,b),Hs(g),k=Js(g);vz(f,
1150
+ m,e);null!=h&&(m.id=h);f=m}f&&d.push(f)}return d};function tz(a){for(var b=t(Object.entries(Qc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new Ac(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(Rc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new Ac(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
1151
+ function vz(a,b,c){0===c.size&&tz(c);a:{for(var d=[],e=-1,f="",g=0;g<a.length;g++)if("/"===a[g]&&0<g&&"<"===a[g-1]){var h=a.indexOf(">",g);if(h<=g)break a;if((h=a.substring(g+1,h))&&"c"===h){var k=d.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=a[g]:f+=a[g]}else f+=a[g]}else"<"===a[g]?(e=g+1,"c"!=a[e]&&(e=-1)):">"===a[g]&&0<e&&(d.push(a.substr(e,g-e)),e=-1),f+=a[g];a=f}d=a;a=[];f=-1;for(e=0;e<d.length;e++)"<"===d[e]?f=e+1:">"===d[e]&&0<f&&(f=d.substr(f,
1152
+ e-f),f.match(wz)&&a.push(f),f=-1);a=t(a);for(e=a.next();!e.done;e=a.next())e=e.value,d=d.replace("<"+e+">",'<div time="'+e+'">'),d+="</div>";a=d;a:{e=a;f=[];g=-1;a="";d=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){d=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)a+="/"+k+">";else{if(!l.startsWith("v")){a+=e[h];continue}a+="/"+l+">"}h+=k.length+1}else a+=e[h]}else a+=e[h]}else"<"===e[h]?(g=h+1,"v"!=e[g]&&(g=-1)):">"===
1153
+ e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),a+=e[h];e=t(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),a=a.replace("<"+f+">","<"+g+">"),a=a.replace("</"+f+">","</"+g+">"),d||(a+="</"+g+">")}if(d=Fg("<span>"+a+"</span>","span")){d=d.childNodes;if(1==d.length&&(e=d[0],e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE)){b.payload=xz(a);return}a=t(d);for(d=a.next();!d.done;d=a.next())yz(d.value,b,c)}else b.payload=xz(a)}
1154
+ function zz(a,b){return a&&0<a.length?a:b}
1155
+ function yz(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Bc;d.position=null;d.size=0;if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var e=t(a.nodeName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(g=c.get(g))&&(d.backgroundColor=zz(g.backgroundColor,d.backgroundColor),d.color=zz(g.color,d.color),d.fontFamily=zz(g.fontFamily,
1156
+ d.fontFamily),d.fontSize=zz(g.fontSize,d.fontSize),d.fontWeight=g.fontWeight,d.fontStyle=g.fontStyle,d.opacity=g.opacity,d.rubyTag=g.rubyTag,d.textCombineUpright=g.textCombineUpright,d.textShadow=g.textShadow,d.wrapLine=g.wrapLine);switch(f){case "br":d=Lc(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=700;break;case "i":d.fontStyle="italic";break;case "u":d.textDecoration.push("underline");break;case "font":if(f=a.getAttribute("color"))d.color=f;break;case "div":f=a.getAttribute("time");
1157
+ if(!f)break;if(f=sz(new Gs(f)))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.childNodes;if(ug(a)||1==e.length&&ug(e[0]))for(e=!0,c=t(a.textContent.split("\n")),a=c.next();!a.done;a=c.next())a=a.value,e||(e=Lc(d.startTime,d.endTime),b.nestedCues.push(e)),0<a.length&&(e=d.clone(),e.payload=xz(a),b.nestedCues.push(e)),e=!1;else for(b.nestedCues.push(d),b=t(e),a=b.next();!a.done;a=b.next())yz(a.value,d,c)}
1158
+ function uz(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Dc:a.textAlign=Nc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
1159
+ b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Cc);else if(d=/^region:(.*)$/.exec(b)){if(b=Az(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=Pc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Gc,a.line=Number(c[1]),c[2]&&(a.lineAlign=Pc[c[2].toUpperCase()])}
1160
+ function Az(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}function sz(a){a=Is(a,wz);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}
1161
+ function xz(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}M("shaka.text.VttTextParser",rz);rz.prototype.parseMedia=rz.prototype.parseMedia;rz.prototype.setManifestType=rz.prototype.setManifestType;rz.prototype.setSequenceMode=rz.prototype.setSequenceMode;rz.prototype.parseInit=rz.prototype.parseInit;
1162
+ var wz=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;nd["text/vtt"]=function(){return new rz};nd['text/vtt; codecs="vtt"']=function(){return new rz};nd['text/vtt; codecs="wvtt"']=function(){return new rz};function Bz(){this.g=null}Bz.prototype.parseInit=function(a){var b=this,c=!1;(new Tf).box("moov",Yf).box("trak",Yf).box("mdia",Yf).V("mdhd",function(d){d=Xh(d.reader,d.version);b.g=d.timescale}).box("minf",Yf).box("stbl",Yf).V("stsd",$f).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new P(2,2,2008);if(!c)throw new P(2,2,2008);};Bz.prototype.setSequenceMode=function(){};Bz.prototype.setManifestType=function(){};
1163
+ Bz.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Tf).box("moof",Yf).box("traf",Yf).V("tfdt",function(A){g=!0;c=Wh(A.reader,A.version).baseMediaDecodeTime}).V("tfhd",function(A){l=Uh(A.reader,A.flags).Cg}).V("trun",function(A){h=!0;d=Yh(A.reader,A.version,A.flags).Xg}).box("mdat",bg(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);a=c;for(var m=new Qf(e,0),n=t(d),r=n.next();!r.done;r=n.next()){r=
1164
+ r.value;var q=r.Wf||l,u=r.xe?c+r.xe:a;a=u+(q||0);var v=0;do{var y=m.N();v+=y;var z=m.N(),x=null;"vttc"==Xf(z)?8<y&&(x=m.Ib(y-8)):m.skip(y-8);q&&x&&(y=Cz(x,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(y))}while(r.sampleSize&&v<r.sampleSize)}return f.filter(vd)};function Cz(a,b,c){var d,e,f;(new Tf).box("payl",bg(function(g){d=Kf(g)})).box("iden",bg(function(g){e=Kf(g)})).box("sttg",bg(function(g){f=Kf(g)})).parse(a);return d?Dz(d,e,f,b,c):null}
1165
+ function Dz(a,b,c,d,e){d=new Ac(d,e,"");vz(a,d,new Map);b&&(d.id=b);if(c)for(a=new Gs(c),b=Js(a);b;)uz(d,b,[]),Hs(a),b=Js(a);return d}M("shaka.text.Mp4VttParser",Bz);Bz.prototype.parseMedia=Bz.prototype.parseMedia;Bz.prototype.setManifestType=Bz.prototype.setManifestType;Bz.prototype.setSequenceMode=Bz.prototype.setSequenceMode;Bz.prototype.parseInit=Bz.prototype.parseInit;nd['application/mp4; codecs="wvtt"']=function(){return new Bz};function Ez(){}Ez.prototype.parseInit=function(){};Ez.prototype.setSequenceMode=function(){};Ez.prototype.setManifestType=function(){};Ez.prototype.parseMedia=function(a){var b=Kf(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Gs(c[0]),e=Fz(d),f=Is(d,/,/g);d=Fz(d);if(null==e||null==f||null==d)throw new P(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Ac(e,d,c.slice(1).join("\n").trim()))}return a};
1166
+ function Fz(a){a=Is(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}M("shaka.text.SbvTextParser",Ez);Ez.prototype.parseMedia=Ez.prototype.parseMedia;Ez.prototype.setManifestType=Ez.prototype.setManifestType;Ez.prototype.setSequenceMode=Ez.prototype.setSequenceMode;Ez.prototype.parseInit=Ez.prototype.parseInit;nd["text/x-subviewer"]=function(){return new Ez};function Gz(){this.g=new rz}Gz.prototype.parseInit=function(){};Gz.prototype.setSequenceMode=function(){};Gz.prototype.setManifestType=function(){};Gz.prototype.parseMedia=function(a,b,c){a=Kf(a);a=Hz(a);a=nc(Of(a));return this.g.parseMedia(a,b,c)};
1167
+ function Hz(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}M("shaka.text.SrtTextParser",Gz);Gz.srt2webvtt=Hz;Gz.prototype.parseMedia=Gz.prototype.parseMedia;
1168
+ Gz.prototype.setManifestType=Gz.prototype.setManifestType;Gz.prototype.setSequenceMode=Gz.prototype.setSequenceMode;Gz.prototype.parseInit=Gz.prototype.parseInit;nd["text/srt"]=function(){return new Gz};function Iz(){}Iz.prototype.parseInit=function(){};Iz.prototype.setSequenceMode=function(){};Iz.prototype.setManifestType=function(){};
1169
+ Iz.prototype.parseMedia=function(a){var b="",c="";a=Kf(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=Jz.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=Kz.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(Lz);else if("Style"==e){e=f.split(Lz);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
1170
+ [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Ke:e.Ke},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Kz.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Lz);else if("Dialogue"==f){g=g.split(Lz);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=Mz(f.Start);var k=Mz(f.End);g=new Ac(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Ke=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Ke}}(e)))&&Nz(g,f);d.push(g)}return d};
1171
+ function Nz(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=Oz(c))a.color=c;if(c=b.BackColour)if(c=Oz(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Ic;a.textAlign="start";break;case 2:a.displayAlign=Ic;a.textAlign=Dc;break;case 3:a.displayAlign=Ic;a.textAlign="end";
1172
1172
  break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Dc;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Dc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
1173
- function Nz(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}function Lz(a){a=Oz.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}M("shaka.text.SsaTextParser",Hz);Hz.prototype.parseMedia=Hz.prototype.parseMedia;Hz.prototype.setManifestType=Hz.prototype.setManifestType;Hz.prototype.setSequenceMode=Hz.prototype.setSequenceMode;Hz.prototype.parseInit=Hz.prototype.parseInit;
1174
- var Iz=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Jz=/^\s*([^:]+):\s*(.*)/,Kz=/\s*,\s*/,Oz=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;nd["text/x-ssa"]=function(){return new Hz};function Pz(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{ce:c,X:a}:null}function Qz(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,ra:"mp4a.40."+e}}
1175
- function Rz(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1}
1176
- function Sz(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
1177
- 2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function Tz(a){this.i=a;this.h=0;this.g=new Map}p=Tz.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(kd(b)||"mp4a.40.2")+'"':b};p.getOriginalMimeType=function(){return this.i};
1178
- p.transmux=function(a,b,c,d){for(var e=nc(a),f=Th(e),g=f.length;g<e.length&&!Rz(e,g);g++);a=1E3*c.endTime;f=Sh(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=Qz(e,g);if(!c)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=Pz(e,g);if(!h)return Promise.reject(new P(2,3,3018));var k=h.ce+h.X;g+k<=e.length&&f.push({data:e.subarray(g+h.ce,g+k),size:h.X,
1179
- duration:1024,fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}});g+=k}e=c.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:c.ra,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,cb:[],ma:new Uint8Array([]),za:new Uint8Array([]),data:{ub:this.h,baseMediaDecodeTime:a,$a:f},stream:b};a=new hu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=pu(a),this.g.set(b.id,d));b=Fu(a);this.h++;b=jg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.AacTransmuxer",Tz);
1180
- Tz.prototype.transmux=Tz.prototype.transmux;Tz.prototype.getOriginalMimeType=Tz.prototype.getOriginalMimeType;Tz.prototype.convertCodecs=Tz.prototype.convertCodecs;Tz.prototype.isSupported=Tz.prototype.isSupported;Tz.prototype.destroy=Tz.prototype.destroy;Wc("audio/aac",function(){return new Tz("audio/aac")},bd);function Uz(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,
1173
+ function Oz(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}function Mz(a){a=Pz.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}M("shaka.text.SsaTextParser",Iz);Iz.prototype.parseMedia=Iz.prototype.parseMedia;Iz.prototype.setManifestType=Iz.prototype.setManifestType;Iz.prototype.setSequenceMode=Iz.prototype.setSequenceMode;Iz.prototype.parseInit=Iz.prototype.parseInit;
1174
+ var Jz=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Kz=/^\s*([^:]+):\s*(.*)/,Lz=/\s*,\s*/,Pz=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;nd["text/x-ssa"]=function(){return new Iz};function Qz(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{ce:c,X:a}:null}function Rz(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,sa:"mp4a.40."+e}}
1175
+ function Sz(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1}
1176
+ function Tz(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
1177
+ 2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function Uz(a){this.i=a;this.h=0;this.g=new Map}p=Uz.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(kd(b)||"mp4a.40.2")+'"':b};p.getOriginalMimeType=function(){return this.i};
1178
+ p.transmux=function(a,b,c,d){for(var e=nc(a),f=Th(e),g=f.length;g<e.length&&!Sz(e,g);g++);a=1E3*c.endTime;f=Sh(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=Rz(e,g);if(!c)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=Qz(e,g);if(!h)return Promise.reject(new P(2,3,3018));var k=h.ce+h.X;g+k<=e.length&&f.push({data:e.subarray(g+h.ce,g+k),size:h.X,
1179
+ duration:1024,fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}});g+=k}e=c.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:c.sa,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,cb:[],ma:new Uint8Array([]),za:new Uint8Array([]),data:{vb:this.h,baseMediaDecodeTime:a,$a:f},stream:b};a=new hu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=pu(a),this.g.set(b.id,d));b=Fu(a);this.h++;b=jg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.AacTransmuxer",Uz);
1180
+ Uz.prototype.transmux=Uz.prototype.transmux;Uz.prototype.getOriginalMimeType=Uz.prototype.getOriginalMimeType;Uz.prototype.convertCodecs=Uz.prototype.convertCodecs;Uz.prototype.isSupported=Uz.prototype.isSupported;Uz.prototype.destroy=Uz.prototype.destroy;Wc("audio/aac",function(){return new Uz("audio/aac")},bd);function Vz(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,
1181
1181
  1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,ma:a,X:e}}
1182
- function Vz(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function Wz(a){this.i=a;this.h=0;this.g=new Map}p=Wz.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};p.getOriginalMimeType=function(){return this.i};
1183
- p.transmux=function(a,b,c,d){a=nc(a);for(var e=Th(a),f=e.length;f<a.length&&!Vz(a,f);f++);var g=1E3*c.endTime;e=Sh(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=Uz(a,f);if(!k)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ma;h.push({data:a.subarray(f,f+k.X),size:k.X,duration:1536,fb:0,flags:{hb:0,
1184
- Ya:0,Xa:0,Va:0,Wa:2,ib:0}});f+=k.X}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,cb:[],ma:e,za:new Uint8Array([]),data:{ub:this.h,baseMediaDecodeTime:a,$a:h},stream:b};a=new hu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=pu(a),this.g.set(b.id,d));b=Fu(a);this.h++;b=jg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Ac3Transmuxer",Wz);Wz.prototype.transmux=Wz.prototype.transmux;Wz.prototype.getOriginalMimeType=Wz.prototype.getOriginalMimeType;
1185
- Wz.prototype.convertCodecs=Wz.prototype.convertCodecs;Wz.prototype.isSupported=Wz.prototype.isSupported;Wz.prototype.destroy=Wz.prototype.destroy;Wc("audio/ac3",function(){return new Wz("audio/ac3")},bd);function Xz(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new ci(a.subarray(b+2));ei(c,2);ei(c,3);var d=fi(c,11)+1<<1,e=fi(c,2);if(3==e){e=fi(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=fi(c,2);var g=fi(c,3),h=fi(c,1);c=fi(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,ma:a,X:d}};function Yz(a){this.i=a;this.h=0;this.g=new Map}p=Yz.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};p.getOriginalMimeType=function(){return this.i};
1186
- p.transmux=function(a,b,c,d){a=nc(a);for(var e=Th(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Sh(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=Xz(a,f);if(!k)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ma;h.push({data:a.subarray(f,f+k.X),size:k.X,duration:1536,
1187
- fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}});f+=k.X}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,cb:[],ma:e,za:new Uint8Array([]),data:{ub:this.h,baseMediaDecodeTime:a,$a:h},stream:b};a=new hu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=pu(a),this.g.set(b.id,d));b=Fu(a);this.h++;b=jg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Ec3Transmuxer",Yz);Yz.prototype.transmux=Yz.prototype.transmux;
1188
- Yz.prototype.getOriginalMimeType=Yz.prototype.getOriginalMimeType;Yz.prototype.convertCodecs=Yz.prototype.convertCodecs;Yz.prototype.isSupported=Yz.prototype.isSupported;Yz.prototype.destroy=Yz.prototype.destroy;Wc("audio/ec3",function(){return new Yz("audio/ec3")},bd);function Zz(a){if(!a.length)return null;var b=a.find(function(m){return 7==m.type});a=a.find(function(m){return 8==m.type});if(!b||!a)return null;var c=new ci(b.data),d=ji(c);ji(c);ji(c);hi(c);if($z.includes(d)&&(d=Q(c),3===d&&ei(c,1),hi(c),hi(c),ei(c,1),S(c))){d=3!==d?8:12;for(var e=0;e<d;e++)S(c)&&(6>e?ki(c,16):ki(c,64))}hi(c);d=Q(c);if(0===d)Q(c);else if(1===d)for(ei(c,1),hi(c),hi(c),d=Q(c),e=0;e<d;e++)hi(c);hi(c);ei(c,1);d=Q(c);var f=Q(c),g=fi(c,1);0===g&&ei(c,1);ei(c,1);var h=e=0,k=0,l=0;S(c)&&
1182
+ function Wz(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function Xz(a){this.i=a;this.h=0;this.g=new Map}p=Xz.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};p.getOriginalMimeType=function(){return this.i};
1183
+ p.transmux=function(a,b,c,d){a=nc(a);for(var e=Th(a),f=e.length;f<a.length&&!Wz(a,f);f++);var g=1E3*c.endTime;e=Sh(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=Vz(a,f);if(!k)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ma;h.push({data:a.subarray(f,f+k.X),size:k.X,duration:1536,fb:0,flags:{hb:0,
1184
+ Ya:0,Xa:0,Va:0,Wa:2,ib:0}});f+=k.X}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,cb:[],ma:e,za:new Uint8Array([]),data:{vb:this.h,baseMediaDecodeTime:a,$a:h},stream:b};a=new hu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=pu(a),this.g.set(b.id,d));b=Fu(a);this.h++;b=jg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Ac3Transmuxer",Xz);Xz.prototype.transmux=Xz.prototype.transmux;Xz.prototype.getOriginalMimeType=Xz.prototype.getOriginalMimeType;
1185
+ Xz.prototype.convertCodecs=Xz.prototype.convertCodecs;Xz.prototype.isSupported=Xz.prototype.isSupported;Xz.prototype.destroy=Xz.prototype.destroy;Wc("audio/ac3",function(){return new Xz("audio/ac3")},bd);function Yz(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new ci(a.subarray(b+2));ei(c,2);ei(c,3);var d=fi(c,11)+1<<1,e=fi(c,2);if(3==e){e=fi(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=fi(c,2);var g=fi(c,3),h=fi(c,1);c=fi(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,ma:a,X:d}};function Zz(a){this.i=a;this.h=0;this.g=new Map}p=Zz.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};p.getOriginalMimeType=function(){return this.i};
1186
+ p.transmux=function(a,b,c,d){a=nc(a);for(var e=Th(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Sh(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=Yz(a,f);if(!k)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ma;h.push({data:a.subarray(f,f+k.X),size:k.X,duration:1536,
1187
+ fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}});f+=k.X}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,cb:[],ma:e,za:new Uint8Array([]),data:{vb:this.h,baseMediaDecodeTime:a,$a:h},stream:b};a=new hu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=pu(a),this.g.set(b.id,d));b=Fu(a);this.h++;b=jg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Ec3Transmuxer",Zz);Zz.prototype.transmux=Zz.prototype.transmux;
1188
+ Zz.prototype.getOriginalMimeType=Zz.prototype.getOriginalMimeType;Zz.prototype.convertCodecs=Zz.prototype.convertCodecs;Zz.prototype.isSupported=Zz.prototype.isSupported;Zz.prototype.destroy=Zz.prototype.destroy;Wc("audio/ec3",function(){return new Zz("audio/ec3")},bd);function $z(a){if(!a.length)return null;var b=a.find(function(m){return 7==m.type});a=a.find(function(m){return 8==m.type});if(!b||!a)return null;var c=new ci(b.data),d=ji(c);ji(c);ji(c);hi(c);if(aA.includes(d)&&(d=Q(c),3===d&&ei(c,1),hi(c),hi(c),ei(c,1),S(c))){d=3!==d?8:12;for(var e=0;e<d;e++)S(c)&&(6>e?ki(c,16):ki(c,64))}hi(c);d=Q(c);if(0===d)Q(c);else if(1===d)for(ei(c,1),hi(c),hi(c),d=Q(c),e=0;e<d;e++)hi(c);hi(c);ei(c,1);d=Q(c);var f=Q(c),g=fi(c,1);0===g&&ei(c,1);ei(c,1);var h=e=0,k=0,l=0;S(c)&&
1189
1189
  (e=Q(c),h=Q(c),k=Q(c),l=Q(c));c=(2-g)*(f+1)*16-2*k-2*l;d=16*(d+1)-2*e-2*h;e=[];b=b.fullData;e.push(b.byteLength>>>8&255);e.push(b.byteLength&255);e=e.concat.apply(e,w(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,w(a));a=new Uint8Array([1,e[3],e[4],e[5],255,225].concat(e,[1],b));return{height:c,width:d,za:a}}
1190
- function aA(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=t(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=li(new ci(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(jg(h,
1191
- f.fullData)))}return c.length?{data:jg.apply(cg,w(c)),qd:b}:null}var $z=[100,110,122,244,44,83,86,118,128,138,139,134];function bA(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=cA(b.fullData);a=dA(c.fullData);var f=eA(d.fullData);b=fA(b.fullData,c.fullData,d.fullData,{Kf:e.Kf,ig:e.ig,nf:a.nf,pf:a.pf,gf:a.gf,mf:a.mf,hf:a.hf,jf:a.jf,kf:a.kf,lf:a.lf,Ze:a.Ze,$e:a.$e,bf:a.bf,cf:a.cf,df:a.df,ef:a.ef,Ve:a.Ve,pe:a.pe,Ue:a.Ue,Re:a.Re,Qe:a.Qe,Of:f.Of});return{height:a.height,width:a.width,
1192
- za:b}}function cA(a){var b=new ci(a,!0);ji(b);ji(b);fi(b,4);fi(b,2);fi(b,6);a=fi(b,3);b=S(b);return{Kf:a+1,ig:b}}
1193
- function dA(a){a=new ci(a,!0);ji(a);ji(a);var b=0,c=0,d=0,e=0;fi(a,4);var f=fi(a,3);S(a);for(var g=fi(a,2),h=fi(a,1),k=fi(a,5),l=ji(a),m=ji(a),n=ji(a),r=ji(a),q=ji(a),u=ji(a),v=ji(a),y=ji(a),z=ji(a),x=ji(a),A=ji(a),B=[],C=[],E=0;E<f;E++)B.push(S(a)),C.push(S(a));if(0<f)for(E=f;8>E;E++)fi(a,2);for(E=0;E<f;E++)B[E]&&fi(a,88),C[E]&&ji(a);Q(a);B=Q(a);3==B&&fi(a,1);C=Q(a);E=Q(a);S(a)&&(b+=Q(a),c+=Q(a),d+=Q(a),e+=Q(a));var H=Q(a),G=Q(a),I=Q(a);if(S(a))for(var J=0;J<=f;J++)Q(a),Q(a),Q(a);else Q(a),Q(a),
1190
+ function bA(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=t(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=li(new ci(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(jg(h,
1191
+ f.fullData)))}return c.length?{data:jg.apply(cg,w(c)),qd:b}:null}var aA=[100,110,122,244,44,83,86,118,128,138,139,134];function cA(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=dA(b.fullData);a=eA(c.fullData);var f=fA(d.fullData);b=gA(b.fullData,c.fullData,d.fullData,{Kf:e.Kf,ig:e.ig,nf:a.nf,pf:a.pf,gf:a.gf,mf:a.mf,hf:a.hf,jf:a.jf,kf:a.kf,lf:a.lf,Ze:a.Ze,$e:a.$e,bf:a.bf,cf:a.cf,df:a.df,ef:a.ef,Ve:a.Ve,pe:a.pe,Ue:a.Ue,Re:a.Re,Qe:a.Qe,Of:f.Of});return{height:a.height,width:a.width,
1192
+ za:b}}function dA(a){var b=new ci(a,!0);ji(b);ji(b);fi(b,4);fi(b,2);fi(b,6);a=fi(b,3);b=S(b);return{Kf:a+1,ig:b}}
1193
+ function eA(a){a=new ci(a,!0);ji(a);ji(a);var b=0,c=0,d=0,e=0;fi(a,4);var f=fi(a,3);S(a);for(var g=fi(a,2),h=fi(a,1),k=fi(a,5),l=ji(a),m=ji(a),n=ji(a),r=ji(a),q=ji(a),u=ji(a),v=ji(a),y=ji(a),z=ji(a),x=ji(a),A=ji(a),B=[],C=[],E=0;E<f;E++)B.push(S(a)),C.push(S(a));if(0<f)for(E=f;8>E;E++)fi(a,2);for(E=0;E<f;E++)B[E]&&fi(a,88),C[E]&&ji(a);Q(a);B=Q(a);3==B&&fi(a,1);C=Q(a);E=Q(a);S(a)&&(b+=Q(a),c+=Q(a),d+=Q(a),e+=Q(a));var H=Q(a),G=Q(a),I=Q(a);if(S(a))for(var J=0;J<=f;J++)Q(a),Q(a),Q(a);else Q(a),Q(a),
1194
1194
  Q(a);Q(a);Q(a);Q(a);Q(a);Q(a);Q(a);if(S(a)&&S(a))for(J=0;4>J;J++)for(var L=0;L<(3===J?2:6);L++)if(S(a)){var N=Math.min(64,1<<4+(J<<1));1<J&&ii(a);for(var R=0;R<N;R++)ii(a)}else Q(a);S(a);S(a);S(a)&&(ji(a),Q(a),Q(a),S(a));J=Q(a);for(N=L=0;N<J;N++)if(R=!1,0!==N&&(R=S(a)),R){N===J&&Q(a);S(a);Q(a);for(var U=R=0;U<=L;U++){var Z=S(a),aa=!1;Z||(aa=S(a));(Z||aa)&&R++}L=R}else{U=Q(a);R=Q(a);L=U+R;for(Z=0;Z<U;Z++)Q(a),S(a);for(U=0;U<R;U++)Q(a),S(a)}if(S(a))for(J=Q(a),L=0;L<J;L++){for(N=0;N<I+4;N++)fi(a,1);
1195
1195
  fi(a,1)}I=0;S(a);S(a);if(S(a)){S(a)&&255===ji(a)&&(fi(a,16),fi(a,16));S(a)&&S(a);S(a)&&(fi(a,3),S(a),S(a)&&(ji(a),ji(a),ji(a)));S(a)&&(Q(a),Q(a));S(a);S(a);S(a);if(J=S(a))Q(a),Q(a),Q(a),Q(a);if(S(a)&&(fi(a,32),fi(a,32),S(a)&&Q(a),S(a))){N=!1;J=S(a);L=S(a);if(J||L){if(N=S(a))ji(a),fi(a,5),S(a),fi(a,5);fi(a,4);fi(a,4);N&&fi(a,4);fi(a,5);fi(a,5);fi(a,5)}for(R=0;R<=f;R++){Z=!0;U=1;S(a)||(Z=S(a));aa=!1;Z?Q(a):aa=S(a);aa||(U=Q(a)+1);if(J){for(Z=0;Z<U;Z++)Q(a),Q(a),N&&(Q(a),Q(a));S(a)}if(L){for(Z=0;Z<U;Z++)Q(a),
1196
- Q(a),N&&(Q(a),Q(a));S(a)}}}S(a)&&(S(a),S(a),S(a),I=Q(a),Q(a),Q(a),Q(a),Q(a))}return{gf:A,nf:g,pf:h,mf:k,hf:l,jf:m,kf:n,lf:r,Ze:q,$e:u,bf:v,cf:y,df:z,ef:x,pe:I,Ve:0,Ue:B,Re:H,Qe:G,width:C-(b+c)*(1===B||2===B?2:1),height:E-(d+e)*(1===B?2:1)}}function eA(a){var b=new ci(a,!0);ji(b);ji(b);Q(b);Q(b);S(b);S(b);fi(b,3);S(b);S(b);Q(b);Q(b);ii(b);S(b);S(b);S(b)&&Q(b);ii(b);ii(b);S(b);S(b);S(b);S(b);a=S(b);b=S(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Of:c}}
1197
- function fA(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.nf&3)<<6|(d.pf?1:0)<<5|d.mf&31;e[2]=d.hf;e[3]=d.jf;e[4]=d.kf;e[5]=d.lf;e[6]=d.Ze;e[7]=d.$e;e[8]=d.bf;e[9]=d.cf;e[10]=d.df;e[11]=d.ef;e[12]=d.gf;e[13]=240|(d.pe&3840)>>8;e[14]=d.pe&255;e[15]=252|d.Of&3;e[16]=252|d.Ue&3;e[17]=248|d.Re&7;e[18]=248|d.Qe&7;e[19]=0;e[20]=0;e[21]=(d.Ve&3)<<6|(d.Kf&7)<<3|(d.ig?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&
1198
- 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 gA(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*hA[14*(3===c?3-d:3===d?3:4)+e-1];f=iA[3*(3===c?0:2===c?1:2)+f];c=jA[c][d];var h=kA[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,X:k,Ui:8*c*h}}return null}
1199
- function lA(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}var hA=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],iA=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],jA=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],kA=[0,1,1,4];function mA(a){this.i=a;this.h=0;this.g=new Map}p=mA.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};p.getOriginalMimeType=function(){return this.i};
1200
- p.transmux=function(a,b,c,d){a=nc(a);for(c=Th(a).length;c<a.length;c++){var e=c;if(e+1<a.length&&lA(a,e)){var f=gA(a,e),g=4;f&&f.X&&(g=f.X);e+=g;e=e===a.length||e+1<a.length&&lA(a,e)}else e=!1;if(e)break}var h;for(e=[];c<a.length;){f=gA(a,c);if(!f)return Promise.reject(new P(2,3,3018));h||(h=f);c+f.X<=a.length&&e.push({data:a.subarray(c,c+f.X),size:f.X,duration:1152,fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}});c+=f.X}if(!h)return Promise.reject(new P(2,3,3018));a=9E4*h.Ui/h.sampleRate*this.h;d={id:b.id,
1201
- type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:h.sampleRate,duration:d,cb:[],ma:new Uint8Array([]),za:new Uint8Array([]),data:{ub:this.h,baseMediaDecodeTime:a,$a:e},stream:b};h=new hu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=pu(h),this.g.set(b.id,d));b=Fu(h);this.h++;b=jg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Mp3Transmuxer",mA);mA.prototype.transmux=mA.prototype.transmux;mA.prototype.getOriginalMimeType=mA.prototype.getOriginalMimeType;
1202
- mA.prototype.convertCodecs=mA.prototype.convertCodecs;mA.prototype.isSupported=mA.prototype.isSupported;mA.prototype.destroy=mA.prototype.destroy;Wc("audio/mpeg",function(){return new mA("audio/mpeg")},bd);function nA(a){this.h=a;this.g=null}p=nA.prototype;p.destroy=function(){};p.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=kd(a).split(","),c=Jb("audio",b);b=Jb("video",b);return!c||b||"mp3"!=hd(c)?!1:fc(this.convertCodecs("audio",a))};p.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};p.getOriginalMimeType=function(){return this.h};
1203
- p.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new mi;a=nc(a);a=this.g.parse(a);if("mp3"!=a.hd().audio||"audio"!=e)return Promise.reject(new P(2,3,3018));e=new Uint8Array([]);a=t(a.ec());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=gA(b,c))?(c+d.X<=b.length&&(e=jg(e,b.subarray(c,c+d.X))),c+=d.X):c++;return Promise.resolve(e)};M("shaka.transmuxer.MpegTsTransmuxer",nA);nA.prototype.transmux=nA.prototype.transmux;nA.prototype.getOriginalMimeType=nA.prototype.getOriginalMimeType;
1204
- nA.prototype.convertCodecs=nA.prototype.convertCodecs;nA.prototype.isSupported=nA.prototype.isSupported;nA.prototype.destroy=nA.prototype.destroy;Wc("video/mp2t",function(){return new nA("video/mp2t")},ad);/*
1196
+ Q(a),N&&(Q(a),Q(a));S(a)}}}S(a)&&(S(a),S(a),S(a),I=Q(a),Q(a),Q(a),Q(a),Q(a))}return{gf:A,nf:g,pf:h,mf:k,hf:l,jf:m,kf:n,lf:r,Ze:q,$e:u,bf:v,cf:y,df:z,ef:x,pe:I,Ve:0,Ue:B,Re:H,Qe:G,width:C-(b+c)*(1===B||2===B?2:1),height:E-(d+e)*(1===B?2:1)}}function fA(a){var b=new ci(a,!0);ji(b);ji(b);Q(b);Q(b);S(b);S(b);fi(b,3);S(b);S(b);Q(b);Q(b);ii(b);S(b);S(b);S(b)&&Q(b);ii(b);ii(b);S(b);S(b);S(b);S(b);a=S(b);b=S(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Of:c}}
1197
+ function gA(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.nf&3)<<6|(d.pf?1:0)<<5|d.mf&31;e[2]=d.hf;e[3]=d.jf;e[4]=d.kf;e[5]=d.lf;e[6]=d.Ze;e[7]=d.$e;e[8]=d.bf;e[9]=d.cf;e[10]=d.df;e[11]=d.ef;e[12]=d.gf;e[13]=240|(d.pe&3840)>>8;e[14]=d.pe&255;e[15]=252|d.Of&3;e[16]=252|d.Ue&3;e[17]=248|d.Re&7;e[18]=248|d.Qe&7;e[19]=0;e[20]=0;e[21]=(d.Ve&3)<<6|(d.Kf&7)<<3|(d.ig?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&
1198
+ 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 hA(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*iA[14*(3===c?3-d:3===d?3:4)+e-1];f=jA[3*(3===c?0:2===c?1:2)+f];c=kA[c][d];var h=lA[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,X:k,Ui:8*c*h}}return null}
1199
+ function mA(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}var iA=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],jA=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],kA=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],lA=[0,1,1,4];function nA(a){this.i=a;this.h=0;this.g=new Map}p=nA.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};p.getOriginalMimeType=function(){return this.i};
1200
+ p.transmux=function(a,b,c,d){a=nc(a);for(c=Th(a).length;c<a.length;c++){var e=c;if(e+1<a.length&&mA(a,e)){var f=hA(a,e),g=4;f&&f.X&&(g=f.X);e+=g;e=e===a.length||e+1<a.length&&mA(a,e)}else e=!1;if(e)break}var h;for(e=[];c<a.length;){f=hA(a,c);if(!f)return Promise.reject(new P(2,3,3018));h||(h=f);c+f.X<=a.length&&e.push({data:a.subarray(c,c+f.X),size:f.X,duration:1152,fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}});c+=f.X}if(!h)return Promise.reject(new P(2,3,3018));a=9E4*h.Ui/h.sampleRate*this.h;d={id:b.id,
1201
+ type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:h.sampleRate,duration:d,cb:[],ma:new Uint8Array([]),za:new Uint8Array([]),data:{vb:this.h,baseMediaDecodeTime:a,$a:e},stream:b};h=new hu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=pu(h),this.g.set(b.id,d));b=Fu(h);this.h++;b=jg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Mp3Transmuxer",nA);nA.prototype.transmux=nA.prototype.transmux;nA.prototype.getOriginalMimeType=nA.prototype.getOriginalMimeType;
1202
+ nA.prototype.convertCodecs=nA.prototype.convertCodecs;nA.prototype.isSupported=nA.prototype.isSupported;nA.prototype.destroy=nA.prototype.destroy;Wc("audio/mpeg",function(){return new nA("audio/mpeg")},bd);function oA(a){this.h=a;this.g=null}p=oA.prototype;p.destroy=function(){};p.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=kd(a).split(","),c=Jb("audio",b);b=Jb("video",b);return!c||b||"mp3"!=hd(c)?!1:fc(this.convertCodecs("audio",a))};p.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};p.getOriginalMimeType=function(){return this.h};
1203
+ p.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new mi;a=nc(a);a=this.g.parse(a);if("mp3"!=a.hd().audio||"audio"!=e)return Promise.reject(new P(2,3,3018));e=new Uint8Array([]);a=t(a.ec());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=hA(b,c))?(c+d.X<=b.length&&(e=jg(e,b.subarray(c,c+d.X))),c+=d.X):c++;return Promise.resolve(e)};M("shaka.transmuxer.MpegTsTransmuxer",oA);oA.prototype.transmux=oA.prototype.transmux;oA.prototype.getOriginalMimeType=oA.prototype.getOriginalMimeType;
1204
+ oA.prototype.convertCodecs=oA.prototype.convertCodecs;oA.prototype.isSupported=oA.prototype.isSupported;oA.prototype.destroy=oA.prototype.destroy;Wc("video/mp2t",function(){return new oA("video/mp2t")},ad);/*
1205
1205
  @license
1206
1206
  MSS Transmuxer
1207
1207
  Copyright 2015 Dash Industry Forum
1208
1208
  SPDX-License-Identifier: BSD-3-Clause
1209
1209
  */
1210
- function oA(a){this.h=a;(this.g=rs.get("ISOBoxer")())&&pA(this)}
1211
- function pA(a){function b(){this._procFullBox();this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8));this._procField("sample_count","uint",32);this._procEntries("entry",this.sample_count,function(c){this._procEntryField(c,"InitializationVector","data",8);this.flags&2&&(this._procEntryField(c,"NumberOfEntries","uint",16),this._procSubEntries(c,"clearAndCryptedData",c.NumberOfEntries,function(d){this._procEntryField(d,"BytesOfClearData",
1210
+ function pA(a){this.h=a;(this.g=rs.get("ISOBoxer")())&&qA(this)}
1211
+ function qA(a){function b(){this._procFullBox();this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8));this._procField("sample_count","uint",32);this._procEntries("entry",this.sample_count,function(c){this._procEntryField(c,"InitializationVector","data",8);this.flags&2&&(this._procEntryField(c,"NumberOfEntries","uint",16),this._procSubEntries(c,"clearAndCryptedData",c.NumberOfEntries,function(d){this._procEntryField(d,"BytesOfClearData",
1212
1212
  "uint",16);this._procEntryField(d,"BytesOfEncryptedData","uint",32)}))})}a.g.addBoxProcessor("saio",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32));this._procField("entry_count","uint",32);this._procFieldArray("offset",this.entry_count,"uint",1===this.version?64:32)});a.g.addBoxProcessor("saiz",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter",
1213
- "uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==qA[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}p=oA.prototype;p.destroy=function(){};
1213
+ "uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==rA[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}p=pA.prototype;p.destroy=function(){};
1214
1214
  p.isSupported=function(a,b){var c=a.startsWith("mss/");if(!this.g||!c)return!1;if(b)return fc(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return fc(b)||fc(a)};p.convertCodecs=function(a,b){return b.replace("mss/","")};p.getOriginalMimeType=function(){return this.h};
1215
1215
  p.transmux=function(a,b,c){if(!c)return Promise.resolve(nc(a));if(!b.mssPrivateData)return Promise.reject(new P(2,3,3020));try{var d,e=this.g.parseBuffer(a),f=e.fetch("tfhd");f.track_ID=b.id+1;var g=e.fetch("tfdt"),h=e.fetch("traf");null===g&&(g=this.g.createFullBox("tfdt",h,f),g.version=1,g.flags=0,g.baseMediaDecodeTime=Math.floor(c.startTime*b.mssPrivateData.timescale));var k=e.fetch("trun"),l=e.fetch("tfxd");l&&l._parent.boxes.splice(l._parent.boxes.indexOf(l),1);var m=e.fetch("tfrf");m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),
1216
1216
  1);var n=e.fetch("sepiff");if(null!==n){n.type="senc";n.usertype=void 0;var r=e.fetch("saio");if(null===r){r=this.g.createFullBox("saio",h);r.version=0;r.flags=0;r.entry_count=1;r.offset=[0];var q=this.g.createFullBox("saiz",h);q.version=0;q.flags=0;q.sample_count=n.sample_count;q.default_sample_info_size=0;q.sample_info_size=[];if(n.flags&2)for(d=0;d<n.sample_count;d+=1)q.sample_info_size[d]=10+6*n.entry[d].NumberOfEntries;else q.default_sample_info_size=8}}f.flags&=16777214;f.flags|=131072;k.flags|=
1217
- 1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var v=e.fetch("saio");null!==v&&(v.offset[0]=rA(u,"traf")+rA(h,"senc")+16);var y=nc(e.write());return Promise.resolve(y)}catch(z){return z instanceof P?Promise.reject(z):Promise.reject(new P(2,3,3022))}};function rA(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}M("shaka.transmuxer.MssTransmuxer",oA);oA.prototype.transmux=oA.prototype.transmux;oA.prototype.getOriginalMimeType=oA.prototype.getOriginalMimeType;
1218
- oA.prototype.convertCodecs=oA.prototype.convertCodecs;oA.prototype.isSupported=oA.prototype.isSupported;oA.prototype.destroy=oA.prototype.destroy;var qA=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);Wc("mss/audio/mp4",function(){return new oA("mss/audio/mp4")},bd);Wc("mss/video/mp4",function(){return new oA("mss/video/mp4")},bd);function sA(a){this.j=a;this.g=0;this.h=new Map;this.i=null}p=sA.prototype;p.destroy=function(){this.h.clear()};p.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=kd(c).split(",");c=Jb("audio",d);d=Jb("video",d);if(c&&(c=hd(c),!tA.includes(c))||d&&(c=hd(d),!uA.includes(c)))return!1;if(b)return fc(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return fc(b)||fc(a)};
1217
+ 1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var v=e.fetch("saio");null!==v&&(v.offset[0]=sA(u,"traf")+sA(h,"senc")+16);var y=nc(e.write());return Promise.resolve(y)}catch(z){return z instanceof P?Promise.reject(z):Promise.reject(new P(2,3,3022))}};function sA(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}M("shaka.transmuxer.MssTransmuxer",pA);pA.prototype.transmux=pA.prototype.transmux;pA.prototype.getOriginalMimeType=pA.prototype.getOriginalMimeType;
1218
+ pA.prototype.convertCodecs=pA.prototype.convertCodecs;pA.prototype.isSupported=pA.prototype.isSupported;pA.prototype.destroy=pA.prototype.destroy;var rA=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);Wc("mss/audio/mp4",function(){return new pA("mss/audio/mp4")},bd);Wc("mss/video/mp4",function(){return new pA("mss/video/mp4")},bd);function tA(a){this.j=a;this.g=0;this.h=new Map;this.i=null}p=tA.prototype;p.destroy=function(){this.h.clear()};p.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=kd(c).split(",");c=Jb("audio",d);d=Jb("video",d);if(c&&(c=hd(c),!uA.includes(c))||d&&(c=hd(d),!vA.includes(c)))return!1;if(b)return fc(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return fc(b)||fc(a)};
1219
1219
  p.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=kd(b).replace("mp4a.40.34","mp3").split(",").map(this.Nh).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};p.Nh=function(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)}return a};p.getOriginalMimeType=function(){return this.j};
1220
- p.transmux=function(a,b,c,d,e){this.i?this.i.clearData():this.i=new mi;a=nc(a);var f=this.i.parse(a);a=[];var g=f.hd();try{var h=null;if("video"==e){switch(g.video){case "avc":var k=[],l=null,m=[],n=f.Dc();if(!n.length)throw new P(2,3,3023);for(var r=0;r<n.length;r++){var q=n[r],u=q.nalus;m.push.apply(m,w(u));var v=aA(u);if(v){null==l&&(l=q.dts);var y=void 0;y=r+1<n.length?(n[r+1].dts||0)-(q.dts||0):1<n.length?(q.dts||0)-(n[r-1].dts||0):9E4*(c.endTime-c.startTime);k.push({data:v.data,size:v.data.byteLength,
1221
- duration:y,fb:Math.round((q.pts||0)-(q.dts||0)),flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:v.qd?2:1,ib:v.qd?0:1}})}}var z=Zz(m);if(!z||null==l)throw new P(2,3,3018);b.height=z.height;b.width=z.width;h={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,cb:[],ma:new Uint8Array([]),za:z.za,data:{ub:this.g,baseMediaDecodeTime:l,$a:k},stream:b};break;case "hvc":n=[];q=null;u=[];k=f.Dc();if(!k.length)throw new P(2,3,3023);for(v=0;v<k.length;v++){l=k[v];m=l.nalus;
1220
+ p.transmux=function(a,b,c,d,e){this.i?this.i.clearData():this.i=new mi;a=nc(a);var f=this.i.parse(a);a=[];var g=f.hd();try{var h=null;if("video"==e){switch(g.video){case "avc":var k=[],l=null,m=[],n=f.Dc();if(!n.length)throw new P(2,3,3023);for(var r=0;r<n.length;r++){var q=n[r],u=q.nalus;m.push.apply(m,w(u));var v=bA(u);if(v){null==l&&(l=q.dts);var y=void 0;y=r+1<n.length?(n[r+1].dts||0)-(q.dts||0):1<n.length?(q.dts||0)-(n[r-1].dts||0):9E4*(c.endTime-c.startTime);k.push({data:v.data,size:v.data.byteLength,
1221
+ duration:y,fb:Math.round((q.pts||0)-(q.dts||0)),flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:v.qd?2:1,ib:v.qd?0:1}})}}var z=$z(m);if(!z||null==l)throw new P(2,3,3018);b.height=z.height;b.width=z.width;h={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,cb:[],ma:new Uint8Array([]),za:z.za,data:{vb:this.g,baseMediaDecodeTime:l,$a:k},stream:b};break;case "hvc":n=[];q=null;u=[];k=f.Dc();if(!k.length)throw new P(2,3,3023);for(v=0;v<k.length;v++){l=k[v];m=l.nalus;
1222
1222
  u.push.apply(u,w(m));z=!1;var x=[],A=!1;r=t(m);for(y=r.next();!y.done;y=r.next()){var B=y.value;switch(B.type){case 1:case 0:var C=A=!0;break;case 19:case 20:case 21:z=C=A=!0;break;case 32:C=!0;break;case 33:C=!0;break;case 34:C=!0;break;case 35:A=C=!0;break;case 39:case 40:C=!0;break;default:C=!1}if(A&&C){var E=B.fullData.byteLength,H=new Uint8Array(4);H[0]=E>>24&255;H[1]=E>>16&255;H[2]=E>>8&255;H[3]=E&255;x.push(jg(H,B.fullData))}}var G=x.length?{data:jg.apply(cg,w(x)),qd:z}:null;G&&(null==q&&null!=
1223
- l.dts&&(q=l.dts),z=void 0,z=v+1<k.length?(k[v+1].dts||0)-(l.dts||0):1<k.length?(l.dts||0)-(k[v-1].dts||0):9E4*(c.endTime-c.startTime),n.push({data:G.data,size:G.data.byteLength,duration:z,fb:Math.round((l.pts||0)-(l.dts||0)),flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:G.qd?2:1,ib:G.qd?0:1}}))}var I=bA(u);if(!I||null==q)throw new P(2,3,3018);b.height=I.height;b.width=I.width;h={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,cb:[],ma:new Uint8Array([]),za:I.za,
1224
- data:{ub:this.g,baseMediaDecodeTime:q,$a:n},stream:b}}h&&(a.push(h),h=null)}if("audio"==e){switch(g.audio){case "aac":for(var J=[],L,N=null,R=t(f.ec()),U=R.next();!U.done;U=R.next()){var Z=U.value,aa=Z.data;if(aa){var la=0;L=Qz(aa,la);if(!L)throw new P(2,3,3018);b.audioSamplingRate=L.sampleRate;b.channelsCount=L.channelCount;null==N&&null!==Z.pts&&(N=Z.pts);for(;la<aa.length;){var Oa=Pz(aa,la);if(Oa){var Xa=Oa.ce+Oa.X;la+Xa<=aa.length&&J.push({data:aa.subarray(la+Oa.ce,la+Xa),size:Oa.X,duration:1024,
1225
- fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}});la+=Xa}else la++}}}if(!L||null==N){if(!f.Dc().length)throw new P(2,3,3018);N=9E4*c.startTime;var Gb=Jb("audio",b.codecs.split(","));if(!Gb||!b.channelsCount||!b.audioSamplingRate)throw new P(2,3,3018);L={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,ra:Gb};var lb=Sz(Gb,b.channelsCount);if(!lb)throw new P(2,3,3018);var bc=N+9E4*(c.endTime-c.startTime);for(f=N;f<bc;)J.push({data:lb,size:lb.byteLength,duration:1024,fb:0,flags:{hb:0,Ya:0,Xa:0,
1226
- Va:0,Wa:2,ib:0}}),f+=1024/L.sampleRate*9E4}var Aa=L.sampleRate;f=N/9E4*Aa;h={id:b.id,type:"audio",codecs:L.ra,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Aa,duration:d,cb:[],ma:new Uint8Array([]),za:new Uint8Array([]),data:{ub:this.g,baseMediaDecodeTime:f,$a:J},stream:b};break;case "ac3":L=[];Aa=0;J=new Uint8Array([]);N=null;la=t(f.ec());for(var mb=la.next();!mb.done;mb=la.next()){var hb=mb.value,Hb=hb.data;null==N&&null!==hb.pts&&(N=hb.pts);for(f=0;f<Hb.length;){var ib=Uz(Hb,f);ib?(b.audioSamplingRate=
1227
- ib.sampleRate,b.channelsCount=ib.channelCount,Aa=ib.sampleRate,J=ib.ma,L.push({data:Hb.subarray(f,f+ib.X),size:ib.X,duration:1536,fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}}),f+=ib.X):f++}}if(0==Aa||0==J.byteLength||null==N)throw new P(2,3,3018);f=N/9E4*Aa;h={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Aa,duration:d,cb:[],ma:J,za:new Uint8Array([]),data:{ub:this.g,baseMediaDecodeTime:f,$a:L},stream:b};break;case "ec3":L=[];Aa=0;N=new Uint8Array([]);J=null;
1228
- for(var Vh=t(f.ec()),Nd=Vh.next();!Nd.done;Nd=Vh.next()){var Ne=Nd.value,Oe=Ne.data;null==J&&null!==Ne.pts&&(J=Ne.pts);for(f=0;f<Oe.length;){var rb=Xz(Oe,f);rb?(b.audioSamplingRate=rb.sampleRate,b.channelsCount=rb.channelCount,Aa=rb.sampleRate,N=rb.ma,L.push({data:Oe.subarray(f,f+rb.X),size:rb.X,duration:1536,fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}}),f+=rb.X):f++}}if(0==Aa||0==N.byteLength||null==J)throw new P(2,3,3018);f=J/9E4*Aa;h={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<
1229
- b.drmInfos.length,timescale:Aa,duration:d,cb:[],ma:N,za:new Uint8Array([]),data:{ub:this.g,baseMediaDecodeTime:f,$a:L},stream:b};break;case "mp3":L=[];var Ci;Aa=null;for(var iu=t(f.ec()),em=iu.next();!em.done;em=iu.next()){var fm=em.value,hg=fm.data;if(hg)for(null==Aa&&null!==fm.pts&&(Aa=fm.pts),f=0;f<hg.length;){var We=gA(hg,f);We?(Ci||(Ci=We),f+We.X<=hg.length&&L.push({data:hg.subarray(f,f+We.X),size:We.X,duration:1152,fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}}),f+=We.X):f++}}if(!Ci||null==Aa)throw new P(2,
1230
- 3,3018);var ju=Ci.sampleRate;f=Aa/9E4*ju;h={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ju,duration:d,cb:[],ma:new Uint8Array([]),za:new Uint8Array([]),data:{ub:this.g,baseMediaDecodeTime:f,$a:L},stream:b}}h&&a.push(h)}}catch(gm){return gm&&3023==gm.code?Promise.resolve(new Uint8Array([])):Promise.reject(gm)}if(!a.length)return Promise.reject(new P(2,3,3018));a=new hu(a);this.h.has(b.id)?d=this.h.get(b.id):(d=pu(a),this.h.set(b.id,d));b=Fu(a);this.g++;b=
1231
- jg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.TsTransmuxer",sA);sA.prototype.transmux=sA.prototype.transmux;sA.prototype.getOriginalMimeType=sA.prototype.getOriginalMimeType;sA.prototype.convertCodecs=sA.prototype.convertCodecs;sA.prototype.isSupported=sA.prototype.isSupported;sA.prototype.destroy=sA.prototype.destroy;var tA=["aac","ac-3","ec-3","mp3"],uA=["avc","hevc"];Wc("video/mp2t",function(){return new sA("video/mp2t")},$c);/*
1223
+ l.dts&&(q=l.dts),z=void 0,z=v+1<k.length?(k[v+1].dts||0)-(l.dts||0):1<k.length?(l.dts||0)-(k[v-1].dts||0):9E4*(c.endTime-c.startTime),n.push({data:G.data,size:G.data.byteLength,duration:z,fb:Math.round((l.pts||0)-(l.dts||0)),flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:G.qd?2:1,ib:G.qd?0:1}}))}var I=cA(u);if(!I||null==q)throw new P(2,3,3018);b.height=I.height;b.width=I.width;h={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,cb:[],ma:new Uint8Array([]),za:I.za,
1224
+ data:{vb:this.g,baseMediaDecodeTime:q,$a:n},stream:b}}h&&(a.push(h),h=null)}if("audio"==e){switch(g.audio){case "aac":for(var J=[],L,N=null,R=t(f.ec()),U=R.next();!U.done;U=R.next()){var Z=U.value,aa=Z.data;if(aa){var la=0;L=Rz(aa,la);if(!L)throw new P(2,3,3018);b.audioSamplingRate=L.sampleRate;b.channelsCount=L.channelCount;null==N&&null!==Z.pts&&(N=Z.pts);for(;la<aa.length;){var Oa=Qz(aa,la);if(Oa){var Xa=Oa.ce+Oa.X;la+Xa<=aa.length&&J.push({data:aa.subarray(la+Oa.ce,la+Xa),size:Oa.X,duration:1024,
1225
+ fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}});la+=Xa}else la++}}}if(!L||null==N){if(!f.Dc().length)throw new P(2,3,3018);N=9E4*c.startTime;var Gb=Jb("audio",b.codecs.split(","));if(!Gb||!b.channelsCount||!b.audioSamplingRate)throw new P(2,3,3018);L={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,sa:Gb};var lb=Tz(Gb,b.channelsCount);if(!lb)throw new P(2,3,3018);var bc=N+9E4*(c.endTime-c.startTime);for(f=N;f<bc;)J.push({data:lb,size:lb.byteLength,duration:1024,fb:0,flags:{hb:0,Ya:0,Xa:0,
1226
+ Va:0,Wa:2,ib:0}}),f+=1024/L.sampleRate*9E4}var Aa=L.sampleRate;f=N/9E4*Aa;h={id:b.id,type:"audio",codecs:L.sa,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Aa,duration:d,cb:[],ma:new Uint8Array([]),za:new Uint8Array([]),data:{vb:this.g,baseMediaDecodeTime:f,$a:J},stream:b};break;case "ac3":L=[];Aa=0;J=new Uint8Array([]);N=null;la=t(f.ec());for(var mb=la.next();!mb.done;mb=la.next()){var hb=mb.value,Hb=hb.data;null==N&&null!==hb.pts&&(N=hb.pts);for(f=0;f<Hb.length;){var ib=Vz(Hb,f);ib?(b.audioSamplingRate=
1227
+ ib.sampleRate,b.channelsCount=ib.channelCount,Aa=ib.sampleRate,J=ib.ma,L.push({data:Hb.subarray(f,f+ib.X),size:ib.X,duration:1536,fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}}),f+=ib.X):f++}}if(0==Aa||0==J.byteLength||null==N)throw new P(2,3,3018);f=N/9E4*Aa;h={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Aa,duration:d,cb:[],ma:J,za:new Uint8Array([]),data:{vb:this.g,baseMediaDecodeTime:f,$a:L},stream:b};break;case "ec3":L=[];Aa=0;N=new Uint8Array([]);J=null;
1228
+ for(var Vh=t(f.ec()),Nd=Vh.next();!Nd.done;Nd=Vh.next()){var Ne=Nd.value,Oe=Ne.data;null==J&&null!==Ne.pts&&(J=Ne.pts);for(f=0;f<Oe.length;){var rb=Yz(Oe,f);rb?(b.audioSamplingRate=rb.sampleRate,b.channelsCount=rb.channelCount,Aa=rb.sampleRate,N=rb.ma,L.push({data:Oe.subarray(f,f+rb.X),size:rb.X,duration:1536,fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}}),f+=rb.X):f++}}if(0==Aa||0==N.byteLength||null==J)throw new P(2,3,3018);f=J/9E4*Aa;h={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<
1229
+ b.drmInfos.length,timescale:Aa,duration:d,cb:[],ma:N,za:new Uint8Array([]),data:{vb:this.g,baseMediaDecodeTime:f,$a:L},stream:b};break;case "mp3":L=[];var Di;Aa=null;for(var ju=t(f.ec()),em=ju.next();!em.done;em=ju.next()){var fm=em.value,hg=fm.data;if(hg)for(null==Aa&&null!==fm.pts&&(Aa=fm.pts),f=0;f<hg.length;){var We=hA(hg,f);We?(Di||(Di=We),f+We.X<=hg.length&&L.push({data:hg.subarray(f,f+We.X),size:We.X,duration:1152,fb:0,flags:{hb:0,Ya:0,Xa:0,Va:0,Wa:2,ib:0}}),f+=We.X):f++}}if(!Di||null==Aa)throw new P(2,
1230
+ 3,3018);var ku=Di.sampleRate;f=Aa/9E4*ku;h={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ku,duration:d,cb:[],ma:new Uint8Array([]),za:new Uint8Array([]),data:{vb:this.g,baseMediaDecodeTime:f,$a:L},stream:b}}h&&a.push(h)}}catch(gm){return gm&&3023==gm.code?Promise.resolve(new Uint8Array([])):Promise.reject(gm)}if(!a.length)return Promise.reject(new P(2,3,3018));a=new hu(a);this.h.has(b.id)?d=this.h.get(b.id):(d=pu(a),this.h.set(b.id,d));b=Fu(a);this.g++;b=
1231
+ jg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.TsTransmuxer",tA);tA.prototype.transmux=tA.prototype.transmux;tA.prototype.getOriginalMimeType=tA.prototype.getOriginalMimeType;tA.prototype.convertCodecs=tA.prototype.convertCodecs;tA.prototype.isSupported=tA.prototype.isSupported;tA.prototype.destroy=tA.prototype.destroy;var uA=["aac","ac-3","ec-3","mp3"],vA=["avc","hevc"];Wc("video/mp2t",function(){return new tA("video/mp2t")},$c);/*
1232
1232
  @license
1233
1233
  EME Encryption Scheme Polyfill
1234
1234
  Copyright 2019 Google LLC
1235
1235
  SPDX-License-Identifier: Apache-2.0
1236
1236
  */
1237
- function vA(){}var wA;function xA(){wA?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(wA=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=yA):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
1238
- function yA(a,b){var c=this,d;return K(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),D(e,wA.call(c,a,b),2);d=e.h;if(zA(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=wA,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=AA;return e.return(AA.call(c,
1237
+ function wA(){}var xA;function yA(){xA?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(xA=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=zA):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
1238
+ function zA(a,b){var c=this,d;return K(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),D(e,xA.call(c,a,b),2);d=e.h;if(AA(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=xA,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=BA;return e.return(BA.call(c,
1239
1239
  a,b))})}
1240
- function AA(a,b){var c=this,d,e,f,g,h,k,l,m,n,r;return K(function(q){if(1==q.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=BA(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=CA(h.videoCapabilities,d),l=CA(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
1241
- n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return D(q,wA.call(c,a,e),2)}r=q.h;return q.return(new DA(r,d))})}function CA(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}M("EmeEncryptionSchemePolyfill",vA);vA.install=xA;function EA(){}var FA;
1242
- function GA(){FA?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(FA=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=HA):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
1243
- function HA(a){var b=this,c,d,e;return K(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),D(f,FA.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&zA(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=FA,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
1244
- navigator.mediaCapabilities.decodingInfo=IA;if(d){f.F(3);break}e=c;return D(f,JA(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(IA.call(b,a))}})}
1245
- function IA(a){var b=this,c,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=BA(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m.return(h):D(m,FA.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
1246
- new DA(k.keySystemAccess,c);m.F(3);break}if(!a.keySystemConfiguration){m.F(3);break}l=k;return D(m,JA(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})}
1247
- function JA(a){var b,c;return K(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return D(d,
1248
- navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}M("McEncryptionSchemePolyfill",EA);EA.install=GA;function DA(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
1249
- DA.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};DA.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
1250
- function BA(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function zA(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
1251
- function KA(){}function fx(){xA();GA()}M("EncryptionSchemePolyfills",KA);KA.install=fx;"undefined"!==typeof module&&module.exports&&(module.exports=KA);/*
1240
+ function BA(a,b){var c=this,d,e,f,g,h,k,l,m,n,r;return K(function(q){if(1==q.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=CA(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=DA(h.videoCapabilities,d),l=DA(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
1241
+ n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return D(q,xA.call(c,a,e),2)}r=q.h;return q.return(new EA(r,d))})}function DA(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}M("EmeEncryptionSchemePolyfill",wA);wA.install=yA;function FA(){}var GA;
1242
+ function HA(){GA?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(GA=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=IA):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
1243
+ function IA(a){var b=this,c,d,e;return K(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),D(f,GA.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&AA(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=GA,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
1244
+ navigator.mediaCapabilities.decodingInfo=JA;if(d){f.F(3);break}e=c;return D(f,KA(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(JA.call(b,a))}})}
1245
+ function JA(a){var b=this,c,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=CA(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m.return(h):D(m,GA.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
1246
+ new EA(k.keySystemAccess,c);m.F(3);break}if(!a.keySystemConfiguration){m.F(3);break}l=k;return D(m,KA(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})}
1247
+ function KA(a){var b,c;return K(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return D(d,
1248
+ navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}M("McEncryptionSchemePolyfill",FA);FA.install=HA;function EA(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
1249
+ EA.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};EA.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
1250
+ function CA(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function AA(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
1251
+ function LA(){}function fx(){yA();HA()}M("EncryptionSchemePolyfills",LA);LA.install=fx;"undefined"!==typeof module&&module.exports&&(module.exports=LA);/*
1252
1252
  @license
1253
1253
  Copyright 2013 Ali Al Dallal
1254
1254
 
@@ -1272,7 +1272,7 @@ function KA(){}function fx(){xA();GA()}M("EncryptionSchemePolyfills",KA);KA.inst
1272
1272
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1273
1273
  SOFTWARE.
1274
1274
  */
1275
- for(var LA={ach:{A:"Lwo",B:"Acholi"},ady:{A:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",B:"Adyghe"},af:{A:"Afrikaans",B:"Afrikaans"},"af-NA":{A:"Afrikaans (Namibia)",B:"Afrikaans (Namibia)"},"af-ZA":{A:"Afrikaans (South Africa)",B:"Afrikaans (South Africa)"},ak:{A:"T\u0255\u0265i",B:"Akan"},ar:{A:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",B:"Arabic"},"ar-AR":{A:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",B:"Arabic"},"ar-MA":{A:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",B:"Arabic (Morocco)"},
1275
+ for(var MA={ach:{A:"Lwo",B:"Acholi"},ady:{A:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",B:"Adyghe"},af:{A:"Afrikaans",B:"Afrikaans"},"af-NA":{A:"Afrikaans (Namibia)",B:"Afrikaans (Namibia)"},"af-ZA":{A:"Afrikaans (South Africa)",B:"Afrikaans (South Africa)"},ak:{A:"T\u0255\u0265i",B:"Akan"},ar:{A:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",B:"Arabic"},"ar-AR":{A:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",B:"Arabic"},"ar-MA":{A:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",B:"Arabic (Morocco)"},
1276
1276
  "ar-SA":{A:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",B:"Arabic (Saudi Arabia)"},"ay-BO":{A:"Aymar aru",B:"Aymara"},az:{A:"Az\u0259rbaycan dili",B:"Azerbaijani"},"az-AZ":{A:"Az\u0259rbaycan dili",B:"Azerbaijani"},"be-BY":{A:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",B:"Belarusian"},bg:{A:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",B:"Bulgarian"},"bg-BG":{A:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
1277
1277
  B:"Bulgarian"},bn:{A:"\u09ac\u09be\u0982\u09b2\u09be",B:"Bengali"},"bn-IN":{A:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",B:"Bengali (India)"},"bn-BD":{A:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",B:"Bengali (Bangladesh)"},"bs-BA":{A:"Bosanski",B:"Bosnian"},ca:{A:"Catal\u00e0",B:"Catalan"},"ca-ES":{A:"Catal\u00e0",B:"Catalan"},cak:{A:"Maya Kaqchikel",B:"Kaqchikel"},"ck-US":{A:"\u13e3\u13b3\u13a9 (tsalagi)",B:"Cherokee"},cs:{A:"\u010ce\u0161tina",
1278
1278
  B:"Czech"},"cs-CZ":{A:"\u010ce\u0161tina",B:"Czech"},cy:{A:"Cymraeg",B:"Welsh"},"cy-GB":{A:"Cymraeg",B:"Welsh"},da:{A:"Dansk",B:"Danish"},"da-DK":{A:"Dansk",B:"Danish"},de:{A:"Deutsch",B:"German"},"de-AT":{A:"Deutsch (\u00d6sterreich)",B:"German (Austria)"},"de-DE":{A:"Deutsch (Deutschland)",B:"German (Germany)"},"de-CH":{A:"Deutsch (Schweiz)",B:"German (Switzerland)"},dsb:{A:"Dolnoserb\u0161\u0107ina",B:"Lower Sorbian"},el:{A:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",B:"Greek"},"el-GR":{A:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
@@ -1293,211 +1293,211 @@ B:"Slovak"},"sk-SK":{A:"Sloven\u010dina (Slovakia)",B:"Slovak (Slovakia)"},sl:{A
1293
1293
  sw:{A:"Kiswahili",B:"Swahili"},"sw-KE":{A:"Kiswahili",B:"Swahili (Kenya)"},ta:{A:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",B:"Tamil"},"ta-IN":{A:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",B:"Tamil"},te:{A:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",B:"Telugu"},"te-IN":{A:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",B:"Telugu"},tg:{A:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",B:"Tajik"},"tg-TJ":{A:"\u0442\u043e\u04b7\u0438\u043a\u04e3",B:"Tajik"},th:{A:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
1294
1294
  B:"Thai"},"th-TH":{A:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",B:"Thai (Thailand)"},tl:{A:"Filipino",B:"Filipino"},"tl-PH":{A:"Filipino",B:"Filipino"},tlh:{A:"tlhIngan-Hol",B:"Klingon"},tr:{A:"T\u00fcrk\u00e7e",B:"Turkish"},"tr-TR":{A:"T\u00fcrk\u00e7e",B:"Turkish"},"tt-RU":{A:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",B:"Tatar"},uk:{A:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",B:"Ukrainian"},"uk-UA":{A:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
1295
1295
  B:"Ukrainian"},ur:{A:"\u0627\u0631\u062f\u0648",B:"Urdu"},"ur-PK":{A:"\u0627\u0631\u062f\u0648",B:"Urdu"},uz:{A:"O'zbek",B:"Uzbek"},"uz-UZ":{A:"O'zbek",B:"Uzbek"},vi:{A:"Ti\u1ebfng Vi\u1ec7t",B:"Vietnamese"},"vi-VN":{A:"Ti\u1ebfng Vi\u1ec7t",B:"Vietnamese"},"xh-ZA":{A:"isiXhosa",B:"Xhosa"},yi:{A:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",B:"Yiddish"},"yi-DE":{A:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",B:"Yiddish (German)"},zh:{A:"\u4e2d\u6587",B:"Chinese"},"zh-HANS":{A:"\u4e2d\u6587\u7b80\u4f53",
1296
- B:"Chinese Simplified"},"zh-HANT":{A:"\u4e2d\u6587\u7e41\u9ad4",B:"Chinese Traditional"},"zh-CN":{A:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",B:"Chinese Simplified (China)"},"zh-HK":{A:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",B:"Chinese Traditional (Hong Kong)"},"zh-SG":{A:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",B:"Chinese Simplified (Singapore)"},"zh-TW":{A:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",B:"Chinese Traditional (Taiwan)"},"zu-ZA":{A:"isiZulu",B:"Zulu"}},MA=t(Object.keys(LA)),NA=MA.next();!NA.done;NA=
1297
- MA.next()){var OA=NA.value;LA[OA.toLowerCase()]=LA[OA]};function PA(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Af;this.localization=this.controls.Ha;this.player=this.controls.Bc();this.video=this.controls.Xb();this.adManager=this.player.Vd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
1298
- PA.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};M("shaka.ui.Element",PA);PA.prototype.release=PA.prototype.release;function QA(a){return RA(a,"shaka-back-to-overflow-button")}function RA(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function SA(a){a&&(a=RA(a,"shaka-chosen-item"))&&a.parentElement.focus()}function TA(){var a=T("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function UA(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1299
- function VA(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function WA(a,b){PA.call(this,a,b);var c=this;this.i=T("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=T("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new xd(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=VA(e-d,!1)+" / "+VA(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
1300
- ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.La();c.g.va(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.La(),this.g.va(.5))}pa(WA,PA);WA.prototype.release=function(){this.g.stop();this.g=null;PA.prototype.release.call(this)};M("shaka.ui.AdCounter",WA);function XA(a,b){PA.call(this,a,b);var c=this;this.g=T("div");this.g.classList.add("shaka-ad-position");UA(this.g,!1);this.parent.appendChild(this.g);this.h=T("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&YA(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&YA(c)});this.eventManager.o(this.adManager,"ad-started",function(){YA(c)});this.eventManager.o(this.adManager,
1301
- "ad-stopped",function(){c.h.textContent="";UA(c.g,!1)});this.ad&&YA(this)}pa(XA,PA);function YA(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));UA(a.g,!0)}}M("shaka.ui.AdPosition",XA);function ZA(a,b){PA.call(this,a,b);var c=this;this.button=Vk();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
1302
- c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?$A(c.controls):aB(c.controls)});this.ad&&(this.g(),this.h())}pa(ZA,PA);ZA.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.u.paused&&!a.U;return a};ZA.prototype.g=function(){};ZA.prototype.h=function(){};
1303
- M("shaka.ui.PlayButton",ZA);function bB(a,b){ZA.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}pa(bB,ZA);bB.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};bB.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};M("shaka.ui.BigPlayButton",bB);function cB(a,b){PA.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=T("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";UA(c.g,!0)}else UA(c.g,
1304
- !1)});this.eventManager.o(window,"click",function(){UA(c.g,!1)});dB(this)}pa(cB,PA);cB.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];PA.prototype.release.call(this)};function eB(a,b){fB.set(a,b)}function dB(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=fB.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}M("shaka.ui.ContextMenu",cB);
1305
- cB.registerElement=eB;var fB=new Map;function gB(a,b,c,d){PA.call(this,a,b);var e=this;this.container=T("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,w(c));this.h=!1;this.bar=document.createElement("input");this.J=new xd(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,w(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1306
- this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.lc()&&(e.h=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.lc()&&(e.h=!0,hB(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.h&&(hB(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.h&&(e.h=!1,hB(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
1307
- "touchcancel",function(f){e.h&&(e.h=!1,hB(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,"mouseup",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"blur",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}pa(gB,PA);p=gB.prototype;p.release=function(){this.J&&(this.J.stop(),this.J=null);PA.prototype.release.call(this)};p.setRange=function(a,b){this.bar.min=a;this.bar.max=b};
1296
+ B:"Chinese Simplified"},"zh-HANT":{A:"\u4e2d\u6587\u7e41\u9ad4",B:"Chinese Traditional"},"zh-CN":{A:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",B:"Chinese Simplified (China)"},"zh-HK":{A:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",B:"Chinese Traditional (Hong Kong)"},"zh-SG":{A:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",B:"Chinese Simplified (Singapore)"},"zh-TW":{A:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",B:"Chinese Traditional (Taiwan)"},"zu-ZA":{A:"isiZulu",B:"Zulu"}},NA=t(Object.keys(MA)),OA=NA.next();!OA.done;OA=
1297
+ NA.next()){var PA=OA.value;MA[PA.toLowerCase()]=MA[PA]};function QA(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Af;this.localization=this.controls.Ha;this.player=this.controls.Bc();this.video=this.controls.Xb();this.adManager=this.player.Vd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
1298
+ QA.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};M("shaka.ui.Element",QA);QA.prototype.release=QA.prototype.release;function RA(a){return SA(a,"shaka-back-to-overflow-button")}function SA(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function TA(a){a&&(a=SA(a,"shaka-chosen-item"))&&a.parentElement.focus()}function UA(){var a=T("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function VA(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1299
+ function WA(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function XA(a,b){QA.call(this,a,b);var c=this;this.i=T("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=T("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new xd(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=WA(e-d,!1)+" / "+WA(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
1300
+ ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.La();c.g.wa(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.La(),this.g.wa(.5))}pa(XA,QA);XA.prototype.release=function(){this.g.stop();this.g=null;QA.prototype.release.call(this)};M("shaka.ui.AdCounter",XA);function YA(a,b){QA.call(this,a,b);var c=this;this.g=T("div");this.g.classList.add("shaka-ad-position");VA(this.g,!1);this.parent.appendChild(this.g);this.h=T("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&ZA(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&ZA(c)});this.eventManager.o(this.adManager,"ad-started",function(){ZA(c)});this.eventManager.o(this.adManager,
1301
+ "ad-stopped",function(){c.h.textContent="";VA(c.g,!1)});this.ad&&ZA(this)}pa(YA,QA);function ZA(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));VA(a.g,!0)}}M("shaka.ui.AdPosition",YA);function $A(a,b){QA.call(this,a,b);var c=this;this.button=Vk();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
1302
+ c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?aB(c.controls):bB(c.controls)});this.ad&&(this.g(),this.h())}pa($A,QA);$A.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.u.paused&&!a.U;return a};$A.prototype.g=function(){};$A.prototype.h=function(){};
1303
+ M("shaka.ui.PlayButton",$A);function cB(a,b){$A.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}pa(cB,$A);cB.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};cB.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};M("shaka.ui.BigPlayButton",cB);function dB(a,b){QA.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=T("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";VA(c.g,!0)}else VA(c.g,
1304
+ !1)});this.eventManager.o(window,"click",function(){VA(c.g,!1)});eB(this)}pa(dB,QA);dB.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];QA.prototype.release.call(this)};function fB(a,b){gB.set(a,b)}function eB(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=gB.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}M("shaka.ui.ContextMenu",dB);
1305
+ dB.registerElement=fB;var gB=new Map;function hB(a,b,c,d){QA.call(this,a,b);var e=this;this.container=T("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,w(c));this.h=!1;this.bar=document.createElement("input");this.J=new xd(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,w(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1306
+ this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.lc()&&(e.h=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.lc()&&(e.h=!0,iB(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.h&&(iB(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.h&&(e.h=!1,iB(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
1307
+ "touchcancel",function(f){e.h&&(e.h=!1,iB(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,"mouseup",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"blur",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}pa(hB,QA);p=hB.prototype;p.release=function(){this.J&&(this.J.stop(),this.J=null);QA.prototype.release.call(this)};p.setRange=function(a,b){this.bar.min=a;this.bar.max=b};
1308
1308
  p.onChangeStart=function(){};p.onChange=function(){};p.onChangeEnd=function(){};p.changeTo=function(a){this.h||(this.h=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.J.S(.5)};p.getValue=function(){return parseFloat(this.bar.value)};p.setValue=function(a){this.h||(this.bar.value=a)};
1309
- function hB(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}M("shaka.ui.RangeElement",gB);gB.prototype.setValue=gB.prototype.setValue;gB.prototype.getValue=gB.prototype.getValue;gB.prototype.changeTo=gB.prototype.changeTo;gB.prototype.onChangeEnd=gB.prototype.onChangeEnd;gB.prototype.onChange=gB.prototype.onChange;gB.prototype.onChangeStart=gB.prototype.onChangeStart;
1310
- gB.prototype.setRange=gB.prototype.setRange;function iB(a,b){gB.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.G=T("div");this.G.classList.add("shaka-ad-markers");this.container.insertBefore(this.G,this.container.childNodes[0]);this.m=this.controls.g;this.u=new xd(function(){var d=c.getValue();c.player.R()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.K=new xd(function(){jB(c)});this.I=new Af;this.H=T("div");this.H.id="shaka-player-ui-chapters-container";
1311
- this.container.appendChild(this.H);kB(this);this.M=!1;this.i=T("div");this.i.id="shaka-player-ui-thumbnail-container";this.g=T("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.C=T("div");this.C.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.C);this.container.appendChild(this.i);this.j=this.l=null;this.L=!1;this.s=new xd(function(){lB(c)});this.D=[];this.eventManager.o(this.localization,"locale-updated",function(){return mB(c)});this.eventManager.o(this.localization,
1312
- "locale-changed",function(){return mB(c)});this.eventManager.o(this.adManager,"ad-started",function(){nB(c)||UA(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){nB(c)&&UA(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.D=d.cuepoints;oB(c)});this.eventManager.o(this.player,"unloading",function(){c.D=[];oB(c);c.j&&(c.j.abort(),c.j=null);c.l=null;lB(c)});this.eventManager.o(this.bar,"mousemove",function(d){if(c.player.Wd().length){var e=
1313
- c.bar.getBoundingClientRect(),f=parseFloat(c.bar.min);d=d.clientX-e.left;pB(c,d,Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d))}else lB(c)});this.eventManager.o(this.container,"mouseleave",function(){c.s.stop();c.s.S(.25)});this.setValue(this.video.currentTime);this.update();mB(this);this.ad&&UA(this.container,!1)}pa(iB,gB);p=iB.prototype;p.release=function(){this.u&&(this.u.stop(),this.u=null,this.K.stop(),this.K=null);this.I.release();gB.prototype.release.call(this)};
1314
- p.onChangeStart=function(){this.M=!this.video.paused;this.controls.eg(!0);this.video.pause();this.s.stop();this.L=!0};p.onChange=function(){if(this.video.duration)if(this.update(),this.u.S(.125),this.player.Wd().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());pB(this,(d-a)/((b-a)/c.width),d)}else lB(this)};
1309
+ function iB(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}M("shaka.ui.RangeElement",hB);hB.prototype.setValue=hB.prototype.setValue;hB.prototype.getValue=hB.prototype.getValue;hB.prototype.changeTo=hB.prototype.changeTo;hB.prototype.onChangeEnd=hB.prototype.onChangeEnd;hB.prototype.onChange=hB.prototype.onChange;hB.prototype.onChangeStart=hB.prototype.onChangeStart;
1310
+ hB.prototype.setRange=hB.prototype.setRange;function jB(a,b){hB.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.G=T("div");this.G.classList.add("shaka-ad-markers");this.container.insertBefore(this.G,this.container.childNodes[0]);this.m=this.controls.g;this.u=new xd(function(){var d=c.getValue();c.player.R()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.K=new xd(function(){kB(c)});this.I=new Af;this.H=T("div");this.H.id="shaka-player-ui-chapters-container";
1311
+ this.container.appendChild(this.H);lB(this);this.M=!1;this.i=T("div");this.i.id="shaka-player-ui-thumbnail-container";this.g=T("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.C=T("div");this.C.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.C);this.container.appendChild(this.i);this.j=this.l=null;this.L=!1;this.s=new xd(function(){mB(c)});this.D=[];this.eventManager.o(this.localization,"locale-updated",function(){return nB(c)});this.eventManager.o(this.localization,
1312
+ "locale-changed",function(){return nB(c)});this.eventManager.o(this.adManager,"ad-started",function(){oB(c)||VA(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){oB(c)&&VA(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.D=d.cuepoints;pB(c)});this.eventManager.o(this.player,"unloading",function(){c.D=[];pB(c);c.j&&(c.j.abort(),c.j=null);c.l=null;mB(c)});this.eventManager.o(this.bar,"mousemove",function(d){if(c.player.Wd().length){var e=
1313
+ c.bar.getBoundingClientRect(),f=parseFloat(c.bar.min);d=d.clientX-e.left;qB(c,d,Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d))}else mB(c)});this.eventManager.o(this.container,"mouseleave",function(){c.s.stop();c.s.S(.25)});this.setValue(this.video.currentTime);this.update();nB(this);this.ad&&VA(this.container,!1)}pa(jB,hB);p=jB.prototype;p.release=function(){this.u&&(this.u.stop(),this.u=null,this.K.stop(),this.K=null);this.I.release();hB.prototype.release.call(this)};
1314
+ p.onChangeStart=function(){this.M=!this.video.paused;this.controls.eg(!0);this.video.pause();this.s.stop();this.L=!0};p.onChange=function(){if(this.video.duration)if(this.update(),this.u.S(.125),this.player.Wd().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());qB(this,(d-a)/((b-a)/c.width),d)}else mB(this)};
1315
1315
  p.onChangeEnd=function(){this.u.La();this.controls.eg(!1);this.M&&this.video.play();this.L&&(this.L=!1,this.s.stop(),this.s.S(.25))};p.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1316
- p.update=function(){var a=this.m.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ea(),g=f.end-f.start;this.setRange(f.start,f.end);nB(this)?(UA(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
1317
- a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):UA(this.container,!1)};
1318
- function jB(a){if(a.D.length){for(var b=a.player.Ea(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(a.D),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=t(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1319
- 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.G.style.background="linear-gradient("+d.join(",")+")"}else a.G.style.background="transparent"}function oB(a){jB(a);var b=a.player.Ea();b=b.end-b.start;a.player.R()&&5<b&&a.K.va(1)}function nB(a){var b=a.player.Ea();b=b.end-b.start;return a.player.R()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function mB(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1320
- function pB(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B;K(function(C){switch(C.g){case 1:d=qB(a);if(!d)return lB(a),C.return();0>c&&(c=0);e=a.player.Ea();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return D(C,a.player.wf(d.id,f),2);case 2:g=C.h;if(!g||!g.uris.length)return lB(a),C.return();a.player.R()?(h=e.end-c,a.C.textContent=1>h?a.localization.resolve("LIVE"):"-"+rB(h)):a.C.textContent=rB(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1316
+ p.update=function(){var a=this.m.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ea(),g=f.end-f.start;this.setRange(f.start,f.end);oB(this)?(VA(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
1317
+ a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):VA(this.container,!1)};
1318
+ function kB(a){if(a.D.length){for(var b=a.player.Ea(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(a.D),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=t(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1319
+ 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.G.style.background="linear-gradient("+d.join(",")+")"}else a.G.style.background="transparent"}function pB(a){kB(a);var b=a.player.Ea();b=b.end-b.start;a.player.R()&&5<b&&a.K.wa(1)}function oB(a){var b=a.player.Ea();b=b.end-b.start;return a.player.R()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function nB(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1320
+ function qB(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B;K(function(C){switch(C.g){case 1:d=rB(a);if(!d)return mB(a),C.return();0>c&&(c=0);e=a.player.Ea();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return D(C,a.player.wf(d.id,f),2);case 2:g=C.h;if(!g||!g.uris.length)return mB(a),C.return();a.player.R()?(h=e.end-c,a.C.textContent=1>h?a.localization.resolve("LIVE"):"-"+sB(h)):a.C.textContent=sB(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1321
1321
  -(m-k)+"px";n=Math.min(a.bar.offsetWidth-l,Math.max(0,b-l/2));a.i.style.left=n+"px";a.i.style.visibility="visible";r=g.uris[0].split("#xywh=")[0];if(a.l&&r===a.l.uris[0].split("#xywh=")[0]&&g.segment.Vb()==a.l.segment.Vb()&&g.segment.Rb()==a.l.segment.Rb()){C.F(3);break}a.l=g;a.j&&(a.j.abort(),a.j=null);if("mjpg"!=d.codecs&&!r.startsWith("offline:")){C.F(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';ta(C,5);q=wf;u=fk(g.segment.aa(),g.segment.Vb(),g.segment.Rb(),a.player.getConfiguration().streaming.retryParameters);
1322
1322
  a.j=a.player.Sb().request(q,u,{type:1});return D(C,a.j.promise,7);case 7:v=C.h;a.j=null;"mjpg"==d.codecs?(y=(new Tf).box("mdat",bg(function(E){r=URL.createObjectURL(new Blob([E],{type:"image/jpeg"}))})),y.parse(v.data,!1)):(z=d.mimeType||"image/jpeg",x=new Blob([v.data],{type:z}),r=URL.createObjectURL(x));va(C,4);break;case 5:A=wa(C);if(7001==A.code)return C.return();throw A;case 4:try{a.i.removeChild(a.g)}catch(E){}a.g=T("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=r;
1323
1323
  a.g.onload=function(){r.startsWith("blob:")&&URL.revokeObjectURL(r)};a.i.insertBefore(a.g,a.i.firstChild);case 3:B=l/g.width,g.imageHeight?a.g.height=g.imageHeight:g.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),g.imageWidth?a.g.width=g.imageWidth:g.sprite||(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+B*g.positionX+"px",a.g.style.top="-"+B*g.positionY+"px",a.g.style.transform="scale("+B+")",a.g.style.transformOrigin="left top",m=Math.floor(l*g.height/
1324
1324
  g.width),a.i.style.height=m+"px",a.i.style.top=-(m-k)+"px",F(C)}})}
1325
- function qB(a){var b=a.player.Wd();if(!b.length)return null;for(var c={},d=t(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),e=d.next();!e.done;c={Ge:c.Ge,Ee:c.Ee},e=d.next())if(c.Ge=e.value,c.Ee=a.player.getStats().estimatedBandwidth,(e=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.Ge&&g.bandwidth<.01*f.Ee}}(c)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&e.length)return e[0];return b.find(function(f){return"application/mp4"==f.mimeType&&
1326
- "mjpg"==f.codecs})||b[0]}function lB(a){a.i.style.visibility="hidden";a.C.textContent=""}function rB(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}
1327
- function kB(a){function b(){for(var f="und",g=[],h=t(Array.from(a.localization.g)),k=h.next();!k.done&&(f=k.value,g=a.player.tf(f),!g.length);k=h.next());g.length||(f="und",g=a.player.tf(f));h=f!==d;k=e.length!==g.length||!e.some(function(l,m){m=g.at(m);return c(l,m)||g.some(function(n){return c(l,n)})});d=f;e=g;g.length?(h||k)&&sB(a,e):tB(a)}function c(f,g){return!f&&!g||f.id===g.id&&f.title===g.title&&f.startTime===g.startTime&&f.endTime===g.endTime}var d="und",e=[];b();a.eventManager.o(a.player,
1328
- "unloading",function(){tB(a);d="und";e=[]});a.eventManager.o(a.player,"trackschanged",b);a.eventManager.o(a.localization,"locale-updated",function(){b()});a.eventManager.o(a.localization,"locale-changed",function(){b()})}
1329
- function sB(a,b){tB(a);var c=a.player.Ea(),d=[];b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(e.startTime>=c.end)){var f=e.startTime>c.start?e.startTime:c.start,g=e.endTime<c.end?e.endTime:c.end;d.push({start:f,end:g,size:g-f,title:e.title,id:e.id})}if(!(2>d.length)){c=d.reduce(function(k,l){return k+=l.size},0);var h=[];d=t(d);for(e=d.next();!e.done;e=d.next())b=e.value,e=T("div"),e.classList.add("shaka-chapter"),e.style.width=100*b.size/c+"%",a.H.appendChild(e),f=T("div"),f.style.borderColor=
1325
+ function rB(a){var b=a.player.Wd();if(!b.length)return null;for(var c={},d=t(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),e=d.next();!e.done;c={Ge:c.Ge,Ee:c.Ee},e=d.next())if(c.Ge=e.value,c.Ee=a.player.getStats().estimatedBandwidth,(e=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.Ge&&g.bandwidth<.01*f.Ee}}(c)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&e.length)return e[0];return b.find(function(f){return"application/mp4"==f.mimeType&&
1326
+ "mjpg"==f.codecs})||b[0]}function mB(a){a.i.style.visibility="hidden";a.C.textContent=""}function sB(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}
1327
+ function lB(a){function b(){for(var f="und",g=[],h=t(Array.from(a.localization.g)),k=h.next();!k.done&&(f=k.value,g=a.player.tf(f),!g.length);k=h.next());g.length||(f="und",g=a.player.tf(f));h=f!==d;k=e.length!==g.length||!e.some(function(l,m){m=g.at(m);return c(l,m)||g.some(function(n){return c(l,n)})});d=f;e=g;g.length?(h||k)&&tB(a,e):uB(a)}function c(f,g){return!f&&!g||f.id===g.id&&f.title===g.title&&f.startTime===g.startTime&&f.endTime===g.endTime}var d="und",e=[];b();a.eventManager.o(a.player,
1328
+ "unloading",function(){uB(a);d="und";e=[]});a.eventManager.o(a.player,"trackschanged",b);a.eventManager.o(a.localization,"locale-updated",function(){b()});a.eventManager.o(a.localization,"locale-changed",function(){b()})}
1329
+ function tB(a,b){uB(a);var c=a.player.Ea(),d=[];b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(e.startTime>=c.end)){var f=e.startTime>c.start?e.startTime:c.start,g=e.endTime<c.end?e.endTime:c.end;d.push({start:f,end:g,size:g-f,title:e.title,id:e.id})}if(!(2>d.length)){c=d.reduce(function(k,l){return k+=l.size},0);var h=[];d=t(d);for(e=d.next();!e.done;e=d.next())b=e.value,e=T("div"),e.classList.add("shaka-chapter"),e.style.width=100*b.size/c+"%",a.H.appendChild(e),f=T("div"),f.style.borderColor=
1330
1330
  a.m.seekBarColors.chapterMarks,e.appendChild(f),f=T("p"),f.classList.add("shaka-chapter-label","shaka-hidden"),f.style.color=a.m.seekBarColors.chapterLabels,f.innerText=b.title,e.appendChild(f),h.push({start:b.start,end:b.end,Ud:f});a.I.o(a.bar,"pointermove",function(k){if(k.target){var l=k.target;k=k.offsetX/l.clientWidth;l=parseInt(l.getAttribute("max"),10);l*=k;k=t(h);for(var m=k.next();!m.done;m=k.next())m=m.value,(m.start<=l&&l<m.end)===m.Ud.classList.contains("shaka-hidden")&&m.Ud.classList.toggle("shaka-hidden")}},
1331
- {passive:!0});a.I.o(a.bar,"pointerout",function(){for(var k=t(h),l=k.next();!l.done;l=k.next())l=l.value,l.Ud.classList.contains("shaka-hidden")||l.Ud.classList.add("shaka-hidden")},{passive:!0})}}function tB(a){a.I.Jb();Wk(a.H)}M("shaka.ui.SeekBar",iB);function uB(){}uB.prototype.create=function(a,b){return new iB(a,b)};iB.Factory=uB;function Y(a,b,c,d){cb.call(this);var e=this;this.P=!0;this.g=d;this.C=new Ao(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.ya=!0;this.u=this.C.Xb();this.s=c;this.D=this.C.Bc();this.oa=a;this.j=b;this.Ta=this.D.Vd();this.l=this.m=null;this.U=!1;this.G=[];this.Pb=[];this.Ab=!1;this.Z=new xd(function(){e.j.style.cursor="none";e.Ab=!1;vB(e)});this.ea=new xd(function(){e.h.removeAttribute("shown");e.I.S(2)});this.I=new xd(function(){for(var f=t(e.G),g=f.next();!g.done;g=f.next())UA(g.value,
1332
- !1)});this.Ma=new xd(function(){e.lc()&&wB(e)});this.J=null;this.H=[];this.Ha=xB();this.i=new Af;this.configure(this.g);yB(this);this.ha=new Set;zB(this);this.Ma.va(.125);this.i.o(this.Ha,"locale-changed",function(f){e.Ta.setLocale(f.locales[0])})}pa(Y,cb);p=Y.prototype;
1333
- p.destroy=function(){var a=this;return K(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.s){b.F(2);break}return D(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.Z&&(a.Z.stop(),a.Z=null);a.ea&&(a.ea.stop(),a.ea=null);a.I&&(a.I.stop(),a.I=null);a.Ma&&(a.Ma.stop(),a.Ma=null);AB(a);a.h&&(a.j.removeChild(a.h),a.h=null);if(!a.C){b.F(4);break}return D(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.oa){b.F(6);break}return D(b,a.oa.destroy(),7);case 7:a.oa=
1334
- null;case 6:a.D=null,a.s=null,a.u=null,a.Ha=null,a.ha.clear(),cb.prototype.release.call(a),F(b)}})};function AB(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function BB(a,b){CB.set(a,b)}p.vh=function(a){this.ya=a;zB(this)};p.Ai=function(){vB(this)};
1335
- p.configure=function(a){this.g=a;this.C.xg(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.xb&&(this.xb=null);this.Ua&&(this.Ua=null);this.h?(Wk(this.h),AB(this)):(DB(this),EB(this));this.j.classList.add("shaka-video-container");this.s.classList.add("shaka-video");FB(this);this.g.addBigPlayButton&&GB(this);this.g.customContextMenu&&(this.Ua=new cB(this.T,this),this.H.push(this.Ua));this.$||HB(this);this.zb=T("div");this.zb.classList.add("shaka-server-side-ad-container");
1336
- this.h.appendChild(this.zb);IB(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,w(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));JB(this);this.Pb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));vB(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.o(b,"click",c);this.i.o(b,"dblclick",
1337
- c)}};p.$f=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.s.tabIndex=-1,this.s.controls=!1):this.j.removeAttribute("shaka-controls");vB(this)};p.bh=function(a){this.s.controls=a;this.s.tabIndex=a?0:-1;a&&this.$f(!1)};p.getAd=function(){return this.m};p.Ih=function(){return this.C};p.Uh=function(){return this.Ha};p.ji=function(){return this.j};p.Xb=function(){return this.u};p.Th=function(){return this.s};p.Bc=function(){return this.D};p.Sh=function(){return this.oa};
1338
- p.Mh=function(){return this.h};p.ai=function(){return this.zb};p.Jh=function(){return this.M};p.Kh=function(){return this.g};p.xi=function(){return this.U};p.eg=function(a){this.U=a};p.oi=function(){return this.ya};p.Hg=function(){return this.l?this.l.getValue():this.u.currentTime};p.dh=function(a){this.J=a};p.Od=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};p.Ec=function(){this.I.La()};
1331
+ {passive:!0});a.I.o(a.bar,"pointerout",function(){for(var k=t(h),l=k.next();!l.done;l=k.next())l=l.value,l.Ud.classList.contains("shaka-hidden")||l.Ud.classList.add("shaka-hidden")},{passive:!0})}}function uB(a){a.I.Jb();Wk(a.H)}M("shaka.ui.SeekBar",jB);function vB(){}vB.prototype.create=function(a,b){return new jB(a,b)};jB.Factory=vB;function Y(a,b,c,d){cb.call(this);var e=this;this.P=!0;this.g=d;this.C=new Ao(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.ya=!0;this.u=this.C.Xb();this.s=c;this.D=this.C.Bc();this.qa=a;this.j=b;this.Ta=this.D.Vd();this.l=this.m=null;this.U=!1;this.G=[];this.Pb=[];this.Bb=!1;this.Z=new xd(function(){e.j.style.cursor="none";e.Bb=!1;wB(e)});this.ea=new xd(function(){e.h.removeAttribute("shown");e.I.S(2)});this.I=new xd(function(){for(var f=t(e.G),g=f.next();!g.done;g=f.next())VA(g.value,
1332
+ !1)});this.Ma=new xd(function(){e.lc()&&xB(e)});this.J=null;this.H=[];this.Ha=yB();this.i=new Af;this.configure(this.g);zB(this);this.ha=new Set;AB(this);this.Ma.wa(.125);this.i.o(this.Ha,"locale-changed",function(f){e.Ta.setLocale(f.locales[0])})}pa(Y,cb);p=Y.prototype;
1333
+ p.destroy=function(){var a=this;return K(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.s){b.F(2);break}return D(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.Z&&(a.Z.stop(),a.Z=null);a.ea&&(a.ea.stop(),a.ea=null);a.I&&(a.I.stop(),a.I=null);a.Ma&&(a.Ma.stop(),a.Ma=null);BB(a);a.h&&(a.j.removeChild(a.h),a.h=null);if(!a.C){b.F(4);break}return D(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.qa){b.F(6);break}return D(b,a.qa.destroy(),7);case 7:a.qa=
1334
+ null;case 6:a.D=null,a.s=null,a.u=null,a.Ha=null,a.ha.clear(),cb.prototype.release.call(a),F(b)}})};function BB(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function CB(a,b){DB.set(a,b)}p.vh=function(a){this.ya=a;AB(this)};p.Ai=function(){wB(this)};
1335
+ p.configure=function(a){this.g=a;this.C.xg(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.yb&&(this.yb=null);this.Ua&&(this.Ua=null);this.h?(Wk(this.h),BB(this)):(EB(this),FB(this));this.j.classList.add("shaka-video-container");this.s.classList.add("shaka-video");GB(this);this.g.addBigPlayButton&&HB(this);this.g.customContextMenu&&(this.Ua=new dB(this.T,this),this.H.push(this.Ua));this.$||IB(this);this.Ab=T("div");this.Ab.classList.add("shaka-server-side-ad-container");
1336
+ this.h.appendChild(this.Ab);JB(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,w(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));KB(this);this.Pb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));wB(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.o(b,"click",c);this.i.o(b,"dblclick",
1337
+ c)}};p.$f=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.s.tabIndex=-1,this.s.controls=!1):this.j.removeAttribute("shaka-controls");wB(this)};p.bh=function(a){this.s.controls=a;this.s.tabIndex=a?0:-1;a&&this.$f(!1)};p.getAd=function(){return this.m};p.Ih=function(){return this.C};p.Uh=function(){return this.Ha};p.ji=function(){return this.j};p.Xb=function(){return this.u};p.Th=function(){return this.s};p.Bc=function(){return this.D};p.Sh=function(){return this.qa};
1338
+ p.Mh=function(){return this.h};p.ai=function(){return this.Ab};p.Jh=function(){return this.M};p.Kh=function(){return this.g};p.xi=function(){return this.U};p.eg=function(a){this.U=a};p.oi=function(){return this.ya};p.Hg=function(){return this.l?this.l.getValue():this.u.currentTime};p.dh=function(a){this.J=a};p.Od=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};p.Ec=function(){this.I.La()};
1339
1339
  p.ge=function(){return document.fullscreenEnabled||this.s.webkitSupportsFullscreen?!0:!1};p.Gc=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.s;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1340
- function KB(a){var b,c,d;return K(function(e){switch(e.g){case 1:ta(e,2);if(!document.fullscreenEnabled){b=a.s;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.F(4);break}if(!document.pictureInPictureElement){e.F(5);break}return D(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,D(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.F(4);break}ta(e,9);return D(e,screen.orientation.lock("landscape"),11);case 11:va(e,
1341
- 4,2);break;case 9:wa(e,2);case 4:va(e,0);break;case 2:d=wa(e),a.dispatchEvent(new O("error",(new Map).set("detail",d))),F(e)}})}function LB(a){var b;return K(function(c){if(!document.fullscreenEnabled)return b=a.s,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.F(0);screen.orientation&&screen.orientation.unlock();return D(c,document.exitFullscreen(),0)})}p.kg=function(){var a=this;return K(function(b){return a.Gc()?D(b,LB(a),0):D(b,KB(a),0)})};
1340
+ function LB(a){var b,c,d;return K(function(e){switch(e.g){case 1:ta(e,2);if(!document.fullscreenEnabled){b=a.s;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.F(4);break}if(!document.pictureInPictureElement){e.F(5);break}return D(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,D(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.F(4);break}ta(e,9);return D(e,screen.orientation.lock("landscape"),11);case 11:va(e,
1341
+ 4,2);break;case 9:wa(e,2);case 4:va(e,0);break;case 2:d=wa(e),a.dispatchEvent(new O("error",(new Map).set("detail",d))),F(e)}})}function MB(a){var b;return K(function(c){if(!document.fullscreenEnabled)return b=a.s,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.F(0);screen.orientation&&screen.orientation.unlock();return D(c,document.exitFullscreen(),0)})}p.kg=function(){var a=this;return K(function(b){return a.Gc()?D(b,MB(a),0):D(b,LB(a),0)})};
1342
1342
  p.rd=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.s.disablePictureInPicture:!1};p.Af=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement};
1343
- p.lg=function(){var a=this,b,c;return K(function(d){if(1==d.g)return ta(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?D(d,MB(a),5):document.pictureInPictureElement?D(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.s,D(d,b.requestPictureInPicture(),5));if(2!=d.g)return va(d,0);c=wa(d);a.dispatchEvent(new O("error",(new Map).set("detail",c)));F(d)})};
1344
- function MB(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.j;c=b.getBoundingClientRect();return D(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;NB(d);e=b.parentNode||document.body;f=a.j.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
1343
+ p.lg=function(){var a=this,b,c;return K(function(d){if(1==d.g)return ta(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?D(d,NB(a),5):document.pictureInPictureElement?D(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.s,D(d,b.requestPictureInPicture(),5));if(2!=d.g)return va(d,0);c=wa(d);a.dispatchEvent(new O("error",(new Map).set("detail",c)));F(d)})};
1344
+ function NB(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.j;c=b.getBoundingClientRect();return D(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;OB(d);e=b.parentNode||document.body;f=a.j.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
1345
1345
  d.document.head.append(g);d.document.body.append(b);a.i.ka(d,"pagehide",function(){f.replaceWith(b)});F(h)})}
1346
- function NB(a){var b=[].concat(w(document.styleSheets)).map(function(d){try{return[].concat(w(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}p.hh=function(){UA(this.K,!0);UA(this.M,!0);this.h.setAttribute("ad-active","true")};
1347
- p.Jg=function(){UA(this.K,!1);UA(this.M,!1);this.h.removeAttribute("ad-active")};function aB(a){a.P&&a.u.duration&&(a.D.Te(),a.u.paused&&!a.U?a.u.play():a.u.pause())}function $A(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1348
- function DB(a){a.h=T("div");a.h.classList.add("shaka-controls-container");a.j.appendChild(a.h);a.j.setAttribute("shaka-controls","true");a.i.o(a.h,"touchstart",function(b){a.u.duration&&(a.lc()?a.J=Date.now():(OB(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.o(a.h,"click",function(){PB(a)});a.i.o(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.ge()&&a.kg()})}
1349
- function GB(a){var b=T("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.xb=new bB(b,a);a.H.push(a.xb)}function FB(a){var b=T("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function QB(a){a.K=T("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();UA(a.K,b);a.L.appendChild(a.K);b=new XA(a.K,a);a.H.push(b);b=new WA(a.K,a);a.H.push(b)}
1350
- function HB(a){a.$=T("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=T("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
1346
+ function OB(a){var b=[].concat(w(document.styleSheets)).map(function(d){try{return[].concat(w(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}p.hh=function(){VA(this.K,!0);VA(this.M,!0);this.h.setAttribute("ad-active","true")};
1347
+ p.Jg=function(){VA(this.K,!1);VA(this.M,!1);this.h.removeAttribute("ad-active")};function bB(a){a.P&&a.u.duration&&(a.D.Te(),a.u.paused&&!a.U?a.u.play():a.u.pause())}function aB(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1348
+ function EB(a){a.h=T("div");a.h.classList.add("shaka-controls-container");a.j.appendChild(a.h);a.j.setAttribute("shaka-controls","true");a.i.o(a.h,"touchstart",function(b){a.u.duration&&(a.lc()?a.J=Date.now():(PB(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.o(a.h,"click",function(){QB(a)});a.i.o(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.ge()&&a.kg()})}
1349
+ function HB(a){var b=T("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.yb=new cB(b,a);a.H.push(a.yb)}function GB(a){var b=T("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function RB(a){a.K=T("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();VA(a.K,b);a.L.appendChild(a.K);b=new YA(a.K,a);a.H.push(b);b=new XA(a.K,a);a.H.push(b)}
1350
+ function IB(a){a.$=T("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=T("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
1351
1351
  "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
1352
- function IB(a){a.L=T("div");a.L.classList.add("shaka-bottom-controls");a.L.classList.add("shaka-no-propagation");a.h.appendChild(a.L);a.i.o(a.L,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Ec()});QB(a);a.T=T("div");a.T.classList.add("shaka-controls-button-panel");a.T.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.T.classList.add("shaka-tooltips-on");a.L.appendChild(a.T);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,CB.get(c)?
1353
- (c=CB.get(c).create(a.T,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function JB(a){if(a.g.addSeekBar)a.l=RB.create(a.L,a),a.H.push(a.l);else{a=t(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function EB(a){a.M=T("div");a.M.classList.add("shaka-client-side-ad-container");UA(a.M,!1);a.i.o(a.M,"click",function(){PB(a)});a.j.appendChild(a.M)}
1354
- function yB(a){a.i.o(a.D,"buffering",function(){a.P&&UA(a.$,a.D.pd())});a.P&&UA(a.$,a.D.pd());a.i.o(window,"keydown",function(b){SB(a,b)});a.i.o(window,"click",function(){return a.Ec()});a.i.o(a,"submenuopen",function(){a.Ec()});a.i.o(a.u,"play",function(){vB(a)});a.i.o(a.u,"pause",function(){vB(a)});a.i.o(a.j,"mousemove",function(b){OB(a,b)});a.i.o(a.j,"touchmove",function(b){OB(a,b)},{passive:!0});a.i.o(a.j,"touchend",function(b){OB(a,b)},{passive:!0});a.i.o(a.j,"mouseleave",function(){a.J||a.Z.La()});
1355
- a.i.o(a.C,"caststatuschanged",function(){zB(a)});a.i.o(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&OB(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),TB(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),
1356
- TB(a,a.l.getValue()+c));break;case "PageDown":a.l&&e&&0<c&&(b.preventDefault(),TB(a,a.l.getValue()-f));break;case "PageUp":a.l&&e&&0<c&&(b.preventDefault(),TB(a,a.l.getValue()+f));break;case "Home":a.l&&TB(a,a.D.Ea().start);break;case "End":a.l&&TB(a,a.D.Ea().end);break;case " ":e&&UB(a)}}});a.i.o(a.j,"keyup",function(b){a.ha.delete(b.key)});a.i.o(a.Ta,"ad-started",function(b){a.m=b.ad;a.hh()});a.i.o(a.Ta,"ad-stopped",function(){a.m=null;a.Jg()});screen.orientation&&a.i.o(screen.orientation,"change",
1357
- function(){return K(function(b){return D(b,VB(a),0)})})}function VB(a){return K(function(b){return a.u&&0!=a.u.readyState&&!a.C.Da()&&a.g.enableFullscreenOnRotation&&a.ge()?screen.orientation.type.includes("landscape")&&!a.Gc()?D(b,KB(a),0):screen.orientation.type.includes("portrait")&&a.Gc()?D(b,LB(a),0):b.F(0):b.return()})}
1358
- function OB(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),vB(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.Ab=!0,a.I.stop(),a.lc()||(wB(a),vB(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.S(3))}function WB(a){return window.matchMedia("hover: hover").matches?a.Pb.some(function(b){return b.matches(":hover")}):!1}
1359
- function vB(a){var b=a.m?a.m.isPaused():!1,c=a.u.paused&&!a.U,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.Ab||d||WB(a)?(wB(a),a.h.setAttribute("shown","true"),a.ea.stop()):a.ea.S(a.g.fadeDelay)}function PB(a){a.P&&(a.Od()?a.I.La():a.g.singleClickForPlayAndPause&&UB(a))}function UB(a){a.m&&a.m.isLinear()?$A(a):aB(a)}
1360
- function zB(a){var b=a.C.Da();a.dispatchEvent(new O("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}p.lc=function(){return this.P?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function TB(a,b){a.l.changeTo(b);a.lc()&&wB(a)}
1361
- function wB(a){if(a.l)if(a.l.setValue(a.u.currentTime),a.l.update(),a.l.isShowing())for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new O("timeandseekrangeupdated"))}
1362
- function SB(a,b){a.ha.add(b.key);var c=a.Od();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),vB(a),a.i.o(window,"mousedown",function(){a.i.$b(window,"mousedown")}));"Escape"==b.key&&a.I.La();c&&a.ha.has("Tab")&&XB(a,b)}
1363
- function XB(a,b){var c=a.G.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ha.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1364
- function xB(){var a=new Yb("en");a.ua("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1352
+ function JB(a){a.L=T("div");a.L.classList.add("shaka-bottom-controls");a.L.classList.add("shaka-no-propagation");a.h.appendChild(a.L);a.i.o(a.L,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Ec()});RB(a);a.T=T("div");a.T.classList.add("shaka-controls-button-panel");a.T.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.T.classList.add("shaka-tooltips-on");a.L.appendChild(a.T);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,DB.get(c)?
1353
+ (c=DB.get(c).create(a.T,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function KB(a){if(a.g.addSeekBar)a.l=SB.create(a.L,a),a.H.push(a.l);else{a=t(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function FB(a){a.M=T("div");a.M.classList.add("shaka-client-side-ad-container");VA(a.M,!1);a.i.o(a.M,"click",function(){QB(a)});a.j.appendChild(a.M)}
1354
+ function zB(a){a.i.o(a.D,"buffering",function(){a.P&&VA(a.$,a.D.pd())});a.P&&VA(a.$,a.D.pd());a.i.o(window,"keydown",function(b){TB(a,b)});a.i.o(window,"click",function(){return a.Ec()});a.i.o(a,"submenuopen",function(){a.Ec()});a.i.o(a.u,"play",function(){wB(a)});a.i.o(a.u,"pause",function(){wB(a)});a.i.o(a.j,"mousemove",function(b){PB(a,b)});a.i.o(a.j,"touchmove",function(b){PB(a,b)},{passive:!0});a.i.o(a.j,"touchend",function(b){PB(a,b)},{passive:!0});a.i.o(a.j,"mouseleave",function(){a.J||a.Z.La()});
1355
+ a.i.o(a.C,"caststatuschanged",function(){AB(a)});a.i.o(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&PB(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),UB(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),
1356
+ UB(a,a.l.getValue()+c));break;case "PageDown":a.l&&e&&0<c&&(b.preventDefault(),UB(a,a.l.getValue()-f));break;case "PageUp":a.l&&e&&0<c&&(b.preventDefault(),UB(a,a.l.getValue()+f));break;case "Home":a.l&&UB(a,a.D.Ea().start);break;case "End":a.l&&UB(a,a.D.Ea().end);break;case " ":e&&VB(a)}}});a.i.o(a.j,"keyup",function(b){a.ha.delete(b.key)});a.i.o(a.Ta,"ad-started",function(b){a.m=b.ad;a.hh()});a.i.o(a.Ta,"ad-stopped",function(){a.m=null;a.Jg()});screen.orientation&&a.i.o(screen.orientation,"change",
1357
+ function(){return K(function(b){return D(b,WB(a),0)})})}function WB(a){return K(function(b){return a.u&&0!=a.u.readyState&&!a.C.Da()&&a.g.enableFullscreenOnRotation&&a.ge()?screen.orientation.type.includes("landscape")&&!a.Gc()?D(b,LB(a),0):screen.orientation.type.includes("portrait")&&a.Gc()?D(b,MB(a),0):b.F(0):b.return()})}
1358
+ function PB(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),wB(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.Bb=!0,a.I.stop(),a.lc()||(xB(a),wB(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.S(3))}function XB(a){return window.matchMedia("hover: hover").matches?a.Pb.some(function(b){return b.matches(":hover")}):!1}
1359
+ function wB(a){var b=a.m?a.m.isPaused():!1,c=a.u.paused&&!a.U,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.Bb||d||XB(a)?(xB(a),a.h.setAttribute("shown","true"),a.ea.stop()):a.ea.S(a.g.fadeDelay)}function QB(a){a.P&&(a.Od()?a.I.La():a.g.singleClickForPlayAndPause&&VB(a))}function VB(a){a.m&&a.m.isLinear()?aB(a):bB(a)}
1360
+ function AB(a){var b=a.C.Da();a.dispatchEvent(new O("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}p.lc=function(){return this.P?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function UB(a,b){a.l.changeTo(b);a.lc()&&xB(a)}
1361
+ function xB(a){if(a.l)if(a.l.setValue(a.u.currentTime),a.l.update(),a.l.isShowing())for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new O("timeandseekrangeupdated"))}
1362
+ function TB(a,b){a.ha.add(b.key);var c=a.Od();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),wB(a),a.i.o(window,"mousedown",function(){a.i.$b(window,"mousedown")}));"Escape"==b.key&&a.I.La();c&&a.ha.has("Tab")&&YB(a,b)}
1363
+ function YB(a,b){var c=a.G.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ha.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1364
+ function yB(){var a=new Yb("en");a.va("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1365
1365
  ["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],
1366
1366
  ["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],
1367
1367
  ["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["PAUSE","\u0625\u064a\u0642\u0627\u0641 \u0645\u0624\u0642\u062a"],["PICTURE_IN_PICTURE","\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0627\u0644\u0646\u0627\u0641\u0630\u0629"],["PLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644"],
1368
1368
  ["PLAYBACK_RATE","\u0633\u0631\u0639\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["RESOLUTION","\u062f\u0631\u062c\u0629 \u0627\u0644\u062f\u0642\u0629"],["REWIND","\u062a\u0631\u062c\u064a\u0639"],["SEEK","\u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0644\u062a\u0645\u0631\u064a\u0631"],["SKIP_AD","\u062a\u062e\u0637\u0651\u064a \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["SKIP_TO_LIVE","\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u0628\u062b \u0645\u0628\u0627\u0634\u0631"],
1369
- ["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.ua("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
1369
+ ["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.va("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
1370
1370
  ["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],
1371
1371
  ["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],["SKIP_AD","\u00dcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\u00e4rke"]]));
1372
- a.ua("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
1372
+ a.va("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
1373
1373
  ["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],
1374
- ["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ua("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],
1374
+ ["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.va("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],
1375
1375
  ["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE",
1376
- "Playback speed"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ua("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST",
1376
+ "Playback speed"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.va("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST",
1377
1377
  "Enviar..."],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS",
1378
1378
  "M\u00e1s ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["UNDETERMINED_LANGUAGE",
1379
- "Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ua("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],
1379
+ "Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.va("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],
1380
1380
  ["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],
1381
1381
  ["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME",
1382
- "Volumen"]]));a.ua("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],
1382
+ "Volumen"]]));a.va("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],
1383
1383
  ["EXIT_PICTURE_IN_PICTURE","Quitter le mode\u00a0PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \u00e9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE",
1384
- "Vitesse de lecture"],["RESOLUTION","R\u00e9solution"],["REWIND","Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ua("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],
1384
+ "Vitesse de lecture"],["RESOLUTION","R\u00e9solution"],["REWIND","Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.va("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],
1385
1385
  ["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP",
1386
1386
  "Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE",
1387
- "Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ua("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],
1387
+ "Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.va("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],
1388
1388
  ["ENTER_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u958b\u59cb"],["EXIT_FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a\u3092\u7d42\u4e86"],["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],["EXIT_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],
1389
1389
  ["LANGUAGE","\u8a00\u8a9e"],["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],
1390
- ["RESOLUTION","\u89e3\u50cf\u5ea6"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.ua("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS",
1390
+ ["RESOLUTION","\u89e3\u50cf\u5ea6"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.va("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS",
1391
1391
  "\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["ENTER_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd"],["ENTER_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc2dc\uc791"],["EXIT_FULL_SCREEN","\uc804\uccb4\ud654\uba74 \ub2eb\uae30"],["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE",
1392
1392
  "PIP \ubaa8\ub4dc \uc885\ub8cc"],["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],
1393
1393
  ["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME",
1394
- "\ubcfc\ub968"]]));a.ua("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],
1394
+ "\ubcfc\ub968"]]));a.va("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],
1395
1395
  ["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],
1396
- ["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ua("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE",
1396
+ ["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.va("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE",
1397
1397
  "W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w\u00a0p\u0119tli"],["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN","Pe\u0142ny ekran"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP","Odtwarzaj w\u00a0p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],
1398
1398
  ["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE",
1399
- "Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ua("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN",
1399
+ "Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.va("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN",
1400
1400
  "Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE",
1401
- "Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.ua("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],
1401
+ "Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.va("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],
1402
1402
  ["AD_PROGRESS","\u0420\u0435\u043a\u043b\u0430\u043c\u0430 [AD_ON] \u0438\u0437 [NUM_ADS]"],["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],["ENTER_LOOP_MODE","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e"],
1403
1403
  ["ENTER_PICTURE_IN_PICTURE",'\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["EXIT_FULL_SCREEN","\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["EXIT_LOOP_MODE","\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0435\u043e"],
1404
1404
  ["EXIT_PICTURE_IN_PICTURE",'\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["FAST_FORWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u043f\u0435\u0440\u0435\u0434"],["FULL_SCREEN","\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["LANGUAGE","\u042f\u0437\u044b\u043a"],["LIVE",
1405
1405
  "\u041f\u0440\u044f\u043c\u043e\u0439 \u044d\u0444\u0438\u0440"],["LOOP","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c"],["MORE_SETTINGS","\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],["MULTIPLE_LANGUAGES","\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432"],["MUTE","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["NOT_APPLICABLE",
1406
1406
  "\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["PAUSE","\u041f\u0430\u0443\u0437\u0430"],["PICTURE_IN_PICTURE","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"],["PLAY","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438"],["PLAYBACK_RATE","\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f"],
1407
1407
  ["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],
1408
- ["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ua("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
1408
+ ["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.va("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
1409
1409
  ["AD_TIME","\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AUTO_QUALITY","\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["BACK","\u0e01\u0e25\u0e31\u0e1a"],["CAPTIONS","\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["ENTER_LOOP_MODE","\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["ENTER_PICTURE_IN_PICTURE","\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
1410
1410
  ["EXIT_FULL_SCREEN","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e41\u0e1a\u0e1a\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["EXIT_LOOP_MODE","\u0e2b\u0e22\u0e38\u0e14\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["EXIT_PICTURE_IN_PICTURE","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
1411
1411
  ["FAST_FORWARD","\u0e01\u0e23\u0e2d\u0e44\u0e1b\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32"],["FULL_SCREEN","\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],["LIVE","\u0e2a\u0e14"],["LOOP","\u0e25\u0e39\u0e1b"],["MORE_SETTINGS","\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21"],["MULTIPLE_LANGUAGES","\u0e2b\u0e25\u0e32\u0e22\u0e20\u0e32\u0e29\u0e32"],["MUTE","\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
1412
1412
  ["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],["PICTURE_IN_PICTURE","\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["PLAY","\u0e40\u0e25\u0e48\u0e19"],["PLAYBACK_RATE","\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e25\u0e48\u0e19"],
1413
1413
  ["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["UNDETERMINED_LANGUAGE","\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14"],["UNMUTE","\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
1414
- ["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ua("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
1414
+ ["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.va("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
1415
1415
  ["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE","Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],
1416
- ["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.ua("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1416
+ ["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.va("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1417
1417
  ["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u5c04\u2026"],["ENTER_LOOP_MODE","\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],["ENTER_PICTURE_IN_PICTURE","\u8fdb\u5165\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u5c4f\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],
1418
1418
  ["EXIT_PICTURE_IN_PICTURE","\u9000\u51fa\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["FAST_FORWARD","\u5feb\u8fdb"],["FULL_SCREEN","\u5168\u5c4f"],["LANGUAGE","\u8bed\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u73af\u64ad\u653e"],["MORE_SETTINGS","\u66f4\u591a\u8bbe\u7f6e"],["MULTIPLE_LANGUAGES","\u591a\u79cd\u8bed\u8a00"],["MUTE","\u9759\u97f3"],["NOT_APPLICABLE","\u4e0d\u9002\u7528"],["OFF","\u5173\u95ed"],["ON","\u5f00\u542f"],["PAUSE","\u6682\u505c"],["PICTURE_IN_PICTURE","\u753b\u4e2d\u753b"],
1419
- ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ua("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1419
+ ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.va("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1420
1420
  ["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],
1421
1421
  ["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],
1422
1422
  ["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.wg(navigator.languages||[]);return a}M("shaka.ui.Controls",Y);Y.prototype.isOpaque=Y.prototype.lc;Y.prototype.hideAdUI=Y.prototype.Jg;Y.prototype.showAdUI=Y.prototype.hh;
1423
1423
  Y.prototype.togglePiP=Y.prototype.lg;Y.prototype.isPiPEnabled=Y.prototype.Af;Y.prototype.isPiPAllowed=Y.prototype.rd;Y.prototype.toggleFullScreen=Y.prototype.kg;Y.prototype.isFullScreenEnabled=Y.prototype.Gc;Y.prototype.isFullScreenSupported=Y.prototype.ge;Y.prototype.hideSettingsMenus=Y.prototype.Ec;Y.prototype.anySettingsMenusAreOpen=Y.prototype.Od;Y.prototype.setLastTouchEventTime=Y.prototype.dh;Y.prototype.getDisplayTime=Y.prototype.Hg;Y.prototype.isCastAllowed=Y.prototype.oi;
1424
1424
  Y.prototype.setSeeking=Y.prototype.eg;Y.prototype.isSeeking=Y.prototype.xi;Y.prototype.getConfig=Y.prototype.Kh;Y.prototype.getClientSideAdContainer=Y.prototype.Jh;Y.prototype.getServerSideAdContainer=Y.prototype.ai;Y.prototype.getControlsContainer=Y.prototype.Mh;Y.prototype.getLocalPlayer=Y.prototype.Sh;Y.prototype.getPlayer=Y.prototype.Bc;Y.prototype.getLocalVideo=Y.prototype.Th;Y.prototype.getVideo=Y.prototype.Xb;Y.prototype.getVideoContainer=Y.prototype.ji;Y.prototype.getLocalization=Y.prototype.Uh;
1425
- Y.prototype.getCastProxy=Y.prototype.Ih;Y.prototype.getAd=Y.prototype.getAd;Y.prototype.setEnabledNativeControls=Y.prototype.bh;Y.prototype.setEnabledShakaControls=Y.prototype.$f;Y.prototype.configure=Y.prototype.configure;Y.prototype.loadComplete=Y.prototype.Ai;Y.prototype.allowCast=Y.prototype.vh;Y.registerSeekBar=function(a){RB=a};Y.registerElement=BB;Y.prototype.destroy=Y.prototype.destroy;var CB=new Map,RB=new uB;function YB(a,b){PA.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=Vk();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=T("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1426
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);ZB(this);this.eventManager.o(this.localization,"locale-updated",function(){$B(c)});this.eventManager.o(this.localization,"locale-changed",function(){$B(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&UA(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){UA(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){UA(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.dh(Date.now());
1427
- d.stopPropagation()});this.eventManager.o(this.g,"click",function(){aC(c)});$B(this);this.ad&&this.ad.isLinear()&&UA(this.g,!1)}pa(YB,PA);YB.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];PA.prototype.release.call(this)};function bC(a,b){cC.set(a,b)}
1428
- function ZB(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,cC.get(c)?(c=cC.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function aC(a){if(a.controls.Od())a.controls.Ec();else{UA(a.h,!0);vB(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};fb(a.h.childNodes,b)&&gb(a.h.childNodes,b)[0].focus()}}function $B(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1429
- M("shaka.ui.OverflowMenu",YB);YB.registerElement=bC;function dC(){}dC.prototype.create=function(a,b){return new YB(a,b)};BB("overflow_menu",new dC);var cC=new Map;function eC(a,b){PA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=T("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);
1430
- this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);fC(this);gC(this);this.eventManager.o(this.localization,"locale-updated",function(){fC(c)});this.eventManager.o(this.localization,"locale-changed",function(){fC(c)});this.eventManager.o(this.g,"click",function(){c.controls.Xb().webkitShowPlaybackTargetPicker()});a=this.controls.Xb();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1431
- c.player.Yd()==Xm;UA(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){gC(c)})}pa(eC,PA);function gC(a){var b=a.controls.Xb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function fC(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}M("shaka.ui.AirPlayButton",eC);function hC(){}hC.prototype.create=function(a,b){return new eC(a,b)};bC("airplay",new hC);
1432
- BB("airplay",new hC);function iC(a,b,c){this.i=a;this.j=b;this.h=jC(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.zf()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.h);this.configure({});c.controls||a.gg(b);b.ui=this;c.ui=this}p=iC.prototype;p.destroy=function(){var a=this;return K(function(b){if(1==b.g)return a.g?D(b,a.g.destroy(),2):b.F(2);if(4!=b.g)return a.g=null,a.i?D(b,a.i.destroy(),4):b.F(4);a.i=null;F(b)})};
1433
- p.zf=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Id()&&1<navigator.maxTouchPoints};p.getConfiguration=function(){var a=jC(this);yl(a,this.h,jC(this),{},"");return a};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=zl(a,b));yl(this.h,a,jC(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new O("uiupdated"))};p.Lh=function(){return this.g};
1425
+ Y.prototype.getCastProxy=Y.prototype.Ih;Y.prototype.getAd=Y.prototype.getAd;Y.prototype.setEnabledNativeControls=Y.prototype.bh;Y.prototype.setEnabledShakaControls=Y.prototype.$f;Y.prototype.configure=Y.prototype.configure;Y.prototype.loadComplete=Y.prototype.Ai;Y.prototype.allowCast=Y.prototype.vh;Y.registerSeekBar=function(a){SB=a};Y.registerElement=CB;Y.prototype.destroy=Y.prototype.destroy;var DB=new Map,SB=new vB;function ZB(a,b){QA.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=Vk();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=T("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1426
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);$B(this);this.eventManager.o(this.localization,"locale-updated",function(){aC(c)});this.eventManager.o(this.localization,"locale-changed",function(){aC(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&VA(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){VA(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){VA(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.dh(Date.now());
1427
+ d.stopPropagation()});this.eventManager.o(this.g,"click",function(){bC(c)});aC(this);this.ad&&this.ad.isLinear()&&VA(this.g,!1)}pa(ZB,QA);ZB.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];QA.prototype.release.call(this)};function cC(a,b){dC.set(a,b)}
1428
+ function $B(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,dC.get(c)?(c=dC.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function bC(a){if(a.controls.Od())a.controls.Ec();else{VA(a.h,!0);wB(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};fb(a.h.childNodes,b)&&gb(a.h.childNodes,b)[0].focus()}}function aC(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1429
+ M("shaka.ui.OverflowMenu",ZB);ZB.registerElement=cC;function eC(){}eC.prototype.create=function(a,b){return new ZB(a,b)};CB("overflow_menu",new eC);var dC=new Map;function fC(a,b){QA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=T("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);
1430
+ this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);gC(this);hC(this);this.eventManager.o(this.localization,"locale-updated",function(){gC(c)});this.eventManager.o(this.localization,"locale-changed",function(){gC(c)});this.eventManager.o(this.g,"click",function(){c.controls.Xb().webkitShowPlaybackTargetPicker()});a=this.controls.Xb();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1431
+ c.player.Yd()==Xm;VA(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){hC(c)})}pa(fC,QA);function hC(a){var b=a.controls.Xb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function gC(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}M("shaka.ui.AirPlayButton",fC);function iC(){}iC.prototype.create=function(a,b){return new fC(a,b)};cC("airplay",new iC);
1432
+ CB("airplay",new iC);function jC(a,b,c){this.i=a;this.j=b;this.h=kC(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.zf()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.h);this.configure({});c.controls||a.gg(b);b.ui=this;c.ui=this}p=jC.prototype;p.destroy=function(){var a=this;return K(function(b){if(1==b.g)return a.g?D(b,a.g.destroy(),2):b.F(2);if(4!=b.g)return a.g=null,a.i?D(b,a.i.destroy(),4):b.F(4);a.i=null;F(b)})};
1433
+ p.zf=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Id()&&1<navigator.maxTouchPoints};p.getConfiguration=function(){var a=kC(this);yl(a,this.h,kC(this),{},"");return a};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=zl(a,b));yl(this.h,a,kC(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new O("uiupdated"))};p.Lh=function(){return this.g};
1434
1434
  p.aj=function(a){this.g.$f(a)};
1435
- function jC(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1435
+ function kC(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1436
1436
  "picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)",chapterMarks:"rgb(27, 27, 27)",chapterLabels:"rgb(255, 255, 255)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",
1437
- level:"rgb(255, 255, 255)"},trackLabelFormat:kC,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.j,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0};"remote"in HTMLMediaElement.prototype?b.overflowMenuButtons.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");
1437
+ level:"rgb(255, 255, 255)"},trackLabelFormat:lC,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.j,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0};"remote"in HTMLMediaElement.prototype?b.overflowMenuButtons.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");
1438
1438
  a.zf()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1439
- function lC(){var a,b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B;return K(function(C){switch(C.g){case 1:Vw();if(!cm())return mC("shaka-ui-load-failed",nC),C.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");if(!b.length&&!a.length){C.F(2);break}if(b.length&&!a.length){d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement;
1440
- h.replaceChild(g,f);g.appendChild(f);k=null;l=t(c);for(m=l.next();!m.done;m=l.next())if(n=m.value,n.parentElement==g){k=n;break}k||(k=document.createElement("canvas"),k.classList.add("shaka-canvas-container"),g.appendChild(k));oC(g,f,k)}C.F(2);break}r=t(a);q=r.next();case 4:if(q.done){C.F(2);break}u=q.value;if(u.ui){C.F(5);break}v=null;y=t(b);for(e=y.next();!e.done;e=y.next())if(z=e.value,z.parentElement==u){v=z;break}v||(v=document.createElement("video"),v.setAttribute("playsinline",""),u.appendChild(v));
1441
- x=null;A=t(c);for(m=A.next();!m.done;m=A.next())if(B=m.value,B.parentElement==u){x=B;break}x||(x=document.createElement("canvas"),x.classList.add("shaka-canvas-container"),u.appendChild(x));ta(C,7);return D(C,oC(u,v,x),9);case 9:va(C,5);break;case 7:return wa(C),mC("shaka-ui-load-failed",pC),C.return();case 5:q=r.next();C.F(4);break;case 2:mC("shaka-ui-loaded"),F(C)}})}function mC(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1442
- function oC(a,b,c){var d,e,f,g,h,k,l,m,n;return K(function(r){switch(r.g){case 1:d=new V;e=new iC(d,a,b);d.sg(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});b.controls&&
1443
- e.g.bh(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=t(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){r.F(4);break}n=m.value;ta(r,5);return D(r,e.g.Bc().load(n.getAttribute("src")),7);case 7:r.F(4);break;case 5:wa(r);case 3:m=l.next();r.F(2);break;case 4:return D(r,d.wc(b),0)}})}M("shaka.ui.Overlay",iC);iC.prototype.setEnabled=iC.prototype.aj;iC.prototype.getControls=iC.prototype.Lh;
1444
- iC.prototype.configure=iC.prototype.configure;iC.prototype.getConfiguration=iC.prototype.getConfiguration;iC.prototype.isMobile=iC.prototype.zf;iC.prototype.destroy=iC.prototype.destroy;var kC=0;iC.TrackLabelFormat={LANGUAGE:kC,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var nC=0,pC=1;iC.FailReasonCode={NO_BROWSER_SUPPORT:nC,PLAYER_FAILED_TO_LOAD:pC};"complete"==document.readyState?K(function(a){if(1==a.g)return D(a,Promise.resolve(),2);lC();F(a)}):window.addEventListener("load",lC);function qC(a,b,c,d,e,f,g,h){function k(H){var G="";5<=H&&(G=" "+f.resolve("SURROUND"));return G}function l(H,G,I,J){H=[H,G];h&&null!=J&&H.push(J);I&&3==g&&H.push(I);return H.join(": ")}function m(H){return"variant"==H.type?H.audioRoles?H.audioRoles.join(", "):void 0:H.roles.join(", ")}var n=a.find(function(H){return 1==H.active}),r=QA(b);Wk(b);b.appendChild(r);r=new Map;for(var q=t(a),u=q.next();!u.done;u=q.next())u=u.value,r.has(u.language)||r.set(u.language,new Set),r.get(u.language).add(m(u));
1445
- r=new Set;n=n?l(n.language,m(n),n.label,n.channelsCount):"";q={};a=t(a);for(u=a.next();!u.done;q={ob:q.ob},u=a.next()){q.ob=u.value;u=q.ob.language;var v=q.ob.forced,y=f.resolve("SUBTITLE_FORCED"),z=m(q.ob),x=q.ob.label,A=q.ob.channelsCount,B=l(u,z,x,A);if(!r.has(B)){r.add(B);var C=Vk();C.addEventListener("click",function(H){return function(){c(H.ob)}}(q));var E=T("span");C.appendChild(E);E.textContent=rC(u,f);switch(g){case kC:h&&(E.textContent+=k(A));v&&(E.textContent+=" ("+y+")");break;case 1:h&&
1446
- (E.textContent+=k(A));z?E.textContent=z:(Ua("Track #"+q.ob.id+" does not have a role, but the UI is configured to only show role."),E.textContent="?");v&&(E.textContent+=" ("+y+")");break;case 2:h&&(E.textContent+=k(A));z&&(E.textContent+=": "+z);v&&(E.textContent+=" ("+y+")");break;case 3:x?E.textContent=x:(Ua("Track #"+q.ob.id+" does not have a label, but the UI is configured to only show labels."),E.textContent="?")}d&&B==n&&(C.appendChild(TA()),E.classList.add("shaka-chosen-item"),C.ariaSelected=
1447
- "true",e.textContent=E.textContent);b.appendChild(C)}}}function rC(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Ub(a);return a in LA?LA[a].A:c in LA?LA[c].A+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function sC(a,b,c){PA.call(this,a,b);var d=this;tC(this,c);uC(this);vC(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new O("submenuopen")),UA(d.menu,!0),SA(d.menu)):UA(d.menu,!1)})}pa(sC,PA);
1448
- function tC(a,b){a.button=Vk();a.button.classList.add("shaka-overflow-button");a.icon=T("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=T("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=T("span");b.appendChild(a.nameSpan);a.currentSelection=T("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1449
- function uC(a){a.menu=T("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Vk();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.Ec()});var b=T("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1450
- T("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function vC(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}UA(a.parent,!0);fb(a.parent.childNodes,b)&&gb(a.parent.childNodes,b)[0].focus();vB(a.controls)}))}M("shaka.ui.SettingsMenu",sC);function wC(a,b){sC.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){xC(c)});this.eventManager.o(this.localization,"locale-changed",function(){xC(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.gb().length;UA(c.button,d);yC(c)});this.eventManager.o(this.player,"variantchanged",
1451
- function(){yC(c)});xC(this);yC(this)}pa(wC,sC);
1452
- function yC(a){var b=a.player.gb();qC(b,a.menu,function(c){c.channelsCount&&a.controls.g.showAudioChannelCountVariants?a.player.ye(c.language,c.roles[0],c.channelsCount):a.player.ye(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);SA(a.menu);a.controls.dispatchEvent(new O("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1453
- function xC(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}M("shaka.ui.AudioLanguageSelection",wC);function zC(){}zC.prototype.create=function(a,b){return new wC(a,b)};bC("language",new zC);BB("language",new zC);function AC(a,b){PA.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Vk();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1454
- a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);BC(this);CC(this);this.eventManager.o(this.localization,"locale-updated",function(){BC(c)});this.eventManager.o(this.localization,"locale-changed",function(){BC(c)});this.eventManager.o(this.g,"click",function(){DC(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){CC(c)})}pa(AC,PA);
1455
- function DC(a){var b;K(function(c){if(1==c.g){if(a.h.Da())return a.h.ih(),c.F(0);ta(c,3);a.g.disabled=!0;return D(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=wa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));F(c)})}function CC(a){var b=a.h.Se()&&a.controls.ya,c=a.h.Da();UA(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");EC(a)}
1456
- function EC(a){a.j.textContent=a.h.Da()?a.h.we():a.localization.resolve("OFF")}function BC(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");EC(a)}M("shaka.ui.CastButton",AC);function FC(){}FC.prototype.create=function(a,b){return new AC(a,b)};bC("cast",new FC);BB("cast",new FC);function GC(a,b){PA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);HC(this);this.h=this.controls.g.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){HC(c)});this.eventManager.o(this.localization,"locale-changed",function(){HC(c)});
1457
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Tb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ed(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(GC,PA);function HC(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}M("shaka.ui.FastForwardButton",GC);function IC(){}IC.prototype.create=function(a,b){return new GC(a,b)};BB("fast_forward",new IC);function JC(a,b){PA.call(this,a,b);var c=this;this.h=this.controls.s;this.g=Vk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");KC(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);LC(this);this.eventManager.o(this.localization,"locale-updated",function(){LC(c)});this.eventManager.o(this.localization,"locale-changed",function(){LC(c)});this.eventManager.o(this.g,"click",function(){return K(function(d){return D(d,
1458
- c.controls.kg(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.Gc()?"fullscreen_exit":"fullscreen";LC(c)});this.eventManager.o(this.h,"loadedmetadata",function(){KC(c)});this.eventManager.o(this.h,"loadeddata",function(){KC(c)})}pa(JC,PA);function KC(a){a.controls.ge()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function LC(a){a.g.ariaLabel=a.localization.resolve(a.controls.Gc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1459
- M("shaka.ui.FullscreenButton",JC);function MC(){}MC.prototype.create=function(a,b){return new JC(a,b)};BB("fullscreen",new MC);function NC(a,b){PA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=T("span");this.l.classList.add("shaka-current-selection-span");
1460
- a.appendChild(this.l);this.g.appendChild(a);OC(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){OC(c)});this.eventManager.o(this.localization,"locale-changed",function(){OC(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.La();c.h.va(1)});this.m=this.video.loop;this.h=new xd(function(){c.m!=c.video.loop&&(OC(c),c.m=c.video.loop)});this.h.va(1)}pa(NC,PA);
1461
- NC.prototype.release=function(){this.h.stop();this.h=null;PA.prototype.release.call(this)};function OC(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}M("shaka.ui.LoopButton",NC);function PC(){}PC.prototype.create=function(a,b){return new NC(a,b)};bC("loop",new PC);BB("loop",new PC);eB("loop",new PC);function QC(a,b){PA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);RC(this);SC(this);this.eventManager.o(this.localization,"locale-updated",function(){RC(c)});this.eventManager.o(this.localization,"locale-changed",function(){RC(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1462
- this.eventManager.o(this.video,"volumechange",function(){RC(c);SC(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){RC(c);SC(c)});this.eventManager.o(this.adManager,"ad-muted",function(){RC(c);SC(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;RC(c);SC(c)})}pa(QC,PA);function RC(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1463
- function SC(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}M("shaka.ui.MuteButton",QC);function TC(){}TC.prototype.create=function(a,b){return new QC(a,b)};BB("mute",new TC);function UC(a,b){PA.call(this,a,b);var c=this;this.l=this.controls.s;this.g=Vk();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1464
- T("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);VC(this);this.parent.appendChild(this.g);this.controls.rd()||UA(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){VC(c)});this.eventManager.o(this.localization,"locale-changed",function(){VC(c)});this.eventManager.o(this.g,"click",function(){c.controls.lg()});this.eventManager.o(this.l,"enterpictureinpicture",function(){WC(c)});this.eventManager.o(this.l,"leavepictureinpicture",
1465
- function(){XC(c)});this.eventManager.o(this.controls,"caststatuschanged",function(d){d.newStatus?c.controls.rd()&&UA(c.g,!1):c.controls.rd()&&UA(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){YC(c)});"documentPictureInPicture"in window&&this.eventManager.o(window.documentPictureInPicture,"enter",function(d){WC(c);c.eventManager.ka(d.window,"pagehide",function(){XC(c)})})}pa(UC,PA);
1466
- function WC(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function XC(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
1467
- function VC(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Af();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function YC(a){K(function(b){if(!a.controls.rd())return UA(a.g,!1),b.F(0);if(!a.player||!a.player.Fc())return UA(a.g,!0),b.F(0);UA(a.g,!1);return a.controls.Af()?D(b,a.controls.lg(),0):b.F(0)})}M("shaka.ui.PipButton",UC);function ZC(){}
1468
- ZC.prototype.create=function(a,b){return new UC(a,b)};bC("picture_in_picture",new ZC);BB("picture_in_picture",new ZC);eB("picture_in_picture",new ZC);function $C(a,b){sC.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.o(this.localization,"locale-updated",function(){aD(c)});this.eventManager.o(this.localization,"locale-changed",function(){aD(c)});this.eventManager.o(this.player,"ratechange",function(){bD(c,c.player.Tb())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+
1469
- "x",d]}));aD(this);cD(this);bD(this,this.player.Tb())}pa($C,sC);function aD(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1470
- function bD(a,b){var c=RA(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(TA()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1471
- "x")}function cD(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={Uc:b.Uc},d=c.next()){b.Uc=d.value;d=Vk();var e=T("span");e.textContent=b.Uc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.Uc);a.video.defaultPlaybackRate=a.g.get(f.Uc)}}(b));a.menu.appendChild(d)}SA(a.menu)}M("shaka.ui.PlaybackRateSelection",$C);function dD(){}dD.prototype.create=function(a,b){return new $C(a,b)};bC("playback_rate",new dD);BB("playback_rate",new dD);function eD(a,b){PA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("shaka-current-time");fD(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.R()&&(c.video.currentTime=c.player.Ea().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.U,e=c.controls.Hg(),f=c.player.Ea(),g=f.end-f.start;c.player.R()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(fD(c,"- "+VA(e,g)),c.g.disabled=!1):(fD(c,c.localization.resolve("LIVE")),
1472
- c.g.disabled=!0)):(d=3600<=g,e=VA(Math.max(0,e-f.start),d),g&&(e+=" / "+VA(g,d)),fD(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.R()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}pa(eD,PA);function fD(a,b){b!=a.g.textContent&&(a.g.textContent=b)}M("shaka.ui.PresentationTimeTracker",eD);function gD(){}gD.prototype.create=function(a,b){return new eD(a,b)};BB("time_and_duration",new gD);function hD(a,b){PA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");a="cast";(b=Kd())&&13<=b&&(a="airplay");this.i.textContent=a;this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1473
- a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;iD(this);UA(this.g,!1);!this.video.remote||this.video.disableRemotePlayback?this.g.classList.add("shaka-hidden"):(this.eventManager.o(this.localization,"locale-updated",function(){iD(c)}),this.eventManager.o(this.localization,"locale-changed",function(){iD(c)}),this.eventManager.o(this.controls,"caststatuschanged",function(){jD(c)}),this.eventManager.o(this.g,"click",function(){c.video.remote.prompt()}),this.eventManager.o(this.video.remote,
1474
- "connect",function(){jD(c)}),this.eventManager.o(this.video.remote,"connecting",function(){jD(c)}),this.eventManager.o(this.video.remote,"disconnect",function(){jD(c)}),this.eventManager.o(this.player,"loaded",function(){jD(c)}),jD(this))}pa(hD,PA);hD.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});PA.prototype.release.call(this)};
1475
- function jD(a){var b,c;K(function(d){switch(d.g){case 1:if(a.controls.C.Se()&&a.controls.ya){UA(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);d.F(0);break}if("disconnected"==a.video.remote.state){b=function(e){a.player?UA(a.g,a.player.Yd()==Xm&&e):UA(a.g,!1)};ta(d,7);if(-1==a.h){d.F(9);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.F(0);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.F(0);break;case 10:a.h=-1;
1476
- case 9:va(d,8);break;case 7:wa(d);case 8:return ta(d,11),D(d,a.video.remote.watchAvailability(b),13);case 13:c=d.h;a.h=c;va(d,0);break;case 11:wa(d),b(!0),F(d)}})}function iD(a){var b=a.localization.resolve("CAST"),c=Kd();c&&13<=c&&(b=a.localization.resolve("AIRPLAY"));a.g.ariaLabel=b;a.l.textContent=b}M("shaka.ui.RemoteButton",hD);function kD(){}kD.prototype.create=function(a,b){return new hD(a,b)};bC("remote",new kD);BB("remote",new kD);function lD(a,b){sC.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.o(this.localization,"locale-updated",function(){mD(c)});this.eventManager.o(this.localization,"locale-changed",function(){mD(c)});this.eventManager.o(this.player,"variantchanged",function(){nD(c)});this.eventManager.o(this.player,"trackschanged",function(){nD(c)});this.eventManager.o(this.player,
1477
- "abrstatuschanged",function(){nD(c)});nD(this)}pa(lD,sC);
1478
- function nD(a){var b=[];a.player.Yd()!=Xm&&(b=a.player.gb());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){var m=-1;m=a.player.Fc()?b.findIndex(function(n){return n.bandwidth==k.bandwidth}):b.findIndex(function(n){return n.height==k.height&&n.frameRate==k.frameRate&&n.hdr==k.hdr&&n.videoLayout==k.videoLayout});return m==l});a.player.Fc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):
1479
- b.sort(function(k,l){return l.height-k.height});var d=QA(a.menu);Wk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=t(b),g=f.next();!g.done;e={yb:e.yb},g=f.next()){e.yb=g.value;g=Vk();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.yb;a.player.configure({abr:{enabled:!1}});a.player.ze(l,a.controls.g.clearBufferOnQualityChange)}}(e));var h=T("span");h.textContent=a.player.Fc()&&e.yb.bandwidth?Math.round(e.yb.bandwidth/
1480
- 1E3)+" kbits/s":e.yb.height&&e.yb.width?oD(e.yb):"Unknown";g.appendChild(h);d||e.yb!=c||(g.ariaSelected="true",g.appendChild(TA()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Vk();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});nD(a)});a.g=T("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected=
1481
- "true",e.appendChild(TA()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);SA(a.menu);a.controls.dispatchEvent(new O("resolutionselectionupdated"));mD(a)}
1482
- function oD(a){var b=a.height||0,c=a.width||0,d=b;c/b>16/9&&(d=Math.round(9*c/16));b=d+"p";2160==d&&(b="4K");(d=a.frameRate)&&(50<=d||20>=d)&&(b+=Math.round(a.frameRate));if("PQ"==a.hdr||"HLG"==a.hdr)b+=" (HDR)";"CH-STEREO"==a.videoLayout&&(b+=" (3D)");return b}
1483
- function mD(a){var b=a.player.Fc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}M("shaka.ui.ResolutionSelection",lD);function pD(){}
1484
- pD.prototype.create=function(a,b){return new lD(a,b)};bC("quality",new pD);BB("quality",new pD);function qD(a,b){PA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);rD(this);this.h=this.controls.g.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){rD(c)});this.eventManager.o(this.localization,"locale-changed",function(){rD(c)});
1485
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Tb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ed(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(qD,PA);function rD(a){a.g.ariaLabel=a.localization.resolve("REWIND")}M("shaka.ui.RewindButton",qD);function sD(){}sD.prototype.create=function(a,b){return new qD(a,b)};BB("rewind",new sD);function tD(a,b){PA.call(this,a,b);var c=this;this.j=T("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=T("div");this.h.classList.add("shaka-skip-ad-counter");UA(this.h,!1);this.j.appendChild(this.h);this.g=Vk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;UA(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);uD(this);this.i=new xd(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1486
- d:(c.i.stop(),UA(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){uD(c)});this.eventManager.o(this.localization,"locale-changed",function(){uD(c)});this.eventManager.o(this.adManager,"ad-started",function(){vD(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),UA(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;UA(c.g,!1);UA(c.h,!1)});this.eventManager.o(this.g,
1487
- "click",function(){c.ad.skip()});this.ad&&vD(this)}pa(tD,PA);tD.prototype.release=function(){this.i.stop();this.i=null;PA.prototype.release.call(this)};function uD(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function vD(a){a.ad.isSkippable()&&(UA(a.g,!0),UA(a.h,!0),a.h.textContent="",a.i.La(),a.i.va(.5))}M("shaka.ui.SkipAdButton",tD);function wD(a,b){ZA.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}pa(wD,ZA);wD.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};wD.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1488
- M("shaka.ui.SmallPlayButton",wD);function xD(){}xD.prototype.create=function(a,b){return new wD(a,b)};BB("play_pause",new xD);function yD(a,b){PA.call(this,a,b);a=T("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}pa(yD,PA);M("shaka.ui.Spacer",yD);function zD(){}zD.prototype.create=function(a,b){return new yD(a,b)};BB("spacer",new zD);function AD(a,b){function c(k){return VA(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}PA.call(this,a,b);var h=this;this.i=Vk();this.i.classList.add("shaka-statistics-button");this.j=T("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=T("label");a.classList.add("shaka-overflow-button-label");
1439
+ function mC(){var a,b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,A,B;return K(function(C){switch(C.g){case 1:Vw();if(!cm())return nC("shaka-ui-load-failed",oC),C.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");if(!b.length&&!a.length){C.F(2);break}if(b.length&&!a.length){d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement;
1440
+ h.replaceChild(g,f);g.appendChild(f);k=null;l=t(c);for(m=l.next();!m.done;m=l.next())if(n=m.value,n.parentElement==g){k=n;break}k||(k=document.createElement("canvas"),k.classList.add("shaka-canvas-container"),g.appendChild(k));pC(g,f,k)}C.F(2);break}r=t(a);q=r.next();case 4:if(q.done){C.F(2);break}u=q.value;if(u.ui){C.F(5);break}v=null;y=t(b);for(e=y.next();!e.done;e=y.next())if(z=e.value,z.parentElement==u){v=z;break}v||(v=document.createElement("video"),v.setAttribute("playsinline",""),u.appendChild(v));
1441
+ x=null;A=t(c);for(m=A.next();!m.done;m=A.next())if(B=m.value,B.parentElement==u){x=B;break}x||(x=document.createElement("canvas"),x.classList.add("shaka-canvas-container"),u.appendChild(x));ta(C,7);return D(C,pC(u,v,x),9);case 9:va(C,5);break;case 7:return wa(C),nC("shaka-ui-load-failed",qC),C.return();case 5:q=r.next();C.F(4);break;case 2:nC("shaka-ui-loaded"),F(C)}})}function nC(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1442
+ function pC(a,b,c){var d,e,f,g,h,k,l,m,n;return K(function(r){switch(r.g){case 1:d=new V;e=new jC(d,a,b);d.sg(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});b.controls&&
1443
+ e.g.bh(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=t(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){r.F(4);break}n=m.value;ta(r,5);return D(r,e.g.Bc().load(n.getAttribute("src")),7);case 7:r.F(4);break;case 5:wa(r);case 3:m=l.next();r.F(2);break;case 4:return D(r,d.wc(b),0)}})}M("shaka.ui.Overlay",jC);jC.prototype.setEnabled=jC.prototype.aj;jC.prototype.getControls=jC.prototype.Lh;
1444
+ jC.prototype.configure=jC.prototype.configure;jC.prototype.getConfiguration=jC.prototype.getConfiguration;jC.prototype.isMobile=jC.prototype.zf;jC.prototype.destroy=jC.prototype.destroy;var lC=0;jC.TrackLabelFormat={LANGUAGE:lC,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var oC=0,qC=1;jC.FailReasonCode={NO_BROWSER_SUPPORT:oC,PLAYER_FAILED_TO_LOAD:qC};"complete"==document.readyState?K(function(a){if(1==a.g)return D(a,Promise.resolve(),2);mC();F(a)}):window.addEventListener("load",mC);function rC(a,b,c,d,e,f,g,h){function k(H){var G="";5<=H&&(G=" "+f.resolve("SURROUND"));return G}function l(H,G,I,J){H=[H,G];h&&null!=J&&H.push(J);I&&3==g&&H.push(I);return H.join(": ")}function m(H){return"variant"==H.type?H.audioRoles?H.audioRoles.join(", "):void 0:H.roles.join(", ")}var n=a.find(function(H){return 1==H.active}),r=RA(b);Wk(b);b.appendChild(r);r=new Map;for(var q=t(a),u=q.next();!u.done;u=q.next())u=u.value,r.has(u.language)||r.set(u.language,new Set),r.get(u.language).add(m(u));
1445
+ r=new Set;n=n?l(n.language,m(n),n.label,n.channelsCount):"";q={};a=t(a);for(u=a.next();!u.done;q={ob:q.ob},u=a.next()){q.ob=u.value;u=q.ob.language;var v=q.ob.forced,y=f.resolve("SUBTITLE_FORCED"),z=m(q.ob),x=q.ob.label,A=q.ob.channelsCount,B=l(u,z,x,A);if(!r.has(B)){r.add(B);var C=Vk();C.addEventListener("click",function(H){return function(){c(H.ob)}}(q));var E=T("span");C.appendChild(E);E.textContent=sC(u,f);switch(g){case lC:h&&(E.textContent+=k(A));v&&(E.textContent+=" ("+y+")");break;case 1:h&&
1446
+ (E.textContent+=k(A));z?E.textContent=z:(Ua("Track #"+q.ob.id+" does not have a role, but the UI is configured to only show role."),E.textContent="?");v&&(E.textContent+=" ("+y+")");break;case 2:h&&(E.textContent+=k(A));z&&(E.textContent+=": "+z);v&&(E.textContent+=" ("+y+")");break;case 3:x?E.textContent=x:(Ua("Track #"+q.ob.id+" does not have a label, but the UI is configured to only show labels."),E.textContent="?")}d&&B==n&&(C.appendChild(UA()),E.classList.add("shaka-chosen-item"),C.ariaSelected=
1447
+ "true",e.textContent=E.textContent);b.appendChild(C)}}}function sC(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Ub(a);return a in MA?MA[a].A:c in MA?MA[c].A+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function tC(a,b,c){QA.call(this,a,b);var d=this;uC(this,c);vC(this);wC(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new O("submenuopen")),VA(d.menu,!0),TA(d.menu)):VA(d.menu,!1)})}pa(tC,QA);
1448
+ function uC(a,b){a.button=Vk();a.button.classList.add("shaka-overflow-button");a.icon=T("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=T("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=T("span");b.appendChild(a.nameSpan);a.currentSelection=T("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1449
+ function vC(a){a.menu=T("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Vk();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.Ec()});var b=T("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1450
+ T("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function wC(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}VA(a.parent,!0);fb(a.parent.childNodes,b)&&gb(a.parent.childNodes,b)[0].focus();wB(a.controls)}))}M("shaka.ui.SettingsMenu",tC);function xC(a,b){tC.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){yC(c)});this.eventManager.o(this.localization,"locale-changed",function(){yC(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.gb().length;VA(c.button,d);zC(c)});this.eventManager.o(this.player,"variantchanged",
1451
+ function(){zC(c)});yC(this);zC(this)}pa(xC,tC);
1452
+ function zC(a){var b=a.player.gb();rC(b,a.menu,function(c){c.channelsCount&&a.controls.g.showAudioChannelCountVariants?a.player.ye(c.language,c.roles[0],c.channelsCount):a.player.ye(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);TA(a.menu);a.controls.dispatchEvent(new O("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1453
+ function yC(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}M("shaka.ui.AudioLanguageSelection",xC);function AC(){}AC.prototype.create=function(a,b){return new xC(a,b)};cC("language",new AC);CB("language",new AC);function BC(a,b){QA.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Vk();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1454
+ a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);CC(this);DC(this);this.eventManager.o(this.localization,"locale-updated",function(){CC(c)});this.eventManager.o(this.localization,"locale-changed",function(){CC(c)});this.eventManager.o(this.g,"click",function(){EC(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){DC(c)})}pa(BC,QA);
1455
+ function EC(a){var b;K(function(c){if(1==c.g){if(a.h.Da())return a.h.ih(),c.F(0);ta(c,3);a.g.disabled=!0;return D(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=wa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));F(c)})}function DC(a){var b=a.h.Se()&&a.controls.ya,c=a.h.Da();VA(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");FC(a)}
1456
+ function FC(a){a.j.textContent=a.h.Da()?a.h.we():a.localization.resolve("OFF")}function CC(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");FC(a)}M("shaka.ui.CastButton",BC);function GC(){}GC.prototype.create=function(a,b){return new BC(a,b)};cC("cast",new GC);CB("cast",new GC);function HC(a,b){QA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);IC(this);this.h=this.controls.g.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){IC(c)});this.eventManager.o(this.localization,"locale-changed",function(){IC(c)});
1457
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Tb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ed(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(HC,QA);function IC(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}M("shaka.ui.FastForwardButton",HC);function JC(){}JC.prototype.create=function(a,b){return new HC(a,b)};CB("fast_forward",new JC);function KC(a,b){QA.call(this,a,b);var c=this;this.h=this.controls.s;this.g=Vk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");LC(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);MC(this);this.eventManager.o(this.localization,"locale-updated",function(){MC(c)});this.eventManager.o(this.localization,"locale-changed",function(){MC(c)});this.eventManager.o(this.g,"click",function(){return K(function(d){return D(d,
1458
+ c.controls.kg(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.Gc()?"fullscreen_exit":"fullscreen";MC(c)});this.eventManager.o(this.h,"loadedmetadata",function(){LC(c)});this.eventManager.o(this.h,"loadeddata",function(){LC(c)})}pa(KC,QA);function LC(a){a.controls.ge()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function MC(a){a.g.ariaLabel=a.localization.resolve(a.controls.Gc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1459
+ M("shaka.ui.FullscreenButton",KC);function NC(){}NC.prototype.create=function(a,b){return new KC(a,b)};CB("fullscreen",new NC);function OC(a,b){QA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=T("span");this.l.classList.add("shaka-current-selection-span");
1460
+ a.appendChild(this.l);this.g.appendChild(a);PC(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){PC(c)});this.eventManager.o(this.localization,"locale-changed",function(){PC(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.La();c.h.wa(1)});this.m=this.video.loop;this.h=new xd(function(){c.m!=c.video.loop&&(PC(c),c.m=c.video.loop)});this.h.wa(1)}pa(OC,QA);
1461
+ OC.prototype.release=function(){this.h.stop();this.h=null;QA.prototype.release.call(this)};function PC(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}M("shaka.ui.LoopButton",OC);function QC(){}QC.prototype.create=function(a,b){return new OC(a,b)};cC("loop",new QC);CB("loop",new QC);fB("loop",new QC);function RC(a,b){QA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);SC(this);TC(this);this.eventManager.o(this.localization,"locale-updated",function(){SC(c)});this.eventManager.o(this.localization,"locale-changed",function(){SC(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1462
+ this.eventManager.o(this.video,"volumechange",function(){SC(c);TC(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){SC(c);TC(c)});this.eventManager.o(this.adManager,"ad-muted",function(){SC(c);TC(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;SC(c);TC(c)})}pa(RC,QA);function SC(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1463
+ function TC(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}M("shaka.ui.MuteButton",RC);function UC(){}UC.prototype.create=function(a,b){return new RC(a,b)};CB("mute",new UC);function VC(a,b){QA.call(this,a,b);var c=this;this.l=this.controls.s;this.g=Vk();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1464
+ T("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);WC(this);this.parent.appendChild(this.g);this.controls.rd()||VA(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){WC(c)});this.eventManager.o(this.localization,"locale-changed",function(){WC(c)});this.eventManager.o(this.g,"click",function(){c.controls.lg()});this.eventManager.o(this.l,"enterpictureinpicture",function(){XC(c)});this.eventManager.o(this.l,"leavepictureinpicture",
1465
+ function(){YC(c)});this.eventManager.o(this.controls,"caststatuschanged",function(d){d.newStatus?c.controls.rd()&&VA(c.g,!1):c.controls.rd()&&VA(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){ZC(c)});"documentPictureInPicture"in window&&this.eventManager.o(window.documentPictureInPicture,"enter",function(d){XC(c);c.eventManager.ka(d.window,"pagehide",function(){YC(c)})})}pa(VC,QA);
1466
+ function XC(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function YC(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
1467
+ function WC(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Af();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function ZC(a){K(function(b){if(!a.controls.rd())return VA(a.g,!1),b.F(0);if(!a.player||!a.player.Fc())return VA(a.g,!0),b.F(0);VA(a.g,!1);return a.controls.Af()?D(b,a.controls.lg(),0):b.F(0)})}M("shaka.ui.PipButton",VC);function $C(){}
1468
+ $C.prototype.create=function(a,b){return new VC(a,b)};cC("picture_in_picture",new $C);CB("picture_in_picture",new $C);fB("picture_in_picture",new $C);function aD(a,b){tC.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.o(this.localization,"locale-updated",function(){bD(c)});this.eventManager.o(this.localization,"locale-changed",function(){bD(c)});this.eventManager.o(this.player,"ratechange",function(){cD(c,c.player.Tb())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+
1469
+ "x",d]}));bD(this);dD(this);cD(this,this.player.Tb())}pa(aD,tC);function bD(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1470
+ function cD(a,b){var c=SA(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(UA()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1471
+ "x")}function dD(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={Uc:b.Uc},d=c.next()){b.Uc=d.value;d=Vk();var e=T("span");e.textContent=b.Uc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.Uc);a.video.defaultPlaybackRate=a.g.get(f.Uc)}}(b));a.menu.appendChild(d)}TA(a.menu)}M("shaka.ui.PlaybackRateSelection",aD);function eD(){}eD.prototype.create=function(a,b){return new aD(a,b)};cC("playback_rate",new eD);CB("playback_rate",new eD);function fD(a,b){QA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("shaka-current-time");gD(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.R()&&(c.video.currentTime=c.player.Ea().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.U,e=c.controls.Hg(),f=c.player.Ea(),g=f.end-f.start;c.player.R()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(gD(c,"- "+WA(e,g)),c.g.disabled=!1):(gD(c,c.localization.resolve("LIVE")),
1472
+ c.g.disabled=!0)):(d=3600<=g,e=WA(Math.max(0,e-f.start),d),g&&(e+=" / "+WA(g,d)),gD(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.R()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}pa(fD,QA);function gD(a,b){b!=a.g.textContent&&(a.g.textContent=b)}M("shaka.ui.PresentationTimeTracker",fD);function hD(){}hD.prototype.create=function(a,b){return new fD(a,b)};CB("time_and_duration",new hD);function iD(a,b){QA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");a="cast";(b=Kd())&&13<=b&&(a="airplay");this.i.textContent=a;this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1473
+ a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;jD(this);VA(this.g,!1);!this.video.remote||this.video.disableRemotePlayback?this.g.classList.add("shaka-hidden"):(this.eventManager.o(this.localization,"locale-updated",function(){jD(c)}),this.eventManager.o(this.localization,"locale-changed",function(){jD(c)}),this.eventManager.o(this.controls,"caststatuschanged",function(){kD(c)}),this.eventManager.o(this.g,"click",function(){c.video.remote.prompt()}),this.eventManager.o(this.video.remote,
1474
+ "connect",function(){kD(c)}),this.eventManager.o(this.video.remote,"connecting",function(){kD(c)}),this.eventManager.o(this.video.remote,"disconnect",function(){kD(c)}),this.eventManager.o(this.player,"loaded",function(){kD(c)}),kD(this))}pa(iD,QA);iD.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});QA.prototype.release.call(this)};
1475
+ function kD(a){var b,c;K(function(d){switch(d.g){case 1:if(a.controls.C.Se()&&a.controls.ya){VA(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);d.F(0);break}if("disconnected"==a.video.remote.state){b=function(e){a.player?VA(a.g,a.player.Yd()==Xm&&e):VA(a.g,!1)};ta(d,7);if(-1==a.h){d.F(9);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.F(0);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.F(0);break;case 10:a.h=-1;
1476
+ case 9:va(d,8);break;case 7:wa(d);case 8:return ta(d,11),D(d,a.video.remote.watchAvailability(b),13);case 13:c=d.h;a.h=c;va(d,0);break;case 11:wa(d),b(!0),F(d)}})}function jD(a){var b=a.localization.resolve("CAST"),c=Kd();c&&13<=c&&(b=a.localization.resolve("AIRPLAY"));a.g.ariaLabel=b;a.l.textContent=b}M("shaka.ui.RemoteButton",iD);function lD(){}lD.prototype.create=function(a,b){return new iD(a,b)};cC("remote",new lD);CB("remote",new lD);function mD(a,b){tC.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.o(this.localization,"locale-updated",function(){nD(c)});this.eventManager.o(this.localization,"locale-changed",function(){nD(c)});this.eventManager.o(this.player,"variantchanged",function(){oD(c)});this.eventManager.o(this.player,"trackschanged",function(){oD(c)});this.eventManager.o(this.player,
1477
+ "abrstatuschanged",function(){oD(c)});oD(this)}pa(mD,tC);
1478
+ function oD(a){var b=[];a.player.Yd()!=Xm&&(b=a.player.gb());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){var m=-1;m=a.player.Fc()?b.findIndex(function(n){return n.bandwidth==k.bandwidth}):b.findIndex(function(n){return n.height==k.height&&n.frameRate==k.frameRate&&n.hdr==k.hdr&&n.videoLayout==k.videoLayout});return m==l});a.player.Fc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):
1479
+ b.sort(function(k,l){return l.height-k.height});var d=RA(a.menu);Wk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=t(b),g=f.next();!g.done;e={zb:e.zb},g=f.next()){e.zb=g.value;g=Vk();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.zb;a.player.configure({abr:{enabled:!1}});a.player.ze(l,a.controls.g.clearBufferOnQualityChange)}}(e));var h=T("span");h.textContent=a.player.Fc()&&e.zb.bandwidth?Math.round(e.zb.bandwidth/
1480
+ 1E3)+" kbits/s":e.zb.height&&e.zb.width?pD(e.zb):"Unknown";g.appendChild(h);d||e.zb!=c||(g.ariaSelected="true",g.appendChild(UA()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Vk();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});oD(a)});a.g=T("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected=
1481
+ "true",e.appendChild(UA()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);TA(a.menu);a.controls.dispatchEvent(new O("resolutionselectionupdated"));nD(a)}
1482
+ function pD(a){var b=a.height||0,c=a.width||0,d=b;c/b>16/9&&(d=Math.round(9*c/16));b=d+"p";2160==d&&(b="4K");(d=a.frameRate)&&(50<=d||20>=d)&&(b+=Math.round(a.frameRate));if("PQ"==a.hdr||"HLG"==a.hdr)b+=" (HDR)";"CH-STEREO"==a.videoLayout&&(b+=" (3D)");return b}
1483
+ function nD(a){var b=a.player.Fc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}M("shaka.ui.ResolutionSelection",mD);function qD(){}
1484
+ qD.prototype.create=function(a,b){return new mD(a,b)};cC("quality",new qD);CB("quality",new qD);function rD(a,b){QA.call(this,a,b);var c=this;this.g=Vk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);sD(this);this.h=this.controls.g.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){sD(c)});this.eventManager.o(this.localization,"locale-changed",function(){sD(c)});
1485
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Tb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ed(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(rD,QA);function sD(a){a.g.ariaLabel=a.localization.resolve("REWIND")}M("shaka.ui.RewindButton",rD);function tD(){}tD.prototype.create=function(a,b){return new rD(a,b)};CB("rewind",new tD);function uD(a,b){QA.call(this,a,b);var c=this;this.j=T("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=T("div");this.h.classList.add("shaka-skip-ad-counter");VA(this.h,!1);this.j.appendChild(this.h);this.g=Vk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;VA(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);vD(this);this.i=new xd(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1486
+ d:(c.i.stop(),VA(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){vD(c)});this.eventManager.o(this.localization,"locale-changed",function(){vD(c)});this.eventManager.o(this.adManager,"ad-started",function(){wD(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),VA(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;VA(c.g,!1);VA(c.h,!1)});this.eventManager.o(this.g,
1487
+ "click",function(){c.ad.skip()});this.ad&&wD(this)}pa(uD,QA);uD.prototype.release=function(){this.i.stop();this.i=null;QA.prototype.release.call(this)};function vD(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function wD(a){a.ad.isSkippable()&&(VA(a.g,!0),VA(a.h,!0),a.h.textContent="",a.i.La(),a.i.wa(.5))}M("shaka.ui.SkipAdButton",uD);function xD(a,b){$A.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}pa(xD,$A);xD.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};xD.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1488
+ M("shaka.ui.SmallPlayButton",xD);function yD(){}yD.prototype.create=function(a,b){return new xD(a,b)};CB("play_pause",new yD);function zD(a,b){QA.call(this,a,b);a=T("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}pa(zD,QA);M("shaka.ui.Spacer",zD);function AD(){}AD.prototype.create=function(a,b){return new zD(a,b)};CB("spacer",new AD);function BD(a,b){function c(k){return WA(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}QA.call(this,a,b);var h=this;this.i=Vk();this.i.classList.add("shaka-statistics-button");this.j=T("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=T("label");a.classList.add("shaka-overflow-button-label");
1489
1489
  this.s=T("span");a.appendChild(this.s);this.m=T("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.g=T("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.h.appendChild(this.g);this.D=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1490
1490
  this.u={};this.C={width:g,height:g,completionPercent:function(k){return h.h[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.h[k]+" (stalls)"},gapsJumped:function(k){return h.h[k]+" (gaps)"}};this.l=new xd(function(){h.h=h.player.getStats();for(var k=t(h.D),l=k.next();!l.done;l=
1491
- k.next())l=l.value,h.u[l].textContent=h.C[l](l)});BD(this);CD(this);this.eventManager.o(this.localization,"locale-updated",function(){BD(h)});this.eventManager.o(this.localization,"locale-changed",function(){BD(h)});this.eventManager.o(this.i,"click",function(){UA(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.va(.1),UA(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),UA(h.g,!1));BD(h)})}pa(AD,PA);
1492
- function BD(a){a.s.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1493
- function CD(a){for(var b=t(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=T("div"),h=T("label");h.textContent=c+":";g.appendChild(h);h=T("span");h.textContent=f.C[c](c);g.appendChild(h);f.u[c]=h;e.call(d,g);a.D.push(c)}else Ua("Unrecognized statistic element:",c)}AD.prototype.release=function(){this.l.stop();this.l=null;PA.prototype.release.call(this)};M("shaka.ui.StatisticsButton",AD);function DD(){}
1494
- DD.prototype.create=function(a,b){return new AD(a,b)};bC("statistics",new DD);eB("statistics",new DD);function ED(a,b){sC.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.mc()?this.button.ariaPressed="true":this.button.ariaPressed="false";FD(this);this.eventManager.o(this.localization,"locale-updated",function(){GD(c);HD(c)});this.eventManager.o(this.localization,"locale-changed",function(){GD(c);HD(c)});this.eventManager.o(this.player,
1495
- "texttrackvisibility",function(){ID(c);HD(c)});this.eventManager.o(this.player,"textchanged",function(){HD(c)});this.eventManager.o(this.player,"trackschanged",function(){JD(c)});ID(this);GD(this);HD(this);JD(this)}pa(ED,sC);function FD(a){var b=Vk();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(TA());a.g=T("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1496
- function ID(a){a.player.mc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new O("captionselectionupdated"))}
1497
- function HD(a){var b=a.player.Wb();qC(b,a.menu,function(c){return KD(a,c)},a.player.mc(),a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=Vk();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.fg(!1);HD(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.mc()||(b.ariaSelected="true",b.appendChild(TA()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
1498
- a.button.setAttribute("shaka-status",a.currentSelection.textContent);SA(a.menu);a.controls.dispatchEvent(new O("captionselectionupdated"))}function KD(a,b){return K(function(c){a.player.Yf(b);return D(c,a.player.fg(!0),0)})}
1499
- function GD(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function JD(a){var b=0<a.player.Wb().length;UA(a.button,b);HD(a)}M("shaka.ui.TextSelection",ED);function LD(){}LD.prototype.create=function(a,b){return new ED(a,b)};bC("captions",new LD);BB("captions",new LD);function MD(a,b){gB.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return ND(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return OD(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return OD(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return ND(c)});this.eventManager.o(this.localization,"locale-updated",function(){return PD(c)});
1500
- this.eventManager.o(this.localization,"locale-changed",function(){return PD(c)});ND(this);PD(this);if(this.ad)this.onChange()}pa(MD,gB);MD.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.muted=0==this.video.volume?!0:!1)};function ND(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);QD(a)}function OD(a){var b=a.ad.getVolume();a.setValue(100*b);QD(a)}
1501
- function QD(a){var b=a.g.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function PD(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}M("shaka.ui.VolumeBar",MD);function RD(){}RD.prototype.create=function(a,b){return new MD(a,b)};BB("volume",new RD);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1491
+ k.next())l=l.value,h.u[l].textContent=h.C[l](l)});CD(this);DD(this);this.eventManager.o(this.localization,"locale-updated",function(){CD(h)});this.eventManager.o(this.localization,"locale-changed",function(){CD(h)});this.eventManager.o(this.i,"click",function(){VA(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.wa(.1),VA(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),VA(h.g,!1));CD(h)})}pa(BD,QA);
1492
+ function CD(a){a.s.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1493
+ function DD(a){for(var b=t(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=T("div"),h=T("label");h.textContent=c+":";g.appendChild(h);h=T("span");h.textContent=f.C[c](c);g.appendChild(h);f.u[c]=h;e.call(d,g);a.D.push(c)}else Ua("Unrecognized statistic element:",c)}BD.prototype.release=function(){this.l.stop();this.l=null;QA.prototype.release.call(this)};M("shaka.ui.StatisticsButton",BD);function ED(){}
1494
+ ED.prototype.create=function(a,b){return new BD(a,b)};cC("statistics",new ED);fB("statistics",new ED);function FD(a,b){tC.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.mc()?this.button.ariaPressed="true":this.button.ariaPressed="false";GD(this);this.eventManager.o(this.localization,"locale-updated",function(){HD(c);ID(c)});this.eventManager.o(this.localization,"locale-changed",function(){HD(c);ID(c)});this.eventManager.o(this.player,
1495
+ "texttrackvisibility",function(){JD(c);ID(c)});this.eventManager.o(this.player,"textchanged",function(){ID(c)});this.eventManager.o(this.player,"trackschanged",function(){KD(c)});JD(this);HD(this);ID(this);KD(this)}pa(FD,tC);function GD(a){var b=Vk();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(UA());a.g=T("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1496
+ function JD(a){a.player.mc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new O("captionselectionupdated"))}
1497
+ function ID(a){var b=a.player.Wb();rC(b,a.menu,function(c){return LD(a,c)},a.player.mc(),a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=Vk();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.fg(!1);ID(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.mc()||(b.ariaSelected="true",b.appendChild(UA()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
1498
+ a.button.setAttribute("shaka-status",a.currentSelection.textContent);TA(a.menu);a.controls.dispatchEvent(new O("captionselectionupdated"))}function LD(a,b){return K(function(c){a.player.Yf(b);return D(c,a.player.fg(!0),0)})}
1499
+ function HD(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function KD(a){var b=0<a.player.Wb().length;VA(a.button,b);ID(a)}M("shaka.ui.TextSelection",FD);function MD(){}MD.prototype.create=function(a,b){return new FD(a,b)};cC("captions",new MD);CB("captions",new MD);function ND(a,b){hB.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return OD(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return PD(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return PD(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return OD(c)});this.eventManager.o(this.localization,"locale-updated",function(){return QD(c)});
1500
+ this.eventManager.o(this.localization,"locale-changed",function(){return QD(c)});OD(this);QD(this);if(this.ad)this.onChange()}pa(ND,hB);ND.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.muted=0==this.video.volume?!0:!1)};function OD(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);RD(a)}function PD(a){var b=a.ad.getVolume();a.setValue(100*b);RD(a)}
1501
+ function RD(a){var b=a.g.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function QD(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}M("shaka.ui.VolumeBar",ND);function SD(){}SD.prototype.create=function(a,b){return new ND(a,b)};CB("volume",new SD);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1502
1502
 
1503
1503
  //# sourceMappingURL=shaka-player.ui.map