1(function(){var n;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},da="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ea(){ea=function(){};da.Symbol||(da.Symbol=fa)}function ja(a,b){this.g=a;ca(this,"description",{configurable:!0,writable:!0,value:b})} 2ja.prototype.toString=function(){return this.g};var fa=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new ja("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();function ka(){ea();var a=da.Symbol.iterator;a||(a=da.Symbol.iterator=da.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ca(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return la(aa(this))}});ka=function(){}} 3function la(a){ka();a={next:a};a[da.Symbol.iterator]=function(){return this};return a}function r(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ma(a){if(!(a instanceof Array)){a=r(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var oa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},pa; 4if("function"==typeof Object.setPrototypeOf)pa=Object.setPrototypeOf;else{var qa;a:{var ra={a:!0},sa={};try{sa.__proto__=ra;qa=sa.a;break a}catch(a){}qa=!1}pa=qa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ta=pa; 5function ua(a,b){a.prototype=oa(b.prototype);a.prototype.constructor=a;if(ta)ta(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.xe=b.prototype}function wa(a,b){if(b){var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b})}} 6wa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k= 7g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.I),reject:g(this.l)}};b.prototype.I=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.K(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.C(g):this.o(g)}}; 8b.prototype.C=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.L(h,g):this.o(g)};b.prototype.l=function(g){this.A(2,g)};b.prototype.o=function(g){this.A(1,g)};b.prototype.A=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;this.B()};b.prototype.B=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;b.prototype.K=function(g){var h=this.j(); 9g.Qe(h.resolve,h.reject)};b.prototype.L=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(p,t){return"function"==typeof p?function(w){try{l(p(w))}catch(z){m(z)}}:t}var l,m,q=new b(function(p,t){l=p;m=t});this.Qe(k(g,l),k(h,m));return q};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.Qe=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);break;default:throw Error("Unexpected state: "+ 10l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k)};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=r(g),m=l.next();!m.done;m=l.next())d(m.value).Qe(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function q(w){return function(z){p[w]=z;t--;0==t&&l(p)}}var p=[],t=0;do p.push(void 0),t++,d(k.value).Qe(q(p.length-1),m),k=h.next();while(!k.done)})};return b}); 11wa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});function xa(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.o=0;this.C=this.i=null}function ya(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}xa.prototype.B=function(a){this.h=a};function za(a,b){a.i={$h:b,pi:!0};a.g=a.o||a.j} 12xa.prototype.return=function(a){this.i={return:a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}xa.prototype.D=function(a){this.g=a};function v(a){a.g=0}function Ba(a,b,c){a.o=b;void 0!=c&&(a.j=c)}function Ca(a){a.o=0;a.j=2}function Da(a,b,c){a.g=b;a.o=c||0}function Ea(a,b){a.o=b||0;b=a.i.$h;a.i=null;return b}function Fa(a){a.C=[a.i];a.o=0;a.j=0}function Ga(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.pi?a.g=a.o||a.j:void 0!=c.D&&a.j<c.D?(a.g=c.D,a.i=null):a.g=a.j:a.g=b} 13function Ha(a){this.g=new xa;this.h=a}function Ia(a,b){ya(a.g);var c=a.g.l;if(c)return Ja(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ka(a)}function Ja(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");
13if(!e.done)return a.g.A=!1,e;var f=e.value}catch(g){return a.g.l=null,za(a.g,g),Ka(a)}a.g.l=null;d.call(a.g,f);return Ka(a)} 14function Ka(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,za(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.pi)throw b.$h;return{value:b.return,done:!0}}return{value:void 0,done:!0}} 15function La(a){this.next=function(b){ya(a.g);a.g.l?b=Ja(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ka(a));return b};this.throw=function(b){ya(a.g);a.g.l?b=Ja(a,a.g.l["throw"],b,a.g.B):(za(a.g,b),b=Ka(a));return b};this.return=function(b){return Ia(a,b)};ka();this[Symbol.iterator]=function(){return this}}function Ma(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})} 16function B(a){return Ma(new La(new Ha(a)))}function Na(a,b){return Object.prototype.hasOwnProperty.call(a,b)} 17wa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=r(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Na(k,g)){var l=new c;ca(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),m=new a([[k,2], 18[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m.delete(k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(q){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Na(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Na(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&Na(k,g)&&Na(k[g], 19this.g)};b.prototype.delete=function(k){return d(k)&&Na(k,g)&&Na(k[g],this.g)?delete k[g][this.g]:!1};return b}); 20wa("Map",function(a){function b(){var h={};return h.Ib=h.next=h.head=h}function c(h,k){var l=h.g;return la(function(){if(l){for(;l.head!=h.g;)l=l.Ib;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Na(h.h,l))for(h=0;h<m.length;h++){var q=m[h];if(k!==k&&q.key!==q.key||k===q.key)return{id:l,list:m,index:h,Ha:q}}return{id:l, 21list:m,index:-1,Ha:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=r(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(r([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x|| 22"t"!=m.value[1]||!l.next().done?!1:!0}catch(q){return!1}}())return a;ka();var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.Ha?l.Ha.value=k:(l.Ha={next:this.g,Ib:this.g.Ib,head:this.g,key:h,value:k},l.list.push(l.Ha),this.g.Ib.next=l.Ha,this.g.Ib=l.Ha,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.Ha&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.Ha.Ib.next=h.Ha.next,h.Ha.next.Ib=h.Ha.Ib, 23h.Ha.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.Ib=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).Ha};e.prototype.get=function(h){return(h=d(this,h).Ha)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(), 24m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e}); 25wa("Set",function(a){function b(c){this.g=new Map;if(c){c=r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;
25try{var c=Object.seal({x:4}),d=new a(r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x|| 26f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;ka();b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values; 27b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});function Oa(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{li:e,v:f}}return{li:-1,v:void 0}}wa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Oa(this,b,c).li}}); 28function Pa(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}wa("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Pa(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}}); 29wa("Array.prototype.find",function(a){return a?a:function(b,c){return Oa(this,b,c).v}});wa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Pa(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}}); 30wa("String.prototype.repeat",function(a){return a?a:function(b){var c=Pa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});wa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); 31wa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});wa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Pa(this,b,"includes").indexOf(b,c||0)}}); 32function Ra(a,b){ka();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d}wa("Array.prototype.values",function(a){return a?a:function(){return Ra(this,function(b,c){return c})}});wa("Array.prototype.keys",function(a){return a?a:function(){return Ra(this,function(b){return b})}}); 33var Sa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Na(d,e)&&(a[e]=d[e])}return a};wa("Object.assign",function(a){return a||Sa}); 34wa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;
34)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});wa("Array.prototype.entries",function(a){return a?a:function(){return Ra(this,function(b,c){return[b,c]})}}); 35wa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});wa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Na(b,d)&&c.push(b[d]);return c}});wa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});wa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}}); 36wa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Na(b,d)&&c.push([d,b[d]]);return c}});var Ta=Ta||{},Ua=this||self;function Va(a){return"string"==typeof a}function Wa(a){return"number"==typeof a}function Xa(){} 37function Ya(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; 38else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function Za(a){return"array"==Ya(a)}function $a(a){var b=Ya(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ab(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var cb="closure_uid_"+(1E9*Math.random()>>>0),db=0;function eb(a,b,c){return a.call.apply(a.bind,arguments)} 39function fb(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function gb(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?gb=eb:gb=fb;return gb.apply(null,arguments)} 40function E(a,b){a=a.split(".");var c=Ua;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}function hb(a,b){function c(){}c.prototype=b.prototype;a.xe=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};var ib;/* 41 @license 42 Shaka Player 43 Copyright 2016 Google LLC 44 SPDX-License-Identifier: Apache-2.0 45*/ 46function jb(a,b){this.g=a;this.h=b}jb.prototype.toString=function(){return"v"+this.g+"."+this.h};function kb(){}function nb(){}function ob(){}function pb(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];qb.has(a)||(qb.add(a),ob.apply(kb,ma(c)))}function rb(){}function sb(){}function tb(){}function ub(){}var qb=new Set;window.console&&(ob=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return console.warn.apply(console,ma(b))},nb=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];console.error.apply(console,ma(b))});function vb(a,b){var c=new jb(5,0),d=wb,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function xb(a,b,c,d){ob([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function yb(a,b,c,d){nb([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var wb=null;E("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function Ab(a){if(Bb.has(a))return Bb.get(a);var b=MediaSource.isTypeSupported(a);Bb.set(a,b);return b}var Bb=new Map;function Cb(){}function Db(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Eb(a)==Eb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Fb(a);b=Fb(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Eb(a){return a instanceof ArrayBuffer?a:a.buffer}
46function Gb(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer} 47function Fb(a,b,c){c=void 0===c?Infinity:c;return Hb(a,void 0===b?0:b,c,Uint8Array)}function Ib(a,b,c){c=void 0===c?Infinity:c;return Hb(a,void 0===b?0:b,c,DataView)}function Hb(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Eb(a),b,Math.min(b+Math.max(c,0),e)-b)}E("shaka.util.BufferUtils",Cb);Cb.toDataView=Ib;Cb.toUint8=Fb;Cb.toArrayBuffer=Gb;Cb.equal=Db;function F(a,b,c,d){for(var e=[],f=3;f<arguments.length;++f)e[f-3]=arguments[f];this.severity=a;this.category=b;this.code=c;this.data=e;this.handled=!1}F.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};E("shaka.util.Error",F);F.Severity={RECOVERABLE:1,CRITICAL:2};F.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10}; 48F.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011, 49CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_SRC_EQUALS:2016,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009, 50WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006, 51DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027, 52DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,HLS_AES_128_INVALID_IV_LENGTH:4043,HLS_AES_128_INVALID_KEY_LENGTH:4044,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006, 53NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017, 54LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,
55LOCAL_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,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};var Jb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(Va(a))return Va(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Lb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Va(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Mb=Array.prototype.filter?function(a,b){return Array.prototype.filter.call(a,b,void 0)}:function(a, 56b){for(var c=a.length,d=[],e=0,f=Va(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var h=f[g];b.call(void 0,h,g,a)&&(d[e++]=h)}return d},Pb=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e=Va(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d}; 57function Sb(a){a:{var b=Tb;for(var c=a.length,d=Va(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:Va(a)?a.charAt(b):a[b]}function Ub(a,b){b=Jb(a,b);var c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c}function Vb(a){return Array.prototype.concat.apply([],arguments)}function Wb(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]} 58function Xb(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};function Yb(a,b){for(var c in a)b.call(void 0,a[c],c,a)}var Zb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function $b(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Zb.length;f++)c=Zb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}} 59function ac(a){var b=arguments.length;if(1==b&&Za(arguments[0]))return ac.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};function bc(a,b){this.g=a===cc&&b||"";this.h=dc}bc.prototype.mi=!0;bc.prototype.ji=function(){return this.g};bc.prototype.toString=function(){return"Const{"+this.g+"}"};function ec(a){return a instanceof bc&&a.constructor===bc&&a.h===dc?a.g:"type_error:Const"}var dc={},cc={};function fc(){this.g="";this.h=gc}fc.prototype.mi=!0;fc.prototype.ji=function(){return this.g.toString()};function hc(a){a instanceof fc&&a.constructor===fc&&a.h===gc||Ya(a)}var gc={};function ic(a){var b=new fc;b.g=a;return b};var jc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},kc=/&/g,lc=/</g,nc=/>/g,oc=/"/g,pc=/'/g,qc=/\x00/g,rc=/[\x00&<>"']/;function sc(a,b){return a<b?-1:a>b?1:0};var tc;a:{var uc=Ua.navigator;if(uc){var vc=uc.userAgent;if(vc){tc=vc;break a}}tc=""}function wc(a){return-1!=tc.indexOf(a)};function xc(){return wc("Firefox")||wc("FxiOS")}function yc(){return(wc("Chrome")||wc("CriOS"))&&!wc("Edge")};function zc(a){rc.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(kc,"&")),-1!=a.indexOf("<")&&(a=a.replace(lc,"<")),-1!=a.indexOf(">")&&(a=a.replace(nc,">")),-1!=a.indexOf('"')&&(a=a.replace(oc,""")),-1!=a.indexOf("'")&&(a=a.replace(pc,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(qc,"�")));return a}var Ac={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},Bc={"'":"\\'"};function Dc(a,b){this.h={};this.g=[];this.i=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof Dc)for(c=a.Pc(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])}n=Dc.prototype;n.Od=function(){Ec(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.h[this.g[b]]);return a};n.Pc=function(){Ec(this);return this.g.concat()};n.Td=function(){return 0==this.i}; 60n.clear=function(){this.h={};this.i=this.g.length=0};n.remove=function(a){return Fc(this.h,a)?(delete this.h[a],this.i--,this.g.length>2*this.i&&Ec(this),!0):!1};function Ec(a){if(a.i!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];Fc(a.h,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.i!=a.g.length){var e={};for(c=b=0;b<a.g.length;)d=a.g[b],Fc(e,d)||(a.g[c++]=d,e[d]=1),b++;a.g.length=c}}n.get=function(a,b){return Fc(this.h,a)?this.h[a]:b}; 61n.set=function(a,b){Fc(this.h,a)||(this.i++,this.g.push(a));this.h[a]=b};
61n.forEach=function(a,b){for(var c=this.Pc(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};n.clone=function(){return new Dc(this)};n.qh=function(){Ec(this);for(var a={},b=0;b<this.g.length;b++){var c=this.g[b];a[c]=this.h[c]}return a};function Fc(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Gc=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Hc(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};function Ic(a){this.h=this.A=this.i="";this.B=null;this.l=this.g="";this.o=!1;var b;a instanceof Ic?(this.o=a.o,Jc(this,a.i),this.A=a.A,this.h=a.h,Kc(this,a.B),this.g=a.g,Lc(this,a.j.clone()),this.l=a.l):a&&(b=String(a).match(Gc))?(this.o=!1,Jc(this,b[1]||"",!0),this.A=Mc(b[2]||""),this.h=Mc(b[3]||"",!0),Kc(this,b[4]),this.g=Mc(b[5]||"",!0),Lc(this,b[6]||"",!0),this.l=Mc(b[7]||"")):(this.o=!1,this.j=new Nc(null,this.o))} 62Ic.prototype.toString=function(){var a=[],b=this.i;b&&a.push(Oc(b,Pc,!0),":");var c=this.h;if(c||"file"==b)a.push("//"),(b=this.A)&&a.push(Oc(b,Pc,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.B,null!=c&&a.push(":",String(c));if(c=this.g)this.h&&"/"!=c.charAt(0)&&a.push("/"),a.push(Oc(c,"/"==c.charAt(0)?Rc:Sc,!0));(c=this.j.toString())&&a.push("?",c);(c=this.l)&&a.push("#",Oc(c,Tc));return a.join("")}; 63Ic.prototype.resolve=function(a){var b=this.clone(),c=!!a.i;c?Jc(b,a.i):c=!!a.A;c?b.A=a.A:c=!!a.h;c?b.h=a.h:c=null!=a.B;var d=a.g;if(c)Kc(b,a.B);else if(c=!!a.g){if("/"!=d.charAt(0))if(this.h&&!this.g)d="/"+d;else{var e=b.g.lastIndexOf("/");-1!=e&&(d=b.g.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var f=[],g=0;g<e.length;){var h=e[g++];"."==h?d&&g==e.length&&f.push(""):".."==h?((1<f.length||1==f.length&& 64""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}else d=e}c?b.g=d:c=""!==a.j.toString();c?Lc(b,a.j.clone()):c=!!a.l;c&&(b.l=a.l);return b};Ic.prototype.clone=function(){return new Ic(this)};function Jc(a,b,c){a.i=c?Mc(b,!0):b;a.i&&(a.i=a.i.replace(/:$/,""))}function Kc(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.B=b}else a.B=null}function Lc(a,b,c){b instanceof Nc?(a.j=b,Uc(a.j,a.o)):(c||(b=Oc(b,Vc)),a.j=new Nc(b,a.o))} 65function Mc(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Oc(a,b,c){return Va(a)?(a=encodeURI(a).replace(b,Wc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Wc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Pc=/[#\/\?@]/g,Sc=/[#\?:]/g,Rc=/[#\?]/g,Vc=/[#\?@]/g,Tc=/#/g;function Nc(a,b){this.h=this.g=null;this.i=a||null;this.j=!!b} 66function Xc(a){a.g||(a.g=new Dc,a.h=0,a.i&&Hc(a.i,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))}n=Nc.prototype;n.add=function(a,b){Xc(this);this.i=null;a=Yc(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.h+=1;return this};n.remove=function(a){Xc(this);a=Yc(this,a);return Fc(this.g.h,a)?(this.i=null,this.h-=this.g.get(a).length,this.g.remove(a)):!1};n.clear=function(){this.g=this.i=null;this.h=0};n.Td=function(){Xc(this);return 0==this.h}; 67function Zc(a,b){Xc(a);b=Yc(a,b);return Fc(a.g.h,b)}n.forEach=function(a,b){Xc(this);this.g.forEach(function(c,d){Lb(c,function(e){a.call(b,e,d,this)},this)},this)};n.Pc=function(){Xc(this);for(var a=this.g.Od(),b=this.g.Pc(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};n.Od=function(a){Xc(this);var b=[];if(Va(a))Zc(this,a)&&(b=Vb(b,this.g.get(Yc(this,a))));else{a=this.g.Od();for(var c=0;c<a.length;c++)b=Vb(b,a[c])}return b}; 68n.set=function(a,b){Xc(this);this.i=null;a=Yc(this,a);Zc(this,a)&&(this.h-=this.g.get(a).length);this.g.set(a,[b]);this.h+=1;return this};n.get=function(a,b){if(!a)return b;a=this.Od(a);return 0<a.length?String(a[0]):b}; 69n.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var a=[],b=this.g.Pc(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.Od(d);for(var f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.i=a.join("&")};n.clone=function(){var a=new Nc;a.i=this.i;this.g&&(a.g=this.g.clone(),a.h=this.h);return a};function Yc(a,b){b=String(b);a.j&&(b=b.toLowerCase());return b} 70function Uc(a,b){b&&!a.j&&(Xc(a),a.i=null,a.g.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),this.remove(e),0<c.length&&(this.i=null,this.g.set(Yc(this,e),Wb(c)),this.h+=c.length))},a));a.j=b};function $c(a,b){return a.concat(b)}function ad(){}function bd(a){return null!=a};function cd(a,b){if(0==b.length)return a;var c=b.map(function(d){return new Ic(d)});return a.map(function(d){return new Ic(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce($c,[]).map(function(d){return d.toString()})}function dd(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioR
70obustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}} 71function ed(a,b){if(1==b.length)return b[0];a=fd(a,b);if(null!=a)return a;throw new F(2,4,4025,b);}function fd(a,b){for(var c=r(gd[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=r(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==hd?"":null} 72var hd="text",id={fb:"video",He:"audio",ra:hd,vd:"image",qo:"application"},gd={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvhe/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function jd(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}jd.prototype.resolve=function(){};jd.prototype.reject=function(){};function kd(a){this.h=a;this.g=void 0}kd.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};kd.prototype.reset=function(){this.g=void 0};function ld(a){this.h=a;this.g=null}ld.prototype.Y=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};ld.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function md(a){this.h=a;this.g=null}md.prototype.La=function(){this.stop();this.h();return this};md.prototype.Y=function(a){var b=this;this.stop();this.g=(new ld(function(){b.h()})).Y(a);return this};md.prototype.ua=function(a){var b=this;this.stop();this.g=(new ld(function(){b.g.Y(a);b.h()})).Y(a);return this};md.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};E("shaka.util.Timer",md);md.prototype.stop=md.prototype.stop;md.prototype.tickEvery=md.prototype.ua; 73md.prototype.tickAfter=md.prototype.Y;md.prototype.tickNow=md.prototype.La;function nd(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function od(a){return""!=qd().canPlayType(a)}function rd(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function sd(){return td("Xbox One")}function ud(){return td("Tizen")}function vd(){return td("Web0S")&&td("Chrome/38.0.2125.122 Safari/537.36")}function wd(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!ud()&&!td("PC=EOS")&&!td("VirginMedia")&&!xd()&&!td("AFT")} 74function xd(){return td("PlayStation 4")}function yd(){if(!wd())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 td(a){return(navigator.userAgent||"").includes(a)}function qd(){if(zd)return zd;Ad||(Ad=new md(function(){zd=null}));(zd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(zd=document.createElement("video"));Ad.Y(1);return zd} 75var Ad=null,zd=null;function Bd(){} 76function Cd(a){if(!a)return"";a=Fb(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!xd())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&nb('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128== 77(a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b} 78function Dd(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new F(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Ib(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Ed.value()(d)} 79function Fd(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=Fb(a);if(239==c[0]&&187==c[1]&&191==c[2])return Cd(c);if(254==c[0]&&255==c[1])return Dd(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Dd(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Dd(a,!1);if(0==c[1]&&0==c[3])return Dd(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Cd(a);throw new F(2,2,2003);} 80function Gd(a){if(window.TextEncoder&&!xd()){var b=new TextEncoder;return Gb(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;
80c++)b[c]=a[c].charCodeAt(0);return Gb(b)}function Hd(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}E("shaka.util.StringUtils",Bd);Bd.resetFromCharCode=function(){Ed.reset()};Bd.toUTF16=Hd;Bd.toUTF8=Gd;Bd.fromBytesAutoDetect=Fd;Bd.fromUTF16=Dd; 81Bd.fromUTF8=Cd;var Ed=new kd(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={Ob:65536};0<b.Ob;b={Ob:b.Ob},b.Ob/=2)if(a(b.Ob))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.Ob)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.Ob));return e}}(b);return null});function Id(){}function Md(a){a=Fb(a);a=Ed.value()(a);return btoa(a)}function Nd(a,b){b=void 0==b?!0:b;a=Md(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function Od(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 Pd(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} 82function Qd(a){var b=Fb(a);a="";b=r(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 Rd(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];var d=0,e=r(b);for(c=e.next();!c.done;c=e.next())d+=c.value.byteLength;d=new Uint8Array(d);e=0;b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,d.set(Fb(c),e),e+=c.byteLength;return d}E("shaka.util.Uint8ArrayUtils",Id);Id.concat=Rd;Id.toHex=Qd;Id.fromHex=Pd;Id.fromBase64=Od; 83Id.toBase64=Nd;Id.toStandardBase64=Md;function Sd(){}E("shaka.dependencies",Sd);Sd.has=function(a){return Td.has(a)};Sd.add=function(a,b){if(!Ud[a])throw Error(a+" is not supported");Td.set(a,function(){return b})};var Ud={muxjs:"muxjs"};Sd.Allowed=Ud;var Td=new Map([["muxjs",function(){return window.muxjs}]]);function Vd(a){var b=this;this.A=a;this.o=Td.get("muxjs")();this.h=this.g=null;this.l=[];this.i=[];this.j=!1;this.o&&(this.g=new this.o.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.g.on("data",function(c){b.i=c.captions;b.l.push(Rd(c.initSegment,c.data))}),this.g.on("done",function(){var c={data:Rd.apply(Id,ma(b.l)),captions:b.i};b.h.resolve(c);b.j=!1}))}Vd.prototype.destroy=function(){this.g&&this.g.dispose();this.g=null;return Promise.resolve()}; 84function Wd(a,b){var c=Xd(a),d="audio/aac"==a.toLowerCase().split(";")[0];if(!Td.get("muxjs")()||!c&&!d)return!1;if(d)return Ab('audio/mp4; codecs="mp4a.40.2"');if(b)return Ab(Yd(b,a));b=Yd("audio",a);a=Yd("video",a);return Ab(b)||Ab(a)}function Xd(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}function Zd(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp4a.40.2"':Xd(b)?Yd(a,b):b} 85function Yd(a,b){b=b.replace(/mp2t/i,"mp4");"audio"==a&&(b=b.replace("video","audio"));if(a=/avc1\.(66|77|100)\.(\d+)/.exec(b)){var c="avc1.",d=a[1],e=Number(a[2]);c=("66"==d?c+"4200":"77"==d?c+"4d00":c+"6400")+(e>>4).toString(16);c+=(e&15).toString(16);b=b.replace(a[0],c)}return b}function $d(a,b){a.j=!0;a.h=new jd;a.l=[];a.i=[];b=Fb(b);a.g.push(b);a.g.flush();a.j&&a.h.reject(new F(2,3,3018));return a.h};function ae(){}function be(a,b){b&&(a+='; codecs="'+b+'"');return a}function ce(a,b,c){b=be(a,b);return Wd(b,c)?Zd(c,b):"video/mp2t"!=a&&"audio"==c?b.replace("video","audio"):b} 86function de(a){var b=ee(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:return"ac-3";case "mp4a"===a&&"a6"===b:return"ec-3";case "mp4a"===a&&"b2"===b:return"dtsx"; 87case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function fe(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function ee(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}E("shaka.util.MimeUtils",ae);ae.getFullType=be;
88(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function ge(a,b){this.g=a;this.h=new Set([a]);b=b||[];a=r(b);for(b=a.next();!b.done;b=a.next())this.add(b.value)}ge.prototype.add=function(a){return he(this.g,a)?(this.h.add(a),!0):!1}; 89function he(a,b){var c;if(!(c=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(c=a.audio&&b.audio)){c=a.audio;var d=b.audio;c=!((!(!c.channelsCount||!d.channelsCount||2<c.channelsCount||2<d.channelsCount)||c.channelsCount==d.channelsCount)&&ie(c,d)&&je(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(a=a.video,b=b.video,c=!(ie(a,b)&&je(a.roles,b.roles)));return c?!1:!0}ge.prototype.values=function(){return this.h.values()}; 90function ie(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return ee(d)[0]});b=b.codecs.split(",").map(function(d){return ee(d)[0]});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function je(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function ke(){}function le(a,b){a=me(a);b=me(b);return a.split("-")[0]==b.split("-")[0]}function ne(a,b){a=me(a);b=me(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function oe(a,b){a=me(a);b=me(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}function me(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=pe.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function qe(a,b){var c=re(a),d=re(b);return a!=c&&b!=d&&c==d} 91function se(a,b){a=me(a);b=me(b);return b==a?4:ne(b,a)?3:oe(b,a)?2:ne(a,b)?1:0}function re(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=pe.get(a)||a}function te(a){return a.language?me(a.language):a.audio&&a.audio.language?me(a.audio.language):a.video&&a.video.language?me(a.video.language):"und"} 92function ue(a,b){a=me(a);var c=new Set,d=r(b);for(b=d.next();!b.done;b=d.next())c.add(me(b.value));d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,b==a)return b;d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,ne(b,a))return b;d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,oe(b,a))return b;c=r(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,ne(a,b))return b;return null}E("shaka.util.LanguageUtils",ke);ke.findClosestLocale=ue;ke.getLocaleForVariant=te; 93ke.getLocaleForText=function(a){return me(a.language||"und")};ke.getBase=re;ke.relatedness=se;ke.areSiblings=qe;ke.normalize=me;ke.isSiblingOf=oe;ke.isParentOf=ne;ke.areLanguageCompatible=le;ke.areLocaleCompatible=function(a,b){a=me(a);b=me(b);return a==b}; 94var pe=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze", 95"cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice", 96"is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao", 97"mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san", 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"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function ve(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function we(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Ae(a,b,c){c||(c=ve);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Of:d.Of},e=a.next()){d.Of=e.value;e=b.findIndex(function(f){return function(g){return c(f.Of,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length} 100function Be(a,b,c){c||(c=ve);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function Ce(a,b,c){this.startTime=a;this.direction=De;this.endTime=b;this.payload=c;this.region=new Ee;this.position=null;this.positionAlign=Fe;this.size=0;this.textAlign=Ge;this.writingMode=He;this.lineInterpretation=Ie;this.line=null;this.lineHeight="";this.lineAlign=Je;this.displayAlign=Ke;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Le;this.fontStyle=Me;this.linePadding=this.letterSpacing= 101this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}Ce.prototype.clone=function(){var a=new Ce(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a}; 102function Ne(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!Be(a.nestedCues,b.nestedCues,Ne))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!Be(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}E("shaka.text.Cue",Ce);var Fe="auto"; 103Ce.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Fe};var Ge="center",Oe={LEFT:"left",RIGHT:"right",CENTER:Ge,START:"start",END:"end"};Ce.textAlign=Oe;var Ke="after",Pe={BEFORE:"before",CENTER:"center",AFTER:Ke};Ce.displayAlign=Pe;var De="ltr";Ce.direction={HORIZONTAL_LEFT_TO_RIGHT:De,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var He="horizontal-tb";Ce.writingMode={HORIZONTAL_TOP_TO_BOTTOM:He,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Ie=0; 104Ce.lineInterpretation={LINE_NUMBER:Ie,PERCENTAGE:1};var Je="start",Qe={CENTER:"center",START:Je,END:"end"};Ce.lineAlign=Qe;var Re={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};Ce.defaultTextColor=Re;var Se={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};
104Ce.defaultTextBackgroundColor=Se;var Le=400;Ce.fontWeight={NORMAL:Le,BOLD:700}; 105var Me="normal",Te={NORMAL:Me,ITALIC:"italic",OBLIQUE:"oblique"};Ce.fontStyle=Te;Ce.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function Ee(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Ue;this.scroll=Ve}E("shaka.text.CueRegion",Ee);var Ue=1;Ee.units={PX:0,PERCENTAGE:Ue,LINES:2};var Ve="";Ee.scrollMode={NONE:Ve,UP:"up"};function We(a){this.B=null;this.i=a;this.I=!1;this.j=this.A=0;this.l=Infinity;this.h=this.g=null;this.C="";this.o=new Map}function Xe(a){return Ye[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}We.prototype.destroy=function(){this.i=this.B=null;this.o.clear();return Promise.resolve()}; 106function Ze(a,b,c,d){var e,f,g,h;return B(function(k){if(1==k.g)return u(k,Promise.resolve(),2);if(!a.B||!a.i)return k.return();if(null==c||null==d)return a.B.parseInit(Fb(b)),k.return();e=a.I?c:a.A;f={periodStart:a.A,segmentStart:c,segmentEnd:d,vttOffset:e};g=a.B.parseMedia(Fb(b),f);h=g.filter(function(l){return l.startTime>=a.j&&l.startTime<a.l});a.i.append(h);null==a.g&&(a.g=Math.max(c,a.j));a.h=Math.min(d,a.l);v(k)})} 107We.prototype.remove=function(a,b){var c=this;return B(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.i||!c.i.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));v(d)})};function $e(a,b,c){a.j=b;a.l=c}function af(a,b,c){a.C=b;if(b=a.o.get(b))for(var d=r(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)} 108function bf(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new Ce(c.startTime,c.endTime,c.text)});return b}function cf(a,b,c){b.startTime+=c;b.endTime+=c;b=r(b.nestedCues);for(var d=b.next();!d.done;d=b.next())cf(a,d.value,c)} 109function df(a,b,c,d,e){var f=c+" "+d,g=new Map;b=r(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,[]);cf(a,k,e);k.startTime>=a.j&&k.startTime<a.l&&(g.get(h).get(f).push(k),h==a.C&&a.i.append([k]))}e=r(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.o.has(f)||a.o.set(f,new Map),b=r(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.o.get(f).set(h,k);a.g=null==a.g?Math.max(c, 110a.j):Math.min(a.g,Math.max(c,a.j));a.h=Math.max(a.h,Math.min(d,a.l))}E("shaka.text.TextEngine",We);We.prototype.destroy=We.prototype.destroy;We.findParser=function(a){return Ye[a]};We.unregisterParser=function(a){delete Ye[a]};We.registerParser=function(a,b){Ye[a]=b};var Ye={};function ef(){this.g={}}n=ef.prototype;n.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};n.get=function(a){return(a=this.g[a])?a.slice():null};n.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])};n.clear=function(){this.g={}};n.forEach=function(a){for(var b in this.g)a(b,this.g[b])};n.size=function(){return Object.keys(this.g).length};n.keys=function(){return Object.keys(this.g)};function ff(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=gf(f,b,c);f=hf(f,d);b=jf(f);b=kf(b);var g=lf(b,e);a.variants=a.variants.filter(function(h){return mf(h)==g?!0:!1})}function jf(a){var b=new ef;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=mf(c);b.push(d,c)}return b} 111function kf(a){var b=0,c=new Map,d=a.size();a.forEach(function(e,f){f=r(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var h=g.video;
111if(h&&h.width&&h.height){h=h.width*h.height*(h.frameRate||1);c.has(h)||c.set(h,new ef);var k=c.get(h);k.push(e,g);k.size()===d&&(b=Math.max(b,h))}}});return b?c.get(b):a} 112function gf(a,b,c){var d={};b=r(b);for(var e=b.next();!e.done;d={Zf:d.Zf},e=b.next())if(d.Zf=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Zf)}}(d)),e.length){a=e;break}d={};c=r(c);for(b=c.next();!b.done;d={Lf:d.Lf},b=c.next())if(d.Lf=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Lf)}}(d)),b.length){a=b;break}return a} 113function lf(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c==nf||c==of){if(a=pf(a,c),1==a.size())return a.keys()[0]}else if(c==qf)break;return rf(a)}function pf(a,b){var c=0,d=new ef;a.forEach(function(e,f){for(var g=0,h=0,k=r(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.clear(),d.push(e,f),c=g):g==c&&d.push(e,f)});return d} 114function rf(a){var b="",c=Infinity;a.forEach(function(d,e){var f=0,g=0;e=r(e);for(var h=e.next();!h.done;h=e.next())f+=h.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function mf(a){var b="";a.video&&(b=de(a.video.codecs));var c="";a.audio&&(c=de(a.audio.codecs));return b+"-"+c}function sf(a,b,c){a.variants=a.variants.filter(function(d){return tf(d,b,c)})} 115function tf(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;if(0!=a.disabledUntilTime){if(a.disabledUntilTime>Date.now()/1E3)return!1;a.disabledUntilTime=0}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} 116function uf(a,b,c){var d=!1;a=r(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=tf(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function vf(a,b){return B(function(c){if(1==c.g)return u(c,wf(b,0<b.offlineSessionIds.length),2);xf(a,b);yf(b);return u(c,Ff(b),0)})} 117function wf(a,b){return B(function(c){if(1==c.g)return u(c,Gf(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=Hf(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=ed("video",g);f=Hf(f);g=ed("audio",g);g=If(g);var h=ce(e.mimeType,g,"audio");if(!Ab(h))return!1;f=[f,g].join()}g=ce(e.mimeType,f,"video");if(!Ab(g))return!1;e.codecs=f}if(f=d.audio){g=If(f.codecs);h=ce(f.mimeType,g,"audio");if(!Ab(h))return!1;f.codecs=g}if(sd()&&e&&(e.width&&1920<e.width|| 118e.height&&1080<e.height)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return sb(Jf(d)),!1;(e=d.decodingInfos.some(function(k){return k.ed}))||sb(Jf(d));return e});v(c)})} 119function Gf(a,b,c){var d,e,f,g,h,k,l,m,q,p,t;return B(function(w){if(d=a.some(function(z){return z.decodingInfos.length}))return w.return();e=navigator.g;f=[];g=function(z,x){var y;return B(function(D){if(1==D.g)return Ba(D,2),u(D,e.Hd(x),4);if(2!=D.g)return y=D.h,z.decodingInfos.push(y),Da(D,0);Ea(D);JSON.stringify(x);v(D)})};h=r(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=Kf(l,b,c),q=r(m),p=q.next();!p.done;p=q.next())t=p.value,f.push(g(l,t));return u(w,Promise.all(f),0)})} 120function Kf(a,b,c){var d=a.audio,e=a.video;c={type:c?"file":"media-source"};if(e){var f=e.codecs;if(e.codecs.includes(",")){var g=e.codecs.split(",");f=ed("video",g);f=Hf(f);g=ed("audio",g);g=ce(e.mimeType,g,"audio");c.audio={contentType:g,Hj:2,Oe:a.bandwidth||1,um:1,Em:!1}}f=Hf(f);f=ce(e.mimeType,f,"video");c.video={contentType:f,width:e.width||64,height:e.height||64,Oe:e.bandwidth||a.bandwidth||1,Xe:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":c.video.uh="srgb";break;case "PQ":c.video.uh="pq"; 121break;case "HLG":c.video.uh="hlg"}}d&&(f=If(d.codecs),f=ce(d.mimeType,f,"audio"),c.audio={contentType:f,Hj:d.channelsCount||2,Oe:d.bandwidth||a.bandwidth||1,um:d.audioSamplingRate||1,Em:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=r(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"]; 122k=r(f.keys());for(var l=k.next();!l.done;l=k.next()){var m=l.value;l=Object.assign({},c);var q=f.get(m);m={keySystem:m,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};q=r(q);for(h=q.next();!h.done;h=q.next()){h=h.value;if(h.initData&&h.initData.length){for(var p=new Set,t=r(h.initData),w=t.next();!w.done;w=t.next())p.add(w.value.initDataType);m.initDataType=h.initData[0].initDataType}h.distinctiveIdentifierRequired&&(m.distinctiveIdentifier="required");h.persistentStateRequired&& 123(m.persistentState="required");h.sessionType&&(m.sessionTypes=[h.sessionType]);d&&(""!=h.audioRobustness?m.audio?m.audio.robustness=m.audio.robustness||h.audioR
123obustness:m.audio={robustness:h.audioRobustness}:m.audio||(m.audio={}));e&&(""!=h.videoRobustness?m.video?m.video.robustness=m.video.robustness||h.videoRobustness:m.video={robustness:h.videoRobustness}:m.video||(m.video={}))}l.Ud=m;a.push(l)}return a}function If(a){return ud()?"ac-3"==a.toLowerCase()?"ec-3":a:a} 124function Hf(a){if(a.includes("avc1")){var b=a.split(".");3==b.length&&(a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4))}else if("vp9"==a)return"vp09.00.41.08";return a}function xf(a,b){b.variants=b.variants.filter(function(c){var d=c.audio;c=c.video;return d&&a&&a.audio&&!Lf(d,a.audio)||c&&a&&a.video&&!Lf(c,a.video)?!1:!0})}function yf(a){a.textStreams=a.textStreams.filter(function(b){return Xe(be(b.mimeType,b.codecs))})} 125function Ff(a){var b,c,d,e,f,g,h,k;return B(function(l){switch(l.g){case 1:b=[],c=r(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;if(Mf.has(f)){l.D(5);break}g=Nf.get(f);if(!g){Mf.set(f,!1);l.D(5);break}return u(l,Of(g),7);case 7:h=l.h,Mf.set(f,h);case 5:(k=Mf.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,v(l)}})} 126function Of(a){return new Promise(function(b){var c=new Image;c.src=a;"decode"in c?c.decode().then(function(){b(!0)}).catch(function(){b(!1)}):c.onload=c.onerror=function(){b(2===c.height)}})}function Lf(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0} 127function Pf(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=[];g&&h.push(g);f&&h.push(f);var k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set;if(b)for(var q=r(b.roles),p=q.next();!p.done;p=q.next())m.add(p.value);if(c)for(q=r(c.roles),p=q.next();!p.done;p=q.next())m.add(p.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null, 128kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:k,audioMimeType:d,videoMimeType:e,codecs:h.join(", "),audioCodec:f,videoCodec:g,primary:a.primary,roles:Array.from(m),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null};c&&(a.videoId=c.id,a.originalVideoId=c.originalId, 129a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth=c.bandwidth||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.spatialAudio=b.spatialAudio,a.label=b.label,a.audioR
129oles=b.roles);return a} 130function Qf(a){return{id:a.id,active:!1,type:hd,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null, 131originalAudioId:null,originalTextId:a.originalId,originalImageId:null}} 132function Rf(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[], 133audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId}}function Sf(a){a.__shaka_id||(a.__shaka_id=Tf++);return a.__shaka_id} 134function Uf(a){var b=Vf(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="application/cea-608");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function Wf(a){var b=Vf(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b} 135function Vf(a){return{id:Sf(a),active:!1,type:"",bandwidth:0,language:me(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioR
135oles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null, 136originalTextId:null,originalImageId:null}}function Xf(a){return a.allowedByApplication&&a.allowedByKeySystem}function Yf(a){return a.filter(function(b){return Xf(b)})} 137function hf(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=r(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;a=c.filter(function(g){return g<=b});return a.length?d.get(Math.max.apply(Math,ma(a))):d.get(Math.min.apply(Math,ma(c)))} 138function Zf(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=ue(me(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return me(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=$f(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce($c,[]);return a.length? 139$f(e,a[0]):e}function $f(a,b){return a.filter(function(c){return c.roles.includes(b)})}function Jf(a){var b=[];a.audio&&b.push(ag(a.audio));a.video&&b.push(ag(a.video));return b.join(", ")} 140function ag(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"} 141var Tf=0,nf="smooth",of="powerEfficient",qf="bandwidth",Mf=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Nf=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function bg(a){this.g=a;this.h=new cg(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}bg.prototype.create=function(a){var b=this,c=a.filter(function(d){return he(b.g,d)});return c.length?new ge(c[0],c):this.h.create(a)};function cg(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d} 142cg.prototype.create=function(a){var b=[];b=dg(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=eg(b,this.j);a.length&&(b=a);this.g&&(a=hf(b,this.g),a.length&&(b=a));this.h&&(a=fg(b,this.h),a.length&&(b=a));a=new ge(b[0]);b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,he(a.g,c)&&a.add(c);return a};function dg(a,b){b=me(b);var c=ue(b,a.map(function(d){return te(d)}));return c?a.filter(function(d){return c==te(d)}):[]} 143function eg(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function fg(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function gg(){this.g=hg;this.h=(new Map).set(hg,2).set(ig,1)}function jg(a,b,c){a.h.set(hg,c).set(ig,b)}var ig=0,hg=1;function kg(a,b){var c=lg();this.A=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.o=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.l=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1} 144function mg(a){var b,c;return B(function(d){if(1==d.g){if(a.g>=a.A)if(a.i)a.g=1,a.h=a.j;else throw new F(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.o);return u(d,new Promise(function(e){(new md(e)).Y(c/1E3)}),2)}
144a.h*=a.l;v(d)})}function lg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function ng(a,b){this.promise=a;this.i=b;this.g=!1}function og(a){return new ng(Promise.reject(a),function(){return Promise.resolve()})}function pg(){var a=Promise.reject(new F(2,7,7001));a.catch(function(){});return new ng(a,function(){return Promise.resolve()})}function qg(a){return new ng(Promise.resolve(a),function(){return Promise.resolve()})}function rg(a){return new ng(a,function(){return a.catch(function(){})})}ng.prototype.abort=function(){this.g=!0;return this.i()}; 145function sg(a){return new ng(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}ng.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this}; 146ng.prototype.wa=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=tg(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new jd,g=new F(2,7,7001);this.promise.then(c(!0),c(!1));return new ng(f,function(){return d()})}; 147function tg(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}E("shaka.util.AbortableOperation",ng);ng.prototype.chain=ng.prototype.wa;ng.prototype["finally"]=ng.prototype.finally;ng.all=sg;ng.prototype.abort=ng.prototype.abort;ng.notAbortable=rg;ng.completed=qg;ng.aborted=pg;ng.failed=og;function ug(a,b){if(b)if(b instanceof Map)for(var c=r(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} 148function vg(a){var b=new ug(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}ug.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};ug.prototype.stopImmediatePropagation=function(){this.g=!0};ug.prototype.stopPropagation=function(){};E("shaka.util.FakeEvent",ug); 149var wg={uo:"abrstatuschanged",vo:"adaptation",xo:"buffering",Co:"downloadfailed",Do:"downloadheadersreceived",Eo:"drmsessionupdate",No:"emsg",rp:"prft",Error:"error",Oo:"expirationupdated",To:"gapjumped",Yo:"loaded",Zo:"loading",fp:"manifestparsed",gp:"mediaqualitychanged",Metadata:"metadata",lp:"onstatechange",mp:"onstateidle",wp:"ratechange",Ip:"segmentappended",Jp:"sessiondata",Kp:"stalldetected",Lp:"streaming",Mp:"textchanged",Np:"texttrackvisibility",Op:"timelineregionadded",Pp:"timelineregionenter", 150Qp:"timelineregionexit",Rp:"trackschanged",Yp:"unloading",bq:"variantchanged"};function xg(){this.ma=new ef;this.Ve=this}xg.prototype.addEventListener=function(a,b){this.ma&&this.ma.push(a,b)};xg.prototype.removeEventListener=function(a,b){this.ma&&this.ma.remove(a,b)};xg.prototype.dispatchEvent=function(a){if(!this.ma)return!0;var b=this.ma.get(a.type)||[],c=this.ma.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Ve;a.currentTarget=this.Ve;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented}; 151xg.prototype.release=function(){this.ma=null};function yg(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new Set;return b(a)}function zg(a){var b={},c;for(c in a)b[c]=a[c];return b};function Ag(){this.g=[]}function Bg(a,b){a.g.push(b.finally(function(){we(a.g,b)}))}Ag.prototype.destroy=function(){for(var a=[],b=r(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function Cg(a,b,c){xg.call(this);this.l=!1;this.B=new Ag;this.g=new Set;this.h=new Set;this.j=a||null;this.i=b||null;this.A=c||null;this.o=!1}ua(Cg,xg);n=Cg.prototype;n.dh=function(a){this.o=a};function Dg(a,b,c,d){c=c||Eg;var e=Fg[a];if(!e||c>=e.priority)Fg[a]={priority:c,ol:b,rl:void 0===d?!1:d}}n.jm=function(a){this.g.add(a)};n.Jm=function(a){this.g.delete(a)};n.Jj=function(){this.g.clear()};n.lm=function(a){this.h.add(a)};n.Km=function(a){this.h.delete(a)};n.Kj=function(){this.h.clear()}; 152function Gg(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}n.destroy=function(){this.l=!0;this.g.clear();this.h.clear();xg.prototype.release.call(this);return this.B.destroy()}; 153n.request=function(a,b){var c=this,d=new Hg;if(this.l){var e=Promise.reject(new F(2,7,7001));e.catch(function(){});return new Ig(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?yg(b.retryParameters):lg();
153b.uris=yg(b.uris);e=Jg(this,a,b);var f=e.wa(function(){return Lg(c,a,b,new kg(b.retryParameters,!1),0,null,d)}),g=f.wa(function(q){return Mg(c,a,q)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){}); 154var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.wa(function(q){var p=Date.now()-l,t=q.response;t.timeMs+=k;t.timeMs+=p;q.Nk||!c.j||t.fromCache||"HEAD"==b.method||a!=Ng||c.j(t.timeMs,t.data.byteLength);return t},function(q){q&&(q.severity=2);throw q;});e=new Ig(m.promise,function(){return m.abort()},d);Bg(this.B,e);return e}; 155function Jg(a,b,c){var d=qg(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Uf:e.Uf},f=a.next())e.Uf=f.value,d=d.wa(function(g){return function(){c.body&&(c.body=Gb(c.body));return g.Uf(b,c)}}(e));return d.wa(void 0,function(g){if(g instanceof F&&7001==g.code)throw g;throw new F(2,1,1006,g);})} 156function Lg(a,b,c,d,e,f,g){a.o&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new Ic(c.uris[e]),k=h.i,l=!1;k||(k=location.protocol,k=k.slice(0,-1),Jc(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=Fg[k])?k.ol:null;if(!m)return og(new F(2,1,1E3,h));var q=k.rl,p=null,t=null,w=!1,z=!1,x;return rg(mg(d)).wa(function(){if(a.l)return pg();x=Date.now();var y=m(c.uris[e],c,b,function(C,G,J){p&&p.stop();t&&t.Y(A/1E3);a.j&&b==Ng&&(a.j(C,G),l=!0,g.g=J)},function(C){a.i&&a.i(C,c,b);z=!0}); 157if(!q)return y;var D=c.retryParameters.connectionTimeout;D&&(p=new md(function(){w=!0;y.abort()}),p.Y(D/1E3));var A=c.retryParameters.stallTimeout;A&&(t=new md(function(){w=!0;y.abort()}));return y}).wa(function(y){p&&p.stop();t&&t.stop();void 0==y.timeMs&&(y.timeMs=Date.now()-x);var D={response:y,Nk:l};!z&&a.i&&a.i(y.headers,c,b);return D},function(y){p&&p.stop();t&&t.stop();if(a.A){var D=null,A=0;y instanceof F&&(D=y,1001==y.code&&(A=y.data[1]));a.A(c,D,A,w)}if(a.l)return pg();w&&(y=new F(1,1,1003, 158c.uris[e],b));if(y instanceof F){if(7001==y.code)throw y;if(1010==y.code)throw f;if(1==y.severity)return D=(new Map).set("error",y),D=new ug("retry",D),a.dispatchEvent(D),e=(e+1)%c.uris.length,Lg(a,b,c,d,e,y,g)}throw y;})} 159function Mg(a,b,c){var d=qg(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={Vf:e.Vf},f=a.next())e.Vf=f.value,d=d.wa(function(g){return function(){var h=c.response;h.data&&(h.data=Gb(h.data));return g.Vf(b,h)}}(e));return d.wa(function(){return c},function(g){var h=2;if(g instanceof F){if(7001==g.code)throw g;h=g.severity}throw new F(h,1,1007,g);})}E("shaka.net.NetworkingEngine",Cg);Cg.prototype.request=Cg.prototype.request;Cg.prototype.destroy=Cg.prototype.destroy;Cg.makeRequest=Gg; 160Cg.defaultRetryParameters=function(){return lg()};Cg.prototype.clearAllResponseFilters=Cg.prototype.Kj;Cg.prototype.unregisterResponseFilter=Cg.prototype.Km;Cg.prototype.registerResponseFilter=Cg.prototype.lm;Cg.prototype.clearAllRequestFilters=Cg.prototype.Jj;Cg.prototype.unregisterRequestFilter=Cg.prototype.Jm;Cg.prototype.registerRequestFilter=Cg.prototype.jm;Cg.unregisterScheme=function(a){delete Fg[a]};Cg.registerScheme=Dg;Cg.prototype.setForceHTTPS=Cg.prototype.dh;function Hg(){this.g=0} 161Cg.NumBytesRemainingClass=Hg;function Ig(a,b,c){ng.call(this,a,b);this.h=c}ua(Ig,ng);Cg.PendingRequest=Ig;var Ng=1;Cg.RequestType={MANIFEST:0,SEGMENT:Ng,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var Eg=3;Cg.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Eg};var Fg={};function Og(a){this.g=!1;this.h=new jd;this.i=a}Og.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function Pg(a,b){if(a.g){if(b instanceof F&&7003==b.code)throw b;throw new F(2,7,7003,b);}};function Qg(){this.g=new ef}n=Qg.prototype;n.release=function(){this.Kb();this.g=null};n.s=function(a,b,c,d){this.g&&(a=new Rg(a,b,c,d),this.g.push(b,a))};n.xa=function(a,b,c,d){function e(g){f.Zb(a,b,e);c(g)}var f=this;this.s(a,b,e,d)};n.Zb=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Zb(),this.g.remove(b,e))}}; 162n.Kb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ma(a.g[c]));a=r(b);for(b=a.next();!b.done;b=a.next())b.value.Zb();this.g.clear()}};E("shaka.util.EventManager",Qg);Qg.prototype.removeAll=Qg.prototype.Kb;Qg.prototype.unlisten=Qg.prototype.Zb;Qg.prototype.listenOnce=Qg.prototype.xa;Qg.prototype.listen=Qg.prototype.s;Qg.prototype.release=Qg.prototype.release; 163function Rg(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.options=Sg(a,d);this.target.addEventListener(b,c,this.options)}Rg.prototype.Zb=function(){this.target.removeEventListener(this.type,this.listener,this.options);this.listener=this.target=null;this.options=!1};function Sg(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return Tg(a)?b:b.capture||!1} 164function Tg(a){var b=Ug;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}Ug=b}return b||!1}var Ug=void 0;function Vg(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function Wg(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function Xg(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function Yg(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};function Zg(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function $g(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function ah(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;
164if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function bh(a,b){this.h=Ib(a);this.i=b==ch;this.g=0}n=bh.prototype;n.Ia=function(){return this.g<this.h.byteLength};n.za=function(){return this.g};n.Ua=function(){return this.h.byteLength};n.mb=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw dh();}};n.me=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw dh();}};n.N=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw dh();}}; 165n.Jb=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw dh();}};n.Ra=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 dh();}if(2097151<b)throw new F(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};n.Ya=function(a){if(this.g+a>this.h.byteLength)throw dh();var b=Fb(this.h,this.g,a);this.g+=a;return b}; 166n.skip=function(a){if(this.g+a>this.h.byteLength)throw dh();this.g+=a};n.sm=function(a){if(this.g<a)throw dh();this.g-=a};n.seek=function(a){if(0>a||a>this.h.byteLength)throw dh();this.g=a};n.le=function(){for(var a=this.g;this.Ia()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Fb(this.h,a,this.g-a);this.g+=1;return Cd(a)};function dh(){return new F(2,3,3E3)}E("shaka.util.DataViewReader",bh);bh.prototype.readTerminatedString=bh.prototype.le;bh.prototype.seek=bh.prototype.seek;bh.prototype.rewind=bh.prototype.sm; 167bh.prototype.skip=bh.prototype.skip;bh.prototype.readBytes=bh.prototype.Ya;bh.prototype.readUint64=bh.prototype.Ra;bh.prototype.readInt32=bh.prototype.Jb;bh.prototype.readUint32=bh.prototype.N;bh.prototype.readUint16=bh.prototype.me;bh.prototype.readUint8=bh.prototype.mb;bh.prototype.getLength=bh.prototype.Ua;bh.prototype.getPosition=bh.prototype.za;bh.prototype.hasMoreData=bh.prototype.Ia;var ch=1;bh.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:ch};function eh(){this.i=[];this.h=[];this.g=!1}n=eh.prototype;n.box=function(a,b){a=fh(a);this.i[a]=gh;this.h[a]=b;return this};n.ea=function(a,b){a=fh(a);this.i[a]=hh;this.h[a]=b;return this};n.stop=function(){this.g=!0};n.parse=function(a,b,c){a=new bh(a,0);for(this.g=!1;a.Ia()&&!this.g;)this.Zd(0,a,b,c)}; 168n.Zd=function(a,b,c,d){var e=b.za();if(d&&e+8>b.Ua())this.g=!0;else{var f=b.N(),g=b.N(),h=ih(g),k=!1;switch(f){case 0:f=b.Ua()-e;break;case 1:if(d&&b.za()+8>b.Ua()){this.g=!0;return}f=b.Ra();k=!0}var l=this.h[g];if(l){var m=null,q=null;if(this.i[g]==hh){if(d&&b.za()+4>b.Ua()){this.g=!0;return}q=b.N();m=q>>>24;q&=16777215}g=e+f;c&&g>b.Ua()&&(g=b.Ua());d&&g>b.Ua()?this.g=!0:(d=g-b.za(),b=0<d?b.Ya(d):new Uint8Array(0),b=new bh(b,0),l({name:h,parser:this,partialOkay:c||!1,version:m,flags:q,reader:b,size:f, 169start:e+a,has64BitSize:k}))}else a=Math.min(e+f-b.za(),b.Ua()-b.za()),b.skip(a)}};function jh(a){for(var b=kh(a);a.reader.Ia()&&!a.parser.g;)a.parser.Zd(a.start+b,a.reader,a.partialOkay)}function lh(a){for(var b=kh(a),c=a.reader.N(),d=0;d<c&&(a.parser.Zd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function mh(a){var b=kh(a);for(a.reader.skip(78);a.reader.Ia()&&!a.parser.g;)a.parser.Zd(a.start+b,a.reader,a.partialOkay)} 170function nh(a){return function(b){var c=b.reader.Ua()-b.reader.za();a(b.reader.Ya(c))}}function fh(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function ih(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function kh(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}E("shaka.util.Mp4Parser",eh);eh.headerSize=kh;eh.typeToString=ih;eh.allData=nh;eh.visualSampleEntry=mh;eh.sampleDescription=lh;eh.children=jh; 171eh.prototype.parseNext=eh.prototype.Zd;eh.prototype.parse=eh.prototype.parse;eh.prototype.stop=eh.prototype.stop;eh.prototype.fullBox=eh.prototype.ea;eh.prototype.box=eh.prototype.box;var gh=0,hh=1;function oh(a){var b=this;this.g=[];this.h=[];this.data=[];(new eh).box("moov",jh).box("moof",jh).ea("pssh",function(c){if(!(1<c.version)){var d=Fb(c.reader.h,-12,c.size);b.data.push(d);b.g.push(Qd(c.reader.Ya(16)));if(0<c.version){d=c.reader.N();for(var e=0;e<d;e++){var f=Qd(c.reader.Ya(16));b.h.push(f)}}}}).parse(a)} 172function ph(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Ib(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=r(c),c=b.next();!c.done;c=b.next())c=Pd(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function qh(a,b){a=th(a,b);return 1!=a.length?null:a[0]}function uh(a,b,c){a=vh(a,b,c);return 1!=a.length?null:a[0]}function th(a,b){var c=[];a=r(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function wh(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})} 173function vh(a,b,c){var d=[];a=r(a.childNodes);for(var e=a.next();!e.done;e=a.next())e=e.value,e instanceof Element&&e.localName==c&&e.namespaceURI==b&&d.push(e);return d}function xh(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function yh(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a.hasAttributeNS(d,c))return a.getAttributeNS(d,c);return null}function zh(a){return Array.from(a.childNodes).every(Ah)?a.textContent.trim():null} 174function Ah(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function Bh(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function Ch(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3} 175function Dh(a){if(!a)return null;a=/^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$/.exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}function Eh(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} 176function Fh(a){a=Number(a);return 0===a%1?a:null}function Gh(a){a=Number(a);return 0===a%1&&0<a?a:null}function Hh(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Ih(a){a=Number(a);return isNaN(a)?null:a}function Jh(a){var b;a=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(a)?null:a}
177function Kh(a,b){var c=new DOMParser,d=Lh.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;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function Mh(a,b){try{var c=Cd(a);return Kh(c,b)}catch(d){return null}} 178var Lh=new kd(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 Nh(a,b){var c=this;b=void 0===b?1:b;this.F=a;this.I=new Set;this.i=this.o=null;this.va=this.Oa=!1;this.L=0;this.g=null;this.A=new Qg;this.h=new Map;this.B=[];this.j=new jd;this.m=null;this.l=function(d){c.j.reject(d);a.onError(d)};this.Na=new Map;this.ba=new Map;this.W=new md(function(){return Oh(c)});this.M=!1;this.K=[];this.S=!1;this.ma=(new md(function(){Ph(c)})).ua(b);this.j.catch(function(){});this.P=new Og(function(){return Qh(c)});this.X=!1;this.C=null}n=Nh.prototype;n.destroy=function(){return this.P.destroy()}; 179function Qh(a){return B(function(b){switch(b.g){case 1:return a.A.release(),a.A=null,a.j.reject(),a.ma.stop(),a.ma=null,a.W.stop(),a.W=null,u(b,Rh(a),2);case 2:if(!a.i){b.D(3);break}Ba(b,4);return u(b,a.i.setMediaKeys(null),6);case 6:Da(b,5);break;case 4:Ea(b);case 5:a.i=null;case 3:a.g=null,a.I.clear(),a.o=null,a.B=[],a.m=null,a.l=function(){},a.F=null,a.X=!1,a.C=null,v(b)}})}n.configure=function(a){this.m=a};function Sh(a,b,c){a.va=!0;a.B=[];a.M=c;return Th(a,b)} 180function Uh(a,b,c){a.B=c;a.M=0<c.length;return Th(a,b)}function Vh(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,audioR
180obustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return Wh(a,g,[])} 181function Th(a,b){var c,d,e,f,g,h,k,l,m,q,p,t,w,z;return B(function(x){if(1==x.g){if(c=Xh(a))for(d=r(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(y){return y.video&&y.video.drmInfos.length||y.audio&&y.audio.drmInfos.length?!0:!1});g||(h=Zg(a.m.servers),Yh(b,h));k=r(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=Zh(l),q=r(m),p=q.next();!p.done;p=q.next())t=p.value,$h(t,Zg(a.m.servers),Zg(a.m.advanced||{}),a.m.keySystemsMapping); 182return u(x,Gf(b,a.M,a.X),2)}w=g||Object.keys(a.m.servers).length;if(!w)return a.Oa=!0,x.return(Promise.resolve());z=Wh(a,void 0,b);return x.return(g?z:z.catch(function(){}))})}function ai(a){var b;return B(function(c){switch(c.g){case 1:if(a.i.mediaKeys)return c.return();if(!a.C){c.D(2);break}return u(c,a.C,3);case 3:return Pg(a.P),c.return();case 2:return Ba(c,4),a.C=a.i.setMediaKeys(a.o),u(c,a.C,6);case 6:Da(c,5);break;case 4:b=Ea(c),a.l(new F(2,6,6003,b.message));case 5:Pg(a.P),v(c)}})} 183function bi(a,b){return B(function(c){if(1==c.g)return u(c,ai(a),2);ci(a,b.initDataType,Fb(b.initData));v(c)})} 184n.Ed=function(a){var b=this,c;return B(function(d){if(1==d.g){if(!b.o)return b.A.xa(a,"encrypted",function(){b.l(new F(2,6,6010))}),d.return();b.i=a;b.A.xa(b.i,"play",function(){for(var e=r(b.K),f=e.next();!f.done;f=e.next())di(b,f.value);b.S=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.i&&b.A.s(b.i,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Rh(b)});return(c=b.g?b.g.initData.find(function(e){return 0<e.initData.length}):null)||"com.apple.fps"!==b.g.keySystem||b.B.length? 185u(d,ai(b),2):d.D(2)}ei(b);c||b.B.length||b.m.parseInbandPsshEnabled||b.A.s(b.i,"encrypted",function(e){return bi(b,e)});v(d)})}; 186function fi(a){var b,c,d,e,f;return B(function(g){switch(g.g){case 1:if(!a.o||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=Gg([a.g.serverCertificateUri],a.m.retryParameters);Ba(g,3);c=a.F.nc.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Fb(d.data);Da(g,4);break;case 3:throw e=Ea(g),new F(2,6,6017,e);case 4:if(a.P.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return(); 187Ba(g,6);return u(g,a.o.setServerCertificate(a.g.serverCertificate),8);case 8:Da(g,0);break;case 6:throw f=Ea(g),new F(2,6,6004,f.message);}})}function gi(a,b){var c,d,e;return B(function(f){if(1==f.g)return u(f,hi(a,b),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.h.get(c))e.yb=new jd,d.push(e.yb);d.push(c.remove());return u(f,Promise.all(d),3)}a.h.delete(c);v(f)})} 188function ei(a){for(var b=(a.g?a.g.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,ci(a,d.initDataType,d.initData);c=r(a.B);for(d=c.next();!d.done;d=c.next())hi(a,d.value);b.length||a.B.length||a.j.resolve();return a.j}function ci(a,b,c){if(c.length){var d=a.h.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(Db(c,e.value.initData)&&!td("Tizen 2"))return;0<a.h.size&&ii(a)&&(a.j.resolve(),a.j=new jd,a.j.catch(function(){}));ji(a,b,c,a.g.sessionType)}} 189function ki(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function li(a){a=a.h.keys();a=Vg(a,function(b){return b.sessionId});return Array.from(a)}n.Kd=function(){var a=Infinity,b=this.h.keys();b=r(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};n.$e=function(){return $g(this.ba)}; 190function Wh(a,b,c){var d,e,f,g,h,k,l,m,q,p,t,w,z;return B(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=mi(a,c,d);x.D(2);break}return u(x,ni(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new F(2,6,6001);Pg(a.P);Ba(x,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=r(h);for(m=l.next();!m.done;m=l.next())q=m.value,a.I.add(q.contentType.toLowerCase());p=r(k);for(m=p.next();!m.done;m=p.next())t=m.value,a.I.add(t.contentType.toLowerCase());if(c.length){var y= 191f.keySystem;var D=d.get(f.keySystem);var A=[],C=[],G=[],J=[],M=new Set;oi(D,A,G,C,J,M);var N=a.M?"persistent-license":"temporary";y={keySystem:y,licenseServerUri:A[0],distinctiveIdentifierRequired:D[0].distinctiveIdentifierRequired,persistentStateRequired:D[0].persistentStateRequired,sessionType:D[0].sessionType||N,audioRobustness:D[0].audioRobustness||"",videoRobustness:D[0].videoRobustness||"",serverCertificate:G[0],serverCertificateUri:C[0],initData:J,keyIds:M};D=r(D);for(A=D.next();!A.done;A= 192D.next())A=A.value,A.distinctiveIdentifierRequired&&(y.distinctiveIdentifierRequired=A.distinctiveIdentifierRequired),A.persistentStateRequired&&(y.persistentStateRequired=A.persistentStateRequired);D=y}else D=f.keySystem,y=b.get(f.keySystem),A=[],C=[],G=[],J=[],M=new Set,oi(y.drmInfos,A,G,C,J,M),D={keySystem:D,licenseServerUri:A[0],distinctiveIdentifierRequired:"required"==y.distinctiveIdentifier,persistentStateRequired:"required"==y.persistentState,sessionType:y.sessionTypes[0]||"temporary",audioRobustness:(y.audioCapabilities? 193y.audioCapabilities[0].robustness:"")||"",videoRobustness:(y.videoCapabilities?y.videoCapabilities[0].robustness:"")||"",serverCertificate:G[0],serverCertificateUri:C[0],initData:J,keyIds:M};a.g=D;if(!a.g.licenseServerUri)throw new F(2,6,6012,a.g.keySystem);return u(x,f.createMediaKeys(),6);case 6:return w=x.h,Pg(a.P),a.o=w,a.Oa=!0,u(x,fi(a),7);case 7:Pg(a.P);Da(x,0);break;case 4:z=Ea(x);Pg(a.P,z);a.g=null;a.I.clear();if(z instanceof F)throw z;throw new F(2,6,6002,z.message);}})} 194function mi(a,b,c){for(var d=r(b),e=d.next();!e.done;e=d.next()){var f=r(Zh(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new F(2,6,6E3);d={};a=r(a.m.preferredKeySystems);for(e=a.next();!e.done;d={Sf:d.Sf},e=a.next())for(d.Sf=e.value,f=r(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.ed&&null!=m.Va&&m.Va.keySystem==l.Sf}}(d)))return e.Va;
195a=r([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=r(b),e=f.next();!e.done;e=f.next()){var g=r(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.ed&&h.Va){e=c.get(h.Va.keySystem);var k=r(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.Va}}}return null} 196function ni(a,b){var c,d,e,f,g,h,k,l,m,q,p,t,w,z,x;return B(function(y){switch(y.g){case 1:if(1==b.size&&b.has(""))throw new F(2,6,6E3);d=r(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=r(a.m.preferredKeySystems);h=g.next();case 2:if(h.done){y.D(4);break}k=h.value;if(!b.has(k)){y.D(3);break}l=b.get(k);Ba(y,6);return u(y,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c= 197y.h,y.return(c);case 6:Ea(y);case 7:Pg(a.P);case 3:h=g.next();y.D(2);break;case 4:m=r([!0,!1]),q=m.next();case 9:if(q.done){y.D(11);break}p=q.value;t=r(b.keys());h=t.next();case 12:if(h.done){q=m.next();y.D(9);break}w=h.value;z=b.get(w);x=z.drmInfos.some(function(D){return!!D.licenseServerUri});if(x!=p){y.D(13);break}Ba(y,15);return u(y,navigator.requestMediaKeySystemAccess(w,[z]),17);case 17:return c=y.h,y.return(c);case 15:Ea(y);case 16:Pg(a.P);case 13:h=t.next();y.D(12);break;case 11:return y.return(c)}})} 198function Xh(a){a=Zg(a.m.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=Nd(Pd(f),!1));f=e;22!=f.length&&(f=Nd(Pd(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:Fb(Gd(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"", 199videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}} 200function hi(a,b){var c,d,e,f,g;return B(function(h){switch(h.g){case 1:try{c=a.o.createSession("persistent-license")}catch(k){return d=new F(2,6,6005,k.message),a.l(d),h.return(Promise.reject(d))}a.A.s(c,"message",function(k){a.i&&a.m.delayLicenseRequestUntilPlayed&&a.i.paused&&!a.S?a.K.push(k):di(a,k)});a.A.s(c,"keystatuseschange",function(k){return pi(a,k)});e={initData:null,initDataType:null,loaded:!1,Dg:Infinity,yb:null,type:"persistent-license"};a.h.set(c,e);Ba(h,2);return u(h,c.load(b),4);case 4:f= 201h.h;Pg(a.P);if(!f)return a.h.delete(c),a.l(new F(2,6,6013)),h.return(Promise.resolve());e.loaded=!0;ii(a)&&a.j.resolve();return h.return(c);case 2:g=Ea(h),Pg(a.P,g),a.h.delete(c),a.l(new F(2,6,6005,g.message));case 3:return h.return(Promise.resolve())}})} 202function ji(a,b,c,d){try{var e=a.o.createSession(d)}catch(f){a.l(new F(2,6,6005,f.message));return}a.A.s(e,"message",function(f){a.i&&a.m.delayLicenseRequestUntilPlayed&&a.i.paused&&!a.S?a.K.push(f):di(a,f)});a.A.s(e,"keystatuseschange",function(f){return pi(a,f)});a.h.set(e,{initData:c,initDataType:b,loaded:!1,Dg:Infinity,yb:null,type:d});try{c=a.m.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof F||(b=new F(2,6,6016,f));a.l(b);return}a.m.logLicenseExchange&&Nd(c);e.generateRequest(b,c).catch(function(f){if(!a.P.g){a.h.delete(e); 203var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.l(new F(2,6,6006,f.message,f,h))}})} 204function di(a,b){var c,d,e,f,g,h,k,l,m,q,p,t,w,z;B(function(x){switch(x.g){case 1:return c=b.target,a.m.logLicenseExchange&&Nd(b.message),d=a.h.get(c),e=a.g.licenseServerUri,f=a.m.advanced[a.g.keySystem],"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer),g=Gg([e],a.m.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), 205ki(a.g.keySystem)&&qi(g),h=Date.now(),Ba(x,2),l=a.F.nc.request(2,g),u(x,l.promise,4);case 4:k=x.h;Da(x,3);break;case 2:return m=Ea(x),q=new F(2,6,6007,m),a.l(q),d&&d.yb&&d.yb.reject(q),x.return();case 3:if(a.P.g)return x.return();a.L+=(Date.now()-h)/1E3;a.m.logLicenseExchange&&Nd(k.data);Ba(x,5);return u(x,c.update(k.data),7);case 7:Da(x,6);break;case 5:return p=Ea(x),t=new F(2,6,6008,p.message),a.l(t),d&&d.yb&&d.yb.reject(t),x.return();case 6:if(a.P.g)return x.return();w=new ug("drmsessionupdate"); 206a.F.onEvent(w);d&&(d.yb&&d.yb.resolve(),z=new md(function(){d.loaded=!0;ii(a)&&a.j.resolve()}
206),z.Y(ri));v(x)}})} 207function qi(a){var b=Dd(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=Kh(b,"PlayReadyKeyMessage");for(var c=r(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=Od(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"} 208function pi(a,b){b=b.target;var c=a.h.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(ki(a.g.keySystem)&&16==g.byteLength&&(rd()||xd())){h=Ib(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=Qd(g).slice(0,32);a.Na.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.yb&&(a.h.delete(b),b.close().catch(function(){})); 209ii(a)&&(a.j.resolve(),a.W.Y(si))}function Oh(a){var b=a.Na,c=a.ba;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.l(new F(2,6,6014));a.F.rf($g(c))} 210function ti(){var a,b,c,d,e,f,g,h;return B(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,q, 211p;return B(function(t){switch(t.g){case 1:Ba(t,2);if("org.w3.clearkey"===l&&yd())throw Error("Unsupported keySystem");return u(t,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=t.h,p=(q=m.getConfiguration().sessionTypes)?q.includes("persistent-license"):!1,td("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),u(t,m.createMediaKeys(),5);case 5:Da(t,0);break;case 2:Ea(t),f.set(l,null),v(t)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k.return($g(f))})} 212function ui(a){var b;return B(function(c){if(1==c.g)return b=new Promise(function(d,e){(new md(e)).Y(vi)}),Ba(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return Da(c,0);Ea(c);v(c)})} 213function Rh(a){var b;return B(function(c){b=Array.from(a.h.entries());a.h.clear();return u(c,Promise.all(b.map(function(d){d=r(d);var e=d.next().value,f=d.next().value;return B(function(g){if(1==g.g)return Ba(g,2),a.va||a.B.includes(e.sessionId)||"persistent-license"!==f.type?u(g,ui(e),5):u(g,e.remove(),5);if(2!=g.g)return Da(g,0);Ea(g);v(g)})})),0)})} 214function wi(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e={},f=r(b),g=f.next();!g.done;e={sb:e.sb},g=f.next())if(g=g.value,d.keySystem==g.keySystem){e.sb=[];e.sb=e.sb.concat(d.initData||[]);e.sb=e.sb.concat(g.initData||[]);e.sb=e.sb.filter(function(h){return function(k,l){return void 0===k.keyId||l===h.sb.findIndex(function(m){return m.keyId===k.keyId})}}(e));f=d.keyIds&&g.keyIds?new Set(ma(d.keyIds).concat(ma(g.keyIds))): 215d.keyIds||g.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||g.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||g.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||g.persistentStateRequired,videoRobustness:d.videoRobustness||g.videoRobustness,audioRobustness:d.audioRobustness||g.audioRobustness,serverCertificate:d.serverCertificate||g.serverCertificate,serverCertificateUri:d.serverCertificateUri||g.serverCertificateUri, 216initData:e.sb,keyIds:f});break}}return c}function Zh(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Ph(a){a.h.forEach(function(b,c){var d=b.Dg,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.F.onExpirationUpdated(c.sessionId,e),b.Dg=e)})}function ii(a){a=a.h.values();return Wg(a,function(b){return b.loaded})} 217function Yh(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioR
217obustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)} 218function oi(a,b,c,d,e,f){var g={};a=r(a);for(var h=a.next();!h.done;g={Ta:g.Ta},h=a.next()){g.Ta=h.value;b.includes(g.Ta.licenseServerUri)||b.push(g.Ta.licenseServerUri);d.includes(g.Ta.serverCertificateUri)||d.push(g.Ta.serverCertificateUri);g.Ta.serverCertificate&&(c.some(function(m){return function(q){return Db(q,m.Ta.serverCertificate)}}(g))||c.push(g.Ta.serverCertificate));if(g.Ta.initData){h={};for(var k=r(g.Ta.initData),l=k.next();!l.done;h={De:h.De},l=k.next())h.De=l.value,e.some(function(m){return function(q){var p= 219m.De;return q.keyId&&q.keyId==p.keyId?!0:q.initDataType==p.initDataType&&Db(q.initData,p.initData)}}(h))||e.push(h.De)}if(g.Ta.keyIds)for(h=r(g.Ta.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}} 220function $h(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate= 221c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var vi=1,ri=5,si=.5,xi=new kd(function(){return Gb(new Uint8Array([0]))});function yi(){}function zi(a,b,c,d){var e,f,g,h;return B(function(k){if(1==k.g){if(d&&(e=Ai[d.toLowerCase()]))return k.return(e);if(f=Bi(a))if(g=Ci[f])return k.return(g);return d?k.D(2):u(k,Di(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=Ai[d]))return k.return(h);throw new F(2,4,4E3,a);})}function Di(a,b,c){var d,e,f;return B(function(g){if(1==g.g)return d=Gg([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g.return(f?f.toLowerCase().split(";").shift():"")})} 222function Bi(a){a=(new Ic(a)).g.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}E("shaka.media.ManifestParser",yi);yi.unregisterParserByMime=function(a){delete Ai[a]};yi.registerParserByMime=function(a,b){Ai[a]=b};yi.registerParserByExtension=function(a,b){Ci[a]=b};var Ai={},Ci={};function Ei(a){function b(){d=!0}function c(l){f.push(l);jh(l)}a=Fb(a);var d=!1,e,f=[],g=[];(new eh).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).ea("stsd",function(l){e=l;f.push(l);lh(l)}).ea("encv",b).ea("enca",b).ea("hev1",function(l){g.push({box:l,pc:1701733238})}).ea("hvc1",function(l){g.push({box:l,pc:1701733238})}).ea("avc1",function(l){g.push({box:l,pc:1701733238})}).ea("avc3",function(l){g.push({box:l,pc:1701733238})}).ea("ac-3",function(l){g.push({box:l,pc:1701733217})}).ea("ec-3", 223function(l){g.push({box:l,pc:1701733217})}).ea("mp4a",function(l){g.push({box:l,pc:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw ub(Qd(a)),new F(2,3,3019);g.reverse();for(var h=r(g),k=h.next();!k.done;k=h.next())k=k.value,a=Fi(a,e,k.box,f,k.pc);return a} 224function Fi(a,b,c,d,e){var f=Gi.value(),g=a.subarray(c.start,c.start+c.size),h=Ib(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Ib(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Hi(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=sd()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=r(d);for(d=a.next();!d.done;d=a.next())d=d.value,Hi(e,d.start,d.size+k.byteLength);k=Ib(e,b.start);b=kh(b);a=k.getUint32(b); 225k.setUint32(b,a+1);return e}function Hi(a,b,c){a=Ib(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Gi=new kd(function(){return new Uint8Array([0,0,0,80,115,105,110,
225102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function Ii(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(C){return null!=C&&""!=C.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(C){return null!=C&&""!=C.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",q=Ji(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],t=-1,w=-1,z=0;z<p.length;z++)if(null!=p[z]&&""!==p[z].g.trim()){t=z;break}for(z=p.length-1;0<=z;z--)if(null!=p[z]&&""!==p[z].g.trim()){w=z;break}if(-1=== 226t||-1===w)p=Ki(d,e),a.nestedCues.push(p);else{for(;t<=w;t++)if(z=p[t]){var x=z.l,y=z.i,D=z.j,A=z.h;if(x!=h||y!=k||D!=l||A!=m)q.payload&&a.nestedCues.push(q),q=Ji(d,e,x,y,D,A),h=x,k=y,l=D,m=A;q.payload+=z.g}else q.payload+=" ";q.payload&&a.nestedCues.push(q);f!==g&&(q=Ki(d,e),a.nestedCues.push(q));q=Ji(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null} 227function Ji(a,b,c,d,e,f){a=new Ce(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Ki(a,b){a=new Ce(a,b,"");a.lineBreak=!0;return a}function Li(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Mi(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.B=b;this.j=this.o=!1;this.l="white";this.A="black";this.reset()}function Ni(a,b,c){return Ii(new Ce(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}Mi.prototype.reset=function(){Oi(this,0,15);this.g=1}; 228function Pi(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case Qi:d=Ri.has(c)?Ri.get(c):String.fromCharCode(c);break;case Si:d=Ti.get(c);break;case Ui:a.i[a.g].pop();d=Vi.get(c);break;case Wi:a.i[a.g].pop(),d=Xi.get(c)}d&&a.i[a.g].push(new Li(d,a.o,a.j,a.A,a.l))}}function Yi(a,b,c,d){if(!(0>c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function Oi(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]} 229var Qi=0,Si=1,Ui=2,Wi=3,Ri=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[92,"\u00e9"],[94,"\u00ed"],[95,"\u00f3"],[96,"\u00fa"],[123,"\u00e7"],[124,"\u00f7"],[125,"\u00d1"],[126,"\u00f1"],[127,"\u2588"]]),Ti=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57,"\u2800"],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),Vi=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"], 230[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"]]),Xi=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"], 231[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"]]);function Zi(a,b){this.h=$i;this.A=new Mi(a,b);this.i=new Mi(a,b);this.l=new Mi(a,b);this.g=this.i;this.j=0;this.o=null}Zi.prototype.reset=function(){this.h=aj;this.g=this.i;this.o=null;this.i.reset();this.l.reset();this.A.reset()};function bj(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==cj&&a.h!==dj&&(e=Ni(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,Oi(c,0,15),c=a.l,c.g=0<c.h?c.h:0,Oi(c,0,15),d.g=15);a.h=cj;d.h=b;return e}function ej(a){a.h=fj;a.g=a.l;a.g.h=0} 232function gj(a){pb("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.A;a.h=dj}var $i=0,fj=1,aj=2,cj=3,dj=4,hj="black green blue cyan red yellow magenta black".split(" "),ij="white green blue cyan red yellow magenta white_italics".split(" ");function jj(){this.l=!1;this.o=this.B=0;this.A=kj;this.i=[];this.g=this.h=this.j=0;this.L=this.I=!1;this.K="white";this.C="black";lj(this)}function lj(a){a.i=[];for(var b=0;16>b;b++)a.i.push(mj())}function mj(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function nj(a,b){oj(a)&&(a.i[a.h][a.g]=new Li(b,a.L,a.I,a.C,a.K),a.g++)}function oj(a){var b=a.g<a.o&&0<=a.g;return a.h<a.B&&0<=a.h&&b}jj.prototype.isVisible=function(){return this.l}; 233function pj(a,b,c){var d=new Ce(a.j,b,"");d.textAlign=a.A===qj?"left":a.A===rj?"right":Ge;if(c=Ii(d,"svc"+c,a.i,a.j,b))a.j=b;return c}jj.prototype.display=function(){this.l=!0};var qj=0,rj=1,kj=2;function sj(){this.i=[];this.h=null;this.g=0}function tj(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 uj(a.h)),a.h=null,a.g=0))}sj.prototype.clear=function(){this.i=[];this.h=[];this.g=0};function uj(a){this.g=0;this.h=a}uj.prototype.Ia=function(){return this.g<this.h.length};uj.prototype.za=function(){return this.g};function vj(a){if(!a.Ia())throw new F(2,2,3E3);return a.h[a.g++]}
234uj.prototype.skip=function(a){if(this.g+a>this.h.length)throw new F(2,2,3E3);this.g+=a};function wj(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null} 235function xj(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=vj(b).value;b=null;c=r(yj(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=pj(e,d,a.i)),lj(e);return b}if(137===c)for(b=vj(b).value,b=r(yj(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.display();else{if(138===c){c=vj(b).value;b=null;c=r(yj(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=pj(e,d,a.i)),e.l=!1;return b}if(139===c){c=vj(b).value; 236b=null;c=r(yj(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=pj(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=vj(b).value,zj(a,b,d);if(143===c)return d=zj(a,255,d),a.clear(),d;if(144===c)b.skip(1),d=vj(b).value,a.g&&(a.g.I=0<(d&128),a.g.L=0<(d&64));else if(145===c)d=vj(b).value,c=vj(b).value,b.skip(1),a.g&&(b=Aj((c&48)>>4,(c&12)>>2,c&3),a.g.K=Aj((d&48)>>4,(d&12)>>2,d&3),a.g.C=b);else if(146===c)d=vj(b).value,b=vj(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151=== 237c)b.skip(1),b.skip(1),d=vj(b).value,b.skip(1),a.g&&(a.g.A=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new jj;f.j=d;a.h[c]=f}d=vj(b).value;vj(b);vj(b);f=vj(b).value;var g=vj(b).value;b=vj(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.L=!1,b.I=!1,b.K="white",b.C="black");b=a.h[c];b.l=0<(d&32);b.B=(f&15)+1;b.o=(g&63)+1;a.g=a.h[c]}}}return null}function yj(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c} 238function zj(a,b,c){var d=null;b=r(yj(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=pj(f,c,a.i));a.h[e]=null}return d}wj.prototype.clear=function(){this.g=null;this.h=[null,null,null,null,null,null,null,null]};function Aj(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return Bj[a<<2|b<<1|c]} 239var Cj=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"]]),Bj="black blue green cyan red magenta yellow white".split(" ");function Dj(){this.h=[];this.g=[];this.i=new sj;this.l=0;this.B=new Map([["CC1",new Zi(0,0)],["CC2",new Zi(0,1)],["CC3",new Zi(1,0)],["CC4",new Zi(1,1)]]);this.A=this.o=0;this.j=new Map;this.reset()}Dj.prototype.clear=function(){this.l=0;this.h=[];this.g=[];this.i.clear();this.reset();for(var a=r(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};Dj.prototype.reset=function(){this.A=this.o=0;for(var a=r(this.B.values()),b=a.next();!b.done;b=a.next())b.value.reset()}; 240function Ej(a){function b(f,g){return f.pts-g.pts||f.order-g.order}var c=[];a.h.sort(b);a.g.sort(b);for(var d=r(a.h),e=d.next();!e.done;e=d.next())(e=Fj(a,e.value))&&c.push(e);d=r(a.g);for(e=d.next();!e.done;e=d.next())tj(a.i,e.value);d=r(a.i.i);for(e=d.next();!e.done;e=d.next())e=Gj(a,e.value),c.push.apply(c,ma(e));a.i.i=[];a.h=[];a.g=[];return c} 241function Fj(a,b){var c=b.type;if(16===(b.hb&112)){var d=b.hb>>3&1;0===c?a.o=d:a.A=d}c=a.B.get("CC"+(c<<1|(c?a.A:a.o)+1));if(255===b.hb&&255===b.Cb||!b.hb&&!b.Cb||!Hj(b.hb)||!Hj(b.Cb))return 45<=++a.l&&a.reset(),null;a.l=0;b.hb&=127;b.Cb&=127;if(!b.hb&&!b.Cb)return null;a=null;if(16===(b.hb&112))a:{d=b.hb;a=b.Cb;if(c.o===(d<<8|a))c.o=null;else if(c.o=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=ij[e]:7===e&& 242(f=!0);a=1===(a&1);if(c.h!==dj){e=c.g;if(c.h===cj&&b!==e.g){var g=1+b-e.h;Yi(e,g,1+e.g-e.h,e.h);Oi(e,0,g-1);Oi(e,b+1,15-b)}e.g=b;c.g.o=a;c.g.j=f;c.g.l=d;c.g.A="black"}}else if(17===(d&247)&&32===(a&240))c.g.o=!1,c.g.j=!1,c.g.l="white",Pi(c.g,Qi,32),d=!1,b=ij[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.o=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=hj[(a&14)>>1]),c.g.A=b;else if(17===(d&247)&&48===(a&240))Pi(c.g,Si,a);else if(18=== 243(d&246)&&32===(a&224))Pi(c.g,d&1?Wi:Ui,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.Cb){case 32:ej(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=bj(c,2,a);break;case 38:d=bj(c,3,a);break;case 39:d=bj(c,4,a);break;case 40:Pi(c.g,Qi,32);break;case 41:c.h=aj;c.g=c.i;c.g.h=0;c.j=a;break;case 42:c.A.reset();gj(c);break;case 43:gj(c);break;case 44:b=c.i;d=null;c.h!==dj&&(d=Ni(b,c.j,a));Oi(b,0,15);break;case 45:b=c.g;c.h!==cj?d=null:(d=Ni(b,c.j,a),f=b.g-b.h+1,Yi(b,f-1,f,b.h),Oi(b, 2440,f-1),Oi(b,b.g,15-b.g),c.j=a);break;case 46:Oi(c.l,0,15);break;case 47:b=null,c.h!==dj&&(b=Ni(c.i,c.j,a)),d=c.l,c.l=c.i,c.i=d,ej(c),c.j=a,d=b}a=d;break a}a=null}else d=b.Cb,Pi(c.g,Qi,b.hb),Pi(c.g,Qi,d);return a} 245function Gj(a,b){var c=[];try{for(;b.Ia();){var d=vj(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=vj(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new wj(e));for(var g=a.j.get(e),h=b.za();b.za()-h<f;){e=b;var k=vj(e),l=k.value,m=k.pts;if(16===l){var q=vj(e);l=l<<16|q.value}if(0<=l&&31>=l){var p=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!oj(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.o-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(e=pj(t,p,g.i));if(t.h+1>=t.B){p=t;for(var w=0,z=1;16>z;z++, 246w++)p.i[w]=p.i[z];for(z=0;1>z;z++,w++)p.i[w]=mj()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=pj(t,p,g.i));t.i[t.h]=mj();t.g=0;break;case 12:t.isVisible()&&(e=pj(t,p,g.i)),lj(t),p=t,p.h=0,p.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=xj(g,e,l,m);else{if(4096<=l&&4127>=l)p=l&255,8<=p&&15>=p?e.skip(1):16<=p&&23>=p?e.skip(2):24<=p&&31>=p&&e.skip(3);else if(4224<=l&&4255>=l)p=l&255,128<=p&&135>=p?e.skip(4):136<=p&&143>=p&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?nj(g.g,"\u266a"):nj(g.g, 247String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&nj(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Cj.has(e)){var y=Cj.get(e);nj(g.g,y)}else nj(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?nj(g.g,"_"):nj(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(D){if(D instanceof F&&3E3===D.code)pb("CEA708_INVALID_DATA","Buffer read out of bounds / invali
247d CEA-708 Data.");else throw D;}return c}function Hj(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function Ij(){}Ij.prototype.init=function(){};Ij.prototype.parse=function(){return[]};function Jj(a,b){var c=null,d=null,e=null,f=a.N();b&1&&(e=a.Ra());b&2&&a.skip(4);b&8&&(c=a.N());b&16&&(d=a.N());return{Hm:f,Wh:c,Rj:d,eq:e}}function Kj(a,b){return{Kh:1==b?a.Ra():a.N()}}function Lj(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.N()}} 248function Mj(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={Vg:null,sampleSize:null,Af:null};c&256&&(h.Vg=a.N());c&512&&(h.sampleSize=a.N());c&1024&&a.skip(4);c&2048&&(h.Af=0==b?a.N():a.Jb());e.push(h)}return{Qq:d,Fi:e,Qj:f}};function Nj(){this.j=new Map;this.i=this.h=0;this.g=Oj} 249Nj.prototype.init=function(a){function b(f){f=f.name;f in Pj&&(c.g=Pj[f])}var c=this,d=[],e=[];(new eh).box("moov",jh).box("mvex",jh).ea("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",jh).ea("tkhd",function(f){var g=f.reader;1==f.version?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));f=g.N();d.push(f)}).box("mdia",jh).ea("mdhd",function(f){f=Lj(f.reader,f.version);e.push(f.timescale)}).box("minf",jh).box("stbl",jh).ea("stsd",lh).box("avc1",b).box("avc3", 250b).box("hev1",b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("encv",mh).box("sinf",jh).box("frma",function(f){f=f.reader.N();f=ih(f);f in Pj&&(c.g=Pj[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new F(2,2,2010);this.g==Oj&&ob("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})}; 251Nj.prototype.parse=function(a){var b=this;if(this.g==Oj)return[];var c=[],d=this.h,e=this.i,f=[],g=null,h=null,k=null,l=9E4;(new eh).box("moof",function(m){g=m.start;jh(m)}).box("traf",jh).ea("trun",function(m){m=Mj(m.reader,m.version,m.flags);f=m.Fi;h=m.Qj}).ea("tfhd",function(m){m=Jj(m.reader,m.flags);d=m.Wh||b.h;e=m.Rj||b.i;m=m.Hm;b.j.has(m)&&(l=b.j.get(m))}).ea("tfdt",function(m){k=Kj(m.reader,m.version).Kh}).box("mdat",function(m){if(null===k)throw new F(2,2,2010);a:{var q=m.reader,p=k,t=l,w= 252d,z=e,x=f,y=0,D=z;x.length&&(D=x[0].sampleSize||z);for(q.skip((g||0)+(h||0)-m.start-8);q.Ia();){m=q.N();var A=q.mb();switch(b.g){case Qj:A&=31;A=6==A;break;case Rj:A=A>>1&63;A=39==A||40==A;break;default:break a}if(A){A=0;x.length>y&&(A=x[y].Af||0);A=(p+A)/t;for(var C=[],G,J=q.Ya(m-1),M=G=0;M<J.length;)2==G&&3==J[M]?(G=0,J=ma(J).concat(),J.splice(M,1),J=new Uint8Array(J)):0==J[M]?G++:G=0,M++;G=J;for(M=0;M<G.length;){for(J=0;255==G[M];)J+=255,M++;J+=G[M++];for(var N=0;255==G[M];)N+=255,M++;N+=G[M++]; 2534==J&&C.push(G.subarray(M,M+N));M+=N}C=r(C);for(G=C.next();!G.done;G=C.next())c.push({kl:G.value,pts:A})}else try{q.skip(m-1)}catch(O){break}D-=m+4;0==D&&(p=x.length>y?p+(x[y].Vg||w):p+w,y++,D=x.length>y?x[y].sampleSize||z:z)}}}).parse(a,!1);return c};var Oj=0,Qj=1,Rj=2,Pj={avc1:Qj,avc3:Qj,hev1:Rj,hvc1:Rj,dvh1:Rj,dvhe:Rj};function Sj(a){this.h=new Ij;a.includes("video/mp4")&&(this.h=new Nj);this.g=new Dj}Sj.prototype.init=function(a){this.h.init(a)}; 254function Tj(a,b){b=a.h.parse(b);b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Fb(d.kl);if(0<e.length&&(c=a.g,d=d.pts,e=new bh(e,0),181===e.mb()&&49===e.me()&&1195456820===e.N()&&3===e.mb())){var f=e.mb();if(0!==(f&64)){f&=31;e.skip(1);for(var g=0;g<f;g++){var h=e.mb(),k=(h&4)>>2,l=e.mb(),m=e.mb();k&&(h&=3,0===h||1===h?c.h.push({pts:d,type:h,hb:l,Cb:m,order:c.h.length}):(c.g.push({pts:d,type:h,value:l,order:c.g.length}),c.g.push({pts:d,type:2,value:m,order:c.g.length})))}}}}return Ej(a.g)} 255Sj.prototype.reset=function(){this.g.clear()};function Uj(a,b,c,d,e){this.ib=a;this.pb=b;this.Qa=c;this.wg=void 0===d?null:d;this.timescale=e}Uj.prototype.Nd=function(){return this.pb};Uj.prototype.Jd=function(){return this.Qa};function Vj(a,b){return a&&b?a.Nd()==b.Nd()&&a.Jd()==b.Jd()&&Be(a.ib(),b.ib()):a==b}E("shaka.media.InitSegmentReference",Uj);Uj.prototype.getEndByte=Uj.prototype.Jd;Uj.prototype.getStartByte=Uj.prototype.Nd; 256function Wj(a,b,c,d,e,f,g,h,k,l,m,q,p,t,w){l=void 0===l?[]:l;t=void 0===t?Xj:t;this.startTime=a;this.l=this.endTime=b;this.C=c;this.pb=d;this.Qa=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=void 0===m?"":m;this.B=void 0===q?null:q;this.g=void 0===p?null:p;this.status=t;this.o=void 0===w?null:w;this.A=null;this.j=0}n=Wj.prototype;n.ib=function(){return this.C()};n.getStartTime=function(){return this.startTime};n.hk=function(){return this.endTime}; 257n.Nd=function(){return this.pb};n.Jd=function(){return this.Qa};n.Jk=function(){return this.tilesLayout};n.Ik=function(){return this.B};n.Hb=function(){return this.status};n.Wk=function(){this.status=Yj};n.Ni=function(a){this.A=a};n.Gk=function(){return this.A};n.offset=function(a){this.startTime+=a;this.endTime+=a;this.l+=a;for(var b=r(this.i),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.l+=a}; 258n.nh=function(a){null==this.g?nb("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};E("shaka.media.SegmentReference",Wj);Wj.prototype.syncAgainst=Wj.prototype.nh;Wj.prototype.offset=Wj.prototype.offset;Wj.prototype.getThumbnailSprite=Wj.prototype.Gk;Wj.prototype.setThumbnailSprite=Wj.prototype.Ni;Wj.prototype.markAsUnavailable=Wj.prototype.Wk;Wj.prototype.getStatus=Wj.prototype.Hb;Wj.prototype.getTileDuration=Wj.prototype.Ik; 259Wj.prototype.getTilesLayout=Wj.prototype.Jk;Wj.prototype.getEndByte=Wj.prototype.Jd;Wj.prototype.getStartByte=Wj.prototype.Nd;Wj.prototype.getEndTime=Wj.prototype.hk;Wj.prototype.getStartTime=Wj.prototype.getStartTime;Wj.prototype.getUris=Wj.prototype.ib;var Xj=0,Yj=1;Wj.Status={to:Xj,Up:Yj,ap:2};function Zj(a){return!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}function ak(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function bk(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)} 260function ck(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=r(dk(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}function ek(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=dk(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}
261function dk(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};/* 262 @license 263 Shaka Player 264 Copyright 2022 Google LLC 265 SPDX-License-Identifier: Apache-2.0 266*/ 267function fk(){}function gk(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127} 268function hk(a){var b={key:a.type,description:"",data:""};if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=Cd(Fb(a.data,1,c));a=Cd(Fb(a.data,2+c)).replace(/\0*$/,"");b.description=d;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;c=a.data.subarray(1).indexOf(0);if(-1===c)return null;d=Cd(Fb(a.data,1,c));a=Cd(Fb(a.data,2+c)).replace(/\0*$/,"");b.description=d;b.data=a;return b}if("PRIV"===a.type){if(2> 269a.size)return null;d=a.data.indexOf(0);if(-1===d)return null;d=Cd(Fb(a.data,0,d));a=Gb(a.data.subarray(d.length+1));b.description=d;b.data=a;return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=Cd(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=Cd(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Gb(a.data),b):null} 270function ik(a){for(var b=0,c=[];b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9];){var d=gk(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=gk(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=hk(e))&&c.push(f);b+=e.size+10}b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]&&(b+=10)}return c} 271E("shaka.util.Id3Utils",fk);fk.getID3Frames=ik;function jk(){this.A=null;this.B=!1;this.l=this.o=null;this.I=[];this.g=this.h=null;this.C=[];this.j=null;this.i=[]} 272jk.prototype.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,kk(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71===a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h===e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.A=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.A:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,jg:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]& 27315)<<8|f[h+11]);h<k;){var l=(f[h+1]&31)<<8|f[h+2];switch(f[h]){case 15:-1===g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1===g.jg&&(g.jg=l);break;case 27:-1===g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1===g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1===g.video&&(g.video=l,g.videoCodec="hvc")}h+=((f[h+3]&15)<<8|f[h+4])+5}f=g;null==this.l&&(this.l=f.video);null==this.g&&(this.g=f.audio);null==this.j&&(this.j=f.jg);d&&!this.B&&(d=!1,e=b-188);this.B=!0;break;case this.l:f= 274a.subarray(h,e+188);null==this.o&&(h=Ck(f))&&null!=h.pts&&(this.o=h.pts/9E4);this.I.push(f);break;case this.g:f=a.subarray(h,e+188);null==this.h&&(h=Ck(f))&&null!=h.pts&&(this.h=h.pts/9E4);this.C.push(f);break;case this.j:this.i.push(a.subarray(h,e+188));break;default:d=!0}}return this}; 275function Ck(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8Array(0),Fq:6+(a[4]<<8|a[5]),pts:null,dts:null},c=a[7];c&192&&(b.pts=536870912*(a[9]&14)+4194304*(a[10]&255)+16384*(a[11]&254)+128*(a[12]&255)+(a[13]&254)/2,b.dts=b.pts,c&64&&(b.dts=536870912*(a[14]&14)+4194304*(a[15]&255)+16384*(a[16]&254)+128*(a[17]&255)+(a[18]&254)/2));b.data=a.subarray(9+a[8]);return b} 276function Dk(a){for(var b=[],c=new Uint8Array(0),d=a.i.length-1;0<=d;d--){c=Rd(a.i[d],c);var e=Ck(c);e&&(b.unshift({cueTime:e.pts?e.pts/9E4:null,data:e.data,frames:ik(e.data),dts:e.dts,pts:e.pts}),c=new Uint8Array(0))}return b}jk.prototype.getStartTime=function(){return{audio:this.h,video:this.o}};function kk(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}E("shaka.util.TsParser",jk);function Ek(a,b,c){this.g=null;this.i=-1;this.l=a;this.h=b;this.j=c;"undefined"===typeof libDPIModule&&ob("Could not Find LCEVC Library dependencies on this page");"undefined"===typeof LcevcDil?ob("Could not Find LCEVC Library on this page"):LcevcDil.Supp
276ortObject.SupportStatus||ob(LcevcDil.SupportObject.SupportError);"undefined"!==typeof LcevcDil&&"undefined"!==typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&& 277(this.h.classList.remove("zx-Ax"),this.g=new LcevcDil.LcevcDil(this.l,this.h,this.j))}Ek.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Fk(a,b){var c=Gk;switch(b.mimeType){case "video/webm":c=Hk;break;case "video/mp4":c=Ik}a.g&&(a.i=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(c))}E("shaka.lcevc.Dil",Ek);Ek.prototype.release=Ek.prototype.release;var Gk=0,Hk=1,Ik=2;function Jk(a,b,c,d){var e=this;this.l=a;this.m=null;this.o=b;this.h={};this.S={};this.X={};this.g=null;this.M=!1;this.ba=c||function(){};this.K=d||null;this.i={};this.C=new Qg;this.A={};this.B=null;this.L=new jd;this.j=Kk(this,this.L);this.P=new Og(function(){return Lk(e)});this.W="";this.I=!1;this.ma=new jd}function Kk(a,b){var c=new MediaSource;a.C.xa(c,"sourceopen",function(){URL.revokeObjectURL(a.W);b.resolve()});a.W=Mk(c);a.l.src=a.W;return c}n=Jk.prototype;n.destroy=function(){return this.P.destroy()}; 278function Lk(a){var b,c,d,e,f,g,h,k;return B(function(l){if(1==l.g){b=[];
278for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p.catch(ad)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new F(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.o&&b.push(a.o.destroy());for(k in a.A)b.push(a.A[k].destroy());return u(l,Promise.all(b),2)}a.C&&(a.C.release(),a.C=null);a.l&&(a.l.removeAttribute("src"),a.l.load(),a.l=null);a.m=null;a.j=null;a.g=null;a.o=null;a.h={};a.A={};a.B=null; 279a.i={};a.K=null;v(l)})} 280n.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,q;return B(function(p){if(1==p.g)return e=id,u(p,d.L,2);d.I=c;f={};g=r(a.keys());for(h=g.next();!h.done;f={Sa:f.Sa},h=g.next())if(f.Sa=h.value,k=a.get(f.Sa),l=be(k.mimeType,k.codecs),f.Sa==e.ra)Nk(d,l,c);else{!b&&Ab(l)||!Wd(l,f.Sa)||(d.A[f.Sa]=new Vd(l),l=Zd(f.Sa,l));m=l+d.m.sourceBufferExtraFeatures;Pg(d.P);q=void 0;try{q=d.j.addSourceBuffer(m)}catch(t){throw new F(2,3,3015,t,"The mediaSource_ status was"+d.j.readyState+"expected 'open'"); 281}d.C.s(q,"error",function(t){return function(){d.i[t.Sa][0].p.reject(new F(2,3,3014,d.l.error?d.l.error.code:0))}}(f));d.C.s(q,"updateend",function(t){return function(){return Ok(d,t.Sa)}}(f));d.h[f.Sa]=q;d.S[f.Sa]=l;d.i[f.Sa]=[];d.X[f.Sa]=!!k.drmInfos.length}v(p)})};n.configure=function(a){this.m=a}; 282function Nk(a,b,c){a.g||(a.g=new We(a.o));var d=a.g;a=a.M;"application/cea-608"==b||"application/cea-708"==b?d.B=null:(d.B=(0,Ye[b])(),d.B.setSequenceMode?d.B.setSequenceMode(c):ob('Text parsers should have a "setSequenceMode" method!'),d.I=a)}function Pk(a){return a.j?"ended"==a.j.readyState:!0}function Qk(a,b){return b==hd?a.g.g:Zj(Rk(a,b))}function Sk(a,b){return b==hd?a.g.h:ak(Rk(a,b))}function Tk(a,b,c){if(b==hd)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Rk(a,b);return ck(a,c)} 283n.Eb=function(){var a={total:dk(this.l.buffered),audio:dk(Rk(this,"audio")),video:dk(Rk(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Rk(a,b){try{return a.h[b].buffered}catch(c){return null}} 284function Uk(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,q,p,t,w,z,x,y,D,A,C,G,J,M,N,O,Y,ha,ia,na;return B(function(ba){switch(ba.g){case 1:h=id;if(b!=h.ra){ba.D(2);break}if(!a.I){ba.D(3);break}return u(ba,a.ma,4);case 4:k=ba.h,a.g.A=k;case 3:return u(ba,Ze(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return ba.return();case 2:l=Fb(c);m=a.S[b];a.A[b]&&(m=a.A[b].A);0>kk(l)?Vk.includes(m)&&(w=ik(l),w.length&&d&&(z={cueTime:d.startTime,data:l,frames:w,dts:d.startTime,pts:d.startTime}, 285a.ba([z],0,d.endTime))):(q=(new jk).parse(l),p=d.startTime-(q.getStartTime()[b]||0),t=Dk(q),t.length&&a.ba(t,p,d?d.endTime:null));if(!a.A[b]){e&&b==h.fb&&(a.g||Nk(a,"application/cea-608",a.I),a.B||(a.B=new Sj(m)),d?(x=Tj(a.B,c),x.length&&(y=a.h[h.fb].timestampOffset,df(a.g,x,d.startTime,d.endTime,y))):a.B.init(c));ba.D(6);break}f&&a.A[b].g.resetCaptions();return u(ba,$d(a.A[b],c),7);case 7:D=ba.h,a.g||Nk(a,"application/cea-608",a.I),D.captions&&D.captions.length&&(A=a.h[h.fb].timestampOffset,C=bf(D.captions), 286df(a.g,C,d?d.startTime:null,d?d.endTime:null,A)),c=D.data;case 6:c=Wk(a,c,d?d.startTime:null,b);G=a.h[b];J=Xk;if(!a.I||G.mode==J||!d){ba.D(8);break}M=a.j.duration;N=b==h.fb||!(h.fb in a.h);if(!N){ba.D(9);break}O=[G.appendWindowStart,G.appendWindowEnd];G.appendWindowStart=0;G.appendWindowEnd=Infinity;Y=G.timestampOffset;G.timestampOffset=0;return u(ba,Yk(a,b,function(){return Zk(a,b,c)}),10);case 10:return u(ba,Yk(a,b,function(){return $k(a,b)}),11);case 11:return G.timestampOffset=Y,G.appendWindowStart= 287O[0],G.appendWindowEnd=O[1],ha=Zj(Rk(a,b)),ia=(d.startTime||0)-(ha||0),a.ma.resolve(ia),u(ba,Yk(a,b,function(){return al(a,b,0,M)}),12);case 12:if(b!=h.fb){ba.D(9);break}return u(ba,Yk(a,b,function(){a.l.currentTime-=.001;Ok(a,b)}),9);case 9:return G.mode=J,u(ba,a.ob(M),8);case 8:return d&&a.I&&b!=h.ra&&(f||g)&&(na=d.startTime,Yk(a,b,function(){return $k(a,b)}),Yk(a,b,function(){return bl(a,b,na)})),u(ba,Yk(a,b,function(){Zk(a,b,c)}),16);case 16:v(ba)}})} 288function cl(a,b){var c=Sk(a,"video")||0;af(a.g,b,c)}function dl(a){a.g&&af(a.g,"",0)}n.remove=function(a,b,c){var d=this,e;return B(function(f){e=id;return a==e.ra?u(f,d.g.remove(b,c),0):u(f,Yk(d,a,function(){return al(d,a,b,c)}),0)})};n.clear=function(a){var b=this,c;return B(function(d){c=id;return a==c.ra?b.g?u(d,b.g.remove(0,Infinity),0):d.return():u(d,Yk(b,a,function(){return al(b,a,0,b.j.duration)}),0)})}; 289n.flush=function(a){var b=this,c;return B(function(d){c=id;return a==c.ra?d.return():u(d,Yk(b,a,function(){b.l.currentTime-=.001;Ok(b,a)}),0)})};function el(a,b,c,d,e,f){var g;return B(function(h){g=id;return b==g.ra?(f||(a.g.A=c),$e(a.g,d,e),h.return()):u(h,Promise.all([Yk(a,b,function(){return $k(a,b)}),f?Promise.resolve():Yk(a,b,function(){return bl(a,b,c)}),Yk(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;Ok(a,b)})]),0)})} 290function fl(a,b,c){var d;return B(function(e){d=id;if(b==d.ra)return e.return();Yk(a,b,function(){return $k(a,b)});return u(e,Yk(a,b,function(){return bl(a,b,c)}),0)})}n.endOfStream=function(a){var b=this;return B(function(c){return u(c,gl(b,function(){Pk(b)||"closed"===b.j.readyState||(a?b.j.endOfStream(a):b.j.endOfStream())}),0)})}; 291n.ob=function(a){var b=this;return B(function(c){return u(c,gl(b,function(){if(a<b.j.duration)for(var d in b.h){var e={start:function(){},p:new jd};b.i[d].unshift(e)}b.j.duration=a}),0)})};n.getDuration=function(){return this.j.duration};function Zk(a,b,c){if("video"==b&&a.K){var d=a.K;d.g&&d.g.appendBuffer(c,"video",d.i)}a.h[b].appendBuffer(c)}function al(a,b,c,d){d<=c?Ok(a,b):a.h[b].remove(c,d)} 292function $k(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;Ok(a,b)}function bl(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;Ok(a,b)}function Ok(a,b){var c=a.i[b][0];c&&(c.p.resolve(),hl(a,b))}function Yk(a,b,c){Pg(a.P);c={start:c,p:new jd};a.i[b].push(c);1==a.i[b].length&&il(a,b);return c.p} 293function gl(a,b){var c,d,e,f,g,h;return B(function(k){switch(k.g){case 1:Pg(a.P);c=[];d={};for(e in a.h)d.td=new jd,f={start:function(l){return function(){return l.td.resolve()}}(d),p:d.td},a.i[e].push(f),c.push(d.td),1==a.i[e].length&&f.start(),d={td:d.td};Ba(k,2);return u(k,Promise.all(c),4);case 4:Da(k,3);break;case 2:throw g=Ea(k),g;case 3:try{b()}catch(l){throw new F(2,3,3015,l);}finally{for(h in a.h)hl(a,h)}v(k)}})}function hl(a,b){a.i[b].shift();il(a,b)} 294function il(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new F(2,3,3017,b)):c.p.reject(new F(2,3,3015,d)),hl(a,b)}}function Wk(a,b,c,d){var e=a.X[d];null==c&&e&&(ud()||sd())&&"mp4"==a.S[d].split(";")[0].split("/")[1]&&(b=Ei(b));return b}var Mk=window.URL.createObjectURL,Xk="sequence",Vk=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function jl(a,b,c){this.i=a;this.o=b;this.A=this.j=Infinity;this.g=1;this.h=this.l=null;this.B=0;this.C=!0;this.I=0;this.K=void 0===c?!0:c;this.L=0;this.M=!1}n=jl.prototype;n.getDuration=function(){return this.j};n.xk=function(){return this.g};n.Mi=function(a){this.i=a};n.ob=function(a){this.j=a};n.Bk=function(){return this.i};n.Ii=function(a){this.B=a};n.we=function(a){this.C=a};
294n.hh=function(a){this.A=a};n.Ji=function(a){this.o=a};n.fk=function(){return this.o}; 295n.Yc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.B)/1E3;a=r(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.Bg(b);this.h=Math.max(this.h,c);null!=this.i&&this.K&&!this.M&&(this.i=d-this.h-this.g)}};n.sg=function(){this.M=!0};n.Bg=function(a){this.l=null==this.l?a:Math.min(this.l,a)};n.Ag=function(a){this.g=Math.max(this.g,a)}; 296n.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};n.ha=function(){return Infinity==this.j&&!this.C};n.jc=function(){return Infinity!=this.j&&!this.C};n.Gb=function(){return Math.max(this.I,this.gc()-this.A)};n.Oi=function(a){this.I=a};n.gc=function(){return this.ha()||this.jc()?Math.min(Math.max(0,(Date.now()+this.B)/1E3-this.g-this.i)+this.L,this.j):this.h?Math.min(this.h,this.j):this.j}; 297n.Md=function(a){var b=Math.max(this.l,this.I);return Infinity==this.A?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.gc()-this.A+a,this.Fb()))};n.Rc=function(){return this.Md(0)};n.Fb=function(){return Math.max(0,this.gc()-(this.ha()||this.jc()?this.o:0))};n.dj=function(){return null==this.i||null!=this.h&&this.K?!1:!0};n.Hi=function(a){this.L=a};E("shaka.media.PresentationTimeline",jl);jl.prototype.setAvailabilityTimeOffset=jl.prototype.Hi;jl.prototype.usingPresentationStartTime=jl.prototype.dj; 298jl.prototype.getSeekRangeEnd=jl.prototype.Fb;jl.prototype.getSeekRangeStart=jl.prototype.Rc;jl.prototype.getSafeSeekRangeStart=jl.prototype.Md;jl.prototype.getSegmentAvailabilityEnd=jl.prototype.gc;jl.prototype.setUserSeekStart=jl.prototype.Oi;jl.prototype.getSegmentAvailabilityStart=jl.prototype.Gb;jl.prototype.isInProgress=jl.prototype.jc;jl.prototype.isLive=jl.prototype.ha;jl.prototype.offset=jl.prototype.offset;jl.prototype.notifyMaxSegmentDuration=jl.prototype.Ag; 299jl.prototype.notifyMinSegmentStartTime=jl.prototype.Bg;jl.prototype.lockStartTime=jl.prototype.sg;jl.prototype.notifySegments=jl.prototype.Yc;jl.prototype.getDelay=jl.prototype.fk;jl.prototype.setDelay=jl.prototype.Ji;jl.prototype.setSegmentAvailabilityDuration=jl.prototype.hh;jl.prototype.setStatic=jl.prototype.we;jl.prototype.setClockOffset=jl.prototype.Ii;jl.prototype.getPresentationStartTime=jl.prototype.Bk;jl.prototype.setDuration=jl.prototype.ob;jl.prototype.setPresentationStartTime=jl.prototype.Mi; 300jl.prototype.getMaxSegmentDuration=jl.prototype.xk;jl.prototype.getDuration=jl.prototype.getDuration;function kl(a,b,c){this.o=c;this.l=a;this.B=ll(a);this.g=a.g.currentTime;this.j=Date.now()/1E3;this.h=!1;this.A=0;this.C=b;this.i=function(){}}kl.prototype.release=function(){this.o=this.l=null;this.i=function(){}};function ml(a,b){a.i=b}function nl(a){this.g=a}function ll(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(dk(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 ol(a,b,c,d,e){var f=this;this.C=e;this.g=a;this.I=b;this.m=c;this.i=new Qg;this.o=!1;this.B=a.readyState;this.A=0;this.h=d;this.l=!1;this.i.s(a,"waiting",function(){return pl(f)});this.j=(new md(function(){pl(f)})).ua(.25)}ol.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.j&&(this.j.stop(),this.j=null);this.h&&(this.h.release(),this.h=null);this.g=this.I=this.C=null};ol.prototype.Eg=function(){this.l=!0;pl(this)}; 301function pl(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.o)return}else a.o=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.B&&(a.B=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=ll(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.B!=d)b.j=f,b.g=e,b.B=d,b.h=!1;e=f-b.j;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.A++,b.o(new ug("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=ek(c,b,a.m.gapDetectionThreshold),null== 302d||0==d&&!a.l||(e=c.start(d),e>=a.I.Fb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.A++,a.C(new ug("gapjumped")))))}}};function ql(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=rl.value().get(b),c.xa(a,b,d))}var rl=new kd(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function sl(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.o=!1;this.h=new Qg;this.i=new tl(a);ql(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){ul(d,d.j)})}sl.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.l=function(){};this.g=null};function vl(a){return a.o?a.g.currentTime:a.j}function wl(a,b){0<a.g.readyState?xl(a.i,b):ql(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){ul(a,a.j)})} 303function ul(a,b){.001>Math.abs(a.g.currentTime-b)?yl(a):(a.h.xa(a.g,"seeking",function(){yl(a)}),xl(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function yl(a){a.o=!0;
303a.h.s(a.g,"seeking",function(){return a.l()})}function tl(a){var b=this;this.h=a;this.o=10;this.l=this.j=this.i=0;this.g=new md(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}tl.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null}; 304function xl(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.o;a.h.currentTime=b;a.g.ua(.1)};function zl(a){this.g=a;this.j=!1;this.h=null;this.i=new Qg}n=zl.prototype;n.kh=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.xa(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;ql(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};n.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};n.lh=function(a){this.h=this.j?this.h:a};n.Cf=function(){return(this.j?this.g.currentTime:this.h)||0};n.Qi=function(){return 0}; 305n.Pi=function(){return 0};n.xi=function(){}; 306function Al(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.C=b.minBufferTime||0;this.m=c;this.B=e;this.o=null;this.A=Bl(a,c,f);this.j=new ol(a,b.presentationTimeline,c,this.A,f);this.h=new sl(a,function(){a:{var h=g.j;h.o=!0;h.l=!1;var k=vl(g.h);h=Cl(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.o||g.o<k-1)){g.o=k;wl(g.h,h);h=void 0;break a}g.B();h=void 0}return h},Dl(this,d));this.l=new md(function(){if(0!=g.i.readyState&&!g.i.paused){var h=vl(g.h),k=g.g.Rc(),l=g.g.Fb();3> 307l-k&&(k=l-3);h<k&&(h=Cl(g,h),g.i.currentTime=h)}})}n=Al.prototype;n.kh=function(){this.l.ua(.25)};n.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.l&&(this.l.stop(),this.l=null);this.i=this.h=this.g=this.m=null;this.B=function(){}};n.lh=function(a){wl(this.h,a)};n.Cf=function(){var a=vl(this.h);return 0<this.i.readyState&&!this.i.paused?El(this,a):a};n.Qi=function(){return this.A?this.A.A:0};n.Pi=function(){return this.j.A}; 308function Dl(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.Rc():a.g.Fb():0>b&&(b=a.g.Fb()+b);return Fl(a,El(a,b))}n.xi=function(){this.j.Eg()};function Fl(a,b){var c=a.g.getDuration();return b>=c?c-a.m.durationBackoff:b}function Cl(a,b){var c=Math.max(a.C,a.m.rebufferingGoal),d=a.m.safeSeekOffset,e=a.g.Rc(),f=a.g.Fb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Md(c),k=a.g.Md(d);c=a.g.Md(c+d);return b>=g?Fl(a,b):b>f?f:b<e?bk(a.i.buffered,k)?k:c:b>=h||bk(a.i.buffered,b)?b:c} 309function El(a,b){var c=a.g.Rc();if(b<c)return c;a=a.g.Fb();return b>a?a:b}function Bl(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new kl(new nl(a),b.stallThreshold,c);ml(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};ea();ka();function Gl(a){this.g=a;this.h=null;this.i=0;this.j=!1}n=Gl.prototype;n.release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)};n.Xk=function(){this.j=!0};function Hl(a,b){a=r(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}n.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.i}return this.g.length&&a<this.g[0].startTime?this.i:null}; 310n.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};n.offset=function(a){if(!this.j)for(var b=r(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};n.Vd=function(a){if(!this.j&&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,ma(a))}}; 311n.Wc=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.Vd(a);this.fc(b)};n.fc=function(a){if(!this.j){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}}; 312n.Rb=function(a,b,c){c=void 0===c?!1:c;if(!this.j){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.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new Wj(a.startTime,b,a.C,a.pb,a.Qa,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.i,a.tilesLayout,a.B,a.g,a.status,a.o),this.g[this.g.length-1].j=a.j)}}; 313n.Df=function(a,b){var c=this;this.j||(this.h&&this.h.stop(),this.h=new md(function(){var d=b();d?c.g.push.apply(c.g,ma(d)):(c.h.stop(),c.h=null)}),this.h.ua(a))};Gl.prototype[Symbol.iterator]=function(){return this.Oc(0)};Gl.prototype.Oc=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.i.length)for(var e=c.i.length-1;0<=e;--e){var f=c.i[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Il(this,b,d)};Gl.prototype.Td=function(){return 0==this.g.length}; 314function Jl(a,b,c){return new Gl([new Wj(a,a+b,function(){return c},0,null,null,a,a,a+b)])}E("shaka.media.SegmentIndex",Gl);Gl.forSingleSegment=Jl;Gl.prototype.getIteratorForTime=Gl.prototype.Oc;Gl.prototype.updateEvery=Gl.prototype.Df;Gl.prototype.fit=Gl.prototype.Rb;Gl.prototype.evict=Gl.prototype.fc;Gl.prototype.mergeAndEvict=Gl.prototype.Wc;Gl.prototype.offset=Gl.prototype.offset;Gl.prototype.get=Gl.prototype.get;Gl.prototype.find=Gl.prototype.find;Gl.prototype.markImmutable=Gl.prototype.Xk; 315Gl.prototype.release=Gl.prototype.release;function Il(a,b,c){this.i=a;this.g=b;this.h=c}Il.prototype.Pj=function(){return this.g};Il.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.i.length&&a.ib().length&&this.h>=a.i.length&&(this.g++,this.h=0,a=this.i.get(this.g));
315return a&&0<a.i.length?a.i[this.h]:a}; 316Il.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.i.length?(this.h++,a.ib().length&&this.h==a.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};E("shaka.media.SegmentIterator",Il);Il.prototype.next=Il.prototype.next;Il.prototype.current=Il.prototype.current;Il.prototype.currentPosition=Il.prototype.Pj;function Kl(){Gl.call(this,[]);this.l=[]}ua(Kl,Gl);n=Kl.prototype;n.clone=function(){var a=new Kl;a.l=this.l.slice();return a}; 317n.release=function(){for(var a=r(this.l),b=a.next();!b.done;b=a.next())b.value.release();this.l=[]};n.find=function(a){for(var b=0,c=r(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.i+d.g.length}return null};n.get=function(a){for(var b=0,c=r(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.i+d.g.length}return null};n.offset=function(){};n.Vd=function(){};n.fc=function(){};n.Wc=function(){};n.Rb=function(){};n.Df=function(){}; 318E("shaka.media.MetaSegmentIndex",Kl);Kl.prototype.updateEvery=Kl.prototype.Df;Kl.prototype.fit=Kl.prototype.Rb;Kl.prototype.mergeAndEvict=Kl.prototype.Wc;Kl.prototype.evict=Kl.prototype.fc;Kl.prototype.merge=Kl.prototype.Vd;Kl.prototype.offset=Kl.prototype.offset;Kl.prototype.get=Kl.prototype.get;Kl.prototype.find=Kl.prototype.find;Kl.prototype.release=Kl.prototype.release;function Ll(a){var b=this;this.g=a;this.j=!1;this.h=this.g.cf();this.i=new md(function(){b.g.si(.25*b.h)})}Ll.prototype.release=function(){this.i&&(this.i.stop(),this.i=null);this.g=null};Ll.prototype.set=function(a){this.h=a;Ml(this)};Ll.prototype.Ze=function(){return this.g.Ze()};function Ml(a){a.i.stop();var b=a.j?0:a.h;if(0<=b)try{a.g.cf()!=b&&a.g.fh(b);return}catch(c){}a.i.ua(.25);0!=a.g.cf()&&a.g.fh(0)};function Nl(a){var b=this;this.i=a;this.g=new Set;this.h=(new md(function(){Ol(b,!1)})).ua(.25)}Nl.prototype.release=function(){this.h.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Ol(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.i.currentTime,b)};function Pl(a){xg.call(this);this.g=new Map;this.h=a}ua(Pl,xg);Pl.prototype.release=function(){this.g.clear();xg.prototype.release.call(this)};function Ql(a,b){var c=a.g.get(b);c||(c={ae:[],Uh:null,contentType:b},a.g.set(b,c));return c}function Rl(a,b,c){var d=Ql(a,b.contentType);Sl(a,d);a={wg:b,position:c};d=d.ae;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)} 319Pl.prototype.j=function(a){for(var b=r(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.ae;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.wg;break a}}d=null}if(e=d)e=c.Uh,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); 320if(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.Uh=d,JSON.stringify(d),c=new ug("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Sl(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.ae;b.ae=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.ae=[]};function Tl(a){xg.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new md(function(){for(var c=b.i(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new ug("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ua(2)}ua(Tl,xg);Tl.prototype.release=function(){this.g.clear();this.h.stop();xg.prototype.release.call(this)};function Ul(a){xg.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{wc:null,vc:Vl,ic:function(c,d){return Wl(b,"enter",c,d)}},{wc:Xl,vc:Vl,ic:function(c,d){return Wl(b,"enter",c,d)}},{wc:Yl,vc:Vl,ic:function(c,d){return Wl(b,"enter",c,d)}},{wc:Vl,vc:Xl,ic:function(c,d){return Wl(b,"exit",c,d)}},{wc:Vl,vc:Yl,ic:function(c,d){return Wl(b,"exit",c,d)}},{wc:Xl,vc:Yl,ic:function(c,d){return Wl(b,"skip",c,d)}},{wc:Yl,vc:Xl,ic:function(c,d){return Wl(b,"skip",c,d)}}];this.h=new Qg;this.h.s(this.i,"regionremove", 321function(c){b.g.delete(c.region)})}ua(Ul,xg);Ul.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;xg.prototype.release.call(this)};Ul.prototype.j=function(a,b){for(var c=r(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Xl:a>d.endTime?Yl:Vl;this.g.set(d,f);for(var g=r(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.wc==e&&h.vc==f&&h.ic(d,b)}}; 322function Wl(a,b,c,d){b=new ug(b,new Map([["region",c],["seeking",d
322]]));a.dispatchEvent(b)}var Xl=1,Vl=2,Yl=3;function Zl(a,b,c,d,e){a=Gg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function $l(a,b){var c=this;this.F=b;this.H=a;this.m=null;this.l=1;this.i=this.h=null;this.B=0;this.o=!1;this.g=new Map;this.A=!1;this.C=null;this.j=!1;this.P=new Og(function(){return am(c)})}n=$l.prototype;n.destroy=function(){return this.P.destroy()};function am(a){var b,c,d,e;return B(function(f){if(1==f.g){b=[];c=r(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,bm(e),b.push(cm(e));return u(f,Promise.all(b),2)}a.g.clear();a.F=null;a.H=null;a.m=null;v(f)})} 323n.configure=function(a){this.m=a;this.C=new kg({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0)};n.start=function(){var a=this;return B(function(b){if(1==b.g)return u(b,dm(a),2);Pg(a.P);a.A=!0;v(b)})}; 324function em(a,b){var c,d,e,f,g,h,k;B(function(l){switch(l.g){case 1:return c=id,a.B++,d=a.B,Ba(l,2),u(l,a.F.aa.clear(c.ra),4);case 4:Da(l,3);break;case 2:if(e=Ea(l),a.F)a.F.onError(e);case 3:f=be(b.mimeType,b.codecs),Nk(a.F.aa,f,a.H.sequenceMode),g=a.F.aa.o,(h=g.isTextVisible()||a.m.alwaysStreamText)&&a.B==d&&(k=fm(b),a.g.set(c.ra,k),gm(a,k,0)),v(l)}})}function hm(a){var b=a.g.get(hd);b&&(bm(b),cm(b).catch(function(){}),a.g.delete(hd));a.i=null} 325function im(a,b){var c=a.g.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.tc&&(jm(a,b,!1,0,!1),c.tc=d);else if(d=c.tc)c.tc=null,jm(a,d,!0,0,!1)}}function km(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.h=b;a.A&&(b.video&&jm(a,b.video,c,d,e,f),b.audio&&jm(a,b.audio,c,d,e,f))}function lm(a,b){B(function(c){if(1==c.g)return a.i=b,a.A?b.segmentIndex?c.D(2):u(c,b.createSegmentIndex(),2):c.return();jm(a,b,!0,0,!1);v(c)})} 326function jm(a,b,c,d,e,f){var g=a.g.get(b.type);g||b.type!=hd?g&&(g.tc&&(b.trickModeVideo?(g.tc=b,b=b.trickModeVideo):g.tc=null),g.stream!=b||e)&&(b.type==hd&&Nk(a.F.aa,be(b.mimeType,b.codecs),a.H.sequenceMode),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.Da=null,g.Ih=!!f,c&&(g.Fd?g.Gf=!0:g.Xa?(g.ac=!0,g.Se=d,g.Gf=!0):(bm(g),mm(a,g,!0,d).catch(function(h){if(a.F)a.F.onError(h)}))),nm(a,g).catch(function(h){if(a.F)a.F.onError(h)})):em(a,b)} 327function nm(a,b){var c,d;return B(function(e){if(1==e.g){if(!b.bb)return e.return();c=b.stream;d=b.bb;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.bb!=d||b.stream!=c)return e.return();var f=a.F.bf();var g=Sk(a.F.aa,b.type),h=b.stream.segmentIndex.find(b.Wa?b.Wa.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Qa?k.Qa-k.pb:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.h)&&(h+=(k.Qa?k.Qa-k.pb:null)||0),k=a.F.getBandwidthEstimate(), 328f=8*h/k<(g||0)-f-Math.max(a.H.minBufferTime||0,a.m.rebufferingGoal)||b.bb.h.g>h?!0:!1):f=!1;f&&b.bb.abort();v(e)})}n.se=function(){if(this.F)for(var a=this.F.bf(),b=r(this.g.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.g.get(d);c.Da=null;var e=this.F.aa;d==hd?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Rk(e,d),e=bk(e,a));e||((null!=Sk(this.F.aa,d)||c.Xa)&&om(this,c),c.bb&&(c.bb.abort(),c.bb=null),d===hd&&(d=this.F.aa,d.B&&d.B.reset()),c.se=!0)}}; 329function om(a,b){b.Fd||b.ac||(b.Xa?(b.ac=!0,b.Se=0):null==Qk(a.F.aa,b.type)?null==b.zb&&gm(a,b,0):(bm(b),mm(a,b,!1,0).catch(function(c){if(a.F)a.F.onError(c)})))} 330function dm(a){var b,c,d,e,f,g,h,k,l,m;return B(function(q){if(1==q.g){b=id;if(!a.h)throw new F(2,5,5006);c=new Map;d=new Set;a.h.audio&&(c.set(b.He,a.h.audio),d.add(a.h.audio));a.h.video&&(c.set(b.fb,a.h.video),d.add(a.h.video));a.i&&(c.set(b.ra,a.i),d.add(a.i));e=a.F.aa;f=a.m.forceTransmux;return u(q,e.init(c,f,a.H.sequenceMode),2)}Pg(a.P);a.updateDuration();g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.g.has(k)||(m=fm(l),a.g.set(k,m),gm(a,m,0));v(q)})} 331function fm(a){return{stream:a,type:a.type,Da:null,Wa:null,lf:null,pg:null,og:null,ng:null,tc:null,endOfStream
331:!1,Xa:!1,zb:null,ac:!1,Se:0,Gf:!1,Fd:!1,se:!0,zg:!1,Rg:!1,Qd:!1,bb:null}}n.updateDuration=function(){var a=this.H.presentationTimeline.getDuration();Infinity>a?this.F.aa.ob(a):this.F.aa.ob(Math.pow(2,32))}; 332n.Wd=function(a){var b=this,c,d,e,f,g;return B(function(h){switch(h.g){case 1:Pg(b.P);if(a.Xa||null==a.zb||a.Fd)return h.return();a.zb=null;if(!a.ac){h.D(2);break}return u(h,mm(b,a,a.Gf,a.Se),3);case 3:return h.return();case 2:if(a.stream.segmentIndex){h.D(4);break}c=a.stream;return u(h,a.stream.createSegmentIndex(),5);case 5:if(c!=a.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),a.Xa||a.zb||gm(b,a,0),h.return();case 4:Ba(h,6);d=pm(b,a);null!=d&&(gm(b,a,d),a.Qd=!1);Da(h,7);break;case 6:return e= 333Ea(h),u(h,qm(b,e),8);case 8:return h.return();case 7:f=Array.from(b.g.values());if(!b.A||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,b.F.aa.endOfStream(),10);case 10:Pg(b.P),g=b.F.aa.getDuration(),0!=g&&g<b.H.presentationTimeline.getDuration()&&b.H.presentationTimeline.ob(g),v(h)}})}; 334function pm(a,b){if(rm(b))return cl(a.F.aa,b.stream.originalId||""),null;b.type==hd&&dl(a.F.aa);var c=a.F.bf(),d=b.Wa?b.Wa.endTime:c,e=Tk(a.F.aa,b.type,c),f=Math.max(a.H.minBufferTime||0,a.m.rebufferingGoal,a.m.bufferingGoal)*a.l,g=a.H.presentationTimeline.getDuration()-d,h=Sk(a.F.aa,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.g.get(hd))&&rm(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.m.updateIntervalSeconds/2;e=sm(a,b,c,h);if(!e)return a.m.updateIntervalSeconds; 335f=Infinity;g=Array.from(a.g.values());g=r(g);for(h=g.next();!h.done;h=g.next())h=h.value,rm(h)||h.Da&&!h.Da.current()||(f=Math.min(f,h.Wa?h.Wa.endTime:c));if(d>=f+a.H.presentationTimeline.g)return a.m.updateIntervalSeconds;tm(a,b,c,e).catch(function(){});return null} 336function sm(a,b,c,d){if(b.Da)return b.Da.current();if(b.Wa||d)return c=b.Wa?b.Wa.endTime:d,b.zg=!0,b.Da=b.stream.segmentIndex.Oc(c),b.Da&&b.Da.next().value;a=a.m.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.Da=b.stream.segmentIndex.Oc(d),e=b.Da&&b.Da.next().value);e||(b.Da=b.stream.segmentIndex.Oc(c),e=b.Da&&b.Da.next().value);return e} 337function tm(a,b,c,d){var e,f,g,h,k,l,m,q,p,t,w,z,x,y,D;return B(function(A){switch(A.g){case 1:e=id;f=b.stream;g=b.Da;b.Xa=!0;Ba(A,2);if(2==d.Hb())throw new F(1,1,1011);return u(A,um(a,b,d),4);case 4:Pg(a.P);if(a.j)return A.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.m.lowLatencyMode&&k&&h&&!d.o)return q=new Uint8Array(0),t=p=!1,w=function(C){var G,J,M;return B(function(N){if(p)return N.return();t=!0;Pg(a.P);if(a.j)return N.return();q=vm(q,C);G=!1;J=0; 338(new eh).box("mdat",function(O){J=O.size+O.start;G=!0}).parse(q,!1,!0);if(!G)return N.D(0);M=q.subarray(0,J);q=q.subarray(J);return u(N,wm(a,b,c,f,d,M),0)})},u(A,xm(a,b,d,w),11);l=xm(a,b,d);return u(A,l,7);case 7:m=A.h;Pg(a.P);if(a.j)return A.return();if(!d.o){A.D(8);break}return u(A,ym(m,d,g),9);case 9:m=A.h;case 8:return Pg(a.P),b.ac?(b.Xa=!1,gm(a,b,0),A.return()):u(A,wm(a,b,c,f,d,m),6);case 11:z=A.h;if(t){A.D(6);break}p=!0;Pg(a.P);return a.j?A.return():b.ac?(b.Xa=!1,gm(a,b,0),A.return()):u(A,wm(a, 339b,c,f,d,z),6);case 6:Pg(a.P);if(a.j)return A.return();b.Wa=d;g.next();b.Xa=!1;b.Rg=!1;x=a.F.aa.Eb();y=x[b.type];tb(JSON.stringify(y));b.ac||a.F.Eg(d.startTime,d.endTime,b.type);gm(a,b,0);Da(A,0);break;case 2:D=Ea(A);Pg(a.P,D);if(a.j)return A.return();b.Xa=!1;if(7001==D.code)b.Xa=!1,bm(b),gm(a,b,0),A.D(0);else if(b.type==e.ra&&a.m.ignoreTextStreamFailures)a.g.delete(e.ra),A.D(0);else if(3017==D.code)zm(a,b,D),A.D(0);else return b.Qd=!0,D.severity=2,u(A,qm(a,D),0)}})} 340function ym(a,b,c){var d,e,f,g;return B(function(h){if(1==h.g)return d=b.o,d.cryptoKey?h.D(2):u(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=Fb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c.g,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 vm(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c} 341function zm(a,b,c){if(!Array.from(a.g.values()).some(function(e){return e!=b&&e.Rg})){var d=Math.round(100*a.l);if(20<d)a.l-=.2;else if(4<d)a.l-=.04;else{b.Qd=!0;a.j=!0;a.F.onError(c);return}b.Rg=!0}gm(a,b,4)} 342function um(a,b,c){var d,e,f,g,h,k,l,m;return B(function(q){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.pg||e!=b.og||f!=b.ng)h=function(){var p;return B(function(t){if(1==t.g)return Ba(t,2),b.og=e,b.ng=f,b.pg=g,u(t,el(a.F.aa,b.type,g,e,f,a.H.sequenceMode),4);if(2!=t.g)return Da(t,0);p=Ea(t);b.og=null;b.ng=null;b.pg=null;throw p;})},d.push(h());!Vj(c.h,b.lf)&&(b.lf=c.h)&&(k=xm(a,b,c.h),l=function(){var p,t,w,z;return B(function(x){switch(x.g){case 1:return Ba(x, 3432),u(x,k,4);case 4:return p=x.h,Pg(a.P),t=new eh,t.box("moov",jh).box("trak",jh).box("mdia",jh).ea("mdhd",function(y){y=Lj(y.reader||0,y.version||0);c.h.timescale=y.timescale}).parse(p),w=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(x,a.F.Lh(b.type,p),5);case 5:return u(x,Uk(a.F.aa,b.type,p,null,w),6);case 6:Da(x,0);break;
343case 2:throw z=Ea(x),b.lf=null,z;}})},a.F.fl(c.startTime,c.h),d.push(l()));m=b.Wa?b.Wa.j:null;if(a.H.sequenceMode){if(c.j!=m||b.zg)b.zg=!1,d.push(fl(a.F.aa,b.type,c.startTime))}else c.j!= 344m&&d.push(fl(a.F.aa,b.type,c.timestampOffset));return u(q,Promise.all(d),0)})} 345function wm(a,b,c,d,e,f){var g,h,k,l,m,q;return B(function(p){switch(p.g){case 1:g=d.closedCaptions&&0<d.closedCaptions.size;k=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.m.dispatchAllEmsgBoxes;l=a.m.parsePrftBox&&!a.o;if(k||l)h=new eh;k&&h.ea("emsg",function(t){var w=d.emsgSchemeIdUris;if(0===t.version){var z=t.reader.le();var x=t.reader.le();var y=t.reader.N();var D=t.reader.N();var A=t.reader.N();var C=t.reader.N();var G=e.startTime+D/y}else y=t.reader.N(),G=t.reader.Ra()/y+e.timestampOffset, 346D=G-e.startTime,A=t.reader.N(),C=t.reader.N(),z=t.reader.le(),x=t.reader.le();t=t.reader.Ya(t.reader.Ua()-t.reader.za());if(w&&w.includes(z)||a.m.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==z?a.F.hl():"https://aomedia.org/emsg/ID3"==z?(w=ik(t),w.length&&e&&a.F.il([{cueTime:e.startTime,data:t,frames:w,dts:e.startTime,pts:e.startTime}],0,e.endTime)):(w=(new Map).set("detail",{startTime:G,endTime:G+A/y,schemeIdUri:z,value:x,timescale:y,presentationTimeDelta:D,eventDuration:A,id:C,messageData:t}), 347w=new ug("emsg",w),a.F.onEvent(w))});l&&h.ea("prft",function(t){a:{if(!a.o&&e.h.timescale){t.reader.N();var w=t.reader.N(),z=t.reader.N();w=1E3*w+z/Math.pow(2,32)*1E3;if(0===t.version)var x=t.reader.N();else try{x=t.reader.Ra()}catch(y){a.o=!0;x=void 0;break a}t=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+w)).getTime();x=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-x/e.h.timescale*1E3)});x=new ug("prft",x);a.F.onEvent(x);a.o=!0}x=void 0}return x});(k||l)&&h.parse(f); 348return u(p,Am(a,b,c),2);case 2:return Pg(a.P),m=b.se,b.se=!1,q=b.Ih,b.Ih=!1,u(p,a.F.Lh(b.type,f),3);case 3:return u(p,Uk(a.F.aa,b.type,f,e,g,m,q),4);case 4:Pg(a.P),v(p)}})}function Am(a,b,c){var d,e,f,g;return B(function(h){if(1==h.g){d=Math.max(a.m.bufferBehind,a.H.presentationTimeline.g);e=Qk(a.F.aa,b.type);if(null==e)return h.return();f=c-e;g=f-d;return.01>=g?h.return():u(h,a.F.aa.remove(b.type,e,e+g),2)}Pg(a.P);v(h)})} 349function rm(a){return a&&a.type==hd&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}function xm(a,b,c,d){var e,f,g,h,k;return B(function(l){if(1==l.g)return e=Ng,f=Zl(c.ib(),c.pb,c.Qa,a.m.retryParameters,d),g=b.stream,a.F.modifySegmentRequest(f,{type:g.type,init:c instanceof Uj,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.F.nc.request(e,f),b.bb=h,u(l,h.promise,2);k=l.h;b.bb=null;return l.return(k.data)})} 350function mm(a,b,c,d){var e,f;return B(function(g){if(1==g.g)return b.ac=!1,b.Gf=!1,b.Se=0,b.Fd=!0,b.Wa=null,b.lf=null,b.Da=null,d?(e=a.F.bf(),f=a.F.aa.getDuration(),u(g,a.F.aa.remove(b.type,e+d,f),3)):u(g,a.F.aa.clear(b.type),4);if(3!=g.g)return Pg(a.P),c?u(g,a.F.aa.flush(b.type),3):g.D(3);Pg(a.P);b.Fd=!1;b.endOfStream=!1;b.Xa||b.zb||gm(a,b,0);v(g)})} 351function gm(a,b,c){var d=b.type;if(d!=hd||a.g.has(d))b.zb=(new ld(function(){var e;return B(function(f){if(1==f.g)return Ba(f,2),u(f,a.Wd(b),4);if(2!=f.g)return Da(f,0);e=Ea(f);if(a.F)a.F.onError(e);v(f)})})).Y(c)}function bm(a){null!=a.zb&&(a.zb.stop(),a.zb=null)}function cm(a){return B(function(b){return a.bb?u(b,a.bb.abort(),0):b.D(0)})}function qm(a,b){return B(function(c){if(1==c.g)return u(c,mg(a.C),2);Pg(a.P);a.F.onError(b);b.handled||a.m.failureCallback(b);v(c)})};function Bm(a,b){var c=Cm(),d=this;this.o=b;this.i=a;this.j=c;this.A=null;this.l=[];this.h=this.g=null;this.B=Promise.resolve().then(function(){return Dm(d)});this.P=new Og(function(){return Em(d)})}Bm.prototype.destroy=function(){return this.P.destroy()};function Em(a){var b,c,d;return B(function(e){if(1==e.g)return a.h&&a.h.abort(),Fm(a),u(e,a.B,2);a.g&&a.g.ia.qc();b=r(a.l);for(c=b.next();!c.done;c=b.next())d=c.value,d.ia.qc();a.g=null;a.l=[];a.o=null;v(e)})} 352function Gm(a,b){var c={Zc:function(){},qf:function(){},qc:function(){},onError:function(){},tf:function(){},Eq:function(){}};a.l.push({create:b,ia:c});a.h&&a.h.abort();Fm(a);return c} 353function Dm(a){return B(function(b){if(a.P.g)b=b.D(0);else{if(0==a.l.length||a.g&&!a.g.hc)var c=!1;else{a.g&&(a.g.ia.qc(),a.g=null);c=a.l.shift();var d=c.create(a.j);d?(c.ia.Zc(),a.g={node:d.node,payload:d.payload,hc:d.hc,ia:c.ia}):c.ia.tf();c=!0}c?c=Promise.resolve():a.g?c=Hm(a):(a.o.cl(a.i),a.A=new jd,c=a.A);b=u(b,c,1)}return b})} 354function Hm(a){var b,c;return B(function(d){switch(d.g){case 1:return a.i=a.o.zk(a.i,a.j,a.g.node,a.g.payload),Ba(d,2),a.h=a.o.Uj(a.i,a.j,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.ia.qf(),a.g=null);Da(d,0);break;case 2:b=Ea(d);if(7001==b.code)a.g.ia.qc();else a.g.ia.onError(b);a.g=null;a.h=null;c=a;return u(d,a.o.handleError(a.j,b),5);case 5:c.i=d.h,v(d)}})}function Fm(a){a.A&&(a.A.resolve(),a.A=null)};function Im(a){var b=[],c=700<=a.fontWeight,d="italic"==a.fontStyle,e=a.textDecoration.includes("underline");c&&b.push("b");d&&b.push("i");e&&b.push("u");c=b.reduce(function(f,g){return f+"<"+g+">"},"");b=b.reduceRight(function(f,g){return f+"</"+g+">"},"");return a.lineBreak?"\n":a.nestedCues.length?a.nestedCues.map(Im).join(""):c+a.payload+b} 355function Jm(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.isContainer)Jm(c.nestedCues,b);else{var d=c.clone();d.nestedCues=[];d.payload=Im(c);b.push(d)}return b};function Km(a){this.g=null;for(var b=r(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}n=Km.prototype;n.remove=function(a,b){if(!this.g)return!1;Lm(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0}; 356n.append=function(a){var b=Jm(a,[]),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=r(b);for(var e=b.next();!e.done;d={Ec:d.Ec},e=b.next())d.Ec=e.value,a.some(function(f){return function(g){return g.startTime==f.Ec.startTime&&g.endTime==f.
356Ec.endTime&&g.text==f.Ec.payload?!0:!1}}(d))||(e=Mm(d.Ec))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)- 357c.indexOf(g)});a=r(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};n.destroy=function(){this.g&&(Lm(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};n.isTextVisible=function(){return"showing"==this.g.mode};n.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"}; 358function Mm(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b} 359function Lm(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=r(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}E("shaka.text.SimpleTextDisplayer",Km);Km.prototype.setTextVisibility=Km.prototype.setTextVisibility;Km.prototype.isTextVisible=Km.prototype.isTextVisible;Km.prototype.destroy=Km.prototype.destroy;Km.prototype.append=Km.prototype.append;Km.prototype.remove=Km.prototype.remove;function Nm(){}function Om(a){return document.createElement(a)}function Pm(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Qm(a){for(;a.firstChild;)a.removeChild(a.firstChild)}E("shaka.util.Dom",Nm);Nm.removeAllChildren=Qm;function Rm(a,b){var c=this;this.M=!1;this.i=[];this.C=a;this.o=b;this.g=Om("div");this.g.classList.add("zx-Fx-ye");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.o.appendChild(this.g);this.B=(new md(function(){Sm(c)})).ua(.25);this.h=new Map;this.A=new Qg;this.A.s(document,"fullscreenchange",function(){Sm(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){Sm(c, 360!0)}),this.l.observe(this.g));this.j=new Map}n=Rm.prototype;n.append=function(a){var b=ma(this.i).concat(),c={};a=r(a);for(var d=a.next();!d.done;c={Ce:c.Ce},d=a.next())c.Ce=d.value,b.some(function(e){return function(f){return Ne(f,e.Ce)}}(c))||this.i.push(c.Ce);Sm(this)};n.destroy=function(){this.o.removeChild(this.g);this.g=null;this.M=!1;this.i=[];this.B&&this.B.stop();this.h.clear();this.A&&(this.A.release(),this.A=null);this.l&&(this.l.disconnect(),this.l=null)}; 361n.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});Sm(this,c>this.i.length);return!0};n.isTextVisible=function(){return this.M};n.setTextVisibility=function(a){this.M=a};function Tm(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1} 362function Um(a,b,c,d,e){var f=!1,g=[],h=[];b=r(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,q=l?l.gj:null;l&&(g.push(l.cg),l.qe&&g.push(l.qe),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Tm(a,q)||(f=!0):(Vm(a,k,e),l=a.h.get(k),q=l.gj,f=!0));0<k.nestedCues.length&&q&&Um(a,k.nestedCues,q,d,e);e.pop()}if(f){d=r(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,t){return p.startTime!= 363t.startTime?p.startTime-t.startTime:p.endTime-t.endTime});h=r(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.qe?(c.appendChild(d.qe),d.qe.appendChild(d.cg)):c.appendChild(d.cg)}}function Sm(a,b){if(a.g){var c=a.C.currentTime;if(!a.M||(void 0===b?0:b)){b=r(a.j.values());for(var d=b.next();!d.done;d=b.next())Qm(d.value);Qm(a.g);a.h.clear();a.j.clear()}if(a.M){b=new Map;d=r(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));Um(a,a.i,a.g,c,[])}}} 364function Vm(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=Om(e);"br"!=e&&Wm(a,f,b,c,d);c=null;
364if(b.region&&b.region.id)if(c=b.region,e=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==Ue?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Ue?"%":"px"),a.j.has(e))c=a.j.get(e);else{var g=Om("span"),h=c.heightUnits==Ue?"%":"px",k=c.widthUnits==Ue?"%":"px",l=c.viewportAnchorUnits==Ue?"%":"px";g.id="shaka-text-region---"+e;g.classList.add("shaka-text-region"); 365g.style.height=c.height+h;g.style.width=c.width+k;g.style.position="absolute";g.style.top=c.viewportAnchorY+l;g.style.left=c.viewportAnchorX+l;g.style.display="flex";g.style.flexDirection="column";g.style.alignItems="center";g.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.j.set(e,g);c=g}e=f;d&&(e=Om("span"),e.classList.add("zx-Fx-Tx"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,{cg:f, 366gj:e,qe:c})} 367function Wm(a,b,c,d,e){var f=b.style,g=0==c.nestedCues.length,h=1<d.length;f.whiteSpace="pre-wrap";var k=c.payload.replace(/\s+$/g,function(m){return"\u00a0".repeat(m.length)});f.webkitTextStrokeColor=c.textStrokeColor;f.webkitTextStrokeWidth=c.textStrokeWidth;f.color=c.color;f.direction=c.direction;f.opacity=c.opacity;f.paddingLeft=Xm(c.linePadding,c,a.o);f.paddingRight=Xm(c.linePadding,c,a.o);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat= 368"no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=Om("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=Ym(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent="before"==c.displayAlign? 369"flex-start":"center"==c.displayAlign?"center":"flex-end");g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=Xm(c.fontSize,c,a.o);null!=c.line&&1==c.lineInterpretation&&(f.position="absolute",c.writingMode==He?(f.width="100%",c.lineAlign==Je?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=100-c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==Je?f.left=c.line+"%":"end"==c.lineAlign&& 370(f.right=100-c.line+"%")):(f.height="100%",c.lineAlign==Je?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=100-c.line+"%")));f.lineHeight=c.lineHeight;null!=c.position&&(c.writingMode==He?f.paddingLeft=c.position:f.paddingTop=c.position);"line-left"==c.positionAlign?f.cssFloat="left":"line-right"==c.positionAlign&&(f.cssFloat="right");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode|| 371(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==He?f.width=c.size+"%":f.height=c.size+"%")}function Xm(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),Im:d[2]}:null;if(!d)return a;var e=d.value;switch(d.Im){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}function Ym(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null} 372E("shaka.text.UITextDisplayer",Rm);Rm.prototype.setTextVisibility=Rm.prototype.setTextVisibility;Rm.prototype.isTextVisible=Rm.prototype.isTextVisible;Rm.prototype.remove=Rm.prototype.remove;Rm.prototype.destroy=Rm.prototype.destroy;Rm.prototype.append=Rm.prototype.append;function Zm(a,b){function c(f){for(var g=f,h=r(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.start<f&&(g+=k.end-k.start);f=Math.floor(g/3600);h=Math.floor(g/60%60);k=Math.floor(g%60);g=Math.floor(1E3*g%1E3);return(10>f?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=Jm(a,[]);a="WEBVTT\n\n";d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];
372switch(f.textAlign){case "left":g.push("align:left"); 373break;case "right":g.push("align:right");break;case Ge: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}E("shaka.text.WebVttGenerator",function(){});function $m(a,b){this.F=a;this.m=b;this.h="";this.l=void 0;this.g=!1;this.j=!0;this.i=!1}function an(a,b,c){try{if(a.m.enabled){var d={d:1E3*c.duration,st:a.F.ha()?bn:cn};d.ot=dn(c);var e=d.ot===en||d.ot===fn||d.ot===gn||d.ot===hn;e&&(d.bl=jn(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==hn&&(d.tb=kn(a,d.ot)/1E3);ln(a,b,d)}}catch(f){pb("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}} 374function mn(a,b,c){try{if(!a.m.enabled)return b;var d=nn(a);a:{switch(c){case "video/webm":case "video/mp4":var e=gn;break a;case "application/x-mpegurl":e=on;break a}e=void 0}d.ot=e;d.su=!0;var f=pn(d);return qn(b,f)}catch(g){return pb("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function nn(a){a.h||(a.h=a.m.sessionId||window.crypto.g());return{v:1,sf:a.l,sid:a.h,cid:a.m.contentId,mtp:a.F.getBandwidthEstimate()/1E3}} 375function ln(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.m.useHeaders:d;if(a.m.enabled){Object.assign(c,nn(a));c.pr=a.F.Sb();var e=c.ot===en||c.ot===gn;a.i&&e&&(c.bs=!0,c.su=!0,a.i=!1);null==c.su&&(c.su=a.j);if(d)a=rn(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=pn(c);f&&(b.uris=b.uris.map(function(g){return qn(g,f)}))}}} 376function dn(a){var b=a.type;if(a.init)return sn;if("video"==b)return a.codecs.includes(",")?gn:en;if("audio"==b)return fn;if("text"==b)return"application/mp4"===a.mimeType?hn:tn}function jn(a,b){b=a.F.Eb()[b];if(!b.length)return NaN;var c=a.F.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN} 377function kn(a,b){var c=a.F.jb();if(!c.length)return NaN;a=c[0];c=r(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 en:return a.videoBandwidth||NaN;case fn:return a.audioBandwidth||NaN;default:return a.bandwidth}} 378function pn(a){function b(q){return 100*c(q/100)}function c(q){return Math.round(q)}function d(q){return!Number.isNaN(q)&&null!=q&&""!==q&&!1!==q}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(q){return encodeURIComponent(q)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=r(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"=== 379l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function rn(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=r(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=pn(e[a]))&&(c["CMCD-"+d[a]]=f);return c} 380function qn(a,b){if(!b||a.includes("offline:"))return a;a=new Ic(a);a.j.set("CMCD",b);return a.toString()}var on="m",fn="a",en="v",gn="av",sn="i",tn="c",hn="tt",cn="v",bn="l";E("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Ep:"s",kp:"o"});function un(){} 381function vn(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]=yg(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=yg(l)),k=vn(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?(nb("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&ob("Unexpected number of arguments for "+k),a[h]=b[h]):(nb("Invalid config, unrecognized key "+ 382k),g=!1)}return g}function wn(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 xn(a,b){return a&&b}E("shaka.util.ConfigUtils",un);un.convertToConfigObject=wn;un.mergeConfigObjects=vn;function yn(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}function zn(a,b,c){var d=Math.pow(a.g,b);c=c*(1-d)+d*a.h;isNaN(c)||(a.h=c,a.i+=b)}function An(a){return a.h/(1-Math.pow(a.g,a.i))};function Bn(){this.h=new yn(2);this.j=new yn(5);this.g=0;this.i=128E3;this.l=16E3}Bn.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)};Bn.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(An(this.h),An(this.j))};function Cn(){var a=this;this.l=null;this.j=!1;this.g=new Bn;navigator.connection&&navigator.connection.addEventListener&&(this.B=function(){if(a.m.useNetworkInformation&&a.j){a.g=new Bn;a.m&&a.g.configure(a.m.advanced);var b=a.chooseVariant();b&&a.l(b)}},navigator.connection.addEventListener("change",this.B));this.o=[];this.C=1;this.K=!1;this.B=this.h=this.i=this.m=this.A=null;this.I=new md(function(){if(a.m.restrictToElementSize){var b=a.chooseVariant();b&&a.l(b)}})}n=Cn.prototype; 383n.stop=function(){this.l=null;this.j=!1;this.o=[];this.C=1;this.i=this.A=null;this.h&&(this.h.disconnect(),this.h=null);this.I.stop()};n.release=function(){navigator.connection&&navigator.connection.removeEventListener&&(navigator.connection.removeEventListener("change",this.B),this.B=null);this.I=null};n.init=function(a){this.l=a}; 384n.chooseVariant=function(){var a=Infinity,b=Infinity;this.m.restrictToScreenSize&&(b=this.m.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=window.screen.height*b,b*=window.screen.width);this.h&&this.m.restrictToElementSize&&(b=this.m.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=this.i.clientWidth*b,b*=this.i.clientHeight);a=Dn(this.m.restrictions,this.o,a,b);b=this.g.getBandwidthEstimate(En(this));this.o.length&&!a.length&&(a=Dn(null,this.o,Infinity,Infinity),a=[a[0]]);for(var c=a[0]||null, 385d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.C)?1:Math.abs(this.C),g=f*e.bandwidth/this.m.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}f=f*h.bandwidth/this.m.bandwidthUpgradeTarget;b>=g&&b<=f&&c.bandwidth!=e.bandwidth&&(c=e)}this.A=Date.now();return c};n.enable=function(){this.j=!0};n.disable=function(){this.j=!1}; 386n.segmentDownloaded=function(a,b){var c=this.g;if(!(b<c.l)){var d=8E3*b/a;a/=1E3;c.g+=b;zn(c.h,a,d);zn(c.j,a,d)}if(null!=this.A&&this.j)a:{if(!this.K){b=this.g;if(!(b.g>=b.i))break a;this.K=!0}else if(Date.now()-this.A<1E3*this.m.switchInterval)break a;b=this.chooseVariant();this.g.getBandwidthEstimate(En(this));b&&this.l(b)}};n.getBandwidthEstimate=function(){return this.g.getBandwidthEstimate(En(this))};n.setVariants=function(a){this.o=a};n.playbackRateChanged=function(a){this.C=a}; 387n.setMediaElement=function(a){var b=this;this.i=a;this.h&&(this.h.disconnect(),this.h=null);this.i&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.I.Y(Fn)}),this.h.observe(this.i))};n.configure=function(a){this.m=a;this.g&&this.m&&this.g.configure(this.m.advanced)};function En(a){var b=a.m.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.m.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b} 388function Dn(a,b,c,d){a&&(b=b.filter(function(e){return tf(e,a,{width:d,height:c})}));return b.sort(function(e,f){return e.bandwidth-f.bandwidth})}E("shaka.abr.SimpleAbrManager",Cn);Cn.prototype.configure=Cn.prototype.configure;Cn.prototype.setMediaElement=Cn.prototype.setMediaElement;Cn.prototype.playbackRateChanged=Cn.prototype.playbackRateChanged;Cn.prototype.setVariants=Cn.prototype.setVariants;Cn.prototype.getBandwidthEstimate=Cn.prototype.getBandwidthEstimate;Cn.prototype.segmentDownloaded=Cn.prototype.segmentDownloaded; 389Cn.prototype.disable=Cn.prototype.disable;Cn.prototype.enable=Cn.prototype.enable;Cn.prototype.chooseVariant=Cn.prototype.chooseVariant;Cn.prototype.init=Cn.prototype.init;Cn.prototype.release=Cn.prototype.release;Cn.prototype.stop=Cn.prototype.stop;var Fn=1;function Gn(){}function Hn(a){a=Fd(a);return(new Ic(a)).h}function In(a,b,c){function d(h){Ib(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Fb(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new F(2,6,6015);var e;"string"==typeof b?e=Hd(b,!0):e=b;a=Fd(a);a=Hd(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}E("shaka.util.FairPlayUtils",Gn); 390Gn.commonFairPlayResponse=function(a,b){if(2===a){try{var c=Cd(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=Gb(Od(c)))}};Gn.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};Gn.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")}; 391Gn.verimatrixFairPlayRequest=function(a,b){2===a&&(a=Fb(b.body),a=Nd(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=Gd("spc="+a))};Gn.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Fd(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=new Uint16Array(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return In(a,d,b)}; 392Gn.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Fd(a).split(";").pop();return In(a,c,b)};Gn.verimatrixInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Fd(a).split("skd://").pop();return In(a,c,b)};Gn.initDataTransform=In;Gn.defaultGetContentId=Hn; 393Gn.isFairPlaySupported=function(){var a;return B(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},Ba(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);Ea(b);return b.return(!1)})};function Jn(){} 394function Kn(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:lg(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(g,h,k){"com.apple.fps.1_0"==k.keySystem&&"skd"==h&&(h=k.serverCertificate,k=Hn(g),g=In(g,k,h));return g},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:sd()},c={retryParameters:lg(),availabilityWindowOverride:NaN,disableAudio:!1, 395disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey", 396"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(g){return xn([g],g)},sequenceMode:!1},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1, 397mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3}},d={retryParameters:lg(),failureCallback:function(g){return xn([g],void 0)},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmux:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1, 398autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1};if(td("Web0S")||ud()||td("CrKey"))d.stallSkip=0;var e={trackSelectionCallback:function(g){return B(function(h){return h.return(g)})},downloadSizeCallback:function(g){var h;return B(function(k){if(1==k.g)return navigator.storage&&navigator.storage.estimate?u(k,navigator.storage.estimate(),3):k.return(!0);h=k.h;return k.return(h.usage+g< 399.95*h.quota)})},progressCallback:function(g,h){return xn([g,h],void 0)},usePersistentLicense:!0,numberOfParallelDownloads:5},f={drm:b,manifest:c,streaming:d,mediaSource:{sourceBufferExtraFeatures:""},offline:e,abrFactory:function(){return new Cn},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0, 400maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1},autoShowText:3,preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0, 401maxHeight: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}};e.trackSelectionCallback=function(g){return B(function(h){return h.return(Ln(g,f.preferredAudioLanguage))})};return f} 402function Mn(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 vn(a,b,c||Kn(),d,"")} 403function Ln(a,b){var c=a.filter(function(g){return"variant"==g.type}),d=[],e=ue(b,c.map(function(g){return g.language}));e&&(d=c.filter(function(g){return me(g.language)==e}));0==d.length&&(d=c.filter(function(g){return g.primary}));0==d.length&&(c.map(function(g){return g.language}),d=c);var f=d.filter(function(g){return g.height&&480>=g.height});f.length&&(f.sort(function(g,h){return h.height-g.height}),d=f.filter(function(g){return g.height==f[0].height}));b=[];d.length&&(c=Math.floor(d.length/ 4042),d.sort(function(g,h){return g.bandwidth-h.bandwidth}
404),b.push(d[c]));a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,d.type!=hd&&"image"!=d.type||b.push(d);return b}E("shaka.util.PlayerConfiguration",Jn);Jn.mergeConfigObjects=Mn;Jn.createDefault=Kn;function Nn(){this.g=null;this.h=[]}function On(a,b){if(null==a.g)a.g={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.g.duration=c-a.g.timestamp;a.g.state!=b&&(a.h.push(a.g),a.g={timestamp:c,state:b,duration:0})}}function Pn(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=r(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c} 405function Qn(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(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 Rn(){this.h=this.i=null;this.g=[]}function Sn(a,b,c){a.h!=b&&(a.h=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Tn(){this.B=this.C=this.L=this.I=this.M=this.j=this.K=this.o=this.i=this.ba=this.ma=this.S=this.W=this.X=this.l=this.A=NaN;this.g=new Nn;this.h=new Rn};function H(a,b){xg.call(this);var c=this;this.j=Un;this.kf=this.g=null;this.M=!1;this.df=new Qg;this.xd=new Qg;this.A=new Qg;this.wd=this.H=this.gf=this.B=this.h=this.Na=this.W=this.fj=this.X=this.Oa=this.S=this.Ne=this.L=this.Hc=this.C=this.I=this.l=this.Z=null;this.Cd=!1;this.ug=this.o=null;this.Ig=1E9;this.m=Vn(this);this.ld={width:Infinity,height:Infinity};this.i=null;this.vb=new cg(this.m.preferredAudioLanguage,this.m.preferredVariantRole,this.m.preferredAudioChannelCount);this.wb=this.m.preferredTextLanguage; 406this.Bd=this.m.preferredTextRole;this.zd=this.m.preferForcedSubs;this.yd=[];this.Dd=null;b&&b(this);this.Z=Wn(this);this.Z.dh(this.m.streaming.forceHTTPS);this.K=null;Xn&&(this.K=Xn());this.df.s(window,"online",function(){c.Sg()});this.ab={name:"detach"};this.Bb={name:"attach"};this.va={name:"unload"};this.Ug={name:"manifest-parser"};this.Hg={name:"manifest"};this.Ab={name:"media-source"};this.yg={name:"drm-engine"};this.ba={name:"load"};this.xh={name:"src-equals-drm-engine"};this.Ic={name:"src-equals"}; 407var d=new Map;d.set(this.Bb,function(e,f){return rg(Yn(c,e,f))});d.set(this.ab,function(e){e.V&&(c.xd.Kb(),e.V=null);c.K&&c.K.release();c.g=null;e=Promise.resolve();return rg(e)});d.set(this.va,function(e){return rg(Zn(c,e))});d.set(this.Ab,function(e){e=$n(c,e);return rg(e)});d.set(this.Ug,function(e,f){e=ao(c,e,f);return rg(e)});d.set(this.Hg,function(e){return bo(c,e)});d.set(this.yg,function(e){e=co(c,e);return rg(e)});d.set(this.ba,function(e,f){return rg(eo(c,e,f))});d.set(this.xh,function(e, 408f){e=fo(c,e,f);return rg(e)});d.set(this.Ic,function(e,f){return go(c,e,f)});this.eb=new Bm(this.ab,{zk:function(e,f,g,h){var k=null;e==c.ab&&(k=g==c.ab?c.ab:c.Bb);e==c.Bb&&(k=g==c.ab||f.V!=h.V?c.ab:g==c.Bb?c.Bb:g==c.Ab||g==c.ba?c.Ab:g==c.Ic?c.xh:null);e==c.Ab&&(k=g==c.ba&&f.V==h.V?c.Ug:c.va);e==c.Ug&&(k=ho(c.ba,c.Hg,c.va,g,f,h));e==c.Hg&&(k=ho(c.ba,c.yg,c.va,g,f,h));e==c.yg&&(k=ho(c.ba,c.ba,c.va,g,f,h));e==c.xh&&(k=g==c.Ic&&f.V==h.V?c.Ic:c.va);if(e==c.ba||e==c.Ic)k=c.va;e==c.va&&(k=h.V&&f.V==h.V? 409c.Bb:c.ab);return k},Uj:function(e,f,g){c.dispatchEvent(io("onstatechange",(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return B(function(f){return 1==f.g?u(f,Zn(c,e),2):f.return(e.V?c.Bb:c.ab)})},cl:function(e){c.dispatchEvent(io("onstateidle",(new Map).set("state",e.name)))}});this.ej=new md(function(){uf(c.H.variants,c.m.restrictions,c.ld)&&jo(c)});a&&this.Ed(a,!0)}ua(H,xg);function ko(a){null!=a.W&&(a.W.release(),a.W=null)} 410function lo(a,b){if(b.lcevc.enabled){var c=a.jb();c&&c[0]&&c[0].videoMimeType==mo.ts&&(rd()||navigator.userAgent.match(/Edge\//))&&(b.streaming.forceTransmux||ob("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled."));ko(a);null==a.W&&(a.W=new Ek(a.g,a.fj,b.lcevc),a.I&&(a.I.K=a.W))}else ko(a)}function io(a,b){return new ug(a,b)}n=H.prototype; 411n.destroy=function(){var a=this,b;return B(function(c){switch(c.g){case 1:if(a.j==no)return c.return();ko(a);a.j=no;b=Gm(a.eb,function(){return{node:a.ab,payload:Cm(),hc:!1}});return u(c,new Promise(function(d){b.Zc=function(){};b.qf=function(){d()};b.qc=function(){d()};b.onError=function(){d()};b.tf=function(){d()}}),2);case 2:return u(c,a.eb.destroy(),3);case 3:a.df&&(a.df.release(),a.df=null);a.xd&&(a.xd.release(),a.xd=null);a.A&&(a.A.release(),a.A=null);a.ug=null;a.m=null;a.i=null;a.kf=null;a.X= 412null;if(!a.Z){c.D(4);break}return u(c,a.Z.destroy(),5);case 5:a.Z=null;case 4:a.o&&(a.o.release(),a.o=null),xg.prototype.release.call(a),v(c)}})};
413function oo(){window.Promise||ob("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||td("Trident/"))return!1;var a=yd();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:nd()?!0:od("application/x-mpegurl")} 414n.Ed=function(a,b){b=void 0===b?!0:b;if(this.j==no)return Promise.reject(po());var c=Cm();c.V=a;nd()||(b=!1);var d=b?this.Ab:this.Bb;a=Gm(this.eb,function(){return{node:d,payload:c,hc:!1}});a.Zc=function(){};return qo(a)};n.Jh=function(a){this.fj=a};n.detach=function(){var a=this;if(this.j==no)return Promise.reject(po());var b=Gm(this.eb,function(){return{node:a.ab,payload:Cm(),hc:!1}});b.Zc=function(){};return qo(b)}; 415n.yh=function(a){var b=this;a=void 0===a?!0:a;if(this.j==no)return Promise.reject(po());this.Cd=!1;nd()||(a=!1);ko(this);var c=Cm(),d=Gm(this.eb,function(e){var f=e.V&&a?b.Ab:e.V?b.Bb:b.ab;c.V=e.V;return{node:f,payload:c,hc:!1}});d.Zc=function(){};return qo(d)};n.Om=function(a){this.Dd=a}; 416n.load=function(a,b,c){var d=this;this.Dd=null;this.Cd=!1;if(this.j==no)return Promise.reject(po());this.dispatchEvent(io("loading"));var e=Cm();e.uri=a;e.mh=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=ro(this,e)?this.Ic:this.ba,g=Gm(this.eb,function(h){if(null==h.V)return null;e.V=h.V;return{node:f,payload:e,hc:!0}});this.i=new Tn;this.X=so(this);g.Zc=function(){};return new Promise(function(h,k){g.tf=function(){return k(new F(2,7,7002))};g.qf=function(){h();d.dispatchEvent(io("loaded"))}; 417g.qc=function(){return k(po())};g.onError=function(l){return k(l)}})};function ro(a,b){if(!nd())return!0;var c=b.mimeType,d=b.uri||"";c||(c=Bi(d),c=mo[c]);if(c){if(""==(b.V||qd()).canPlayType(c))return!1;if(!nd()||!(c in Ai||Bi(d)in Ci)||("application/x-mpegurl"===c||"application/vnd.apple.mpegurl"===c)&&a.m.streaming.preferNativeHls)return!0;if(wd())return a.m.streaming.useNativeHlsOnSafari}return!1} 418function Yn(a,b,c){null==b.V&&(b.V=c.V,a.xd.s(b.V,"error",function(){var d=to(a);d&&uo(a,d)}));a.g=b.V;return Promise.resolve()} 419function Zn(a,b){var c,d,e,f,g,h,k,l,m;return B(function(q){switch(q.g){case 1:return a.j!=no&&(a.j=Un),c=a.yd.map(function(p){return p()}),a.yd=[],u(q,Promise.all(c),2);case 2:a.dispatchEvent(io("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.Oa&&(a.Oa.release(),a.Oa=null);b.V&&a.A.Kb();a.ej.stop();a.Hc&&(a.Hc.release(),a.Hc=null);a.Ne&&(a.Ne.stop(),a.Ne=null);if(!a.B){q.D(3);break}return u(q,a.B.stop(),4);case 4:a.B=null,a.gf=null;case 3:if(!a.o){q.D(5);break}return u(q,a.o.stop(),5); 420case 5:if(!a.h){q.D(7);break}return u(q,a.h.destroy(),8);case 8:a.h=null;case 7:a.L&&(a.L.release(),a.L=null);a.C&&(a.C.release(),a.C=null);if(!a.I){q.D(9);break}return u(q,a.I.destroy(),10);case 10:a.I=null;case 9:if(a.K)a.K.onAssetUnload();if(!b.V||!b.V.src){q.D(11);break}return u(q,new Promise(function(p){return(new md(p)).Y(.1)}),12);case 12:for(b.V.removeAttribute("src"),b.V.load();b.V.lastChild;)b.V.removeChild(b.V.firstChild);case 11:if(!a.l){q.D(13);break}return u(q,a.l.destroy(),14);case 14:a.l= 421null;case 13:a.wd=null;a.S=null;if(a.H){d=r(a.H.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.H.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.H=null;a.i=new Tn;a.Cg=null;vo(a);v(q)}})} 422function $n(a,b){var c,d,e,f,g;return B(function(h){if(1==h.g)return c=a.m.textDisplayFactory,d=c(),a.Cg=c,e=wo(b.V,d,function(k,l,m){xo(a,k,l,m)},a.W),e.configure(a.m.mediaSource),f=a.m.manifest,g=f.segmentRelativeVttTiming,e.M=g,u(h,e.L,2);a.I=e;v(h)})} 423function ao(a,b,c){var d,e,f,g;return B(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.Z,a.wd=d,f=a,u(h,zi(d,e,a.m.manifest.retryParameters,b.mimeType),2);f.gf=h.h;a.B=a.gf();g=yg(a.m.manifest);c.V&&"AUDIO"===c.V.nodeName&&(g.disableVideo=!0);a.B.configure(g);v(h)})} 424function bo(a,b){var c=b.uri;b=a.Z;a.Oa=new Tl(function(){return a.Za()});a.Oa.addEventListener("regionadd",function(f){f=f.region;
424yo(a,"timelineregionadded",f);if(a.K)a.K.onDashTimedMetadata(f)});a.Na=null;a.m.streaming.observeQualityChanges&&(a.Na=new Pl(function(){return a.Eb()}),a.Na.addEventListener("qualitychange",function(f){var g=f.quality;f=f.position;g=(new Map).set("mediaQuality",{bandwidth:g.bandwidth,audioSamplingRate:g.audioSamplingRate,codecs:g.codecs,contentType:g.contentType,frameRate:g.frameRate, 425height:g.height,mimeType:g.mimeType,channelsCount:g.channelsCount,pixelAspectRatio:g.pixelAspectRatio,width:g.width}).set("position",f);a.dispatchEvent(io("mediaqualitychanged",g))}));var d={networkingEngine:b,modifyManifestRequest:function(f,g){var h=a.X;try{h.m.enabled&&(h.l=g.format,ln(h,f,{ot:on,su:!h.g}))}catch(k){pb("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",k)}},modifySegmentRequest:function(f,g){an(a.X,f,g)},filter:function(f){return zo(a,f)},makeTextStreamsForClosedCaptions:function(f){return Ao(a, 426f)},onTimelineRegionAdded:function(f){var g=a.Oa;a:{var h=r(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new ug("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return uo(a,f)},isLowLatencyMode:function(){return a.m.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.m.streaming.autoLowLatencyMode}, 427enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){a.h&&a.h.updateDuration()},newDrmInfo:function(f){var g=a.l?a.l.g:null;g&&a.l.o&&Bo(a,g.keySystem,f)}},e=Date.now()/1E3;return new ng(function(){var f,g,h,k;return B(function(l){if(1==l.g)return f=a,u(l,a.B.start(c,d),2);f.H=l.h;g=io("manifestparsed");a.dispatchEvent(g);if(0==a.H.variants.length)throw new F(2,4,4036);Co(a.H);h=Date.now()/1E3;k=h-e;a.i.K=k;v(l)})}(),function(){return a.B.stop()})} 428function co(a,b){var c,d;return B(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.l=Do(a,{nc:a.Z,onError:function(f){uo(a,f)},rf:function(f){Eo(a,f)},onExpirationUpdated:function(f,g){Fo(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.i.j=Date.now()/1E3-c,a.W&&(f=a.W,f.g&&f.h.classList.add("zx-Ax")))}}),a.l.configure(a.m.drm),u(e,Uh(a.l,a.H.variants,a.H.offlineSessionIds),2)):3!=e.g?u(e,a.l.Ed(b.V),3):u(e,zo(a,a.H),0)})} 429function eo(a,b,c){var d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D,A;return B(function(C){switch(C.g){case 1:b.startTime=c.startTime;null!=a.Dd&&(b.startTime=a.Dd,a.Dd=null);d=b.V;e=b.uri;a.wd=e;a.L=new Ll({cf:function(){return d.playbackRate},Ze:function(){return d.defaultPlaybackRate},fh:function(G){d.playbackRate=G},si:function(G){d.currentTime+=G}});f=function(){return Go(a)};g=function(){return Ho(a)};a.A.s(d,"playing",f);a.A.s(d,"pause",f);a.A.s(d,"ended",f);a.A.s(d,"ratechange",g);lo(a,a.m);h=a.m.abrFactory; 430a.o&&a.ug==h||(a.ug=h,a.o=h(),"function"!=typeof a.o.setMediaElement&&(vb("AbrManager","Please use an AbrManager with setMediaElement function."),a.o.setMediaElement=function(){}),a.o.configure(a.m.abr));a.vb=new cg(a.m.preferredAudioLanguage,a.m.preferredVariantRole,a.m.preferredAudioChannelCount);a.wb=a.m.preferredTextLanguage;a.Bd=a.m.preferredTextRole;a.zd=a.m.preferForcedSubs;Io(a.H.presentationTimeline,a.m.playRangeStart,a.m.playRangeEnd);a.o.init(function(G,J,M){a.h&&G!=a.h.h&&Jo(a,G,!0,void 0=== 431J?!1:J,void 0===M?0:M)});a.o.setMediaElement(d);ff(a.H,a.m.preferredVideoCodecs,a.m.preferredAudioCodecs,a.m.preferredAudioChannelCount,a.m.preferredDecodingAttributes);a.h=Ko(a);a.h.configure(a.m.streaming);a.j=Lo;d.textTracks&&a.A.s(d.textTracks,"addtrack",function(G){if(G.track)switch(G=G.track,G.kind){case "chapters":Mo(a,G)}});a.dispatchEvent(io("streaming"));k=null;(l=a.h.h)||(k=jo(a));m=[];q=l||k;p=r([q.video,q.audio]);for(t=p.next();!t.done;t=p.next())(w=t.value)&&!w.segmentIndex&&m.push(w.createSegmentIndex()); 432if(!(0<m.length)){C.D(2);break}return u(C,Promise.all(m),2);case 2:a.C=No(a,b.startTime);a.Hc=Oo(a);z=Math.max(a.H.minBufferTime,a.m.streaming.rebufferingGoal);Po(a,z);if(l){C.D(4);break}Jo(a,k,!0,!1,0);if(!a.m.streaming.startAtSegmentBoundary){C.D(5);break}x=a.C.Cf();return u(C,Qo(k,x),6);case 6:y=C.h,a.C.lh(y);case 5:Ro(a,null,Pf(k));case 4:return a.C.kh(),D=a.Tb().find(function(G){return G.active}),D||((A=Zf(a.H.textStreams,a.wb,a.Bd,a.zd)[0]||null)&&Sn(a.i.h,A,!0),k&&(A?(k.audio&&So(a,k.audio, 433A)&&(a.M=!0),a.M&&a.I.o.setTextVisibility(!0),To(a)):a.M=!1),A&&(a.m.streaming.alwaysStreamText||a.mc())&&lm(a.h,A)),u(C,a.h.start(),7);case 7:a.m.abr.enabled&&(a.o.enable(),Uo(a)),xf(a.h?a.h.h:null,a.H),Vo(a.H),Wo(a),Xo(a),a.H.variants.some(function(G){return G.primary}),a.Cd=!0,a.A.xa(d,"loadedmetadata",function(){a.i.o=Date.now()/1E3-c.mh}),v(C)}})} 434function fo(a,b,c){var d,e,f,g,h,k,l;return B(function(m){return 1==m.g?(d=id,e=Date.now()/1E3,f=!0,a.l=Do(a,{nc:a.Z,onError:function(q){uo(a,q)},rf:function(q){Eo(a,q)},onExpirationUpdated:function(q,p){Fo(a,q,p)},onEvent:function(q){a.dispatchEvent(q);"drmsessionupdate"==q.type&&f&&(f=!1,a.i.j=Date.now()/1E3-e)}}),a.l.configure(a.m.drm),g=c.uri||"",h=Bi(g),k=mo[h],"application/x-mpegurl"==k&&wd()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0, 435primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?fe(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.fb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}, 436a.l.X=!0,u(m,Uh(a.l,[l],[]),2)):u(m,a.l.Ed(b.V),0)})} 437function go(a,b,c){function d(){return Go(a)}b.uri=c.uri;b.startTime=c.startTime;a.wd=b.uri;var e=b.V;a.C=new zl(e);var f=!1;a.yd.push(function(){f=!0});null!=b.startTime&&a.C.lh(b.startTime);a.L=new Ll({cf:function(){return e.playbackRate},Ze:function(){return e.defaultPlaybackRate},fh:function(k){e.playbackRate=k},si:function(k){e.currentTime+=k}});Po(a,a.m.streaming.rebufferingGoal);a.A.s(e,"playing",d);a.A.s(e,"pause",d);a.A.s(e,"ended",d);a.A.s(e,"ratechange",function(){return Ho(a)});"none"!= 438e.preload&&a.A.xa(e,"loadedmetadata",function(){a.i.o=Date.now()/1E3-c.mh});e.audioTracks&&(a.A.s(e.audioTracks,"addtrack",function(){return Wo(a)}),a.A.s(e.audioTracks,"removetrack",function(){return Wo(a)}),a.A.s(e.audioTracks,"change",function(){return Wo(a)}));e.textTracks&&(a.A.s(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Yo(a,k);break;case "chapters":Mo(a,k);break;default:Wo(a)}}),a.A.s(e.textTracks,"removetrack",function(){return Wo(a)}),a.A.s(e.textTracks, 439"change",function(){return Wo(a)}));var g=Bi(b.uri);e.src=mn(a.X,b.uri,mo[g]);(ud()||td("Web0S"))&&e.load();a.j=Zo;a.dispatchEvent(io("streaming"));var h=new jd;ql(e,HTMLMediaElement.HAVE_METADATA,a.A,function(){a.C.kh();h.resolve()});ql(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.A,function(){var k;return B(function(l){if(1==l.g)return $o(a),k=ap(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.M=!0),l.D(2)):u(l,new Promise(function(m){a.A.xa(e.textTracks,"change",m);(new md(m)).Y(1)}), 4402);if(f)return l.return();bp(a);v(l)})});e.error?h.reject(to(a)):"none"==e.preload&&(ob('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.A.xa(e,"error",function(){h.reject(to(a))});return(new ng(h,function(){h.reject(new F(2,7,7001));return Promise.resolve()})).wa(function(){a.Cd=!0})} 441function $o(a){var b=a.m.preferredAudioLanguage;if(""!=b){a.Bf(b);var c=a.m.preferredVariantRole;""!=c&&a.Bf(b,c)}}function bp(a){var b=a.m.preferredTextLanguage,c=a.m.preferForcedSubs;if(""!=b){a.Xg(b,"",c);var d=a.m.preferredTextRole;""!=d&&a.Xg(b,d,c)}} 442function Yo(a,b){if("metadata"==b.kind){b.mode="hidden";a.A.s(b,"cuechange",function(){if(b.activeCues)for(var d=r(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,cp(a,e.startTime,e.endTime,e.type,e.value),a.K)a.K.onCueMetadataChange(e.value)});var c=(new md(function(){var d=dp(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).La().Y(.5);a.yd.push(function(){c.stop()})}} 443function xo(a,b,c,d){b=r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=r(e.frames),k=h.next();!k.done;k=h.next())cp(a,f,g,"org.id3",k.value);if(a.K)a.K.onHlsTimedMetadata(e,f)}}function cp(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(io("metadata",b))} 444function Mo(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new md(function(){b.mode="hidden"})).La().Y(.5);a.yd.push(function(){c.stop()})}}function Co(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}function Do(a,b){return new Nh(b,a.m.drm.updateExpirationTime)} 445function Wn(a){return new Cg(function(b,c){a.o&&a.o.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(io("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(io("downloadfailed",b))})} 446function No(a,b){return new Al(a.g,a.H,a.m.streaming,b,function(){a.Hc&&Ol(a.Hc,!0);a.h&&a.h.se();a.S&&ep(a)},function(c){return a.dispatchEvent(c)})} 447function Oo(a){var b=new Ul(a.Oa);
447b.addEventListener("enter",function(d){yo(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){yo(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(yo(a,"timelineregionenter",e),yo(a,"timelineregionexit",e))});var c=new Nl(a.g);c.g.add(b);a.Na&&c.g.add(a.Na);return c}function Po(a,b){a.S=new gg;a.S.g=ig;jg(a.S,b,Math.min(.5,b/2));vo(a);a.Ne=(new md(function(){ep(a)})).ua(.25)} 448function ep(a){switch(a.j){case Zo:if(a.g.ended)var b=!0;else{var c=ak(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Lo:a:if(a.g.ended||Pk(a.I))b=!0;else{if(a.H.presentationTimeline.ha()){c=a.H.presentationTimeline.gc();var d=ak(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=ck(a.g.buffered,a.g.currentTime);c=a.S;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?hg:ig;c.g=d;b!=d&&vo(a)}function wo(a,b,c,d){return new Jk(a,b,c,d)} 449function so(a){return new $m({getBandwidthEstimate:function(){return a.o?a.o.getBandwidthEstimate():NaN},Eb:function(){return a.Eb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},jb:function(){return a.jb()},Sb:function(){return a.Sb()},ha:function(){return a.ha()}},a.m.cmcd)} 450function Ko(a){return new $l(a.H,{bf:function(){return a.C?a.C.Cf():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},modifySegmentRequest:function(b,c){an(a.X,b,c)},aa:a.I,nc:a.Z,onError:function(b){return uo(a,b)},onEvent:function(b){return a.dispatchEvent(b)},hl:function(){a.B&&a.B.update&&a.B.update()},Eg:function(b,c,d){a.C&&a.C.xi();ep(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(io("segmentappended",b))},fl:function(b,c){(c=c.wg)&&a.Na&& 451Rl(a.Na,c,b)},Lh:function(b,c){var d=a.l;if(d.m.parseInbandPsshEnabled&&["audio","video"].includes(b)){c=new oh(Fb(c));var e=0,f=r(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=r(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;ci(d,"cenc",e);d=d.j}}else d=Promise.resolve();return d},il:function(b,c,d){xo(a,b,c,d)}})} 452n.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=wn(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(vb("streaming.forceTransmuxTS configuration","Please Use streaming.forceTransmux instead."),a.streaming.forceTransmux=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal= 453.01));var c=Mn(this.m,a,Vn(this));fp(this);return c}; 454function fp(a){if(a.B){var b=yg(a.m.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.B.configure(b)}a.l&&a.l.configure(a.m.drm);if(a.h){a.h.configure(a.m.streaming);try{gp(a,a.H)}catch(f){uo(a,f)}a.o&&Xo(a);b=a.h.h;!b||b.allowedByApplication&&b.allowedByKeySystem||hp(a)}a.Z&&a.Z.dh(a.m.streaming.forceHTTPS);if(a.I&&(a.I.configure(a.m.mediaSource),a.I.M=a.m.manifest.segmentRelativeVttTiming,b=a.m.textDisplayFactory,a.Cg!=b)){var c=b(),d=a.I,e=d.o;d.o=c;e&&(c.setTextVisibility(e.isTextVisible()), 455e.destroy());d.g&&(d.g.i=c);a.Cg=b;a.h&&(b=a.h,(c=b.g.get(hd))&&jm(b,c.stream,!0,0,!0))}a.o&&(a.o.configure(a.m.abr),a.m.abr.enabled?a.o.enable():a.o.disable(),Uo(a));a.S&&(b=a.m.streaming.rebufferingGoal,a.H&&(b=Math.max(b,a.H.minBufferTime)),jg(a.S,b,Math.min(.5,b/2)));a.H&&Io(a.H.presentationTimeline,a.m.playRangeStart,a.m.playRangeEnd)}n.getConfiguration=function(){var a=Vn(this);Mn(a,this.m,Vn(this));return a}; 456n.Yj=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.Za().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};n.qm=function(){for(var a in this.m)delete this.m[a];Mn(this.m,Vn(this),Vn(this));fp(this)};n.gi=function(){return this.j};n.yk=function(){return this.g};n.Ld=function(){return this.Z};n.gg=function(){return this.wd}; 457n.Ye=function(){return this.K?this.K:null};n.ha=function(){return this.H?this.H.presentationTimeline.ha():this.g&&this.g.src?Infinity==this.g.duration:!1};n.jc=function(){return this.H?this.H.presentationTimeline.jc():!1};n.Tc=function(){if(this.H){var a=this.H.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}; 458n.Za=function(){if(!this.Cd)return{start:0,end:0};if(this.H){var a=this.H.presentationTimeline;return{start:a.Rc(),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}};n.Mk=function(){this.ha()&&(this.g.currentTime=this.Za().end)};n.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};n.drmInfo=function(){return this.l?this.l.g:null};n.Kd=function(){return this.l?this.l.Kd():Infinity}; 459n.$e=function(){return this.l?this.l.$e():{}};n.Sd=function(){return this.S?this.S.g==ig:!1};n.Sb=function(){return this.g?this.L?this.L.h:1:0};n.wh=function(a){0==a?ob("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.L.set(a),this.j==Lo&&(this.o.playbackRateChanged(a),im(this.h,1<Math.abs(a)
459)))};n.Ph=function(){var a=this.L.Ze();this.j==Zo&&this.L.set(a);this.j==Lo&&(this.L.set(a),this.o.playbackRateChanged(a),im(this.h,!1))}; 460n.jb=function(){if(this.H){for(var a=this.h?this.h.h:null,b=[],c=0,d=r(this.H.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Xf(e)){var f=Pf(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 Wf(g)}):[]}; 461n.Tb=function(){if(this.H){for(var a=this.h?this.h.i:null,b=[],c=r(this.H.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=Qf(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?ap(this).map(function(f){return Uf(f)}):[]};n.nk=function(){return this.H?this.H.imageStreams.map(function(a){return Rf(a)}):[]}; 462n.Hk=function(a,b){var c=this,d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D,A,C,G,J;return B(function(M){if(1==M.g)return c.H?(d=c.H.imageStreams.find(function(N){return N.id==a}))?d.segmentIndex?M.D(3):u(M,d.createSegmentIndex(),3):M.return(null):M.D(2);if(2!=M.g){e=d.segmentIndex.find(b);if(null==e)return M.return(null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return M.return(null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);q=parseInt(h[2],10);p=k/m;t=l/q;w=m*q; 463z=f.l-f.startTime;x=f.B||z/w;y=f.startTime;A=D=0;1<w&&(C=Math.floor((b-f.startTime)/x),y=f.startTime+C*x,D=C%m*p,A=Math.floor(C/m)*t);G=!1;if(J=f.A)G=!0,t=J.height,D=J.positionX,A=J.positionY,p=J.width;return M.return({imageHeight:l,imageWidth:k,height:t,positionX:D,positionY:A,startTime:y,duration:x,uris:f.ib(),width:p,sprite:G})}return M.return(null)})}; 464n.Yg=function(a){if(this.H&&this.h){var b=this.H.textStreams.find(function(d){return d.id==a.id});b&&b!=this.h.i&&(Sn(this.i.h,b,!1),lm(this.h,b),$p(this),this.wb=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=ap(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Sf(c)==a.id?c.mode=this.M?"showing":"hidden":c.mode="disabled";$p(this)}}; 465n.Zg=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.H&&this.h){this.m.abr.enabled&&ob("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.H.variants.find(function(e){return e.id==a.id});d&&Xf(d)&&(Jo(this,d,!1,b,c),this.vb=new bg(d),Xo(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=r(b),c=b.next();!c.done;c=b.next())if(c=c.value, 466Sf(c)==a.id){aq(this,c);break}};n.Xj=function(){return bq(this.jb())};n.Fk=function(){return bq(this.Tb())};n.Wj=function(){return Array.from(cq(this.jb()))};n.Ek=function(){return Array.from(cq(this.Tb()))}; 467n.Bf=function(a,b,c){c=void 0===c?0:c;if(this.H&&this.C){this.vb=new cg(a,b||"",c,"");b=function(h,k){return h.video||k.video?h.video&&k.video?Math.abs((h.video.height||0)-(k.video.height||0))+Math.abs((h.video.width||0)-(k.video.width||0)):Infinity:0};a=this.h.h;var d=this.vb.create(this.H.variants);c=null;d=r(d.values());for(var e=d.next();!e.done;e=d.next())if(e=e.value,!c||b(c,a)>b(e,a))c=e;c?(b=Pf(c),this.Zg(b,!0)):hp(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks); 468a=me(a);d=c=null;e=r(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=Wf(f);me(g.language)==a&&(c=f,b?g.roles.includes(b)&&(d=f):0==g.roles.length&&(d=f))}d?aq(this,d):c&&aq(this,c)}}; 469n.Xg=function(a,b,c){c=void 0===c?!1:c;if(this.H&&this.C){if(this.wb=a,this.Bd=b||"",this.zd=c,(a=Zf(this.H.textStreams,this.wb,this.Bd,this.zd)[0]||null)&&a!=this.h.i&&(Sn(this.i.h,a,!1),this.m.streaming.alwaysStreamText||this.mc()))lm(this.h,a),$p(this)}else{var d=me(a);(a=this.Tb().find(function(e){return me(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.Yg(a)}}; 470n.vm=function(a){if(this.H&&this.C){for(var b=null,c=r(this.H.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.vb=new cg(b.language,"",0,a),hp(this))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=r(c);for(d=c.next();!d.done;
470d=c.next())d=d.value,d.label==a&&(b=d);b&&aq(this,b)}}; 471n.mc=function(){var a=this.M;return this.I?this.I.o.isTextVisible():this.g&&this.g.src&&this.g.textTracks?ap(this).some(function(b){return"showing"==b.mode}):a};n.di=function(){return this.g&&this.g.src&&this.g.textTracks?dq(this).map(function(a){return Uf(a)}):[]}; 472n.$j=function(a){var b=me(a),c=dq(this).filter(function(h){return me(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=r(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}; 473function ap(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function dp(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function dq(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})} 474n.ih=function(a){a=!!a;if(this.M!=a){this.M=a;if(this.j==Lo)this.I.o.setTextVisibility(a),this.m.streaming.alwaysStreamText||(a?this.h.i||(a=Zf(this.H.textStreams,this.wb,this.Bd,this.zd),0<a.length&&(lm(this.h,a[0]),$p(this))):hm(this.h));else if(this.g&&this.g.src&&this.g.textTracks){var b=ap(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}To(this)}}; 475n.Ak=function(){if(!this.ha())return null;var a=this.eb.j,b=0;if(this.C)b=this.C.Cf();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.H?new Date(1E3*(this.H.presentationTimeline.i+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null}; 476n.ii=function(){if(!this.ha())return null;if(this.H)return new Date(1E3*this.H.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};n.Eb=function(){if(this.j==Lo)return this.I.Eb();var a={total:[],audio:[],video:[],text:[]};this.j==Zo&&(a.total=dk(this.g.buffered));return a}; 477n.getStats=function(){if(this.j!=Lo&&this.j!=Zo)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:[]};Go(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.i;b= 478Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.C&&(this.i.ba=this.C.Pi(),this.i.ma=this.C.Qi());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.i;var d=Number(c.totalVideoFrames);b.X=Number(c.droppedVideoFrames);b.W=d;this.i.S=Number(c.corruptedVideoFrames)}this.l?(c=this.l,c=c.L?c.L:NaN):c=NaN;this.i.M=c;if(this.j==Lo){if(c=this.h.h)this.i.C=(this.L?this.L.h:1)*c.bandwidth;c&&c.video&&(b=this.i,d=c.video.height||NaN,b.A=c.video.width||NaN,b.l=d);this.ha()&&(c=this.ii().valueOf()+ 4791E3*this.Za().end,this.i.I=(Date.now()-c)/1E3);this.H&&this.H.presentationTimeline&&(this.i.L=this.H.presentationTimeline.g);c=this.o.getBandwidthEstimate();this.i.B=c}this.j==Zo&&(c=this.i,b=a.videoHeight||NaN,c.A=a.videoWidth||NaN,c.l=b);var e=this.i;a=e.A;c=e.l;b=e.C;d=e.W;var f=e.X,g=e.S,h=e.ma,k=e.ba,l=e.B,m=e.i,q=e.o,p=e.K,t=e.j,w=Pn(e.g,"playing"),z=Pn(e.g,"paused"),x=Pn(e.g,"buffering"),y=e.M,D=e.I,A=e.L,C=Qn(e.g),G=[];e=r(e.h.g);for(var J=e.next();!J.done;J=e.next())J=J.value,G.push({timestamp:J.timestamp, 480id:J.id,type:J.type,fromAdaptation:J.fromAdaptation,bandwidth:J.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:q,manifestTimeSeconds:p,drmTimeSeconds:t,playTime:w,pauseTime:z,bufferingTime:x,licenseTime:y,liveLatency:D,maxSegmentDuration:A,stateHistory:C,switchHistory:G}}; 481n.Aj=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,q,p,t,w,z,x,y,D;return B(function(A){switch(A.g){case 1:if(h.j!=Lo&&h.j!=Zo)throw new F(1,7,7004);if(d){A.D(2);break}return u(A,eq(h,a),3);case 3:d=A.h;case 2:k=[];if(h.K)try{k=h.K.getServerSideCuePoints()}catch(C){}if(h.j!=Zo){A.D(4);break}g&&(c="forced");return u(A,fq(h,a,b,c,d,f||"",k),5);case 5:l=h.Tb();if(m=l.find(function(C){return C.language==b&&C.label==(f||"")&&C.kind==c}))return Wo(h),A.return(m);throw new F(1,2,2012);case 4:q= 482id;p=h.H.presentationTimeline.getDuration();if(Infinity==p)throw new F(1,4,4033);if(!k.length){A.D(6);break}return u(A,gq(h,a,h.Z,h.m.streaming.retryParameters),7);case 7:t=A.h,w=hq(h,t,d,k),z=new Blob([w],{type:"text/vtt"}),a=Mk(z),d="text/vtt";case 6:x={id:h.Ig++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Jl(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:q.ra,primary:!1,trickModeVideo:null, 483emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};y=be(x.mimeType,x.codecs);D=Xe(y);if(!D)throw new F(2,2,2014,d);h.H.textStreams.push(x);Wo(h);return A.return(Qf(x))}})}; 484n.Bj=function(a,b){var c=this,d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D;return B(function(A){switch(A.g){case 1:if(c.j!=Lo&&c.j!=Zo)throw new F(1,7,7004);if(c.j==Zo)throw new F(1,2,2016);if(b){A.D(2);break}return u(A,eq(c,a),3);case 3:b=A.h;case 2:if("text/vtt"!=b)throw new F(1,2,2017,a);d=id;e=c.H.presentationTimeline.getDuration();if(Infinity==e)throw new F(1,4,4045);return u(A,gq(c,a,c.Z,c.m.streaming.retryParameters),4);case 4:f=A.h;g=Ye[b];if(!g)throw new F(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0, 485segmentEnd:e,vttOffset:0};l=Fb(f);m=h.parseMedia(l,k);q=[];p={};t=r(m);for(w=t.next();!w.done;p={pd:p.pd},w=t.next())z=w.value,p.pd=cd([a],[z.payload])[0],x=new Wj(z.startTime,z.endTime,function(C){return function(){return[C.pd]}}(p),0,null,null,0,0,Infinity),p.pd.includes("#xywh")&&(y=p.pd.split("#xywh=")[1].split(","),4===y.length&&x.Ni({height:parseInt(y[3],10),positionX:parseInt(y[0],10),positionY:parseInt(y[1],10),width:parseInt(y[2],10)})),q.push(x);D={id:c.Ig++,originalId:null,createSegmentIndex:function(){return Promise.resolve()}, 486segmentIndex:new Gl(q),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.vd,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1"};c.H.imageStreams.push(D);Wo(c);return A.return(Rf(D))}})}; 487n.zj=function(a,b,c){var d=this,e,f,g,h;return B(function(k){switch(k.g){case 1:if(d.j!=Lo&&d.j!=Zo)throw new F(1,7,7004);if(c){k.D(2);break}return u(k,eq(d,a),3);case 3:c=k.h;case 2:e=[];if(d.K)try{e=d.K.getServerSideCuePoints()}catch(l){}return u(k,fq(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.di();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.A.xa(f,"load",l);d.A.xa(f,"error",function(){m(new F(1,2,2015))})}),6);case 6:return k.return(h); 488case 5:throw new F(1,2,2012);}})};function eq(a,b){var c,d;return B(function(e){switch(e.g){case 1:c=Bi(b);if(d=iq[c])return e.return(d);Ba(e,2);return u(e,Di(b,a.Z,a.m.streaming.retryParameters),4);case 4:d=e.h;Da(e,3);break;case 2:Ea(e);case 3:if(d)return e.return(d);throw new F(1,2,2011,c);}})} 489function fq(a,b,c,d,e,f,g){var h,k,l,m;return B(function(q){if(1==q.g)return"text/vtt"!=e||g.length?u(q,gq(a,b,a.Z,a.m.streaming.retryParameters),3):q.D(2);2!=q.g&&(h=q.h,k=hq(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Mk(l),e="text/vtt");m=document.createElement("track");var p=a.X,t=b;try{if(p.m.enabled){var w=nn(p);w.ot=tn;w.su=!0;var z=pn(w);var x=qn(t,z)}else x=t}catch(y){pb("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",y),x=t}m.src=x;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")|| 490a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return q.return(m)})}function gq(a,b,c,d){var e,f,g;return B(function(h){if(1==h.g){e=Ng;f=Gg([b],d);f.method="GET";var k=a.X;try{k.m.enabled&&ln(k,f,{ot:tn,su:!0})}catch(l){pb("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})} 491function hq(a,b,c,d){var e=Ye[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Fb(b),b=c.parseMedia(b,a),Zm(b,d);throw new F(2,2,2014,c);}n.eh=function(a,b){this.ld.width=a;this.ld.height=b};
491n.Sg=function(a){if(this.j==Lo){var b=this.h;a=void 0===a?.1:a;if(b.P.g)b=!1;else if(b.j)b=!1;else{for(var c=r(b.g.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Qd||d.Xa||d.zb||(d.Qd=!1,gm(b,d,a));b=!0}}else b=!1;return b}; 492n.vk=function(){ob("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.H};n.wk=function(){return this.gf}; 493function Vn(a){var b=Kn();b.streaming.failureCallback=function(c){if(a.ha()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Sg(d))}};b.textDisplayFactory=function(){return a.kf?new Rm(a.g,a.kf):new Km(a.g)};return b}n.jh=function(a){this.kf=a}; 494function Ao(a,b){for(var c=new Set,d=r(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=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(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 Kl;h={id:a.Ig++,originalId:g,createSegmentIndex:function(){return Promise.resolve()}, 495segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:hd,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};b.textStreams.push(h);c.add(g)}}function zo(a,b){return B(function(c){if(1==c.g)return u(c,jq(a,b),2);gp(a,b);v(c)})} 496function jq(a,b){var c;return B(function(d){if(1==d.g)return c=a.h?a.h.h:null,u(d,vf(c,b),2);Vo(b);v(d)})}function gp(a,b){if(a.j!=no){uf(b.variants,a.m.restrictions,a.ld)&&a.h&&Wo(a);var c=a.l?a.l.g:null;if(c&&a.l.o)for(var d=r(b.variants),e=d.next();!e.done;e=d.next())e=e.value,Bo(a,c.keySystem,e.video),Bo(a,c.keySystem,e.audio);kq(a,b)}} 497function Bo(a,b,c){if(c){c=r(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=r(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,ci(a.l,e.initDataType,e.initData)}}} 498function Qo(a,b){var c,d,e,f,g;return B(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,q,p;return B(function(t){if(1==t.g)return k?u(t,k.createSegmentIndex(),2):t.return(null);q=(m=k.segmentIndex.Oc(l))?m.next().value:null;if(!q)return t.return(null);p=q.startTime;return t.return(p)})},u(h,e(c,b),2);if(3!=h.g)return f=h.h,u(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b)})} 499function vo(a){var b=a.Sd();if(a.i&&a.S&&a.C){var c=a.L;c.j=b;Ml(c);a.X&&(c=a.X,b||c.g||(c.g=!0),c.g&&b&&(c.i=!0),c.j=b);Go(a)}b=(new Map).set("buffering",b);a.dispatchEvent(io("buffering",b))}function Ho(a){var b=a.g.playbackRate;0!=b&&(a.L&&a.L.set(b),b=io("ratechange"),a.dispatchEvent(b))}function Go(a){if(a.i&&a.S){var b=a.i.g;a.S.g==ig?On(b,"buffering"):a.g.paused?On(b,"paused"):a.g.ended?On(b,"ended"):On(b,"playing")}} 500function Xo(a){try{kq(a,a.H)}catch(c){return uo(a,c),!1}var b=a.H.variants.filter(function(c){return Xf(c)});b=a.vb.create(b);a.o.setVariants(Array.from(b.values()));return!0}function jo(a){return Xo(a)?a.o.chooseVariant():null}function hp(a){var b=jo(a);b&&Jo(a,b,!0,!0,0)} 501function Jo(a,b,c,d,e){var f=a.h.h;if(b==f)d&&km(a.h,b,d,e,!0);else{var g=a.i.h;g.i!=b&&(g.i=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));km(a.h,b,d,e,void 0,c);d=null;f&&(d=Pf(f));b=Pf(b);c?Ro(a,d,b):lq(a,d,b)}}function aq(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=Wf(c);b=Wf(b);lq(a,c,b)} 502function So(a,b,c){if(0==a.m.autoShowText)return!1;if(1==a.m.autoShowText)return!0;var d=me(a.m.preferredTextLanguage);c=me(c.language);if(2==a.m.autoShowText)return le(c,d);if(3==a.m.autoShowText)return a=me(b.language),le(c,d)&&!le(a,c);ob("Invalid autoShowText setting!");return!1}function Ro(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.W&&Fk(a.W,c);c=io("adaptation",b);mq(a,c)}function Wo(a){var b=io("trackschanged");mq(a,b)} 503function lq(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.W&&Fk(a.W,c);c=io("variantchanged",b);mq(a,c)}function $p(a){var b=io("textchanged");mq(a,b)}function To(a){var b=io("texttrackvisibility");mq(a,b)}function Uo(a){var b=(new Map).set("newStatus",a.m.abr.enabled);mq(a,io("abrstatuschanged",b))} 504function nq(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||!navigator.onLine)return!1;var c=a.m.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;b=a.jb().find(function(g){return g.active});for(var d=a.H,e=r(d.variants),f=e.next();!f.done;f=e.next())f=f.value,f.id===b.id&&(f.disabledUntilTime=Date.now()/1E3+c);uf(d.variants,a.m.restrictions,a.ld);b=jo(a);if(!b)return!1;d=a.Eb().video.reduce(function(g,h){return g+h.end-h.start},0);Jo(a,b,!1,!0,d);a.ej.Y(c);return!0} 505function uo(a,b){if(a.j!=no)if(nq(a,b))b.handled=!0;else{var c=io("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function yo(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(io(b,c))} 506function to(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 F(2,3,3016,b,c,a.g.error.message)} 507function Eo(a,b){if(a.h){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=r(a.H.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=r(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=r(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[d?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!oq.includes(l)}h!=f.allowedByKeySystem&& 508(e=!0)}}}if(!e||Xo(a))(b=a.h.h)&&!b.allowedByKeySystem&&hp(a),e&&Wo(a)}}function Fo(a,b,c){if(a.B&&a.B.onExpirationUpdated)a.B.onExpirationUpdated(b,c);b=io("expirationupdated");a.dispatchEvent(b)}function Io(a,b,c){0<b&&(a.ha()||a.Oi(b));b=a.getDuration();c<b&&(a.ha()||a.ob(c))} 509function kq(a,b){a=a.l?a.l.$e():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=r(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=r(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=r(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var q=a[c?"00":m];q?oq.includes(q)&&g.add(q):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e, 510missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new F(2,4,4012,a);}function Vo(a){if(!a.variants.some(Xf))throw new F(2,4,4032);}function mq(a,b){B(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.j!=no&&a.dispatchEvent(b);v(c)})}function cq(a){var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(me(c.language)):b.add("und");return b} 511function bq(a){var b=new Map,c=new Map;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=me(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=r(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=r(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var q=null;c.has(l)&&c.get(l).has(m)&&(q=c.get(l).get(m)); 512h.push({language:l,role:m,label:q})}});return h}function po(){return new F(2,7,7E3)}function ho(a,b,c,d,e,f){return d==a&&e.V==f.V&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Cm(){return{V:null,mimeType:null,startTime:null,mh:NaN,uri:null}}function qo(a){return new Promise(function(b,c){a.qc=function(){return c(po())};a.qf=function(){return b()};a.onError=function(d){return c(d)};a.tf=function(){return c(po())}})}E("shaka.Player",H);H.prototype.setVideoContainer=H.prototype.jh; 513H.prototype.getManifestParserFactory=H.prototype.wk;H.prototype.getManifest=H.prototype.vk;H.prototype.retryStreaming=H.prototype.Sg;H.prototype.setMaxHardwareResolution=H.prototype.eh;
513H.prototype.addChaptersTrack=H.prototype.zj;H.prototype.addThumbnailsTrack=H.prototype.Bj;H.prototype.addTextTrackAsync=H.prototype.Aj;H.prototype.getStats=H.prototype.getStats;H.prototype.getBufferedInfo=H.prototype.Eb;H.prototype.getPresentationStartTimeAsDate=H.prototype.ii;H.prototype.getPlayheadTimeAsDate=H.prototype.Ak; 514H.prototype.setTextTrackVisibility=H.prototype.ih;H.prototype.getChapters=H.prototype.$j;H.prototype.getChaptersTracks=H.prototype.di;H.prototype.isTextTrackVisible=H.prototype.mc;H.prototype.selectVariantsByLabel=H.prototype.vm;H.prototype.selectTextLanguage=H.prototype.Xg;H.prototype.selectAudioLanguage=H.prototype.Bf;H.prototype.getTextLanguages=H.prototype.Ek;H.prototype.getAudioLanguages=H.prototype.Wj;H.prototype.getTextLanguagesAndRoles=H.prototype.Fk; 515H.prototype.getAudioLanguagesAndRoles=H.prototype.Xj;H.prototype.selectVariantTrack=H.prototype.Zg;H.prototype.selectTextTrack=H.prototype.Yg;H.prototype.getThumbnails=H.prototype.Hk;H.prototype.getImageTracks=H.prototype.nk;H.prototype.getTextTracks=H.prototype.Tb;H.prototype.getVariantTracks=H.prototype.jb;H.prototype.cancelTrickPlay=H.prototype.Ph;H.prototype.trickPlay=H.prototype.wh;H.prototype.getPlaybackRate=H.prototype.Sb;H.prototype.isBuffering=H.prototype.Sd;H.prototype.getKeyStatuses=H.prototype.$e; 516H.prototype.getExpiration=H.prototype.Kd;H.prototype.drmInfo=H.prototype.drmInfo;H.prototype.keySystem=H.prototype.keySystem;H.prototype.goToLive=H.prototype.Mk;H.prototype.seekRange=H.prototype.Za;H.prototype.isAudioOnly=H.prototype.Tc;H.prototype.isInProgress=H.prototype.jc;H.prototype.isLive=H.prototype.ha;H.prototype.getAdManager=H.prototype.Ye;H.prototype.getAssetUri=H.prototype.gg;H.prototype.getNetworkingEngine=H.prototype.Ld;H.prototype.getMediaElement=H.prototype.yk; 517H.prototype.getLoadMode=H.prototype.gi;H.prototype.resetConfiguration=H.prototype.qm;H.prototype.getBufferFullness=H.prototype.Yj;H.prototype.getConfiguration=H.prototype.getConfiguration;H.prototype.configure=H.prototype.configure;H.prototype.load=H.prototype.load;H.prototype.updateStartTime=H.prototype.Om;H.prototype.unload=H.prototype.yh;H.prototype.detach=H.prototype.detach;H.prototype.attachCanvas=H.prototype.Jh;H.prototype.attach=H.prototype.Ed; 518H.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return B(function(h){if(1==h.g)return b={},a?u(h,ti(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(nd()){for(var l in Ai)k[l]=!0;for(var m in Ci)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var q=m.next();!q.done;q=m.next())q=q.value,k[q]=nd()?!!Ai[q]:od(q);for(var p in l)k[p]= 519nd()?!!Ci[p]:od(l[p]);c=k;p='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",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",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(ma(Vk)); 520k={};p=r(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=nd()?Xe(l)?!0:Ab(l)||Wd(l):od(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=pq;for(g in f)e[g]=f[g]();return h.return(e)})};H.isBrowserSupported=oo;H.setAdManagerFactory=function(a){Xn=a};H.registerSupportPlugin=function(a,b){pq[a]=b};H.prototype.destroy=H.prototype.destroy;var no=0,Un=1,Lo=2,Zo=3;H.LoadMode={DESTROYED:no,NOT_LOADED:Un,MEDIA_SOURCE:Lo,SRC_EQUALS:Zo};H.version="v4.3.6-uncompiled";var qq=["4","3"]; 521wb=new function(a){this.g=a;this.i=xb;this.h=yb}(new jb(Number(qq[0]),Number(qq[1]))); 522var oq=["output-restricted","internal-error"],pq={},Xn=null,mo={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/d
522ash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},iq={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc", 523ssa:"text/x-ssa",ass:"text/x-ssa"};function rq(){this.g=[];this.j=this.h=this.i=0};function sq(a,b,c){var d=this;this.h=a;this.g=b;this.o=c;this.i=!1;this.l=this.g.getVolume();this.j=new Qg;this.j.s(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.s(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}n=sq.prototype;n.getDuration=function(){return this.h.getDuration()};n.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};n.getRemainingTime=function(){return this.g.getRemainingTime()};n.isPaused=function(){return this.i}; 524n.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};n.getTimeUntilSkippable=function(){var a=this.h.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};n.canSkipNow=function(){return this.g.getAdSkippableState()};n.skip=function(){return this.g.skip()};n.pause=function(){return this.g.pause()};n.play=function(){return this.g.resume()};n.getVolume=function(){return this.g.getVolume()};n.setVolume=function(a){return this.g.setVolume(a)};n.isMuted=function(){return 0==this.g.getVolume()}; 525n.isLinear=function(){return this.h.isLinear()};n.resize=function(a,b){var c=!1,d=this.o;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};n.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};n.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()}; 526n.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};n.getTitle=function(){return this.h.getTitle()};n.getDescription=function(){return this.h.getDescription()};n.release=function(){this.g=this.h=null};E("shaka.ads.ClientSideAd",sq);sq.prototype.release=sq.prototype.release;sq.prototype.getDescription=sq.prototype.getDescription;sq.prototype.getTitle=sq.prototype.getTitle;sq.prototype.getPositionInSequence=sq.prototype.getPositionInSequence; 527sq.prototype.getSequenceLength=sq.prototype.getSequenceLength;sq.prototype.setMuted=sq.prototype.setMuted;sq.prototype.resize=sq.prototype.resize;sq.prototype.isLinear=sq.prototype.isLinear;sq.prototype.isMuted=sq.prototype.isMuted;sq.prototype.setVolume=sq.prototype.setVolume;sq.prototype.getVolume=sq.prototype.getVolume;sq.prototype.play=sq.prototype.play;sq.prototype.pause=sq.prototype.pause;sq.prototype.skip=sq.prototype.skip;sq.prototype.canSkipNow=sq.prototype.canSkipNow; 528sq.prototype.getTimeUntilSkippable=sq.prototype.getTimeUntilSkippable;sq.prototype.isSkippable=sq.prototype.isSkippable;sq.prototype.isPaused=sq.prototype.isPaused;sq.prototype.getRemainingTime=sq.prototype.getRemainingTime;sq.prototype.getMinSuggestedDuration=sq.prototype.getMinSuggestedDuration;sq.prototype.getDuration=sq.prototype.getDuration;function tq(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.o=d;this.j=null;this.h=new Qg;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.3.6-uncompiled");this.g=null;this.h.xa(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){uq(e,f)});this.h.s(this.l,google.ima.AdErrorEvent.Type.AD_ERROR, 529function(f){vq(e,f)});this.h.s(this.i,"ended",function(){e.l.contentComplete()})}tq.prototype.stop=function(){this.g&&this.g.stop();this.A&&Qm(this.A)};tq.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};function vq(a,b){b.getError();wq(a,null);a.o(new ug("ad-cue-points-changed",(new Map).set("cuepoints",[])))} 530function uq(a,b){a.o(new ug("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.o(new ug("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){b=[];c=r(c);for(var d=c.next();!d.done;d=c.next())b.push({start:d.value,end:null});a.o(new ug("ad-cue-points-changed",(new Map).set("cuepoints",b)))}xq(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,yq(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.s(a.i,"loadeddata", 531function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,yq(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,yq(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.s(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,yq(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.h.xa(a.i,"play",function(){a.g.start()})}catch(e){wq(a, 532null)}}function yq(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1} 533function xq(a){function b(c,d){c=(new Map).set("originalEvent",c);a.o(new ug(d,c))}a.h.s(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){vq(a,c)});a.h.s(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){zq(a,c)});a.h.s(a.g,google.ima.AdEvent.Type.STARTED,function(c){zq(a,c)});a.h.s(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.s(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.s(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE, 534function(c){b(c,"ad-third-quartile")});a.h.s(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")}
vendor: 6,873 bytes, lines 534-547
534);a.h.s(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){wq(a,c)});a.h.s(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){wq(a,c)});a.h.s(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.s(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.s(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")}); 535a.h.s(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.s(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.s(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.s(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.s(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.s(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")}); 536a.h.s(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.s(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.s(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.s(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.s(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.s(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.s(a.g, 537google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.s(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.s(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.s(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})} 538function zq(a,b){var c=b.getAd();c?(a.j=new sq(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.o(new ug("ad-started",b)),a.j.isLinear()&&(a.A.setAttribute("ad-active","true"),a.i.pause(),a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))):ob("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")} 539function wq(a,b){a.o(new ug("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.A.removeAttribute("ad-active"),a.i.ended||a.i.play())};function Aq(a,b){this.i=a;this.h=null;this.g=b}n=Aq.prototype;n.getDuration=function(){return this.h?this.h.duration:-1};n.getMinSuggestedDuration=function(){return this.getDuration()};n.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};n.isPaused=function(){return this.g.paused};n.isSkippable=function(){return this.i.isSkippable()};n.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)}; 540n.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};n.skip=function(){this.g.currentTime+=this.getRemainingTime()};n.pause=function(){return this.g.pause()};n.play=function(){return this.g.play()};n.getVolume=function(){return this.g.volume};n.setVolume=function(a){this.g.volume=a};n.isMuted=function(){return this.g.muted};n.isLinear=function(){return!0};n.resize=function(){};n.setMuted=function(a){this.g.muted=a}; 541n.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};n.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};n.getTitle=function(){return this.i.getTitle()};n.getDescription=function(){return this.i.getDescription()};n.release=function(){this.g=this.h=this.i=null};E("shaka.ads.ServerSideAd",Aq);Aq.prototype.release=Aq.prototype.release;Aq.prototype.getDescription=Aq.prototype.getDescription;Aq.prototype.getTitle=Aq.prototype.getTitle; 542Aq.prototype.getPositionInSequence=Aq.prototype.getPositionInSequence;Aq.prototype.getSequenceLength=Aq.prototype.getSequenceLength;Aq.prototype.setMuted=Aq.prototype.setMuted;Aq.prototype.resize=Aq.prototype.resize;Aq.prototype.isLinear=Aq.prototype.isLinear;Aq.prototype.isMuted=Aq.prototype.isMuted;Aq.prototype.setVolume=Aq.prototype.setVolume;Aq.prototype.getVolume=Aq.prototype.getVolume;Aq.prototype.play=Aq.prototype.play;Aq.prototype.pause=Aq.prototype.pause;Aq.prototype.skip=Aq.prototype.skip; 543Aq.prototype.canSkipNow=Aq.prototype.canSkipNow;Aq.prototype.getTimeUntilSkippable=Aq.prototype.getTimeUntilSkippable;Aq.prototype.isSkippable=Aq.prototype.isSkippable;Aq.prototype.isPaused=Aq.prototype.isPaused;Aq.prototype.getRemainingTime=Aq.prototype.getRemainingTime;Aq.prototype.getMinSuggestedDuration=Aq.prototype.getMinSuggestedDuration;Aq.prototype.getDuration=Aq.prototype.getDuration;function Bq(a,b,c,d){var e=this;this.C=a;this.l=b;this.j=null;this.M=NaN;this.i=d;this.L=!1;this.I=this.o=this.A=null;this.B="";this.K=[];this.h=new Qg;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.C,a);this.i(new ug("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Cq(e,f)});this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.B.length? 544e.j.resolve(e.B):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.o=new Aq(f,e.l);e.I&&(e.o.h=e.I);e.i(new ug("ad-started",(new Map).set("ad",e.o)));e.C.setAttribute("ad-active","true")});this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.C.removeAttribute("ad-active"); 545var f=e.l.currentTime;e.A&&e.A>f&&(e.l.currentTime=e.A,e.A=null)});this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.I=f.getStreamData().adProgressData;e.o&&(e.o.h=e.I)});this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new ug("ad-first-quartile"))});this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new ug("ad-midpoint"))});this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new ug("ad-third-quartile"))}); 546this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new ug("ad-complete"));e.i(new ug("ad-stopped"));e.C.removeAttribute("ad-active");e.o=null});this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new ug("ad-skipped"));e.i(new ug("ad-stopped"))});this.h.s(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=r(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end}); 547e.K=f;e.i(new ug("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Bq.prototype.stop=function(){this.B="";this.A=null;this.K=[]};Bq.prototype.release=function(){this.stop();this.h&&this.h.release()};
547Bq.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}}; 548function Cq(a,b){a.i(new ug("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.M)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.L||a.h.s(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.A=c,a.l.currentTime=d.start)}})};function Dq(){xg.call(this);this.g=this.h=null;this.i=new rq;this.j=navigator.language}ua(Dq,xg);n=Dq.prototype;n.setLocale=function(a){this.j=a};n.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new F(2,10,1E4);this.h&&this.h.release();this.h=new tq(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.i.g.push(d.loadTime);break;case "ad-started":c.i.i++;break;case "ad-complete":c.i.h++;break;case "ad-skipped":c.i.j++}c.dispatchEvent(d)})}; 549n.release=function(){this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);xg.prototype.release.call(this)};n.onAssetUnload=function(){this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new ug("ad-stopped"));this.i=new rq};n.requestClientSideAds=function(a){if(!this.h)throw new F(1,10,10001);var b=this.h;b.C=Date.now()/1E3;b.l.requestAds(a)}; 550n.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new F(2,10,10002);this.g&&this.g.release();this.g=new Bq(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.i.g.push(d.loadTime);break;case "ad-started":c.i.i++;break;case "ad-complete":c.i.h++;break;case "ad-skipped":c.i.j++}c.dispatchEvent(d)})}; 551n.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new F(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&ob('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.3.6-uncompiled";c=this.g;c.j?a=Promise.reject(new F(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&& 552(c.L=!0),c.j=new jd,c.g.requestStream(a),c.B=b||"",c.M=Date.now()/1E3,a=c.j);return a};n.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new F(1,10,10003);(a.mpt||a.mpv)&&ob('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.3.6-uncompiled";this.g.g.replaceAdTagParameters(a)}; 553n.getServerSideCuePoints=function(){if(!this.g)throw new F(1,10,10003);return this.g.K};n.getStats=function(){var a=this.i;return{loadTimes:a.g,started:a.i,playedCompletely:a.h,skipped:a.j}};n.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)}};n.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)}; 554n.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};E("shaka.ads.AdManager",Dq);Dq.prototype.onCueMetadataChange=Dq.prototype.onCueMetadataChange;Dq.prototype.onHlsTimedMetadata=Dq.prototype.onHlsTimedMetadata;Dq.prototype.onDashTimedMetadata=Dq.prototype.onDashTimedMetadata;Dq.prototype.getStats=Dq.prototype.getStats;Dq.prototype.getServerSideCuePoints=Dq.prototype.getServerSideCuePoints;Dq.prototype.replaceServerSideAdTagParameters=Dq.prototype.replaceServerSideAdTagParameters; 555Dq.prototype.requestServerSideStream=Dq.prototype.requestServerSideStream;Dq.prototype.initServerSide=Dq.prototype.initServerSide;Dq.prototype.requestClientSideAds=Dq.prototype.requestClientSideAds;Dq.prototype.onAssetUnload=Dq.prototype.onAssetUnload;Dq.prototype.release=Dq.prototype.release;Dq.prototype.initClientSide=Dq.prototype.initClientSide;Dq.prototype.setLocale=Dq.prototype.setLocale;Dq.ADS_LOADED="ads-loaded";Dq.AD_STARTED="ad-started";Dq.AD_FIRST_QUARTILE="ad-first-quartile"; 556Dq.AD_MIDPOINT="ad-midpoint";Dq.AD_THIRD_QUARTILE="ad-third-quartile";Dq.AD_COMPLETE="ad-complete";Dq.AD_STOPPED="ad-stopped";Dq.AD_SKIPPED="ad-skipped";Dq.AD_VOLUME_CHANGED="ad-volume-changed";Dq.AD_MUTED="ad-muted";Dq.AD_PAUSED="ad-paused";Dq.AD_RESUMED="ad-resumed";Dq.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Dq.CUEPOINTS_CHANGED="ad-cue-points-changed";Dq.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Dq.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Dq.AD_CLICKED="ad-clicked"; 557Dq.AD_PROGRESS="ad-progress";Dq.AD_BUFFERING="ad-buffering";Dq.AD_IMPRESSION="ad-impression";Dq.AD_DURATION_CHANGED="ad-duration-changed";Dq.AD_CLOSED="ad-closed";Dq.AD_LOADED="ad-loaded";Dq.ALL_ADS_COMPLETED="all-ads-completed";Dq.AD_LINEAR_CHANGED="ad-linear-changed";Dq.AD_METADATA="ad-metadata";Dq.AD_RECOVERABLE_ERROR="ad-recoverable-error";Dq.AD_BREAK_READY="ad-break-ready";Dq.AD_INTERACTION="ad-interaction";Xn=function(){return new Dq};function Eq(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof ug){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);b=r(Object.getOwnPropertyNames(c));for(d=b.next();!d.done;d=b.next())e.add(d.value);b={};e=r(e);for(d=e.next();!d.done;d=e.next())d=d.value,b[d]=c[d];c={__type__:"Error",contents:b}}else if(c instanceof 558TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=r(dk(c));for(d=c.next();!d.done;d=c.next())d=d.value,b=d.end,e.start.push(d.start),e.end.push(b);c=e}else c=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return c}})} 559function Fq(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=Gq(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c;return d})} 560function Gq(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}} 561var Hq="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Iq="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Jq=["loop","playbackRate"],Kq=["pause","play"],Lq={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2, 562isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getL
562oadMode:10},Mq={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},Nq={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Oq=[["getConfiguration","configure"]],Pq=[["isTextTrackVisible","setTextTrackVisibility"]],Qq="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "), 563Rq=["attach","attachCanvas","detach","load","unload"];function Sq(a,b,c,d,e,f,g){var h=this;this.X=a;this.ba=g;this.j=new md(b);this.ma=c;this.B=!1;this.K=d;this.W=e;this.M=f;this.h=this.o=!1;this.S="";this.A=null;this.C=function(){return Tq(h)};this.I=function(k,l){k=Fq(l);switch(k.type){case "event":var m=k.targetName,q=vg(k.event);h.K(m,q);break;case "update":m=k.update;for(q in m){k=h.g[q]||{};for(var p in m[q])k[p]=m[q][p]}h.B&&(h.ma(),h.B=!1);break;case "asyncComplete":if(q=k.id,p=k.error,k=h.i[q],delete h.i[q],k)if(p){q=new F(p.severity,p.category, 564p.code);for(m in p)q[m]=p[m];k.reject(q)}else k.resolve()}};this.g={video:{},player:{}};this.L=0;this.i={};this.l=null;Uq.add(this)}n=Sq.prototype;n.destroy=function(){Uq.delete(this);Vq(this);Wq&&Xq(this);this.j&&(this.j.stop(),this.j=null);this.W=this.K=null;this.h=this.o=!1;this.I=this.C=this.l=this.i=this.g=this.A=null;return Promise.resolve()};n.Aa=function(){return this.h};n.zf=function(){return this.S}; 565n.init=function(){if(this.X.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.o=!0;this.j.La();var a=new chrome.cast.SessionRequest(this.X,[],null,this.ba,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(Uq),d=c.next();!d.done;d=c.next())Yq(d.value,b)},function(b){for(var c=r(Uq),d=c.next();!d.done;d=c.next())d=d.value,Zq="available"==b,d.j.La()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Zq&&this.j.Y($q);(a=Wq)&&a.status!=chrome.cast.SessionStatus.STOPPED? 566Yq(this,a):Wq=null}else window.__onGCastApiAvailable!==ar&&(br=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=ar)};n.$g=function(a){this.A=a;this.h&&cr(this,{type:"appData",appData:this.A})};n.cast=function(a){var b=this;return B(function(c){if(!b.o)throw new F(1,8,8E3);if(!Zq)throw new F(1,8,8001);if(b.h)throw new F(1,8,8002);b.l=new jd;chrome.cast.requestSession(function(d){return dr(b,a,d)},function(d){return er(b,d)});return u(c,b.l,0)})}; 567function fr(a){if(a.h){var b=a.M();chrome.cast.requestSession(function(c){return dr(a,b,c)},function(c){return er(a,c)})}}n.Mc=function(){if(this.h){Vq(this);if(Wq){Xq(this);try{Wq.stop(function(){},function(){})}catch(a){}Wq=null}Tq(this)}}; 568n.get=function(a,b){var c=this;if("video"==a){if(Kq.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.Di.apply(c,[a,b].concat(ma(e)))}}
568else if("player"==a){if(Nq[b]&&!this.get("player","isLive")())return function(){};if(Qq.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.Di.apply(c,[a,b].concat(ma(e)))};if(Rq.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.nm.apply(c, 569[a,b].concat(ma(e)))};if(Lq[b]||Mq[b])return function(){return c.g[a][b]}}return this.g[a][b]};n.set=function(a,b,c){this.g[a][b]=c;cr(this,{type:"set",targetName:a,property:b,value:c})};function dr(a,b,c){Wq=c;c.addUpdateListener(a.C);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.I);Tq(a);cr(a,{type:"init",initState:b,appData:a.A});a.l.resolve()} 570function er(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new F(2,8,c,b))}n.Di=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];cr(this,{type:"call",targetName:a,methodName:b,args:d})};n.nm=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];e=new jd;var f=this.L.toString();this.L++;this.i[f]=e;try{cr(this,{type:"asyncCall",targetName:a,methodName:b,args:d,id:f})}catch(g){e.reject(g)}return e}; 571function Yq(a,b){var c=a.M();a.l=new jd;a.B=!0;dr(a,c,b)}function Xq(a){var b=Wq;b.removeUpdateListener(a.C);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.I)}function Tq(a){var b=Wq?"connected"==Wq.status:!1;if(a.h&&!b){a.W();for(var c in a.g)a.g[c]={};Vq(a)}a.h=b;a.S=b?Wq.receiver.friendlyName:"";a.j.La()}function Vq(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new F(1,7,7E3))}} 572function cr(a,b){b=Eq(b);var c=Wq;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},rb)}catch(d){throw b=new F(2,8,8005,d),c=new ug("error",(new Map).set("detail",b)),a.K("player",c),a.Mc(),b;}}var $q=.02,Zq=!1,Wq=null,br=null,Uq=new Set;function ar(a){br?window.__onGCastApiAvailable=br:delete window.__onGCastApiAvailable;br=null;if(a)for(var b=r(Uq),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function gr(a,b,c,d){d=void 0===d?!1:d;xg.call(this);var e=this;this.i=a;this.h=b;this.A=this.o=this.j=this.B=this.l=null;this.K=c;this.I=d;this.C=new Map;this.g=new Sq(c,function(){return hr(e)},function(){return ir(e)},function(f,g){return jr(e,f,g)},function(){return kr(e)},function(){return lr(e)},d);mr(this)}ua(gr,xg);n=gr.prototype; 573n.destroy=function(a){a&&this.g.Mc();this.A&&(this.A.release(),this.A=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.B=this.l=this.i=null;xg.prototype.release.call(this);return Promise.all(a)};n.Ub=function(){return this.l};n.Qc=function(){return this.B};n.Oh=function(){return this.g.o&&Zq};n.Aa=function(){return this.g.Aa()};n.zf=function(){return this.g.zf()}; 574n.cast=function(){var a=this,b;return B(function(c){return 1==c.g?(b=lr(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.yh(),0):c.return()})};n.$g=function(a){this.g.$g(a)};n.$i=function(){fr(this.g)};n.Mc=function(){this.g.Mc()}; 575n.Sh=function(a,b){b=void 0===b?!1:b;var c=this;return B(function(d){if(1==d.g){if(a==c.K&&b==c.I)return d.return();c.K=a;c.I=b;c.g.Mc();return u(d,c.g.destroy(),2)}c.g=null;c.g=new Sq(a,function(){return hr(c)},function(){return ir(c)},function(e,f){return jr(c,e,f)},function(){return kr(c)},function(){return lr(c)},b);c.g.init();v(d)})}; 576function mr(a){a.g.init();a.A=new Qg;for(var b=r(Hq),c=b.next();!c.done;c=b.next())a.A.s(a.i,c.value,function(f){a.g.Aa()||(f=vg(f),a.j.dispatchEvent(f))});for(var d in wg)a.A.s(a.h,wg[d],function(f){a.g.Aa()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.qd=e,Object.defineProperty(a.l,b.qd,{configurable:!1,enumerable:!0,get:function(f){return function(){return nr(a,f.qd)}}(b),set:function(f){return function(g){var h=f.qd;a.g.Aa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={qd:b.qd};a.B={};or(a, 577function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return pr(a,f)}})});qr(a);a.j=new xg;
577a.j.Ve=a.l;a.o=new xg;a.o.Ve=a.B}function qr(a){var b=new Map;or(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.C.set(c,d):a.C.set(d,c)):b.set(d,c)})} 578function or(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=r(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}} 579function lr(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.gg(),startTime:null};a.i.pause();for(var c=r(Jq),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=r(Oq);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=r(Pq);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function hr(a){var b=new ug("caststatuschanged");a.dispatchEvent(b)} 580function ir(a){var b=new ug(a.l.paused?"pause":"play");a.j.dispatchEvent(b)} 581function kr(a){for(var b=r(Oq),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.i.autoplay=!1,b=a.h.load(e,d));var g={};c=r(Jq);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var h=r(Jq),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=r(Pq);for(k= 582h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new ug("error",h);a.h.dispatchEvent(h)})} 583function nr(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.Aa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Aa()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)} 584function pr(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Ld()};if("getDrmEngine"==b)return function(){return a.h.l};if("getAdManager"==b)return function(){return a.h.Ye()}; 585if("setVideoContainer"==b)return function(c){return a.h.jh(c)};if(a.g.Aa()){if("getManifest"==b||"drmInfo"==b)return function(){ob(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){ob(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Aa()&&0==Object.keys(a.g.g.video).length&&(Lq[b]||Mq[b])||!a.g.Aa()?a.h[b].bind(a.h):a.g.get("player",b)} 586function jr(a,b,c){a.g.Aa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}E("shaka.cast.CastProxy",gr);gr.prototype.changeReceiverId=gr.prototype.Sh;gr.prototype.forceDisconnect=gr.prototype.Mc;gr.prototype.suggestDisconnect=gr.prototype.$i;gr.prototype.setAppData=gr.prototype.$g;gr.prototype.cast=gr.prototype.cast;gr.prototype.receiverName=gr.prototype.zf;gr.prototype.isCasting=gr.prototype.Aa;gr.prototype.canCast=gr.prototype.Oh;gr.prototype.getPlayer=gr.prototype.Qc; 587gr.prototype.getVideo=gr.prototype.Ub;gr.prototype.destroy=gr.prototype.destroy;function rr(a,b,c,d){xg.call(this);var e=this;this.g=a;this.h=b;this.j=new Qg;this.S={video:a,player:b};this.K=c||function(){};this.W=d||function(f){return f};this.i=null;this.L=!1;this.A=!0;this.o=0;this.I=!1;this.C=!0;this.B=this.l=null;this.M=new md(function(){sr(e)});tr(this)}ua(rr,xg);n=rr.prototype;n.isConnected=function(){return this.L};n.Qk=function(){return this.A};n.ym=function(a){this.i=a};n.Lj=function(){this.i=null}; 588n.zm=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};n.xm=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};n.wm=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK}; 589n.destroy=function(){var a=this,b,c;return B(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.M&&(a.M.stop(),a.M=null),a.g=null,a.S=null,a.K=null,a.L=!1,a.A=!0,a.l=null,a.B=null,xg.prototype.release.call(a),u(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();v(d)})}; 590function tr(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return ur(a)};b.onSenderDisconnected=function(){return ur(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&vr(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);vr(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.B=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.B.onMessage=function(e){return wr(a, 591e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return xr(a,e)};b.start();b=r(Hq);for(var c=b.next();!c.done;c=b.next())a.j.s(a.g,c.value,function(e){return yr(a,"video",e)});for(var d in wg)a.j.s(a.h,wg[d],function(e){return yr(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.eh(3840,2160):a.h.eh(1920,1080);a.j.s(a.g,"loadeddata",function(){a.I=!0});a.j.s(a.h,"loading",function(){a.A= 592!1;zr(a)});a.j.s(a.g,"playing",function(){a.A=!1;zr(a)});a.j.s(a.g,"pause",function(){zr(a)});a.j.s(a.h,"unloading",function(){a.A=!0;zr(a)});a.j.s(a.g,"ended",function(){(new md(function(){a.g&&a.g.ended&&(a.A=!0,zr(a))})).Y(Ar)})}function ur(a){a.o=0;a.C=!0;a.L=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;zr(a)} 593function zr(a){var b;B(function(c){if(1==c.g)return u(c,Promise.resolve(),2);
593if(!a.h)return c.return();b=new ug("caststatuschanged");a.dispatchEvent(b);Br(a)||Cr(a);v(c)})} 594function Dr(a,b,c){var d,e,f,g,h,k,l,m,q,p;B(function(t){switch(t.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.K(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,Ba(t,5),u(t,a.h.load(b.manifest,b.startTime),7)):u(t,Promise.resolve(),3);case 7:Da(t,3);break;case 5:return g=Ea(t),h=(new Map).set("detail",g),k=new ug("error",h),a.h&&a.h.dispatchEvent(k),t.return();case 3:if(!a.h)return t.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(q in b.playerAfterLoad)p=b.playerAfterLoad[q],a.h[q](p); 595a.g.autoplay=f;b.manifest&&(a.g.play(),Cr(a));v(t)}})}function yr(a,b,c){a.h&&(sr(a),vr(a,{type:"event",targetName:b,event:c},a.l))} 596function sr(a){a.M.Y(Er);for(var b={video:{},player:{}},c=r(Iq),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.ha())for(var e in Nq)0==a.o%Nq[e]&&(b.player[e]=a.h[e]());for(var f in Lq)0==a.o%Lq[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;vr(a,{type:"update",update:b},a.l);for(var g in Mq)0==a.o%Mq[g]&&(b={player:{}},b.player[g]=a.h[g](),vr(a,{type:"update",update:b},a.l));a.I&&(a.o+= 5971);Br(a)}function Br(a){return a.C&&(a.g.duration||a.h.ha())?(Fr(a),a.C=!1,!0):!1}function Fr(a,b){var c={contentId:a.h.gg(),streamType:a.h.ha()?"LIVE":"BUFFERED",contentType:""};a.h.ha()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Cr(a,void 0===b?0:b,c)} 598function xr(a,b){var c=Fq(b.data);switch(c.type){case "init":a.o=0;a.I=!1;a.C=!0;Dr(a,c.initState,c.appData);sr(a);break;case "appData":a.K(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d)if(b=cast.receiver.CastReceiverManager.getInstance(),"volume"==e){b.setSystemVolumeLevel(c);break}else if("muted"==e){b.setSystemVolumeMuted(c);break}a.S[d][e]=c;break;case "call":d=a.S[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=c.methodName; 599"player"==d&&"load"==e&&(a.o=0,a.I=!1);var f=c.id,g=b.senderId;b=a.S[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return Gr(a,g,f,null)},function(h){return Gr(a,g,f,h)})}} 600function wr(a,b){var c=Fq(b.data);switch(c.type){case "PLAY":a.g.play();Cr(a);break;case "PAUSE":a.g.pause();Cr(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Cr(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Cr(a));break;case "STOP":a.h.yh().then(function(){a.h&&Cr(a)});break;case "GET_STATUS":Fr(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b)); 601null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Cr(a);break;case "LOAD":a.o=0;a.I=!1;a.C=!1;b=c.media;d=c.currentTime;e=a.W(b.contentId);f=c.autoplay||!0;a.K(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Fr(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");vr(a,{requestId:Number(c.requestId),type:h},a.B)});break;default:vr(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}} 602function Gr(a,b,c,d){a.h&&vr(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function vr(a,b,c,d){a.L&&(a=Eq(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Cr(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?Hr:a.h.Sd()?Ir:a.g.paused?Jr:Kr,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);vr(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)} 603E("shaka.cast.CastReceiver",rr);rr.prototype.destroy=rr.prototype.destroy;rr.prototype.setContentArtist=rr.prototype.wm;rr.prototype.setContentImage=rr.prototype.xm;rr.prototype.setContentTitle=rr.prototype.zm;rr.prototype.clearContentMetadata=rr.prototype.Lj;rr.prototype.setContentMetadata=rr.prototype.ym;rr.prototype.isIdle=rr.prototype.Qk;rr.prototype.isConnected=rr.prototype.isConnected;var Er=.5,Ar=5,Hr="IDLE",Kr="PLAYING",Ir="BUFFERING",Jr="PAUSED";function Lr(a,b,c){var d=Mr(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g.delete(null);if(1<g.size)throw new F(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.Wg?(e=h.init||e,!1):!0}),f.length&&(a=Nr(e,f,c,g),0==a.length&&(a=[dd("",e)])));if(d.length&&(b||!f.length))for(a=[],b=r(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(dd(c,e));if(g=Array.from(g)[0]||null)for(b=r(a),c=b.next();!c.done;c=b.next())for(c= 604r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;
604return{Vh:g,nq:e,drmInfos:a,ci:!0}}function Or(a,b,c,d){var e=Lr(a,c,d);if(b.ci){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.ci=!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 F(2,4,4008);return e.Vh||b.Vh} 605function Pr(a){var b=0,c=Ib(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=Fb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c} 606function Qr(a){a=r(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=r(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}function Rr(a){a=uh(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=Od(a.textContent);a=Pr(a).filter(function(b){return b.type===Sr})[0];if(!a)return"";a=Dd(a.value,!0);return(a=Kh(a,"WRMHEADER"))?Qr(a):""} 607function Nr(a,b,c,d){var e=[];b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Wg];if(g){var h;(h=uh(f.node,"urn:microsoft:playready","pro"))?(h=Od(h.textContent),h=[{initData:ph(h,new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),new Set,0),initDataType:"cenc",keyId:f.keyId}]):h=null;var k=null;"urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Wg&&(k=0==d.size?null:[{initData:ph(new Uint8Array([]),new Uint8Array([16,119,239,236,192,178,77,2,172,227,60, 60830,82,226,251,75]),d,1),initDataType:"cenc",keyId:f.keyId}]);h=dd(g,f.init||a||h||k);if(g=Tr.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function Mr(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Ur(c.value))&&b.push(c);return b} 609function Ur(a){var b=a.getAttribute("schemeIdUri"),c=xh(a,"urn:mpeg:cenc:2013","default_KID"),d=vh(a,"urn:mpeg:cenc:2013","pssh").map(zh);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new F(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:Od(f),keyId:null}})}catch(f){throw new F(2,4,4007);}return{node:a,Wg:b,keyId:c,init:0<e.length?e:null}} 610var Sr=1,Tr=(new Map).set("com.widevine.alpha",function(a){return(a=uh(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",Rr).set("com.microsoft.playready.recommendation",Rr).set("com.microsoft.playready.software",Rr).set("com.microsoft.playready.hardware",Rr).set("org.w3.clearkey",function(a){return(a=uh(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function Vr(a,b,c,d,e){var f={RepresentationID:b,Number:c,Bandwidth:d,Time:e};return a.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(g,h,k,l){if("$$"==g)return"$";var m=f[h];if(null==m)return g;"RepresentationID"==h&&k&&(k=void 0);"Time"==h&&(m=Math.round(m));switch(l){case void 0:case "d":case "i":case "u":g=m.toString();break;case "o":g=m.toString(8);break;case "x":g=m.toString(16);break;case "X":g=m.toString(16).toUpperCase();break;default:g=m.toString()}k= 611window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})} 612function Wr(a,b){var c=Xr(a,b,"timescale"),d=1;c&&(d=Gh(c)||1);var e=Xr(a,b,"duration");c=Gh(e||"");"image"==a.T.contentType&&(c=Ih(e||""));c&&(c/=d);var f=Xr(a,b,"startNumber");e=Number(Xr(a,b,"presentationTimeOffset"))||0;var g=Hh(f||"");if(null==f||null==g)g=1;f=Yr(a,b,"SegmentTimeline");b=null;if(f){b=d;a=a.ka.duration||Infinity;f=th(f,"S");for(var h=[],k=-e,l=0;l<f.length;++l){var m=f[l],q=f[l+1],p=Bh(m,"t",Hh),t=Bh(m,"d",Hh);m=Bh(m,"r",Fh);null!=p&&(p-=e);if(!t)break;p=null!=p?p:k;m=m||0;if(0> 613m)if(q){q=Bh(q,"t",Hh);if(null==q)break;else if(p>=q)break;m=Math.ceil((q-p)/t)-1}else{if(Infinity==a)break;else if(p/b>=a)break;m=Math.ceil((a*b-p)/t)-1}0<h.length&&p!=k&&(h[h.length-1].end=p/b);for(q=0;q<=m;++q)k=p+t,h.push({start:p/b,end:k/b,Lm:p}),p=k}b=h}return{timescale:d,Ka:c,dd:g,Lb:e/d||0,Ah:e,timeline:b}}function Xr(a,b,c){return[b(a.T),b(a.Ga),b(a.Ba)].filter(bd).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})} 614function Yr(a,b,c){return[b(a.T),b(a.Ga),b(a.Ba)].filter(bd).map(function(d){return qh(d,c
614)}).reduce(function(d,e){return d||e})} 615function Zr(a,b,c,d,e,f){for(var g=xh(a,"http://www.w3.org/1999/xlink","href"),h=xh(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(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 og(new F(2,4,4028));if("onLoad"!=h)return og(new F(2,4,4027));var m=cd([d],[g]);return e.request(0,Gg(m,b)).wa(function(q){q=Mh(q.data,a.tagName);if(!q)return og(new F(2,4,4001,g)); 616for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;q.childNodes.length;){var p=q.childNodes[0];q.removeChild(p);a.appendChild(p)}q=r(Array.from(q.attributes));for(p=q.next();!p.done;p=q.next())a.setAttributeNode(p.value.cloneNode(!1));return $r(a,b,c,m[0],e,f+1)})} 617function $r(a,b,c,d,e,f){f=void 0===f?0:f;if(xh(a,"http://www.w3.org/1999/xlink","href")){var g=Zr(a,b,c,d,e,f);c&&(g=g.wa(void 0,function(){return $r(a,b,c,d,e,f)}));return g}g=[];for(var h=r(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"==xh(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.pu
617sh($r(k,b,c,d,e,f)));return sg(g).wa(function(){return a})};function as(a,b,c,d,e,f,g){var h,k=(new eh).ea("sidx",function(l){h=bs(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new F(2,3,3004);} 618function bs(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.N();if(0==k)throw new F(2,3,3005);if(0==g.version){var l=g.reader.N();var m=g.reader.N()}else l=g.reader.Ra(),m=g.reader.Ra();g.reader.skip(2);var q=g.reader.me();a=a+g.size+m;for(m=0;m<q;m++){var p=g.reader.N(),t=(p&2147483648)>>>31;p&=2147483647;var w=g.reader.N();g.reader.skip(4);if(1==t)throw new F(2,3,3006);h.push(new Wj(l/k+c,(l+w)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=w;a+=p}g.parser.stop();return h};function cs(a){this.h=Ib(a);this.g=new bh(this.h,0)}cs.prototype.Ia=function(){return this.g.Ia()}; 619function ds(a){var b=es(a);if(7<b.length)throw new F(2,3,3002);var c=0;b=r(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=es(a);a:{d=r(fs);for(var e=d.next();!e.done;e=d.next())if(Db(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.za();else{if(8==b.length&&b[1]&224)throw new F(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.za()+b<=a.h.byteLength?b:a.h.byteLength-a.g.za();d=Ib(a.h,a.g.za(),b);a.g.skip(b);return new gs(c, 620d)}function es(a){var b=a.g.za(),c=a.g.mb();if(0==c)throw new F(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Fb(a.h,b,c)}var fs=[[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 gs(a,b){this.id=a;this.g=b} 621function hs(a){if(8<a.g.byteLength)throw new F(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new F(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 is(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new cs(a.g);for(var q=null,p=null;a.Ia();){var t=ds(a);if(187==t.id){var w=js(t);w&&(t=c*w.Mm,w=b+w.mm,null!=q&&m.push(new Wj(q+g,t+g,l,p,w-1,f,g,h,k)),q=t,p=w)}}null!=q&&m.push(new Wj(q+g,d+g,l,p,null,f,g,h,k));return m} 622function js(a){var b=new cs(a.g);a=ds(b);if(179!=a.id)throw new F(2,3,3013);a=hs(a);b=ds(b);if(183!=b.id)throw new F(2,3,3012);b=new cs(b.g);for(var c=0;b.Ia();){var d=ds(b);if(241==d.id){c=hs(d);break}}return{Mm:a,mm:c}};function ks(a,b){b=Yr(a,b,"Initialization");if(!b)return null;var c=a.T.gb,d=b.getAttribute("sourceURL");d&&(c=cd(a.T.gb,[d]));d=0;var e=null;if(b=Bh(b,"range",Eh))d=b.start,e=b.end;return new Uj(function(){return c},d,e,ls(a))} 623function ms(a,b){var c=Number(Xr(a,ns,"presentationTimeOffset"))||0,d=Xr(a,ns,"timescale"),e=1;d&&(e=Gh(d)||1);var f=c/e||0,g=ks(a,ns);os(a,g);var h=zg(a);return{Nc:function(){var k=Yr(h,ns,"RepresentationIndex"),l=h.T.gb;k&&(k=k.getAttribute("sourceURL"))&&(l=cd(h.T.gb,[k]));k=ps(h);return qs(h,b,g,l,k.start,k.end,f)}}} 624function qs(a,b,c,d,e,f,g){var h,k,l,m,q,p,t,w,z,x,y,D,A,C,G;return B(function(J){if(1==J.g)return h=a.presentationTimeline,k=!a.Qb||!a.ka.lg,l=a.ka.start,m=a.ka.duration,q=a.T.mimeType.split("/")[1],p=b,t=null,w=[p(d,e,f),"webm"==q?p(c.ib(),c.pb,c.Qa):null],p=null,u(J,Promise.all(w),2);z=J.h;x=z[0];y=z[1]||null;D=null;A=l-g;C=l;G=m?l+m:Infinity;if("mp4"==q)var M=as(x,e,d,c,A,C,G);else{M=new cs(y);if(440786851!=ds(M).id)throw new F(2,3,3008);var N=ds(M);if(408125543!=N.id)throw new F(2,3,3009);M= 625N.g.byteOffset;N=new cs(N.g);for(var O=null;N.Ia();){var Y=ds(N);if(357149030==Y.id){O=Y;break}}if(!O)throw new F(2,3,3010);O=new cs(O.g);Y=1E6;for(N=null;O.Ia();){var ha=ds(O);if(2807729==ha.id)Y=hs(ha);else if(17545==ha.id)if(4==ha.g.byteLength)N=ha.g.getFloat32(0);else if(8==ha.g.byteLength)N=ha.g.getFloat64(0);else throw new F(2,3,3003);}if(null==N)throw new F(2,3,3011);O=Y/1E9;N*=O;Y=ds(new cs(x));if(475249515!=Y.id)throw new F(2,3,3007);M=is(Y,M,O,N,d,c,A,C,G)}D=M;h.Yc(D);t=new Gl(D);k&&t.Rb(C, 626G,!0);return J.return(t)})}function ns(a){return a.ue}function ps(a){var b=Yr(a,ns,"RepresentationIndex");a=Xr(a,ns,"indexRange");a=Eh(a||"");b&&(a=Bh(b,"range",Eh,a));return a}function os(a,b){rs(a,b);if(!ps(a))throw new F(2,4,4002);}function rs(a,b){var c=a.T.mimeType.split("/")[1];if(a.T.contentType!=hd&&"mp4"!=c&&"webm"!=c)throw new F(2,4,4006);if("webm"==c&&!b)throw new F(2,4,4005);} 627function ls(a){var b=a.T;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.pf,pixelAspectRatio:b.pixelAspectRatio||null,width:b.
627width||null}};function ss(a,b){var c=ks(a,ts),d=us(a);if(!d.Ka&&!d.timeline&&1<d.Vc.length)throw new F(2,4,4002);if(!d.Ka&&!a.ka.duration&&!d.timeline&&1==d.Vc.length)throw new F(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new F(2,4,4002);var e=null,f=null;a.Ba.id&&a.T.id&&(f=b[a.Ba.id+","+a.T.id])&&(e=f.segmentIndex);var g=vs(a.ka.start,a.ka.duration,a.T.gb,d,c);b=!e;e?e.Wc(g,a.presentationTimeline.Gb()):e=new Gl(g);a.presentationTimeline.Yc(g);a.Qb&&a.ka.lg||e.Rb(a.ka.start,a.ka.duration?a.ka.start+a.ka.duration: 628Infinity,b);f&&(f.segmentIndex=e);return{Nc:function(){e&&!e.Td()||e.Vd(g);return Promise.resolve(e)}}}function ts(a){return a.Xb}function us(a){var b=ws(a);a=Wr(a,ts);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,Lb:a.Lb,timeline:a.timeline,Vc:b}} 629function vs(a,b,c,d,e){var f=d.Vc.length;d.timeline&&d.timeline.length!=d.Vc.length&&(f=Math.min(d.timeline.length,d.Vc.length));for(var g=a-d.Lb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},q=0;q<f;m={Qf:m.Qf},q++){var p=d.Vc[q];m.Qf=cd(c,[p.Zk]);var t=void 0;t=null!=d.Ka?l+d.Ka:d.timeline?d.timeline[q].end:l+b;k.push(new Wj(a+l,a+t,function(w){return function(){return w.Qf}}(m),p.start,p.end,e,g,a,h));l=t}return k} 630function ws(a){return[a.T.Xb,a.Ga.Xb,a.Ba.Xb].filter(bd).map(function(b){return th(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.ni&&(a.ni=!0);var c=b.getAttribute("media");b=Bh(b,"mediaRange",Eh,{start:0,end:null});return{Zk:c,start:b.start,end:b.end}})};function xs(a,b,c,d,e,f){var g=ys(a),h=zs(a);As(h);var k=zg(a);if(h.Rd)return rs(a,g),{Nc:function(){var t=Vr(h.Rd,k.T.id,null,k.bandwidth||null,null);t=cd(k.T.gb,[t]);return qs(k,b,g,t,0,null,h.Lb)}};if(h.Ka)return d||"image"===a.Ga.contentType||(a.presentationTimeline.Ag(h.Ka),a.presentationTimeline.Bg(a.ka.start)),{Nc:function(){return Bs(k,h,e,g,f)}};var l=null;d=d=null;a.Ba.id&&a.T.id&&(d=a.Ba.id+","+a.T.id,d=c[d])&&(l=d.segmentIndex);var m=Cs(k,h,g);c=a.ka.start;var q=a.ka.duration?a.ka.start+ 631a.ka.duration:Infinity,p=!(a.Qb&&a.ka.lg);l?(p&&(new Gl(m)).Rb(c,q,!0),l.Wc(m,a.presentationTimeline.Gb())):l=new Gl(m);a.presentationTimeline.Yc(m);p&&l.Rb(c,q);d&&a.Qb&&(d.segmentIndex=l);return{Nc:function(){l&&!l.Td()||l.Vd(m);return Promise.resolve(l)}}}function Ds(a){return a.ve}function zs(a){var b=Wr(a,Ds),c=Xr(a,Ds,"media");a=Xr(a,Ds,"index");return{Ka:b.Ka,timescale:b.timescale,dd:b.dd,Lb:b.Lb,Ah:b.Ah,timeline:b.timeline,xg:c,Rd:a}} 632function As(a){var b=a.Rd?1:0;b+=a.timeline?1:0;b+=a.Ka?1:0;if(0==b)throw new F(2,4,4002);1!=b&&(a.Rd&&(a.timeline=null),a.Ka=null);if(!a.Rd&&!a.xg)throw new F(2,4,4002);} 633function Bs(a,b,c,d,e){function f(O){var Y=(O-t)*p,ha=Y+b.Lb,ia=Y+l;Y=ia+p;var na=Math.min(Y,h());ia=new Wj(ia,na,function(){var ba=Vr(z,y,O,x,ha*w);return cd(D,[ba])},0,null,d,A,l,h());ia.l=Y;return ia}function g(){var O=[Math.max(k.Gb(),l),Math.min(k.gc(),h())].map(function(Y){return Y-l});return[Math.ceil(O[0]/p),Math.ceil(O[1]/p)-1].map(function(Y){return Y+t})}function h(){var O=null!=m&&e[m]||q;return O?l+O:Infinity}var k=a.presentationTimeline,l=a.ka.start,m=a.Ba.id,q=a.ka.duration,p=b.Ka, 634t=b.dd,w=b.timescale,z=b.xg,x=a.bandwidth||null,y=a.T.id,D=a.T.gb,A=l-b.Lb,C=g();a=a.Qb?Math.max(C[0],C[1]-c+1):C[0];C=C[1];c=[];for(var G=a;G<=C;++G){var J=f(G);c.push(J)}var M=new Gl(c);c=k.gc()<h();G=k.ha();if(c||G){var N=Math.max(a,C+1);M.Df(p,function(){var O=k.Gb();M.fc(O);var Y=r(g());Y.next();Y=Y.next().value;for(var ha=[];N<=Y;){var ia=f(N);ha.push(ia);N++}return O>h()&&!ha.length?null:ha})}return Promise.resolve(M)} 635function Cs(a,b,c){var d=a.ka.start,e=a.ka.duration,f=d-b.Lb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Pf:h.Pf,Tf:h.Tf,Wf:h.Wf,Mf:h.Mf,Yf:h.Yf,Nf:h.Nf},k++){var l=b.timeline[k],m=l.start,q=l.Lm;l=l.end;h.Wf=k+b.dd;h.Yf=q+b.Ah;h.Tf=a.T.id;h.Mf=a.bandwidth||null;h.Pf=b.xg;h.Nf=a.T.gb;g.push(new Wj(d+m,d+l,function(p){return function(){var t=Vr(p.Pf,p.Tf,p.Wf,p.Mf||null,p.Yf);return cd(p.Nf,[t]).map(function(w){return w.toString()})}}(h),0,null,c,f,d,e))}return g} 636function ys(a){var b=Xr(a,Ds,"initialization");if(!b)return null;var c=a.T.id,d=a.bandwidth||null,e=a.T.gb;return new Uj(function(){var f=Vr(b,c,null,d,null);return cd(e,[f])},0,null,ls(a))};function Es(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.o=new Set}Es.prototype.release=function(){for(var a=r(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]}; 637function Fs(a,b,c){var d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D,A,C,G,J,M,N,O,Y,ha,ia,na,ba,Aa,Qa;return B(function(va){switch(va.g){case 1:d=id;Gs(b);Hs(b);Is(b);Js(b);if(!c&&1==b.length){e=b[0];a.g=e.Me;a.h=e.Ff;a.j=e.textStreams;a.i=e.imageStreams;va.D(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.o.has(h.id)||(a.o.add(h.id),-1==f&&(f=g));if(-1==f)return va.return();k=b.map(function(lb){return lb.Me});l=b.map(function(lb){return lb.Ff});m=b.map(function(lb){return lb.textStreams});q=b.map(function(lb){return lb.imageStreams}); 638p=r(m);for(t=p.next();!t.done;t=p.next())w=t.value,w.push(Ks(d.ra));z=r(q);for(x=z.next();!x.done;x=z.next())y=x.value,y.push(Ks(d.vd));return u(va,Ls(a.g,k,f,Ms,Ns),3);case 3:return u(va,Ls(a.h,l,f,Ms,Ns),4);case 4:return u(va,Ls(a.j,m,f,Ms,Ns),5);case 5:return u(va,Ls(a.i,q,f,Ms,Ns),2);case 2:D=0;A=[];if(a.h.length&&a.g.length)for(O=r(a.g),Y=O.next();!Y.done;Y=O.next())for(ha=Y.value,ia=r(a.h),na=ia.next();!na.done;na=ia.next())ba=na.value,Aa=wi(ha.drmInfos,ba.drmInfos),ha.drmInfos.length&&ba.drmInfos.length&& 639!Aa.length||(Qa=D++,A.push({id:Qa,language:ha.language,primary:ha.primary,audio:ha,video:ba,bandwidth:(ha.bandwidth||0)+(ba.bandwidth||0),drmInfos:Aa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(C=a.h.concat(a.g),G=r(C),J=G.next();!J.done;J=G.next())M=J.value,N=D++,A.push({id:N,language:M.language,primary:M.primary,audio:M.type==d.He?M:null,video:M.type==d.fb?M:null,bandwidth:M.bandwidth||0,drmInfos:M.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}); 640a.l=A;v(va)}})}function Gs(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Me),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;
640h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&Ae(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.Me=c}} 641function Is(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&Ae(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}} 642function Hs(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Ff),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&Ae(e.roles,h.roles)&&ah(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Ff=c}} 643function Js(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.imageStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;
643h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&(f=!0);f||c.push(e)}b.imageStreams=c}} 644function Os(a){var b,c,d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D,A,C,G,J,M,N,O,Y,ha;return B(function(ia){switch(ia.g){case 1:b=id;if(1==a.length)return ia.return(a[0]);c=a.map(function(na){return na.filter(function(ba){return ba.type==b.He})});d=a.map(function(na){return na.filter(function(ba){return ba.type==b.fb})});e=a.map(function(na){return na.filter(function(ba){return ba.type==b.ra})});f=a.map(function(na){return na.filter(function(ba){return ba.type==b.vd})});g=r(e);for(h=g.next();!h.done;h=g.next())k= 645h.value,k.push(Ps(b.ra));l=r(f);for(m=l.next();!m.done;m=l.next())q=m.value,q.push(Ps(b.vd));return u(ia,Ls([],c,0,Qs,Rs),2);case 2:return p=ia.h,u(ia,Ls([],d,0,Qs,Rs),3);case 3:return t=ia.h,u(ia,Ls([],e,0,Qs,Rs),4);case 4:return w=ia.h,u(ia,Ls([],f,0,Qs,Rs),5);case 5:z=ia.h;x=0;if(t.length&&p.length)for(G=r(p),J=G.next();!J.done;J=G.next())for(M=J.value,N=r(t),O=N.next();!O.done;O=N.next())Y=O.value,ha=x++,Y.variantIds.push(ha),M.variantIds.push(ha);else for(y=t.concat(p),D=r(y),A=D.next();!A.done;A= 646D.next())C=A.value,C.variantIds=[x++];return ia.return(t.concat(p,w,z))}})} 647function Ls(a,b,c,d,e){var f,g,h,k,l,m,q,p,t,w,z,x,y,D,A,C,G,J,M,N,O;return B(function(Y){switch(Y.g){case 1:f=id;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=r(a);l=k.next();case 2:if(l.done){Y.D(4);break}m=l.value;return u(Y,Ss(m,b,c,e,g),5);case 5:q=Y.h;if(!q)throw new F(2,4,4037);l=k.next();Y.D(2);break;case 4:p=r(g);for(t=p.next();!t.done;t=p.next())for(w=t.value,z=r(w),x=z.next();!x.done;x=z.next())y=x.value,(D=Ts(y,b,d,e,g))&&a.push(D);A=r(g);for(t=A.next();!t.done;t= 648A.next())for(C=t.value,G={},J=r(C),x=J.next();!x.done;G={Pb:G.Pb},x=J.next())if(G.Pb=x.value,M=G.Pb.type==f.ra&&!G.Pb.language,N=G.Pb.type==f.vd&&!G.Pb.tilesLayout,!M&&!N&&(O=a.some(function(ha){return function(ia){return ia.mimeType==ha.Pb.mimeType&&de(ia.codecs)==de(ha.Pb.codecs)}}(G))))throw new F(2,4,4037);return Y.return(a)}})} 649function Ss(a,b,c,d,e){return B(function(f){if(1==f.g)return Us(b,a),a.matchedStreams?a.segmentIndex?u(f,Vs(a,c),2):f.D(2):f.return(!1);Ws(a,c,d,e);return f.return(!0)})} 650function Vs(a,b){var c,d,e,f,g,h,k;return B(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=r(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return u(l,Promise.all(c),2)}if(a.segmentIndex instanceof Kl)for(h=b;h<d.length;h++)k=d[h],k.segmentIndex&&a.segmentIndex.l.push(k.segmentIndex);v(l)})} 651function Ts(a,b,c,d,e){var f=c(a);Us(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return B(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new Kl;return u(g,Vs(f,0),0)})});if(!f.matchedStreams||!f.matchedStreams.length)return null;Ws(f,0,d,e);return f}function Ws(a,b,c,d){for(var e=a.matchedStreams,f=0;f<e.length;f++)if(f>=b){var g=e[f];c(a,g);var h=!0;"audio"==a.type&&0==se(a.language,g.language)&&(h=!1);h&&d[f].delete(g)}} 652function Ms(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=r(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b} 653function Qs(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a} 654function Ns(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));a.keyIds=function(f,g){return new Set(ma(f).concat(ma(g)))}(a.keyIds,b.keyIds);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");var c=wi(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new F(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions|| 655(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=Ms(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),Ns(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&Ns(a.trickModeVideo,b)} 656function Rs(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set(ma(a.keyIds).concat(ma(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ma(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=r(b.closedCaptions),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;a.closedCaptions.set(c,d)}} 657function Us(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=b,f={audio:Xs,video:Xs,text:Ys,image:Zs}[e.type],g={audio:$s,video:at,text:bt,image:ct}[e.type],h=null;d=r(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}function Xs(a,b){var c;!(c=b.mimeType!=a.mimeType||de(b.codecs)!=de(a.codecs))&&(c=a.drmInfos)&&(a=a.drmInfos,b=b.drmInfos,c=!(a.length&&b.length?0<wi(a,b).length:1));return c?!1:!0} 658function Ys(a,b){return a.language?b.language?0==se(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function Zs(a){return a.tilesLayout?!0:!1} 659function $s(a,b,c){if(a.id==c.id)return!0;var d=se(a.language,b.language),e=se(a.language,c.language);if(e>d)return!0;
659if(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; 660d=dt(a.channelsCount,b.channelsCount,c.channelsCount);if(d==et)return!0;if(d==ft)return!1;d=dt(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==et?!0:d==ft?!1:a.bandwidth&>(a.bandwidth,b.bandwidth,c.bandwidth)==et?!0:!1} 661function at(a,b,c){if(a.id==c.id)return!0;var d=dt(a.width*a.height,b.width*b.height,c.width*c.height);if(d==et)return!0;if(d==ft)return!1;if(a.frameRate){d=dt(a.frameRate,b.frameRate,c.frameRate);if(d==et)return!0;if(d==ft)return!1}return a.bandwidth&>(a.bandwidth,b.bandwidth,c.bandwidth)==et?!0:!1} 662function bt(a,b,c){if(a.id==c.id)return!0;var d=se(a.language,b.language),e=se(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!= 663a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function ct(a,b,c){return a.id==c.id?!0:dt(a.width*a.height,b.width*b.height,c.width*c.height)==et?!0:!1}function Ps(a){return{id:0,originalId:"",primary:!1,type:a,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}} 664function Ks(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Gl([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}} 665function dt(a,b,c){if(b==a&&a!=c)return ft;if(c==a&&a!=b)return et;if(b>a){if(c<=a||c-a<b-a)return et;if(c-a>b-a)return ft}else{if(c>a)return ft;if(a-c<a-b)return et;if(a-c>a-b)return ft}return ht}function gt(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?et:b<a?ft:ht}var et=1,ht=0,ft=-1;function it(){var a=this;this.F=this.m=null;this.i=[];this.H=null;this.M=1;this.h={};this.L={};this.g=new Es;this.C=0;this.I=new yn(5);this.B=new md(function(){a.Wd()});this.o=new Ag;this.j=null;this.K=[];this.l=Infinity;this.A=!1}n=it.prototype;n.configure=function(a){this.m=a};n.start=function(a,b){var c=this,d;return B(function(e){if(1==e.g)return c.A=b.isLowLatencyMode(),c.i=[a],c.F=b,u(e,c.sc(),2);d=e.h;c.F&&jt(c,d);if(!c.F)throw new F(2,7,7001);return e.return(c.H)})}; 666n.stop=function(){for(var a=r(Object.values(this.h)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g&&this.g.release();this.m=this.F=null;this.i=[];this.H=null;this.h={};this.g=null;null!=this.B&&(this.B.stop(),this.B=null);return this.o.destroy()};n.update=function(){var a=this,b;return B(function(c){if(1==c.g)return Ba(c,2),u(c,a.sc(),4);if(2!=c.g)return Da(c,0);b=Ea(c);if(!a.F||!b)return c.return();a.F.onError(b);v(c)})};n.onExpirationUpdated=function(){}; 667n.sc=function(){var a=this,b,c,d,e,f,g,h;return B(function(k){if(1==k.g)return b=Gg(a.i,a.m.retryParameters),c=a.F.networkingEngine,a.F.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),Bg(a.o,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.F)return k.return(0);f.uri&&!a.i.includes(f.uri)&&a.i.unshift(f.uri);return u(k,kt(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;zn(a.I,1,h);return k.return(h)})}; 668function kt(a,b,c){var d,e,f,g,h;return B(function(k){if(1==k.g){d=Mh(b,"MPD");if(!d)throw new F(2,4,4001,c);if(e=a.m.dash.disableXlinkProcessing)return k.return(lt(a,d,c));f=a.m.dash.xlinkFailGracefully;g=$r(d,a.m.retryParameters,f,c,a.F.networkingEngine);Bg(a.o,g);return u(k,g.promise,2)}h=k.h;return k.return(lt(a,h,c))})} 669function lt(a,b,c){var d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D,A,C,G,J,M,N,O,Y,ha,ia,na,ba,Aa,Qa,va,lb;return B(function(bb){switch(bb.g){case 1:(d=a.m.dash.manifestPreprocessor)&&d(b);e=[c];f=th(b,"Location").map(zh).filter(bd);0<f.length&&(g=cd(e,f),e=a.i=g);h=th(b,"BaseURL");k=h.map(zh);l=cd(e,k);m=0;h&&h.length&&(m=Bh(h[0],"availabilityTimeOffset",Ih)||0);q=a.m.dash.ignoreMinBufferTime;p=0;q||(p=Bh(b,"minBufferTime",Dh)||0);a.C=Bh(b,"minimumUpdatePeriod",Dh,-1);t=Bh(b,"availabilityStartTime",Ch);w=Bh(b, 670"timeShiftBufferDepth",Dh);z=a.m.dash.ignoreSuggestedPresentationDelay;x=null;z||(x=Bh(b,"suggestedPresentationDelay",Dh));y=a.m.dash.ignoreMaxSegmentDuration;D=null;y||(D=Bh(b,"maxSegmentDuration",Dh));A=b.getAttribute("type")||"static";if(a.H)for(C=a.H.presentationTimeline,G=r(Object.values(a.h)),J=G.
670next();!J.done;J=G.next())M=J.value,M.segmentIndex&&M.segmentIndex.fc(C.Gb());else N=a.m.defaultPresentationDelay||1.5*p,O=null!=x?x:N,C=new jl(t,O,a.m.dash.autoCorrectDrift);C.we("static"==A);(Y=C.ha())&& 671!isNaN(a.m.availabilityWindowOverride)&&(w=a.m.availabilityWindowOverride);null==w&&(w=Infinity);C.hh(w);ha=b.getAttribute("profiles")||"";ia={Qb:"static"!=A,presentationTimeline:C,Ba:null,ka:null,Ga:null,T:null,bandwidth:0,ni:!1,Kc:m,profiles:ha.split(",")};na=mt(a,ia,l,b);ba=na.duration;Aa=na.periods;"static"!=A&&na.Yh||C.ob(ba||Infinity);a.l&&!a.A&&(Qa=a.F.isAutoLowLatencyMode())&&(a.F.enableLowLatencyMode(),a.A=a.F.isLowLatencyMode());a.A?C.Hi(a.l):a.l&&ob("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."); 672C.Ag(D||1);return u(bb,Fs(a.g,Aa,ia.Qb),2);case 2:if(a.H){a.H.variants=a.g.l;a.H.textStreams=a.g.j.slice();a.H.imageStreams=a.g.i;a.F.filter(a.H);bb.D(3);break}a.H={presentationTimeline:C,variants:a.g.l,textStreams:a.g.j.slice(),imageStreams:a.g.i,offlineSessionIds:[],minBufferTime:p||0,sequenceMode:a.m.dash.sequenceMode};if(!C.dj()){bb.D(4);break}va=th(b,"UTCTiming");return u(bb,nt(a,l,va),5);case 5:lb=bb.h;if(!a.F)return bb.return();C.Ii(lb);case 4:C.sg();case 3:a.F.makeTextStreamsForClosedCaptions(a.H), 673v(bb)}})} 674function mt(a,b,c,d){var e=Bh(d,"mediaPresentationDuration",Dh),f=[],g=0;d=th(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=Bh(k,"start",Dh,g),q=k.id,p=Bh(k,"duration",Dh),t=null;if(l){var w=Bh(l,"start",Dh);null!=w&&(t=w-m)}else null!=e&&(t=e-m);null==t&&(t=p);if(!(null!==a.j&&null!==q&&null!==m&&m<a.j)||a.K.includes(q)||h+1==d.length){null!==m&&(null===a.j||m>a.j)&&(a.j=m);g=ot(a,b,c,{start:m,duration:t,node:k,lg:null==t||!l});f.push(g);b.Ba.id&&t&&(a.L[b.Ba.id]=t);if(null==t){g= 675null;break}g=m+t}}a.K=f.map(function(z){return z.id});return null!=e?{periods:f,duration:e,Yh:!1}:{periods:f,duration:g,Yh:!0}} 676function ot(a,b,c,d){b.Ba=pt(d.node,null,c);b.ka=d;b.Ba.Kc=b.Kc;b.Ba.id||(b.Ba.id="__shaka_period_"+d.start);var e=th(d.node,"EventStream");c=b.presentationTimeline.Gb();e=r(e);for(var f=e.next();!f.done;f=e.next())qt(a,d.start,d.duration,f.value,c);c=th(d.node,"AdaptationSet").map(function(m){return rt(a,b,m)}).filter(bd);if(b.Qb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.pm);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new F(2,4,4018); 677}d=c.filter(function(m){return!m.vh});c=c.filter(function(m){return m.vh});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.vh.split(" ");g=r(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=r(k.streams);for(var l=k.next();!l.done;h={Ge:h.Ge},l=k.next())h.Ge=l.value,h.Ge.trickModeVideo=e.streams.find(function(m){return function(q){return de(m.Ge.codecs)==de(q.codecs)}}(h))}}}e=a.m.disableAudio?[]:st(d,"audio");g=a.m.disableVideo?[]:st(d,"video");f=a.m.disableText? 678[]:st(d,hd);c=a.m.disableThumbnails?[]:st(d,"image");if(!g.length&&!e.length)throw new F(2,4,4004);d=[];e=r(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ma(h.value.streams));e=[];g=r(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ma(h.value.streams));g=[];f=r(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ma(h.value.streams));f=[];c=r(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ma(h.value.streams));return{id:b.Ba.id,Me:d,Ff:e,textStreams:g,imageStreams:f}} 679function st(a,b){return a.filter(function(c){return c.contentType==b})} 680function rt(a,b,c){function d(J){switch(J){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Ga=pt(c,b.Ba,null);var e=!1,f=th(c,"Role"),g=f.map(function(J){return J.getAttribute("value")}).filter(bd),h=void 0,k=b.Ga.contentType==hd;k&&(h="subtitle");f=r(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= 681l}}var q;m=th(c,"EssentialProperty");f=null;l=!1;m=r(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var t=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==t?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t?q=d(parseInt(p.getAttribute("value"),10)):l=!0}m=th(c,"SupplementalProperty");m=r(m);for(p=m.next();!p.done;p=m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==p.getAttribute("schemeIdUri")&&(q=d(parseInt(p.getAttribute("value"), 68210)));m=th(c,"Accessibility");var w=new Map;m=r(m);for(p=m.next();!p.done;p=m.next())if(t=p.value,p=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2
682015"==p)if(p=1,null!=t){t=t.split(";");for(var z=r(t),x=z.next();!x.done;x=z.next()){var y=x.value,D=x=void 0;y.includes("=")?(y=y.split("="),x=y[0].startsWith("CC")?y[0]:"CC"+y[0],D=y[1]||"und"):(x="CC"+p,2==t.length?p+=2:p++,D=y);w.set(x,me(D))}}else w.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p= 6831,null!=t)for(t=r(t.split(";")),x=t.next();!x.done;x=t.next())x=x.value,y=z=void 0,x.includes("=")?(x=x.split("="),z="svc"+x[0],y=x[1].split(",")[0].split(":").pop()):(z="svc"+p,p++,y=x),w.set(z,me(y));else w.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=th(c,"ContentProtection");var A=Lr(l,a.m.dash.ignoreDrmInfo,a.m.dash.keySystemsByURI),C=me(c.getAttribute("lang")||"und"),G=c.getAttribute("label");(l=th(c,"Label"))&&l.length&& 684(l=l[0],l.textContent&&(G=l.textContent));l=th(c,"Representation");c=l.map(function(J){if(J=tt(a,b,A,h,C,G,e,g,w,J))J.hdr=J.hdr||q;return J}).filter(function(J){return!!J});if(0==c.length){f="image"==b.Ga.contentType;if(a.m.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new F(2,4,4003);}if(!b.Ga.contentType||"application"==b.Ga.contentType)for(b.Ga.contentType=ut(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=b.Ga.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m= 685m.value,p=r(A.drmInfos),t=p.next();!t.done;t=p.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set(ma(t.keyIds).concat(ma(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(J){return J.getAttribute("id")}).filter(bd);return{id:b.Ga.id||"__fake__"+a.M++,contentType:b.Ga.contentType,language:C,Bq:e,streams:c,drmInfos:A.drmInfos,vh:f,pm:k}} 686function tt(a,b,c,d,e,f,g,h,k,l){b.T=pt(l,b.Ga,null);a.l=Math.min(a.l,b.T.Kc);if(!vt(b.T))return null;var m=b.ka.start;b.bandwidth=Bh(l,"bandwidth",Gh)||0;var q=b.T.contentType,p=q==hd||"application"==q;q="image"==q;try{var t=function(J,M,N){return wt(a,J,M,N)};if(b.T.ue)var w=ms(b,t);else if(b.T.Xb)w=ss(b,a.h);else if(b.T.ve)w=xs(b,t,a.h,!!a.H,a.m.dash.initialSegmentLimit,a.L);else{var z=b.T.gb,x=b.ka.duration||0;w={Nc:function(){return Promise.resolve(Jl(m,x,z))}}}}catch(J){if((p||q)&&4002==J.code)return null; 687throw J;}t=th(l,"ContentProtection");t=Or(t,c,a.m.dash.ignoreDrmInfo,a.m.dash.keySystemsByURI);t=new Set(t?[t]:[]);var y=!1;th(l,"SupplementalProperty").some(function(J){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==J.getAttribute("schemeIdUri")&&"JOC"==J.getAttribute("value")})&&(y=!0);var D=!1;p&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var A;if(q&&((l=th(l,"EssentialProperty").find(function(J){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(J.getAttribute("schemeIdUri"))}))&& 688(A=l.getAttribute("value")),!A))return null;var C;l=b.T.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(C="PQ");l=b.T.id?b.Ba.id+","+b.T.id:"";var G;l&&a.h[l]?G=a.h[l]:G={id:a.M++,originalId:b.T.id,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){G.segmentIndex&&(G.segmentIndex.release(),G.segmentIndex=null)},segmentIndex:null,mimeType:b.T.mimeType,codecs:b.T.codecs, 689frameRate:b.T.frameRate,pixelAspectRatio:b.T.pixelAspectRatio,bandwidth:b.bandwidth,width:b.T.width,height:b.T.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:t,language:e,label:f,type:b.Ga.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.T.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.T.pf,audioSamplingRate:b.T.audioSamplingRate,spatialAudio:y,closedCaptions:k,hdr:C,tilesLayout:A,matchedStreams:[]};G.createSegmentIndex=function(){var J;return B(function(M){if(1== 690M.g){if(G.segmentIndex)return M.D(0);J=G;return u(M,w.Nc(),3)}J.segmentIndex=M.h;v(M)})};l&&b.Qb&&!a.h[l]&&(a.h[l]=G);return G}n.Wd=function(){var a=this,b,c;return B(function(d){switch(d.g){case 1:return b=0,Ba(d,2),u(d,a.sc(),4);case 4:b=d.h;Da(d,3);break;case 2:c=Ea(d),a.F&&(c.severity=1,a.F.onError(c));case 3:if(!a.F)return d.return();jt(a,b);v(d)}})};function jt(a,b){0>a.C||a.B.Y(Math.max(3,a.C-b,An(a.I)))} 691function pt(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,pf:null,audioSamplingRate:null,Kc:0};c=c||b.gb;var d=th(a,"BaseURL"),e=d.map(zh),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=Bh(a,"frameRate",Jh)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=th(a,"InbandEventStream"),q=b.emsgSchemeIdUris.slice();m=r(m);for(var p=m.next();!p.done;p= 692m.next())p=p.value.getAttribute("schemeIdUri"),q.includes(p)||q.push(p);m=th(a,"AudioChannelConfiguration");m=xt(m)||b.pf;p=Bh(a,"audioSamplingRate",Hh)||b.audioSamplingRate;f||(f=ut(g,h));var t=qh(a,"SegmentBase"),w=qh(a,"SegmentTemplate"),z=t?Bh(t,"availabilityTimeOffset",Ih)||0:0,x=w?Bh(w,"availabilityTimeOffset",Ih)||0:0;d=d&&d.length?Bh(d[0],"availabilityTimeOffset",Ih)||0:0;d=b.Kc+d+z+x;return{gb:cd(c,e),ue:t||b.ue,Xb:qh(a,"SegmentList")||b.Xb,ve:w||b.ve,width:Bh(a,"width",Hh)||b.width,height:Bh(a, 693"height",Hh)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:q,id:a.getAttribute("id"),pf:m,audioSamplingRate:p,Kc:d}} 694function xt(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;
694case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b= 695parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function vt(a){var b=a.ue?1:0;b+=a.Xb?1:0;b+=a.ve?1:0;if(0==b)return a.contentType==hd||"application"==a.contentType?!0:!1;1!=b&&(a.ue&&(a.Xb=null),a.ve=null);return!0} 696function yt(a,b,c,d){var e,f,g,h,k,l;return B(function(m){if(1==m.g)return e=cd(b,[c]),f=Gg(e,a.m.retryParameters),f.method=d,g=a.F.networkingEngine.request(4,f),Bg(a.o,g),u(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m.return(0);k=h.headers.date}else k=Cd(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})} 697function nt(a,b,c){var d,e,f,g,h,k,l,m;return B(function(q){switch(q.g){case 1:d=c.map(function(p){return{scheme:p.getAttribute("schemeIdUri"),value:p.getAttribute("value")}}),e=a.m.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=r(d),g=f.next();case 2:if(g.done){q.D(4);break}h=g.value;Ba(q,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return q.D(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return q.D(8); 698case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),q.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":ob("NTP UTCTiming scheme is not supported");break;default:ob("Unrecognized scheme in UTCTiming element",k)}q.D(9);break;case 7:return u(q,yt(a,b,l,"HEAD"),10);case 10:return q.return(q.h);case 8:return u(q,yt(a,b,l,"GET"),11);case 11:return q.return(q.h);case 9:Da(q, 6993);break;case 5:Ea(q);case 3:g=f.next();q.D(2);break;case 4:return ob("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),q.return(0)}})} 700function qt(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=Bh(d,"timescale",Hh)||1;d=r(th(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=Bh(k,"presentationTime",Hh)||0,m=Bh(k,"duration",Hh)||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.F.onTimelineRegionAdded(k))}} 701function wt(a,b,c,d){var e,f,g,h,k;return B(function(l){if(1==l.g)return e=Ng,f=Zl(b,c,d,a.m.retryParameters),g=a.F.networkingEngine,h=g.request(e,f),Bg(a.o,h),u(l,h.promise,2);k=l.h;return l.return(k.data)})}function ut(a,b){return Xe(be(a,b))?hd:a.split("/")[0]}E("shaka.dash.DashParser",it);Ci.mpd=function(){return new it};Ai["application/dash+xml"]=function(){return new it};Ai["video/vnd.mpeg.dash.mpd"]=function(){return new it};function zt(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function At(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}At.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b}; 702At.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function Bt(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Ct(a,b){a=a.getAttribute(b);if(!a)throw new F(2,4,4023,b);return a.value}function Dt(a,b,c){c=void 0===c?[]:c;this.g=b;this.i=a;this.h=c}function Et(a,b){this.name=a;this.value=b};function Ft(a,b){return a.filter(function(c){return c.name==b})}function Gt(a,b){return a.filter(function(c){return Ct(c,"TYPE")==b})}function Ht(a,b){a=Ft(a,b);return a.length?a[0]:null}function It(a,b){var c=0;c=void 0===c?0:c;return(a=Ht(a,b))?Number(a.value):c}function Jt(a,b){return cd([a],[b])[0]};function Kt(a){this.h=a;this.g=0}Kt.prototype.Jc=function(){return this.g==this.h.length};function Lt(a){Mt(a,/[ \t]+/gm)}function Mt(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.Jc()||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function Nt(a){return a.Jc()?null:(a=Mt(a,/[^ \t\n]*/gm))?a[0]:null};function Ot(){this.g=0} 703function Pt(a,b,c){b=Cd(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new F(2,4,4015);b=0;for(var e=!0,f=r(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=Qt(a,g),--a.g,Rt.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=Qt(a,h);if(St.includes(h.name)){if(1!=b)throw new F(2,4,4017); 704var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=r(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=Qt(a,m),Rt.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"
704==m.name?"PART"==Bt(m,"TYPE")?k.push(m):"MAP"==Bt(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=Jt(d,m.trim()),h&&g.push(h),e.push(new Dt(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new Dt("",g,k)));return new zt(c,b,f,e)}f.push(h); 705"EXT-X-STREAM-INF"==h.name&&(h.g.push(new Et("URI",k)),e=!0)}}return new zt(c,b,f)}function Qt(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new F(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Kt(d);var f;(f=Mt(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=Mt(d,g);)c.push(new Et(f[1],f[2]||f[3])),Lt(d)}return new At(a,b,c,e)} 706var Rt="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".split(" "),St="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Tt(){}function Ut(a){try{var b=Vt(a);return qg({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return og(c)}} 707function Vt(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new F(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new F(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=Od(a):e=Gd(a);return{data:e,contentType:c}}E("shaka.net.DataUriPlugin",Tt);Tt.parse=Ut;Dg("data",Ut);function Wt(){var a=this;this.m=this.F=null;this.va=1;this.i=new Map;this.l=new Map;this.A=new Map;this.A.set("video",new Map);this.A.set("audio",new Map);this.A.set(hd,new Map);this.A.set("image",new Map);this.ma=new Set;this.oa=new Map;this.g=null;this.L="";this.vg=new Ot;this.Ef=0;this.o=-1;this.B=Infinity;this.Yi=!1;this.$b=new md(function(){a.Wd()});this.ba=Xt;this.H=null;this.W=0;this.C=Infinity;this.M=this.X=0;this.I=new Ag;this.K=new Map;this.j=new Map;this.S=new Map;this.h=!1}n=Wt.prototype; 708n.configure=function(a){this.m=a};n.start=function(a,b){var c=this,d;return B(function(e){return 1==e.g?(c.F=b,c.h=b.isLowLatencyMode(),u(e,c.sc(a),2)):3!=e.g?(d=e.h,c.L=d.uri,u(e,Yt(c,d.data,a),3)):e.return(c.H)})};n.stop=function(){this.$b&&(this.$b.stop(),this.$b=null);var a=[];this.I&&(a.push(this.I.destroy()),this.I=null);this.m=this.F=null;this.ma.clear();this.H=null;this.oa.clear();this.l.clear();this.j.clear();this.i.clear();return Promise.all(a)}; 709n.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return B(function(m){if(1==m.g){if(!Zt(a))return m.return();b=[];c=Array.from(a.oa.values());d=c.filter(function(q){return q.stream.segmentIndex});e=r(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push($t(a,g));return u(m,Promise.all(b),2)}au(a,d.map(function(q){return q.stream}));h=d.some(function(q){return 0==q.Pd});d.length&&!h&&(k=bu,cu(a,k.xj),l=d.map(function(q){return q.Wb}),a.g.ob(Math.min.apply(Math,ma(l))),a.F.updateDuration());v(m)})}; 710function du(a,b){return Zt(a)?a.A.get(b.type):b.mf} 711function $t(a,b){var c,d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D;return B(function(A){if(1==A.g)return c=b.Ie,d=new Ic(c),a.h&&b.Re&&Lc(d,new Nc("_HLS_skip=YES")),u(A,a.sc(d.toString()),2);e=A.h;if(!b.stream.segmentIndex)return A.return();f=Pt(a.vg,e.data,e.uri);if(1!=f.type)throw new F(2,4,4017);g=Ft(f.g,"EXT-X-DEFINE");h=eu(a,g);k=b.stream;l=du(a,b);m=fu(f,k.mimeType);q=m.keyIds;p=m.drmInfos;t=function(C,G){return C.size===G.size&&ma(C).concat().every(function(J){return G.has(J)})};t(k.keyIds,q)||(k.keyIds= 712q,k.drmInfos=p,a.F.newDrmInfo(k));w=gu(a,f,k.type,l,h);k.segmentIndex.Wc(w,a.g.Gb());w.length&&(z=It(f.g,"EXT-X-MEDIA-SEQUENCE"),x=l.get(z),k.segmentIndex.fc(x));y=w[w.length-1];if(D=Ht(f.g,"EXT-X-ENDLIST"))b.Pd=!0,b.Wb=y.endTime;v(A)})}n.onExpirationUpdated=function(){}; 713function hu(a,b){for(var c=-1==a.o,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=du(a,e);if(f=f.g[0]||null){g=r(g);for(var h=g.next();!h.done;h=g.next()){h=r(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.o=Math.max(a.o,k));e.eg=k;break}}}}if(!(0>a.o))for(b=r(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(d.g.splice(0,a.o-c.eg),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),iu(a,c,d)} 714function ju(a,b){if(Infinity==a.B){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.g&&(a.B=Math.min(a.B,d.g))}}b=a.B;
714if(Infinity!=b)for(d=r(a.oa.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.g)nb("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.ye,"Expect AV sync issues!");else for(iu(a,c,f.g-b-f.startTime),c=r(e),e=c.next();!e.done;e=c.next())e.value.nh(b)}}} 715function iu(a,b,c){b.Wb+=c;a=du(a,b);b=r(a);for(var d=b.next();!d.done;d=b.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.set(d,e+c)}} 716function Yt(a,b,c){var d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D,A,C,G,J,M,N,O,Y,ha,ia,na,ba,Aa,Qa,va,lb;return B(function(bb){switch(bb.g){case 1:d=Pt(a.vg,b,a.L);e=Ft(d.g,"EXT-X-DEFINE");for(var Qb=r(e),mb=Qb.next();!mb.done;mb=Qb.next()){var zb=mb.value;mb=Bt(zb,"NAME");zb=Bt(zb,"VALUE");mb&&zb&&(a.i.has(mb)||a.i.set(mb,zb))}f=[];g=[];h=[];if(1==d.type)return J=a.m.hls.mediaPlaylistFullMimeType,d.segments.length&&(M=new Ic(d.segments[0].i),N=M.g.split(".").pop(),(O=ku[N])?J=O:"ts"!==N&&"mp4"!==N&&(lu[N]? 717(O=lu[N],Y=a.m.hls.defaultAudioCodec,J=O+'; codecs="'+Y+'"'):mu[N]&&(O=mu[N],ha=a.m.hls.defaultVideoCodec,J=O+'; codecs="'+ha+'"'))),ia=J.split(";")[0],na=ia.split("/")[0],ba=fe(J),Aa=new Map,u(bb,nu(a,d,c,c,ba,na,"",!0,"Media Playlist",null,Aa,null,!1,!1,ia),5);k=Ft(d.g,"EXT-X-MEDIA");l=Ft(d.g,"EXT-X-STREAM-INF");m=Ft(d.g,"EXT-X-IMAGE-STREAM-INF");q=Ft(d.g,"EXT-X-SESSION-KEY");Qb=r(l);for(mb=Qb.next();!mb.done;mb=Qb.next()){var mc=mb.value;zb=Bt(mc,"AUDIO");mb=Bt(mc,"VIDEO");var Kb=Bt(mc,"SUBTITLES"); 718mc=ou(a,mc);if(Kb){var Kg=fd(hd,mc);a.j.set(Kb,Kg);we(mc,Kg)}zb&&(Kb=fd("audio",mc),Kb||(Kb=a.m.hls.defaultAudioCodec),a.j.set(zb,Kb));mb&&(zb=fd("video",mc),zb||(zb=a.m.hls.defaultVideoCodec),a.j.set(mb,zb))}p=Ft(d.g,"EXT-X-SESSION-DATA");t=r(p);for(w=t.next();!w.done;w=t.next())if(z=w.value,x=Bt(z,"DATA-ID"),y=Bt(z,"URI"),D=Bt(z,"LANGUAGE"),A=Bt(z,"VALUE"),C=(new Map).set("id",x),y&&C.set("uri",Jt(a.L,y)),D&&C.set("language",D),A&&C.set("value",A),G=new ug("sessiondata",C),a.F)a.F.onEvent(G);pu(a, 719k);Qb=Gt(k,"CLOSED-CAPTIONS");Qb=r(Qb);for(mb=Qb.next();!mb.done;mb=Qb.next())Kb=mb.value,mb=qu(Kb),zb=Ct(Kb,"GROUP-ID"),Kb=Ct(Kb,"INSTREAM-ID"),a.K.get(zb)||a.K.set(zb,new Map),a.K.get(zb).set(Kb,mb);f=ru(a,l,q);g=su(a,k);return u(bb,tu(a,m),4);case 4:h=bb.h;bb.D(3);break;case 5:Qa=bb.h,a.oa.set(c,Qa),f.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==na?Qa.stream:null,video:"video"==na?Qa.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}); 720case 3:if(!a.F)throw new F(2,7,7001);a.g=new jl(null,0);a.g.we(!0);1==d.type&&(Zt(a)&&(uu(a),va=a.Ef,a.$b.Y(va)),lb=Array.from(a.oa.values()),vu(a,lb),wu(a));a.H={presentationTimeline:a.g,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.F.makeTextStreamsForClosedCaptions(a.H);v(bb)}})} 721function wu(a){if(Zt(a)){if(a.Ef=a.C,a.ba==xu){var b=yu(a);a.m.hls.useSafariBehaviorForLive&&(b=a.g.o);isNaN(a.m.availabilityWindowOverride)||(b=a.m.availabilityWindowOverride);a.g.hh(b)}}else a.g.ob(yu(a));a.g.sg()}function eu(a,b){var c=new Map;b=r(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Bt(e,"NAME");var f=Bt(e,"VALUE");e=Bt(e,"IMPORT");d&&f&&c.set(d,f);e&&(d=a.i.get(e))&&c.set(e,d)}return c} 722function su(a,b){var c=Gt(b,"SUBTITLES");b=c.map(function(g){if(a.m.disableText)return null;try{return zu(a,g).stream}catch(h){if(a.m.hls.ignoreTextStreamFailures)return null;throw h;}});c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=Ct(d.value,"GROUP-ID");if(d=a.j.get(e))if(e=a.l.get(e)){e=r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Au(hd,d)||Bu(hd)}}return b.filter(function(g){return g})} 723function tu(a,b){var c,d;return B(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return B(function(l){if(1==l.g){if(g=a.m.disableThumbnails)return l.return(null);Ba(l,2);return u(l,Cu(a,f),4)}if(2!=l.g)return h=l.h,l.return(h.stream);k=Ea(l);if(a.m.hls.ignoreImageStreamFailures)return l.return(null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e.return(d.filter(function(f){return f}))})}
724function pu(a,b){b=b.filter(function(d){var e=Bt(d,"URI")||"";return"SUBTITLES"!=Bt(d,"TYPE")&&""!=e});b=r(b);for(var c=b.next();!c.done;c=b.next())zu(a,c.value)} 725function ru(a,b,c){var d=[],e=new Set;if(0<c.length){c=r(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=Ct(f,"METHOD");if("NONE"!=g&&"AES-128"!=g&&(g=Bt(f,"KEYFORMAT")||"identity",f=(g=Du[g])?g(f,""):null)){if(f.keyIds){g=r(f.keyIds);for(var h=g.next();!h.done;h=g.next())e.add(h.value)}d.push(f)}}}b=b.map(function(k){var l=Bt(k,"FRAME-RATE"),m=Number(Bt(k,"AVERAGE-BANDWIDTH"))||Number(Ct(k,"BANDWIDTH")),q=Bt(k,"RESOLUTION");q=r(q?q.split("x"):[null,null]);var p=q.next().value,t=q.next().value, 726w=Bt(k,"VIDEO-RANGE");k=Eu(a,k);q=k.audio;k=k.video;for(var z=r(k),x=z.next();!x.done;x=z.next())if(x=x.value.stream)x.width=Number(p)||void 0,x.height=Number(t)||void 0,x.frameRate=Number(l)||void 0,x.hdr=w||void 0;l=a.m.disableAudio;if(!q.length||l)q=[null];l=a.m.disableVideo;if(!k.length||l)k=[null];l=[];q=r(q);for(p=q.next();!p.done;p=q.next())for(p=p.value,t=r(k),w=t.next();!w.done;w=t.next()){var y=w.value;if(w=p?p.stream:null)w.drmInfos=d,w.keyIds=e;if(z=y?y.stream:null)z.drmInfos=d,z.keyIds= 727e;x=p?p.stream.drmInfos:null;var D=y?y.stream.drmInfos:null;y=(y?y.ye:"")+" - "+(p?p.ye:"");w&&z&&x.length&&D.length&&!(0<wi(x,D).length)||a.ma.has(y)||(w={id:a.va++,language:w?w.language:"und",primary:!!w&&w.primary||!!z&&z.primary,audio:w,video:z,bandwidth:m,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},l.push(w),a.ma.add(y))}return l}).reduce($c,[]);return b=b.filter(function(k){return null!=k})} 728function Eu(a,b){var c=ou(a,b),d=Bt(b,"AUDIO"),e=Bt(b,"VIDEO"),f=d||e;f=f&&a.l.has(f)?a.l.get(f):[];d={audio:d?f:[],video:e?f:[]};e=!1;var g=Ct(b,"URI"),h=d.audio.find(function(m){return m&&m.ye==g}),k=fd("video",c),l=fd("audio",c);l&&!k?f="audio":!f.length&&l&&k?(f="video",c=[[k,l].join()]):d.audio.length&&h?(f="audio",e=!0):f=d.video.length&&!d.audio.length?"audio":"video";e||(a=Fu(a,b,c,f),d[a.stream.type]=[a]);return d} 729function ou(a,b){var c=[];a.m.disableVideo||c.push(a.m.hls.defaultVideoCodec);a.m.disableAudio||c.push(a.m.hls.defaultAudioCodec);c=Bt(b,"CODECS",c.join(",")).split(/\s*,\s*/);a=new Set;b=[];c=r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=ee(d)[0];a.has(e)||(b.push(d),a.add(e))}return b}function qu(a){a=Bt(a,"LANGUAGE")||"und";return me(a)} 730function zu(a,b){var c=Ct(b,"GROUP-ID"),d="",e=Ct(b,"TYPE").toLowerCase();"subtitles"==e&&(e=hd);var f=e;f==hd?d=Bt(b,"CODECS")||"":c&&a.j.has(c)&&(d=a.j.get(c));e=Gu(Ct(b,"URI"),a.i);if(a.oa.has(e))return a.oa.get(e);var g=qu(b),h=Bt(b,"NAME"),k="YES"==Bt(b,"DEFAULT");var l="audio"==f?(l=Bt(b,"CHANNELS"))?parseInt(l.split("/")[0],10):null:null;var m="audio"==f?(m=Bt(b,"CHANNELS"))?m.includes("/JOC"):!1:!1;var q=Bt(b,"CHARACTERISTICS");b="YES"==Bt(b,"FORCED");d=Hu(a,e,d,f,g,k,h,l,null,q,b,m);a.l.has(c)? 731a.l.get(c).push(d):a.l.set(c,[d]);if(a.oa.has(e))return a.oa.get(e);a.oa.set(e,d);return d} 732function Cu(a,b){var c,d,e,f,g,h,k,l,m,q;return B(function(p){if(1==p.g){c=Gu(Ct(b,"URI"),a.i);d=Bt(b,"CODECS","jpeg")||"";if(a.oa.has(c))return p.return(a.oa.get(c));e=qu(b);f=Bt(b,"NAME");g=Bt(b,"CHARACTERISTICS");h=Hu(a,c,d,"image",e,!1,f,null,null,g,!1,!1);return a.oa.has(c)?p.return(a.oa.get(c)):(k=Bt(b,"RESOLUTION"))?u(p,h.stream.createSegmentIndex(),3):p.D(2)}2!=p.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= 733Number(k.split("x")[1])*Number(m.split("x")[1]));if(q=Bt(b,"BANDWIDTH"))h.stream.bandwidth=Number(q);a.oa.set(c,h);return p.return(h)})}function Fu(a,b,c,d){var e=Gu(Ct(b,"URI"),a.i);if(a.oa.has(e))return a.oa.get(e);b=Bt(b,"CLOSED-CAPTIONS");b="video"==d&&b&&"NONE"!=b?a.K.get(b):null;c=ed(d,c);d=Hu(a,e,c,d,"und",!1,null,null,b,null,!1,!1);if(a.oa.has(e))return a.oa.get(e);a.oa.set(e,d);return d} 734function Hu(a,b,c,d,e,f,g,h,k,l,m,q){function p(D){var A,C,G,J,M,N,O,Y,ha,ia,na,ba,Aa,Qa;return B(function(va){if(1==va.g)return u(va,a.sc(z.Ie),2);if(3!=va.g){A=va.h;if(D.aborted)return va.return();C=A.uri;G=Pt(a.vg,A.data,C);J=Zt(a);return u(va,nu(a,G,b,C,c,d,e,f,g,h,k,l,m,q),3)}M=va.h;
734if(D.aborted)return va.return();N=M.stream;Zt(a)&&!J&&uu(a);z.Ie=C;z.Wb=M.Wb;z.Re=M.Re;z.Pd=M.Pd;z.mf=M.mf;z.rg=!0;w.segmentIndex=N.segmentIndex;w.encrypted=N.encrypted;w.drmInfos=N.drmInfos;w.keyIds=N.keyIds;w.mimeType= 735N.mimeType;Vk.includes(w.mimeType)&&(w.codecs="");w.drmInfos.length&&a.F.newDrmInfo(w);O=id;if(d==O.fb||d==O.He)for(Y=r(a.oa.values()),ha=Y.next();!ha.done;ha=Y.next())ia=ha.value,ia.rg||ia.type!=d||(ia.stream.mimeType=N.mimeType,Vk.includes(ia.stream.mimeType)&&(ia.stream.codecs=""));d==O.ra&&(na=N.segmentIndex.get(0))&&na.h&&(w.mimeType="application/mp4");Iu(a)&&(a.Yi?vu(a,[z]):(a.Yi=!0,ba=Array.from(a.oa.values()),Aa=ba.filter(function(lb){return lb.stream.segmentIndex}),vu(a,Aa),wu(a),Qa=a.Ef, 7360<Qa&&a.$b.Y(Qa)));v(va)})}var t=Jt(a.L,b),w=Ju(a,c,d,e,f,g,h,k,l,m,q);Vk.includes(w.mimeType)&&(w.codecs="");var z={stream:w,type:d,ye:b,Ie:t,Wb:0,mf:new Map,Re:!1,Pd:!1,eg:-1,rg:!1},x=null,y=new AbortController;w.createSegmentIndex=function(){if(x)return x;y=new AbortController;return x=new Promise(function(D){D(p(y.signal))})};w.closeSegmentIndex=function(){x&&!w.segmentIndex&&y.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);x=null};return z} 737function yu(a){var b=Infinity;a=r(a.oa.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.Wb));return b}function au(a,b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Hl(d.segmentIndex,function(e){c.push(e)});a.g.Yc(c)} 738function vu(a,b){if(!Zt(a))for(var c=yu(a),d=r(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Rb(0,c);c=r(b);for(e=c.next();!e.done;e=c.next())e=e.value.stream,Vk.includes(e.mimeType)&&(e.codecs="");au(a,b.map(function(f){return f.stream}));a.m.hls.ignoreManifestProgramDateTime?hu(a,b):ju(a,b)} 739function Iu(a){if(!a.H)return!1;var b=[],c=[];a=r(a.H.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0} 740function nu(a,b,c,d,e,f,g,h,k,l,m,q,p,t,w){var z,x,y,D,A,C,G,J,M,N,O,Y,ha,ia,na;return B(function(ba){if(1==ba.g){if(1!=b.type)throw new F(2,4,4017);z=Ft(b.g,"EXT-X-DEFINE");x=eu(a,z);Ku(a,b);return w?ba.D(2):u(ba,Lu(a,f,e,b,x),3)}2!=ba.g&&(w=ba.h);y=fu(b,w);D=y.drmInfos;A=y.keyIds;C=y.encrypted;G=y.Cj;if(C&&!D.length&&!G)throw new F(2,4,4026);J=Zt(a)?a.A.get(f):new Map;M=a.h;N=gu(a,b,f,J,x);M!=a.h&&Ku(a,b);O=N[N.length-1].endTime;Y=new Gl(N);ia=(ha=Ht(b.g,"EXT-X-SERVER-CONTROL"))?null!=ha.getAttribute("CAN-SKIP-UNTIL"): 741!1;na=Ju(a,e,f,g,h,k,l,m,q,p,t);na.segmentIndex=Y;na.encrypted=C;na.drmInfos=D;na.keyIds=A;na.mimeType=w;return ba.return({stream:na,type:f,ye:c,Ie:d,Wb:O,Re:ia,Pd:!1,eg:-1,mf:J,rg:!1})})} 742function Ju(a,b,c,d,e,f,g,h,k,l,m){var q=Au(c,b)||Bu(c);return{id:a.va++,originalId:f,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:q,codecs:b,kind:c==hd?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:k?k.split(","):[],forced:l,channelsCount:g,audioSamplingRate:null,spatialAudio:m,closedCaptions:h, 743hdr:void 0,tilesLayout:void 0}} 744function fu(a,b){var c=[];if(a.segments){a=r(a.segments);for(var d=a.next();!d.done;d=a.next())d=Ft(d.value.g,"EXT-X-KEY"),c.push.apply(c,ma(d))}d=a=!1;var e=[],f=new Set;c=r(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Ct(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=Bt(g,"KEYFORMAT")||"identity",g=(h=Du[h])?h(g,b):null){if(g.keyIds){h=r(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,Cj:d}} 745function Mu(a,b,c){if(!window.crypto||!window.crypto.subtle)throw ob("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new F(2,4,4042);var d=0,e=Bt(b,"IV","");if(e){var f=Pd(e.substr(2));if(16!=f.byteLength)throw new F(2,4,4043);}else d=It(c.g,"EXT-X-MEDIA-SEQUENCE");b=Jt(c.h,Ct(b,"URI"));var g=Gg([b],a.m.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l,m;return B(function(q){if(1==q.g)return u(q, 746Nu(a,g,6),2);
746if(3!=q.g){k=q.h;if(!k.data||16!=k.data.byteLength)throw new F(2,4,4044);l={name:"AES-CBC"};m=h;return u(q,window.crypto.subtle.importKey("raw",k.data,l,!0,["decrypt"]),3)}m.cryptoKey=q.h;h.fetchKey=void 0;v(q)})}};return h} 747function Ku(a,b){var c=Ht(b.g,"EXT-X-PLAYLIST-TYPE"),d=Ht(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)cu(a,Xt);else{c?cu(a,xu):cu(a,Ou);d=Ht(b.g,"EXT-X-TARGETDURATION");if(!d)throw new F(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Ht(b.g,"EXT-X-PART-INF");a.h&&c?(a.X=Number(Ct(c,"PART-TARGET")),a.C=Math.min(a.X,a.C),b=Ht(b.g,"EXT-X-SERVER-CONTROL"),a.M=b?Number(Ct(b,"PART-HOLD-BACK")):0):a.C=Math.min(d,a.C);a.W=Math.max(d,a.W)}} 748function uu(a){var b=a.m.defaultPresentationDelay?a.m.defaultPresentationDelay:a.M?a.M:a.W*a.m.hls.liveSegmentsDelay;a.g.Mi(0);a.g.Ji(b);a.g.we(!1)}function Pu(a,b,c,d){c=Ht(c,"EXT-X-MAP");if(!c)return null;var e=Ct(c,"URI");d=Gu(Jt(b,e),d);b=[d,Bt(c,"BYTERANGE","")].join("-");a.S.has(b)||(c=Qu(d,c),a.S.set(b,c));return a.S.get(b)}function Qu(a,b){var c=0,d=null;if(b=Bt(b,"BYTERANGE"))c=b.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1;return new Uj(function(){return[a]},c,d)} 749function Ru(a,b,c,d,e,f,g,h,k,l){var m=d.g,q=Gu(d.i,f),p=Ht(m,"EXTINF"),t=f=0,w=null;d.h.length&&!a.h&&ob("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 z=null;if(!a.m.hls.ignoreManifestProgramDateTime){var x=Ht(m,"EXT-X-PROGRAM-DATE-TIME");x&&x.value&&(z=Ch(x.value))}x=Xj;Ht(m,"EXT-X-GAP")&&(x=2);if(!p){if(0==d.h.length)throw new F(2,4,4024, 750"EXTINF");if(!a.h)return null}var y=[];if(a.h)for(var D={},A=0;A<d.h.length;D={Rf:D.Rf},A++){var C=d.h[A],G=0==A?c:y[y.length-1],J=0==A?e:G.endTime,M=Number(Bt(C,"DURATION"))||a.X;if(M){M=J+M;var N=0,O=null;"EXT-X-PRELOAD-HINT"==C.name?N=(N=Bt(C,"BYTERANGE-START"))?Number(N):0:(N=Bt(C,"BYTERANGE"),O=r(Su(G,N)),N=O.next().value,O=O.next().value);if(G=Bt(C,"URI"))D.Rf=Jt(g,G),G=Xj,"YES"==Bt(C,"GAP")&&(G=2),y.push(new Wj(J,M,function(Y){return function(){return[Y.Rf]}}(D),N,O,b,0,0,Infinity,[],"",null, 751null,G))}}p?f=e+Number(p.value.split(",")[0]):f=y[y.length-1].endTime;(a=Ht(m,"EXT-X-BYTERANGE"))?(w=r(Su(c,a.value)),t=w.next().value,w=w.next().value):y.length&&(t=y[0].pb,w=y[y.length-1].Qa);c="";a=null;"image"==h&&(c="1x1",h=Ht(m,"EXT-X-TILES"))&&(c=Ct(h,"LAYOUT"),(h=Bt(h,"DURATION"))&&(a=Number(h)));return new Wj(e,f,function(){return q.length?[q]:[]},t,w,b,k,0,Infinity,y,c,a,z,x,l)} 752function Su(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Qa+1,d=c+b-1);return[c,d]} 753function gu(a,b,c,d,e){var f=b.segments,g=void 0,h=It(b.g,"EXT-X-DISCONTINUITY-SEQUENCE"),k=It(b.g,"EXT-X-MEDIA-SEQUENCE"),l=Ht(b.g,"EXT-X-SKIP");l=l?Number(Bt(l,"SKIPPED-SEGMENTS")):0;var m=k+l,q=0;Zt(a)&&d.has(m)&&(q=d.get(m));for(var p=[],t=null,w=q,z=0;z<f.length;z++){var x=f[z],y=0==z?q:t.endTime;m=k+l+z;Ht(x.g,"EXT-X-DISCONTINUITY")&&(h++,w=y);var D=r(x.g);for(var A=D.next();!A.done;A=D.next())A=A.value,"EXT-X-KEY"==A.name&&("AES-128"==Ct(A,"METHOD")?g=Mu(a,A,b):g=void 0);d.set(m,y);D=Pu(a, 754b.h,x.g,e);!a.h&&a.F.isAutoLowLatencyMode()&&(a.F.enableLowLatencyMode(),a.h=a.F.isLowLatencyMode());if(t=x=Ru(a,D,t,x,y,e,b.h,c,w,g))x.j=h,a.m.hls.ignoreManifestProgramDateTime&&null!=a.o&&m<a.o||p.push(x)}if(b=p.some(function(C){return null!=C.g}))for(c={},d=0;d<p.length;c={od:c.od,nd:c.nd,Be:c.Be,Nb:c.Nb,md:c.md},d++)if(c.Nb=p[d],null==c.Nb.g)for(c.nd=0,c.od=d,e=function(C){return function(){var G=p[C.od];if(G){if(null!=G.g)return G.g+C.nd;C.nd-=G.endTime-G.startTime;C.od+=1}return null}}(c),c.md= 7550,c.Be=d,f=function(C){return function(){var G=p[C.Be];if(G){G!=C.Nb&&(C.md+=G.endTime-G.startTime);if(null!=G.g)return G.g+C.md;--C.Be}return null}}(c);null==c.Nb.g;)c.Nb.g=f(),null==c.Nb.g&&(c.Nb.g=e());if(b)for(c=r(p),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.g,e=r(e.i),f=e.next();!f.done;f=e.next())f=f.value,f.g=d,d+=f.endTime-f.startTime;a=a.B;if(b&&Infinity!=a)for(b=r(p),d=b.next();!d.done;d=b.next())d.value.nh(a);return p} 756function Gu(a,b){a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.match(/{\$\w*}/g);if(c){c=r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.slice(2,d.length-1),f=b.get(e);if(f)a=a.replace(d,f);else throw new F(2,4,4039,e);}}return a}function Au(a,b){if(a==hd){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":null:"image/jpeg"} 757function Bu(a){return a==hd?"text/vtt":Tu[a].mp4}function Lu(a,b,c,d,e){var f,g,h,k,l,m,q,p,t,w;return B(function(z){if(1==z.g){f=Ng;g=Math.trunc((d.segments.length-1)/2);h=Gu(d.segments[g].i,e);k=new Ic(h);l=k.g.split(".").pop();m=Tu[b];if((q=m[l])||(q=ku[l])||(q=Au(b,c)))return z.return(q);p=Gg([h],a.m.retryParameters);p.method="HEAD";return u(z,Nu(a,p,f),2)}t=z.h;return(w=t.headers["content-type"])?z.return(w.split(";")[0]):z.return(Bu(b))})} 758n.sc=function(a){a=Gg([a],this.m.retryParameters);this.F.modifyManifestRequest(a,{format:"h"});return Nu(this,a,0)};n.Wd=function(){var a=this,b,c;return B(function(d){if(1==d.g){if(!a.F)return d.return();Ba(d,2);return u(d,a.update(),4)}
758if(2!=d.g)return Zt(a)&&(b=a.Ef,a.$b.Y(b)),Da(d,0);c=Ea(d);if(!a.F)return d.return();c.severity=1;a.F.onError(c);a.$b.Y(.1);v(d)})};function Zt(a){return a.ba!=Xt}function cu(a,b){a.ba=b;a.g&&a.g.we(!Zt(a));Zt(a)||a.$b.stop()} 759function Nu(a,b,c){if(!a.I)throw new F(2,7,7001);b=a.F.networkingEngine.request(c,b);Bg(a.I,b);return b.promise}E("shaka.hls.HlsParser",Wt); 760var ku={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},lu={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"},mu={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"},Tu={audio:lu,video:mu,text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4", 761vtt:"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"}},Du={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new F(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new F(2,4,4041);return dd("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Ct(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null; 762b=Ct(a,"URI");b=Vt(b);b=Fb(b.data);b=dd("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=Bt(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=Ct(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Ct(a,"URI");a=Vt(a);a=Fb(a.data);a=ph(a,new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),new Set,0);return dd("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a){a= 763Ct(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?dd("org.w3.clearkey",null):null}},Xt="VOD",Ou="EVENT",xu="LIVE",bu={xj:Xt,Jo:Ou,vj:xu};td("Tizen 3")||td("Tizen 2")||vd()||(Ci.m3u8=function(){return new Wt},Ai["application/x-mpegurl"]=function(){return new Wt},Ai["application/vnd.apple.mpegurl"]=function(){return new Wt});function Uu(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=Fd(b)}catch(g){}throw new F(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Vu(){}function Wu(a,b,c,d,e){var f=new Xu;Zg(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Yu,h={Qh:!1,aj:!1};a=Zu(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new ng(a,function(){h.Qh=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new md(function(){h.aj=!0;g.abort()});k.Y(b/1E3);a.finally(function(){k.stop()})}return a} 764function Zu(a,b,c,d,e,f,g){var h,k,l,m,q,p,t,w,z,x,y,D,A;return B(function(C){switch(C.g){case 1:return h=$u,k=av,p=q=0,t=Date.now(),Ba(C,2),u(C,h(a,c),4);case 4:l=C.h;f(bv(l.headers));if("HEAD"==c.method){C.D(5);break}w=l.clone().body.getReader();x=(z=l.headers.get("Content-Length"))?parseInt(z,10):0;y=function(G){function J(){var M,N;return B(function(O){switch(O.g){case 1:return Ba(O,2),u(O,w.read(),4);case 4:M=O.h;Da(O,3);break;case 2:return Ea(O),O.return();case 3:if(M.done){O.D(5);break}q+= 765M.value.byteLength;if(!g){O.D(5);break}return u(O,g(M.value),5);case 5:N=Date.now();if(100<N-t||M.done)e(N-t,q-p,x-q),p=q,t=N;M.done?G.close():(G.enqueue(M.value),J());v(O)}})}J()};new k({start:y});return u(C,l.arrayBuffer(),6);case 6:m=C.h;case 5:Da(C,3);break;case 2:D=Ea(C);if(d.Qh)throw new F(1,1,7001,a,b);if(d.aj)throw new F(1,1,1003,a,b);throw new F(1,1,1002,a,D,b);case 3:return A=bv(l.headers),C.return(Uu(A,m,l.status,a,l.url,b))}})} 766function bv(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function cv(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}E("shaka.net.HttpFetchPlugin",Vu);Vu.isSupported=cv;Vu.parse=Wu;var $u=window.fetch,Yu=window.AbortController,av=window.ReadableStream,Xu=window.Headers; 767cv()&&(Dg("http",Wu,2,!0),Dg("https",Wu,2,!0),Dg("blob",Wu,2,!0));function dv(){} 768function ev(a,b,c,d,e){var f=new fv,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new F(1,1,7001,a,c))};var q=!1;f.onreadystatechange=function(){if(2==f.readyState&&!q){var t=gv(f);e(t);q=!0}};f.onload=function(){var t=gv(f),w=f.response;try{var z=Uu(t,w,f.status,a,f.responseURL,c);l(z)}catch(x){m(x)}};f.onerror=function(t){m(new F(1,1,1002,a,t, 769c))};f.ontimeout=function(){m(new F(1,1,1003,a,c))};f.onprogress=function(t){var w=Date.now();if(100<w-g||t.lengthComputable&&t.loaded==t.total)d(w-g,t.loaded-h,t.total-t.loaded),h=t.loaded,g=w};for(var p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new ng(k,function(){f.abort();return Promise.resolve()})}
770function gv(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}E("shaka.net.HttpXHRPlugin",dv);dv.parse=ev;var fv=window.XMLHttpRequest;Dg("http",ev,1,!0);Dg("https",ev,1,!0);Dg("blob",ev,1,!0);function hv(a,b,c,d){this.g=a;this.l=b;this.j=c;this.i=d;this.h=["offline:",a,"/",b,"/",c,"/",d].join("")}hv.prototype.kb=function(){return this.l};hv.prototype.Pa=function(){return this.j};hv.prototype.key=function(){return this.i};hv.prototype.toString=function(){return this.h}; 771function iv(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new hv(b,c,d,Number(a[4])):null};function jv(a,b){this.h=a;this.g=b} 772function kv(a,b){var c=new jl(null,0);c.ob(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=lv(a,d,e,c);e=b.streams.filter(function(l){return l.type==hd}).map(function(l){return mv(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return mv(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=r(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos= 773g),k.video&&k.video.encrypted&&(k.video.drmInfos=g);return{presentationTimeline:c,minBufferTime:2,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,sequenceMode:b.sequenceMode||!1}} 774function lv(a,b,c,d){for(var e=new Set,f=r(b),g=f.next();!g.done;g=f.next()){var h=r(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=r(c);for(g=f.next();!g.done;g=f.next())for(h=r(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=r(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=r(b);for(e=b.next();!e.done;e= 775b.next())for(e=e.value,g=mv(a,e,d),h=r(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=r(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=mv(a,e,d),g=r(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f} 776function mv(a,b,c){var d=b.segments.map(function(e){return nv(a,e)});c.Yc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Gl(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null, 777roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function nv(a,b){var c=new hv("segment",a.h,a.g,b.dataKey);return new Wj(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?ov(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")} 778function ov(a,b){var c=new hv("segment",a.h,a.g,b);return new Uj(function(){return[c.toString()]},0,null)};function pv(){this.g=new Map}pv.prototype.destroy=function(){for(var a=[],b=r(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};pv.prototype.init=function(){var a=this;qv.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=r(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)}; 779function rv(a){var b=null;
779a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{kb:d,Pa:f},Pa:e})})});if(b)return b;throw new F(2,9,9013,"Could not find a cell that supports add-operations");}function sv(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({kb:d,Pa:f},e)})})} 780function tv(a,b,c){a=a.g.get(b);if(!a)throw new F(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new F(2,9,9013,"Could not find cell with name "+c);return b}function uv(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function vv(a){var b=Array.from(a.g.keys());if(!b.length)throw new F(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()} 781function wv(a){var b,c,d;return B(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=qv,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function xv(a,b){qv.set(a,b)}E("shaka.offline.StorageMuxer",pv);pv.unregister=function(a){qv.delete(a)};pv.register=xv;pv.prototype.destroy=pv.prototype.destroy;var qv=new Map;function yv(){this.g=null}n=yv.prototype;n.configure=function(){}; 782n.start=function(a,b){var c=this,d,e,f,g,h,k,l;return B(function(m){switch(m.g){case 1:d=iv(a);c.g=d;if(null==d||"manifest"!=d.g)throw new F(2,1,9004,a);e=new pv;Ca(m);return u(m,e.init(),4);case 4:return u(m,tv(e,d.kb(),d.Pa()),5);case 5:return f=m.h,u(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new jv(d.kb(),d.Pa()),l=kv(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return Fa(m),u(m,e.destroy(),7);case 7:Ga(m,0)}})};n.stop=function(){return Promise.resolve()}; 783n.update=function(){}; 784n.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return B(function(m){switch(m.g){case 1:return d=c.g,e=new pv,Ba(m,2,3),u(m,e.init(),5);case 5:return u(m,tv(e,d.kb(),d.Pa()),6);case 6:return f=m.h,u(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.D(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return Fa(m),u(m,e.destroy(),10);case 10:Ga(m,0);break;case 2:Ea(m),m.D(3)}})}; 785Ai["application/x-offline-manifest"]=function(){return new yv};function zv(){}function Av(a){var b=iv(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=qg(a)):a=b&&"segment"==b.g?Bv(b.key(),b):og(new F(2,1,9004,a));return a} 786function Bv(a,b){var c=new pv;return qg(void 0).wa(function(){return c.init()}).wa(function(){return tv(c,b.kb(),b.Pa())}).wa(function(d){return d.getSegments([b.key()])}).wa(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}E("shaka.offline.OfflineScheme",zv);zv.plugin=Av;Dg("offline",Av);function Cv(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Dv(a){return a.ib().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.pb+":"+a.Qa}function Ev(a,b){return Zl(a.g.ib(),a.g.pb,a.g.Qa,b.streaming.retryParameters)};function Fv(){this.g=this.j=this.h=0;this.i=new Map;this.l=0}function Gv(a,b){a.h+=b;var c=a.l;a.l++;a.i.set(c,b);return c}Fv.prototype.close=function(a,b){if(this.i.has(a)){var c=this.i.get(a);this.i.delete(a);this.j+=c;this.g+=b}};function Hv(a){var b=this;this.Z=a;this.h=new Map;this.P=new Og(function(){return Iv(b).catch(function(){})});this.g=[];this.Ai=function(){};this.zi=function(){};this.Lc=new Fv}Hv.prototype.destroy=function(){return this.P.destroy()};function Jv(a,b,c){a.Ai=b;a.zi=c}function Iv(a){var b=a.g.map(function(c){return c()});a.g=[];return Promise.all(b)} 787function Kv(a,b,c,d,e,f){Pg(a.P);var g=(a.h.get(b)||Promise.resolve()).then(function(){var h,k,l,m,q,p,t;return B(function(w){if(1==w.g)return u(w,Lv(a,c),2);h=w.h;if(a.P.g)throw new F(2,9,7001);if(e)for(m in k=Fb(h),l=new oh(k),l.data)q=Number(m),p=l.data[q],t=l.g[q],a.zi(p,t);a.Lc.close(d,h.byteLength);var z=a.Lc;a.Ai(0==z.h?0:z.j/z.h,a.Lc.g);return w.return(f(h))})});a.h.set(b,g)}function Mv(a){return B(function(b){return 1==b.g?u(b,Promise.all(a.h.values()),2):b.return(a.Lc.g)})} 788function Lv(a,b){var c,d,e,f;return B(function(g){if(1==g.g)return c=Ng,d=a.Z.request(c,b),e=function(){return d.abort()},a.g.push(e),u(g,d.promise,2);f=g.h;we(a.g,e);return g.return(f.data)})};function Nv(a,b,c){var d,e,f,g,h,k;return B(function(l){switch(l.g){case 1:d=[];for(var m=[],q=r(c),p=q.next();!p.done;p=q.next()){p=p.value;for(var t=!1,w=r(m),z=w.next();!z.done;z=w.next())if(z=z.value,Ov(z.info,p)){z.sessionIds.push(p.sessionId);t=!0;break}t||m.push({info:p,sessionIds:[p.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Pv(a,b,g);return u(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l.return(d)}})} 789function Pv(a,b,c){var d,e;return B(function(f){switch(f.g){case 1:return d=new Nh({nc:b,onError:function(){},rf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),Ba(f,2),d.configure(a),u(f,Vh(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:Da(f,3);break;case 2:return Ea(f),u(f,d.destroy(),5);case 5:return f.return([]);case 3:return Ba(f,6),u(f,fi(d),8);case 8:Da(f,7);break;case 6:return Ea(f),u(f,d.destroy(), 7909);case 9:return f.return([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return B(function(h){if(1==h.g)return Ba(h,2),u(h,gi(d,g),4);if(2!=h.g)return e.push(g),Da(h,0);Ea(h);v(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f.return(e)}})} 791function Ov(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Ae(a.audioCapabilities,b.audioCapabilities,c)&&Ae(a.videoCapabilities,b.videoCapabilities,c)};function Qv(a,b,c){var d=b.presentationTimeline.getDuration();b=Rv(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Sv(a,b){var c=kv(new jv(a.kb(),a.Pa()),b),d=b.appMetadata||{};c=Rv(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}} 792function Rv(a){var b=[],c=Yf(a.variants);c=r(c);for(var d=c.next();!d.done;d=c.next())b.push(Pf(d.value));a=r(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Qf(c.value));return b};function Tv(){this.g={}}function Uv(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Vv(a,b){a.g[b.id]=b.bandwidth||2048}function Wv(a,b){a=a.g[b];null==a&&(a=0);return a};function Xv(a){var b=this;if(a&&a.constructor!=H)throw new F(2,9,9008);this.Z=this.m=null;a?(this.m=a.m,this.Z=a.Ld()):(this.m=Kn(),this.Z=new Cg);this.Xd=[];this.Fg=[];var c=!a;this.P=new Og(function(){var d,e,f,g,h;return B(function(k){switch(k.g){case 1:return u(k,Promise.all(b.Fg.map(function(l){return Iv(l)})),2);case 2:d=function(){};e=[];f=r(b.Xd);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return u(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return u(k,b.Z.destroy(), 7934);case 4:b.m=null,b.Z=null,v(k)}})})}function Yv(){if(nd())a:{var a=r(qv.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}n=Xv.prototype;n.destroy=function(){return this.P.destroy()};n.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=wn(a,b));return Mn(this.m,a)};n.getConfiguration=function(){var a=Kn();Mn(a,this.m,Kn());return a};n.Ld=function(){return this.Z}; 794n.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Hv(this.Z);this.Fg.push(f);b=Zv(this,a,b||{},function(){var g;return B(function(h){if(1==h.g)return u(h,zi(a,d.Z,e.manifest.retryParameters,c||null),2);g=h.h;return h.return(g())})},e,f);b=new ng(b,function(){return Iv(f)});
794b.finally(function(){we(d.Fg,f)});return $v(this,b)}; 795function Zv(a,b,c,d,e,f){var g,h,k,l,m,q,p,t,w,z,x,y,D,A;return B(function(C){switch(C.g){case 1:return aw(),h=g=null,k=new pv,q=m=l=null,Ba(C,2,3),u(C,d(),5);case 5:return g=C.h,u(C,bw(a,b,g,e),6);case 6:p=C.h;cw(a);t=!p.presentationTimeline.ha()&&!p.presentationTimeline.jc();if(!t)throw new F(2,9,9005,b);return u(C,dw(a,p,function(G){q=q||G},e),7);case 7:h=C.h;cw(a);if(q)throw q;return u(C,ew(p,e),8);case 8:return u(C,k.init(),9);case 9:return cw(a),u(C,rv(k),10);case 10:return l=C.h,cw(a),w=fw(h, 796p,b,c,e,f),z=w.Vk,x=w.ph,u(C,l.Pa.addManifests([z]),11);case 11:y=C.h;cw(a);m=y[0];cw(a);if(q)throw q;return u(C,gw(a,x,m,z,f,e,l.Pa,p,h),12);case 12:return cw(a),D=new hv("manifest",l.path.kb,l.path.Pa,m),C.return(Sv(D,z));case 3:return Fa(C),u(C,k.destroy(),13);case 13:if(!g){C.D(14);break}return u(C,g.stop(),14);case 14:if(!h){C.D(16);break}return u(C,h.destroy(),16);case 16:Ga(C,0);break;case 2:A=Ea(C);if(null==m){C.D(18);break}return u(C,hw(m),18);case 18:throw q||A;}})} 797function gw(a,b,c,d,e,f,g,h,k){var l,m,q,p,t,w,z,x,y,D;return B(function(A){switch(A.g){case 1:l={};m=0;q=function(C,G){var J,M,N,O,Y,ha,ia;return B(function(na){if(1==na.g){J={};M=r(C);for(N=M.next();!N.done;J={bc:J.bc},N=M.next())J.bc=N.value,O=Ev(J.bc,f),Y=J.bc.i,ha=J.bc.h,ia=function(ba){return function(Aa){var Qa,va,lb;return B(function(bb){if(1==bb.g)return u(bb,g.addSegments([{data:Aa}]),2);Qa=bb.h;cw(a);va=ba.bc.g;lb=Dv(va);l[lb]=Qa[0];m+=Aa.byteLength;v(bb)})}}(J),Kv(e,J.bc.groupId,O,Y,ha, 798ia);return u(na,Mv(e),2)}if(!G)return na.D(0);cw(a);iw(h,d,k,f);return u(na,g.updateManifest(c,d),0)})};p=!1;Ba(A,2);if(!jw(h)||!p||kw(h)){A.D(4);break}return u(A,q(b.filter(function(C){return C.h}),!0),5);case 5:return cw(a),b=b.filter(function(C){return!C.h}),t=l,w=m,l={},m=0,u(A,lw(g,c,d,t,w,function(){return cw(a)}),6);case 6:cw(a);case 4:if(p){A.D(7);break}return u(A,q(b,!1),8);case 8:return cw(a),z=l,x=m,l={},m=0,u(A,lw(g,c,d,z,x,function(){return cw(a)}),9);case 9:cw(a);case 7:Da(A,0);break; 799case 2:return y=Ea(A),D=Object.values(l),u(A,g.removeSegments(D,function(){}),10);case 10:throw y;}})}function hw(a){var b,c,d,e;return B(function(f){switch(f.g){case 1:return b=new pv,u(f,b.init(),2);case 2:return u(f,rv(b),3);case 3:return c=f.h,d=new hv("manifest",c.path.kb,c.path.Pa,a),u(f,b.destroy(),4);case 4:return e=new Xv,u(f,e.remove(d.toString()),0)}})} 800function lw(a,b,c,d,e,f){var g,h,k,l,m,q,p,t,w,z,x;return B(function(y){switch(y.g){case 1:g=!1;Ba(y,2);h=!0;k=r(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,q=r(m.segments),p=q.next();!p.done;p=q.next())t=p.value,w=t.pendingSegmentRefId?d[t.pendingSegmentRefId]:null,null!=w&&(t.dataKey=w,t.pendingSegmentRefId=void 0),w=t.pendingInitSegmentRefId?d[t.pendingInitSegmentRefId]:null,null!=w&&(t.initSegmentKey=w,t.pendingInitSegmentRefId=void 0),t.pendingSegmentRefId&&(h=!1),t.pendingInitSegmentRefId&& 801(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(y,a.updateManifest(b,c),4);case 4:g=!0;f();Da(y,0);break;case 2:return z=Ea(y),u(y,hw(b),5);case 5:if(g){y.D(6);break}x=Object.values(d);return u(y,a.removeSegments(x,function(){}),6);case 6:throw z;}})} 802function ew(a,b){var c,d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D,A,C,G,J,M,N,O,Y,ha,ia,na,ba;return B(function(Aa){switch(Aa.g){case 1:return c={width:Infinity,height:Infinity},sf(a,b.restrictions,c),u(Aa,wf(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;ff(a,g,h,e,f);k=r(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(Pf(m));q=r(a.textStreams);for(p=q.next();!p.done;p=q.next())t= 803p.value,d.push(Qf(t));w=r(a.imageStreams);for(z=w.next();!z.done;z=w.next())x=z.value,d.push(Rf(x));return u(Aa,b.offline.trackSelectionCallback(d),3);case 3:y=Aa.h;D=a.presentationTimeline.getDuration();A=0;C=r(y);for(G=C.next();!G.done;G=C.next())J=G.value,M=J.bandwidth*D/8,A+=M;Ba(Aa,4);return u(Aa,b.offline.downloadSizeCallback(A),6);case 6:N=Aa.h;if(!N)throw new F(2,9,9014);Da(Aa,5);break;case 4:O=Ea(Aa);if(O instanceof F)throw O;throw new F(2,9,9015);case 5:Y=new Set;ha=new Set;ia=new Set;na= 804r(y);for(G=na.next();!G.done;G=na.next())ba=G.value,"variant"==ba.type&&Y.add(ba.id),"text"==ba.type&&ha.add(ba.id),"image"==ba.type&&ia.add(ba.id);a.variants=a.variants.filter(function(Qa){return Y.has(Qa.id)});a.textStreams=a.textStreams.filter(function(Qa){return ha.has(Qa.id)});a.imageStreams=a.imageStreams.filter(function(Qa){return ia.has(Qa.id)});mw(a);v(Aa)}})} 805function fw(a,b,c,d,e,f){var g=Qv(c,b,d),h=e.offline.progressCallback;Jv(f,function(t,w){g.size=w;h(g,t)},function(t,w){k&&e.offline.usePersistentLicense&&l==w&&ci(a,"cenc",t)});var k=jw(b)&&!kw(b),l=null;k&&(l=nw.get(a.g.keySystem));for(var m=new Tv,q=r(b.textStreams),p=q.next();!p.done;p=q.next())m.g[p.value.id]=52;q=r(b.imageStreams);for(p=q.next();!p.done;p=q.next())Vv(m,p.value);p=r(b.variants);for(q=p.next();!q.done;q=p.next())Uv(m,q.value);m=ow(f,m,b,e);f=m.streams;m=m.ph;p=a.g;q=e.offline.usePersistentLicense; 806p&&q&&(p.initData=[]);return{Vk:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Kd(),streams:f,sessionIds:q?li(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},ph:m}}function jw(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})} 807function kw(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function iw(a,b,c,d){b.expiration=c.Kd();c=li(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(jw(a)&&d.offline.usePersistentLicense&&!c.length)throw new F(2,9,9007);}n.remove=function(a){return pw(this,qw(this,a))}; 808function qw(a,b){var c,d,e,f,g,h;return B(function(k){switch(k.g){case 1:aw();c=iv(b);if(null==c||"manifest"!=c.g)throw new F(2,9,9004,b);d=c;
808e=new pv;Ca(k);return u(k,e.init(),4);case 4:return u(k,tv(e,d.kb(),d.Pa()),5);case 5:return f=k.h,u(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],u(k,Promise.all([rw(a,h,e),sw(a,f,d,h)]),2);case 2:return Fa(k),u(k,e.destroy(),8);case 8:Ga(k,0)}})} 809function tw(a,b){for(var c=[],d=r(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:be(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:be(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function rw(a,b,c){return B(function(d){return u(d,uw(a.Z,a.m.drm,c,b),0)})} 810function sw(a,b,c,d){function e(){h+=1;a.m.offline.progressCallback(k,h/g)}var f=vw(d),g=f.length+1,h=0,k=Sv(c,d);return Promise.all([b.removeSegments(f,e),b.removeManifests([c.key()],e)])}n.om=function(){return pw(this,ww(this))}; 811function ww(a){var b,c,d,e,f,g,h,k,l,m;return B(function(q){switch(q.g){case 1:return aw(),b=a.Z,c=a.m.drm,d=new pv,e=!1,Ca(q),u(q,d.init(),4);case 4:f=[],uv(d,function(p){return f.push(p)}),g=r(f),h=g.next();case 5:if(h.done){q.D(2);break}k=h.value;return u(q,k.getAll(),8);case 8:return l=q.h,u(q,Nv(c,b,l),9);case 9:return m=q.h,u(q,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();q.D(5);break;case 2:return Fa(q),u(q,d.destroy(),11);case 11:Ga(q,3);break;case 3:return q.return(!e)}})} 812n.list=function(){return pw(this,xw())};function xw(){var a,b,c;return B(function(d){switch(d.g){case 1:return aw(),a=[],b=new pv,Ca(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),sv(b,function(e,f){c=c.then(function(){var g;return B(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=Sv(new hv("manifest",e.kb,e.Pa,l),k);a.push(k)});v(h)})})}),u(d,c,2);case 2:return Fa(d),u(d,b.destroy(),6);case 6:Ga(d,3);break;case 3:return d.return(a)}})} 813function bw(a,b,c,d){var e,f,g,h,k;return B(function(l){if(1==l.g)return e=null,f=a.Z,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){}}, 814c.configure(d.manifest),cw(a),u(l,c.start(b,g),2);if(3!=l.g)return h=l.h,cw(a),k=yw(h),u(l,Promise.all(Vg(k,function(m){return m.createSegmentIndex()})),3);cw(a);if(e)throw e;return l.return(h)})} 815function dw(a,b,c,d){var e;return B(function(f){switch(f.g){case 1:return e=new Nh({nc:a.Z,onError:c,rf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,Sh(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,fi(e),3);case 3:return u(f,ei(e),4);case 4:return f.return(e)}})} 816function ow(a,b,c,d){var e=new Map,f=yw(c),g=new Map;f=r(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=zw(a,b,c,h,d,e);g.set(h.id,k)}a=r(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()),ph:Array.from(e.values())}} 817function zw(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,kind:d.kind,language:d.language,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,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions, 818tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;Aw(d,c.presentationTimeline.Gb(),function(l){var m=Dv(l),q=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=Wv(b,d.id)*p;p=Gv(a.Lc,p);f.set(m,new Cv(l,p,k,!1))}l.h&&(q=Dv(l.h),f.has(q)||(p=.5*Wv(b,d.id),p=Gv(a.Lc,p),f.set(q,new Cv(l.h,p,k,!0))));g.segments.push({pendingInitSegmentRefId:q,initSegmentKey:q?0:null,
818startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset, 819tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function Aw(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 cw(a){if(a.P.g)throw new F(2,9,7001);}function aw(){if(!Yv())throw new F(2,9,9E3);}function pw(a,b){return B(function(c){if(1==c.g)return a.Xd.push(b),Ca(c),u(c,b,4);if(2!=c.g)return c.return(c.h);Fa(c);we(a.Xd,b);return Ga(c,0)})} 820function $v(a,b){var c=b.promise;a.Xd.push(c);return b.finally(function(){we(a.Xd,c)})}function vw(a){var b=new Set;a=r(a.streams);for(var c=a.next();!c.done;c=a.next()){c=r(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)} 821function uw(a,b,c,d){var e,f,g;return B(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=vv(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:tw(d,!1),videoCapabilities:tw(d,!0)}});return u(h,Nv(b,a,f),2)}return 3!=h.g?(g=h.h,u(h,e.remove(g),3)):u(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})} 822function yw(a){for(var b=new Set,c=r(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=r(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=r(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b} 823function mw(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=r(b),d=c.next();!d.done;d=c.next()){d=r(b);for(var e=d.next();!e.done;e=d.next());}b=r(a);for(c=b.next();!c.done;c=b.next())for(c=r(a),d=c.next();!d.done;d=c.next());}E("shaka.offline.Storage",Xv);Xv.deleteAll=function(){var a;return B(function(b){return 1==b.g?(a=new pv,Ca(b),u(b,wv(a),2)):5!=b.g?(Fa(b),u(b,a.destroy(),5)):Ga(b,0)})};Xv.prototype.list=Xv.prototype.list; 824Xv.prototype.removeEmeSessions=Xv.prototype.om;Xv.prototype.remove=Xv.prototype.remove;Xv.prototype.store=Xv.prototype.store;Xv.prototype.getNetworkingEngine=Xv.prototype.Ld;Xv.prototype.getConfiguration=Xv.prototype.getConfiguration;Xv.prototype.configure=Xv.prototype.configure;Xv.prototype.destroy=Xv.prototype.destroy;Xv.support=Yv; 825var nw=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb"); 826pq.offline=Yv;function Bw(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new jd;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Bw.prototype.abort=function(){var a=this;return B(function(b){if(1==b.g){try{a.i.abort()}catch(c){}Ba(b,2);return u(b,a.g,4)}if(2!=b.g)return Da(b,0);Ea(b);v(b)})}; 827function Cw(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return B(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return u(g,b(f.key,f.value,f),2)}f.continue();v(g)})}})}Bw.prototype.store=function(){return this.h};Bw.prototype.promise=function(){return this.g};function Dw(a){this.h=a;this.g=[]}Dw.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Ew(a,b){return Fw(a,b,"readwrite")}function Fw(a,b,c){c=a.h.transaction([b],c);var d=new Bw(c,b);a.g.push(d);d.promise().then(function(){we(a.g,d)},function(){we(a.g,d)});return d};function Gw(a){this.g=new Dw(a)}Gw.prototype.destroy=function(){return this.g.destroy()};Gw.prototype.getAll=function(){var a=this,b,c;return B(function(d){return 1==d.g?(b=Fw(a.g,"session-ids","readonly"),c=[],u(d,Cw(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};Gw.prototype.add=function(a){var b=Ew(this.g,"session-ids"),c=b.store();a=r(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()}; 828Gw.prototype.remove=function(a){var b=this,c;return B(function(d){return 1==d.g?(c=Ew(b.g,"session-ids"),u(d,Cw(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):u(d,c.promise(),0)})};function Hw(a,b,c){this.h=new Dw(a);this.i=b;this.g=c}
828n=Hw.prototype;n.destroy=function(){return this.h.destroy()};n.hasFixedKeySpace=function(){return!0};n.addSegments=function(){return Iw(this.i)};n.removeSegments=function(a,b){return Jw(this,this.i,a,b)};n.getSegments=function(a){var b=this,c;return B(function(d){if(1==d.g)return u(d,Kw(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Th(e)}))})};n.addManifests=function(){return Iw(this.g)}; 829n.updateManifest=function(){return Promise.reject(new F(2,9,9016,"Cannot modify values in "+this.g))};function Lw(a,b,c){a=Ew(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}n.updateManifestExpiration=function(a,b){var c=Ew(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};n.removeManifests=function(a,b){return Jw(this,this.g,a,b)}; 830n.getManifests=function(a){var b=this,c;return B(function(d){if(1==d.g)return u(d,Kw(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Gd(e)})))})};n.getAllManifests=function(){var a=this,b,c;return B(function(d){return 1==d.g?(b=Fw(a.h,a.g,"readonly"),c=new Map,u(d,Cw(b,function(e,f){var g;return B(function(h){if(1==h.g)return u(h,a.Gd(f),2);g=h.h;c.set(e,g);v(h)})}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};n.Th=function(a){return a};n.Gd=function(a){return Promise.resolve(a)}; 831function Iw(a){return Promise.reject(new F(2,9,9011,"Cannot add new value to "+a))}n.add=function(a,b){var c=this,d,e,f,g,h,k,l;return B(function(m){if(1==m.g){d=Ew(c.h,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={Fe:g.Fe},k=h.next())l=k.value,g.Fe=e.add(l),g.Fe.onsuccess=function(q){return function(){f.push(q.Fe.result)}}(g);return u(m,d.promise(),2)}return m.return(f)})}; 832function Jw(a,b,c,d){a=Ew(a.h,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={Ee:e.Ee},f=c.next())e.Ee=f.value,b.delete(e.Ee).onsuccess=function(g){return function(){return d(g.Ee)}}(e);return a.promise()} 833function Kw(a,b,c){var d,e,f,g,h,k,l;return B(function(m){if(1==m.g){d=Fw(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={ud:h.ud,rd:h.rd},l=k.next())h.rd=l.value,h.ud=e.get(h.rd),h.ud.onsuccess=function(q){return function(){void 0==q.ud.result&&g.push(q.rd);f[q.rd]=q.ud.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new F(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(q){return f[q]}))})};function Mw(){Hw.apply(this,arguments)}ua(Mw,Hw);Mw.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return B(function(g){d=Ew(c.h,c.g);e=d.store();f=new jd;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new F(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})}; 834Mw.prototype.Gd=function(a){var b,c,d,e,f,g;return B(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=Nw(a.periods[c],e),b.push(f);return u(h,Os(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})}; 835function Nw(a,b){Ow(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return Pw(e,a.startTime,b)})} 836function Pw(a,b,c){var d=a.initSegmentUri?Qw(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:a.kind,language:a.language,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=Qw(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime, 837dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}Mw.prototype.Th=function(a){return{data:a.data}};function Qw(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new F(2,9,9004,"Could not parse uri "+a);} 838function Ow(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=r(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=r(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=r(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++, 839f=r(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=r(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=r(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function Rw(){Hw.apply(this,arguments)}ua(Rw,Hw); 840Rw.prototype.Gd=function(a){var b,c,d,e,f,g;return B(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=r(k.streams),q=m.next();!q.done;q=m.next())q=q.value,0!=q.variantIds.length&&l.push(Sw(q,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,Os(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration? 841Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})}; 842function Sw(a,b,c){return{id:a.id,originalId:a.originalId,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,kind:a.kind,language:a.language,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset, 843dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function Tw(){Hw.apply(this,arguments)}ua(Tw,Hw);n=Tw.prototype;n.hasFixedKeySpace=function(){return!1};n.addSegments=function(a){return this.add(this.i,a)};n.addManifests=function(a){return this.add(this.g,a)};n.updateManifest=function(a,b){return Lw(this,a,b)};n.Gd=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function Uw(){this.o=this.j=this.i=this.h=this.g=this.l=null}n=Uw.prototype; 844n.init=function(){var a=this,b=new jd,c=!1,d=new md(function(){c=!0;b.reject(new F(2,9,9017))});d.Y(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new Mw(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new Rw(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")? 845new Rw(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new Tw(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new Gw(f):null;a.o=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=r(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new F(2, 8469,9001,e.error)),d.stop(),f.preventDefault())};return b};n.destroy=function(){var a=this;return B(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:if(!a.o){b.D(10);break}return u(b,a.o.destroy(),10);case 10:a.l&&a.l.close(),v(b)}})}; 847n.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};n.getEmeSessionCell=function(){return this.o}; 848n.erase=function(){var a=this;return B(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),u(b,Vw(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})}; 849function Vw(){var a=new jd,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new F(2,9,9001,b.error));c.preventDefault()};return a}xv("idb",function(){return td("CrKey")||sd()||!window.indexedDB?null:new Uw});function Ww(){}function Xw(){for(var a=r(Yw),b=a.next();!b.done;b=a.next()){b=b.value;try{b.Gj()}catch(c){ob("Error installing polyfill!",c)}}}function Zw(a,b){a={priority:b||0,Gj:a};for(b=0;b<Yw.length;b++)if(Yw[b].priority<a.priority){Yw.splice(b,0,a);return}Yw.push(a)}E("shaka.polyfill",Ww);Ww.register=Zw;Ww.installAll=Xw;var Yw=[];function $w(){this.g=new ax}function bx(){window.AbortController||(window.AbortController=$w,window.AbortSignal=ax)}$w.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new ug("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};da.Object.defineProperties($w.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Ww.AbortController=$w;$w.install=bx; 850function ax(){xg.call(this);this.h=!1;this.g=void 0;this.onabort=null}ua(ax,xg);da.Object.defineProperties(ax.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Zw(bx);function cx(){}function dx(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=r(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())ex(b.value)}function ex(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}Ww.Aria=cx;cx.install=dx;Zw(dx);function fx(){}function gx(){hx()}Ww.EncryptionScheme=fx;fx.install=gx;Zw(gx,-2);function ix(){} 851function jx(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}), 852Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",kx);document.addEventListener("webkitfullscreenerror",kx);document.addEventListener("mozfullscreenchange",kx);document.addEventListener("mozfullscreenerror",kx);document.addEventListener("MSFullscreenChange",kx);document.addEventListener("MSFullscreenError",kx)}} 853function kx(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),c=document.createEvent("Event");c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}Ww.Fullscreen=ix;ix.install=jx;Zw(jx);function lx(){}function mx(){var a=yd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?nx():a?12>=a?(ox(),px()):15>=a&&ox():rd()?qx():(td("Tizen 2")||td("Tizen 3")||td("Tizen 4"))&&rx());
853window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&sx()} 854function ox(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];c=a.apply(this,c);c.abort=function(){};return c}}function px(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function qx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}} 855function rx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=ee(b)[0]&&a(b)}}function nx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}} 856function sx(){var a=MediaSource.isTypeSupported;td("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)})}Ww.MediaSource=lx;lx.install=mx;Zw(mx);function tx(){}function ux(){var a=!0;if(wd()||td("PlayStation 5")||xd()||td("Web0S")||ud()||td("CrKey")||td("PC=EOS")||td("Hisense")||td("VIDAA"))a=!1;a&&navigator.g||(navigator.g||(navigator.g={}),vx=navigator.g,navigator.g.Hd=wx)} 857function wx(a){var b,c,d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D;return B(function(A){switch(A.g){case 1:b={ed:!1,ql:!0,Dm:!0,Va:null,Oj:a};if(!a)return A.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!nd())return A.return(b);if(c){if(td("CrKey"))if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var C=c.contentType;c.width&&c.height&&(C+="; width="+c.width+"; height="+c.height);c.Xe&&(C+="; framerate="+c.Xe);"pq"===c.uh&&(C+="; eotf=smpte2084");e=cast.__platform__.canDisplayType(C)}else e= 858Ab(c.contentType);else ud()?(f=c.contentType,c.width&&c.height&&(f+="; width="+c.width,f+="; height="+c.height),c.Xe&&(f+="; framerate="+c.Xe),c.Oe&&(f+="; bitrate="+c.Oe),e=Ab(f)):e=Ab(c.contentType);if(!e)return A.return(b)}if(d&&(g=d.contentType,h=Ab(g),!h))return A.return(b)}else if("file"==a.type){if(c&&(k=c.contentType,l=od(k),!l)||d&&(m=d.contentType,q=od(m),!q))return A.return(b)}else return A.return(b);if(!a.Ud)return b.ed=!0,A.return(Promise.resolve(b));p=a.Ud;t=[];w=[];p.audio&&(z={robustness:p.audio.robustness|| 859"",contentType:a.audio.contentType},t.push(z));p.video&&(x={robustness:p.video.robustness||"",contentType:a.video.contentType},w.push(x));y={initDataTypes:[p.initDataType],distinctiveIdentifier:p.distinctiveIdentifier,persistentState:p.persistentState,sessionTypes:p.sessionTypes};t.length&&(y.audioCapabilities=t);w.length&&(y.videoCapabilities=w);Ba(A,3);return u(A,navigator.requestMediaKeySystemAccess(p.keySystem,[y]),5);case 5:D=A.h;Da(A,4);break;case 3:Ea(A);case 4:D&&(b.ed=!0,b.Va=D);case 2:return A.return(b)}})} 860Ww.MediaCapabilities=tx;tx.install=ux;var vx=null;tx.originalMcap=vx;Zw(ux,-1);function xx(){}function yx(){screen.orientation||void 0!=window.orientation&&zx()}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 ug("change");b.dispatchEvent(c)})}Ww.Orientation=xx; 861xx.install=yx;function Ax(){xg.call(this);this.type="";this.angle=0}ua(Ax,xg); 862Ax.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)}; 863Ax.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};Zw(yx);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()} 864function Mx(a){a=Fb(a.initData);if(Ib(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Dd(a.subarray(4),!0);a=Gd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Gb(a);this.dispatchEvent(b)}Ww.PatchedMediaKeysApple=Bx; 865Bx.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)};
866Bx.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= 867Ix;window.shakaMediaKeysPolyfill=!0}}; 868function Jx(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=r(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=r(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem, 869g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=r(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;} 870Jx.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 Qg}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)}; 871function Lx(a,b){a.g.Kb();if(!b)return Promise.resolve();a.g.s(b,"webkitneedkey",Mx);try{return ql(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function Ox(a){xg.call(this);this.i=null;this.l=a;this.h=this.g=null;this.j=new Qg;this.sessionId="";this.expiration=NaN;this.closed=new jd;this.keyStatuses=new Px}ua(Ox,xg);n=Ox.prototype; 872n.generateRequest=function(a,b){var c=this;this.g=new jd;try{var d=this.l.createSession("video/mp4",Fb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.s(this.i,"webkitkeymessage",function(e){c.g&&(c.g.resolve(),c.g=null);e=(new Map).set("messageType",void 0==c.keyStatuses.Hb()?"license-request":"license-renewal").set("message",Gb(e.message));e=new ug("message",e);c.dispatchEvent(e)});this.j.s(d,"webkitkeyadded",function(){c.h&&(Qx(c,"usable"),c.h.resolve(),c.h=null)});this.j.s(d,"webkitkeyerror", 873function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.g)c.g.reject(e),c.g=null;else if(null!=c.h)c.h.reject(e),c.h=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.g.reject(e)}return this.g};n.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))}; 874n.update=function(a){this.h=new jd;try{this.i.update(Fb(a))}catch(b){this.h.reject(b)}return this.h};n.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Kb()}catch(a){this.closed.reject(a)}return this.closed};n.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 ug("keystatuseschange");a.dispatchEvent(b)} 875function Px(){this.size=0;this.g=void 0}n=Px.prototype;n.Hb=function(){return this.g};n.forEach=function(a){this.g&&a(this.g,xi.value())};
875n.get=function(a){if(this.has(a))return this.g};n.has=function(a){var b=xi.value();return this.g&&Db(a,b)?!0:!1};n.entries=function(){};n.keys=function(){};n.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."))} 876function Ux(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Ww.PatchedMediaKeysNop=Rx;Rx.install=Sx;function Vx(){throw new TypeError("Illegal constructor.");}Vx.prototype.createSession=function(){};Vx.prototype.setServerCertificate=function(){};function Wx(){this.keySystem="";throw new TypeError("Illegal constructor.");}Wx.prototype.getConfiguration=function(){};Wx.prototype.createMediaKeys=function(){};Zw(Sx,-10);function Xx(){} 877function 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}} 878function 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()}Ww.PatchedMediaKeysWebkit=Xx;Xx.install=Yx; 879function 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=r(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=r(f.audioCapabilities), 880l=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=r(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"]): 881d=!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 Qg;this.i=[];this.j=new Map} 882function ey(a,b){a.h=b;a.g.Kb();var c=Zx;b&&(a.g.s(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Gb(d.initData);a.h.dispatchEvent(e)}),a.g.s(b,c+"keymessage",function(d){var e=fy(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Hb()?"licenserequest":"licenserenewal").set("message",d.message),d=new ug("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.s(b,c+"keyadded",function(d){if(d=fy(a,d.sessionId))gy(d,"usable"), 883d.g&&d.g.resolve(),d.g=null}),a.g.s(b,c+"keyerror",function(d){var e=fy(a,d.sessionId);e&&e.handleError(d)}))}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)}; 884function 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){xg.call(this);this.j=a;this.o=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new jd;this.keyStatuses=new iy}ua(hy,xg);n=hy.prototype; 885n.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?gy(this,"output-restricted"):1==b?g
885y(this,"expired"):gy(this,"internal-error"))}; 886function jy(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if("persistent-license"==a.l)if(c)var d=Fb(Gd("LOAD_SESSION|"+c));else{var e=Gd("PERSISTENT|");d=Rd(e,b)}else d=Fb(b)}catch(g){return Promise.reject(g)}a.h=new jd;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 md(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).Y(.01)}return a.h} 887function 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=Cd(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=Od(e.keys[0].k);e=Od(e.keys[0].kid)}else d=Fb(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}}} 888function gy(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new ug("keystatuseschange");a.dispatchEvent(b)}n.generateRequest=function(a,b){return jy(this,b,null)};n.load=function(a){return"persistent-license"==this.l?jy(this,null,a):Promise.reject(Error("Not a persistent session."))};n.update=function(a){var b=new jd;ky(this,b,a);return b}; 889n.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};n.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}n=iy.prototype;n.Hb=function(){return this.g}; 890n.forEach=function(a){this.g&&a(this.g,xi.value())};n.get=function(a){if(this.has(a))return this.g};n.has=function(a){var b=xi.value();return this.g&&Db(a,b)?!0:!1};n.entries=function(){};n.keys=function(){};n.values=function(){};var Zx="";Zw(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))}} 891function 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)} 892function 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"))} 893function oy(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function py(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Ww.PiPWebkit=ly;ly.install=my;Zw(my);function sy(){}function ty(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.g=uy))}function uy(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Ww.RandomUUID=sy;sy.install=ty;Zw(ty);function vy(){}function wy(){ea();var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:xy})}function xy(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Ww.Symbol=vy;vy.install=wy;Zw(wy);function yy(){}function zy(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Ay;else if(6==b)a=By;else{try{var c=!!Ay(1,2,"")}catch(d){c=!1}c&&(a=Ay)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Ay(a,b,c){return new window.TextTrackCue(a,b,c)}function By(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Ww.VTTCue=yy;yy.install=zy;Zw(zy);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}}}Ww.VideoPlayPromise=Cy;Cy.install=Dy;Zw(Dy);function Ey(){}function Fy(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||vd())&&(a.getVideoPlaybackQuality=Gy)}}function Gy(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Ww.VideoPlaybackQuality=Ey;Ey.install=Fy;Zw(Fy);function Hy(){}Hy.prototype.parseInit=function(){};Hy.prototype.setSequenceMode=function(){};Hy.prototype.parseMedia=function(a,b){var c=null,d=[];a=Cd(a).split(/\r?\n/);a=r(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=Iy.exec(e))){var f=Jy.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Ce(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};E("shaka.text.LrcTextParser",Hy);Hy.prototype.parseMedia=Hy.prototype.parseMedia; 894Hy.prototype.setSequenceMode=Hy.prototype.setSequenceMode;Hy.prototype.parseInit=Hy.prototype.parseInit;var Iy=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Jy=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Ye["application/x-subtitle-lrc"]=function(){return new Hy};function Ky(){}Ky.prototype.parseInit=function(){};Ky.prototype.setSequenceMode=function(){}; 895Ky.prototype.parseMedia=function(a,b){var c=Cd(a);a=[];if(""==c)return a;var d=Kh(c,"tt");if(!d)throw new F(2,2,2005,"Failed to parse TTML.");c=d.getElementsByTagName("body")[0];if(!c)return[];var e=yh(d,Ly,"frameRate"),f=yh(d,Ly,"subFrameRate"),g=yh(d,Ly,"frameRateMultiplier"),h=yh(d,Ly,"tickRate"),k=yh(d,Ly,"cellResolution"),l=d.getAttribute("xml:space")||"default",m=yh(d,My,"extent");
895if("default"!=l&&"preserve"!=l)throw new F(2,2,2005,"Invalid xml:space value: "+l);l="default"==l;e=new Ny(e,f, 896g,h);k=k?(k=/^(\d+) (\d+)$/.exec(k))?{columns:parseInt(k[1],10),rows:parseInt(k[2],10)}:null:null;f=(f=d.getElementsByTagName("metadata")[0])?wh(f):[];g=Array.from(d.getElementsByTagName("style"));d=Array.from(d.getElementsByTagName("region"));h=[];for(var q=r(d),p=q.next();!p.done;p=q.next()){var t=p.value;p=new Ee;var w=t.getAttribute("xml:id");if(w){p.id=w;var z=null;m&&(z=Oy.exec(m)||Py.exec(m));w=z?Number(z[1]):null;z=z?Number(z[2]):null;var x,y;if(x=Qy(t,g,"extent"))x=(y=Oy.exec(x))||Py.exec(x), 897null!=x&&(p.width=Number(x[1]),p.height=Number(x[2]),y||(null!=w&&(p.width=100*p.width/w),null!=z&&(p.height=100*p.height/z)),p.widthUnits=y||null!=w?Ue:0,p.heightUnits=y||null!=z?Ue:0);if(t=Qy(t,g,"origin"))x=(y=Oy.exec(t))||Py.exec(t),null!=x&&(p.viewportAnchorX=Number(x[1]),p.viewportAnchorY=Number(x[2]),y||(null!=z&&(p.viewportAnchorY=100*p.viewportAnchorY/z),null!=w&&(p.viewportAnchorX=100*p.viewportAnchorX/w)),p.viewportAnchorUnits=y||null!=w?Ue:0)}else p=null;p&&h.push(p)}if(th(c,"p").length)throw new F(2, 8982,2001,"<p> can only be inside <div> in TTML");m=r(th(c,"div"));for(q=m.next();!q.done;q=m.next())if(th(q.value,"span").length)throw new F(2,2,2001,"<span> can only be inside <p> in TTML");if(b=Ry(c,b,e,f,g,d,h,l,k,null,!1))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a}; 899function Ry(a,b,c,d,e,f,g,h,k,l,m){var q=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var t=null,w=r(Sy),z=w.next();!z.done&&!(t=Ty(p,"backgroundImage",d,"#",z.value)[0]);z=w.next());w=m;if("p"==a.nodeName||t)m=!0;h="default"==(p.getAttribute("xml:space")||(h?"default":"preserve"));z=Array.from(p.childNodes).every(function(C){return C.nodeType==Node.TEXT_NODE}); 900a=[];if(!z)for(var x=r(p.childNodes),y=x.next();!y.done;y=x.next())(y=Ry(y.value,b,c,d,e,f,g,h,k,p,m))&&a.push(y);d=null!=l;x=/\S/.test(p.textContent);var D=p.hasAttribute("begin")||p.hasAttribute("end")||p.hasAttribute("dur");if(!(D||x||"br"==p.tagName||0!=a.length||d&&!h))return null;y=Uy(p,c);x=y.start;for(y=y.end;q&&q.nodeType==Node.ELEMENT_NODE&&"tt"!=q.tagName;)y=Vy(q,c,x,y),x=y.start,y=y.end,q=q.parentNode;null==x&&(x=0);x+=b.periodStart;y=null==y?Infinity:y+b.periodStart;x=Math.max(x,b.segmentStart); 901y=Math.min(y,b.segmentEnd);if(!D&&0<a.length)for(x=Infinity,y=0,b=r(a),c=b.next();!c.done;c=b.next())c=c.value,x=Math.min(x,c.startTime),y=Math.max(y,c.endTime);if("br"==p.tagName)return e=new Ce(x,y,""),e.lineBreak=!0,e;b="";z&&(b=p.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new Ce(x,y,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=Ty(p,"region",f,"")[0];if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var A=k.getAttribute("xml:id");b.region=g.filter(function(C){return C.id== 902A})[0]}g=k;l&&d&&!p.getAttribute("region")&&!p.getAttribute("style")&&(g=Ty(l,"region",f,"")[0]);Wy(b,p,g,t,e,w,0==a.length);return b} 903function Wy(a,b,c,d,e,f,g){f=f||g;"rtl"==Xy(b,c,e,"direction",f)&&(a.direction="rtl");g=Xy(b,c,e,"writingMode",f);"tb"==g||"tblr"==g?a.writingMode="vertical-lr":"tbrl"==g?a.writingMode="vertical-rl":"rltb"==g||"rl"==g?a.direction="rtl":g&&(a.direction=De);(g=Xy(b,c,e,"textAlign",!0))?(a.positionAlign=Yy[g],a.lineAlign=Zy[g],a.textAlign=Oe[g.toUpperCase()]):a.textAlign=Ge;if(g=Xy(b,c,e,"displayAlign",!0))a.displayAlign=Pe[g.toUpperCase()];if(g=Xy(b,c,e,"color",f))a.color=g;if(g=Xy(b,c,e,"backgroundColor", 904f))a.backgroundColor=g;if(g=Xy(b,c,e,"border",f))a.border=g;if(g=Xy(b,c,e,"fontFamily",f))switch(g){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=g}(g=Xy(b,c,e,"fontWeight",f))&&
905"bold"==g&&(a.fontWeight=700);g=Xy(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=Xy(b,c,e,"lineHeight",f))&&g.match($y)&&(a.lineHeight=g);(g=Xy(b,c,e,"fontSize",f))&&(g.match($y)||g.match(az))&&(a.fontSize=g);if(g=Xy(b,c,e,"fontStyle",f))a.fontStyle=Te[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}if(d=Xy(b,c,e,"textOutline", 906f))d=d.split(" "),d[0].match($y)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match($y)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=Xy(b,c,e,"letterSpacing",f))&&d.match($y)&&(a.letterSpacing=d);(d=Xy(b,c,e,"linePadding",f))&&d.match($y)&&(a.linePadding=d);if(f=Xy(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=Qy(c,e,"textDecoration"))&&bz(a,c);(b=cz(b,e,"textDecoration"))&&bz(a,b)} 907function bz(a,b){b=r(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")&&we(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&we(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")|| 908a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&we(a.textDecoration,"overline")}}function Xy(a,b,c,d,e){e=void 0===e?!0:e;return(a=cz(a,c,d))?a:e?Qy(b,c,d):null}function Qy(a,b,c){if(!a)return null;var d=yh(a,My,c);return d?d:dz(a,b,c)}function cz(a,b,c){var d=yh(a,My,c);return d?d:dz(a,b,c)} 909function dz(a,b,c){a=Ty(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=xh(a[e],"urn:ebu:tt:style",c);f||(f=yh(a[e],My,c));f||(f=cz(a[e],b,c));f&&(d=f)}return d} 910function Ty(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?xh(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=r(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=r(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 Vy(a,b,c,d){a=Uy(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}} 911function Uy(a,b){var c=ez(a.getAttribute("begin"),b),d=ez(a.getAttribute("end"),b);a=ez(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}} 912function ez(a,b){var c=null;if(fz.test(a)){a=fz.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(gz.test(a))c=hz(gz,a);else if(bA.test(a))c=hz(bA,a);else if(cA.test(a))a=cA.exec(a),c=Number(a[1])/b.frameRate;else if(dA.test(a))a=dA.exec(a),c=Number(a[1])/b.g;else if(eA.test(a))c=hz(eA,a);else if(a)throw new F(2,2,2001,"Could not parse cue time range in TTML");return c} 913function hz(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)}E("shaka.text.TtmlTextParser",Ky);Ky.prototype.parseMedia=Ky.prototype.parseMedia;Ky.prototype.setSequenceMode=Ky.prototype.setSequenceMode;Ky.prototype.parseInit=Ky.prototype.parseInit; 914function Ny(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]))} 915var Oy=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,az=/^(\d{1,2}(?:\.\d+)?|100)%$/,$y=/^(\d+px|\d+em|\d*\.?\d+c)$/,Py=/^(\d+)px (\d+)px$/,fz=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,gz=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,bA=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,cA=/^(\d*(?:\.\d*)?)f$/,dA=/^(\d*(?:\.\d*)?)t$/,eA=/^(?:(\d*(?:\.\d*)?)h)?(?:(\d*(?:\.\d*)?)m)?(?:(\d*(?:\.\d*)?)s)?(?:(\d*(?:\.\d*)?)ms)?$/,Zy={left:Je,center:"center",right:"end",start:Je,end:"end"},Yy= 916{left:"line-left",center:"center",right:"line-right"},Ly=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],My=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Sy=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Ye["application/ttml+xml"]=function(){return new Ky};function fA(){this.B=new Ky}fA.prototype.parseInit=function(a){var b=!1;(new eh).box("moov",jh).box("trak",jh).box("mdia",jh).box("minf",jh).box("stbl",jh).ea("stsd",lh).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new F(2,2,2007);};fA.prototype.setSequenceMode=function(){};fA.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new eh).box("mdat",nh(function(f){d=!0;e=e.concat(c.B.parseMedia(f,b))})).parse(a,!1);if(!d)throw new F(2,2,2007);return e}; 917E("shaka.text.Mp4TtmlParser",fA);fA.prototype.parseMedia=fA.prototype.parseMedia;fA.prototype.setSequenceMode=fA.prototype.setSequenceMode;fA.prototype.parseInit=fA.prototype.parseInit;Ye['application/mp4; codecs="stpp"']=function(){return new fA};Ye['application/mp4; codecs="stpp.ttml"']=function(){return new fA};Ye['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new fA};Ye['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new fA};function gA(){this.g=!1}gA.prototype.parseInit=function(){};gA.prototype.setSequenceMode=function(a){this.g=a}; 918gA.prototype.parseMedia=function(a,b){a=Cd(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);
918if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new F(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&this.g){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=hA(new Kt(d[1]));if(null==a)throw new F(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+ 919e/9E4-a}}b=[];e=r(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new Kt(d);var f=new Ee;Nt(d);Lt(d);for(var g=Nt(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=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))? 920(h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Lt(d);g=Nt(d)}b.push(f)}e=new Map;iA(e);d=[];c=r(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=r(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&& 921(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 Ce(0,0,""));for(var m=!1,q=0;q<k.length;q++){var p=/^\s*([^:]+):\s*(.*)/.exec(k[q]);if(p){var t=p[2].trim().replace(";","");switch(p[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=t;break;case "color":m=!0;l.color=t;break;case "font-family":m=!0;l.fontFamily=t;break;case "font-size":m=!0;l.fontSize=t;break;case "font-weight":if(700<=parseInt(t,10)||"bold"== 922t)m=!0,l.fontWeight=700;break;case "font-style":switch(t){case "normal":m=!0;l.fontStyle=Me;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(t);break;case "text-shadow":m=!0;l.textShadow=t;break;case "white-space":m=!0,l.wrapLine="noWrap"!=t}}}m&&e.set(g,l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else{h=null;f[0].includes("--\x3e")||(h=f[0],f.splice(0,1)); 923g=new Kt(f[0]);k=hA(g);q=Mt(g,/[ \t]+--\x3e[ \t]+/g);l=hA(g);if(null==k||null==q||null==l)throw new F(2,2,2001,"Could not parse cue time range in WebVTT");k+=m;l+=m;m=f.slice(1).join("\n").trim();e.has("global")?(f=e.get("global").clone(),f.startTime=k,f.endTime=l,f.payload=""):f=new Ce(k,l,"");jA(m,f,e);Lt(g);for(k=Nt(g);k;)kA(f,k,b),Lt(g),k=Nt(g);null!=h&&(f.id=h)}f&&d.push(f)}return d}; 924function iA(a){for(var b=r(Object.entries(Re)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new Ce(0,0,"");e.color=d;a.set("."+c,e)}b=r(Object.entries(Se));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new Ce(0,0,""),e.backgroundColor=d,a.set("."+c,e)} 925function jA(a,b,c){0===c.size&&iA(c);a:{var d=a;a=[];for(var e=-1,f="",g=0;g<d.length;g++)if("/"===d[g]&&0<g&&"<"===d[g-1]){var h=d.indexOf(">",g);if(h<=g){a=d;break a}if((h=d.substring(g+1,h))&&"c"===h){var k=a.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=d[g]:f+=d[g]}else f+=d[g]}else"<"===d[g]?(e=g+1,"c"!=d[e]&&(e=-1)):">"===d[g]&&0<e&&(a.push(d.substr(e,g-e)),e=-1),f+=d[g];a=f}d=[];f=-1;for(e=0;e<a.length;e++)"<"===a[e]?f=e+1:">"===a[e]&&0<f&&(f= 926a.substr(f,e-f),f.match(lA)&&d.push(f),f=-1);d=r(d);for(e=d.next();!e.done;e=d.next())e=e.value,a=a.replace("<"+e+">",'<div time="'+e+'">'),a+="</div>";a:{e=a;f=[];g=-1;d="";a=!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){a=!0;var l=null;f.length&&(l=f[f.length-1]);l?l===k?(d+="/"+k+">",h+=k.length+1):l.startsWith("v")?(d+="/"+l+">",h+=k.length+1):d+=e[h]:d+=e[h]}else d+=e[h]}else"<"===e[h]?(g=h+1,"v"!=e[g]&&(g=-1)):">"===e[h]&& 9270<g&&(f.push(e.substr(g,h-g)),g=-1),d+=e[h];e=r(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),d=d.replace("<"+f+">","<"+g+">"),d=d.replace("</"+f+">","</"+g+">"),a||(d+="</"+g+">");a=d}
927if(e=Kh("<span>"+a+"</span>","span")){d=[];e=e.childNodes;if(1==e.length&&(f=e[0],f.nodeType==Node.TEXT_NODE||f.nodeType==Node.CDATA_SECTION_NODE)){b.payload=mA(a);return}a=r(e);for(e=a.next();!e.done;e=a.next())nA(e.value,b,d,c);b.nestedCues=d}else b.payload=mA(a)} 928function oA(a,b){return a&&0<a.length?a:b} 929function nA(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=r(a.nodeName.split(/(?=[ .])+/g)),g=f.next();!g.done;g=f.next()){var h=g=g.value;if(h.startsWith(".voice-")){var k=h.split("-").pop();h='v[voice="'+k+'"]';d.has(h)||(h="v[voice="+k+"]")}d.has(h)&&(h=d.get(h))&&(e.backgroundColor=oA(h.backgroundColor,e.backgroundColor),e.color=oA(h.color,e.color),e.fontFamily=oA(h.fontFamily,e.fontFamily),e.fontSize=oA(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle= 930h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine);switch(g){case "br":g=b.clone();g.lineBreak=!0;c.push(g);break;case "b":e.fontWeight=700;break;case "i":e.fontStyle="italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=hA(new Kt(g)))e.startTime=g}}if(Ah(a))for(f=!0,d=r(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=mA(a),c.push(f)),f=!1;else for(b= 931r(a.childNodes),a=b.next();!a.done;a=b.next())nA(a.value,e,c,d)} 932function kA(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Ge:a.textAlign=Oe[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|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"== 933b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=pA(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=Qe[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Ie,a.line=Number(c[1]),c[2]&&(a.lineAlign=Qe[c[2].toUpperCase()])}function pA(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null} 934function hA(a){a=Mt(a,lA);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)}function mA(a){var b={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":"\u00a0","‎":"\u200e","‏":"\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||""}E("shaka.text.VttTextParser",gA);gA.prototype.parseMedia=gA.prototype.parseMedia; 935gA.prototype.setSequenceMode=gA.prototype.setSequenceMode;gA.prototype.parseInit=gA.prototype.parseInit;var lA=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Ye["text/vtt"]=function(){return new gA};Ye['text/vtt; codecs="vtt"']=function(){return new gA};Ye['text/vtt; codecs="wvtt"']=function(){return new gA};function qA(){this.g=null}qA.prototype.parseInit=function(a){var b=this,c=!1;(new eh).box("moov",jh).box("trak",jh).box("mdia",jh).ea("mdhd",function(d){d=Lj(d.reader,d.version);b.g=d.timescale}).box("minf",jh).box("stbl",jh).ea("stsd",lh).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new F(2,2,2008);if(!c)throw new F(2,2,2008);};qA.prototype.setSequenceMode=function(){}; 936qA.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new F(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new eh).box("moof",jh).box("traf",jh).ea("tfdt",function(A){g=!0;c=Kj(A.reader,A.version).Kh}).ea("tfhd",function(A){l=Jj(A.reader,A.flags).Wh}).ea("trun",function(A){h=!0;d=Mj(A.reader,A.version,A.flags).Fi}).box("mdat",nh(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new F(2,2,2008);a=c;for(var m=new bh(e,0),q=r(d),p=q.next();!p.done;p=q.next()){p=p.value; 937var t=p.Vg||l,w=p.Af?c+p.Af:a;a=w+(t||0);var z=0;do{var x=m.N();z+=x;var y=m.N(),D=null;"vttc"==ih(y)?8<x&&(D=m.Ya(x-8)):m.skip(x-8);t&&D&&(x=rA(D,b.periodStart+w/this.g,b.periodStart+a/this.g),f.push(x))}while(p.sampleSize&&z<p.sampleSize)}return f.filter(bd)};function rA(a,b,c){var d,e,f;(new eh).box("payl",nh(function(g){d=Cd(g)})).box("iden",nh(function(g){e=Cd(g)})).box("sttg",nh(function(g){f=Cd(g)})).parse(a);return d?sA(d,e,f,b,c):null} 938function sA(a,b,c,d,e){d=new Ce(d,e,"");jA(a,d,new Map);b&&(d.id=b);if(c)for(a=new Kt(c),b=Nt(a);b;)kA(d,b,[]),Lt(a),b=Nt(a);return d}E("shaka.text.Mp4VttParser",qA);qA.prototype.parseMedia=qA.prototype.parseMedia;qA.prototype.setSequenceMode=qA.prototype.setSequenceMode;qA.prototype.parseInit=qA.prototype.parseInit;Ye['application/mp4; codecs="wvtt"']=function(){return new qA};function tA(){}tA.prototype.parseInit=function(){};tA.prototype.setSequenceMode=function(){};tA.prototype.parseMedia=function(a){var b=Cd(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=r(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Kt(c[0]),e=uA(d),f=Mt(d,/,/g);d=uA(d);if(null==e||null==f||null==d)throw new F(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Ce(e,d,c.slice(1).join("\n").trim()))}return a}; 939function uA(a){a=Mt(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)}E("shaka.text.SbvTextParser",tA);tA.prototype.parseMedia=tA.prototype.parseMedia;tA.prototype.setSequenceMode=tA.prototype.setSequenceMode;tA.prototype.parseInit=tA.prototype.parseInit;Ye["text/x-subviewer"]=function(){return new tA};function vA(){this.B=new gA}vA.prototype.parseInit=function(){};vA.prototype.setSequenceMode=function(){};vA.prototype.parseMedia=function(a,b){a=Cd(a);a=wA(a);a=Fb(Gd(a));return this.B.parseMedia(a,b)};function wA(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=r(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")+"\n\n";return b}E("shaka.text.SrtTextParser",vA); 940vA.srt2webvtt=wA;vA.prototype.parseMedia=vA.prototype.parseMedia;vA.prototype.setSequenceMode=vA.prototype.setSequenceMode;vA.prototype.parseInit=vA.prototype.parseInit;Ye["text/srt"]=function(){return new vA};function xA(){}xA.prototype.parseInit=function(){};xA.prototype.setSequenceMode=function(){}; 941xA.prototype.parseMedia=function(a){var b="",c="";a=Cd(a).split(/\r?\n\s*\r?\n/);a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=yA.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;
941b=r(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=zA.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(AA);else if("Style"==e){e=f.split(AA);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d= 942[];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={Xf:e.Xf},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=zA.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(AA);else if("Dialogue"==f){g=g.split(AA);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=BA(f.Start);var k=BA(f.End);g=new Ce(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Xf=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Xf}}(e)))&&CA(g,f);d.push(g)}return d}; 943function CA(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=DA(c))a.color=c;if(c=b.BackColour)if(c=DA(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=Ke;a.textAlign="start";break;case 2:a.displayAlign=Ke;a.textAlign=Ge;break;case 3:a.displayAlign=Ke;a.textAlign="end"; 944break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Ge;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=Ge;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)} 945function DA(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 BA(a){a=EA.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}E("shaka.text.SsaTextParser",xA);xA.prototype.parseMedia=xA.prototype.parseMedia;xA.prototype.setSequenceMode=xA.prototype.setSequenceMode;xA.prototype.parseInit=xA.prototype.parseInit; 946var yA=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,zA=/^\s*([^:]+):\s*(.*)/,AA=/\s*,\s*/,EA=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Ye["text/x-ssa"]=function(){return new xA};function FA(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Qg;this.localization=this.controls.W;this.player=this.controls.Qc();this.video=this.controls.Ub();this.adManager=this.player.Ye();this.ad=b.getAd();this.eventManager.s(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null})} 947FA.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};E("shaka.ui.Element",FA);FA.prototype.release=FA.prototype.release;function GA(a){xg.call(this);this.j=me(a);this.i=new Map;this.g=new Set;this.h=new Map}ua(GA,xg);n=GA.prototype;n.release=function(){xg.prototype.release.call(this)}; 948n.Rh=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(me(c.value));HA(this);a=Yg(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new ug("unknown-locales",(new Map).set("locales",a)));a=Yg(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new ug("locale-changed",a))}; 949n.sa=function(a,b,c){a=me(a);void 0===c&&(c=IA);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=IA||d.set(f,e)});this.h.set(a,d);HA(this);this.dispatchEvent(new ug("locale-updated"));return this};n.rm=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};n.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 ug("unknown-localization",a));return""}; 950function HA(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=r(d),h=g.next();!h.done;f={Fc:f.Fc},h=g.next()){f.Fc=h.value;e.add(f.Fc);e.add(re(f.Fc));h=Yg(b.keys(),function(l){return function(m){return qe(m,l.Fc)}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=Yg(b.keys(),function(l){return function(m){return re(m)==l.Fc}}(f));h.sort();k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h); 951c.reverse();a.i.clear();b=r(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=r(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,JA(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new ug("missing-localizations",d)))}function JA(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}E("shaka.ui.Localization",GA);GA.prototype.resolve=GA.prototype.resolve; 952GA.prototype.resolveDictionary=GA.prototype.rm;GA.prototype.insert=GA.prototype.sa;GA.prototype.changeLocale=GA.prototype.Rh;GA.prototype.release=GA.prototype.release;var IA=1;GA.ConflictResolution={USE_OLD:0,USE_NEW:IA};GA.UNKNOWN_LOCALES="unknown-locales";GA.UNKNOWN_LOCALIZATION="unknown-localization";GA.MISSING_LOCALIZATIONS="missing-localizations";GA.LOCALE_CHANGED="locale-changed";
952GA.LOCALE_UPDATED="locale-updated";var KA={Ho:"ENTER_PICTURE_IN_PICTURE",Ro:"FULL_SCREEN",pp:"PLAY",qp:"PLAYBACK_RATE",Vp:"UNDETERMINED_LANGUAGE",Wo:"LANGUAGE",Cp:"SKIP_AD",zo:"CAST",vj:"LIVE",ep:"MUTE",op:"PICTURE_IN_PICTURE",cp:"MULTIPLE_LANGUAGES",oo:"AD_TIME",Lo:"EXIT_LOOP_MODE",vp:"REWIND",xp:"SEEK",sp:"QUALITY",BACK:"BACK",Wp:"UNMUTE",wj:"SUBTITLE_FORCED",yo:"CAPTIONS",jp:"ON",Xo:"LOOP",up:"RESOLUTION",Po:"FAST_FORWARD",so:"AUTO_QUALITY",po:"AIRPLAY",Mo:"EXIT_PICTURE_IN_PICTURE",aq:"VOLUME",np:"PAUSE",Go:"ENTER_LOOP_MODE",tp:"REPLAY", 953Dp:"SKIP_TO_LIVE",Ko:"EXIT_FULL_SCREEN",bp:"MORE_SETTINGS",hp:"NOT_APPLICABLE",Xp:"UNRECOGNIZED_LANGUAGE",mo:"AD_DURATION",Gp:"STATISTICS",AD_PROGRESS:"AD_PROGRESS",ip:"OFF"};function LA(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function MA(a){a&&(a=LA(a,"zx-chosen-item"))&&a.parentElement.focus()}function NA(){var a=Om("i");a.classList.add("Cx-Dx-Ex");a.classList.add("zx-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function OA(a,b){a&&(b?a.classList.remove("zx-Ax"):a.classList.add("zx-Ax"))} 954function PA(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 QA(a,b){FA.call(this,a,b);var c=this;this.i=Om("div");this.i.classList.add("zx-cy-ry");this.parent.appendChild(this.i);this.h=Om("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new md(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=PA(e-d,!1)+" / "+PA(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= 955""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.La();c.g.ua(.5)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.La(),this.g.ua(.5))}ua(QA,FA);QA.prototype.release=function(){this.g.stop();this.g=null;FA.prototype.release.call(this)};E("shaka.ui.AdCounter",QA);function RA(a,b){FA.call(this,a,b);var c=this;this.g=Om("div");this.g.classList.add("zx-cy-jy");OA(this.g,!1);this.parent.appendChild(this.g);this.h=Om("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.s(this.localization,"locale-updated",function(){c.ad&&SA(c)});this.eventManager.s(this.localization,"locale-changed",function(){c.ad&&SA(c)});this.eventManager.s(this.adManager,"ad-started",function(){SA(c)});this.eventManager.s(this.adManager,"ad-stopped", 956function(){c.h.textContent="";OA(c.g,!1)});this.ad&&SA(this)}ua(RA,FA);function SA(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));OA(a.g,!0)}}E("shaka.ui.AdPosition",RA);function TA(a,b){FA.call(this,a,b);var c=this;this.button=Pm();this.parent.appendChild(this.button);this.eventManager.s(this.localization,"locale-updated",function(){c.g()});this.eventManager.s(this.localization,"locale-changed",function(){c.g()});this.eventManager.s(this.video,"play",function(){c.g();c.h()});this.eventManager.s(this.video,"pause",function(){c.g();c.h()});this.eventManager.s(this.video,"seeking",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-paused",function(){c.g(); 957c.h()});this.eventManager.s(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.s(this.button,"click",function(){c.ad&&c.ad.isLinear()?UA(c.controls):VA(c.controls)});this.ad&&(this.g(),this.h())}ua(TA,FA);TA.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.i.paused&&!a.M;return a};TA.prototype.g=function(){};TA.prototype.h=function(){}; 958E("shaka.ui.PlayButton",TA);function WA(a,b){TA.call(this,a,b);this.button.classList.add("zx-Mx-Fh");this.button.classList.add("shaka-no-propagation");this.h();this.g()}ua(WA,TA);WA.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};WA.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};E("shaka.ui.BigPlayButton",WA);function XA(a,b){FA.call(this,a,b);var c=this;this.m=this.controls.m;this.h=this.controls.$;this.i=[];this.g=Om("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("zx-Ox-te");this.g.classList.add("zx-Ax");this.h.appendChild(this.g);this.eventManager.s(this.h,"contextmenu",function(d){if(c.g.classList.contains("zx-Ax")){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";OA(c.g,!0)}else OA(c.g,!1)});this.eventManager.s(window, 959"click",function(){OA(c.g,!1)});YA(this)}ua(XA,FA);XA.prototype.release=function(){this.h=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];FA.prototype.release.call(this)};function ZA(a,b){$A.set(a,b)}function YA(a){for(var b=r(a.m.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=$A.get(c);d?a.i.push(d.create(a.g,a.controls)):ob("Unrecognized context menu element:",c)}}E("shaka.ui.ContextMenu",XA);XA.registerElement=ZA;var $A=new Map;function aB(a,b,c,d){FA.call(this,a,b);var e=this;this.container=Om("div");this.container.classList.add("zx-Yx-ye");this.container.classList.add.apply(this.container.classList,ma(c));this.g=!1;this.bar=document.createElement("input");this.l=new md(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("zx-Yx-ay");this.bar.classList.add.apply(this.bar.classList,ma(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); 960this.parent.appendChild(this.container);this.eventManager.s(this.bar,"mousedown",function(){e.controls.lc()&&(e.g=!0,e.onChangeStart())});this.eventManager.s(this.bar,"touchstart",function(f){e.controls.lc()&&(e.g=!0,bB(e,f),e.onChangeStart())});this.eventManager.s(this.bar,"input",function(){e.onChange()});this.eventManager.s(this.bar,"touchmove",function(f){e.g&&(bB(e,f),e.onChange())});this.eventManager.s(this.bar,"touchend",function(f){e.g&&(e.g=!1,bB(e,f),e.onChangeEnd())});this.eventManager.s(this.bar, 961"mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}ua(aB,FA);n=aB.prototype;n.release=function(){this.l&&(this.l.stop(),this.l=null);FA.prototype.release.call(this)};n.setRange=function(a,b){this.bar.min=a;this.bar.max=b};n.onChangeStart=function(){};n.onChange=function(){};n.onChangeEnd=function(){};n.changeTo=function(a){this.g||(this.g=!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.l.Y(.5)};n.getValue=function(){return parseFloat(this.bar.value)}; 962n.setValue=function(a){this.g||(this.bar.value=a)};function bB(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}E("shaka.ui.RangeElement",aB);aB.prototype.setValue=aB.prototype.setValue;aB.prototype.getValue=aB.prototype.getValue;aB.prototype.changeTo=aB.prototype.changeTo;aB.prototype.onChangeEnd=aB.prototype.onChangeEnd; 963aB.prototype.onChange=aB.prototype.onChange;aB.prototype.onChangeStart=aB.prototype.onChangeStart;aB.prototype.setRange=aB.prototype.setRange;function cB(a,b){aB.call(this,a,b,["zx-by-Kq-ye"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=Om("div");this.j.classList.add("zx-cy-dy");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.m;this.h=new md(function(){c.video.currentTime=c.getValue()});this.o=new md(function(){dB(c)});this.A=!1;this.i=[];this.eventManager.s(this.localization,"locale-updated",function(){return eB(c)});this.eventManager.s(this.localization, 964"locale-changed",function(){return eB(c)});this.eventManager.s(this.adManager,"ad-started",function(){fB(c)||OA(c.container,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){fB(c)&&OA(c.container,!0)});this.eventManager.s(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;gB(c)});this.eventManager.s(this.player,"unloading",function(){c.i=[];gB(c)});this.setValue(this.video.currentTime);this.update();eB(this);this.ad&&OA(this.container,!1)}ua(cB,aB);n=cB.prototype; 965n.release=function(){this.h&&(this.h.stop(),this.h=null,this.o.stop(),this.o=null);aB.prototype.release.call(this)};n.onChangeStart=function(){this.A=!this.video.paused;this.controls.gh(!0);this.video.pause()};n.onChange=function(){this.video.duration&&(this.update(),this.h.Y(.125))};n.onChangeEnd=function(){this.h.La();this.controls.gh(!1);this.A&&this.video.play()};n.isShowing=function(){return!this.container.classList.contains("zx-Ax")}; 966n.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.Za(),g=f.end-f.start;this.setRange(f.start,f.end);fB(this)?(OA(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? 967a.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()+")")):OA(this.container,!1)}; 968function dB(a){if(a.i.length){for(var b=a.player.Za(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=r(a.i),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=r(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 "+ 969100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function gB(a){dB(a);var b=a.player.Za();b=b.end-b.start;a.player.ha()&&5<b&&a.o.ua(1)}function fB(a){var b=a.player.Za();b=b.end-b.start;return a.player.ha()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function eB(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}E("shaka.ui.SeekBar",cB);function hB(){} 970hB.prototype.create=function(a,b){return new cB(a,b)};cB.Factory=hB;function I(a,b,c,d){xg.call(this);var e=this;this.bd=!0;this.m=d;this.l=new gr(c,a,this.m.castReceiverAppId,this.m.castAndroidReceiverCompatible);this.va=!0;this.i=this.l.Ub();this.j=c;this.Mb=this.l.Qc();this.X=a;this.h=b;this.vb=this.Mb.Ye();this.Ca=this.Fa=null;this.M=!1;this.o=[];this.Ab=[];this.eb=!1;this.Xc=new md(function(){e.h.style.cursor="none";e.eb=!1;
970iB(e)});this.S=new md(function(){e.$.removeAttribute("shown");e.B.Y(2)});this.B=new md(function(){for(var f=r(e.o),g=f.next();!g.done;g= 971f.next())OA(g.value,!1)});this.ba=new md(function(){e.lc()&&jB(e)});this.Vb=null;this.A=[];this.W=kB();this.g=new Qg;this.configure(this.m);lB(this);this.$d=new Set;mB(this);this.ba.ua(.125);this.g.s(this.W,"locale-changed",function(f){e.vb.setLocale(f.locales[0])})}ua(I,xg);n=I.prototype; 972n.destroy=function(){var a=this;return B(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.j){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.g&&(a.g.release(),a.g=null);a.Xc&&(a.Xc.stop(),a.Xc=null);a.S&&(a.S.stop(),a.S=null);a.B&&(a.B.stop(),a.B=null);a.ba&&(a.ba.stop(),a.ba=null);nB(a);a.$&&(a.h.removeChild(a.$),a.$=null);if(!a.l){b.D(4);break}return u(b,a.l.destroy(),5);case 5:a.l=null;case 4:if(!a.X){b.D(6);break}return u(b,a.X.destroy(),7);case 7:a.X= 973null;case 6:a.Mb=null,a.j=null,a.i=null,a.W=null,a.$d.clear(),xg.prototype.release.call(a),v(b)}})};function nB(a){for(var b=r(a.A),c=b.next();!c.done;c=b.next())c.value.release();a.A=[]}function oB(a,b){pB.set(a,b)}n.Ej=function(a){this.va=a;mB(this)};n.Tk=function(){iB(this)}; 974n.configure=function(a){this.m=a;this.l.Sh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.Ca&&(this.Ca=null);this.Oa&&(this.Oa=null);this.wb&&(this.wb=null);this.$?(Qm(this.$),nB(this)):(qB(this),rB(this));this.h.classList.add("zx-Bx-ye");this.j.classList.add("shaka-video");sB(this);this.m.addBigPlayButton&&tB(this);this.m.customContextMenu&&(this.wb=new XA(this.L,this),this.A.push(this.wb));this.cd||uB(this);this.Na=Om("div");this.Na.classList.add("zx-py-oy-cy-ye");this.$.appendChild(this.Na); 975vB(this);this.o=Array.from(this.h.getElementsByClassName("zx-hy-te"));this.o.push.apply(this.o,ma(Array.from(this.h.getElementsByClassName("zx-Kx-te"))));wB(this);this.Ab=Array.from(this.h.getElementsByClassName("shaka-show-controls-on-mouse-over"));iB(this);a=r(this.h.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.g.s(b,"click",c);this.g.s(b,"dblclick",c)}}; 976n.bh=function(a){(this.bd=a)?(this.h.setAttribute("shaka-controls","true"),this.j.tabIndex=-1,this.j.controls=!1):this.h.removeAttribute("shaka-controls");iB(this)};n.Ki=function(a){this.j.controls=a;this.j.tabIndex=a?0:-1;a&&this.bh(!1)};n.getAd=function(){return this.Fa};n.Zj=function(){return this.l};n.tk=function(){return this.W};n.Kk=function(){return this.h};n.Ub=function(){return this.i};n.rk=function(){return this.j};n.Qc=function(){return this.Mb};n.qk=function(){return this.X};n.ek=function(){return this.$}; 977n.Dk=function(){return this.Na};n.bk=function(){return this.K};n.ck=function(){return this.m};n.Sk=function(){return this.M};n.gh=function(a){this.M=a};n.Ok=function(){return this.va};n.ei=function(){return this.Ca?this.Ca.getValue():this.i.currentTime};n.Li=function(a){this.Vb=a};n.Ke=function(){return this.o.some(function(a){return!a.classList.contains("zx-Ax")})};n.Sc=function(){this.B.La()};n.hf=function(){return document.fullscreenEnabled||this.j.webkitSupportsFullscreen?!0:!1}; 978n.Uc=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.j;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}; 979function xB(a){var b,c;return B(function(d){switch(d.g){case 1:Ba(d,2);if(!document.fullscreenEnabled){b=a.j;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return u(d,document.exitPictureInPicture(),5);case 5:return u(d,a.h.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.m.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}Ba(d,9);return u(d,screen.orientation.lock("landscape"),11);case 11:Da(d,4,2);break;case 9:Ea(d, 9802);case 4:Da(d,0);break;case 2:c=Ea(d),a.dispatchEvent(new ug("error",(new Map).set("detail",c))),v(d)}})}function yB(a){var b;return B(function(c){if(!document.fullscreenEnabled)return b=a.j,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return u(c,document.exitFullscreen(),0)})}n.sh=function(){var a=this;return B(function(b){return a.Uc()?u(b,yB(a),0):u(b,xB(a),0)})}; 981n.Ri=function(){OA(this.C,!0);OA(this.K,!0);this.$.setAttribute("ad-active","true")};n.ki=function(){OA(this.C,!1);OA(this.K,!1);this.$.removeAttribute("ad-active")};function VA(a){a.bd&&a.i.duration&&(a.Mb.Ph(),a.i.paused&&!a.M?a.i.play():a.i.pause())}function UA(a){a.Fa&&a.Fa.isPaused()?a.Fa.play():a.Fa&&a.Fa.pause()} 982function qB(a){a.$=Om("div");a.$.classList.add("zx-Gx-ye");a.h.appendChild(a.$);a.h.setAttribute("shaka-controls","true");a.g.s(a.$,"touchstart",function(b){a.i.duration&&(a.lc()?a.Vb=Date.now():(zB(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.g.s(a.$,"click",function(){AB(a)});a.g.s(a.$,"dblclick",function(){a.m.doubleClickForFullscreen&&a.hf()&&a.sh()})}function tB(a){var b=Om("div");b.classList.add("zx-Mx-Fh-ye");a.$.appendChild(b);a.Oa=new WA(b,a);a.A.push(a.Oa)} 983function sB(a){var b=Om("div");b.classList.add("zx-Sx-ye");a.$.appendChild(b)}function BB(a){a.C=Om("div");a.C.classList.add("zx-cy-Gx");var b=null!=a.Fa&&a.Fa.isLinear();OA(a.C,b);a.I.appendChild(a.C);b=new RA(a.C,a);a.A.push(b);b=new QA(a.C,a);a.A.push(b)} 984function uB(a){a.cd=Om("div");a.cd.classList.add("zx-Ux-ye");a.h.appendChild(a.cd);var b=Om("div");b.classList.add("zx-Ux");a.cd.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("zx-Ux-ey");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("zx-Ux-fy");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill","none");b.setAttribute("stroke-width", 985"1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)} 986function vB(a){a.I=Om("div");a.I.classList.add("zx-Es-Gx");a.I.classList.add("shaka-no-propagation");a.$.appendChild(a.I);a.g.s(a.I,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Sc()});BB(a);a.L=Om("div");a.L.classList.add("zx-Gx-Fh-Jx");a.L.classList.add("shaka-show-controls-on-mouse-over");a.m.enableTooltips&&a.L.classList.add("zx-sy-ty");a.I.appendChild(a.L);for(var b=r(a.m.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,pB.get(c)?(c=pB.get(c).create(a.L,a),a.A.push(c)): 987ob("Unrecognized control panel element requested:",c)}function wB(a){if(a.m.addSeekBar)a.Ca=CB.create(a.I,a),a.A.push(a.Ca);else{a=r(a.o);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("zx-iy-jy")}}function rB(a){a.K=Om("div");a.K.classList.add("zx-ny-oy-cy-ye");OA(a.K,!1);a.g.s(a.K,"click",function(){AB(a)});a.h.appendChild(a.K)} 988function lB(a){a.g.s(a.Mb,"buffering",function(){a.bd&&OA(a.cd,a.Mb.Sd())});a.bd&&OA(a.cd,a.Mb.Sd());a.g.s(window,"keydown",function(b){DB(a,b)});a.g.s(window,"click",function(){return a.Sc()});a.g.s(a,"submenuopen",function(){a.Sc()});a.g.s(a.i,"play",function(){iB(a)});a.g.s(a.i,"pause",function(){iB(a)});a.g.s(a.h,"mousemove",function(b){zB(a,b)});a.g.s(a.h,"touchmove",function(b){zB(a,b)},{passive:!0});a.g.s(a.h,"touchend",function(b){zB(a,b)},{passive:!0});a.g.s(a.h,"mouseleave",function(){a.Vb|| 989a.Xc.La()});a.g.s(a.l,"caststatuschanged",function(){mB(a)});a.g.s(a.h,"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.$.contains(c)&&zB(a,b);if(a.m.enableKeyboardPlaybackControls)switch(c=a.m.keyboardSeekDistance,b.key){case "ArrowLeft":a.Ca&&!d&&0<c&&(b.preventDefault(),EB(a,a.Ca.getValue()-c));break;case "ArrowRight":a.Ca&&!d&&0<c&&(b.preventDefault(),EB(a,a.Ca.getValue()+ 990c));break;case "Home":a.Ca&&EB(a,a.Mb.Za().start);break;case "End":a.Ca&&EB(a,a.Mb.Za().end);break;case " ":e&&FB(a)}});a.g.s(a.h,"keyup",function(b){a.$d.delete(b.key)});a.g.s(a.vb,"ad-started",function(b){a.Fa=b.ad;a.Ri()});a.g.s(a.vb,"ad-stopped",function(){a.Fa=null;a.ki()});screen.orientation&&a.g.s(screen.orientation,"change",function(){return B(function(b){return u(b,GB(a),0)})})} 991function GB(a){return B(function(b){return a.i&&0!=a.i.readyState&&!a.l.Aa()&&a.m.enableFullscreenOnRotation&&a.hf()?screen.orientation.type.includes("landscape")&&!a.Uc()?u(b,xB(a),0):screen.orientation.type.includes("portrait")&&a.Uc()?u(b,yB(a),0):b.D(0):b.return()})} 992function zB(a,b){"mousemove"==b.type&&(a.$.classList.remove("zx-Wx-Xx"),iB(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"ke
992yup"==b.type?a.Vb=Date.now():a.Vb+1E3<Date.now()&&(a.Vb=null);a.Vb&&"mousemove"==b.type||(a.h.style.cursor="",a.eb=!0,a.B.stop(),a.lc()||(jB(a),iB(a)),a.Xc.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.Vb||a.Xc.Y(3))}function HB(a){return window.matchMedia("hover: hover").matches?a.Ab.some(function(b){return b.matches(":hover")}):!1} 993function iB(a){var b=a.Fa?a.Fa.isPaused():!1,c=a.i.paused&&!a.M,d=a.$.classList.contains("zx-Wx-Xx");b||(!a.Fa||!a.Fa.isLinear())&&c||a.eb||d||HB(a)?(jB(a),a.$.setAttribute("shown","true"),a.S.stop()):a.S.Y(a.m.fadeDelay)}function AB(a){a.bd&&(a.Ke()?a.B.La():a.m.singleClickForPlayAndPause&&FB(a))}function FB(a){a.Fa&&a.Fa.isLinear()?UA(a):VA(a)} 994function mB(a){var b=a.l.Aa();a.dispatchEvent(new ug("caststatuschanged",(new Map).set("newStatus",b)));b?a.$.setAttribute("casting","true"):a.$.removeAttribute("casting")}n.lc=function(){return this.bd?null!=this.$.getAttribute("shown")||null!=this.$.getAttribute("casting"):!1};function EB(a,b){a.Ca.changeTo(b);a.lc()&&jB(a)} 995function jB(a){if(a.Ca)if(a.Ca.setValue(a.i.currentTime),a.Ca.update(),a.Ca.isShowing())for(var b=r(a.o),c=b.next();!c.done;c=b.next())c.value.classList.remove("zx-iy-jy");else for(b=r(a.o),c=b.next();!c.done;c=b.next())c.value.classList.add("zx-iy-jy");a.dispatchEvent(new ug("timeandseekrangeupdated"))} 996function DB(a,b){a.$d.add(b.key);var c=a.Ke();"Tab"==b.key&&(a.$.classList.add("zx-Wx-Xx"),iB(a),a.g.s(window,"mousedown",function(){a.g.Zb(window,"mousedown")}));"Escape"==b.key&&a.B.La();c&&a.$d.has("Tab")&&IB(a,b)} 997function IB(a,b){var c=a.o.filter(function(f){return!f.classList.contains("zx-Ax")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("zx-Ax");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("zx-Ax");)d=d.previousElementSibling;var e=document.activeElement;a.$d.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}} 998function kB(){var a=new GA("en");a.sa("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..."], 999["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"], 1000["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"], 1001["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"], 1002["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"], 1003["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.sa("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"], 1004["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","Sc
1004hleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"], 1005["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"]])); 1006a.sa("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"], 1007["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"], 1008["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.sa("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"],["EXIT_FULL_SCREEN", 1009"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","Playback speed"], 1010["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.sa("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","Enviar..."], 1011["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","M\u00e1s ajustes"], 1012["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"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE", 1013"Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.sa("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"],["EXIT_FULL_SCREEN","Salir de pantalla completa"], 1014["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"],["ON","Activado"],["PAUSE","Detener"], 1015["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"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.sa("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"], 1016["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"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode\u00a0PIP (Picture-in-picture)"], 1017["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","Vitesse de lecture"],["RESOLUTION","R\u00e9solution"],["REWIND", 1018"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.sa("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS", 1019"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","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"], 1020["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","Indeterminata"],["UNMUTE","Riattiva audio"], 1021["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.sa("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"],["ENTER_PICTURE_IN_PICTURE", 1022"\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"],["LANGUAGE","\u8a00\u8a9e"], 1023["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"],["RESOLUTION","\u89e3\u50cf\u5ea6"], 1024["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.sa("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"], 1025["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","PIP \ubaa8\ub4dc \uc885\ub8cc"], 1026["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"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"], 1027["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","\ubcfc\ub968"]]));a.sa("nl",new Map([["AD_DURATION", 1028"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"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN", 1029"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"],["SKIP_TO_LIVE","Doorgaan naar live"], 1030["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.sa("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","W\u0142\u0105cz tr
1030yb obrazu w\u00a0obrazie"], 1031["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"],["MUTE","Wycisz"],["NOT_APPLICABLE", 1032"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","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE", 1033"Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.sa("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","Sair do modo tela cheia"],["EXIT_LOOP_MODE", 1034"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","Picture-in-picture"],["PLAY","Reproduzir"], 1035["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.sa("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"], 1036["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"], 1037["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"], 1038["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", 1039"\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", 1040"\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"], 1041["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"], 1042["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.sa("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"], 1043["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"], 1044["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"], 1045["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"], 1046["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"], 1047["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"], 1048["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.sa("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"], 1049["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"],["OF
1049F","Kapal\u0131"], 1050["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.sa("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"], 1051["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"], 1052["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"], 1053["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.sa("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"], 1054["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"], 1055["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"], 1056["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.Rh(navigator.languages||[]);return a}E("shaka.ui.Controls",I);I.prototype.isOpaque=I.prototype.lc;I.prototype.hideAdUI=I.prototype.ki;I.prototype.showAdUI=I.prototype.Ri; 1057I.prototype.toggleFullScreen=I.prototype.sh;I.prototype.isFullScreenEnabled=I.prototype.Uc;I.prototype.isFullScreenSupported=I.prototype.hf;I.prototype.hideSettingsMenus=I.prototype.Sc;I.prototype.anySettingsMenusAreOpen=I.prototype.Ke;I.prototype.setLastTouchEventTime=I.prototype.Li;I.prototype.getDisplayTime=I.prototype.ei;I.prototype.isCastAllowed=I.prototype.Ok;I.prototype.setSeeking=I.prototype.gh;I.prototype.isSeeking=I.prototype.Sk;I.prototype.getConfig=I.prototype.ck; 1058I.prototype.getClientSideAdContainer=I.prototype.bk;I.prototype.getServerSideAdContainer=I.prototype.Dk;I.prototype.getControlsContainer=I.prototype.ek;I.prototype.getLocalPlayer=I.prototype.qk;I.prototype.getPlayer=I.prototype.Qc;I.prototype.getLocalVideo=I.prototype.rk;I.prototype.getVideo=I.prototype.Ub;I.prototype.getVideoContainer=I.prototype.Kk;I.prototype.getLocalization=I.prototype.tk;I.prototype.getCastProxy=I.prototype.Zj;I.prototype.getAd=I.prototype.getAd; 1059I.prototype.setEnabledNativeControls=I.prototype.Ki;
1059I.prototype.setEnabledShakaControls=I.prototype.bh;I.prototype.configure=I.prototype.configure;I.prototype.loadComplete=I.prototype.Tk;I.prototype.allowCast=I.prototype.Ej;I.registerSeekBar=function(a){CB=a};I.registerElement=oB;I.prototype.destroy=I.prototype.destroy;var pB=new Map,CB=new hB;function JB(a,b,c){FA.call(this,a,b);var d=this;KB(this,c);LB(this);MB(this);this.eventManager.s(this.button,"click",function(){d.menu.classList.contains("zx-Ax")?(d.controls.dispatchEvent(new ug("submenuopen")),OA(d.menu,!0),MA(d.menu)):OA(d.menu,!1)})}ua(JB,FA); 1060function KB(a,b){a.button=Pm();a.button.classList.add("shaka-overflow-button");a.icon=Om("i");a.icon.classList.add("Cx-Dx-Ex");a.icon.textContent=b;a.button.appendChild(a.icon);b=Om("label");b.classList.add("zx-Kx-Fh-Mh");b.classList.add("zx-Kx-te-Lx");a.nameSpan=Om("span");b.appendChild(a.nameSpan);a.currentSelection=Om("span");a.currentSelection.classList.add("zx-Px-Qx-Rx");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)} 1061function LB(a){a.menu=Om("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("zx-hy-te");a.menu.classList.add("zx-Ax");a.backButton=Pm();a.backButton.classList.add("zx-ky-ly-Kx-Fh");a.menu.appendChild(a.backButton);a.eventManager.s(a.backButton,"click",function(){a.controls.Sc()});var b=Om("i");b.classList.add("Cx-Dx-Ex");b.textContent="close";a.backButton.appendChild(b);a.backSpan=Om("span");a.backButton.appendChild(a.backSpan); 1062a.controls.$.appendChild(a.menu)}function MB(a){a.parent.classList.contains("zx-Kx-te")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.s(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("zx-Ax")}OA(a.parent,!0);Xg(a.parent.childNodes,b)&&Yg(a.parent.childNodes,b)[0].focus();iB(a.controls)}))}E("shaka.ui.SettingsMenu",JB);function NB(a,b){FA.call(this,a,b);var c=this;this.m=this.controls.m;this.j=this.controls.$;this.i=[];this.g=Pm();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("Cx-Dx-Ex");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=Om("div");this.h.classList.add("zx-Kx-te");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");this.h.classList.add("zx-Ax"); 1063this.j.appendChild(this.h);OB(this);this.eventManager.s(this.localization,"locale-updated",function(){PB(c)});this.eventManager.s(this.localization,"locale-changed",function(){PB(c)});this.eventManager.s(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&OA(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){OA(c.g,!0)});this.eventManager.s(this.controls,"submenuopen",function(){OA(c.h,!1)});this.eventManager.s(this.h,"touchstart",function(d){c.controls.Li(Date.now()); 1064d.stopPropagation()});this.eventManager.s(this.g,"click",function(){QB(c)});PB(this);this.ad&&this.ad.isLinear()&&OA(this.g,!1)}ua(NB,FA);NB.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];FA.prototype.release.call(this)};function RB(a,b){SB.set(a,b)} 1065function OB(a){for(var b=r(a.m.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,SB.get(c)?(c=SB.get(c),a.i.push(c.create(a.h,a.controls))):ob("Unrecognized overflow menu element requested:",c)}function QB(a){if(a.controls.Ke())a.controls.Sc();else{OA(a.h,!0);iB(a.controls);var b=function(c){return 0==c.classList.contains("zx-Ax")};Xg(a.h.childNodes,b)&&Yg(a.h.childNodes,b)[0].focus()}}function PB(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}E("shaka.ui.OverflowMenu",NB); 1066NB.registerElement=RB;function TB(){}TB.prototype.create=function(a,b){return new NB(a,b)};oB("overflow_menu",new TB);var SB=new Map;/* 1067 @license 1068 Copyright 2013 Ali Al Dallal 1069 1070 Licensed under the MIT license. 1071 1072 Permission is hereby granted, free of charge, to any person obtaining a copy 1073 of this software and associated documentation files (the "Software"), to deal 1074 in the Software without restriction, including without limitation the rights 1075 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1076 copies of the Software, and to permit persons to whom the Software is 1077 furnished to do so, subject to the following conditions: 1078 1079 The above copyright notice and this permission notice shall be included in 1080 all copies or substantial portions of the Software. 1081 1082 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1083 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1084 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1085 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1086 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1087 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1088 SOFTWARE. 1089*/ 1090for(var UB={ach:{u:"Lwo",w:"Acholi"},ady:{u:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",w:"Adyghe"},af:{u:"Afrikaans",w:"Afrikaans"},"af-NA":{u:"Afrikaans (Namibia)",w:"Afrikaans (Namibia)"},"af-ZA":{u:"Afrikaans (South Africa)",w:"Afrikaans (South Africa)"},ak:{u:"T\u0255\u0265i",w:"Akan"},ar:{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",w:"Arabic"},"ar-AR":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",w:"Arabic"},"ar-MA":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",w:"Arabic (Morocco)"}, 1091"ar-SA":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",w:"Arabic (Saudi Arabia)"},"ay-BO":{u:"Aymar aru",w:"Aymara"},az:{u:"Az\u0259rbaycan dili",w:"Azerbaijani"},"az-AZ":{u:"Az\u0259rbaycan dili",w:"Azerbaijani"},"be-BY":{u:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",w:"Belarusian"},bg:{u:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",w:"Bulgarian"},"bg-BG":{u:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438", 1092w:"Bulgarian"},bn:{u:"\u09ac\u09be\u0982\u09b2\u09be",w:"Bengali"},"bn-IN":{u:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",w:"Bengali (India)"},"bn-BD":{u:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",
1092w:"Bengali (Bangladesh)"},"bs-BA":{u:"Bosanski",w:"Bosnian"},ca:{u:"Catal\u00e0",w:"Catalan"},"ca-ES":{u:"Catal\u00e0",w:"Catalan"},cak:{u:"Maya Kaqchikel",w:"Kaqchikel"},"ck-US":{u:"\u13e3\u13b3\u13a9 (tsalagi)",w:"Cherokee"},cs:{u:"\u010ce\u0161tina", 1093w:"Czech"},"cs-CZ":{u:"\u010ce\u0161tina",w:"Czech"},cy:{u:"Cymraeg",w:"Welsh"},"cy-GB":{u:"Cymraeg",w:"Welsh"},da:{u:"Dansk",w:"Danish"},"da-DK":{u:"Dansk",w:"Danish"},de:{u:"Deutsch",w:"German"},"de-AT":{u:"Deutsch (\u00d6sterreich)",w:"German (Austria)"},"de-DE":{u:"Deutsch (Deutschland)",w:"German (Germany)"},"de-CH":{u:"Deutsch (Schweiz)",w:"German (Switzerland)"},dsb:{u:"Dolnoserb\u0161\u0107ina",w:"Lower Sorbian"},el:{u:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",w:"Greek"},"el-GR":{u:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac", 1094w:"Greek (Greece)"},en:{u:"English",w:"English"},"en-GB":{u:"English (UK)",w:"English (UK)"},"en-AU":{u:"English (Australia)",w:"English (Australia)"},"en-CA":{u:"English (Canada)",w:"English (Canada)"},"en-IE":{u:"English (Ireland)",w:"English (Ireland)"},"en-IN":{u:"English (India)",w:"English (India)"},"en-PI":{u:"English (Pirate)",w:"English (Pirate)"},"en-UD":{u:"English (Upside Down)",w:"English (Upside Down)"},"en-US":{u:"English (US)",w:"English (US)"},"en-ZA":{u:"English (South Africa)", 1095w:"English (South Africa)"},"en@pirate":{u:"English (Pirate)",w:"English (Pirate)"},eo:{u:"Esperanto",w:"Esperanto"},"eo-EO":{u:"Esperanto",w:"Esperanto"},es:{u:"Espa\u00f1ol",w:"Spanish"},"es-AR":{u:"Espa\u00f1ol (Argentine)",w:"Spanish (Argentina)"},"es-419":{u:"Espa\u00f1ol (Latinoam\u00e9rica)",w:"Spanish (Latin America)"},"es-CL":{u:"Espa\u00f1ol (Chile)",w:"Spanish (Chile)"},"es-CO":{u:"Espa\u00f1ol (Colombia)",w:"Spanish (Colombia)"},"es-EC":{u:"Espa\u00f1ol (Ecuador)",w:"Spanish (Ecuador)"}, 1096"es-ES":{u:"Espa\u00f1ol (Espa\u00f1a)",w:"Spanish (Spain)"},"es-LA":{u:"Espa\u00f1ol (Latinoam\u00e9rica)",w:"Spanish (Latin America)"},"es-NI":{u:"Espa\u00f1ol (Nicaragua)",w:"Spanish (Nicaragua)"},"es-MX":{u:"Espa\u00f1ol (M\u00e9xico)",w:"Spanish (Mexico)"},"es-US":{u:"Espa\u00f1ol (Estados Unidos)",w:"Spanish (United States)"},"es-VE":{u:"Espa\u00f1ol (Venezuela)",w:"Spanish (Venezuela)"},et:{u:"eesti keel",w:"Estonian"},"et-EE":{u:"Eesti (Estonia)",w:"Estonian (Estonia)"},eu:{u:"Euskara",w:"Basque"}, 1097"eu-ES":{u:"Euskara",w:"Basque"},fa:{u:"\u0641\u0627\u0631\u0633\u06cc",w:"Persian"},"fa-IR":{u:"\u0641\u0627\u0631\u0633\u06cc",w:"Persian"},"fb-LT":{u:"Leet Speak",w:"Leet"},ff:{u:"Fulah",w:"Fulah"},fi:{u:"Suomi",w:"Finnish"},"fi-FI":{u:"Suomi",w:"Finnish"},"fo-FO":{u:"F\u00f8royskt",w:"Faroese"},fr:{u:"Fran\u00e7ais",w:"French"},"fr-CA":{u:"Fran\u00e7ais (Canada)",w:"French (Canada)"},"fr-FR":{u:"Fran\u00e7ais (France)",w:"French (France)"},"fr-BE":{u:"Fran\u00e7ais (Belgique)",w:"French (Belgium)"}, 1098"fr-CH":{u:"Fran\u00e7ais (Suisse)",w:"French (Switzerland)"},"fy-NL":{u:"Frysk",w:"Frisian (West)"},ga:{u:"Gaeilge",w:"Irish"},"ga-IE":{u:"Gaeilge (Gaelic)",w:"Irish (Gaelic)"},gl:{u:"Galego",w:"Galician"},"gl-ES":{u:"Galego",w:"Galician"},"gn-PY":{u:"Ava\u00f1e'\u1ebd",w:"Guarani"},"gu-IN":{u:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",w:"Gujarati"},"gx-GR":{u:"\u1f19\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae \u1f00\u03c1\u03c7\u03b1\u03af\u03b1",w:"Classical Greek"},he:{u:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f", 1099w:"Hebrew"},"he-IL":{u:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",w:"Hebrew"},hi:{u:"\u0939\u093f\u0928\u094d\u0926\u0940",w:"Hindi"},"hi-IN":{u:"\u0939\u093f\u0928\u094d\u0926\u0940",w:"Hindi"},hr:{u:"Hrvatski",w:"Croatian"},"hr-HR":{u:"Hrvatski",w:"Croatian"},hsb:{u:"Hornjoserb\u0161\u0107ina",w:"Upper Sorbian"},ht:{u:"Krey\u00f2l",w:"Haitian Creole"},hu:{u:"Magyar",w:"Hungarian"},"hu-HU":{u:"Magyar",w:"Hungarian"},"hy-AM":{u:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",w:"Armenian"},id:{u:"Bahasa Indonesia", 1100w:"Indonesian"},"id-ID":{u:"Bahasa Indonesia",w:"Indonesian"},is:{u:"\u00cdslenska",w:"Icelandic"},"is-IS":{u:"\u00cdslenska (Iceland)",w:"Icelandic (Iceland)"},it:{u:"Italiano",w:"Italian"},"it-IT":{u:"Italiano",w:"Italian"},ja:{u:"\u65e5\u672c\u8a9e",w:"Japanese"},"ja-JP":{u:"\u65e5\u672c\u8a9e",w:"Japanese"}
1100,"jv-ID":{u:"Basa Jawa",w:"Javanese"},"ka-GE":{u:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",w:"Georgian"},"kk-KZ":{u:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430",w:"Kazakh"},km:{u:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a", 1101w:"Khmer"},"km-KH":{u:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",w:"Khmer"},kab:{u:"Taqbaylit",w:"Kabyle"},kn:{u:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",w:"Kannada"},"kn-IN":{u:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1 (India)",w:"Kannada (India)"},ko:{u:"\ud55c\uad6d\uc5b4",w:"Korean"},"ko-KR":{u:"\ud55c\uad6d\uc5b4 (\u97e9\u56fd)",w:"Korean (Korea)"},ku:{u:"Kurd\u00ee",w:"Kurdish"},"ku-TR":{u:"Kurd\u00ee",w:"Kurdish"},la:{u:"Latin",w:"Latin"},"la-VA":{u:"Latin",w:"Latin"},lb:{u:"L\u00ebtzebuergesch", 1102w:"Luxembourgish"},"li-NL":{u:"L\u00e8mb\u00f6rgs",w:"Limburgish"},lt:{u:"Lietuvi\u0173",w:"Lithuanian"},"lt-LT":{u:"Lietuvi\u0173",w:"Lithuanian"},lv:{u:"Latvie\u0161u",w:"Latvian"},"lv-LV":{u:"Latvie\u0161u",w:"Latvian"},mai:{u:"\u092e\u0948\u0925\u093f\u0932\u0940, \u09ae\u09c8\u09a5\u09bf\u09b2\u09c0",w:"Maithili"},"mg-MG":{u:"Malagasy",w:"Malagasy"},mk:{u:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438",w:"Macedonian"},"mk-MK":{u:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438)", 1103w:"Macedonian (Macedonian)"},ml:{u:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",w:"Malayalam"},"ml-IN":{u:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",w:"Malayalam"},"mn-MN":{u:"\u041c\u043e\u043d\u0433\u043e\u043b",w:"Mongolian"},mr:{u:"\u092e\u0930\u093e\u0920\u0940",w:"Marathi"},"mr-IN":{u:"\u092e\u0930\u093e\u0920\u0940",w:"Marathi"},ms:{u:"Bahasa Melayu",w:"Malay"},"ms-MY":{u:"Bahasa Melayu",w:"Malay"},mt:{u:"Malti",w:"Maltese"},"mt-MT":{u:"Malti",w:"Maltese"},my:{u:"\u1017\u1019\u102c\u1005\u1000\u102c", 1104w:"Burmese"},nb:{u:"Norsk (bokm\u00e5l)",w:"Norwegian (bokmal)"},"nb-NO":{u:"Norsk (bokm\u00e5l)",w:"Norwegian (bokmal)"},ne:{u:"\u0928\u0947\u092a\u093e\u0932\u0940",w:"Nepali"},"ne-NP":{u:"\u0928\u0947\u092a\u093e\u0932\u0940",w:"Nepali"},nl:{u:"Nederlands",w:"Dutch"},"nl-BE":{u:"Nederlands (Belgi\u00eb)",w:"Dutch (Belgium)"},"nl-NL":{u:"Nederlands (Nederland)",w:"Dutch (Netherlands)"},"nn-NO":{u:"Norsk (nynorsk)",w:"Norwegian (nynorsk)"},no:{u:"Norsk",w:"Norwegian"},oc:{u:"Occitan",w:"Occitan"}, 1105"or-IN":{u:"\u0b13\u0b21\u0b3c\u0b3f\u0b06",w:"Oriya"},pa:{u:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",w:"Punjabi"},"pa-IN":{u:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40 (\u0a2d\u0a3e\u0a30\u0a24 \u0a28\u0a42\u0a70)",w:"Punjabi (India)"},pl:{u:"Polski",w:"Polish"},"pl-PL":{u:"Polski",w:"Polish"},"ps-AF":{u:"\u067e\u069a\u062a\u0648",w:"Pashto"},pt:{u:"Portugu\u00eas",w:"Portuguese"},"pt-BR":{u:"Portugu\u00eas (Brasil)",w:"Portuguese (Brazil)"},"pt-PT":{u:"Portugu\u00eas (Portugal)",w:"Portuguese (Portugal)"}, 1106"qu-PE":{u:"Qhichwa",w:"Quechua"},"rm-CH":{u:"Rumantsch",w:"Romansh"},ro:{u:"Rom\u00e2n\u0103",w:"Romanian"},"ro-RO":{u:"Rom\u00e2n\u0103",w:"Romanian"},ru:{u:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",w:"Russian"},"ru-RU":{u:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",w:"Russian"},"sa-IN":{u:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d",w:"Sanskrit"},"se-NO":{u:"Davvis\u00e1megiella",w:"Northern S\u00e1mi"},"si-LK":{u:"\u0db4\u0dc5\u0dcf\u0dad",w:"Sinhala (Sri Lanka)"},sk:{u:"Sloven\u010dina", 1107w:"Slovak"},"sk-SK":{u:"Sloven\u010dina (Slovakia)",w:"Slovak (Slovakia)"},sl:{u:"Sloven\u0161\u010dina",w:"Slovenian"},"sl-SI":{u:"Sloven\u0161\u010dina",w:"Slovenian"},"so-SO":{u:"Soomaaliga",w:"Somali"},sq:{u:"Shqip",w:"Albanian"},"sq-AL":{u:"Shqip",w:"Albanian"},sr:{u:"\u0421\u0440\u043f\u0441\u043a\u0438",w:"Serbian"},"sr-RS":{u:"\u0421\u0440\u043f\u0441\u043a\u0438 (Serbia)",w:"Serbian (Serbia)"},su:{u:"Basa Sunda",w:"Sundanese"},sv:{u:"Svenska",w:"Swedish"},"sv-SE":{u:"Svenska",w:"Swedish"}, 1108sw:{u:"Kiswahili",w:"Swahili"},"sw-KE":{u:"Kiswahili",w:"Swahili (Kenya)"},ta:{u:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",w:"Tamil"},"ta-IN":{u:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",w:"Tamil"},te:{u:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",w:"Telugu"},"te-IN":{u:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",w:"Telugu"},tg:{u:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",w:"Tajik"},"tg-TJ":{u:"\u0442\u043e\u04b7\u0438\u043a\u04e3",w:"Tajik"},th:{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22", 1109w:"Thai"},"th-TH":{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",w:"Thai (Thailand)"},tl:{u:"Filipino",w:"Filipino"},"tl-PH":{u:"Filipino",w:"Filipino"},tlh:{u:"tlhIngan-Hol",w:"Klingon"},tr:{u:"T\u00fcrk\u00e7e",w:"Turkish"},"tr-TR":{u:"T\u00fcrk\u00e7e",w:"Turkish"},"tt-RU":{u:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",w:"Tatar"},uk:{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",w:"Ukrainian"},"uk-UA":{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430", 1110w:"Ukrainian"},ur:{u:"\u0627\u0631\u062f\u0648",w:"Urdu"},"ur-PK":{u:"\u0627\u0631\u062f\u0648",w:"Urdu"},uz:{u:"O'zbek",w:"Uzbek"},"uz-UZ":{u:"O'zbek",w:"Uzbek"},vi:{u:"Ti\u1ebfng Vi\u1ec7t",w:"Vietnamese"},"vi-VN":{u:"Ti\u1ebfng Vi\u1ec7t",w:"Vietnamese"},"xh-ZA":{u:"isiXhosa",w:"Xhosa"},yi:{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",w:"Yiddish"},"yi-DE":{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",w:"Yiddish (German)"},zh:{u:"\u4e2d\u6587",w:"Chinese"},"zh-HANS":{u:"\u4e2d\u6587\u7b80\u4f53", 1111w:"Chinese Simplified"},"zh-HANT":{u:"\u4e2d\u6587\u7e41\u9ad4",w:"Chinese Traditional"},"zh-CN":{u:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",w:"Chinese Simplified (China)"},"zh-HK":{u:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",w:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",w:"Chinese Simplified (Singapore)"},"zh-TW":{u:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",w:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",w:"Zulu"}},VB=r(Object.keys(UB)),WB=VB.next();!WB.done;WB= 1112VB.next()){var XB=WB.value;UB[XB.toLowerCase()]=UB[XB]};function YB(a,b,c){this.h=a;this.m=ZB(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.mg()&&b.classList.add("shaka-mobile");this.g=new I(a,b,c,this.m);this.configure({});c.controls||a.jh(b);b.ui=this;c.ui=this}n=YB.prototype;n.destroy=function(){var a=this;return B(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.h?u(b,a.h.destroy(),4):b.D(4);a.h=null;v(b)})};n.mg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:wd()&&1<navigator.maxTouchPoints}; 1113n.getConfiguration=function(){var a=ZB(this);vn(a,this.m,ZB(this),{},"");return a};n.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=wn(a,b));vn(this.m,a,ZB(this),{},"");this.m.castReceiverAppId&&!this.m.overflowMenuButtons.includes("cast")&&this.m.overflowMenuButtons.push("cast");this.g.configure(this.m);
1113this.g.dispatchEvent(new ug("uiupdated"))};n.dk=function(){return this.g};n.Am=function(a){this.g.bh(a)}; 1114function ZB(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", 1115"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)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"}, 1116trackLabelFormat:$B,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.mg()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b} 1117function aC(){var a,b,c,d,e,f,g,h,k,l,m,q,p,t,w,z,x,y,D,A,C;return B(function(G){switch(G.g){case 1:Xw();if(!oo())return bC("shaka-ui-load-failed",cC),G.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){G.D(2);break}if(b.length&&!a.length){d=r(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement; 1118h.replaceChild(g,f);g.appendChild(f);k=null;l=r(c);for(m=l.next();!m.done;m=l.next())if(q=m.value,q.parentElement==g){k=q;break}k||(k=document.createElement("canvas"),k.classList.add("zx-Ix-ye"),g.appendChild(k));dC(g,f,k)}G.D(2);break}p=r(a);t=p.next();case 4:if(t.done){G.D(2);break}w=t.value;if(w.ui){G.D(5);break}z=null;x=r(b);for(e=x.next();!e.done;e=x.next())if(y=e.value,y.parentElement==w){z=y;break}z||(z=document.createElement("video"),z.setAttribute("playsinline",""),w.appendChild(z));D=null; 1119A=r(c);for(m=A.next();!m.done;m=A.next())if(C=m.value,C.parentElement==w){D=C;break}D||(D=document.createElement("canvas"),D.classList.add("zx-Ix-ye"),w.appendChild(D));Ba(G,7);return u(G,dC(w,z,D),9);case 9:Da(G,5);break;case 7:return Ea(G),bC("shaka-ui-load-failed",eC),G.return();case 5:t=p.next();G.D(4);break;case 2:bC("shaka-ui-loaded"),v(G)}})}function bC(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)} 1120function dC(a,b,c){var d,e,f,g,h,k,l,m,q;return B(function(p){switch(p.g){case 1:d=new H(b);e=new YB(d,a,b);d.Jh(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}); 1121b.controls&&e.g.Ki(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=r(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){p.D(0);break}q=m.value;Ba(p,5);return u(p,e.g.Qc().load(q.getAttribute("src")),7);case 7:p.D(0);break;case 5:Ea(p);case 3:m=l.next(),p.D(2)}})}E("shaka.ui.Overlay",YB);YB.prototype.setEnabled=YB.prototype.Am;YB.prototype.getControls=YB.prototype.dk;YB.prototype.configure=YB.prototype.configure; 1122YB.prototype.getConfiguration=YB.prototype.getConfiguration;YB.prototype.isMobile=YB.prototype.mg;YB.prototype.destroy=YB.prototype.destroy;var $B=0;YB.TrackLabelFormat={LANGUAGE:$B,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var cC=0,eC=1;YB.FailReasonCode={NO_BROWSER_SUPPORT:cC,PLAYER_FAILED_TO_LOAD:eC};
1122"complete"==document.readyState?B(function(a){if(1==a.g)return u(a,Promise.resolve(),2);aC();v(a)}):window.addEventListener("load",aC);function fC(a,b,c,d,e,f,g){function h(A,C){return A+": "+C}function k(A){return"variant"==A.type?A.audioRoles?A.audioRoles.join(", "):void 0:A.roles.join(", ")}var l=a.find(function(A){return 1==A.active}),m=LA(b,"zx-ky-ly-Kx-Fh");Qm(b);b.appendChild(m);m=new Map;for(var q=r(a),p=q.next();!p.done;p=q.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l)):"";q={};a=r(a);for(p=a.next();!p.done;q={ub:q.ub},p=a.next()){q.ub=p.value;p= 1123q.ub.language;var t=q.ub.forced,w=f.resolve(KA.wj),z=k(q.ub),x=h(p,z);if(!m.has(x)){m.add(x);var y=Pm();y.addEventListener("click",function(A){return function(){c(A.ub)}}(q));var D=Om("span");y.appendChild(D);D.textContent=gC(p,f);switch(g){case $B:t&&(D.textContent+=" ("+w+")");break;case 1:z?D.textContent=z:(ob("Track #"+q.ub.id+" does not have a role, but the UI is configured to only show role."),D.textContent="?");t&&(D.textContent+=" ("+w+")");break;case 2:z&&(D.textContent+=": "+z);t&&(D.textContent+= 1124" ("+w+")");break;case 3:q.ub.label?D.textContent=q.ub.label:(ob("Track #"+q.ub.id+" does not have a label, but the UI is configured to only show labels."),D.textContent="?")}d&&x==l&&(y.appendChild(NA()),D.classList.add("zx-chosen-item"),y.ariaSelected="true",e.textContent=D.textContent);b.appendChild(y)}}} 1125function gC(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=re(a);return a in UB?UB[a].u:c in UB?UB[c].u+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function hC(a,b){JB.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("zx-uy-Zi");this.menu.classList.add("shaka-audio-languages");this.eventManager.s(this.localization,"locale-updated",function(){iC(c)});this.eventManager.s(this.localization,"locale-changed",function(){iC(c)});this.eventManager.s(this.player,"trackschanged",function(){var d=0<c.player.jb().length;OA(c.button,d);jC(c)});this.eventManager.s(this.player,"variantchanged", 1126function(){jC(c)});iC(this);jC(this)}ua(hC,JB);function jC(a){var b=a.player.jb();fC(b,a.menu,function(c){a.player.Bf(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.m.trackLabelFormat);MA(a.menu);a.controls.dispatchEvent(new ug("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)} 1127function iC(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")}E("shaka.ui.AudioLanguageSelection",hC);function kC(){}kC.prototype.create=function(a,b){return new hC(a,b)};RB("language",new kC);oB("language",new kC);function lC(a,b){FA.call(this,a,b);var c=this;this.g=Pm();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=Om("i");this.h.classList.add("Cx-Dx-Ex");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("zx-Ax");a=Om("label");a.classList.add("zx-Kx-Fh-Mh");a.classList.add("zx-Kx-te-Lx");this.j=Om("span");a.appendChild(this.j);this.i=Om("span");this.i.classList.add("zx-Px-Qx-Rx"); 1128a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);mC(this);nC(this);this.eventManager.s(this.localization,"locale-updated",function(){mC(c)});this.eventManager.s(this.localization,"locale-changed",function(){mC(c)});this.eventManager.s(this.g,"click",function(){c.controls.Ub().webkitShowPlaybackTargetPicker()});a=this.controls.Ub();this.eventManager.s(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=c.player.gi()==Zo;OA(c.g,"available"==d.availability&&e)}); 1129this.eventManager.s(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){nC(c)})}ua(lC,FA);function nC(a){var b=a.controls.Ub();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function mC(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}E("shaka.ui.AirPlayButton",lC);function oC(){}oC.prototype.create=function(a,b){return new lC(a,b)};RB("airplay",new oC);oB("airplay",new oC);function pC(a,b){FA.call(this,a,b);var c=this;this.h=this.controls.l;this.g=Pm();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=Om("i");this.i.classList.add("Cx-Dx-Ex");this.i.textContent="cast";this.g.appendChild(this.i);a=Om("label");a.classList.add("zx-Kx-Fh-Mh");a.classList.add("zx-Kx-te-Lx");this.l=Om("span");a.appendChild(this.l);this.j=Om("span");this.j.classList.add("zx-Px-Qx-Rx");a.appendChild(this.j);this.g.appendChild(a); 1130this.parent.appendChild(this.g);qC(this);rC(this);this.eventManager.s(this.localization,"locale-updated",function(){qC(c)});this.eventManager.s(this.localization,"locale-changed",function(){qC(c)});this.eventManager.s(this.g,"click",function(){sC(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){rC(c)})}ua(pC,FA); 1131function sC(a){var b;B(function(c){if(1==c.g){if(a.h.Aa())return a.h.$i(),c.D(0);Ba(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,Da(c,0);b=Ea(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new ug("error",(new Map).set("detail",b)));v(c)})}function rC(a){var b=a.h.Oh()&&a.controls.va,c=a.h.Aa();OA(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");tC(a)} 1132function tC(a){a.j.textContent=a.h.Aa()?a.h.zf():a.localization.resolve("OFF")}function qC(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");tC(a)}E("shaka.ui.CastButton",pC);function uC(){}uC.prototype.create=function(a,b){return new pC(a,b)};RB("cast",new uC);oB("cast",new uC);function vC(a,b){FA.call(this,a,b);var c=this;this.g=Pm();this.g.classList.add("Cx-Dx-Ex");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("zx-uy-Zi");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);wC(this);this.h=this.controls.m.fastForwardRates;this.eventManager.s(this.localization,"locale-updated",function(){wC(c)});this.eventManager.s(this.localization,"locale-changed",function(){wC(c)});this.eventManager.s(this.g, 1133"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Sb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.wh(d);c.g.setAttribute("shaka-status",d+"x")}})}ua(vC,FA);function wC(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}E("shaka.ui.FastForwardButton",vC);function xC(){}xC.prototype.create=function(a,b){return new vC(a,b)};oB("fast_forward",new xC);function yC(a,b){FA.call(this,a,b);var c=this;this.h=this.controls.j;this.g=Pm();this.g.classList.add("zx-Hx-Fh");this.g.classList.add("Cx-Dx-Ex");this.g.classList.add("shaka-tooltip");zC(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);AC(this);this.eventManager.s(this.localization,"locale-updated",function(){AC(c)});this.eventManager.s(this.localization,"locale-changed",function(){AC(c)});this.eventManager.s(this.g,"click",function(){return B(function(d){return u(d,c.controls.sh(), 11340)})});this.eventManager.s(document,"fullscreenchange",function(){c.g.textContent=c.controls.Uc()?"fullscreen_exit":"fullscreen";AC(c)});this.eventManager.s(this.h,"loadedmetadata",function(){zC(c)});this.eventManager.s(this.h,"loadeddata",function(){zC(c)})}ua(yC,FA);function zC(a){a.controls.hf()?a.g.classList.remove("zx-Ax"):a.g.classList.add("zx-Ax")}function AC(a){a.g.ariaLabel=a.localization.resolve(a.controls.Uc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}E("shaka.ui.FullscreenButton",yC); 1135function BC(){}BC.prototype.create=function(a,b){return new yC(a,b)};oB("fullscreen",new BC);function CC(a,b){FA.call(this,a,b);var c=this;this.g=Pm();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=Om("i");this.i.classList.add("Cx-Dx-Ex");this.i.textContent="repeat";this.g.appendChild(this.i);a=Om("label");a.classList.add("zx-Kx-Fh-Mh");a.classList.add("zx-Kx-te-Lx");this.l=Om("span");this.l.textContent=this.localization.resolve("LOOP");a.appendChild(this.l);this.j=Om("span");this.j.classList.add("zx-Px-Qx-Rx");a.appendChild(this.j);this.g.appendChild(a);
1136DC(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){DC(c)});this.eventManager.s(this.localization,"locale-changed",function(){DC(c)});this.eventManager.s(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.La();c.h.ua(1)});this.o=this.video.loop;this.h=new md(function(){c.o!=c.video.loop&&(DC(c),c.o=c.video.loop)});this.h.ua(1)}ua(CC,FA);CC.prototype.release=function(){this.h.stop();this.h=null;FA.prototype.release.call(this)}; 1137function DC(a){a.l.textContent=a.localization.resolve("LOOP");a.j.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")}E("shaka.ui.LoopButton",CC);function EC(){}EC.prototype.create=function(a,b){return new CC(a,b)};RB("loop",new EC);oB("loop",new EC);ZA("loop",new EC);function FC(a,b){FA.call(this,a,b);var c=this;this.g=Pm();this.g.classList.add("zx-yy-Fh");this.g.classList.add("Cx-Dx-Ex");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);GC(this);HC(this);this.eventManager.s(this.localization,"locale-updated",function(){GC(c)});this.eventManager.s(this.localization,"locale-changed",function(){GC(c)});this.eventManager.s(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});this.eventManager.s(this.video, 1138"volumechange",function(){GC(c);HC(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){GC(c);HC(c)});this.eventManager.s(this.adManager,"ad-muted",function(){GC(c);HC(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null;GC(c);HC(c)})}ua(FC,FA);function GC(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)} 1139function HC(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}E("shaka.ui.MuteButton",FC);function IC(){}IC.prototype.create=function(a,b){return new FC(a,b)};oB("mute",new IC);function JC(a,b){FA.call(this,a,b);var c=this;this.l=this.controls.j;this.g=Pm();this.g.classList.add("zx-zy-Fh");this.g.classList.add("shaka-tooltip");this.i=Om("i");this.i.classList.add("Cx-Dx-Ex");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=Om("label");a.classList.add("zx-Kx-Fh-Mh");a.classList.add("zx-Kx-te-Lx");this.j=Om("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=Om("span");this.h.classList.add("zx-Px-Qx-Rx"); 1140a.appendChild(this.h);this.g.appendChild(a);KC(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||OA(this.g,!1);this.eventManager.s(this.localization,"locale-updated",function(){KC(c)});this.eventManager.s(this.localization,"locale-changed",function(){KC(c)});this.eventManager.s(this.g,"click",function(){LC(c)});this.eventManager.s(this.l,"enterpictureinpicture",function(){c.i.textContent="branding_watermark";c.g.ariaLabel=c.localization.resolve("EXIT_PICTURE_IN_PICTURE"); 1141c.h.textContent=c.localization.resolve("ON")});this.eventManager.s(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.ariaLabel=c.localization.resolve("ENTER_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("OFF")});this.eventManager.s(this.controls,"caststatuschanged",function(d){d.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&OA(c.g,!1):document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&OA(c.g,!0)}); 1142this.eventManager.s(this.player,"trackschanged",function(){MC(c)})}ua(JC,FA);function LC(a){var b;B(function(c){if(1==c.g)return Ba(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return Da(c,0);b=Ea(c);a.controls.dispatchEvent(new ug("error",(new Map).set("detail",b)));v(c)})} 1143function KC(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.ariaLabel=a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")} 1144function MC(a){B(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return OA(a.g,!1),b.D(0);if(!a.player||!a.player.Tc())return OA(a.g,!0),b.D(0);OA(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}E("shaka.ui.PipButton",JC);function NC(){}NC.prototype.create=function(a,b){return new JC(a,b)};
1144RB("picture_in_picture",new NC);oB("picture_in_picture",new NC);ZA("picture_in_picture",new NC);function OC(a,b){JB.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("zx-uy-Zi");this.eventManager.s(this.localization,"locale-updated",function(){PC(c)});this.eventManager.s(this.localization,"locale-changed",function(){PC(c)});this.eventManager.s(this.player,"ratechange",function(){QC(c,c.player.Sb())});this.g=new Map(this.controls.m.playbackRates.map(function(d){return[d+ 1145"x",d]}));PC(this);RC(this);QC(this,this.player.Sb())}ua(OC,JB);function PC(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")} 1146function QC(a,b){var c=LA(a.menu,"Cx-Dx-Ex zx-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("zx-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(NA()),d.ariaSelected="true",c.classList.add("zx-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+"x")} 1147function RC(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={sd:b.sd},d=c.next()){b.sd=d.value;d=Pm();var e=Om("span");e.textContent=b.sd;d.appendChild(e);a.eventManager.s(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.sd);a.video.defaultPlaybackRate=a.g.get(f.sd)}}(b));a.menu.appendChild(d)}MA(a.menu)}E("shaka.ui.PlaybackRateSelection",OC);function SC(){}SC.prototype.create=function(a,b){return new OC(a,b)};RB("playback_rate",new SC);oB("playback_rate",new SC);function TC(a,b){FA.call(this,a,b);var c=this;this.g=Pm();this.g.classList.add("zx-Px-Vx");UC(this,"0:00");this.parent.appendChild(this.g);this.eventManager.s(this.g,"click",function(){c.player.ha()&&(c.video.currentTime=c.player.Za().end)});this.eventManager.s(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.M,e=c.controls.ei(),f=c.video.duration,g=c.player.Za(),h=g.end-g.start;c.player.ha()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(UC(c,"- "+PA(e,f)),c.g.disabled= 1148!1):(UC(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=PA(e,d),f&&(e+=" / "+PA(f,d)),UC(c,e),c.g.disabled=!0)});this.eventManager.s(this.player,"trackschanged",function(){c.player.ha()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}ua(TC,FA);function UC(a,b){b!=a.g.textContent&&(a.g.textContent=b)}E("shaka.ui.PresentationTimeTracker",TC);function VC(){}VC.prototype.create=function(a,b){return new TC(a,b)};oB("time_and_duration",new VC);function WC(a,b){JB.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("zx-uy-Zi");this.menu.classList.add("shaka-resolutions");this.eventManager.s(this.localization,"locale-updated",function(){XC(c)});this.eventManager.s(this.localization,"locale-changed",function(){XC(c)});this.eventManager.s(this.player,"variantchanged",function(){YC(c)});this.eventManager.s(this.player,"trackschanged",function(){YC(c)});this.eventManager.s(this.player, 1149"abrstatuschanged",function(){YC(c)});YC(this)}ua(WC,JB); 1150function YC(a){var b=a.player.jb(),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){return(a.player.Tc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.Tc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=LA(a.menu,"zx-ky-ly-Kx-Fh");Qm(a.menu);a.menu.appendChild(d); 1151d=a.player.getConfiguration().abr.enabled;for(var e={},f=r(b),g=f.next();!g.done;e={Gc:e.Gc},g=f.next()){e.Gc=g.value;g=Pm();g.classList.add("explicit-resolution");a.eventManager.s(g,"click",function(k){return function(){var l=k.Gc;a.player.configure({abr:{enabled:!1}});a.player.Zg(l,a.controls.m.clearBufferOnQualityChange)}}(e));var h=Om("span");h.textContent=a.player.Tc()?Math.round(e.Gc.bandwidth/1E3)+" kbits/s":e.Gc.height+"p";g.appendChild(h);d||e.Gc!=c||(g.ariaSelected="true",g.appendChild(NA()), 1152h.classList.add("zx-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Pm();e.classList.add("shaka-enable-abr-button");a.eventManager.s(e,"click",function(){a.player.configure({abr:{enabled:!0}});YC(a)});a.g=Om("span");a.g.classList.add("zx-my-Rx");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(NA()),a.g.classList.add("zx-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY")); 1153a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);MA(a.menu);a.controls.dispatchEvent(new ug("resolutionselectionupdated"));XC(a)} 1154function XC(a){var b=a.player.Tc()?"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"))}E("shaka.ui.ResolutionSelection",WC);function ZC(){} 1155ZC.prototype.create=function(a,b){return new WC(a,b)};RB("quality",new ZC);oB("quality",new ZC);function $C(a,b){FA.call(this,a,b);var c=this;this.g=Pm();this.g.classList.add("Cx-Dx-Ex");this.g.classList.add("shaka-rewind-button");this.g.classList.add("zx-uy-Zi");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);aD(this);this.h=this.controls.m.rewindRates;this.eventManager.s(this.localization,"locale-updated",function(){aD(c)});this.eventManager.s(this.localization,"locale-changed",function(){aD(c)});this.eventManager.s(this.g, 1156"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Sb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.wh(d);c.g.setAttribute("shaka-status",d+"x")}})}ua($C,FA);function aD(a){a.g.ariaLabel=a.localization.resolve("REWIND")}
1156E("shaka.ui.RewindButton",$C);function bD(){}bD.prototype.create=function(a,b){return new $C(a,b)};oB("rewind",new bD);function cD(a,b){FA.call(this,a,b);var c=this;this.j=Om("div");this.j.classList.add("zx-qy-cy-ye");this.parent.appendChild(this.j);this.h=Om("div");this.h.classList.add("zx-qy-cy-ry");OA(this.h,!1);this.j.appendChild(this.h);this.g=Pm();this.g.classList.add("zx-qy-cy-Fh");this.g.disabled=!0;OA(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);dD(this);this.i=new md(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=d:(c.i.stop(),OA(c.h,!1))}); 1157this.eventManager.s(this.localization,"locale-updated",function(){dD(c)});this.eventManager.s(this.localization,"locale-changed",function(){dD(c)});this.eventManager.s(this.adManager,"ad-started",function(){eD(c)});this.eventManager.s(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),OA(c.h,!1))});this.eventManager.s(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;OA(c.g,!1);OA(c.h,!1)});this.eventManager.s(this.g,"click",function(){c.ad.skip()}); 1158this.ad&&eD(this)}ua(cD,FA);cD.prototype.release=function(){this.i.stop();this.i=null;FA.prototype.release.call(this)};function dD(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function eD(a){a.ad.isSkippable()&&(OA(a.g,!0),OA(a.h,!0),a.h.textContent="",a.i.La(),a.i.ua(.5))}E("shaka.ui.SkipAdButton",cD);function fD(a,b){TA.call(this,a,b);this.button.classList.add("zx-xy-Mx-Fh");this.button.classList.add("Cx-Dx-Ex");this.button.classList.add("shaka-tooltip");this.h();this.g()}ua(fD,TA);fD.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};fD.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)}}; 1159E("shaka.ui.SmallPlayButton",fD);function gD(){}gD.prototype.create=function(a,b){return new fD(a,b)};oB("play_pause",new gD);function hD(a,b){FA.call(this,a,b);a=Om("div");a.classList.add("zx-gy");a.ariaHidden="true";this.parent.appendChild(a)}ua(hD,FA);E("shaka.ui.Spacer",hD);function iD(){}iD.prototype.create=function(a,b){return new hD(a,b)};oB("spacer",new iD);function jD(a,b){function c(k){return PA(h.g[k],!1)+" (m)"}function d(k){return Math.round(h.g[k]/1E3)+" (kbits/s)"}function e(k){return h.g[k].toFixed(2)+" (s)"}function f(k){return h.g[k]+" (frames)"}function g(k){return h.g[k]+" (px)"}FA.call(this,a,b);var h=this;this.i=Pm();this.i.classList.add("shaka-statistics-button");this.j=Om("i");this.j.classList.add("Cx-Dx-Ex");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=Om("label");a.classList.add("zx-Kx-Fh-Mh");this.C=Om("span"); 1160a.appendChild(this.C);this.o=Om("span");this.o.classList.add("zx-Px-Qx-Rx");a.appendChild(this.o);this.i.appendChild(a);this.parent.appendChild(this.i);this.h=Om("div");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");this.h.classList.add("zx-Nx-ye");this.h.classList.add("zx-Ax");this.controls.$.appendChild(this.h);this.I=[];this.K=["stateHistory","switchHistory"];this.g=this.player.getStats();this.A={};this.B={width:g,height:g,completionPercent:function(k){return h.g[k]+ 1161" (%)"},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.g[k]+" (stalls)"},gapsJumped:function(k){return h.g[k]+" (gaps)"}};this.l=new md(function(){h.g=h.player.getStats();for(var k=r(h.I),l=k.next();!l.done;l=k.next())l=l.value,h.A[l].textContent=h.B[l](l)});kD(this);lD(this);this.eventManager.s(this.localization, 1162"locale-updated",function(){kD(h)});this.eventManager.s(this.localization,"locale-changed",function(){kD(h)});this.eventManager.s(this.i,"click",function(){OA(h.parent,!1);h.h.classList.contains("zx-Ax")?(h.j.textContent="insert_chart",h.l.ua(.1),OA(h.h,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),OA(h.h,!1));kD(h)})}ua(jD,FA); 1163function kD(a){a.C.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.o.textContent=a.localization.resolve(a.h.classList.contains("zx-Ax")?"OFF":"ON")}function mD(a,b){var c=Om("div"),d=Om("label");d.textContent=b+":";c.appendChild(d);d=Om("span");d.textContent=a.B[b](b);c.appendChild(d);a.A[b]=d;return c} 1164function lD(a){for(var b=r(a.controls.m.statisticsList),c=b.next();!c.done;c=b.next())c=c.value,c in a.g&&!a.K.includes(c)?(a.h.appendChild(mD(a,c)),a.I.push(c)):ob("Unrecognized statistic element:",c)}jD.prototype.release=function(){this.l.stop();this.l=null;FA.prototype.release.call(this)};E("shaka.ui.StatisticsButton",jD);function nD(){}nD.prototype.create=function(a,b){return new jD(a,b)};RB("statistics",new nD);ZA("statistics",new nD);function oD(a,b){JB.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("zx-uy-Zi");this.menu.classList.add("shaka-text-languages");this.player&&this.player.mc()?this.button.ariaPressed="true":this.button.ariaPressed="false";pD(this);this.eventManager.s(this.localization,"locale-updated",function(){qD(c);rD(c)});this.eventManager.s(this.localization,"locale-changed",function(){qD(c);rD(c)});this.eventManager.s(this.player,"texttrackvisibility", 1165function(){sD(c);rD(c)});this.eventManager.s(this.player,"textchanged",function(){rD(c)});this.eventManager.s(this.player,"trackschanged",function(){tD(c)});sD(this);qD(this);rD(this);tD(this)}ua(oD,JB);function pD(a){var b=Pm();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(NA());a.g=Om("span");a.g.classList.add("zx-my-Rx");b.appendChild(a.g)} 1166function sD(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 ug("captionselectionupdated"))} 1167function rD(a){var b=a.player.Tb();
1167fC(b,a.menu,function(c){return uD(a,c)},a.player.mc(),a.currentSelection,a.localization,a.controls.m.trackLabelFormat);b=Pm();b.classList.add("shaka-turn-captions-off-button");a.eventManager.s(b,"click",function(){a.player.ih(!1);rD(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.mc()||(b.ariaSelected="true",b.appendChild(NA()),a.g.classList.add("zx-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status", 1168a.currentSelection.textContent);MA(a.menu);a.controls.dispatchEvent(new ug("captionselectionupdated"))}function uD(a,b){return B(function(c){a.player.Yg(b);return u(c,a.player.ih(!0),0)})}function qD(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")} 1169function tD(a){var b=0<a.player.Tb().length;OA(a.button,b);rD(a)}E("shaka.ui.TextSelection",oD);function vD(){}vD.prototype.create=function(a,b){return new oD(a,b)};RB("captions",new vD);oB("captions",new vD);function wD(a,b){aB.call(this,a,b,["zx-Zx-Kq-ye"],["shaka-volume-bar"]);var c=this;this.m=this.controls.m;this.eventManager.s(this.video,"volumechange",function(){return xD(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){return yD(c)});this.eventManager.s(this.adManager,"ad-muted",function(){return yD(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){return xD(c)});this.eventManager.s(this.localization,"locale-updated",function(){return zD(c)});this.eventManager.s(this.localization, 1170"locale-changed",function(){return zD(c)});xD(this);zD(this);if(this.ad)this.onChange()}ua(wD,aB);wD.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function xD(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);AD(a)}function yD(a){var b=a.ad.getVolume();a.setValue(b);AD(a)} 1171function AD(a){var b=a.m.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function zD(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}E("shaka.ui.VolumeBar",wD);function BD(){}BD.prototype.create=function(a,b){return new wD(a,b)};oB("volume",new BD);/* 1172 @license 1173 EME Encryption Scheme Polyfill 1174 Copyright 2019 Google LLC 1175 SPDX-License-Identifier: Apache-2.0 1176*/ 1177function CD(){}var DD;function ED(){DD?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(DD=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=FD):console.debug("EmeEncryptionSchemePolyfill: EME not found")} 1178function FD(a,b){var c=this,d;return B(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,DD.call(c,a,b),2);d=e.h;if(GD(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=DD,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=HD;return e.return(HD.call(c, 1179a,b))})} 1180function HD(a,b){var c=this,d,e,f,g,h,k,l,m,q,p;return B(function(t){if(1==t.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=ID(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=JD(h.videoCapabilities,d),l=JD(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 q=Error("Unsupported keySystem or supportedConfigurations."), 1181q.name="NotSupportedError",q.code=DOMException.NOT_SUPPORTED_ERR,q;return u(t,DD.call(c,a,e),2)}p=t.h;return t.return(new KD(p,d))})}function JD(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}E("EmeEncryptionSchemePolyfill",CD);CD.install=ED;function LD(){}var MD; 1182function ND(){MD?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.g?(MD=navigator.g.Hd,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.g.Hd=OD):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")} 1183function OD(a){var b=this,c,d;return B(function(e){if(1==e.g)return console.assert(b==navigator.g,'bad "this" for decodingInfo'),u(e,MD.call(b,a),2);c=e.h;if(!a.Ud||!c.Va)return e.return(c);d=c.Va;if(GD(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.g.Hd=MD,e.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.g.Hd=PD;return e.return(PD.call(b,a))})} 1184function PD(a){var b=this,c,d,e,f,g,h,k;return B(function(l){if(1==l.g)return console.assert(b==navigator.g,'bad "this" for decodingInfo'),c=null,a.Ud&&(d=a.Ud,e=d.keySystem,f=d.audio&&d.audio.Tj,g=d.video&&d.video.Tj,c=ID(e),h={ql:!1,Dm:!1,ed:!1,Va:null,Oj:a}
1184,f&&f!=c||g&&g!=c)?l.return(h):u(l,MD.call(b,a),2);k=l.h;k.Va&&(k.Va=new KD(k.Va,c));return l.return(k)})}E("McEncryptionSchemePolyfill",LD);LD.install=ND;function KD(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem} 1185KD.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};KD.prototype.createMediaKeys=function(){return this.h.createMediaKeys()}; 1186function ID(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||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 GD(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}function QD(){} 1187function hx(){ED();ND()}E("EncryptionSchemePolyfills",QD);QD.install=hx;"undefined"!==typeof module&&module.Vj&&(module.Vj=QD);function RD(){return wc("iPhone")&&!wc("iPod")&&!wc("iPad")};function SD(a){SD[" "](a);return a}SD[" "]=Xa;function TD(a,b){var c=UD;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var VD=wc("Opera"),WD=wc("Trident")||wc("MSIE"),XD=wc("Edge"),YD=wc("Gecko")&&!(-1!=tc.toLowerCase().indexOf("webkit")&&!wc("Edge"))&&!(wc("Trident")||wc("MSIE"))&&!wc("Edge"),ZD=-1!=tc.toLowerCase().indexOf("webkit")&&!wc("Edge"),$D=wc("Macintosh"),aE=wc("Windows"),bE=wc("Android"),cE=RD(),dE=wc("iPad"),eE=wc("iPod");function fE(){var a=Ua.document;return a?a.documentMode:void 0}var gE; 1188a:{var hE="",iE=function(){var a=tc;if(YD)return/rv:([^\);]+)(\)|;)/.exec(a);if(XD)return/Edge\/([\d\.]+)/.exec(a);if(WD)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(ZD)return/WebKit\/(\S+)/.exec(a);if(VD)return/(?:Version)[ \/]?(\S+)/.exec(a)}();iE&&(hE=iE?iE[1]:"");if(WD){var jE=fE();if(null!=jE&&jE>parseFloat(hE)){gE=String(jE);break a}}gE=hE}var UD={}; 1189function kE(a){return TD(a,function(){for(var b=0,c=jc(String(gE)).split("."),d=jc(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",h=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==g[0].length&&0==h[0].length)break;b=sc(0==g[1].length?0:parseInt(g[1],10),0==h[1].length?0:parseInt(h[1],10))||sc(0==g[2].length,0==h[2].length)||sc(g[2],h[2]);g=g[3];h=h[3]}while(0==b)}return 0<=b})}var lE; 1190lE=Ua.document&&WD?fE():void 0;var mE=!WD||9<=Number(lE);function nE(a,b){this.x=void 0!==a?a:0;this.g=void 0!==b?b:0}n=nE.prototype;n.clone=function(){return new nE(this.x,this.g)};n.ceil=function(){this.x=Math.ceil(this.x);this.g=Math.ceil(this.g);return this};n.floor=function(){this.x=Math.floor(this.x);this.g=Math.floor(this.g);return this};n.round=function(){this.x=Math.round(this.x);this.g=Math.round(this.g);return this};n.scale=function(a,b){b=Wa(b)?b:a;this.x*=a;this.g*=b;return this};function oE(a,b){this.width=a;this.height=b}n=oE.prototype;n.clone=function(){return new oE(this.width,this.height)};n.aspectRatio=function(){return this.width/this.height};n.Td=function(){return!(this.width*this.height)};n.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};n.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; 1191n.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};n.scale=function(a,b){b=Wa(b)?b:a;this.width*=a;this.height*=b;return this};function pE(a){return a?new qE(rE(a)):ib||(ib=new qE)}function sE(a){var b=document;return Va(a)?b.getElementById(a):a}function tE(a){var b=document;a=a&&"*"!=a?String(a).toUpperCase():"";return b.querySelectorAll&&b.querySelector&&a?b.querySelectorAll(a):b.getElementsByTagName(a||"*")} 1192function uE(a,b){Yb(b,function(c,d){c&&"object"==typeof c&&c.mi&&(c=c.ji());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:vE.hasOwnProperty(d)?a.setAttribute(vE[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})} 1193var vE={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
1193nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function wE(a){return a.scrollingElement?a.scrollingElement:ZD||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement} 1194function xE(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!mE&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',zc(g.name),'"');if(g.type){f.push(' type="',zc(g.type),'"');var h={};$b(h,g);delete h.type;g=h}f.push(">");f=f.join("")}f=e.createElement(f);g&&(Va(g)?f.className=g:Za(g)?f.className=g.join(" "):uE(f,g));2<d.length&&yE(e,f,d,2);return f} 1195function yE(a,b,c,d){function e(g){g&&b.appendChild(Va(g)?a.createTextNode(g):g)}for(;d<c.length;d++){var f=c[d];!$a(f)||ab(f)&&0<f.nodeType?e(f):Lb(zE(f)?Wb(f):f,e)}}function rE(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function zE(a){if(a&&"number"==typeof a.length){if(ab(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==Ya(a))return"function"==typeof a.item}return!1}function qE(a){this.g=a||Ua.document||document}qE.prototype.getDocument=function(){return this.g}; 1196qE.prototype.appendChild=function(a,b){a.appendChild(b)};qE.prototype.append=function(a,b){yE(rE(a),a,arguments,1)};qE.prototype.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};function AE(a){if(a.classList)return a.classList;a=a.className;return Va(a)&&a.match(/\S+/g)||[]}function BE(a){a.classList?a.classList.add("oo"):(a.classList?a.classList.contains("oo"):0<=Jb(AE(a),"oo"))||(a.className+=0<a.className.length?" oo":"oo")}function CE(a){if(a.classList)a.classList.remove("oo");else if(a.classList?a.classList.contains("oo"):0<=Jb(AE(a),"oo"))a.className=Mb(AE(a),function(b){return"oo"!=b}).join(" ")};var DE=!WD||9<=Number(lE),EE=WD&&!kE("9"),FE=function(){if(!Ua.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{Ua.addEventListener("test",Xa,b),Ua.removeEventListener("test",Xa,b)}catch(c){}return a}();function GE(){0!=HE&&(IE[this[cb]||(this[cb]=++db)]=this);this.o=this.o;this.j=this.j}var HE=0,IE={};GE.prototype.o=!1;GE.prototype.dispose=function(){if(!this.o&&(this.o=!0,this.ec(),0!=HE)){var a=this[cb]||(this[cb]=++db);if(0!=HE&&this.j&&0<this.j.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete IE[a]}};GE.prototype.ec=function(){if(this.j)for(;this.j.length;)this.j.shift()()};function JE(a,b){this.type=a;this.g=this.target=b;this.h=!1;this.Ei=!0}JE.prototype.stopPropagation=function(){this.h=!0};JE.prototype.preventDefault=function(){this.Ei=!1};function KE(a,b){JE.call(this,a?a.type:"");this.relatedTarget=this.g=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.j=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.i=null;a&&this.init(a,b)}hb(KE,JE);var LE={2:"touch",3:"pen",4:"mouse"}; 1197KE.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.g=b;if(b=a.relatedTarget){if(YD){a:{try{SD(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY|| 11980):(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.j=a.keyCode||0;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=Va(a.pointerType)?a.pointerType:LE[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&this.preventDefault()}; 1199KE.prototype.stopPropagation=function(){KE.xe.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};KE.prototype.preventDefault=function(){KE.xe.preventDefault.call(this);var a=this.i;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,EE)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var ME="closure_listenable_"+(1E6*Math.random()|0),NE=0;function OE(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ef=e;this.key=++NE;this.$c=this.Pe=!1}function PE(a){a.$c=!0;a.listener=null;a.proxy=null;a.src=null;a.ef=null};function QE(a){this.src=a;this.ia={};this.g=0}QE.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.ia[f];a||(a=this.ia[f]=[],this.g++);var g=RE(a,b,d,e);-1<g?(b=a[g],c||(b.Pe=!1)):(b=new OE(b,this.src,f,!!d,e),b.Pe=c,a.push(b));return b};QE.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.ia))return!1;var e=this.ia[a];b=RE(e,b,c,d);return-1<b?(PE(e[b]),Array.prototype.splice.call(e,b,1),0==e.length&&(delete this.ia[a],this.g--),!0):!1}; 1200function SE(a,b){var c=b.type;c in a.ia&&Ub(a.ia[c],b)&&(PE(b),0==a.ia[c].length&&(delete a.ia[c],a.g--))}QE.prototype.Kb=function(a){a=a&&a.toString();var b=0,c;for(c in this.ia)if(!a||c==a){for(var d=this.ia[c],e=0;e<d.length;e++)++b,PE(d[e]);delete this.ia[c];this.g--}return b};QE.prototype.hg=function(a,b,c,d){a=this.ia[a.toString()];var e=-1;a&&(e=RE(a,b,c,d));return-1<e?a[e]:null}; 1201function RE(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.$c&&f.listener==b&&f.capture==!!c&&f.ef==d)return e}return-1};var TE="closure_lm_"+(1E6*Math.random()|0),UE={},VE=0;function WE(a,b,c,d,e){if(d&&d.once)XE(a,b,c,d,e);else if(Za(b))for(var f=0;f<b.length;f++)WE(a,b[f],c,d,e);
1201else c=YE(c),a&&a[ME]?a.s(b,c,ab(d)?!!d.capture:!!d,e):ZE(a,b,c,!1,d,e)} 1202function ZE(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=ab(e)?!!e.capture:!!e,h=$E(a);h||(a[TE]=h=new QE(a));c=h.add(b,c,d,g,f);if(!c.proxy){d=aF();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)FE||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(bF(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");VE++}} 1203function aF(){var a=cF,b=DE?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function XE(a,b,c,d,e){if(Za(b))for(var f=0;f<b.length;f++)XE(a,b[f],c,d,e);else c=YE(c),a&&a[ME]?a.xa(b,c,ab(d)?!!d.capture:!!d,e):ZE(a,b,c,!0,d,e)}function dF(a,b,c,d,e){if(Za(b))for(var f=0;f<b.length;f++)dF(a,b[f],c,d,e);else d=ab(d)?!!d.capture:!!d,c=YE(c),a&&a[ME]?a.Zb(b,c,d,e):a&&(a=$E(a))&&(b=a.hg(b,c,d,e))&&eF(b)} 1204function eF(a){if(!Wa(a)&&a&&!a.$c){var b=a.src;if(b&&b[ME])SE(b.Db,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(bF(c),d):b.addListener&&b.removeListener&&b.removeListener(d);VE--;(c=$E(b))?(SE(c,a),0==c.g&&(c.src=null,b[TE]=null)):PE(a)}}}function bF(a){return a in UE?UE[a]:UE[a]="on"+a} 1205function fF(a,b,c,d){var e=!0;if(a=$E(a))if(b=a.ia[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.$c&&(f=gF(f,d),e=e&&!1!==f)}return e}function gF(a,b){var c=a.listener,d=a.ef||a.src;a.Pe&&eF(a);return c.call(d,b)} 1206function cF(a,b){if(a.$c)return!0;if(!DE){if(!b)a:{b=["window","event"];for(var c=Ua,d=0;d<b.length;d++)if(c=c[b[d]],null==c){b=null;break a}b=c}d=b;b=new KE(d,this);c=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.g;e;e=e.parentNode)d.push(e);a=a.type;for(e=d.length-1;!b.h&&0<=e;e--){b.g=d[e];var f=fF(d[e],a,!0,b);c=c&&f}for(e=0;!b.h&&e<d.length;e++)b.g=d[e],f=fF(d[e],a,!1,b), 1207c=c&&f}return c}return gF(a,new KE(b,this))}function $E(a){a=a[TE];return a instanceof QE?a:null}var hF="__closure_events_fn_"+(1E9*Math.random()>>>0);function YE(a){if("function"==Ya(a))return a;a[hF]||(a[hF]=function(b){return a.handleEvent(b)});return a[hF]};function iF(){GE.call(this);this.Db=new QE(this);this.yj=this;this.Gg=null}hb(iF,GE);iF.prototype[ME]=!0;n=iF.prototype;n.addEventListener=function(a,b,c,d){WE(this,a,b,c,d)};n.removeEventListener=function(a,b,c,d){dF(this,a,b,c,d)}; 1208n.dispatchEvent=function(a){var b,c=this.Gg;if(c)for(b=[];c;c=c.Gg)b.push(c);c=this.yj;var d=a.type||a;if(Va(a))a=new JE(a,c);else if(a instanceof JE)a.target=a.target||c;else{var e=a;a=new JE(d,c);$b(a,e)}e=!0;if(b)for(var f=b.length-1;!a.h&&0<=f;f--){var g=a.g=b[f];e=jF(g,d,!0,a)&&e}a.h||(g=a.g=c,e=jF(g,d,!0,a)&&e,a.h||(e=jF(g,d,!1,a)&&e));if(b)for(f=0;!a.h&&f<b.length;f++)g=a.g=b[f],e=jF(g,d,!1,a)&&e;return e};n.ec=function(){iF.xe.ec.call(this);this.Db&&this.Db.Kb(void 0);this.Gg=null}; 1209n.s=function(a,b,c,d){return this.Db.add(String(a),b,!1,c,d)};n.xa=function(a,b,c,d){return this.Db.add(String(a),b,!0,c,d)};n.Zb=function(a,b,c,d){return this.Db.remove(String(a),b,c,d)};function jF(a,b,c,d){b=a.Db.ia[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.$c&&g.capture==c){var h=g.listener,k=g.ef||g.src;g.Pe&&SE(a.Db,g);e=!1!==h.call(k,d)&&e}}return e&&0!=d.Ei}n.hg=function(a,b,c,d){return this.Db.hg(String(a),b,c,d)};function kF(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}n=kF.prototype;n.clone=function(){return new kF(this.top,this.right,this.bottom,this.left)};n.contains=function(a){return this&&a?a instanceof kF?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.g>=this.top&&a.g<=this.bottom:!1}; 1210n.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};n.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};n.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; 1211n.scale=function(a,b){b=Wa(b)?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};function lF(a,b){var c=rE(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}function mF(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}WD&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} 1212function nF(a){var b=rE(a),c=new nE(0,0);var d=b?rE(b):document;d=!WD||9<=Number(lE)||"CSS1Compat"==pE(d).g.compatMode?d.documentElement:d.body;if(a==d)return c;a=mF(a);d=pE(b).g;b=wE(d);d=d.parentWindow||d.defaultView;b=WD&&kE("10")&&d.pageYOffset!=b.scrollTop?new nE(b.scrollLeft,b.scrollTop):new nE(d.pageXOffset||b.scrollLeft,d.pageYOffset||b.scrollTop);c.x=a.left+b.x;c.g=a.top+b.g;return c}var oF={thin:2,medium:4,thick:6}; 1213function pF(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;if(c in oF)a=oF[c];else if(/^\d+px?$/.test(c))a=parseInt(c,10);else{b=a.style.left;var d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=b;a.runtimeStyle.left=d;a=+c}return a};function qF(a,b,c){if("function"==Ya(a))c&&(a=gb(a,c));else if(a&&"function"==typeof a.handleEvent)a=gb(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:Ua.setTimeout(a,b||0)};function rF(){}rF.prototype.g=null;function sF(a){var b;(b=a.g)||(b={},tF(a)&&(b[0]=!0,b[1]=!0),b=a.g=b);return b};var uF;function vF(){}hb(vF,rF);function wF(a){return(a=tF(a))?new ActiveXObject(a):new XMLHttpRequest}
1213function tF(a){if(!a.h&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.h=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.h}uF=new vF;function xF(a){iF.call(this);this.headers=new Dc;this.I=a||null;this.h=!1;this.C=this.g=null;this.M="";this.i=this.L=this.l=this.K=!1;this.B=0;this.A=null;this.W=yF;this.S=this.X=!1}hb(xF,iF);var yF="",zF=/^https?$/i,AF=["POST","PUT"],BF=[];n=xF.prototype;n.Ij=function(){this.dispose();Ub(BF,this)}; 1214function CF(a,b){if(a.g)throw Error("[goog.net.XhrIo] Object is active with another request="+a.M+"; newUri="+b);a.M=b;a.K=!1;a.h=!0;a.g=a.I?wF(a.I):wF(uF);a.C=a.I?sF(a.I):sF(uF);a.g.onreadystatechange=gb(a.Bi,a);try{a.L=!0,a.g.open("POST",String(b),!0),a.L=!1}catch(e){DF(a);return}b=a.headers.clone();var c=Sb(b.Pc()),d=Ua.FormData&&!1;!(0<=Jb(AF,"POST"))||c||d||b.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b.forEach(function(e,f){this.g.setRequestHeader(f,e)},a);a.W&&(a.g.responseType= 1215a.W);"withCredentials"in a.g&&a.g.withCredentials!==a.X&&(a.g.withCredentials=a.X);try{EF(a),0<a.B&&(a.S=FF(a.g),a.S?(a.g.timeout=a.B,a.g.ontimeout=gb(a.bj,a)):a.A=qF(a.bj,a.B,a)),a.l=!0,a.g.send(""),a.l=!1}catch(e){DF(a)}}function FF(a){return WD&&kE(9)&&Wa(a.timeout)&&void 0!==a.ontimeout}function Tb(a){return"content-type"==a.toLowerCase()}n.bj=function(){"undefined"!=typeof Ta&&this.g&&(this.dispatchEvent("timeout"),this.abort(8))}; 1216function DF(a){a.h=!1;a.g&&(a.i=!0,a.g.abort(),a.i=!1);GF(a);HF(a)}function GF(a){a.K||(a.K=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}n.abort=function(){this.g&&this.h&&(this.h=!1,this.i=!0,this.g.abort(),this.i=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),HF(this))};n.ec=function(){this.g&&(this.h&&(this.h=!1,this.i=!0,this.g.abort(),this.i=!1),HF(this,!0));xF.xe.ec.call(this)};n.Bi=function(){this.o||(this.L||this.l||this.i?IF(this):this.jl())};n.jl=function(){IF(this)}; 1217function IF(a){if(a.h&&"undefined"!=typeof Ta&&(!a.C[1]||4!=(a.g?a.g.readyState:0)||2!=a.Hb()))if(a.l&&4==(a.g?a.g.readyState:0))qF(a.Bi,0,a);else if(a.dispatchEvent("readystatechange"),4==(a.g?a.g.readyState:0)){a.h=!1;try{JF(a)?(a.dispatchEvent("complete"),a.dispatchEvent("success")):GF(a)}finally{HF(a)}}}function HF(a,b){if(a.g){EF(a);var c=a.g,d=a.C[0]?Xa:null;a.g=null;a.C=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}} 1218function EF(a){a.g&&a.S&&(a.g.ontimeout=null);a.A&&(Ua.clearTimeout(a.A),a.A=null)}function JF(a){var b=a.Hb();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=String(a.M).match(Gc)[1]||null,!a&&Ua.self&&Ua.self.location&&(a=Ua.self.location.protocol,a=a.substr(0,a.length-1)),b=!zF.test(a?a.toLowerCase():"");c=b}return c}n.Hb=function(){try{return 2<(this.g?this.g.readyState:0)?this.g.status:-1}catch(a){return-1}};/* 1219 1220 Copyright The Closure Library Authors. 1221 SPDX-License-Identifier: Apache-2.0 1222*/ 1223function KF(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw Error(e,f||[]);}function K(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];a||KF("",null,b,d);return a}function LF(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];"string"!==typeof a&&KF("Expected string but got %s: %s.",[Ya(a),a],b,d)}function MF(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];throw Error("Failure"+(a?": "+a:""),c);} 1224function NF(a,b,c,d){for(var e=[],f=3;f<arguments.length;++f)e[f-3]=arguments[f];a instanceof b||KF("Expected instanceof %s but got %s.",[OF(b),OF(a)],c,e)}function OF(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};E("jspb.ConstBinaryMessage",function(){});E("jspb.BinaryMessage",function(){});E("jspb.BinaryConstants.FieldType",{uj:-1,Bo:1,FLOAT:2,Vo:3,Tp:4,Uo:5,tj:6,sj:7,BOOL:8,Hp:9,So:10,$o:11,wo:12,Sp:13,Io:14,yp:15,zp:16,Ap:17,Bp:18,Qo:30,$p:31});E("jspb.BinaryConstants.WireType",{uj:-1,Zp:0,tj:1,Ao:2,Fp:3,Fo:4,sj:5}); 1225E("jspb.BinaryConstants.FieldTypeToWireType",function(a){switch(a){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}});E("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1);E("jspb.BinaryConstants.FLOAT32_EPS",1.401298464324817E-45);E("jspb.BinaryConstants.FLOAT32_MIN",1.1754943508222875E-38);E("jspb.BinaryConstants.FLOAT32_MAX",3.4028234663852886E38); 1226E("jspb.BinaryConstants.FLOAT64_EPS",4.9E-324);E("jspb.BinaryConstants.FLOAT64_MIN",2.2250738585072014E-308);E("jspb.BinaryConstants.FLOAT64_MAX",1.7976931348623157E308);E("jspb.BinaryConstants.TWO_TO_20",1048576);E("jspb.BinaryConstants.TWO_TO_23",8388608);E("jspb.BinaryConstants.TWO_TO_31",2147483648);E("jspb.BinaryConstants.TWO_TO_32",4294967296);E("jspb.BinaryConstants.TWO_TO_52",4503599627370496);E("jspb.BinaryConstants.TWO_TO_63",0x7fffffffffffffff);E("jspb.BinaryConstants.TWO_TO_64",1.8446744073709552E19); 1227E("jspb.BinaryConstants.ZERO_HASH","\x00\x00\x00\x00\x00\x00\x00\x00");
1227function PF(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192)b+=String.fromCharCode.apply(null,Xb(a,c,c+8192));return b};var QF=xc(),RF=RD()||wc("iPod"),SF=wc("iPad"),TF=wc("Android")&&!(yc()||xc()||wc("Opera")||wc("Silk")),UF=yc(),VF=wc("Safari")&&!(yc()||wc("Coast")||wc("Opera")||wc("Edge")||wc("Edg/")||wc("OPR")||xc()||wc("Silk")||wc("Android"))&&!(RD()||wc("iPad")||wc("iPod"));var WF={},XF=null;function YF(a,b){!1===b||void 0===b?b=0:!0===b&&(b=3);ZF();b=WF[b];for(var c=[],d=0;d<a.length;d+=3){var e=a[d],f=d+1<a.length,g=f?a[d+1]:0,h=d+2<a.length,k=h?a[d+2]:0,l=e>>2;e=(e&3)<<4|g>>4;g=(g&15)<<2|k>>6;k&=63;h||(k=64,f||(g=64));c.push(b[l],b[e],b[g]||"",b[k]||"")}return c.join("")} 1228function $F(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;aG(a,function(f){d[e++]=f});return d.subarray(0,e)} 1229function aG(a,b){function c(k){for(;d<a.length;){var l=a.charAt(d++),m=XF[l];if(null!=m)return m;if(!/^[\s\xa0]*$/.test(l))throw Error("Unknown base64 encoding at char: "+l);}return k}ZF();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),h=c(64);if(64===h&&-1===e)break;b(e<<2|f>>4);64!=g&&(b(f<<4&240|g>>2),64!=h&&b(g<<6&192|h))}} 1230function ZF(){if(!XF){XF={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));WF[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===XF[f]&&(XF[f]=e)}}}};var bG=0,cG=0;E("jspb.utils.getSplit64Low",function(){return bG});E("jspb.utils.getSplit64High",function(){return cG});function dG(a){var b=a>>>0;a=Math.floor((a-b)/4294967296)>>>0;bG=b;cG=a}E("jspb.utils.splitUint64",dG);function eG(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);a>>>=0;b&&(a=~a>>>0,c=(~c>>>0)+1,4294967295<c&&(c=0,a++,4294967295<a&&(a=0)));bG=c;cG=a}E("jspb.utils.splitInt64",eG); 1231function fG(a){var b=0>a;a=2*Math.abs(a);dG(a);a=bG;var c=cG;b&&(0==a?0==c?c=a=4294967295:(c--,a=4294967295):a--);bG=a;cG=c}E("jspb.utils.splitZigzag64",fG); 1232function gG(a){var b=0>a?1:0;a=b?-a:a;if(0===a)0<1/a?bG=cG=0:(cG=0,bG=2147483648);else if(isNaN(a))cG=0,bG=2147483647;else if(3.4028234663852886E38<a)cG=0,bG=(b<<31|2139095040)>>>0;else if(1.1754943508222875E-38>a)a=Math.round(a/Math.pow(2,-149)),cG=0,bG=(b<<31|a)>>>0;else{var c=Math.floor(Math.log(a)/Math.LN2);a*=Math.pow(2,-c);a=Math.round(8388608*a);16777216<=a&&++c;cG=0;bG=(b<<31|c+127<<23|a&8388607)>>>0}}E("jspb.utils.splitFloat32",gG); 1233function hG(a){var b=0>a?1:0;a=b?-a:a;if(0===a)cG=0<1/a?0:2147483648,bG=0;else if(isNaN(a))cG=2147483647,bG=4294967295;else if(1.7976931348623157E308<a)cG=(b<<31|2146435072)>>>0,bG=0;else if(2.2250738585072014E-308>a)a/=Math.pow(2,-1074),cG=(b<<31|a/4294967296)>>>0,bG=a>>>0;else{var c=a,d=0;if(2<=c)for(;2<=c&&1023>d;)d++,c/=2;else for(;1>c&&-1022<d;)c*=2,d--;a*=Math.pow(2,-d);cG=(b<<31|d+1023<<20|1048576*a&1048575)>>>0;bG=4503599627370496*a>>>0}}E("jspb.utils.splitFloat64",hG); 1234function iG(a){var b=a.charCodeAt(4),c=a.charCodeAt(5),d=a.charCodeAt(6),e=a.charCodeAt(7);
1234bG=a.charCodeAt(0)+(a.charCodeAt(1)<<8)+(a.charCodeAt(2)<<16)+(a.charCodeAt(3)<<24)>>>0;cG=b+(c<<8)+(d<<16)+(e<<24)>>>0}E("jspb.utils.splitHash64",iG);function jG(a,b){return 4294967296*b+(a>>>0)}E("jspb.utils.joinUint64",jG);function kG(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=jG(a,b);return c?-a:a}E("jspb.utils.joinInt64",kG); 1235function lG(a,b,c){var d=b>>31;return c(a<<1^d,(b<<1|a>>>31)^d)}E("jspb.utils.toZigzag64",lG);function mG(a,b){return nG(a,b,kG)}E("jspb.utils.joinZigzag64",mG);function nG(a,b,c){var d=-(a&1);return c((a>>>1|b<<31)^d,b>>>1^d)}E("jspb.utils.fromZigzag64",nG);function oG(a){var b=2*(a>>31)+1,c=a>>>23&255;a&=8388607;return 255==c?a?NaN:Infinity*b:0==c?b*Math.pow(2,-149)*a:b*Math.pow(2,c-150)*(a+Math.pow(2,23))}E("jspb.utils.joinFloat32",oG); 1236function pG(a,b){var c=2*(b>>31)+1,d=b>>>20&2047;a=4294967296*(b&1048575)+a;return 2047==d?a?NaN:Infinity*c:0==d?c*Math.pow(2,-1074)*a:c*Math.pow(2,d-1075)*(a+4503599627370496)}E("jspb.utils.joinFloat64",pG);function qG(a,b){return String.fromCharCode(a>>>0&255,a>>>8&255,a>>>16&255,a>>>24&255,b>>>0&255,b>>>8&255,b>>>16&255,b>>>24&255)}E("jspb.utils.joinHash64",qG);E("jspb.utils.DIGITS","0123456789abcdef".split("")); 1237function rG(a,b){function c(e,f){e=e?String(e):"";return f?"0000000".slice(e.length)+e:e}if(2097151>=b)return""+jG(a,b);var d=(a>>>24|b<<8)>>>0&16777215;b=b>>16&65535;a=(a&16777215)+6777216*d+6710656*b;d+=8147497*b;b*=2;1E7<=a&&(d+=Math.floor(a/1E7),a%=1E7);1E7<=d&&(b+=Math.floor(d/1E7),d%=1E7);return c(b,0)+c(d,b)+c(a,1)}E("jspb.utils.joinUnsignedDecimalString",rG);function sG(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b+(0==a?1:0)>>>0);a=rG(a,b);return c?"-"+a:a} 1238E("jspb.utils.joinSignedDecimalString",sG);function tG(a,b){iG(a);a=bG;var c=cG;return b?sG(a,c):rG(a,c)}E("jspb.utils.hash64ToDecimalString",tG);E("jspb.utils.hash64ArrayToDecimalStrings",function(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]=tG(a[d],b);return c}); 1239function uG(a){function b(g,h){for(var k=0;8>k&&(1!==g||0<h);k++)h=g*e[k]+h,e[k]=h&255,h>>>=8}function c(){for(var g=0;8>g;g++)e[g]=~e[g]&255}K(0<a.length);var d=!1;"-"===a[0]&&(d=!0,a=a.slice(1));for(var e=[0,0,0,0,0,0,0,0],f=0;f<a.length;f++)b(10,a.charCodeAt(f)-48);d&&(c(),b(1,1));return PF(e)}E("jspb.utils.decimalStringToHash64",uG);E("jspb.utils.splitDecimalString",function(a){iG(uG(a))});function vG(a){return String.fromCharCode(10>a?48+a:87+a)}function wG(a){return 97<=a?a-97+10:a-48} 1240E("jspb.utils.hash64ToHexString",function(a){var b=Array(18);b[0]="0";b[1]="x";for(var c=0;8>c;c++){var d=a.charCodeAt(7-c);b[2*c+2]=vG(d>>4);b[2*c+3]=vG(d&15)}return b.join("")});E("jspb.utils.hexStringToHash64",function(a){a=a.toLowerCase();K(18==a.length);K("0"==a[0]);K("x"==a[1]);for(var b="",c=0;8>c;c++)b=String.fromCharCode(16*wG(a.charCodeAt(2*c+2))+wG(a.charCodeAt(2*c+3)))+b;return b});E("jspb.utils.hash64ToNumber",function(a,b){iG(a);a=bG;var c=cG;return b?kG(a,c):jG(a,c)}); 1241E("jspb.utils.numberToHash64",function(a){eG(a);return qG(bG,cG)});E("jspb.utils.countVarints",function(a,b,c){for(var d=0,e=b;e<c;e++)d+=a[e]>>7;return c-b-d});E("jspb.utils.countVarintFields",function(a,b,c,d){var e=0;d*=8;if(128>d)for(;b<c&&a[b++]==d;)for(e++;;){var f=a[b++];if(0==(f&128))break}else for(;b<c;){for(f=d;128<f;){if(a[b]!=(f&127|128))return e;b++;f>>=7}if(a[b++]!=f)break;for(e++;f=a[b++],0!=(f&128););}return e}); 1242function xG(a,b,c,d,e){var f=0;if(128>d)for(;b<c&&a[b++]==d;)f++,b+=e;else for(;b<c;){for(var g=d;128<g;){if(a[b++]!=(g&127|128))return f;g>>=7}if(a[b++]!=g)break;f++;b+=e}return f}E("jspb.utils.countFixed32Fields",function(a,b,c,d){return xG(a,b,c,8*d+5,4)});E("jspb.utils.countFixed64Fields",function(a,b,c,d){return xG(a,b,c,8*d+1,8)}); 1243E("jspb.utils.countDelimitedFields",function(a,b,c,d){var e=0;for(d=8*d+2;b<c;){for(var f=d;128<f;){if(a[b++]!=(f&127|128))return e;f>>=7}if(a[b++]!=f)break;e++;for(var g=0,h=1;f=a[b++],g+=(f&127)*h,h*=128,0!=(f&128););b+=g}return e});E("jspb.utils.debugBytesToTextFormat",function(a){var b='"';if(a){a=yG(a);for(var c=0;c<a.length;c++)b+="\\x",16>a[c]&&(b+="0"),b+=a[c].toString(16)}return b+'"'});
1244E("jspb.utils.debugScalarToTextFormat",function(a){if("string"===typeof a){a=String(a);for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0),f=c+1,g;if(!(g=Ac[d])){if(!(31<e&&127>e))if(e=d,e in Bc)d=Bc[e];else if(e in Ac)d=Bc[e]=Ac[e];else{g=e.charCodeAt(0);if(31<g&&127>g)d=e;else{if(256>g){if(d="\\x",16>g||256<g)d+="0"}else d="\\u",4096>g&&(d+="0");d+=g.toString(16).toUpperCase()}d=Bc[e]=d}g=d}b[f]=g}b.push('"');a=b.join("")}else a=a.toString();return a}); 1245E("jspb.utils.stringToByteArray",function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=a.charCodeAt(c);if(255<d)throw Error("Conversion error: string contains codepoint outside of byte range");b[c]=d}return b}); 1246function yG(a){if(a.constructor===Uint8Array)return a;if(a.constructor===ArrayBuffer)return new Uint8Array(a);if(a.constructor===Array)return new Uint8Array(a);if(a.constructor===String)return $F(a);if(a instanceof Uint8Array)return new Uint8Array(a.buffer,a.byteOffset,a.byteLength);MF("Type not convertible to Uint8Array.");return new Uint8Array(0)}E("jspb.utils.byteSourceToUint8Array",yG);function L(a,b,c){this.h=null;this.g=this.i=this.j=0;this.l=!1;a&&this.uc(a,b,c)}E("jspb.BinaryDecoder",L);var zG=[];L.getInstanceCacheLength=function(){return zG.length};function AG(a,b,c){if(zG.length){var d=zG.pop();a&&d.uc(a,b,c);return d}return new L(a,b,c)}L.alloc=AG;L.prototype.fg=function(){this.clear();100>zG.length&&zG.push(this)};L.prototype.free=L.prototype.fg;L.prototype.clone=function(){return AG(this.h,this.j,this.i-this.j)};L.prototype.clone=L.prototype.clone; 1247L.prototype.clear=function(){this.h=null;this.g=this.i=this.j=0;this.l=!1};L.prototype.clear=L.prototype.clear;L.prototype.Id=function(){return this.h};L.prototype.getBuffer=L.prototype.Id;L.prototype.uc=function(a,b,c){this.h=yG(a);this.j=void 0!==b?b:0;this.i=void 0!==c?this.j+c:this.h.length;this.g=this.j};L.prototype.setBlock=L.prototype.uc;L.prototype.gk=function(){return this.i};L.prototype.getEnd=L.prototype.gk;L.prototype.setEnd=function(a){this.i=a};L.prototype.setEnd=L.prototype.setEnd; 1248L.prototype.reset=function(){this.g=this.j};L.prototype.reset=L.prototype.reset;L.prototype.xb=function(){return this.g};L.prototype.getCursor=L.prototype.xb;L.prototype.ah=function(a){this.g=a};L.prototype.setCursor=L.prototype.ah;L.prototype.advance=function(a){this.g+=a;K(this.g<=this.i)};L.prototype.advance=L.prototype.advance;L.prototype.Jc=function(){return this.g==this.i};L.prototype.atEnd=L.prototype.Jc;L.prototype.ll=function(){return this.g>this.i};L.prototype.pastEnd=L.prototype.ll; 1249L.prototype.getError=function(){return this.l||0>this.g||this.g>this.i};L.prototype.getError=L.prototype.getError;L.prototype.cb=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=this.h[this.g++],c|=(b&127)<<7*e;128<=b&&(b=this.h[this.g++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=this.h[this.g++],d|=(b&127)<<7*e+3;if(128>b)return a(c>>>0,d>>>0);MF("Failed to read varint, encoding is invalid.");this.l=!0};L.prototype.readSplitVarint64=L.prototype.cb; 1250L.prototype.je=function(a){return this.cb(function(b,c){return nG(b,c,a)})};L.prototype.readSplitZigzagVarint64=L.prototype.je;L.prototype.yf=function(a){var b=this.h,c=this.g;this.g+=8;for(var d=0,e=0,f=c+7;f>=c;f--)d=d<<8|b[f],e=e<<8|b[f+4];return a(d,e)};L.prototype.readSplitFixed64=L.prototype.yf;L.prototype.Wi=function(){for(;this.h[this.g]&128;)this.g++;this.g++};L.prototype.skipVarint=L.prototype.Wi;L.prototype.cj=function(a){for(;128<a;)this.g--,a>>>=7;this.g--};L.prototype.unskipVarint=L.prototype.cj; 1251L.prototype.Ja=function(){var a=this.h;var b=a[this.g];var c=b&127;if(128>b)return this.g+=1,K(this.g<=this.i),c;b=a[this.g+1];c|=(b&127)<<7;if(128>b)return this.g+=2,K(this.g<=this.i),c;b=a[this.g+2];c|=(b&127)<<14;if(128>b)return this.g+=3,K(this.g<=this.i),c;b=a[this.g+3];c|=(b&127)<<21;if(128>b)return this.g+=4,K(this.g<=this.i),c;b=a[this.g+4];c|=(b&15)<<28;if(128>b)return this.g+=5,K(this.g<=this.i),c>>>0;this.g+=5;128<=a[this.g++]&&128<=a[this.g++]&&128<=a[this.g++]&&128<=a[this.g++]&&128<= 1252a[this.g++]&&K(!1);K(this.g<=this.i);return c};L.prototype.readUnsignedVarint32=L.prototype.Ja;L.prototype.ie=function(){return~~this.Ja()};L.prototype.readSignedVarint32=L.prototype.ie;L.prototype.o=function(){return this.Ja().toString()};L.prototype.Kg=function(){return this.ie().toString()};L.prototype.readSignedVarint32String=L.prototype.Kg;L.prototype.Og=function(){var a=this.Ja();return a>>>1^-(a&1)};L.prototype.readZigzagVarint32=L.prototype.Og;L.prototype.Mg=function(){return this.cb(jG)}; 1253L.prototype.readUnsignedVarint64=L.prototype.Mg;L.prototype.Ng=function(){return this.cb(rG)};L.prototype.readUnsignedVarint64String=L.prototype.Ng;L.prototype.xf=function(){return this.cb(kG)};L.prototype.readSignedVarint64=L.prototype.xf;L.prototype.Lg=function(){return this.cb(sG)};L.prototype.readSignedVarint64String=L.prototype.Lg;L.prototype.Pg=function(){return this.cb(mG)};L.prototype.readZigzagVarint64=L.prototype.Pg;L.prototype.Ci=function(){return this.je(qG)}; 1254L.prototype.readZigzagVarintHash64=L.prototype.Ci;L.prototype.Qg=function(){return this.je(sG)};L.prototype.readZigzagVarint64String=L.prototype.Qg;L.prototype.mb=function(){var a=this.h[this.g];this.g+=1;K(this.g<=this.i);return a};L.prototype.readUint8=L.prototype.mb;L.prototype.me=function(){var a=this.h[this.g],b=this.h[this.g+1];this.g+=2;K(this.g<=this.i);return a<<0|b<<8};L.prototype.readUint16=L.prototype.me; 1255L.prototype.N=function(){var a=this.h[this.g],b=this.h[this.g+1],c=this.h[this.g+2],d=this.h[this.g+3];this.g+=4;K(this.g<=this.i);return(a<<0|b<<8|c<<16|d<<24)>>>0};L.prototype.readUint32=L.prototype.N;L.prototype.Ra=function(){var a=this.N(),b=this.N();return jG(a,b)};L.prototype.readUint64=L.prototype.Ra;L.prototype.oe=function(){var a=this.N(),b=this.N();return rG(a,b)};L.prototype.readUint64String=L.prototype.oe; 1256L.prototype.Al=function(){var a=this.h[this.g];this.g+=1;K(this.g<=this.i);return a<<24>>24};L.prototype.readInt8=L.prototype.Al;L.prototype.yl=function(){var a=this.h[this.g],b=this.h[this.g+1];this.g+=2;K(this.g<=this.i);return(a<<0|b<<8)<<16>>16};L.prototype.readInt16=L.prototype.yl;L.prototype.Jb=function(){var a=this.h[this.g],b=this.h[this.g+1],c=this.h[this.g+2],d=this.h[this.g+3];this.g+=4;K(this.g<=this.i);return a<<0|b<<8|c<<16|d<<24};L.prototype.readInt32=L.prototype.Jb; 1257L.prototype.fe=function(){var a=this.N(),b=this.N();return kG(a,b)};L.prototype.readInt64=L.prototype.fe;L.prototype.ge=function(){var a=this.N(),b=this.N();return sG(a,b)};L.prototype.readInt64String=L.prototype.ge;L.prototype.ee=function(){var a=this.N();return oG(a,0)};L.prototype.readFloat=L.prototype.ee;L.prototype.be=function(){var a=this.N(),b=this.N();return pG(a,b)};L.prototype.readDouble=L.prototype.be;L.prototype.vf=function(){return!!this.h[this.g++]};L.prototype.readBool=L.prototype.vf; 1258L.prototype.wf=function(){return this.ie()};L.prototype.readEnum=L.prototype.wf; 1259L.prototype.ke=function(a){var b=this.h,c=this.g;a=c+a;for(var d=[],e="";c<a;){var f=b[c++];if(128>f)d.push(f);else if(192>f)continue;else if(224>f){var g=b[c++];d.push((f&31)<<6|g&63)}else if(240>f){g=b[c++];var h=b[c++];d.push((f&15)<<12|(g&63)<<6|h&63)}else if(248>f){g=b[c++];h=b[c++];var k=b[c++];f=(f&7)<<18|(g&63)<<12|(h&63)<<6|k&63;f-=65536;d.push((f>>10&1023)+55296,(f&1023)+56320)}8192<=d.length&&(e+=String.fromCharCode.apply(null,d),d.length=0)}e+=PF(d);this.g=c;return e}; 1260L.prototype.readString=L.prototype.ke;L.prototype.gm=function(){var a=this.Ja();return this.ke(a)};L.prototype.readStringWithLength=L.prototype.gm;
1260L.prototype.Ya=function(a){if(0>a||this.g+a>this.h.length)return this.l=!0,MF("Invalid byte length!"),new Uint8Array(0);var b=this.h.subarray(this.g,this.g+a);this.g+=a;K(this.g<=this.i);return b};L.prototype.readBytes=L.prototype.Ya;L.prototype.pe=function(){return this.cb(qG)};L.prototype.readVarintHash64=L.prototype.pe; 1261L.prototype.ce=function(){var a=this.h,b=this.g,c=a[b],d=a[b+1],e=a[b+2],f=a[b+3],g=a[b+4],h=a[b+5],k=a[b+6];a=a[b+7];this.g+=8;return String.fromCharCode(c,d,e,f,g,h,k,a)};L.prototype.readFixedHash64=L.prototype.ce;function P(a,b,c){this.g=AG(a,b,c);this.o=this.g.xb();this.h=this.i=-1;this.j=!1;this.l=null}E("jspb.BinaryReader",P);var BG=[];P.clearInstanceCache=function(){BG=[]};P.getInstanceCacheLength=function(){return BG.length};function CG(a,b,c){if(BG.length){var d=BG.pop();a&&d.g.uc(a,b,c);return d}return new P(a,b,c)}P.alloc=CG;P.prototype.Dj=CG;P.prototype.alloc=P.prototype.Dj;P.prototype.fg=function(){this.g.clear();this.h=this.i=-1;this.j=!1;this.l=null;100>BG.length&&BG.push(this)}; 1262P.prototype.free=P.prototype.fg;P.prototype.jk=function(){return this.o};P.prototype.getFieldCursor=P.prototype.jk;P.prototype.xb=function(){return this.g.xb()};P.prototype.getCursor=P.prototype.xb;P.prototype.Id=function(){return this.g.Id()};P.prototype.getBuffer=P.prototype.Id;P.prototype.lk=function(){return this.i};P.prototype.getFieldNumber=P.prototype.lk;P.prototype.Lk=function(){return this.h};P.prototype.getWireType=P.prototype.Lk;P.prototype.Pk=function(){return 2==this.h}; 1263P.prototype.isDelimited=P.prototype.Pk;P.prototype.oi=function(){return 4==this.h};P.prototype.isEndGroup=P.prototype.oi;P.prototype.getError=function(){return this.j||this.g.getError()};P.prototype.getError=P.prototype.getError;P.prototype.uc=function(a,b,c){this.g.uc(a,b,c);this.h=this.i=-1};P.prototype.setBlock=P.prototype.uc;P.prototype.reset=function(){this.g.reset();this.h=this.i=-1};P.prototype.reset=P.prototype.reset;P.prototype.advance=function(a){this.g.advance(a)};P.prototype.advance=P.prototype.advance; 1264P.prototype.nf=function(){if(this.g.Jc())return!1;if(this.getError())return MF("Decoder hit an error"),!1;this.o=this.g.xb();var a=this.g.Ja(),b=a>>>3;a&=7;if(0!=a&&5!=a&&1!=a&&2!=a&&3!=a&&4!=a)return MF("Invalid wire type: %s (at position %s)",a,this.o),this.j=!0,!1;this.i=b;this.h=a;return!0};P.prototype.nextField=P.prototype.nf;P.prototype.Bh=function(){this.g.cj(this.i<<3|this.h)};P.prototype.unskipHeader=P.prototype.Bh; 1265P.prototype.Cm=function(){var a=this.i;for(this.Bh();this.nf()&&this.i==a;)this.Yb();this.g.Jc()||this.Bh()};P.prototype.skipMatchingFields=P.prototype.Cm;P.prototype.Xi=function(){0!=this.h?(MF("Invalid wire type for skipVarintField"),this.Yb()):this.g.Wi()};P.prototype.skipVarintField=P.prototype.Xi;P.prototype.Si=function(){if(2!=this.h)MF("Invalid wire type for skipDelimitedField"),this.Yb();else{var a=this.g.Ja();this.g.advance(a)}};P.prototype.skipDelimitedField=P.prototype.Si; 1266P.prototype.Ti=function(){5!=this.h?(MF("Invalid wire type for skipFixed32Field"),this.Yb()):this.g.advance(4)};P.prototype.skipFixed32Field=P.prototype.Ti;P.prototype.Ui=function(){1!=this.h?(MF("Invalid wire type for skipFixed64Field"),this.Yb()):this.g.advance(8)};P.prototype.skipFixed64Field=P.prototype.Ui;P.prototype.Vi=function(){var a=this.i;do{if(!this.nf()){MF("Unmatched start-group tag: stream EOF");this.j=!0;break}if(4==this.h){this.i!=a&&(MF("Unmatched end-group tag"),this.j=!0);break}this.Yb()}while(1)}; 1267P.prototype.skipGroup=P.prototype.Vi;P.prototype.Yb=function(){switch(this.h){case 0:this.Xi();break;case 1:this.Ui();break;case 2:this.Si();break;case 5:this.Ti();break;case 3:this.Vi();break;default:MF("Invalid wire encoding for field.")}};P.prototype.skipField=P.prototype.Yb;P.prototype.im=function(a,b){null===this.l&&(this.l={});K(!this.l[a]);this.l[a]=b};P.prototype.registerReadCallback=P.prototype.im;P.prototype.tm=function(a){K(null!==this.l);a=this.l[a];K(a);return a(this)}; 1268P.prototype.runReadCallback=P.prototype.tm;P.prototype.Bl=function(a,b){K(2==this.h);var c=this.g.i,d=this.g.Ja();d=this.g.xb()+d;this.g.setEnd(d);b(a,this);this.g.ah(d);this.g.setEnd(c)};P.prototype.readMessage=P.prototype.Bl;P.prototype.xl=function(a,b,c){K(3==this.h);K(this.i==a);c(b,this);
1268this.j||4==this.h||(MF("Group submessage did not end with an END_GROUP tag"),this.j=!0)};P.prototype.readGroup=P.prototype.xl; 1269P.prototype.kk=function(){K(2==this.h);var a=this.g.Ja(),b=this.g.xb(),c=b+a;a=AG(this.g.Id(),b,a);this.g.ah(c);return a};P.prototype.getFieldDecoder=P.prototype.kk;P.prototype.Jb=function(){K(0==this.h);return this.g.ie()};P.prototype.readInt32=P.prototype.Jb;P.prototype.zl=function(){K(0==this.h);return this.g.Kg()};P.prototype.readInt32String=P.prototype.zl;P.prototype.fe=function(){K(0==this.h);return this.g.xf()};P.prototype.readInt64=P.prototype.fe;P.prototype.ge=function(){K(0==this.h);return this.g.Lg()}; 1270P.prototype.readInt64String=P.prototype.ge;P.prototype.N=function(){K(0==this.h);return this.g.Ja()};P.prototype.readUint32=P.prototype.N;P.prototype.hm=function(){K(0==this.h);return this.g.o()};P.prototype.readUint32String=P.prototype.hm;P.prototype.Ra=function(){K(0==this.h);return this.g.Mg()};P.prototype.readUint64=P.prototype.Ra;P.prototype.oe=function(){K(0==this.h);return this.g.Ng()};P.prototype.readUint64String=P.prototype.oe;P.prototype.cm=function(){K(0==this.h);return this.g.Og()}; 1271P.prototype.readSint32=P.prototype.cm;P.prototype.dm=function(){K(0==this.h);return this.g.Pg()};P.prototype.readSint64=P.prototype.dm;P.prototype.em=function(){K(0==this.h);return this.g.Qg()};P.prototype.readSint64String=P.prototype.em;P.prototype.ul=function(){K(5==this.h);return this.g.N()};P.prototype.readFixed32=P.prototype.ul;P.prototype.vl=function(){K(1==this.h);return this.g.Ra()};P.prototype.readFixed64=P.prototype.vl;P.prototype.wl=function(){K(1==this.h);return this.g.oe()}; 1272P.prototype.readFixed64String=P.prototype.wl;P.prototype.Zl=function(){K(5==this.h);return this.g.Jb()};P.prototype.readSfixed32=P.prototype.Zl;P.prototype.$l=function(){K(5==this.h);return this.g.Jb().toString()};P.prototype.readSfixed32String=P.prototype.$l;P.prototype.am=function(){K(1==this.h);return this.g.fe()};P.prototype.readSfixed64=P.prototype.am;P.prototype.bm=function(){K(1==this.h);return this.g.ge()};P.prototype.readSfixed64String=P.prototype.bm; 1273P.prototype.ee=function(){K(5==this.h);return this.g.ee()};P.prototype.readFloat=P.prototype.ee;P.prototype.be=function(){K(1==this.h);return this.g.be()};P.prototype.readDouble=P.prototype.be;P.prototype.vf=function(){K(0==this.h);return!!this.g.Ja()};P.prototype.readBool=P.prototype.vf;P.prototype.wf=function(){K(0==this.h);return this.g.xf()};P.prototype.readEnum=P.prototype.wf;P.prototype.ke=function(){K(2==this.h);var a=this.g.Ja();return this.g.ke(a)};P.prototype.readString=P.prototype.ke; 1274P.prototype.Ya=function(){K(2==this.h);var a=this.g.Ja();return this.g.Ya(a)};P.prototype.readBytes=P.prototype.Ya;P.prototype.pe=function(){K(0==this.h);return this.g.pe()};P.prototype.readVarintHash64=P.prototype.pe;P.prototype.fm=function(){K(0==this.h);return this.g.Ci()};P.prototype.readSintHash64=P.prototype.fm;P.prototype.cb=function(a){K(0==this.h);return this.g.cb(a)};P.prototype.readSplitVarint64=P.prototype.cb; 1275P.prototype.je=function(a){K(0==this.h);return this.g.cb(function(b,c){return nG(b,c,a)})};P.prototype.readSplitZigzagVarint64=P.prototype.je;P.prototype.ce=function(){K(1==this.h);return this.g.ce()};P.prototype.readFixedHash64=P.prototype.ce;P.prototype.yf=function(a){K(1==this.h);return this.g.yf(a)};P.prototype.readSplitFixed64=P.prototype.yf;function DG(a,b){K(2==a.h);var c=a.g.Ja();c=a.g.xb()+c;for(var d=[];a.g.xb()<c;)d.push(b.call(a.g));return d}P.prototype.Kl=function(){return DG(this,this.g.ie)}; 1276P.prototype.readPackedInt32=P.prototype.Kl;P.prototype.Ll=function(){return DG(this,this.g.Kg)};P.prototype.readPackedInt32String=P.prototype.Ll;P.prototype.Ml=function(){return DG(this,this.g.xf)};P.prototype.readPackedInt64=P.prototype.Ml;P.prototype.Nl=function(){return DG(this,this.g.Lg)};P.prototype.readPackedInt64String=P.prototype.Nl;P.prototype.Ul=function(){return DG(this,this.g.Ja)};P.prototype.readPackedUint32=P.prototype.Ul;P.prototype.Vl=function(){return DG(this,this.g.o)}; 1277P.prototype.readPackedUint32String=P.prototype.Vl;P.prototype.Wl=function(){return DG(this,this.g.Mg)};P.prototype.readPackedUint64=P.prototype.Wl;P.prototype.Xl=function(){return DG(this,this.g.Ng)};P.prototype.readPackedUint64String=P.prototype.Xl;P.prototype.Rl=function(){return DG(this,this.g.Og)};P.prototype.readPackedSint32=P.prototype.Rl;P.prototype.Sl=function(){return DG(this,this.g.Pg)};P.prototype.readPackedSint64=P.prototype.Sl;P.prototype.Tl=function(){return DG(this,this.g.Qg)}; 1278P.prototype.readPackedSint64String=P.prototype.Tl;P.prototype.Fl=function(){return DG(this,this.g.N)};P.prototype.readPackedFixed32=P.prototype.Fl;P.prototype.Gl=function(){return DG(this,this.g.Ra)};P.prototype.readPackedFixed64=P.prototype.Gl;P.prototype.Hl=function(){return DG(this,this.g.oe)};P.prototype.readPackedFixed64String=P.prototype.Hl;P.prototype.Ol=function(){return DG(this,this.g.Jb)};P.prototype.readPackedSfixed32=P.prototype.Ol;P.prototype.Pl=function(){return DG(this,this.g.fe)}; 1279P.prototype.readPackedSfixed64=P.prototype.Pl;P.prototype.Ql=function(){return DG(this,this.g.ge)};P.prototype.readPackedSfixed64String=P.prototype.Ql;P.prototype.Jl=function(){return DG(this,this.g.ee)};P.prototype.readPackedFloat=P.prototype.Jl;P.prototype.Dl=function(){return DG(this,this.g.be)};P.prototype.readPackedDouble=P.prototype.Dl;P.prototype.Cl=function(){return DG(this,this.g.vf)};P.prototype.readPackedBool=P.prototype.Cl;P.prototype.El=function(){return DG(this,this.g.wf)}; 1280P.prototype.readPackedEnum=P.prototype.El;P.prototype.Yl=function(){return DG(this,this.g.pe)};P.prototype.readPackedVarintHash64=P.prototype.Yl;P.prototype.Il=function(){return DG(this,this.g.ce)};P.prototype.readPackedFixedHash64=P.prototype.Il;function Q(){this.g=[]}E("jspb.BinaryEncoder",Q);Q.prototype.length=function(){return this.g.length};Q.prototype.length=Q.prototype.length;Q.prototype.end=function(){var a=this.g;this.g=[];return a};Q.prototype.end=Q.prototype.end;Q.prototype.Ea=function(a,b){K(a==Math.floor(a));K(b==Math.floor(b));K(0<=a&&4294967296>a);for(K(0<=b&&4294967296>b);0<b||127<a;)this.g.push(a&127|128),a=(a>>>7|b<<25)>>>0,b>>>=7;this.g.push(a)};Q.prototype.writeSplitVarint64=Q.prototype.Ea; 1281Q.prototype.rb=function(a,b){K(a==Math.floor(a));K(b==Math.floor(b));K(0<=a&&4294967296>a);K(0<=b&&4294967296>b);this.Ma(a);this.Ma(b)};Q.prototype.writeSplitFixed64=Q.prototype.rb;Q.prototype.ya=function(a){K(a==Math.floor(a));for(K(0<=a&&4294967296>a);127<a;)this.g.push(a&127|128),a>>>=7;this.g.push(a)};Q.prototype.writeUnsignedVarint32=Q.prototype.ya; 1282Q.prototype.Bc=function(a){K(a==Math.floor(a));K(-2147483648<=a&&2147483648>a);if(0<=a)this.ya(a);else{for(var b=0;9>b;b++)this.g.push(a&127|128),a>>=7;this.g.push(1)}};Q.prototype.writeSignedVarint32=Q.prototype.Bc;Q.prototype.If=function(a){K(a==Math.floor(a));K(0<=a&&1.8446744073709552E19>a);eG(a);this.Ea(bG,cG)};Q.prototype.writeUnsignedVarint64=Q.prototype.If;Q.prototype.Hf=function(a){K(a==Math.floor(a));K(-9223372036854775808<=a&&0x7fffffffffffffff>a);eG(a);this.Ea(bG,cG)}; 1283Q.prototype.writeSignedVarint64=Q.prototype.Hf;Q.prototype.Jf=function(a){K(a==Math.floor(a));K(-2147483648<=a&&2147483648>a);this.ya((a<<1^a>>31)>>>0)};Q.prototype.writeZigzagVarint32=Q.prototype.Jf;Q.prototype.Kf=function(a){K(a==Math.floor(a));K(-9223372036854775808<=a&&0x7fffffffffffffff>a);fG(a);this.Ea(bG,cG)};Q.prototype.writeZigzagVarint64=Q.prototype.Kf;Q.prototype.Gh=function(a){this.kd(uG(a))};Q.prototype.writeZigzagVarint64String=Q.prototype.Gh; 1284Q.prototype.kd=function(a){var b=this;iG(a);lG(bG,cG,function(c,d){b.Ea(c>>>0,d>>>0)})};Q.prototype.writeZigzagVarintHash64=Q.prototype.kd;Q.prototype.jo=function(a){K(a==Math.floor(a));K(0<=a&&256>a);this.g.push(a>>>0&255)};Q.prototype.writeUint8=Q.prototype.jo;Q.prototype.io=function(a){K(a==Math.floor(a));K(0<=a&&65536>a);this.g.push(a>>>0&255);this.g.push(a>>>8&255)};Q.prototype.writeUint16=Q.prototype.io; 1285Q.prototype.Ma=function(a){K(a==Math.floor(a));K(0<=a&&4294967296>a);this.g.push(a>>>0&255);this.g.push(a>>>8&255);this.g.push(a>>>16&255);this.g.push(a>>>24&255)};Q.prototype.writeUint32=Q.prototype.Ma;Q.prototype.jd=function(a){K(a==Math.floor(a));K(0<=a&&1.8446744073709552E19>a);dG(a);this.Ma(bG);this.Ma(cG)};Q.prototype.writeUint64=Q.prototype.jd;Q.prototype.Tm=function(a){K(a==Math.floor(a));K(-128<=a&&128>a);this.g.push(a>>>0&255)};Q.prototype.writeInt8=Q.prototype.Tm; 1286Q.prototype.Sm=function(a){K(a==Math.floor(a));K(-32768<=a&&32768>a);this.g.push(a>>>0&255);this.g.push(a>>>8&255)};Q.prototype.writeInt16=Q.prototype.Sm;Q.prototype.fd=function(a){K(a==Math.floor(a));K(-2147483648<=a&&2147483648>a);this.g.push(a>>>0&255);this.g.push(a>>>8&255);this.g.push(a>>>16&255);this.g.push(a>>>24&255)};Q.prototype.writeInt32=Q.prototype.fd;Q.prototype.gd=function(a){K(a==Math.floor(a));K(-9223372036854775808<=a&&0x7fffffffffffffff>a);eG(a);this.rb(bG,cG)}; 1287Q.prototype.writeInt64=Q.prototype.gd;Q.prototype.Ae=function(a){K(a==Math.floor(a));K(-9223372036854775808<=+a&&0x7fffffffffffffff>+a);iG(uG(a));this.rb(bG,cG)};Q.prototype.writeInt64String=Q.prototype.Ae;Q.prototype.Ac=function(a){K(Infinity===a||-Infinity===a||isNaN(a)||-3.4028234663852886E38<=a&&3.4028234663852886E38>=a);gG(a);this.Ma(bG)};Q.prototype.writeFloat=Q.prototype.Ac; 1288Q.prototype.xc=function(a){K(Infinity===a||-Infinity===a||isNaN(a)||-1.7976931348623157E308<=a&&1.7976931348623157E308>=a);hG(a);this.Ma(bG);this.Ma(cG)};Q.prototype.writeDouble=Q.prototype.xc;Q.prototype.U=function(a){K("boolean"===typeof a||"number"===typeof a);this.g.push(a?1:0)};Q.prototype.writeBool=Q.prototype.U;Q.prototype.yc=function(a){K(a==Math.floor(a));K(-2147483648<=a&&2147483648>a);this.Bc(a)};Q.prototype.writeEnum=Q.prototype.yc;Q.prototype.ze=function(a){this.g.push.apply(this.g,a)}; 1289Q.prototype.writeBytes=Q.prototype.ze;Q.prototype.Cc=function(a){iG(a);this.Ea(bG,cG)};Q.prototype.writeVarintHash64=Q.prototype.Cc;Q.prototype.zc=function(a){iG(a);this.Ma(bG);this.Ma(cG)};Q.prototype.writeFixedHash64=Q.prototype.zc; 1290Q.prototype.hd=function(a){var b=this.g.length;LF(a);for(var c=0;c<a.length;
1290c++){var d=a.charCodeAt(c);if(128>d)this.g.push(d);else if(2048>d)this.g.push(d>>6|192),this.g.push(d&63|128);else if(65536>d)if(55296<=d&&56319>=d&&c+1<a.length){var e=a.charCodeAt(c+1);56320<=e&&57343>=e&&(d=1024*(d-55296)+e-56320+65536,this.g.push(d>>18|240),this.g.push(d>>12&63|128),this.g.push(d>>6&63|128),this.g.push(d&63|128),c++)}else this.g.push(d>>12|224),this.g.push(d>>6&63|128),this.g.push(d&63|128)}return this.g.length- 1291b};Q.prototype.writeString=Q.prototype.hd;function EG(a,b){this.g=a;this.h=b}E("jspb.arith.UInt64",EG);EG.prototype.cmp=function(a){return this.h<a.h||this.h==a.h&&this.g<a.g?-1:this.h==a.h&&this.g==a.g?0:1};EG.prototype.cmp=EG.prototype.cmp;EG.prototype.Tg=function(){return new EG((this.g>>>1|(this.h&1)<<31)>>>0,this.h>>>1>>>0)};EG.prototype.rightShift=EG.prototype.Tg;EG.prototype.qg=function(){return new EG(this.g<<1>>>0,(this.h<<1|this.g>>>31)>>>0)};EG.prototype.leftShift=EG.prototype.qg;EG.prototype.ti=function(){return!!(this.h&2147483648)}; 1292EG.prototype.msb=EG.prototype.ti;EG.prototype.Uk=function(){return!!(this.g&1)};EG.prototype.lsb=EG.prototype.Uk;EG.prototype.Hh=function(){return 0==this.g&&0==this.h};EG.prototype.zero=EG.prototype.Hh;EG.prototype.add=function(a){return new EG((this.g+a.g&4294967295)>>>0>>>0,((this.h+a.h&4294967295)>>>0)+(4294967296<=this.g+a.g?1:0)>>>0)};EG.prototype.add=EG.prototype.add; 1293EG.prototype.sub=function(a){return new EG((this.g-a.g&4294967295)>>>0>>>0,((this.h-a.h&4294967295)>>>0)-(0>this.g-a.g?1:0)>>>0)};EG.prototype.sub=EG.prototype.sub;function FG(a,b){var c=a&65535;a>>>=16;var d=b&65535,e=b>>>16;b=c*d+65536*(c*e&65535)+65536*(a*d&65535);for(c=a*e+(c*e>>>16)+(a*d>>>16);4294967296<=b;)b-=4294967296,c+=1;return new EG(b>>>0,c>>>0)}EG.mul32x32=FG;EG.prototype.wi=function(a){var b=FG(this.g,a);a=FG(this.h,a);a.h=a.g;a.g=0;return b.add(a)};EG.prototype.mul=EG.prototype.wi; 1294EG.prototype.Xh=function(a){if(0==a)return[];var b=new EG(0,0),c=new EG(this.g,this.h);a=new EG(a,0);for(var d=new EG(1,0);!a.ti();)a=a.qg(),d=d.qg();for(;!d.Hh();)0>=a.cmp(c)&&(b=b.add(d),c=c.sub(a)),a=a.Tg(),d=d.Tg();return[b,c]};EG.prototype.div=EG.prototype.Xh;EG.prototype.toString=function(){for(var a="",b=this;!b.Hh();){b=b.Xh(10);var c=b[0];a=b[1].g+a;b=c}""==a&&(a="0");return a};EG.prototype.toString=EG.prototype.toString; 1295function GG(a){for(var b=new EG(0,0),c=new EG(0,0),d=0;d<a.length;d++){if("0">a[d]||"9"<a[d])return null;c.g=parseInt(a[d],10);b=b.wi(10).add(c)}return b}EG.fromString=GG;EG.prototype.clone=function(){return new EG(this.g,this.h)};EG.prototype.clone=EG.prototype.clone;function HG(a,b){this.g=a;this.h=b}E("jspb.arith.Int64",HG);HG.prototype.add=function(a){return new HG((this.g+a.g&4294967295)>>>0>>>0,((this.h+a.h&4294967295)>>>0)+(4294967296<=this.g+a.g?1:0)>>>0)};HG.prototype.add=HG.prototype.add; 1296HG.prototype.sub=function(a){return new HG((this.g-a.g&4294967295)>>>0>>>0,((this.h-a.h&4294967295)>>>0)-(0>this.g-a.g?1:0)>>>0)};HG.prototype.sub=HG.prototype.sub;HG.prototype.clone=function(){return new HG(this.g,this.h)};HG.prototype.clone=HG.prototype.clone;HG.prototype.toString=function(){var a=0!=(this.h&2147483648),b=new EG(this.g,this.h);a&&(b=(new EG(0,0)).sub(b));return(a?"-":"")+b.toString()};HG.prototype.toString=HG.prototype.toString; 1297function IG(a){var b=0<a.length&&"-"==a[0];b&&(a=a.substring(1));a=GG(a);if(null===a)return null;b&&(a=(new EG(0,0)).sub(a));return new HG(a.g,a.h)}HG.fromString=IG;function R(){this.i=[];this.h=0;this.g=new Q;this.j=[]}E("jspb.BinaryWriter",R);function JG(a,b){var c=a.g.end();a.i.push(c);a.i.push(b);a.h+=c.length+b.length}function KG(a,b){LG(a,b,2);b=a.g.end();a.i.push(b);a.h+=b.length;b.push(a.h);return b}function MG(a,b){var c=b.pop();c=a.h+a.g.length()-c;for(K(0<=c);127<c;)b.push(c&127|128),c>>>=7,a.h++;b.push(c);a.h++}R.prototype.lj=function(a,b,c){JG(this,a.subarray(b,c))};R.prototype.writeSerializedMessage=R.prototype.lj; 1298R.prototype.Yk=function(a,b,c){null!=a&&null!=b&&null!=c&&this.lj(a,b,c)};R.prototype.maybeWriteSerializedMessage=R.prototype.Yk;R.prototype.reset=function(){this.i=[];this.g.end();this.h=0;this.j=[]};R.prototype.reset=R.prototype.reset;R.prototype.ig=function(){K(0==this.j.length);for(var a=new Uint8Array(this.h+this.g.length()),b=this.i,c=b.length,d=0,e=0;e<c;e++){var f=b[e];a.set(f,d);d+=f.length}b=this.g.end();a.set(b,d);d+=b.length;K(d==a.length);this.i=[a];return a}; 1299R.prototype.getResultBuffer=R.prototype.ig;R.prototype.Ck=function(a){return YF(this.ig(),a)};R.prototype.getResultBase64String=R.prototype.Ck;R.prototype.Mh=function(a){this.j.push(KG(this,a))};R.prototype.beginSubMessage=R.prototype.Mh;R.prototype.Zh=function(){K(0<=this.j.length);MG(this,this.j.pop())};R.prototype.endSubMessage=R.prototype.Zh;function LG(a,b,c){K(1<=b&&b==Math.floor(b));a.g.ya(8*b+c)} 1300R.prototype.Qm=function(a,b,c){switch(a){case 1:this.xc(b,c);break;case 2:this.Ac(b,c);break;case 3:this.gd(b,c);break;case 4:this.jd(b,c);break;case 5:this.fd(b,c);break;case 6:this.Dh(b,c);break;case 7:this.Ch(b,c);break;case 8:this.U(b,c);break;case 9:this.hd(b,c);break;case 10:MF("Group field type not supported in writeAny()");break;case 11:MF("Message field type not supported in writeAny()");break;case 12:this.ze(b,c);break;case 13:this.Ma(b,c);break;case 14:this.yc(b,c);break;case 15:this.Eh(b, 1301c);break;case 16:this.Fh(b,c);break;case 17:this.nj(b,c);break;case 18:this.oj(b,c);break;case 30:this.zc(b,c);break;case 31:this.Cc(b,c);break;default:MF("Invalid field type in writeAny()")}};R.prototype.writeAny=R.prototype.Qm;function NG(a,b,c){null!=c&&(LG(a,b,0),a.g.ya(c))}function OG(a,b,c){null!=c&&(LG(a,b,0),a.g.Bc(c))}R.prototype.fd=function(a,b){null!=b&&(K(-2147483648<=b&&2147483648>b),OG(this,a,b))};R.prototype.writeInt32=R.prototype.fd; 1302R.prototype.ij=function(a,b){null!=b&&(b=parseInt(b,10),K(-2147483648<=b&&2147483648>b),OG(this,a,b))};R.prototype.writeInt32String=R.prototype.ij;R.prototype.gd=function(a,b){null!=b&&(K(-9223372036854775808<=b&&0x7fffffffffffffff>b),null!=b&&(LG(this,a,0),this.g.Hf(b)))};R.prototype.writeInt64=R.prototype.gd;R.prototype.Ae=function(a,b){null!=b&&(b=IG(b),LG(this,a,0),this.g.Ea(b.g,b.h))};R.prototype.writeInt64String=R.prototype.Ae; 1303R.prototype.Ma=function(a,b){null!=b&&(K(0<=b&&4294967296>b),NG(this,a,b))};R.prototype.writeUint32=R.prototype.Ma;R.prototype.qj=function(a,b){null!=b&&(b=parseInt(b,10),K(0<=b&&4294967296>b),NG(this,a,b))};R.prototype.writeUint32String=R.prototype.qj;R.prototype.jd=function(a,b){null!=b&&(K(0<=b&&1.8446744073709552E19>b),null!=b&&(LG(this,a,0),this.g.If(b)))};R.prototype.writeUint64=R.prototype.jd;R.prototype.rj=function(a,b){null!=b&&(b=GG(b),LG(this,a,0),this.g.Ea(b.g,b.h))}; 1304R.prototype.writeUint64String=R.prototype.rj;R.prototype.nj=function(a,b){null!=b&&(K(-2147483648<=b&&2147483648>b),null!=b&&(LG(this,a,0),this.g.Jf(b)))};R.prototype.writeSint32=R.prototype.nj;R.prototype.oj=function(a,b){null!=b&&(K(-9223372036854775808<=b&&0x7fffffffffffffff>b),null!=b&&(LG(this,a,0),this.g.Kf(b)))};R.prototype.writeSint64=R.prototype.oj;R.prototype.ho=function(a,b){null!=b&&null!=b&&(LG(this,a,0),this.g.kd(b))};R.prototype.writeSintHash64=R.prototype.ho; 1305R.prototype.fo=function(a,b){null!=b&&null!=b&&(LG(this,a,0),this.g.Gh(b))};R.prototype.writeSint64String=R.prototype.fo;R.prototype.Ch=function(a,b){null!=b&&(K(0<=b&&4294967296>b),LG(this,a,5),this.g.Ma(b))};R.prototype.writeFixed32=R.prototype.Ch;R.prototype.Dh=function(a,b){null!=b&&(K(0<=b&&1.8446744073709552E19>b),LG(this,a,1),this.g.jd(b))};R.prototype.writeFixed64=R.prototype.Dh;R.prototype.hj=function(a,b){null!=b&&(b=GG(b),LG(this,a,1),this.g.rb(b.g,b.h))}; 1306R.prototype.writeFixed64String=R.prototype.hj;R.prototype.Eh=function(a,b){null!=b&&(K(-2147483648<=b&&2147483648>b),LG(this,a,5),this.g.fd(b))};R.prototype.writeSfixed32=R.prototype.Eh;R.prototype.Fh=function(a,b){null!=b&&(K(-9223372036854775808<=b&&0x7fffffffffffffff>b),LG(this,a,1),this.g.gd(b))};R.prototype.writeSfixed64=R.prototype.Fh;R.prototype.mj=function(a,b){null!=b&&(b=IG(b),LG(this,a,1),this.g.rb(b.g,b.h))};R.prototype.writeSfixed64String=R.prototype.mj; 1307R.prototype.Ac=function(a,b){null!=b&&(LG(this,a,5),this.g.Ac(b))};R.prototype.writeFloat=R.prototype.Ac;R.prototype.xc=function(a,b){null!=b&&(LG(this,a,1),this.g.xc(b))};R.prototype.writeDouble=R.prototype.xc;R.prototype.U=function(a,b){null!=b&&(K("boolean"===typeof b||"number"===typeof b),LG(this,a,0),this.g.U(b))};R.prototype.writeBool=R.prototype.U;R.prototype.yc=function(a,b){null!=b&&(K(-2147483648<=b&&2147483648>b),LG(this,a,0),this.g.Bc(b))};R.prototype.writeEnum=R.prototype.yc; 1308R.prototype.hd=function(a,b){null!=b&&(a=KG(this,a),this.g.hd(b),MG(this,a))};R.prototype.writeString=R.prototype.hd;R.prototype.ze=function(a,b){null!=b&&(b=yG(b),LG(this,a,2),this.g.ya(b.length),JG(this,b))};R.prototype.writeBytes=R.prototype.ze;R.prototype.Um=function(a,b,c){null!=b&&(a=KG(this,a),c(b,this),MG(this,a))};R.prototype.writeMessage=R.prototype.Um;R.prototype.Vm=function(a,b,c){null!=b&&(LG(this,1,3),LG(this,2,0),this.g.Bc(a),a=KG(this,3),c(b,this),MG(this,a),LG(this,1,4))}; 1309R.prototype.writeMessageSet=R.prototype.Vm;
1309R.prototype.Rm=function(a,b,c){null!=b&&(LG(this,a,3),c(b,this),LG(this,a,4))};R.prototype.writeGroup=R.prototype.Rm;R.prototype.zc=function(a,b){null!=b&&(K(8==b.length),LG(this,a,1),this.g.zc(b))};R.prototype.writeFixedHash64=R.prototype.zc;R.prototype.Cc=function(a,b){null!=b&&(K(8==b.length),LG(this,a,0),this.g.Cc(b))};R.prototype.writeVarintHash64=R.prototype.Cc;R.prototype.rb=function(a,b,c){LG(this,a,1);this.g.rb(b,c)}; 1310R.prototype.writeSplitFixed64=R.prototype.rb;R.prototype.Ea=function(a,b,c){LG(this,a,0);this.g.Ea(b,c)};R.prototype.writeSplitVarint64=R.prototype.Ea;R.prototype.pj=function(a,b,c){LG(this,a,0);var d=this.g;lG(b,c,function(e,f){d.Ea(e>>>0,f>>>0)})};R.prototype.writeSplitZigzagVarint64=R.prototype.pj;R.prototype.Kn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)OG(this,a,b[c])};R.prototype.writeRepeatedInt32=R.prototype.Kn; 1311R.prototype.Ln=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.ij(a,b[c])};R.prototype.writeRepeatedInt32String=R.prototype.Ln;R.prototype.Mn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(LG(this,a,0),this.g.Hf(d))}};R.prototype.writeRepeatedInt64=R.prototype.Mn;R.prototype.Wn=function(a,b,c,d){if(null!=b)for(var e=0;e<b.length;e++)this.rb(a,c(b[e]),d(b[e]))};R.prototype.writeRepeatedSplitFixed64=R.prototype.Wn; 1312R.prototype.Xn=function(a,b,c,d){if(null!=b)for(var e=0;e<b.length;e++)this.Ea(a,c(b[e]),d(b[e]))};R.prototype.writeRepeatedSplitVarint64=R.prototype.Xn;R.prototype.Yn=function(a,b,c,d){if(null!=b)for(var e=0;e<b.length;e++)this.pj(a,c(b[e]),d(b[e]))};R.prototype.writeRepeatedSplitZigzagVarint64=R.prototype.Yn;R.prototype.Nn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Ae(a,b[c])};R.prototype.writeRepeatedInt64String=R.prototype.Nn; 1313R.prototype.Zn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)NG(this,a,b[c])};R.prototype.writeRepeatedUint32=R.prototype.Zn;R.prototype.$n=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.qj(a,b[c])};R.prototype.writeRepeatedUint32String=R.prototype.$n;R.prototype.ao=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(LG(this,a,0),this.g.If(d))}};R.prototype.writeRepeatedUint64=R.prototype.ao; 1314R.prototype.bo=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.rj(a,b[c])};R.prototype.writeRepeatedUint64String=R.prototype.bo;R.prototype.Sn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];
1314null!=d&&(LG(this,a,0),this.g.Jf(d))}};R.prototype.writeRepeatedSint32=R.prototype.Sn;R.prototype.Tn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(LG(this,a,0),this.g.Kf(d))}};R.prototype.writeRepeatedSint64=R.prototype.Tn; 1315R.prototype.Un=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(LG(this,a,0),this.g.Gh(d))}};R.prototype.writeRepeatedSint64String=R.prototype.Un;R.prototype.Vn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(LG(this,a,0),this.g.kd(d))}};R.prototype.writeRepeatedSintHash64=R.prototype.Vn;R.prototype.En=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Ch(a,b[c])};R.prototype.writeRepeatedFixed32=R.prototype.En; 1316R.prototype.Fn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Dh(a,b[c])};R.prototype.writeRepeatedFixed64=R.prototype.Fn;R.prototype.Gn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.hj(a,b[c])};R.prototype.writeRepeatedFixed64String=R.prototype.Gn;R.prototype.Pn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Eh(a,b[c])};R.prototype.writeRepeatedSfixed32=R.prototype.Pn;R.prototype.Qn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Fh(a,b[c])}; 1317R.prototype.writeRepeatedSfixed64=R.prototype.Qn;R.prototype.Rn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.mj(a,b[c])};R.prototype.writeRepeatedSfixed64String=R.prototype.Rn;R.prototype.In=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Ac(a,b[c])};R.prototype.writeRepeatedFloat=R.prototype.In;R.prototype.Cn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.xc(a,b[c])};R.prototype.writeRepeatedDouble=R.prototype.Cn; 1318R.prototype.An=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.U(a,b[c])};R.prototype.writeRepeatedBool=R.prototype.An;R.prototype.Dn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.yc(a,b[c])};R.prototype.writeRepeatedEnum=R.prototype.Dn;R.prototype.kj=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.hd(a,b[c])};R.prototype.writeRepeatedString=R.prototype.kj;R.prototype.Bn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.ze(a,b[c])}; 1319R.prototype.writeRepeatedBytes=R.prototype.Bn;R.prototype.On=function(a,b,c){if(null!=b)for(var d=0;d<b.length;d++){var e=KG(this,a);c(b[d],this);MG(this,e)}};R.prototype.writeRepeatedMessage=R.prototype.On;R.prototype.Jn=function(a,b,c){if(null!=b)for(var d=0;d<b.length;d++)LG(this,a,3),c(b[d],this),LG(this,a,4)};R.prototype.writeRepeatedGroup=R.prototype.Jn;R.prototype.Hn=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.zc(a,b[c])};R.prototype.writeRepeatedFixedHash64=R.prototype.Hn; 1320R.prototype.co=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Cc(a,b[c])};R.prototype.writeRepeatedVarintHash64=R.prototype.co;R.prototype.dn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.Bc(b[c]);MG(this,a)}};R.prototype.writePackedInt32=R.prototype.dn;R.prototype.fn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.Bc(parseInt(b[c],10));MG(this,a)}};R.prototype.writePackedInt32String=R.prototype.fn; 1321R.prototype.gn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.Hf(b[c]);MG(this,a)}};R.prototype.writePackedInt64=R.prototype.gn;R.prototype.sn=function(a,b,c,d){if(null!=b){a=KG(this,a);for(var e=0;e<b.length;e++)this.g.rb(c(b[e]),d(b[e]));MG(this,a)}};R.prototype.writePackedSplitFixed64=R.prototype.sn;R.prototype.tn=function(a,b,c,d){if(null!=b){a=KG(this,a);for(var e=0;e<b.length;e++)this.g.Ea(c(b[e]),d(b[e]));MG(this,a)}}; 1322R.prototype.writePackedSplitVarint64=R.prototype.tn;R.prototype.un=function(a,b,c,d){if(null!=b){a=KG(this,a);for(var e=this.g,f=0;f<b.length;f++)lG(c(b[f]),d(b[f]),function(g,h){e.Ea(g>>>0,h>>>0)});MG(this,a)}};R.prototype.writePackedSplitZigzagVarint64=R.prototype.un;R.prototype.hn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++){var d=IG(b[c]);this.g.Ea(d.g,d.h)}MG(this,a)}};R.prototype.writePackedInt64String=R.prototype.hn; 1323R.prototype.vn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.ya(b[c]);MG(this,a)}};R.prototype.writePackedUint32=R.prototype.vn;R.prototype.wn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.ya(parseInt(b[c],10));MG(this,a)}};R.prototype.writePackedUint32String=R.prototype.wn;R.prototype.xn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.If(b[c]);MG(this,a)}};R.prototype.writePackedUint64=R.prototype.xn; 1324R.prototype.yn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++){var d=GG(b[c]);this.g.Ea(d.g,d.h)}MG(this,a)}};R.prototype.writePackedUint64String=R.prototype.yn;R.prototype.nn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.Jf(b[c]);MG(this,a)}};R.prototype.writePackedSint32=R.prototype.nn;R.prototype.pn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.Kf(b[c]);MG(this,a)}}; 1325R.prototype.writePackedSint64=R.prototype.pn;R.prototype.qn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.kd(uG(b[c]));MG(this,a)}};R.prototype.writePackedSint64String=R.prototype.qn;R.prototype.rn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.kd(b[c]);MG(this,a)}};R.prototype.writePackedSintHash64=R.prototype.rn;R.prototype.Ym=function(a,b){if(null!=b&&b.length)for(LG(this,a,2),this.g.ya(4*b.length),a=0;a<b.length;a++)this.g.Ma(b[a])}; 1326R.prototype.writePackedFixed32=R.prototype.Ym;R.prototype.Zm=function(a,b){if(null!=b&&b.length)for(LG(this,a,2),this.g.ya(8*b.length),a=0;a<b.length;a++)this.g.jd(b[a])};R.prototype.writePackedFixed64=R.prototype.Zm;R.prototype.$m=function(a,b){if(null!=b&&b.length)for(LG(this,a,2),this.g.ya(8*b.length),a=0;a<b.length;a++){var c=GG(b[a]);this.g.rb(c.g,c.h)}};R.prototype.writePackedFixed64String=R.prototype.$m; 1327R.prototype.jn=function(a,b){if(null!=b&&b.length)for(LG(this,a,2),this.g.ya(4*b.length),a=0;a<b.length;a++)this.g.fd(b[a])};R.prototype.writePackedSfixed32=R.prototype.jn;R.prototype.ln=function(a,b){if(null!=b&&b.length)for(LG(this,a,2),this.g.ya(8*b.length),a=0;a<b.length;a++)this.g.gd(b[a])};R.prototype.writePackedSfixed64=R.prototype.ln;R.prototype.mn=function(a,b){if(null!=b&&b.length)for(LG(this,a,2),this.g.ya(8*b.length),a=0;a<b.length;a++)this.g.Ae(b[a])}; 1328R.prototype.writePackedSfixed64String=R.prototype.mn;R.prototype.cn=function(a,b){if(null!=b&&b.length)for(LG(this,a,2),this.g.ya(4*b.length),a=0;a<b.length;a++)this.g.Ac(b[a])};R.prototype.writePackedFloat=R.prototype.cn;R.prototype.Xm=function(a,b){if(null!=b&&b.length)for(LG(this,a,2),this.g.ya(8*b.length),a=0;a<b.length;a++)this.g.xc(b[a])};R.prototype.writePackedDouble=R.prototype.Xm;R.prototype.Wm=function(a,b){if(null!=b&&b.length)for(LG(this,a,2),this.g.ya(b.length),a=0;a<b.length;a++)this.g.U(b[a])}; 1329R.prototype.writePackedBool=R.prototype.Wm;R.prototype.jj=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.yc(b[c]);MG(this,a)}};R.prototype.writePackedEnum=R.prototype.jj;R.prototype.an=function(a,b){if(null!=b&&b.length)for(LG(this,a,2),this.g.ya(8*b.length),a=0;a<b.length;a++)this.g.zc(b[a])};R.prototype.writePackedFixedHash64=R.prototype.an;R.prototype.zn=function(a,b){if(null!=b&&b.length){a=KG(this,a);for(var c=0;c<b.length;c++)this.g.Cc(b[c]);MG(this,a)}}; 1330R.prototype.writePackedVarintHash64=R.prototype.zn;function PG(a,b){this.j=a;this.h=b;this.g={};this.i=!0;if(0<this.j.length){for(a=0;a<this.j.length;a++){b=this.j[a];var c=b[0];this.g[c.toString()]=new QG(c,b[1])}this.i=!0}}E("jspb.Map",PG);PG.prototype.na=function(){if(this.i){if(this.h){var a=this.g,b;for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b].g;c&&c.na()}}}else{this.j.length=0;
1330a=RG(this);a.sort();for(b=0;b<a.length;b++){var d=this.g[a[b]];(c=d.g)&&c.na();this.j.push([d.key,d.value])}this.i=!0}return this.j}; 1331PG.prototype.toArray=PG.prototype.na;PG.prototype.qh=function(a,b){for(var c=this.na(),d=[],e=0;e<c.length;e++){var f=this.g[c[e][0].toString()];SG(this,f);var g=f.g;g?(K(b),d.push([f.key,b(a,g)])):d.push([f.key,f.value])}return d};PG.prototype.toObject=PG.prototype.qh;PG.fromObject=function(a,b,c){b=new PG([],b);for(var d=0;d<a.length;d++){var e=a[d][0],f=c(a[d][1]);b.set(e,f)}return b};function TG(a){this.g=0;this.h=a} 1332TG.prototype.next=function(){return this.g<this.h.length?{done:!1,value:this.h[this.g++]}:{done:!0,value:void 0}};"undefined"!=typeof Symbol&&(TG.prototype[Symbol.iterator]=function(){return this});PG.prototype.Ua=function(){return RG(this).length};PG.prototype.getLength=PG.prototype.Ua;PG.prototype.clear=function(){this.g={};this.i=!1};PG.prototype.clear=PG.prototype.clear;PG.prototype.Sj=function(a){a=a.toString();var b=this.g.hasOwnProperty(a);delete this.g[a];this.i=!1;return b}; 1333PG.prototype.del=PG.prototype.Sj;PG.prototype.ik=function(){var a=[],b=RG(this);b.sort();for(var c=0;c<b.length;c++){var d=this.g[b[c]];a.push([d.key,d.value])}return a};PG.prototype.getEntryList=PG.prototype.ik;PG.prototype.entries=function(){var a=[],b=RG(this);b.sort();for(var c=0;c<b.length;c++){var d=this.g[b[c]];a.push([d.key,SG(this,d)])}return new TG(a)};PG.prototype.entries=PG.prototype.entries; 1334PG.prototype.keys=function(){var a=[],b=RG(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.g[b[c]].key);return new TG(a)};PG.prototype.keys=PG.prototype.keys;PG.prototype.values=function(){var a=[],b=RG(this);b.sort();for(var c=0;c<b.length;c++)a.push(SG(this,this.g[b[c]]));return new TG(a)};PG.prototype.values=PG.prototype.values;PG.prototype.forEach=function(a,b){var c=RG(this);c.sort();for(var d=0;d<c.length;d++){var e=this.g[c[d]];a.call(b,SG(this,e),e.key,this)}};PG.prototype.forEach=PG.prototype.forEach; 1335PG.prototype.set=function(a,b){var c=new QG(a);this.h?(c.g=b,c.value=b.na()):c.value=b;this.g[a.toString()]=c;this.i=!1;return this};PG.prototype.set=PG.prototype.set;function SG(a,b){return a.h?(b.g||(b.g=new a.h(b.value)),b.g):b.value}PG.prototype.get=function(a){if(a=this.g[a.toString()])return SG(this,a)};PG.prototype.get=PG.prototype.get;PG.prototype.has=function(a){return a.toString()in this.g};PG.prototype.has=PG.prototype.has; 1336PG.prototype.Gi=function(a,b,c,d,e){var f=RG(this);f.sort();for(var g=0;g<f.length;g++){var h=this.g[f[g]];b.Mh(a);c.call(b,1,h.key);this.h?d.call(b,2,SG(this,h),e):d.call(b,2,h.value);b.Zh()}};PG.prototype.serializeBinary=PG.prototype.Gi;PG.deserializeBinary=function(a,b,c,d,e,f,g){for(;b.nf()&&!b.oi();){var h=b.i;1==h?f=c.call(b):2==h&&(a.h?(K(e),g||(g=new a.h),d.call(b,g,e)):g=d.call(b))}K(void 0!=f);K(void 0!=g);a.set(f,g)}; 1337function RG(a){a=a.g;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}function QG(a,b){this.key=a;this.value=b;this.g=void 0};function UG(a,b,c,d,e){this.We=a;this.bi=b;this.Te=c;this.rh=d;this.jf=e}E("jspb.ExtensionFieldInfo",UG);E("jspb.ExtensionFieldBinaryInfo",function(a,b,c,d,e,f){this.ai=a;this.$f=b;this.ag=c;this.Nh=d;this.Fj=e;this.Rk=f});UG.prototype.kc=function(){return!!this.Te};UG.prototype.isMessageType=UG.prototype.kc;function S(){}E("jspb.Message",S);S.GENERATE_TO_OBJECT=!0;S.GENERATE_FROM_OBJECT=!1;var VG="function"==typeof Uint8Array;S.prototype.pk=function(){return this.h}; 1338S.prototype.getJsPbMessageId=S.prototype.pk; 1339function WG(a,b,c,d,e,f){a.R=null;b||(b=c?[c]:[]);a.h=c?String(c):void 0;a.dc=0===c?-1:0;a.$a=b;a:{c=a.$a.length;b=-1;if(c&&(b=c-1,c=a.$a[b],!(null===c||"object"!=typeof c||Array.isArray(c)||VG&&c instanceof Uint8Array))){a.rc=b-a.dc;a.qa=c;break a}-1<d?(a.rc=Math.max(d,b+1-a.dc),a.qa=null):a.rc=Number.MAX_VALUE}a.g={};if(e)for(d=0;d<e.length;d++)b=e[d],b<a.rc?(b+=a.dc,a.$a[b]=a.$a[b]||XG):(YG(a),a.qa[b]=a.qa[b]||XG);if(f&&f.length)for(d=0;d<f.length;d++)ZG(a,f[d])}S.initialize=WG;var XG=[]; 1340function YG(a){var b=a.rc+a.dc;a.$a[b]||(a.qa=a.$a[b]={})}function $G(a,b,c){for(var d=[],e=0;e<a.length;e++)d[e]=b.call(a[e],c,a[e]);return d}S.toObjectList=$G;S.toObjectExtension=function(a,b,c,d,e){for(var f in c){var g=c[f],h=d.call(a,g);if(null!=h){for(var k in g.bi)if(g.bi.hasOwnProperty(k))break;b[k]=g.rh?g.jf?$G(h,g.rh,e):g.rh(e,h):h}}};
1341S.serializeBinaryExtensions=function(a,b,c,d){for(var e in c){var f=c[e],g=f.ai;if(!f.ag)throw Error("Message extension present that was generated without binary serialization support");var h=d.call(a,g);if(null!=h)if(g.kc())if(f.Nh)f.ag.call(b,g.We,h,f.Nh);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else f.ag.call(b,g.We,h)}}; 1342S.readBinaryExtension=function(a,b,c,d,e){var f=c[b.i];if(f){c=f.ai;if(!f.$f)throw Error("Deserializing extension whose generated code does not support binary format");if(c.kc()){var g=new c.Te;f.$f.call(b,g,f.Fj)}else g=f.$f.call(b);c.jf&&!f.Rk?(b=d.call(a,c))?b.push(g):e.call(a,c,[g]):e.call(a,c,g)}else b.Yb()};function aH(a,b){if(b<a.rc){b+=a.dc;var c=a.$a[b];return c===XG?a.$a[b]=[]:c}if(a.qa)return c=a.qa[b],c===XG?a.qa[b]=[]:c}S.getField=aH;S.getRepeatedField=function(a,b){return aH(a,b)}; 1343function bH(a,b){a=aH(a,b);return null==a?a:+a}S.getOptionalFloatingPointField=bH;function cH(a,b){a=aH(a,b);return null==a?a:!!a}S.getBooleanField=cH;S.getRepeatedFloatingPointField=function(a,b){var c=aH(a,b);a.g||(a.g={});if(!a.g[b]){for(var d=0;d<c.length;d++)c[d]=+c[d];a.g[b]=!0}return c};S.getRepeatedBooleanField=function(a,b){var c=aH(a,b);a.g||(a.g={});if(!a.g[b]){for(var d=0;d<c.length;d++)c[d]=!!c[d];a.g[b]=!0}return c}; 1344function dH(a){if(null==a||"string"===typeof a)return a;if(VG&&a instanceof Uint8Array)return YF(a);MF("Cannot coerce to b64 string: "+Ya(a));return null}S.bytesAsB64=dH;function eH(a){if(null==a||a instanceof Uint8Array)return a;if("string"===typeof a)return $F(a);MF("Cannot coerce to Uint8Array: "+Ya(a));return null}S.bytesAsU8=eH;S.bytesListAsB64=function(a){return a.length&&"string"!==typeof a[0]?Pb(a,dH):a};S.bytesListAsU8=function(a){return!a.length||a[0]instanceof Uint8Array?a:Pb(a,eH)}; 1345function fH(a,b,c){a=aH(a,b);return null==a?c:a}S.getFieldWithDefault=fH;S.getBooleanFieldWithDefault=function(a,b,c){a=cH(a,b);return null==a?c:a};S.getFloatingPointFieldWithDefault=function(a,b,c){a=bH(a,b);return null==a?c:a};S.getFieldProto3=fH;S.getMapField=function(a,b,c,d){a.R||(a.R={});if(b in a.R)return a.R[b];var e=aH(a,b);if(!e){if(c)return;e=[];gH(a,b,e)}return a.R[b]=new PG(e,d)};function gH(a,b,c){NF(a,S);b<a.rc?a.$a[b+a.dc]=c:(YG(a),a.qa[b]=c);return a}S.setField=gH; 1346S.setProto3IntField=function(a,b,c){return hH(a,b,c,0)};S.setProto3FloatField=function(a,b,c){return hH(a,b,c,0)};S.setProto3BooleanField=function(a,b,c){return hH(a,b,c,!1)};S.setProto3StringField=function(a,b,c){return hH(a,b,c,"")};S.setProto3BytesField=function(a,b,c){return hH(a,b,c,"")};S.setProto3EnumField=function(a,b,c){return hH(a,b,c,0)};S.setProto3StringIntField=function(a,b,c){return hH(a,b,c,"0")}; 1347function hH(a,b,c,d){NF(a,S);c!==d?gH(a,b,c):b<a.rc?a.$a[b+a.dc]=null:(YG(a),delete a.qa[b]);return a}S.addToRepeatedField=function(a,b,c,d){NF(a,S);b=aH(a,b);void 0!=d?b.splice(d,0,c):b.push(c);return a};function iH(a,b,c,d){NF(a,S);(c=ZG(a,c))&&c!==b&&void 0!==d&&(a.R&&c in a.R&&(a.R[c]=void 0),gH(a,c,void 0));return gH(a,b,d)}S.setOneofField=iH;function ZG(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],g=aH(a,f);null!=g&&(c=f,d=g,gH(a,f,void 0))}return c?(gH(a,c,d),c):0}S.computeOneofCase=ZG; 1348S.getWrapperField=function(a,b,c,d){a.R||(a.R={});if(!a.R[c]){var e=aH(a,c);if(d||e)a.R[c]=new b(e)}return a.R[c]};S.getRepeatedWrapperField=function(a,b,c){jH(a,b,c);b=a.R[c];b==XG&&(b=a.R[c]=[]);return b};function jH(a,b,c){a.R||(a.R={});if(!a.R[c]){for(var d=aH(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.R[c]=e}}S.setWrapperField=function(a,b,c){NF(a,S);a.R||(a.R={});var d=c?c.na():c;a.R[b]=c;return gH(a,b,d)}; 1349S.setOneofWrapperField=function(a,b,c,d){NF(a,S);a.R||(a.R={});var e=d?d.na():d;a.R[b]=d;return iH(a,b,c,e)};S.setRepeatedWrapperField=function(a,b,c){NF(a,S);a.R||(a.R={});c=c||[];for(var d=[],e=0;e<c.length;e++)d[e]=c[e].na();a.R[b]=c;return gH(a,b,d)};S.addToRepeatedWrapperField=function(a,b,c,d,e){jH(a,d,b);var f=a.R[b];f||(f=a.R[b]=[]);c=c?c:new d;a=aH(a,b);void 0!=e?(f.splice(e,0,c),a.splice(e,0,c.na())):(f.push(c),a.push(c.na()));return c}; 1350S.toMap=function(a,b,c,d){for(var e={},f=0;f<a.length;f++)e[b.call(a[f])]=c?c.call(a[f],d,a[f]):a[f];return e};function kH(a){if(a.R)for(var b in a.R){var c=a.R[b];if(Array.isArray(c))for(var d=0;d<c.length;d++)c[d]&&c[d].na();else c&&c.na()}}S.prototype.na=function(){kH(this);return this.$a};S.prototype.toArray=S.prototype.na;S.prototype.toString=function(){kH(this);return this.$a.toString()};
1351S.prototype.getExtension=function(a){if(this.qa){this.R||(this.R={});var b=a.We;if(a.jf){if(a.kc())return this.R[b]||(this.R[b]=Pb(this.qa[b]||[],function(c){return new a.Te(c)})),this.R[b]}else if(a.kc())return!this.R[b]&&this.qa[b]&&(this.R[b]=new a.Te(this.qa[b])),this.R[b];return this.qa[b]}};S.prototype.getExtension=S.prototype.getExtension; 1352S.prototype.Bm=function(a,b){this.R||(this.R={});YG(this);var c=a.We;a.jf?(b=b||[],a.kc()?(this.R[c]=b,this.qa[c]=Pb(b,function(d){return d.na()})):this.qa[c]=b):a.kc()?(this.R[c]=b,this.qa[c]=b?b.na():b):this.qa[c]=b;return this};S.prototype.setExtension=S.prototype.Bm; 1353S.difference=function(a,b){if(!(a instanceof b.constructor))throw Error("Messages have different types.");var c=a.na();b=b.na();var d=[],e=0,f=c.length>b.length?c.length:b.length;a.h&&(d[0]=a.h,e=1);for(;e<f;e++)lH(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)};S.equals=function(a,b){return a==b||!(!a||!b)&&a instanceof b.constructor&&lH(a.na(),b.na())};function mH(a,b){a=a||{};b=b||{};var c={},d;for(d in a)c[d]=0;for(d in b)c[d]=0;for(d in c)if(!lH(a[d],b[d]))return!1;return!0} 1354S.compareExtensions=mH; 1355function lH(a,b){if(a==b)return!0;if(!ab(a)||!ab(b))return"number"===typeof a&&isNaN(a)||"number"===typeof b&&isNaN(b)?String(a)==String(b):!1;if(a.constructor!=b.constructor)return!1;if(VG&&a.constructor===Uint8Array){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}if(a.constructor===Array){var d=void 0,e=void 0,f=Math.max(a.length,b.length);for(c=0;c<f;c++){var g=a[c],h=b[c];g&&g.constructor==Object&&(K(void 0===d),K(c===a.length-1),d=g,g=void 0);h&&h.constructor== 1356Object&&(K(void 0===e),K(c===b.length-1),e=h,h=void 0);if(!lH(g,h))return!1}return d||e?(d=d||{},e=e||{},mH(d,e)):!0}if(a.constructor===Object)return mH(a,b);throw Error("Invalid type in JSPB array");}S.compareFields=lH;S.prototype.Nj=function(){return nH(this)};S.prototype.cloneMessage=S.prototype.Nj;S.prototype.clone=function(){return nH(this)};S.prototype.clone=S.prototype.clone;S.clone=function(a){return nH(a)};function nH(a){return new a.constructor(oH(a.na()))} 1357S.copyInto=function(a,b){NF(a,S);NF(b,S);K(a.constructor==b.constructor,"Copy source and target message should have the same type.");a=nH(a);for(var c=b.na(),d=a.na(),e=c.length=0;e<d.length;e++)c[e]=d[e];b.R=a.R;b.qa=a.qa}; 1358function oH(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?oH(K(d)):d)}return b}if(VG&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?oH(K(d)):d);return b}S.registerMessageType=function(a,b){b.Cq=a};function pH(a){WG(this,a,0,-1,qH,null)}hb(pH,S);var qH=[26,40]; 1359pH.prototype.qh=function(a){var b,c={Sq:null==(b=cH(this,1))?void 0:b,hq:null==(b=cH(this,2))?void 0:b,uq:null==(b=cH(this,3))?void 0:b,Vq:null==(b=cH(this,4))?void 0:b,Dq:null==(b=cH(this,5))?void 0:b,Lq:null==(b=cH(this,6))?void 0:b,Wq:null==(b=cH(this,7))?void 0:b,Pq:null==(b=cH(this,8))?void 0:b,kq:null==(b=cH(this,9))?void 0:b,Uq:null==(b=cH(this,10))?void 0:b,pq:null==(b=cH(this,11))?void 0:b,Jq:null==(b=aH(this,12))?void 0:b,$q:null==(b=cH(this,13))?void 0:b,xq:null==(b=cH(this,14))?void 0: 1360b,Iq:null==(b=cH(this,15))?void 0:b,lq:null==(b=cH(this,16))?void 0:b,qq:null==(b=cH(this,17))?void 0:b,rq:null==(b=cH(this,18))?void 0:b,mq:null==(b=cH(this,19))?void 0:b,cq:null==(b=cH(this,20))?void 0:b,iq:null==(b=cH(this,21))?void 0:b,yq:null==(b=cH(this,22))?void 0:b,jq:null==(b=cH(this,23))?void 0:b,Xq:null==(b=cH(this,24))?void 0:b,fq:null==(b=cH(this,25))?void 0:b,Mq:null==(b=aH(this,26))?void 0:b,Kq:null==(b=cH(this,27))?void 0:b,Aq:null==(b=cH(this,28))?void 0:b,Nq:null==(b=cH(this,29))? 1361void 0:b,Yq:null==(b=cH(this,30))?void 0:b,zq:null==(b=cH(this,31))?void 0:b,Oq:null==(b=cH(this,32))?void 0:b,Gq:null==(b=cH(this,33))?void 0:b,Hq:null==(b=cH(this,34))?void 0:b,wq:null==(b=cH(this,35))?void 0:b,Zq:null==(b=cH(this,36))?void 0:b,vq:null==(b=cH(this,37))?void 0:b,Rq:null==(b=cH(this,38))?void 0:b,gq:null==(b=cH(this,39))?void 0:b,tq:null==(b=aH(this,40))?void 0:b,Tq:null==(b=cH(this,41))?void 0:b};a&&(c.lo=this);return c}; 1362pH.prototype.Gi=function(){var a=new R;var b=aH(this,1);null!=b&&a.U(1,b);b=aH(this,2);null!=b&&a.U(2,b);b=aH(this,3);null!=b&&a.U(3,b);b=aH(this,4);null!=b&&a.U(4,b);b=aH(this,5);null!=b&&a.U(5,b);b=aH(this,6);null!=b&&a.U(6,b);b=aH(this,7);null!=b&&a.U(7,b);b=aH(this,8);null!=b&&a.U(8,b);b=aH(this,9);null!=b&&a.U(9,b);b=aH(this,10);null!=b&&a.U(10,b);b=aH(this,11);null!=b&&a.U(11,b);b=aH(this,12);null!=b&&a.yc(12,b);b=aH(this,13);null!=b&&a.U(13,b);b=aH(this,14);null!=b&&a.U(14,b);b=aH(this,15); 1363null!=b&&a.U(15,b);b=aH(this,16);null!=b&&a.U(16,b);b=aH(this,17);null!=b&&a.U(17,b);b=aH(this,18);null!=b&&a.U(18,b);b=aH(this,19);null!=b&&a.U(19,b);b=aH(this,20);null!=b&&a.U(20,b);b=aH(this,21);null!=b&&a.U(21,b);b=aH(this,22);null!=b&&a.U(22,b);b=aH(this,23);null!=b&&a.U(23,b);b=aH(this,24);null!=b&&a.U(24,b);b=aH(this,25);null!=b&&a.U(25,b);b=aH(this,26);0<b.length&&a.kj(26,b);b=aH(this,27);null!=b&&a.U(27,b);b=aH(this,28);null!=b&&a.U(28,b);b=aH(this,29);null!=b&&a.U(29,b);b=aH(this,30);null!= 1364b&&a.U(30,b);
1364b=aH(this,31);null!=b&&a.U(31,b);b=aH(this,32);null!=b&&a.U(32,b);b=aH(this,33);null!=b&&a.U(33,b);b=aH(this,34);null!=b&&a.U(34,b);b=aH(this,35);null!=b&&a.U(35,b);b=aH(this,36);null!=b&&a.U(36,b);b=aH(this,37);null!=b&&a.U(37,b);b=aH(this,38);null!=b&&a.U(38,b);b=aH(this,39);null!=b&&a.U(39,b);b=aH(this,40);0<b.length&&a.jj(40,b);b=aH(this,41);null!=b&&a.U(41,b);return a.ig()};ac("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));(function(){if(aE){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(tc))?a[1]:"0"}return $D?(a=/10[_.][0-9_.]+/,(a=a.exec(tc))?a[0].replace(/_/g,"."):"10"):bE?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(tc))?a[1]:""):cE||dE||eE?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(tc))?a[1].replace(/_/g,"."):""):""})();function rH(a){return(a=a.exec(tc))?a[1]:""}(function(){if(QF)return rH(/Firefox\/([0-9.]+)/);if(WD||XD||VD)return gE;if(UF)return RD()||wc("iPad")||wc("iPod")?rH(/CriOS\/([0-9.]+)/):rH(/Chrome\/([0-9.]+)/);if(VF&&!(RD()||wc("iPad")||wc("iPod")))return rH(/Version\/([0-9.]+)/);if(RF||SF){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(tc);if(a)return a[1]+"."+a[2]}else if(TF)return(a=rH(/Android\s+([0-9.]+)/))?a:rH(/Version\/([0-9.]+)/);return""})();(function(){for(var a=["ms","moz","webkit","o"],b=0,c;c=a[b]&&!Ua.requestAnimationFrame;++b)Ua.requestAnimationFrame=Ua[c+"RequestAnimationFrame"],Ua.cancelAnimationFrame=Ua[c+"CancelAnimationFrame"]||Ua[c+"CancelRequestAnimationFrame"];if(!Ua.requestAnimationFrame){var d=0;Ua.requestAnimationFrame=function(e){var f=(new Date).getTime(),g=Math.max(0,16-(f-d));d=f+g;return Ua.setTimeout(function(){e(f+g)},g)};Ua.cancelAnimationFrame||(Ua.cancelAnimationFrame=function(e){clearTimeout(e)})}})();var sH=WD?ic(ec(new bc(cc,'javascript:""'))):ic(ec(new bc(cc,"about:blank")));hc(sH);var tH=WD?ic(ec(new bc(cc,'javascript:""'))):ic(ec(new bc(cc,"javascript:undefined")));hc(tH);function uH(){}uH.g=void 0;uH.getInstance=function(){return uH.g?uH.g:uH.g=new uH};uH.getInstance();function vH(a){a||pE();Dc.call(this)}hb(vH,Dc);vH.prototype.clear=function(){Dc.prototype.clear.call(this)};vH.prototype.set=function(a,b){Dc.prototype.set.call(this,a,b);return this};function wH(a,b,c,d){return a.set(b.key,b.caption,c,d)}vH.prototype.render=function(){};var xH={key:"ok",caption:"OK"},yH={key:"cancel",caption:"Cancel"},zH={key:"yes",caption:"Yes"},AH={key:"no",caption:"No"},BH={key:"save",caption:"Save"},CH={key:"continue",caption:"Continue"}; 1365"undefined"!=typeof document&&(wH(new vH,xH,!0,!0),wH(wH(new vH,xH,!0),yH,!1,!0),wH(wH(new vH,zH,!0),AH,!1,!0),wH(wH(wH(new vH,zH),AH,!0),yH,!1,!0),wH(wH(wH(new vH,CH),BH),yH,!0,!0));function DH(){this.g=Promise.resolve();this.h=0}DH.prototype.lock=function(){var a=this,b,c,d;return B(function(e){a.h++;c=new Promise(function(f){return b=function(){a.h--;f()}});d=a.g.then(function(){return b});a.g=a.g.then(function(){return c});return e.return(d)})};new DH;var EH="Pre-Enrolled;Enrolled;Out of District;Transferred;Withdrew;Dropped Out;Graduated;Historical/Other;Historical/Idle".split(";");function T(a){a="'"+a.replace(/'/g,"''").replace(/\\/g,"\\\\")+"'";return 0>a.indexOf("\\")?a:" E"+a}function FH(a){var b=a.indexOf("\x00");-1<b&&(a=a.substr(0,b));return'"'+a.replace(/"/g,'""')+'"'} 1366function GH(a,b,c){for(var d=0;d<b.length;d++){var e=FH(b[d][0]),f=FH(b[d][0]);1<b[d].length&&void 0!==b[d][1]&&(f=FH(b[d][1]));c.display.push(e);c.select.push(a+"."+f+" AS "+e)}} 1367function HH(a,b,c){var d=b["Fiscal Year:"];if("duplicate"==b.fy_date_range&&d){d=d.map(function(h){return h.split(" ")[0].substr(2)});for(var e=[],f=r(d),g=f.next();!g.done;g=f.next())g=g.value,e.push("("+g+", 'Jul 1 20"+(g-1)+" 00:00:00'::timestamp, 'Jun 30 20"+g+" 23:59:59'::timestamp)");c.from.push(" JOIN (VALUES "+e.join(",")+') as fiscal_years("year", "start", "end")\n ON (\n idr."record_date" <= fiscal_years."end"\n AND (\n idr."effective_end_date" IS NULL\n OR idr."effective_end_date" >= fiscal_years."start"\n )\n )'); 1368c.and.push('-- true IF dataIssue is EMPTY OR record_date is IN the fiscal year\n NOT (COALESCE(idr."record"->>\'Data Issue\', \'\') != \'\' AND\n (idr."record_date" < fiscal_years."start" OR\n idr."re
1368cord_date" > fiscal_years."end")\n )')}e=["GQ","FD"];f=b["Record Date:_start"];g=b["Record Date:_end"];if(f||g)e.includes(a)?f&&c.and.push('(idr."effective_end_date" IS NULL OR idr."effective_end_date" >= SG_DATE('+T(f)+"))"):f&&c.and.push('idr."record_date" >= SG_DATE('+T(f)+ 1369")"),g&&c.and.push('idr."record_date" <= SG_DATE('+T(g)+")");else if("single"==b.fy_date_range&&d){a=[];b=r(d);for(d=b.next();!d.done;d=b.next())d=Number(d.value.split(" ")[0].substr(2)),a.push('( idr."record_date" < \'Jul 1 20'+d+' 00:00:00\' AND ( idr."effective_end_date" IS NULL OR idr."effective_end_date" >= \'Jul 1 20'+(d-1)+" 00:00:00'))");c.and.push("("+a.join(" OR ")+")")}else if(!b.fy_date_range&&d){a=[];b=r(d);for(d=b.next();!d.done;d=b.next())d=Number(d.value.split(" ")[0].substr(2)), 1370a.push('(idr."record_date" >= \'Jul 01 20'+(d-1)+" 00:00:00' AND idr.\"record_date\" < 'Jul 1 20"+d+" 00:00:00')");c.and.push("("+a.join(" OR ")+")")}} 1371function IH(a,b,c,d,e){e||(e=d+":");var f=b[e];if(f&&(e=[],b[d+":_length"]!=f.length)){for(b=0;b<f.length;b++)e.push(T(f[b]));if("Age"==d)c.and.push("DATE_PART('year', age((ior.\"record\"->>'Date of Birth'):: DATE)) IN("+(e+")"));else if("Program"==d){d=[];for(b=0;b<e.length;b++)f=e[b],"Deadlines"==a?d.push('iod."group_name" = '+f):d.push('idf."form_group" = '+f);c.and.push("("+d.join(" OR ")+")")}else c.and.push('idr."record"->>'+T(d)+(" IN("+e+")"))}} 1372function JH(a,b){a=a.map(function(c){return'iod."group_name" = '+T(c[0])});b.and.push("("+a.join(" OR ")+")")} 1373function U(a,b,c){var d=c.report_record_name;d.endsWith("Deadlines")&&(d="Deadlines");var e={qb:[],select:[],uf:[],Ue:[],from:[],and:[],Yd:[],display:[]},f=d;"User"==f&&e.qb.push("\"user_roles_cte\" AS (\n WITH user_role_and_building_ids AS (\n SELECT\n user_id,\n jsonb_array_elements(user_role)->>'user_role' AS key,\n jsonb_array_elements(user_role)->'buildings' AS building_ids\n FROM index_users\n ),\n flattened AS (\n SELECT user_id, key, building_id\n FROM user_role_and_building_ids\n LEFT JOIN jsonb_array_elements_text(building_ids) as building_id\n ON true\n ),\n user_role_and_buildings AS (\n SELECT\n user_id,\n key,\n string_agg(ib.name, ', ' ORDER BY ib.name) as buildings\n FROM flattened\n LEFT JOIN index_buildings ib\n USING (building_id)\n GROUP BY user_id, key\n )\nSELECT\n user_id,\n string_agg(buildings, ';') AS buildings,\n string_agg(jsonb_value->>'name', ';') AS user_role\nFROM user_role_and_buildings\nJOIN max_instances\nON col = 'user_role:' || user_role_and_buildings.key\nAND (\"max_instances\".jsonb_value->'is_soft_deleted' IS NULL OR \"max_instances\".jsonb_value->>'is_soft_deleted'='false')\nGROUP BY user_id\nUNION ALL\nSELECT\n user_id,\n '',\n 'admin'\nFROM index_users\nWHERE is_admin\n)");"Acknowledgement"== 1374f&&(e.qb.push(KH()),e.qb.push("\"ack_raw\" AS (\n -- find all signature records, combine with required record\n SELECT a.row AS doc_id,\n SPLIT_PART(a.col, ':', 2) AS user_id,\n SPLIT_PART(a.col, ':', 3) AS version,\n SPLIT_PART(a.col, ':', 5) AS sign_raw,\n b.jsonb_value->>'required_timestamp' AS required_raw,\n b.jsonb_value->>'reason' AS reason_raw,\n b.jsonb_value->>'closed_timestamp' AS closed_raw,\n b.jsonb_value->'notif_caused_by'->>'user_id' AS actor_id,\n b.jsonb_value->'closed_by'->>'user_id' AS closed_by_id\n FROM max_documents a\n LEFT JOIN max_documents b\n ON b.col = SUBSTR(a.col, 1, STRPOS(a.col, 'signature')-1) || 'required'\n AND a.row = b.row\n WHERE a.col LIKE 'ack:%signature%'\n UNION ALL\n -- find all required records with no corresponding signature\n SELECT a.row AS doc_id,\n SPLIT_PART(a.col, ':', 2) AS user_id,\n SPLIT_PART(a.col, ':', 3) AS version,\n NULL AS sign_raw,\n a.jsonb_value->>'required_timestamp' AS required_raw,\n a.jsonb_value->>'reason' AS reason_raw,\n a.jsonb_value->>'closed_timestamp' AS closed_raw,\n a.jsonb_value->'notif_caused_by'->>'user_id' AS actor_id,\n a.jsonb_value->'closed_by'->>'user_id' AS closed_by_id\n FROM max_documents a\n LEFT JOIN max_documents b\n ON b.col LIKE SUBSTR(a.col, 1, STRPOS(a.col, 'required')-1) || 'signature%'\n AN
1374D a.row = b.row\n WHERE a.col LIKE 'ack:%required%'\n AND b.col IS NULL\n)"), 1375e.qb.push("\"ack_middle\" AS (\n SELECT ack_raw.*,\n zone,\n actors.first_name AS actor_first,\n actors.last_name AS actor_last,\n actors.user_name AS actor_email,\n closers.first_name AS closer_first,\n closers.last_name AS closer_last,\n closers.user_name AS closer_email,\n TO_TIMESTAMP(sign_raw::double precision) AT TIME ZONE zone AS sign_timestamp,\n (TO_TIMESTAMP(sign_raw::double precision) AT TIME ZONE zone)::date AS sign_date,\n TO_TIMESTAMP(required_raw::double precision) AT TIME ZONE zone AS required_timestamp,\n (TO_TIMESTAMP(required_raw::double precision) AT TIME ZONE zone)::date AS required_date,\n TO_TIMESTAMP(closed_raw::double precision) AT TIME ZONE zone AS closed_timestamp,\n (TO_TIMESTAMP(closed_raw::double precision) AT TIME ZONE zone)::date AS closed_date,\n (NOW() AT TIME ZONE zone)::date AS current_date,\n 'MM/DD/YYYY' AS date_format\n FROM ack_raw\n JOIN timezone\n ON TRUE\n LEFT JOIN index_users actors\n ON actor_id = actors.user_id\n LEFT JOIN index_users closers\n ON closed_by_id = closers.user_id\n)"), 1376e.qb.push("\"ack_formatted\" AS (\n SELECT *,\n ROW_NUMBER() OVER () AS ack_id, -- a unique id for this row in the CTE used to join with the fake idr in the larger query\n TO_CHAR(sign_date, date_format) AS \"Sign Date\",\n TO_CHAR(required_date, date_format) AS \"Notification Date\",\n CASE WHEN sign_date IS NULL THEN 'No'\n ELSE 'Yes'\n END AS \"Acknowledged\",\n sign_date - required_date AS \"Days to Acknowledge\",\n CASE WHEN sign_date IS NOT NULL AND required_date IS NOT NULL THEN\n CASE WHEN sign_date - required_date < 30 THEN '29 days or fewer'\n WHEN sign_date - required_date < 60 THEN '30-59 days'\n WHEN sign_date - required_date < 90 THEN '60-89 days'\n ELSE '90 days or more'\n END\n END AS \"Days to Acknowledge Range\",\n CASE WHEN sign_date IS NULL THEN current_date - required_date END AS \"Outstanding Days\",\n CASE WHEN sign_date IS NULL THEN\n CASE WHEN current_date - required_date < 30 THEN '29 days or fewer'\n WHEN current_date - required_date < 60 THEN '30-59 days'\n WHEN current_date - required_date < 90 THEN '60-89 days'\n ELSE '90 days or more'\n END\n END AS \"Outstanding Days Range\",\n CASE WHEN reason_raw = '1' THEN 'Student Team'\n WHEN reason_raw = '2' THEN 'Manually Added'\n END AS \"Required Reason\",\n CASE WHEN actor_id IS NULL THEN NULL\n WHEN actor_id = '' THEN 'System'\n ELSE actor_first || ' ' || actor_last || ' (' || actor_email || ')'\n END AS \"Notification Caused By\",\n CASE WHEN closed_raw IS NULL THEN 'No'\n ELSE 'Yes'\n END AS \"Closed\",\n closed_date - required_date AS \"Days to Close\",\n CASE WHEN closed_by_id IS NULL THEN NULL\n WHEN closed_by_id = '' THEN 'System'\n ELSE closer_first || ' ' || closer_last || ' (' || closer_email || ')'\n END AS \"Closed By\"\n FROM ack_middle\n)"), 1377e.qb.push("\"fake_idr\" AS (\n SELECT doc_id || '_' || version AS doc_id,\n 'Acknowledgement' AS record_name,\n NULL AS record_date,\n NULL AS effective_end_date,\n TO_JSONB(ack_formatted.*) AS record,\n true AS finalized,\n ack_id AS ack_id\n FROM \"ack_formatted\"\n)"));for(var g=d,h=r(a),k=h.next();!k.done;k=h.next()){var l=k.value,m=Object.keys(l)[0],q=l[m];switch(m){case "index_documents":for(var p=q,t=e,w=0;w<p.length;w++){var z=FH(p[w][0]); 1378switch(p[w][0]){case "Doc URL":t.display.push(z);t.select.push(p[w][1]+" AS "+z);continue;case "DocViewer Reference":t.display.push(z);t.select.push("(id.doc_id|| ',' || id.form_id|| ',' || COALESCE(\n (SELECT form_id FROM index_forms if2 WHERE if2.\"form_name\"=idr.\"record\"
1378->>'AltViewForm'),\n ''\n )) AS "+z);continue}var x=FH(p[w][0]);1<p[w].length&&void 0!==p[w][1]&&(x=FH(p[w][1]));t.display.push(z);t.select.push("id."+x+" AS "+z)}break;case "index_objects_reports":for(var y= 1379q,D=e,A=0;A<y.length;A++){var C=FH(y[A][0]),G=T(y[A][0]);1<y[A].length&&void 0!==y[A][1]&&(G=T(y[A][1]));switch(y[A][0]){case "GE040":case "GQ040":var J="RIGHT(' 00000' || COALESCE(ior.\"record\"->>"+(G+", ''), 6)");D.uf.push({select:J,name:C,Jg:"'^[a-zA-Z0-9]{6}$'"});D.display.push(C);D.select.push(J+" AS "+C);break;case "GE050":case "GQ050":case "FE050":case "FD050":var M="RIGHT(' 00000000' || COALESCE(ior.\"record\"->>"+(G+", ''), 9)");D.uf.push({select:M,name:C,Jg:"'^[a-zA-Z0-9]{9}$'"});D.display.push(C); 1380D.select.push(M+" AS "+C);break;case "Student Name":D.display.push(C);D.select.push("CONCAT(ior.\"record\"->>'First Name', ' ', ior.\"record\"->>'Last Name') AS "+C);break;case "Age":D.display.push(C);D.select.push("DATE_PART('year', age((ior.\"record\"->>'Date of Birth'):: DATE)) AS "+C);break;default:D.display.push(C),D.select.push('ior."record"->>'+G+" AS "+C)}}break;case "index_instances_reports":for(var N=q,O=e,Y=0;Y<N.length;Y++){var ha=FH(N[Y][0]),ia=T(N[Y][0]);1<N[Y].length&&void 0!==N[Y][1]&& 1381(ia=T(N[Y][1]));switch(N[Y][0]){case "FE040":case "FD040":var na="RIGHT(' 00000' || COALESCE(iir.\"record\"->>"+(ia+", ''), 6)");O.uf.push({select:na,name:ha,Jg:"'^[a-zA-Z0-9]{6}$'"});O.display.push(ha);O.select.push(na+" AS "+ha);continue;default:O.display.push(ha),O.select.push('iir."record"->>'+ia+" AS "+ha)}}break;case "index_objects_enrollments":for(var ba=c,Aa=q,Qa=e,va=0;va<Aa.length;va++){var lb=Aa[va][0];1<Aa[va].length&&void 0!==Aa[va][1]&&(lb=Aa[va][1]);if(Aa[va][0].startsWith("notes")){var bb= 1382ba["Notes:"];if(bb&&0!=bb.length){Qa.and.push(['(ioe."start" IS NULL OR',' (ioe."program" = \''+lb+"' AND",' ioe."start" <= CURRENT_DATE AND',' (ioe."end" >= CURRENT_DATE OR ioe."end" IS NULL))',")"].join("\n "));for(var Qb=0;Qb<bb.length;Qb++){var mb=FH(bb[Qb]);Qa.display.push(mb);Qa.select.push('ioe."notes"->>\''+bb[Qb]+"' AS "+mb)}}}else if(Aa[va][0].endsWith("Program Participation")||"Status"==Aa[va][0]){var zb=["CASE WHEN EXISTS ("," SELECT *",' FROM "index_objects_enrollments"', 1383' WHERE "program" = \''+lb+"' AND",' "object_id" = ior."object_id" AND',' "start" <= CURRENT_DATE AND',' ("end" >= CURRENT_DATE OR "end" IS NULL) AND'," \"state\" = 'Pre-Enrolled'",") THEN 'Eligibility Review'","WHEN EXISTS ("," SELECT *",' FROM "index_objects_enrollments"',' WHERE "program" = \''+lb+"' AND",' "object_id" = ior."object_id" AND',' "start" <= CURRENT_DATE AND',' ("end" >= CURRENT_DATE OR "end" IS NULL) AND'," \"state\" = 'Enrolled'", 1384") THEN 'Participating'","ELSE 'Not Participating'"],mc=FH(Aa[va][0]);Qa.display.push(mc);Qa.select.push(zb.join("\n")+" END AS "+mc)}else if(Aa[va][0].startsWith("Notes")){var Kb=FH(Aa[va][0]),Kg=Kb;1<Aa[va].length&&void 0!==Aa[va][1]&&(Kg=FH(Aa[va][1]));Qa.display.push(Kb);Qa.select.push("ioe."+Kg+"::text AS "+Kb)}else{var ip=FH(Aa[va][0]),iz=ip;1<Aa[va].length&&void 0!==Aa[va][1]&&(iz=FH(Aa[va][1]));Qa.display.push(ip);Qa.select.push("ioe."+iz+" AS "+ip)}}break;case "index_documents_reports":for(var jz= 1385g,lk=c,Rb=q,mk=e,Nb=0;Nb<Rb.length;Nb++){var nk=FH(Rb[Nb][0]);switch(Rb[Nb][0]){case "GE030":case "GQ030":case "FE030":case "FD030":case "GG030":case "FB030":var jp=lk["Data Set:"].split(" ")[0];jp=T(jp);mk.display.push(nk);mk.select.push(jp+" AS "+nk);continue}var ok=Rb[Nb][0],pk=T(Rb[Nb][0]);1<Rb[Nb].length&&void 0!==Rb[Nb][1]&&(ok=Rb[Nb][1],pk=T(Rb[Nb][1]));var kp=void 0;2<Rb[Nb].length&&void 0!==Rb[Nb][2]&&(kp=T(Rb[Nb][2]));var Cc='idr."record"->>'+pk,WI=T("Document artificially end-dated."); 1386"End Date"===ok&&"Doc Viewer"===jz&&(Cc='CASE WHEN ioe."end" IS NOT NULL AND ioe."end" < SG_DATE(idr."record"->>\'End Date\') THEN TO_CHAR(ioe."end", \'MM/DD/YYYY\') ELSE idr."record"->>'+pk+" END");"ProgramNote"===ok&&"Doc Viewer"===jz&&(Cc='CASE WHEN ioe."end" IS NOT NULL AND ioe."end" < SG_DATE(idr."record"->>\'End Date\') THEN '+WI+' ELSE idr."record"->>'+pk+" END");if(lk["Fiscal Year:"]&&"duplicate"==lk.fy_date_range){var kz='idr."re
1386cord"->>'+T(Rb[Nb][0]);switch(ok){case "Fiscal Year":Cc="'20' || fiscal_years.\"year\""; 1387break;case "Record Date":Cc='CASE WHEN idr."record_date" < fiscal_years."start" THEN to_char(fiscal_years."start", \'YYYYMMDD\') ELSE '+kz+" END";break;case "Effective End Date":Cc='CASE WHEN idr."effective_end_date" IS NULL OR idr."effective_end_date" > fiscal_years."end" THEN to_char(fiscal_years."end", \'YYYYMMDD\') ELSE '+kz+" END"}}Cc=0<=(lk["Replace Unknown Fields:"]||[]).indexOf("true")&&void 0!==kp?"CASE WHEN "+Cc+" = '?' THEN "+kp+" ELSE "+Cc+" END":"CASE WHEN "+Cc+" = '?' THEN 'N' ELSE "+ 1388Cc+" END";(4>Rb[Nb].length||"hidden"!=Rb[Nb][3])&&mk.display.push(nk);mk.select.push(Cc+" AS "+nk)}break;case "index_objects":for(var xe=q,qk=e,Jd=0;Jd<xe.length;Jd++){var rk=FH(xe[Jd][0]);switch(xe[Jd][0]){case "District Enrollment":for(var lp="CASE ",sk=0;sk<EH.length;sk++)lp+='WHEN io."district_enrollment" = '+sk+" THEN '"+EH[sk]+"'\n";lp+="END AS "+rk;qk.display.push(rk);qk.select.push(lp);continue}var lz=FH(xe[Jd][0]);1<xe[Jd].length&&void 0!==xe[Jd][1]&&(lz=FH(xe[Jd][1]));qk.display.push(rk); 1389qk.select.push("io."+lz+" AS "+rk)}break;case "index_users":for(var pd=q,tk=e,Qc=0;Qc<pd.length;Qc++){var uk=FH(pd[Qc][0]),mp=FH(pd[Qc][0]);1<pd[Qc].length&&void 0!==pd[Qc][1]&&(mp=FH(pd[Qc][1]));var np="iu";["user_role","buildings"].includes(pd[Qc][1])&&(np="urc");tk.display.push(uk);switch(pd[Qc][1]){case "force_local_authentication":var mz=np+"."+mp;tk.select.push("CASE WHEN "+mz+" THEN 'Yes' WHEN NOT "+mz+" THEN 'No' END AS "+uk);continue}switch(pd[Qc][0]){case "Last Login":tk.select.push("GREATEST(to_timestamp(SG_BIGINT(lastauth.jsonb_value#>>'{}')),to_timestamp(SG_BIGINT(lastcookie.jsonb_value#>>'{}'))) AS "+ 1390uk);continue}tk.select.push(np+"."+mp+" AS "+uk)}break;case "index_forms":GH("idf",q,e);break;case "index_objects_deadlines":for(var ye=q,ze=e,Kd=0;Kd<ye.length;Kd++){var zf=FH(ye[Kd][0]),nz=FH(ye[Kd][0]);1<ye[Kd].length&&void 0!==ye[Kd][1]&&(nz=FH(ye[Kd][1]));switch(ye[Kd][0]){case "Assigned":ze.qb.push("assignees_cte AS (\n WITH user_human AS (\n SELECT user_id, first_name || ' ' || last_name AS human\n FROM index_users\n ), user_id_rows AS (\n SELECT id, jsonb_array_elements_text(assignees) AS user_id\n FROM \"index_objects_deadlines\"\n )\n SELECT iod_cte.id, string_agg(human, ', ') AS human_name\n FROM \"index_objects_deadlines\" AS iod_cte\n JOIN user_id_rows AS uir\n ON iod_cte.id = uir.id\n JOIN user_human AS uh\n ON uir.user_id = uh.user_id\n GROUP BY iod_cte.id\n)"); 1391ze.display.push(zf);ze.select.push("acte.human_name AS "+zf);continue;case "Determined From":ze.display.push(zf);ze.select.push("idf.form_name AS "+zf);continue}ze.display.push(zf);ze.select.push("iod."+nz+" AS "+zf)}break;case "objects_deadlines_group_name":JH(q,e);break;default:GH(m,q,e)}}e.Ue.push("NULLIF(TRIM(idr.\"record\"->>'Data Issue'), '')");for(var oz=r(e.uf),op=oz.next();!op.done;op=oz.next()){var vk=op.value;e.Ue.push("CASE WHEN "+vk.select+" ~ "+vk.Jg+" THEN NULL ELSE "+T(vk.name+" Invalid (")+ 1392" || "+vk.select+" || ')' END")}for(var XI=d,pz=r(b),pp=pz.next();!pp.done;pp=pz.next()){var rh=pp.value;if("GE100"==rh){for(var qz="PSTC RFRL CNST TETR IETR RETR NIEP TIEP IIEP IISP RIEP RISP AIEP CIEP SEMD".split(" "),qp="CASE ",wk=0;wk<qz.length;wk++)qp+='WHEN "GE100" = \''+qz[wk]+"' THEN "+(wk+1)+"\n";qp+="END";e.Yd.push(qp)}else rh.startsWith("SG_DATE(")||rh.endsWith("::DECIMAL")?e.Yd.push(rh):e.Yd.push(FH(rh))}["Object","User","Deadlines","Program Participation"].includes(XI)||(e.select.push("'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse' AS \"doc_order\""), 1393e.Yd.push("SPLIT_PART(\"doc_order\", '_', 1)"));var Af=d;if("Object"==Af)e.from.push('"index_objects" AS io','JOIN "index_objects_reports" AS ior'," ON io.object_id = ior.object_id");else if("User"==Af)e.from.push('"index_users" AS iu'),e.from.push('LEFT JOIN "user_roles_cte" AS urc'," ON urc.user_id = iu.user_id"),e.from.push('LEFT JOIN "max_users" AS lastauth'," ON iu.user_id::TEXT = lastauth.row AND"," lastauth.col = 'meta:last_authenticated'"),e.from.push('LEFT JOIN "max_users" AS lastcookie', 1394" ON iu.user_id::TEXT = lastcookie.row AND"," lastcookie.col = 'meta:last_new_cookie_time'");else if("Deadlines"==Af)e.from.push('"index_objects_deadlines" AS iod','JOIN "index_objects_reports" AS ior',' ON iod."object_id" = ior."object_id"','LEFT JOIN "index_documents" AS id',' ON SG_BIGINT(iod."last_doc") = id."doc_id"','LEFT JOIN "index_forms" AS idf',' ON id."form_id" = idf."form_id"','JOIN "index_objects" AS io'," ON io.object_id = ior.object_id",'LEFT JOIN "assignees_cte" AS acte', 1395" ON acte.id = iod.id",'JOIN "index_formgroups" as ifg'," ON idf.form_group = ifg.form_group"),c["Notes:"]&&0<c["Notes:"].length&&e.from.push('LEFT JOIN "index_objects_enrollments" AS ioe',' ON iod."object_id" = ioe."object_id"');else if("Program Participation"==Af)e.from.push('"index_objects" AS io','LEFT JOIN "index_objects_enrollments" AS ioe',' ON io."object_id" = ioe."object_id"','LEFT JOIN "index_instances_reports" AS iir'," ON TRUE");else{var rz=['JOIN "index_documents_reports" AS idr', 1396' ON id."doc_id" = SG_BIGINT(SPLIT_PART(idr."doc_id", \'_\', 1))'];"Acknowledgement"==Af&&(rz=['JOIN "ack_formatted" AS acknowledgements',' ON id."doc_id"::text = acknowledgements."doc_id"',' AND NOT id."deleted"','JOIN "fake_idr" AS idr',' ON acknowledgements."ack_id" = idr."ack_id"']);e.from.push.apply(e.from,['"index_documents" AS id','JOIN "index_objects" AS io',' ON id."object_id" = io."object_id"','JOIN "index_objects_reports" AS ior',' ON id."object_id" = ior."object_id"'].concat(ma(rz), 1397['LEFT JOIN "index_instances_reports" AS iir'," ON TRUE"]));"Doc Viewer"==Af&&e.from.push('LEFT JOIN "index_objects_enrollments" AS ioe',' ON id."object_id" = ioe."object_id"',' AND ioe."start" <= SG_DATE(idr."record"->>\'End Date\')',' AND (ioe."end" IS NULL OR ioe."end" >= SG_DATE(idr."record"->>\'Start Date\'))');c["Notes:"]&&0<c["Notes:"].length&&e.from.push('LEFT JOIN "index_objects_enrollments" AS ioe',' ON id."object_id" = ioe."object_id"');for(var sz=r(a),rp=sz.next();!rp.done;rp=sz.next())switch(Object.keys(rp.value)[0]){case "index_users":e.from.push("LEFT JOIN LATERAL (", 1398" SELECT *",' FROM "index_users" AS iu_cte'," JOIN (",' SELECT idp_cte."user_id", idp_cte."doc_id"',' FROM "index_documents_permission" AS idp_cte',' WHERE idp_cte."doc_id" = id."doc_id" AND',' idp_cte."permission" = 3',' ORDER BY idp_cte."id" DESC'," ) AS idp",' ON iu_cte."user_id" = idp."user_id"',' WHERE iu_cte."deleted" = false'," LIMIT 1",") AS iu",' ON id."doc_id" = iu."doc_id"');break;case "index_forms":e.from.push('LEFT JOIN "index_forms" AS idf',' ON id."form_id" = idf."form_id"'); 1399break;case "acknowledgements_users":e.from.push('JOIN "index_users" AS acknowledgements_users',' ON acknowledgements_users."user_id" = acknowledgements."user_id"')}}var Ld=c.requesting_user_id;
1399Ld&&(Ld=T(Ld),"Deadlines"==d?(e.qb.push("explicit_forms AS (\n SELECT object_id, form_id\n FROM index_documents_permission\n JOIN index_documents\n USING(doc_id)\n WHERE user_id = "+Ld+")","building_roles AS (\n SELECT\n jsonb_array_elements(user_role)->>'user_role' AS user_role,\n jsonb_array_elements_text(\n jsonb_array_elements(user_role)->'buildings'\n ) AS building_id\n FROM index_users\n WHERE user_id = "+ 1400Ld+")","building_forms AS (\n SELECT building_id, form_id\n FROM index_instances_user_roles\n JOIN building_roles\n USING (user_role)\n WHERE max_allowable > 0\n AND NOT soft_deleted\n)","deadline_form_names AS (\n SELECT\n -- remove deadlines: prefix and _pb suffix\n substr(col, 11, length(col) - 13) AS program_name,\n jsonb_object_keys(\n jsonb_value->'form_field_map'\n ) AS form_name\n FROM max_instances\n WHERE col LIKE 'deadlines%pb')","deadline_buildings AS (\n SELECT building_id, array_agg(DISTINCT program_name) AS programs\n FROM deadline_form_names\n JOIN index_forms\n USING(form_name)\n JOIN building_forms\n USING(form_id)\n GROUP BY building_id\n)", 1401"deadline_objects AS(\n SELECT object_id, array_agg(DISTINCT program_name) AS programs\n FROM deadline_form_names\n JOIN index_forms\n USING(form_name)\n JOIN explicit_forms\n USING(form_id)\n GROUP BY object_id\n)"),e.from.push('JOIN "index_users" as iu\n ON iu."user_id"='+Ld+'\nLEFT JOIN "deadline_buildings" as bldngs\n ON io."building_id"=bldngs."building_id"\nLEFT JOIN "deadline_objects" as objs\n ON io."object_id"=objs."object_id"'),e.and.push(' (\n substr(iod."program", 11, LENGTH(iod."program") - 16)=ANY(bldngs.programs)\n OR\n iu."user_role" IS NULL\n AND\n substr(iod."program", 11, LENGTH(iod."program") - 16)=ANY(objs.programs)\n )')): 1402(e.from.push('LEFT JOIN "index_documents_permission" AS idp',' ON id."doc_id" = idp."doc_id"',' AND idp."user_id" = '+Ld,"LEFT JOIN max_perms"," ON io.building_id = max_perms.building"," AND id.form_id = max_perms.form_id"),e.qb.push(["max_perms AS (\n WITH assgns AS MATERIALIZED (\n SELECT\n assgn->>'user_role' AS user_role,\n jsonb_array_elements_text(assgn->'buildings') AS building\n FROM (\n SELECT jsonb_array_elements(user_role)\n FROM index_users"," WHERE user_id = "+ 1403Ld," ) AS assgns(assgn)\n )\n SELECT assgns.building, iiur.form_id, MAX(iiur.implicit) AS implicit, MAX(iiur.max_allowable) AS max_allowable FROM assgns\n JOIN index_instances_user_roles AS iiur\n ON assgns.user_role = iiur.user_role\n AND NOT iiur.soft_deleted\n GROUP BY (assgns.building, iiur.form_id)\n)"].join("\n")),e.and.push("max_perms.form_id IS NOT NULL","(\n max_perms.implicit != 0\n OR (\n idp.permission IS NOT NULL\n AND max_perms.max_allowable != 0\n))")));var tz= 1404d;["Object","User","Deadlines","Program Participation"].includes(tz)||e.and.push('idr."record_name" = '+T(tz));for(var Bf in c)if(Array.isArray(c[Bf])){for(var uz=0<c[Bf].length,vz=r(c[Bf]),sp=vz.next();!sp.done;sp=vz.next()){var wz=sp.value;if("Invalid"!=wz&&"Valid"!=wz){uz=!1;break}}if(uz){if(0<=c[Bf].indexOf("Invalid")){var xz=FH("Errors");e.display.splice(1,0,xz);e.select.push("CONCAT_WS('\\n',"+e.Ue.join(",\n ")+(") AS "+xz))}1==c[Bf].length&&e.and.push("CONCAT_WS(E'\\n',\n "+e.Ue.join(",\n ")+ 1405"\n ) "+("Valid"==c[Bf][0]?"":"!")+"= ''")}}HH(d,c,e);for(var Ob in c)if("Record Date:_start"!=Ob&&"Record Date:_end"!=Ob&&"Progress Date:_start"!=Ob&&"Progress Date:_end"!=Ob){if(Ob.endsWith(":_start")){if(""==c[Ob])continue;if(Ob.startsWith("Due")){e.and.push('iod."due" >= SG_DATE('+T(c[Ob])+")");continue}e.and.push("SG_DATE(idr.record->>"+T(Ob.replace(":_start",""))+") >= SG_DATE("+T(c[Ob])+")")}Ob.endsWith(":_end")&&""!=c[Ob]&&(Ob.startsWith("Due")?e.and.push('iod."due" <= SG_DATE('+T(c[Ob])+ 1406")"):e.and.push("SG_DATE(idr.record->>"+T(Ob.replace(":_end",""))+") <= SG_DATE("+T(c[Ob])+")"))}var yz=c["ETR Effective Date:"],zz=c["ER Effective Date:"],tp=c["IEP/SP Effective Date:"],up=c["IEP Effective Date:"],Az=c["MDR Effective Date:"],Bz=c["ETR Consent Date:"],vp=c["Section 504: Plan Effective Date:"],wp=c["WEP Effective Date:"],xp=c["WAP Effective Date:"],yp=c["RIMP Effective Date:"],zp=c["Effective Date:"],Ap=c["SDI Effective Date:"],Bp=c["Service Effective Date:"],Cp=c["AT Effe
1406ctive Date:"], 1407Dp=c["Accommodation Effective Date:"],Ep=c["Modification Effective Date:"],Cz=c["LPAC Effective Date:"];if(yz){var Dz=T(yz);e.and.push('idr."record_date" <= '+Dz,'idr."record_date" >= SG_DATE('+Dz+") - INTERVAL '3 years' + INTERVAL '1 day'")}else if(zz){var Ez=T(zz);e.and.push('idr."record_date" <= '+Ez,'idr."record_date" >= SG_DATE('+Ez+") - INTERVAL '3 years' + INTERVAL '1 day'")}else if(tp)e.and.push("SG_DATE(idr.\"record\"->>'Effective Start') <= SG_DATE("+(T(tp)+")"),"SG_DATE(idr.\"record\"->>'Effective End') >= SG_DATE("+ 1408(T(tp)+")"));else if(up)e.and.push("SG_DATE(idr.\"record\"->>'Effective Start') <= SG_DATE("+(T(up)+")"),"SG_DATE(idr.\"record\"->>'Effective End') >= SG_DATE("+(T(up)+")"));else if(Az){var Fz=T(Az);e.and.push('idr."record_date" <= '+Fz,'idr."record_date" >= SG_DATE('+Fz+") - INTERVAL '90 days' + INTERVAL '1 day'")}else if(Bz){var Gz=T(Bz);e.and.push('idr."record_date" <= '+Gz,'idr."record_date" >= SG_DATE('+Gz+") - INTERVAL '60 days' + INTERVAL '1 day'")}else if(vp)e.and.push("SG_DATE(idr.\"record\"->>'Effective Start') <= SG_DATE("+ 1409T(vp)+")","SG_DATE(idr.\"record\"->>'Effective End') >= SG_DATE("+T(vp)+")");else if(wp)e.and.push("SG_DATE(idr.\"record\"->>'Effective Start') <= SG_DATE("+T(wp)+")","SG_DATE(idr.\"record\"->>'Effective End') >= SG_DATE("+T(wp)+")");else if(xp)e.and.push("SG_DATE(idr.\"record\"->>'Transition Start') <= SG_DATE("+T(xp)+")","SG_DATE(idr.\"record\"->>'Transition End') >= SG_DATE("+T(xp)+")");else if(yp)e.and.push("SG_DATE(idr.\"record\"->>'Start Date') <= SG_DATE("+T(yp)+")","SG_DATE(idr.\"record\"->>'End Date') >= SG_DATE("+ 1410T(yp)+")");else if(zp)e.and.push("SG_DATE(idr.\"record\"->>'Start Date') <= SG_DATE("+(T(zp)+")"),"SG_DATE(idr.\"record\"->>'End Date') >= SG_DATE("+(T(zp)+")"));else if(Ap)e.and.push("SG_DATE(idr.\"record\"->>'SDI Start Date') <= SG_DATE("+(T(Ap)+")"),"SG_DATE(idr.\"record\"->>'SDI End Date') >= SG_DATE("+(T(Ap)+")"));else if(Bp)e.and.push("SG_DATE(idr.\"record\"->>'Service Start Date') <= SG_DATE("+(T(Bp)+")"),"SG_DATE(idr.\"record\"->>'Service End Date') >= SG_DATE("+(T(Bp)+")"));else if(Cp)e.and.push("SG_DATE(idr.\"record\"->>'AT Start Date') <= SG_DATE("+ 1411(T(Cp)+")"),"SG_DATE(idr.\"record\"->>'AT End Date') >= SG_DATE("+(T(Cp)+")"));else if(Dp)e.and.push("SG_DATE(idr.\"record\"->>'Accommodation Start Date') <= SG_DATE("+(T(Dp)+")"),"SG_DATE(idr.\"record\"->>'Accommodation End Date') >= SG_DATE("+(T(Dp)+")"));else if(Ep)e.and.push("SG_DATE(idr.\"record\"->>'Modification Start Date') <= SG_DATE("+(T(Ep)+")"),"SG_DATE(idr.\"record\"->>
1411'Modification End Date') >= SG_DATE("+(T(Ep)+")"));else if(Cz){var Hz=T(Cz);e.and.push('idr."record_date" <= '+Hz,'idr."record_date" >= SG_DATE('+ 1412Hz+") - INTERVAL '1 year' + INTERVAL '1 day'")}var xk=c["Document:"];if(xk&&c["Document:_length"]!=xk.length){for(var Iz=[],Fp=0;Fp<xk.length;Fp++)Iz.push(T(xk[Fp]));e.and.push("idr.\"record\"->>'FormType' IN("+Iz+")")}c["Student:"]&&e.and.push('io."object_id" = '+T(c["Student:"]));if("Doc Viewer"==d){var Jz=c["Effective Date:"];if(Jz){var Kz=T(Jz);e.and.push('ioe."start" <= SG_DATE('+Kz+")",'(ioe."end" >= SG_DATE('+Kz+') OR ioe."end" IS NULL)');e.and.push('ioe."program" = idr."record"->>\'Program\'')}}"Deadlines"== 1413d&&e.and.push("ifg.active");for(var Lz=r("Category;Log Type;Billable Service;Service;Billable Activity;Activity;Missing Supervisor Signature;Audited;Age;Program;Age Range;Direct".split(";")),Gp=Lz.next();!Gp.done;Gp=Lz.next())IH(d,c,e,Gp.value);if(c._filter_cols)for(var Mz=r(c._filter_cols),Hp=Mz.next();!Hp.done;Hp=Mz.next()){var Nz=Hp.value;IH(d,c,e,Nz[0],Nz[1])}var yk=c["Specially Designed Services:"];if(yk&&0!==yk.length&&c["Specially Designed Services:_length"]!=yk.length){for(var Oz=[],Pz=r(yk), 1414Ip=Pz.next();!Ip.done;Ip=Pz.next())Oz.push(T(Ip.value));e.and.push("idr.\"record\"->>'ServiceType' IN ("+Oz.join(",")+")")}var Jp=c["District Enrollment:"];if(Jp&&Jp.length<=EH.length){for(var Kp=[],Qz=r(Jp),Lp=Qz.next();!Lp.done;Lp=Qz.next()){var Rz=EH.indexOf(Lp.value);0<=Rz&&Kp.push(Rz)}Kp.sort();e.and.push('io."district_enrollment" IN ('+Kp.join(",")+")")}var Mp="idr";"Deadlines"==d&&(Mp="iod");for(var zk in c)if(zk.endsWith("Program Enrollment:")){var Np=c[zk];if(3!=Np.length){var Cf=zk.substring(0, 1415zk.length-19);Cf=Cf.trim();""==Cf&&(Cf="Special Education");Np.sort();for(var Ak=[],Op=[],Sz=!1,Tz=r(Np),Pp=Tz.next();!Pp.done;Pp=Tz.next())switch(Pp.value){case "Not Participating":Sz=!0;break;case "Eligibility Review":Ak.push(T("Pre-Enrolled"));break;case "Participating":Ak.push(T("Enrolled"))}0<Ak.length&&Op.push('EXISTS ( SELECT * FROM "index_objects_enrollments" WHERE "program" = \''+Cf+'\' AND "object_id" = '+Mp+'."object_id" AND "start" <= CURRENT_DATE AND ("end" >= CURRENT_DATE OR "end" IS NULL) AND "state" IN ('+ 1416Ak.join(",")+"))");Sz&&Op.push('NOT EXISTS ( SELECT * FROM "index_objects_enrollments" WHERE "program" = \''+Cf+'\' AND "object_id" = '+Mp+'."object_id" AND "start" <= CURRENT_DATE AND ("end" >= CURRENT_DATE OR "end" IS NULL) AND "state" IN (\'Pre-Enrolled\', \'Enrolled\'))');e.and.push("("+Op.join(" OR ")+")")}}var Qp=[],Df;for(Df in c)if(Df.endsWith("Cutover Date:")){var Bk=Df.substring(0,Df.length-13);Bk=Bk.trim();var Uz="COALESCE("+(c[Df]?"'"+c[Df]+"'::date":"NULL")+', COALESCE(NULLIF(iir."record"->>\''+ 1417(Bk+" Cutover', '')::date, CURRENT_DATE))");Qp.push('EXISTS ( SELECT 1 FROM "index_objects_enrollments" WHERE "program" = \''+Bk+'\' AND "object_id" = io."object_id" AND ("start" >= '+Uz+' OR "end" >= '+Uz+"))")}0!=Qp.length&&e.and.push("("+Qp.join(" OR\n")+")");var Rp=c["Building:"];if(Rp&&Rp.length!=c["Building:_length"]){for(var Sp=[],Vz=r(Rp),Tp=Vz.next();!Tp.done;Tp=Vz.next())Sp.push(T(Tp.value));Sp.sort();e.and.push("ior.\"record\"->>'Building Reporting ID' IN ("+Sp.join(",")+")")}switch(d){case "Object":var Up= 1418c["Student Status:"];if(!Up){e.and.push("io.\"deleted\" = 'false'");break}if(2==Up.length)break;e.and.push('io."deleted" = \''+("Deleted"==Up[0]?"true":"false")+"'");break;case "User":e.and.push("iu.\"deleted\" = 'false'");break;default:e.and.push("io.\"deleted\" = 'false'")}"User"==d&&(e.and.push("iu.\"is_doc_only\" = 'false'"),e.and.push("iu.\"is_translation_only\" = 'false'"),e.and.push("iu.\"user_name\" NOT LIKE '%@samegoal.com'"));var Vp=c["Document Status:"];["Object","User","Deadlines","Program Participation"].includes(d)|| 1419(Vp?2!=Vp.length&&("Complete"==Vp[0]?e.and.push("idr.finalized = 'true'"):e.and.push("idr.finalized = 'false'")):e.and.push("idr.finalized = 'true'"));var Wp=c["Attachments:"];Wp&&"With or without"!=Wp&&("Without only"==Wp?e.and.push("id.\"has_attachment\" = 'false'"):e.and.push("id.\"has_attachment\" = 'true'"));var Wz=c["Program Codes:"];if("GQ"==d){for(var Ef=[],Xz=!1,Xp=!1,Yp=!1,Zp=0;Zp<Wz.length;Zp++)switch(Wz[Zp]){case "Reading Improvement and Monitoring Plan":Xp=!0;break;case "Special Education":Xz= 1420!0;break;case "Advanced Learners":Yp=!0}Xz?(Xp||(e.and.push('SUBSTRING(idr."record"->> '+T("GQ060")+",1,3) != "+T("151")),e.and.push('SUBSTRING(idr."record"->> '+T("GQ060")+",1,3) != "+T("152"))),Yp||(e.and.push('SUBSTRING(idr."record"->> '+T("GQ060")+",1,3) != "+T("205")),e.and.push('SUBSTRING(idr."record"->> '+T("GQ060")+",1,3) != "+T("206")))):(Xp&&(Ef.push('SUBSTRING(idr."record"->> '+T("GQ060")+",1,3) = "+T("151")),Ef.push('SUBSTRING(idr."record"->> '+T("GQ060")+",1,3) = "+T("152"))),Yp&&(Ef.push('SUBSTRING(idr."record"->> '+ 1421T("GQ060")+",1,3) = "+T("205")),Ef.push('SUBSTRING(idr."record"->> '+T("GQ060")+",1,3) = "+T("206"))),0<Ef.length&&e.and.push("("+Ef.join(" OR ")+")"))}var YI=d;if(c.hasOwnProperty("Progress Date:_start")||c.hasOwnProperty("Progress Date:_end")){var sh="Goal Number";switch(YI){case "504 Progress Report Compliance":sh="504 Intervention Number";break;case "IEP Progress Report Compliance":sh="Goal Number";break;case "RTI Tier 2 Progress Report Compliance":sh="Tier 2 Intervention Number";break;case "RTI Tier 3 Progress Report Compliance":sh= 1422"Tier 3 Intervention Number"}var Yz=T(sh),Zz=T(c["Progress Date:_start"]),$z=T(c["Progress Date:_end"]);e.and.push("SG_DATE(idr.record->>'Start Date') <= SG_DATE("+$z+")");e.and.push("SG_DATE(idr.record->>'End Date') >= SG_DATE("+Zz+")");
1422e.and.push("idr.\"record\"->>'Progress Available' = 'No'");e.and.push('NOT EXISTS(\n SELECT 1 FROM "index_documents_reports" AS idr2\n WHERE idr2."record"->>'+Yz+' = idr."record"->>'+Yz+"\n AND SG_DATE(idr2.record->>'Start Date') >= SG_DATE("+Zz+')\n AND idr."object_id" = idr2."object_id"\n AND SG_DATE(idr2.record->>\'End Date\') <= SG_DATE('+ 1423$z+")\n AND idr2.\"record\"->>'Progress Available' = 'Yes')")}var aA="";0<e.qb.length&&(aA="WITH "+e.qb.join(",\n")+"\n");return"WITH select_cte AS ( SELECT * FROM (\n"+aA+" SELECT "+e.select.join(",\n ")+"\n FROM "+e.from.join("\n ")+"\n WHERE "+e.and.join(" AND\n ")+") AS order_by_cte\nORDER BY "+e.Yd.join(",\n ")+"\n)\nSELECT "+e.display.join(",\n ")+"\nFROM select_cte\n"}function LH(a){var b=MH,c=new NH(null);c.Je=a;b.g.push(c);return c} 1424function NH(a){this.Je=void 0;this.i=a;this.h=[];this.g=[]}function OH(){var a=PH;if(0!=a.g.length)throw Error("Should not add sub-menus when report object array isnot empty.");var b=new NH(a);b.Je=void 0;b.i=a;a.h.push(b);return b}function V(a,b){if(0!=a.h.length)throw Error("Should not add report objects when there is sub-menu.");if(void 0===b.cc){for(var c=a;void 0===c.Je&&c.parent;)c=c.parent;b.cc=c.Je}b.parent=a;a.g.push(b)} 1425function QH(a){var b=[];switch(!0){case !!a["Document ID:"]:b.push("audit_target AS ("," SELECT TRIM(id_val)::TEXT AS doc_id"," FROM (SELECT UNNEST(STRING_TO_ARRAY("+T(a["Document ID:"])+", ',')) AS id_val)"," WHERE TRIM(id_val) <> ''",")");break;case !!a["Student:"]:b.push("audit_target AS ("," SELECT doc_id::TEXT"," FROM index_documents"," WHERE object_id = "+T(a["Student:"]),")");break;case !!a["User:"]:a=T(a["User:"]);b.push("audit_target AS ("," SELECT DISTINCT d.row AS doc_id", 1426" FROM documents d",' WHERE d."user" = '+a," UNION"," SELECT DISTINCT a.fk_entity AS doc_id"," FROM activity_audit a",' WHERE a."user" = '+a,")");break;default:b.push("audit_target AS ("," SELECT 'XXXXXXX' AS doc_id",")")}return b.join("\n")} 1427function KH(){return"timezone AS (\n SELECT COALESCE(field.jsonb_value #>> '{}', 'America/Chicago') AS zone\n FROM max_forms ids\n LEFT JOIN max_instances field\n ON field.col = 'fields:' || (ids.jsonb_value #>> '{}')\n WHERE ids.col = 'ids:timezone'\n AND ids.row = 'INSTANCE_FORM'\n)"} 1428function RH(a){var b=[],c=[],d=a["Event Types:"];b.push(KH());b.push(QH(a));(d.includes("permissions")||d.includes("doc_events"))&&b.push("meta_messages AS (\n SELECT d.row,\n d.jsonb_value AS meta_message,\n LAG(d.jsonb_value) OVER (PARTITION BY d.row ORDER BY d.version)\n AS previous_meta_message,\n d.version,\n d.user,\n d.time AT TIME ZONE current_setting('TIMEZONE')\n AT TIME ZONE zone AS local_time\n FROM documents d\n CROSS JOIN timezone\n JOIN audit_target t ON d.row = t.doc_id\n WHERE col = 'meta:message'\n)");d= 1429r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;switch(e){case "edits":b.push("edits AS (\n SELECT d.row::BIGINT as doc_id,\n SUBSTR(d.col, 8) AS key,\n d.jsonb_value #>> '{}' AS value,\n d.time AT TIME ZONE current_setting('TIMEZONE')\n AT TIME ZONE zone AS local_time,\n d.\"user\" AS user_id,\n NULL::TEXT AS affected_user,\n 'Edit' AS event_type,\n ifk.description,\n d.version\n FROM documents AS d\n CROSS JOIN timezone\n JOIN index_documents AS ixd ON d.row::BIGINT = ixd.doc_id\n JOIN index_forms AS if USING (form_id)\n LEFT JOIN index_forms_keys ifk\n ON if.form_id = ifk.form_id\n AND TRIM(TRAILING '/' FROM REGEXP_REPLACE(\n SUBSTR(d.col, 8), '(:[0-9]+/)', ':x/', 'g')) = ifk.key\n WHERE d.col LIKE 'fields:%'\n AND d.row IN (SELECT doc_id FROM audit_target)\n)"); 1430break;case "views":b.push("views AS (\n SELECT a.fk_entity::BIGINT AS doc_id,\n '' AS key,\n '' AS value,\n a.time AT TIME ZONE current_setting('TIMEZONE')\n AT TIME ZONE zone AS local_time,\n a.\"user\" AS user_id,\n NULL::TEXT AS affected_user,\n 'View' AS event_type,\n 'Document opened' AS description,\n a.version\n FROM activity_audit a\n CROSS JOIN timezone\n JOIN audit_target t ON a.fk_entity = t.doc_id\n WHERE a.activity_class = 0\n AND a.entity_type = 1\n)"); 1431break;case "permissions":b.push("permissions AS (\n WITH current_perms AS (\n SELECT m.row,\n m.version,\n m.local_time,\n m.\"user\" AS acting_user,\n (p_curr.perm_data->'user'->>'user_id') AS user_id,\n (p_curr.perm_data->>'permission')::INT AS current_perm_id\n FROM meta_messages m,\n jsonb_array_elements(m.meta_message->'user_permission')\n AS p_curr(perm_data)\n ),\n previous_perms AS (\n SELECT m.row,\n m.version,\n m.local_time,\n m.\"user\" AS acting_user,\n (p_prev.perm_data->'user'->>'user_id') AS user_id,\n (p_prev.perm_data->>'permission')::INT AS previous_perm_id\n FROM meta_messages m,\n jsonb_array_elements(m.previous_meta_message\n ->'user_permission') AS p_prev(perm_data)\n WHERE m.previous_meta_message IS NOT NULL\n ),\n permission_values AS (\n SELECT * FROM (VALUES\n (0, 'NONE'), (1, 'VIEW'), (2, 'EDIT'), (3, 'OWNER')\n ) AS t(perm_id, perm_name)\n ),\n changed_perms AS (\n SELECT COALESCE(curr.row, prev.row)::BIGINT AS doc_id,\n COALESCE(curr.version, prev.version) AS version,\n COALESCE(curr.local_time, prev.local_time) AS local_time,\n COALESCE(curr.acting_user, prev.acting_user) AS acting_user,\n COALESCE(curr.user_id, prev.user_id) AS changed_user_id,\n COALESCE(curr_pv.perm_name, 'NONE') AS current_permission,\n COALESCE(prev_pv.perm_name, 'NONE') AS previous_permission\n FROM current_perms curr\n FULL OUTER JOIN previous_perms prev\n ON curr.row = prev.row\n AND curr.version = prev.version\n AND curr.user_id = prev.user_id\n LEFT JOIN permission_values curr_pv\n ON curr.current_perm_id = curr_pv.perm_id\n LEFT JOIN permission_values prev_pv\n ON prev.previous_perm_id = prev_pv.perm_id\n WHERE curr.current_perm_id\n IS DISTINCT FROM prev.previous_perm_id\n OR prev.previous_perm_id IS NULL\n OR curr.current_perm_id IS NULL\n )\n SELECT cp.doc_id,\n '' AS key,\
1431n CONCAT(iu.first_name, ' ', iu.last_name,\n ' <', iu.user_name, '> ',\n CASE WHEN iu.is_doc_only THEN '(guardian)' ELSE ''END)\n AS value,\n cp.local_time,\n cp.acting_user AS user_id,\n cp.changed_user_id AS affected_user,\n 'Permissions Change' AS event_type,\n CONCAT(cp.previous_permission,\n ' => ', cp.current_permission) AS description,\n cp.version\n FROM changed_perms cp\n JOIN index_users iu ON cp.changed_user_id = iu.user_id\n)"); 1432break;case "doc_events":b.push("doc_events AS (\n WITH creation_message AS (\n SELECT d.row::BIGINT AS doc_id,\n 1 AS version,\n d.time AT TIME ZONE current_setting('TIMEZONE')\n AT TIME ZONE zone AS local_time,\n d.\"user\" AS user_id,\n 'Document Created' AS event_type,\n CASE d.jsonb_value->>'create_type'\n WHEN '2' THEN 'Copied from Existing'\n WHEN '1' THEN 'Transferred from External District'\n ELSE ''\n END AS description,\n CASE d.jsonb_value->>'create_type'\n WHEN '2' THEN CONCAT('Source Document ID: ',\n d.jsonb_value->>'cfe_src_doc_id')\n WHEN '1' THEN CONCAT('Transferred from: ',\n d.jsonb_value->>'d2d_district_name', ' by: ',\n d.jsonb_value->>'d2d_first_name', ' ',\n d.jsonb_value->>'d2d_last_name')\n END AS value\n FROM documents d\n CROSS JOIN timezone\n JOIN audit_target t ON d.row = t.doc_id\n WHERE d.col = 'meta:creation'\n ),\n lifecycle_events AS (\n SELECT m.row::BIGINT AS doc_id,\n CASE WHEN m.previous_meta_message IS NULL THEN 2\n ELSE m.version\n END AS version,\n m.local_time,\n m.\"user\" AS user_id,\n CASE\n WHEN m.previous_meta_message IS NULL\n THEN 'Document Created'\n WHEN (m.meta_message->>'is_deleted') IS DISTINCT FROM\n (m.previous_meta_message->>'is_deleted')\n THEN CASE WHEN (m.meta_message->>'is_deleted') = 'true'\n THEN 'Document Deleted'\n ELSE 'Document Undeleted'\n END\n WHEN (m.meta_message->>'is_finalized') IS DISTINCT FROM\n (m.previous_meta_message->>'is_finalized')\n THEN CASE WHEN (m.meta_message->>'is_finalized') = 'true'\n THEN 'Document Completed'\n ELSE 'Document Incompleted'\n END\n ELSE NULL\n END AS event_type,\n '' AS description,\n CASE WHEN (m.meta_message->>'is_finalized') IS DISTINCT FROM\n (m.previous_meta_message->>'is_finalized') AND\n (m.meta_message->>'is_finalized') = 'true'\n THEN m.meta_message->>'override_reason'\n ELSE ''\n END AS value\n FROM meta_messages m\n WHERE (m.meta_message->>'is_deleted') IS DISTINCT FROM\n (m.previous_meta_message->>'is_deleted')\n OR (m.meta_message->>'is_finalized') IS DISTINCT FROM\n (m.previous_meta_message->>'is_finalized')\n OR m.previous_meta_message IS NULL\n ),\n amendment_events AS (\n SELECT m.row::BIGINT AS doc_id,\n m.version,\n m.local_time,\n m.\"user\" AS user_id,\n 'Formal Amendment Created' AS event_type,\n '' as description,\n '' AS value\n FROM meta_messages m\n WHERE m.previous_meta_message IS NOT NULL\n AND COALESCE(jsonb_array_length(\n m.meta_message->'tagged_version'), 0) >\n COALESCE(jsonb_array_length(\n m.previous_meta_message->'tagged_version'), 0)\n )\n SELECT doc_id, '' AS key, value, local_time, user_id,\n '' AS affected_user, event_type, description, version\n FROM creation_message\n UNION ALL\n SELECT doc_id, '' AS key, value, local_time, user_id,\n '' AS affected_user, event_type, description, version\n FROM lifecycle_events l\n WHERE l.event_type != 'Document Created'\n OR NOT EXISTS (\n SELECT 1\n FROM creation_message c\n WHERE c.doc_id = l.doc_id\n )\n UNION ALL\n SELECT doc_id, '' AS key, value, local_time, user_id,\n '' AS affected_user, event_type, description, version\n FROM amendment_events\n)")}c.push(" SELECT * FROM "+ 1433FH(e))}d=[];a["User:"]&&(e=T(a["User:"]),d.push("(u.user_id = "+e+" OR u.affected_user = "+e+")"));a["Dates:_start"]&&d.push("u.local_time >= "+T(a["Dates:_start"])+"::TIMESTAMP");a["Dates:_end"]&&d.push("u.local_time < "+T(a["Dates:_end"])+"::TIMESTAMP + INTERVAL '1 day'");return"WITH "+b.join(",\n")+",\nunioned AS (\n"+c.join("\n UNION ALL\n")+'\n)\nSELECT io.print_id as "Student ID",\n io.first_name || \' \' || io.last_name AS "Student Name",\n CASE\n WHEN iu.is_admin THEN \'Admin\'\n WHEN iu.is_doc_only THEN \'Guardian\'\n WHEN iu.user_name IS NULL THEN \'External\'\n ELSE \'Standard\'\n END AS "User Type",\n COALESCE(iu.first_name || \' \' || iu.last_name, \'See Value\')\n AS "User Name",\n iu.user_name AS "User Email",\n if.form_name AS "Form Name",\n u.doc_id AS "Document ID",\n u.event_type AS "Event Type",\n TO_CHAR(u.local_time, \'YYYY-MM-DD\') AS "Date",\n TO_CHAR(u.local_time, \'HH24:MI:SS\') AS "Time",\n u.key AS "Field Identifier",\n u.description AS "Description",\n u.value AS "Value"\n FROM unioned AS u\n JOIN index_documents AS ixd\n USING(doc_id)\n LEFT JOIN index_users AS iu\n USING(user_id)\n JOIN index_objects AS io\n USING(object_id)\n JOIN index_forms AS if\n USING(form_id)'+ 1434(d.length?"\n WHERE "+d.join("\n AND "):"")+"\n ORDER BY if.form_name, u.doc_id, u.version DESC, u.local_time DESC"};function SH(a,b,c){c=void 0===c?[]:c;for(var d=[],e=0;e<b.length;e++)if(0==c.length)d.push({text:b[e],check:!0});else{for(var f=!1,g=0;g<c.length;g++)if(b[e]==c[g]){f=!0;break}d.push({text:b[e],check:f})}return{name:a,type:"checkbox",options:d,required:!0}}function TH(a,b){return{name:a,type:"range",G:b}} 1435function UH(){return{name:"Event Types:",type:"checkbox",options:[{text:"Edits",value:"edits",check:!0},{text:"Views",value:"views",check:!0},{text:"Permission Changes",value:"permissions",check:!0},{text:"Document Lifecycle Events",value:"doc_events",check:!0}],required:!0,G:"Include audit records for the selected event types."}};var VH=["Special Education","RTI/MTSS","English Learners","Advanced Learners","K-4 Literacy"],MH=new function(){this.g=[]};function WH(a,b){var c=new Date;return{name:a+" Date:",type:"date",oq:c.getFullYear()+"-"+((10>c.getMonth()+1?"0":"")+(c.getMonth()+1))+"-"+((10>c.getDate()?"0":"")+c.getDate()),G:""==b?"Optional":b}} 1436function XH(){return{name:"Document Status:",type:"checkbox",options:[{text:"Complete",check:!0},{text:"Incomplete",check:!1}],required:!0,G:"Includes data from complete/incomplete documents in SameGoal"}}function YH(){for(var a=[],b=r(["Disability","LRE"]),c=b.next();!c.done;c=b.next())a.push({text:c.value,check:!1});return{name:"Notes:",type:"checkbox",options:a,required:!1,G:"Optional Program Participation columns"}}function ZH(a){return{name:a,type:"range",G:"Optional"}} 1437function $H(){return{name:"Attachments:",type:"select",options:[{text:"With or without",check:!0},{text:"Without only"},{text:"With only"}]}}function W(a){var b=[];a=r(a.buildings);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({text:(""!=c.name?c.name:"None Assigned")+" ("+c.reporting_id+")",value:c.reporting_id,check:c.building_id?!c.inactive:!0,hidden:c.hidden});return{name:"Building:",type:"checkbox",options:b,required:!0,Fm:"buildingCheckbox",Le:"Building Reporting Id(s)",Pm:!0}} 1438function X(a){return{name:"District Enrollment:",type:"checkbox",options:[{text:"Pre-Enrolled",check:!0},{text:"Enrolled",check:!0},{text:"Transferred",check:a},{text:"Withdrew",check:a},{text:"Dropped Out",check:a},{text:"Graduated",check:a},{text:"Historical/Other",check:a},{text:"Historical/Idle",check:a}],required:!0,Gm:"/iep/g/support/online-guides/user-guide/student-enrollment-status",G:'Pre-Enrolled and Enrolled students are "active". All others are "inactive".'}} 1439function aI(){return{name:"Student Status:",type:"checkbox",options:[{text:"Non-Deleted",check:!0},{text:"Deleted",check:!1}],required:!0,G:"Whether to display Deleted/Non-Deleted students."}}function bI(a){return{name:a+" Cutover Date:",type:"date",G:"Include program participation records with a start date on or after this date."}} 1440function Z(a,b){return{name:b+" Program Enrollment:",type:"checkbox",options:[{text:"Eligibility Review",check:!0},{text:"Participating",check:!0},{text:"Not Participating",check:a}],required:!0,G:"Includes students who currently have one of the checked statuses"}} 1441function cI(){var a=new Date;a=5<a.getMonth()?a.getFullYear()+1:a.getFullYear();a%=100;return{name:"Fiscal Year:",type:"checkbox",options:[{text:"FY"+a+" (7/1/"+(a-1)+" - 6/30/"+a+")",check:!0},{text:"FY"+(a-1)+" (7/1/"+(a-2)+" - 6/30/"+(a-1)+")"},{text:"FY"+(a-2)+" (7/1/"+(a-3)+" - 6/30/"+(a-2)+")"},{text:"FY"+(a-3)+" (7/1/"+(a-4)+" - 6/30/"+(a-3)+")"},{text:"FY"+(a-4)+" (7/1/"+(a-5)+" - 6/30/"+(a-4)+")"}],required:!0}} 1442function dI(){return{name:"Record Date:",type:"range",G:'Optional. Overrides "Fiscal Year" if set.'}}function eI(a,b){return{name:a,type:"checkbox",options:[{text:"Valid",check:!0},{text:"Invalid",check:b}],required:!0}}function fI(){return{name:"Program Codes:",type:"checkbox",options:[{text:"Advanced Learners",check:!0},{text:"Reading Improvement and Monitoring Plan",check:!0},{text:"Special Education",check:!0}],required:!0,G:""}} 1443function gI(a){for(var b=[],c=0;c<a.length;c++)b.push({text:a[c],check:!0});return{name:"Document:",type:"checkbox",options:b,required:!0}} 1444function hI(a,b){return U([{objects_deadlines_group_name:[[a]]},{index_objects_deadlines:[["Due","due"]]},{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Building"],["Grade"],["Date of Birth"]]},{index_objects_deadlines:[["Assigned"],["Required","satisfy_abbr"],["Deadline","name_abbr"],["Determined From"]]},{index_objects_enrollments:[["notes",a]]}],["Due"],b)} 1445function iI(a){var b=[{index_objects_deadlines:[["Program","group_name"],["Due","due"]]},{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Building"],["Grade"],["Date of Birth"]]},{index_objects_deadlines:[["Assigned"],["Required","satisfy_abbr"],["Deadline","name_abbr"],["Determined From"]]},{index_objects_enrollments:VH.map(function(c){return["notes",c]})}];return U(b,["Due"],a)}var PH=LH(),jI=OH(),kI=OH(),lI=OH(),mI=OH(); 1446V(mI,{name:"IEP Graduation Test Exemptions",G:"End of course (EOC)/graduation tests students are excused from the consequences of not passing for current IEPs.",J:"insights/graduationTestExemptions",inputs:function(a){return[W(a),X(!0),cI()]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1447{index_objects_reports:[["Student ID"],["Last Name"],["First Name"]]},{index_documents_reports:[["Meeting Date"],["Category"],["Course Title"],["Justification"]]}],['SG_DATE("Meeting Date")',"Category"],a)}}); 1448V(mI,{name:"IEP Third Grade Reading Guarantee (TGRG)",G:"Third Grade Reading Guarantee (TGRG) information for current IEPs in which Third Grade Reading Guarantee was documented as \u201cApplicable\u201d.",J:"insights/thirdGradeReadingGuarantee",inputs:function(a){return[W(a),X(!0),cI()]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1449{index_objects_reports:[["Student ID"],["Last Name"],["First Name"]]},{index_documents_reports:[["Meeting Date"],["Significant Cognitive Disability"],["No Significant Cognitive Disability (Student Exempt)"]]}],["Meeting Date"],a)}});var nI=LH(),oI=LH(),pI=LH(),qI=LH(),rI=LH(),sI=LH(!0); 1450V(sI,{name:"EMIS (GE) Record",O:"GE",G:"Student Special Education (GE) Record.",J:"stateReporting/ge",fixed:!0,inputs:function(a){return[eI("Record Types:",!0),W(a),X(!0),cI(),dI(),{name:"Data Set:",type:"select",options:[{text:"S (Student)",check:!0},{text:"F (Special Education Federal Follow Up)"}],required:!0}]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1451{index_objects_reports:[["Student ID"],["Last Name"],["First Name"]]},{index_documents_reports:[["Filler1"],["GE010"],["Filler2"],["GE020"],["GE030"]]},{index_objects_reports:[["GE040","SR Building Reporting ID"],["GE050","Reporting ID"]]},{index_documents_reports:[["GE100"],["GE110"],["GE120"],["GE130"],["GE140"],["GE150"],["GE160"],["GE170"],["GE180"]]}],["GE050","GE110","GE100"],a)}}); 1452V(sI,{name:"EMIS (FE) Record",O:"FE",G:"Student Special Education Graduation Requirement (FE) Record.",J:"stateReporting/fe",fixed:!0,inputs:function(a){return[eI("Record Types:",!0),W(a),X(!0),cI(),dI(),{name:"Data Set:",type:"select",options:[{text:"S (Student)",check:!0},{text:"G (Graduation)"}],required:!0}]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1453{index_objects_reports:[["Student ID"],["Last Name"],["First Name"]]},{index_documents_reports:[["Filler1"],["FE010"],["Filler2"],["FE020"],["FE030"]]},{index_instances_reports:[["FE040","District Reporting ID"]]},{index_objects_reports:[["FE050","Reporting ID"]]},{index_documents_reports:[["FE060"],["FE070"],["FE080"],["FE090"],["FE100"],["FE110"]]}],["FE050","FE070","FE060","FE090"],a)}}); 1454V(sI,{name:"EMIS (GQ) Record",O:"GQ",G:"Student Program (GQ) Record. Includes data for Special Education, Advanced Learners, and Reading Improvement and Monitoring Plan.",J:"stateReporting/gq",fixed:!0,inputs:function(a){return[eI("Record Types:",!0),W(a),fI(),X(!0),cI(),dI(),{name:"Data Set:",type:"select",options:[{text:"S (Student)",check:!0}],required:!0}]},kg:{fy_date_range:"duplicate"},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1455{index_objects_reports:[["Student ID"],["Last Name"],["First Name"]]},{index_documents_reports:[["Filler1"],["GQ010"],["Filler2"],["GQ020","Fiscal Year"],["GQ030"]]},{index_objects_reports:[["GQ040","SR Building Reporting ID"],["GQ050","Reporting ID"]]},{index_documents_reports:[["GQ060"],["GQ070"],["Filler3"],["GQ090"],["GQ100","Record Date"],["GQ110","Effective End Date"]]}],["GQ050","GQ100","GQ060","GQ110"],a)}}); 1456V(sI,{name:"EMIS (FD) Record",O:"FD",G:"Student Attributes-Effective Date (FD) Record. Includes data for Special Education and Section 504. Note: For FD records that are effective across multiple fiscal years, this report will include a separate line for each fiscal year that it spans.",J:"stateReporting/fd",fixed:!0,inputs:function(a){return[eI("Record Types:",!0),W(a),X(!0),cI(),dI(),{name:"Data Set:",type:"select",options:[{text:"S (Student)",check:!0}],required:!0},{name:"Replace Unknown Fields:", 1457type:"checkbox",options:[{text:"Using '@' character",value:"true",check:!1}],G:"Unknown Fields: FD090, FD100, FD110, FD120, FD130, FD140, FD150, FD160,
1457 FD170, FD180, FD190, FD200.",required:!1}]},kg:{fy_date_range:"duplicate"},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1458{index_objects_reports:[["Student ID"],["Last Name"],["First Name"]]},{index_documents_reports:[["Filler1"],["FD010"],["Filler2"],["FD020","Fiscal Year"],["FD030"]]},{index_instances_reports:[["FD040","District Reporting ID"]]},{index_objects_reports:[["FD050","Reporting ID"]]},{index_documents_reports:[["FD060","Record Date"],["FD070"],["Filler3"],["FD090",void 0,"@@"],["FD100",void 0,"@@"],["FD110",void 0,"@"],["FD120",void 0,"@"],["FD130"],["FD140",void 0,"@"],["FD150",void 0,"@"],["FD160",void 0, 1459"@"],["FD170",void 0,"@"],["FD180",void 0,"@"],["FD190",void 0,"@"],["FD200",void 0,"@"]]}],["FD050","FD060","FD130"],a)}}); 1460V(sI,{name:"EMIS (FD) Changes Record",O:"FD",G:"Student Attributes-Effective Date (FD) Record. Includes data for Special Education and Section 504. Note: For FD records that are effective across multiple fiscal years, this report will include a single line for each change to an FD data element.",J:"stateReporting/fdChanges",fixed:!0,inputs:function(a){return[eI("Record Types:",!0),W(a),X(!0),cI(),dI(),ZH("FD060:"),{name:"Data Set:",type:"select",options:[{text:"S (Student)",check:!0}],required:!0}, 1461{name:"Replace Unknown Fields:",type:"checkbox",options:[{text:"Using '@' character",value:"true",check:!1}],G:"Unknown Fields: FD090, FD100, FD110, FD120, FD130, FD140, FD150, FD160, FD170, FD180, FD190, FD200.",required:!1}]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1462{index_objects_reports:[["Student ID"],["Last Name"],["First Name"]]},{index_documents_reports:[["Filler1"],["FD010"],["Filler2"],["FD020"],["FD030"]]},{index_instances_reports:[["FD040","District Reporting ID"]]},{index_objects_reports:[["FD050","Reporting ID"]]},{index_documents_reports:[["FD060"],["FD070"],["Filler3"],["FD090",void 0,"@@"],["FD100",void 0,"@@"],["FD110",void 0,"@"],["FD120",void 0,"@"],["FD130"],["FD140",void 0,"@"],["FD150",void 0,"@"],["FD160",void 0,"@"],["FD170",void 0,"@"], 1463["FD180",void 0,"@"],["FD190",void 0,"@"],["FD200",void 0,"@"]]}],["FD050","FD060","FD130"],a)}}); 1464V(sI,{name:"EMIS (GG) Record",O:"GG",G:"Student Gifted Education (GG) Record. Includes data from the Gifted Profile.",J:"stateReporting/gg",fixed:!0,inputs:function(a){return[eI("Record Types:",!0),W(a),fI(),X(!0),cI(),dI(),{name:"Data Set:",type:"select",options:[{text:"S (Student)",check:!0}],required:!0}]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_objects_reports:[["Student ID"], 1465["Last Name"],["First Name"]]},{index_documents_reports:[["Filler1"],["GG010"],["Filler2"],["GG020"],["GG030"]]},{index_objects_reports:[["GG040","SR Building Reporting ID"],["GG050","Reporting ID"]]},{index_documents_reports:[["GG055"],["GG060"],["GG070"],["GG080"],["GG090"],["GG100"],["GG110"],["GG120"],["GG130"],["GG140"],["GG150"],["GG160"],["GG170"],["GG180"],["GG190"],["GG200"],["GG210"],["GG220"],["GG230"],["GG240"],["GG250"],["GG260"],["GG430"],["GG440"],["GG450"],["GG460"],["GG470"],["GG480"], 1466["GG490"],["GG510"],["GG520"],["GG530"],["GG540"],["GG550"],["GG560"],["GG570"]]}],["GG050"],a)}}); 1467V(sI,{name:"EMIS (FB) Record",O:"FB",G:"Student Acceleration (FB) Record. Includes data from the Written Acceleration Plan.",J:"stateReporting/fb",fixed:!0,inputs:function(a){return[eI("Record Types:",!0),W(a),X(!0),cI(),{name:"Data Set:",type:"select",options:[{text:"S (Student)",check:!0}],required:!0}]},kg:{fy_date_range:"duplicate"},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_objects_reports:[["Student ID"], 1468["Last Name"],["First Name"]]},{index_documents_reports:[["Filler1"],["FB010"],["Filler2"],["FB020","Fiscal Year"],["FB030"]]},{index_objects_reports:[["FB040","SR Building Reporting ID"],["FB050","Reporting ID"]]},{index_documents_reports:[["FB060"],["Filler3"],["Filler4"],["FB100"]]}],["FB050","FB060"],a)}}); 1469V(sI,{name:"Ohio Statewide Assessments Pre-Identification File",O:"Ohio PreID",G:"Statewide assessments information, primarily used in integration with student information systems.",J:"stateReporting/ohioPreId",fixed:!0,inputs:function(a){return[eI("Record Types:",!0),W(a),X(!0),cI(),WH("Effective","")]},kg:{fy_date_range:"single"},query:function(a){return U([{index_documents_reports:[["Filler1"]]},{index_objects_reports:[["Student ID"]]},{index_documents_reports:[["Filler2"],["EL"],["Filler3"],["504"], 1470["IEP"],["Primary Disability"],["Accommodations: ELA"],["Accommodations: Mathematics"],["Accommodations: Science"],["Accommodations: Social Studies"],["Filler4"],["AASCD"],["OST and AASCD Test Mode: ELA"],["OST and AASCD Test Mode: Math"],["OST and AASCD Test Mode: Science"],["AASCD Test Mode: Social Studies"],["Filler5"]]}],["Student ID"],a)}}); 1471V(lI,{name:"ETR Caseload",O:"ETR Default",G:"The lead for current ETRs.",J:"insights/etrCaseload",inputs:function(a){return[
1471XH(),W(a),WH("ETR Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),$H(),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1472{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Evaluation Type"],["Meeting Date"],["Last ETR Date"],["Referral Date"],["Consent Date"]]}],["Lead Last","Lead First","Student ID"],a)}}); 1473V(kI,{name:"ETR Meeting Dates",O:"ETR Default",G:"ETR meeting information for current ETRs.",J:"compliance/meetingDates",inputs:function(a){return[XH(),W(a),WH("ETR Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),$H(),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1474{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Evaluation Type"],["Last ETR Date"],["Referral Date"],["Consent Date"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1475V(mI,{name:"ETR Differing Districts",G:'Current ETRs which have a different "District of Service" and "District of Residence".',J:"insights/differingDistricts",inputs:function(a){return[XH(),W(a),WH("ETR Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1476{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Evaluation Type"],["District of Residence"],["District of Service"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1477V(kI,{name:"ETR Non Compliance",G:"Current ETRs with a Non Compliance Id (01-09).",J:"compliance/nonCompliance",inputs:function(a){return[XH(),W(a),WH("ETR Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1478{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Evaluation Type"],["Non Compliance ID"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1479V(mI,{name:"ETR Disability",O:"ETR Default",G:"Disability information for current ETRs.",J:"insights/disability",inputs:function(a){return[XH(),W(a),WH("ETR Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1480{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Evaluation Type"],["Disability"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1481V(lI,{name:"IEP/SP Caseload",O:"IEP/SP Default",G:"The lead for current IEPs/SPs.",J:"management/iepSPCaseload",inputs:function(a){return[gI(["IEP","SP"]),XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1482{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Meeting Type"],["ETR Completion Date"],["Next ETR Due Date"],["Effective Start"],["Effective End"],["Next IEP/SP Review Date"],["IEP by third birthday"],["Will be fourteen"]]}],["Lead Last","Lead First","Student ID",'SG_DATE("Meeting Date")'],a)}}); 1483V(kI,{name:"IEP/SP Meeting Dates",G:"IEP/SP meeting information for current IEPs/SP. Due dates shown are pulled directly from IEP/SPs and may not match calculated deadlines.",J:"compliance/iepSPMeetingDates",inputs:function(a){return[gI(["IEP","SP"]),XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1484{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Meeting Type"],["ETR Completion Date"],["Next ETR Due Date"],["Effective Start"],["Effective End"],["Next IEP/SP Review Date"],["IEP by third birthday"],["Scholarship"],["Will be fourteen"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1485V(mI,{name:"IEP/SP Differing Districts",G:'Current IEPs/SPs which have a different "District of Service" and "District of Residence".',J:"insights/iepSPDifferingDistricts",inputs:function(a){return[gI(["IEP","SP"]),XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1486{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Meeting Type"],["Effective Start"],["Effective End"],["District of Residence"],["District of Service"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1487V(kI,{name:"IEP/SP Non Compliance",O:"IEP/SP Default",G:"Current IEPs/SPs with a Non Compliance Id (01-09).",J:"compliance/iepSPNonCompl
1487iance",inputs:function(a){return[gI(["IEP","SP"]),XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1488{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Meeting Type"],["Effective Start"],["Effective End"],["Non Compliance ID"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1489V(mI,{name:"IEP by Third Birthday",O:"IEP/SP Default",G:"IEP by third birthday information for current IEPs.",J:"insights/iepByThirdBirthday",inputs:function(a){return[XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1490{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"],["IEP by third birthday"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1491V(mI,{name:"IEP Transportation",O:"IEP/SP Default",G:"Transportation information for current IEPs. This section not included on SPs.",J:"insights/iepTransportation",inputs:function(a){return[XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1492{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"],["Requires Special Transportation"],["Requires Transportation To/From Services"],["Requires Transportation Accommodations"],["Accommodations"],["Other Accommodations"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1493V(mI,{name:"IEP Special Instructional Factors",O:"IEP/SP Default",G:"Special instructional factors for current IEPs. This section not included on SPs.",J:"insights/iepSPInstructionalFactors",inputs:function(a){return[XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1494{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"],["Behavior Which Impedes Learning"],["LEP"],["Blind or Visually Impaired"],["Communication Needs"],["Needs Assistive Technology"],["Requires Specially Designed Physical Education"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1495V(mI,{name:"IEP/SP Goals",G:"Goals for current IEPs/SPs.",J:"insights/iepSPGoals",inputs:function(a){return[gI(["IEP","SP"]),XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1496{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Next IEP/SP Review Date"],["Effective Start"],["Effective End"],["Goal Number"],["Goal Area"],["Goal Text"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID","Goal Number"],a)}}); 1497V(mI,{name:"IEP/SP Specially Designed Services",G:"Specially Designed Services for current IEPs/SPs.",J:"insights/iepSPSpeciallyDesignedServices",inputs:function(a){return[gI(["IEP","SP"]),{name:"Specially Designed Services:",type:"checkbox",options:[{text:"Instruction",check:!0},{text:"Related Services"},{text:"Assistive Technology"},{text:"Accommodations"},{text:"Modifications"},{text:"School Personnel"},{text:"Medical"}]},XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1), 1498X(!1),Z(!0,"Special Education"),YH()]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Effective Start"], 1499["Effective End"],["Type of Service"],["Goals Addressed"],["Provider Title"],["Location"],["Amount of Time"],["Frequency"],["Service Code"],["Service Begin"],["Service End"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]},{index_objects_enrollments:[["notes","Special Education"]]}],['SG_DATE("Meeting Date")',"Student ID","SG_DATE('Effective Start')"],a)}}); 1500V(mI,{name:"IEP Extended School Year Services",O:"IEP/SP Default",G:"ESY information for current IEPs. This section not included on SPs.",J:"insights/iepSPExtendedSchoolYearServices",inputs:function(a){return[gI(["IEP"]),XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1501{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"],["ESY Services"],["Meet Again"],["Goals Determined the Need"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1502V(mI,{name:"IEP Least Restrictive Environment",O:"IEP/SP Default",G:"LRE information for current IEPs. This section not included on SPs.",J:"insights/iepLeastRestrictiveEnvironment",inputs:function(a){return[gI(["IEP"]),XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1503{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"],["Outcome"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1504V(mI,{name:"IEP/SP Testing",G:"Testing information for current IEPs/SPs.",J:"insights/iepSPTesting",inputs:function(a){return[gI(["IEP","SP"]),XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1505{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"],["Participate w/Acc"],["Alt Assmt"],["Alt Assmt Justify"],["Dist ELA Title"],["Dist ELA Detail"],["Dist Reading Title"],["Dist Reading Detail"],["Dist Writing Title"],["Dist Writing Detail"],["Dist Math Title"],["Dist Math Detail"],["Dist Science Title"],["Dist Science Detail"],["Dist Social Studies Title"],["Dist Social Studies Detail"], 1506["Dist Other Title"],["Dist Other Detail"],["State ELA Title"],["State ELA Detail"],["State Reading Title"],["State Reading Detail"],["State Writing Title"],["State Writing Detail"],["State Math Title"],["State Math Detail"],["State Science Title"],["State Science Detail"],["State Social Studies Title"],["State Social Studies Detail"],["State Other Title"],["State Other Detail"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")', 1507"Student ID"],a)}}); 1508V(mI,{name:"Alternate Assessment Participation",G:"[IEP Section 12] Student participation in alternate assessments",J:"insights/alternateAssessmentTesting",inputs:function(a){return[
1508XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_objects_reports:[["Last Name"], 1509["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Participating in Alternate Assessment"]]}],["Student ID"],a)}}); 1510V(mI,{name:"State Testing Requirements",G:"[IEP Section 12] State Testing Requirements",J:"insights/stateTestingRequirements",inputs:function(){return[XH(),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_documents_reports:[["Meeting Date"], 1511["Effective Start"],["Effective End"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Subject"],["Assessment Title"],["Alternate Assessment"]]}],["Student ID"],a)}}); 1512V(mI,{name:"District Testing Requirements",G:"[IEP Section 12] District Testing Requirements",J:"insights/districtTestingRequirements",inputs:function(){return[XH(),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1513{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Subject"],["Assessment Title"],["Alternate Assessment"]]}],["Student ID"],a)}}); 1514V(mI,{name:"State Testing Accommodations",G:"[IEP Section 12] State Testing Accommodations",J:"insights/stateTestingAccommodations",inputs:function(){return[XH(),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1515{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Subject"],["Assessment Title"],["Alternate Assessment"],["Accommodations"]]}],["Student ID"],a)}}); 1516V(mI,{name:"District Testing Accommodations",G:"[IEP Section 12] District Testing Accommodations",J:"insights/districtTestingAccommodations",inputs:function(){return[XH(),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1517{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Subject"],["Assessment Title"],["Alternate Assessment"],["Accommodations"]]}],["Student ID"],a)}}); 1518V(mI,{name:"IEP Medicaid: District Roster",O:"IEP/SP Default",G:"District roster information for IEPs.",J:"insights/iepSPMedicaidDistrictRoster",input
1518s:function(a){return[gI(["IEP"]),XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1519{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Date of Birth"],["Street"],["City"],["State"],["Zip"],["Grade"],["Building"],["Building Reporting ID"]]},{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1520V(mI,{name:"Child Outcome Summary",O:"Child Outcomes Summary Form Default",G:"Child Outcome Summary form data (selected fiscal year).",J:"insights/childOutcomeSummary",inputs:function(a){return[XH(),W(a),X(!1),Z(!0,"Special Education"),cI()]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1521{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Date of Birth"]]},{index_documents_reports:[["Completion Date"],["Age"],["Summary Type"],["Entry Date"],["Exit Date"],["1a Statement"],["1a"],["1b"],["2a Statement"],["2a"],["2b"],["3a Statement"],["3a"],["3b"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["SG_DATE('Completion Date')","Student ID"],a)}}); 1522V(mI,{name:"Manifestation Determination Review",O:"Manifestation Determination Review Default",G:"This report shows Manifestation Determination Reviews having a date within a given timeframe (within last 90 days of today by default).",J:"insights/manifestationDeterminationReview",inputs:function(a){return[XH(),W(a),WH("MDR Review","Review within the last 90 days"),ZH("Review Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1523{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Date of Birth"]]},{index_documents_reports:[["Review Date"],["Disability"],["Behavior"],["Reviewed File/IEP"],["Reviewed Parent/Teacher Observations"],["Conduct Caused by Disability"],["Conduct Result of Failure to Implement IEP"],["Behavior (Was / Was not) Manifestation of Disability"],["Report SEMD Event to EMIS"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["SG_DATE('Review Date')", 1524"Student ID"],a)}}); 1525V(mI,{name:"Determination of Suspected Disability",G:"This report documents the number of suspected disability meetings and the outcome of those meetings.",J:"insights/determinationSuspectedDisability",inputs:function(a){return[XH(),W(a),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_users:[["Lead Last", 1526"last_name"],["Lead First","first_name"],["Lead Email","user_name"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Disability Determination"],["Parental Agreement/Disagreement"]]}],["SG_DATE('Meeting')","Student ID"],a)}}); 1527V(mI,{name:"Special Education Overview",O:"IEP Overview",G:"This report documents key fields such as disability, LRE, ESY needs, and related services from completed IEPs and the most-recent completed ETR preceding the IEP.",J:"insights/spedOverview",inputs:function(a){return[W(a),WH("IEP Effective",""),ZH("Meeting Date:"),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1528{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Grade"],["Building"]]},{index_documents_reports:[["Most-Recent ETR Meeting Date"],["ETR Meeting Date Determined From"],["Disability"],["Meeting Date"],["Meeting Type"],["Effective Start"],["Effective End"],["LRE"],["Related Service Code"],["Related Service Type"],["Related Service Start Date"],["Related Service End Date"],["Needs ESY"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}, 1529{index_documents_reports:[["IEP District Representative"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}});V(jI,{name:"Special Education Deadlines",G:"A list of all special education deadlines in your district.",J:"specialEducation/deadlines",inputs:function(a){return[W(a),X(!1),YH(),ZH("Due:")]},query:function(a){return hI("Special Education",a)}}); 1530V(kI,{name:"Indicator 11: Child Find",G:"This report shows initial ETRs having a consent date within a given timeframe (within 60 days of today by default).",J:"compliance/indicator11ChildFind",inputs:function(a){return[
1530XH(),W(a),WH("ETR Consent","Consent received within the last 60 days"),ZH("Consent Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1531{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Consent Date"],["Meeting Date"],["Evaluation Type"],["Consent Outcome"],["Non Compliance ID"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["SG_DATE('Consent Date')","Student ID"],a)}}); 1532V(kI,{name:"Indicator 13: Transition in the IEP",O:"IEP/SP Indicator 13",G:"This report shows IEP transition information for students that will be 14 before the end of the IEP.",J:"compliance/indicator13Transition",inputs:function(a){return[XH(),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1533{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Date of Birth"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Evaluation Type"],["Effective Start"],["Effective End"],["Will be fourteen"],["Secondary Planning"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1534V(nI,{name:"504 Plan Details",O:"Section 504 Plan Default",G:"504 Plan details for current 504 plans.",J:"section504/planDetails",inputs:function(a){return[XH(),W(a),WH("Section 504: Plan Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Section 504"),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1535{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Date of Birth"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Meeting Type"],["Last Evaluation"],["Next Evaluation"],["Effective Start"],["Effective End"],["Next Review"],["Nature of Disability"],["Basis for Disability"],["Affects on Major Life Activities"],["Impact of the Disability"],["How Staff Made Aware"],["How Plan Will Be Monitored"],["Person Responsible"]]},{index_users:[["Lead Last","last_name"], 1536["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1537V(nI,{name:"504 Plan Accommodations",O:"Section 504 Plan Accommodations",G:"504 Plan accommodations for current 504 plans.",J:"section504/planAccomodations",inputs:function(a){return[XH(),W(a),WH("Section 504: Plan Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Section 504"),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_objects_reports:[["Last Name"], 1538["First Name"],["Student ID"],["Date of Birth"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"],["Begin Date"],["Limitation"],["Accommodations"],["Person(s) Responsible"],["Location"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1539V(nI,{name:"504 Testing",O:"Section 504 Plan Default",G:"504 Plan testing information for current 504 plans.",J:"section504/planTesting",inputs:function(a){return[
1539XH(),W(a),WH("Section 504: Plan Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Section 504"),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1540{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Effective Start"],["Effective End"],["With Accommodations"],["Reading Grade"],["Reading Accommodations"],["Reading Details"],["Writing Grade"],["Writing Accommodations"],["Writing Details"],["Math Grade"],["Math Accommodations"],["Math Details"],["Science Grade"],["Science Accommodations"],["Science Details"],["Social Studies Grade"],["Social Studies Accommodations"], 1541["Social Studies Details"],["Other Grade"],["Other Accommodations"],["Other Details"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}});V(oI,{name:"Advanced Learners Deadlines",G:"A list of all advanced learners deadlines in your district.",J:"gifted/deadlines",inputs:function(a){return[W(a),X(!1),ZH("Due:")]},query:function(a){return hI("Advanced Learners",a)}}); 1542V(oI,{name:"WEP Details",O:"Written Education Plan Default",G:"Details for current Written Education Plans.",J:"gifted/wepDetails",inputs:function(a){return[XH(),W(a),WH("WEP Effective",""),ZH("Meeting Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1543{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Meeting Type"],["Effective Start"],["Effective End"],["Next Review Date"],["Student Has WAP"],["Target Graduation Date"],["Areas of Identification"],["Present Levels"],["Superior Cognitive Ability (ID Date)"],["Creative Thinking Ability (ID Date)"],["Specific Academic Ability"],["Reading/ Writing/ Combination (ID Date)"],["Mathematics (ID Date)"],["Science (ID Date)"], 1544["Social Studies (ID Date)"],["Visual Performing Arts"],["Drama/Theater (ID Date)"],["Dance (ID Date)"],["Music (ID Date)"],["Visual Arts (ID Date)"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1545V(oI,{name:"WAP Details",O:"Written Acceleration Plan Default",G:"Details for current Written Acceleration Plans.",J:"gifted/wapDetails",inputs:function(a){return[XH(),W(a),WH("WAP Effective",""),ZH("Transition Start:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1546{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Transition Start"],["Transition End"],["Acceleration Type"],["Subject"],["Grade (from-to)"],["From Grade/Subject"],["From Teacher"],["From Building"],["To Grade/Subject"],["To Teacher"],["To Building"],["Transition Strategies"],["Continuing Strategies"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["SG_DATE('Transition Start')", 1547"Student ID"],a)}}); 1548V(oI,{name:"Written Education Plan Bulk Creation",O:"WEP Loader Template",G:"Pulls identification dates from students' most recent Gifted Profile into a report that matches the template for the KPD:Written Education Plan (rev 10/2025) data loader.",J:"gifted/wepBulkCreation",inputs:function(a){return[W(a),X(!1),Z(!1,"Advanced Learners")]},query:function(a){return U([{index_objects_reports:[["Last Name"],["First Name"],["Date of Birth"],["Grade"],["Gender"],["Student ID"]]},{index_documents_reports:[["WEP Date"],["Effective Start"], 1549["Effective End"],["Date of Next Review"],["Plan Type"],["Case Manager"],["Superior Cognitive Ability ID Date"],["Cognitive Goal"],["Cognitive
1549Content Areas"],["Cognitive Ohio Learning Standard"],["Cognitive Service Setting/EMIS"],["Cognitive Service Personnel"],["Cognitive Service Personnel Role"],["Cognitive Explanation"],["Cognitive Progress Measures"],["Cognitive Progress Schedule"],["Cognitive Policy for Waiving Assignments/Tests"],["Creative Thinking Ability ID Date"],["Creative Goal"],["Creative Content Areas"], 1550["Creative Ohio Learning Standard"],["Creative Service Setting/EMIS"],["Creative Service Personnel"],["Creative Service Personnel Role"],["Creative Explanation"],["Creative Progress Measures"],["Creative Progress Schedule"],["Creative Policy for Waiving Assignments/Tests"],["Reading/Writing/Combination ID Date"],["Reading/Writing Goal"],["Reading/Writing Content Areas"],["Reading/Writing Ohio Learning Standard"],["Reading/Writing Service Setting/EMIS"],["Reading/Writing Service Personnel"],["Reading/Writing Service Personnel Role"], 1551["Reading/Writing Explanation"],["Reading/Writing Progress Measures"],["Reading/Writing Progress Schedule"],["Reading/Writing Policy for Waiving Assignments/Tests"],["Mathematics ID Date"],["Mathematics Goal"],["Mathematics Content Areas"],["Mathematics Ohio Learning Standard"],["Mathematics Service Setting/EMIS"],["Mathematics Service Personnel"],["Mathematics Service Personnel Role"],["Mathematics Explanation"],["Mathematics Progress Measures"],["Mathematics Progress Schedule"],["Mathematics Policy for Waiving Assignments/Tests"], 1552["Science ID Date"],["Science Goal"],["Science Content Areas"],["Science Ohio Learning Standard"],["Science Service Setting/EMIS"],["Science Service Personnel"],["Science Service Personnel Role"],["Science Explanation"],["Science Progress Measures"],["Science Progress Schedule"],["Science Policy for Waiving Assignments/Tests"],["Social Studies ID Date"],["Social Studies Goal"],["Social Studies Content Areas"],["Social Studies Ohio Learning Standard"],["Social Studies Service Setting/EMIS"],["Social Studies Service Personnel"], 1553["Social Studies Service Personnel Role"],["Social Studies Explanation"],["Social Studies Progress Measures"],["Social Studies Progress Schedule"],["Social Studies Policy for Waiving Assignments/Tests"],["Dance ID Date"],["Dance Goal"],["Dance Content Areas"],["Dance Ohio Learning Standard"],["Dance Service Setting/EMIS"],["Dance Service Personnel"],["Dance Service Personnel Role"],["Dance Explanation"],["Dance Progress Measures"],["Dance Progress Schedule"],["Dance Policy for Waiving Assignments/Tests"], 1554["Music ID Date"],["Music Goal"],["Music Content Areas"],["Music Ohio Learning Standard"],["Music Service Setting/EMIS"],["Music Service Personnel"],["Music Service Personnel Role"],["Music Explanation"],["Music Progress Measures"],["Music Progress Schedule"],["Music Policy for Waiving Assignments/Tests"],["Theater ID Date"],["Theater Goal"],["Theater Content Areas"],["Theater Ohio Learning Standard"],["Theater Service Setting/EMIS"],["Theater Service Personnel"],["Theater Service Personnel Role"], 1555["Theater Explanation"],["Theater Progress Measures"],["Theater Progress Schedule"],["Theater Policy for Waiving Assignments/Tests"],["Visual Arts ID Date"],["Visual Arts Goal"],["Visual Arts Content Areas"],["Visual Arts Ohio Learning Standard"],["Visual Arts Service Setting/EMIS"],["Visual Arts Service Personnel"],["Visual Arts Service Personnel Role"],["Visual Arts Explanation"],["Visual Arts Progress Measures"],["Visual Arts Progress Schedule"],["Visual Arts Policy for Waiving Assignments/Tests"]]}], 1556["Student ID"],a)}}); 1557V(oI,{name:"WEP Goals",O:"WEP Goals",G:"Pulls goals from student WEPs into a report that matches the template for the Other: WEP Goals data loader.",J:"gifted/wepGoals",inputs:function(a){return[W(a),X(!1),Z(!1,"Advanced Learners"),ZH("WEP Date:")]},query:function(a){return U([{index_objects_reports:[["Last Name"],["First Name"],["Date of Birth"],["Grade"],["Gender"],["Student ID"]]},{index_documents_reports:[["WEP Date"],["Area of identification"],["Specific Academic Ability Area"],["Visual Performing Arts Area"], 1558["Goal"],["Content Areas"],["Ohio Learning Standard"],["Setting"],["Personnel Responsible"],["Personnel Role"],["Explanation"],["Progress Measures"],["Schedule for Reporting Progress"],["Policy for Waiving Assignments and Tests"]]}],["Student ID"],a)}}); 1559V(oI,{name:"Gifted Profile",O:"Gifted Profile Default",G:"Information from the Gifted Profile. This report matches the template for the KPD: Gifted Profile (rev 01/2026) data loader.",J:"gifted/giftedProfile",inputs:function(a){return[
1559XH(),W(a),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1560{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Referral Date"],["Completed Date"],["Cognitive Ability Screened"],["Cognitive Ability Assessed"],["Cognitive Ability Identified"],["Superior Cognitive Ability ID Date"],["Math Screened"],["Math Assessed"],["Math Identified"],["Mathematics ID Date"],["Science Screened"],["Science Assessed"],["Science Identified"],["Science ID Date"],["Social Studies Screened"],["Social Studies Assessed"], 1561["Social Studies Identified"],["Social Studies ID Date"],["Reading/Writing/Combination Screened"],["Reading/Writing/Combination Assessed"],["Reading/Writing/Combination Identified"],["Reading/Writing/Combination ID Date"],["Dance Screened"],["Dance Assessed"],["Dance Identified"],["Dance ID Date"],["Music Screened"],["Music Assessed"],["Music Identified"],["Music ID Date"],["Theater Screened"],["Theater Assessed"],["Theater Identified"],["Theater ID Date"],["Visual Arts Screened"],["Visual Arts Assessed"], 1562["Visual Arts Identified"],["Visual Arts ID Date"],["Creative Thinking Screened"],["Creative Thinking Assessed"],["Creative Thinking Identified"],["Creative Thinking Ability ID Date"]]},{index_users:[["Case Manager","user_name"]]}],["SG_DATE('Referral Date')","Student ID"],a)}}); 1563V(oI,{name:"Testing Data: Achievement Scores",G:"Achievement scores testing information.",J:"gifted/testingDataAchievementScores",inputs:function(a){return[XH(),W(a),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1564{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Date"],["Test"],["Setting"],["Grade (Achievement)","Grade"],["Reading"],["Language"],["Math"],["Science"],["Social Studies"],["Core"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('Date')"],a)}}); 1565V(oI,{name:"Testing Data: Cognitive Scores",G:"Cognitive scores testing information.",J:"gifted/testingDataCognitiveScores",inputs:function(a){return[XH(),W(a),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1566{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Date"],["Test"],["Setting"],["Grade (Cognitive)","Grade"],["CSI"],["Verbal"],["Non-Verbal"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('Date')"],a)}}); 1567V(oI,{name:"Testing Data: NWEA MAP Scores",G:"NWEA MAP scores testing information.",J:"gifted/testingDataNWEAMapScores",inputs:function(a){return[XH(),W(a),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1568{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Date"],["Test"],["Term"],["Grade (NWEA MAP Scores)","Grade"],["RIT"],["Lexile"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('Date')"],a)}}); 1569V(oI,{name:"Testing Data: ACT/Explore/Aspire Scores",G:"ACT/Explore/Aspire scores testing information.",J:"gifted/testingDataACTExploreAspireScores",inputs:function(a){return[
1569XH(),W(a),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1570{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Date"],["Test"],["English Sub Sc."],["English %tile"],["Math Sub Sc."],["Math %tile"],["Reading Sub Sc."],["Reading %tile"],["Science Sub Sc."],["Science %tile"],["Composite Sub Sc."],["Composite %tile"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('Date')"],a)}}); 1571V(oI,{name:"Testing Data: SAT/PSAT Scores",G:"SAT/PSAT scores testing information.",J:"gifted/testingDataSATPSATScores",inputs:function(a){return[XH(),W(a),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1572{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Date"],["Test"],["Reading"],["Math"],["Writing"],["Composite"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('Date')"],a)}}); 1573V(oI,{name:"Testing Data: Ohio Achievement Assessment Scores",G:"Ohio Achievement Assessment scores testing information.",J:"gifted/testingDataOhioAchievementScores",inputs:function(a){return[XH(),W(a),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1574{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Date"],["Reading"],["Math"],["Science"],["Social Studies"],["Other"],["Other Category"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('Date')"],a)}}); 1575V(oI,{name:"Testing Data: Ohio Graduation Scores",G:"Ohio Achievement Assessment scores testing information.",J:"gifted/testingDataOhioGraduationScores",inputs:function(a){return[XH(),W(a),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1576{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Date"],["Reading"],["Math"],["Science"],["Social Studies"],["Other"],["Other Category"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('Date')"],a)}}); 1577V(oI,{name:"Testing Data: Misc. Test Scores",G:"Miscellaneous test scores information.",J:"gifted/testingDataMiscScores",inputs:function(a){return[XH(),W(a),X(!1),Z(!0,"Special Education"),Z(!0,"Advanced Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1578{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Date"],["Test"],["Col 1"],["Col 1 Score"],["Col 2"],["Col 2 Score"],["Col 3"],["Col 3 Score"],["Col 4"],["Col 4 Score"],["Col 5"],["Col 5 Score"],["Col 6"],["Col 6 Score"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('Date')"],a)}}); 1579V(pI,{name:"K-4 Literacy Deadlines",G:"A list of all K-4 literacy deadlines in your district.",J:"tgrg/deadlines",inputs:function(a){return[W(a),X(!1),ZH("Due:")]},query:function(a){return hI("K-4 Literacy",a)}}); 1580V(pI,{name:"RIMP Details",O:"RIMP Default",G:"Details for Reading and Improvement Monitoring Plans.",J:"tgrg/detail
1580sRIMP",inputs:function(a){return[XH(),W(a),WH("RIMP Effective",""),ZH("RIMP Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education"),Z(!0,"K-4 Literacy")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1581{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["RIMP Date"],["School Year"],["Start Date"],["End Date"],["Referral Date"],["Grade Level(s) Retained"],["Grade Level(s) on RIMP"],["Exempt from Retention"],["Status (gr. K)"],["Status (gr. 1)"],["Status (gr. 2)"],["Status (gr. 3)"],["Status (gr. 4)"],["Referred for Evaluation"],["Results of Interventions"],["End of Year Status"],["Parent Comments"],["Reading Intervention Description"], 1582["Reading Intervention Impact"],["Reading Intervention Provider"],["Reading Intervention Start"],["Reading Intervention End"],["Small Group Intervention Description"],["Small Group Intervention Impact"],["Small Group Intervention Provider"],["Small Group Intervention Start"],["Small Group Intervention End"],["Reduced Ratios Intervention Description"],["Reduced Ratios Intervention Impact"],["Reduced Ratios Intervention Provider"],["Reduced Ratios Intervention Start"],["Reduced Ratios Intervention End"], 1583["Extended School Day Intervention Description"],["Extended School Day Intervention Impact"],["Extended School Day Intervention Provider"],["Extended School Day Intervention Start"],["Extended School Day Intervention End"],["Tutoring Intervention Description"],["Tutoring Intervention Impact"],["Tutoring Intervention Provider"],["Tutoring Intervention Start"],["Tutoring Intervention End"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID", 1584"SG_DATE('RIMP Date')"],a)}}); 1585V(pI,{name:"RIMP Details (Fall 2016)",O:"RIMP (Fall 2016) Default",G:"Details for Reading and Improvement Monitoring Plans (Fall 2016).",J:"tgrg/detailsRIMP2016",inputs:function(a){return[XH(),W(a),WH("RIMP Effective",""),ZH("RIMP Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education"),Z(!0,"K-4 Literacy")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_objects_reports:[["Last Name"], 1586["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["RIMP Date"],["School Year"],["Start Date"],["End Date"],["Grade Level(s) on RIMP"],["Exempt from Retention"],["Status (gr. K)"],["Status (gr. 1)"],["Status (gr. 2)"],["Status (gr. 3)"],["Status (gr. 4)"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('RIMP Date')"],a)}}); 1587V(pI,{name:"RIMP Instructional Focus",O:"RIMP (Fall 2016) Instructional Focus",G:"One row for each reading component included in Part B of current Fall 2016 RIMPs.",J:"tgrg/instructionalFocusRIMP",inputs:function(a){return[XH(),W(a),WH("RIMP Effective",""),ZH("RIMP Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education"),Z(!0,"K-4 Literacy")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1588{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["RIMP Date"],["School Year"],["Start Date"],["End Date"],["Grade Level(s) on RIMP"],["Exempt from Retention"],["Status (gr. K)"],["Status (gr. 1)"],["Status (gr. 2)"],["Status (gr. 3)"],["Status (gr. 4)"],["Area of Instructional Focus"],["Instru
1588ctor"],["Progress Monitoring Tool"],["Progress Monitoring Frequency"],["Instructional Setting"],["Dates of Intervention"],["Evidence-Based Strategy"], 1589["Frequency and Duration"],["Decision Making Rule"],["Changes in Instruction/Intervention"],["Impact of Intervention"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('RIMP Date')"],a)}}); 1590V(pI,{name:"RIMP Program Participation",O:"RIMP (Fall 2016) Program Participation",G:"One row for each program included in Part C of current Fall 2016 RIMPs.",J:"tgrg/programParticipationRIMP",inputs:function(a){return[XH(),W(a),WH("RIMP Effective",""),ZH("RIMP Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education"),Z(!0,"K-4 Literacy")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1591{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["RIMP Date"],["School Year"],["Start Date"],["End Date"],["Program Code"],["Program Start Date"],["Program End Date"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('RIMP Date')"],a)}}); 1592V(pI,{name:"RIMP Details (after Fall 2024)",O:"RIMP (Fall 2024) Default",G:"Details for Reading and Improvement Monitoring Plans. Includes information such as key dates and test results from the following RIMP versions: Reading Improvement and Monitoring Plan (Fall 2024), Reading Improvement and Monitoring Plan (K-3), and Reading Improvement and Monitoring Plan (4-9).",J:"tgrg/detailsRIMP2024",inputs:function(a){return[XH(),W(a),ZH("RIMP Date:"),eI("Dates:",!1),X(!1),Z(!0,"Special Education"),Z(!0, 1593"K-4 Literacy")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["RIMP Date"],["Start Date"],["Follow-up Date"],["Grade Level(s) on RIMP"], 1594["Beginning of Year Student Score"],["Middle of Year Student Score"],["End of Year Student Score"],["Tier 1 Dyslexia Screening Assessment Results"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('RIMP Date')"],a)}}); 1595V(pI,{name:"RIMP Intervention Codes (after Fall 2024)",O:"RIMP (Fall 2024) Intervention Codes",G:"Instructional supports and their corresponding RIMP intervention code for Reading and Improvement Monitoring Plans. Includes information from the following RIMP versions: Reading Improvement and Monitoring Plan (Fall 2024), Reading Improvement and Monitoring Plan (K-3), and Reading Improvement and Monitoring Plan (4-9).",J:"tgrg/interventionCodesRIMP2024",inputs:function(a){return[XH(),W(a),ZH("RIMP Date:"), 1596eI("Dates:",!1),X(!1),Z(!0,"Special Education"),Z(!0,"K-4 Literacy")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["RIMP Date"], 1597["Instructional Support"],["RIMP Intervention Code"],["Number of Days Per Week"],["Number of Minutes per Day"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('RIMP Date')"],a)}});V(qI,{name:"English Learners Deadlines",G:"A list of all english learners deadlines in your district.",J:"el/deadlines",inputs:function(a){return[W(a),X(!1),ZH("Due:")]},query:function(a){return hI("English Learners",a)}}); 1598V(qI,{name:"English Learner Plan Details",O:"ELP Details",G:"Details for English Learner Plan (rev 04/2023).",J:"el/englishLearnerPlanDetails",inputs:function(a){return[
1598XH(),W(a),ZH("Plan Date:"),eI("Dates:",!1),X(!1),Z(!1,"English Learners")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1599{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Plan Date"],["Plan Type"],["Home Language"],["Native Language"],["Years in U.S. Schools"],["IEP"],["504"],["Gifted/Talented"],["OELPS Date"],["OELPS Listening Level"],["OELPS Reading Level"],["OELPS Speaking Level"],["OELPS Writing Level"],["OELPS Proficiency Status"],["OELPA Date"],["OELPA Listening Level"],["OELPA Reading Level"],["OELPA Speaking Level"],["OELPA Writing Level"], 1600["OELPA Proficiency Status"]]},{index_users:[["Lead Last","last_name"],["Lead First","first_name"],["Lead Email","user_name"]]}],["Student ID","SG_DATE('Plan Date')"],a)}});V(rI,{name:"RTI/MTSS Deadlines",G:"A list of all Response to Intervention deadlines in your district.",J:"rti/deadlines",inputs:function(a){return[W(a),X(!1),ZH("Due:")]},query:function(a){return hI("RTI/MTSS",a)}}); 1601V(rI,{name:"Tier 2 Plans",O:"RTI T2",G:"Tier 2 intervention plan information.",J:"rti/tier2plan",inputs:function(a){return[W(a),XH(),WH("Effective",""),ZH("Meeting Date:"),X(!1),Z(!1,"RTI/MTSS")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1602{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Building"],["Grade"]]},{index_documents_reports:[["Meeting Date"],["Start Date"],["End Date"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1603V(rI,{name:"Tier 2 Plan Caseload",O:"RTI T2 Plan Caseload",G:"The lead for current Tier 2 RTI Plans.",J:"rti/tier2PlanCaseload",inputs:function(a){return[W(a),XH(),WH("Effective",""),ZH("Meeting Date:"),X(!1),Z(!1,"RTI/MTSS")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_users:[["Lead Last", 1604"last_name"],["Lead First","first_name"],["Lead Email","user_name"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Start Date"],["End Date"]]}],["Lead Last","Lead First","Student ID",'SG_DATE("Meeting Date")'],a)}}); 1605V(rI,{name:"Tier 2 Plan Interventions",O:"RTI T2 Interventions",G:"Tier 2 plan interventions information.",J:"rti/tier2planInterventions",inputs:function(a){return[W(a),XH(),WH("Effective",""),ZH("Meeting Date:"),X(!1),Z(!1,"RTI/MTSS")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1606{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Building"],["Grade"]]},{index_documents_reports:[["Meeting Date"],["Start Date"],["End Date"],["Number"],["Area"],["Current"],["Goal"],["Intervention"],["Responsible"],["Location"],["Frequency (Mins)"],["Frequency (Days/Week)"],["Frequency (Weeks)"],["Duration Begin"],["Duration End"],["Progress Method"],["Progress Frequency"],["Comments"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1607V(rI,{name:"Tier 3 Plans",O:"RTI T3",G:"Tier 3 intervention plan information.",J:"rti/tier3plan",inputs:function(a){return[W(a),XH(),WH("Effective",""),ZH("Meeting Date:"),X(!1),Z(!1,"RTI/MTSS")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1608{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Building"],["Grade"]]},{index_documents_reports:[["Meeting Date"],["Start Date"],["End Date"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}}); 1609V(rI,{name:"Tier 3 Plan Caseload",O:"RTI T3 Plan Caseload",G:"The lead for current Tier 3 RTI Plans.",J:"rti/tier3PlanCaseload",inputs:function(a){return[W(a),XH(),WH("Effective",""),ZH("Meeting Date:"),X(!1),Z(!1,"RTI/MTSS")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_users:[["Lead Last", 1610"last_name"],["Lead First","first_name"],["Lead Email","user_name"]]},{index_objects_reports:[["Last Name"],["First Name"],["Student ID"],["Grade"],["Building"]]},{index_documents_reports:[["Meeting Date"],["Start Date"],["End Date"]]}],["Lead Last","Lead First","Student ID",'SG_DATE("Meeting Date")'],a)}}); 1611V(rI,{name:"Tier 3 Plan Interventions",O:"RTI T3 Interventions",G:"Tier 3 plan interventions information.",J:"rti/tier3planInterventions",inputs:function(a){return[W(a),XH(),WH("Effective",""),ZH("Meeting Date:"),X(!1),Z(!1,"RTI/MTSS")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1612{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Building"],["Grade"]]},{index_documents_reports:[["Meeting Date"],["Start Date"],["End Date"],["Number"],["Area"],["Current"],["Goal"],["Intervention"],["Responsible"],["Location"],["Frequency (Mins)"],["Frequency (Days/Week)"],["Frequency (Weeks)"],["Duration Begin"],["Duration End"],["Progress Method"],["Progress Frequency"],["Comments"]]}],['SG_DATE("Meeting Date")',"Student ID"],a)}});var tI=LH(); 1613V(tI,{name:"Students",O:"Object",cc:!0,G:"All students in the district.",Le:"Contains one record for each student in the district.",J:"medicaid/students",inputs:function(){return[
1613X(!0),aI()]},query:function(a){return U([{index_objects_reports:[["Student ID"],["State Reporting ID","Reporting ID"],["Last Name"],["First Name"],["Date of Birth"],["Gender"],["Grade"],["Address","Street"],["City"],["State"],["Zip"],["Building ID","CampusID"],["Building"]]},{index_objects:[["District Enrollment","district_enrollment"], 1614["Deleted","deleted"]]},{index_objects_enrollments:[["Program Participation","Special Education"]]}],["Student ID"],a)}}); 1615V(tI,{name:"IEPs",O:"Medicaid IEPs",G:"Contains one record for each IEP marked complete.",Le:"Contains one record for each IEP marked complete.\n\nRecord includes: _goals, objectives, nursing, personalCareServices,\nrelatedServices, transportation_.",J:"medicaid/ieps",inputs:function(a){return[W(a),XH(),ZH("IEP Meeting Date:"),X(!0),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"], 1616["Document ID","doc_id"]]},{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Building"],["Grade"]]},{index_documents_reports:[["IEP Meeting Date"],["IEP Start Date"],["IEP End Date"],["Disability"]]}],["IEP Meeting Date","Student ID"],a)}}); 1617V(tI,{name:"Goals",O:"Goals",G:"Contains one record for each goal documented in an IEP marked complete.",J:"medicaid/goals",inputs:function(a){return[W(a),XH(),ZH("IEP Meeting Date:"),X(!0),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1618{index_documents_reports:[["Goal ID"]]},{index_documents:[["Document ID","doc_id"]]},{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Building"],["Grade"]]},{index_documents_reports:[["IEP Meeting Date"],["Start Date"],["End Date"],["Goal Number"],["Goal Area"],["Goal Text"]]}],["IEP Meeting Date","Student ID"],a)}}); 1619V(tI,{name:"Objectives",O:"Objectives",G:"Contains one record for each objective documented in an IEP marked complete.",J:"medicaid/objectives",inputs:function(a){return[W(a),XH(),ZH("IEP Meeting Date:"),X(!0),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1620{index_documents_reports:[["Objective ID"],["Goal ID"]]},{index_documents:[["Document ID","doc_id"]]},{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Building"],["Grade"]]},{index_documents_reports:[["IEP Meeting Date"],["Objective Number"],["Objective Text"]]}],["IEP Meeting Date","Student ID"],a)}}); 1621V(tI,{name:"Related Services",O:"Related Services",G:"Contains one record for each related service documented in an IEP marked complete.",J:"medicaid/relatedServices",inputs:function(a){return[W(a),XH(),ZH("IEP Meeting Date:"),X(!0),Z(!0,"Special Education")]},query:function(a){return U([{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]}, 1622{index_documents_reports:[["Service ID"]]},{index_documents:[["Document ID","doc_id"]]},{index_objects_reports:[["Student ID"],["Last Name"],["First Name"],["Building"],["Grade"]]},{index_documents_reports:[["IEP Meeting Date"],["Service Code"],["Related Service"],["Start Date"],["End Date"],["Duration"],["Frequency"],["Location"],["Goal Numbers"]]}],["IEP Meeting Date","Student ID"],a)}}); 1623V(LH(!0),{name:"TestHound",cc:!0,G:'Contains one record for each assessment to be taken and one row for each corresponding accommodation required in TestHound "Auto P
1623ilot" file format. Contains information from Special Education (IEP, SP) and Section 504: Plan. Content within the rich text "Detail of Accommodations" field is converted to plain text. If this text has at least one newline, accommodations will be split on newlines. Otherwise, accommodations will be split on commas.',J:"testingCoordination/testHound", 1624inputs:function(a){return[gI(["IEP","SP","504","EL"]),W(a),WH("IEP/SP Effective",""),ZH("Meeting Date:"),X(!0),Z(!1,"Special Education"),Z(!1,"Section 504"),Z(!1,"English Learners")]},query:function(a){var b=[{index_documents:[["Doc URL","'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse'"]]},{index_instances_reports:[["DistrictID", 1625"District Reporting ID"]]},{index_objects_reports:[["CampusID","Building Reporting ID"],["LocalID","Student ID"]]},{index_documents_reports:[["Subject"],["Accommodation"],["Notes"]]}],c=[],d=JSON.parse(JSON.stringify(a));d.report_record_name="TH IEP/SP";delete d["Section 504 Program Enrollment:"];delete d["English Learners Program Enrollment:"];c.push("("+U(b,["LocalID"],d)+")");d=JSON.parse(JSON.stringify(a));d.report_record_name="TH 504";delete d["Special Education Program Enrollment:"];delete d["English Learners Program Enrollment:"]; 1626c.push("("+U(b,["LocalID"],d)+")");a=JSON.parse(JSON.stringify(a));a.report_record_name="TH EL";delete a["Section 504 Program Enrollment:"];delete a["Special Education Program Enrollment:"];c.push("("+U(b,["LocalID"],a)+")");return c.join("\nUNION ALL\n")}});var uI=LH(!0); 1627V(uI,{name:"Students",O:"Object",G:"A list of all students in your district.",J:"system/students",cc:!0,inputs:function(a){return[W(a),X(!1),aI()]},query:function(a){return U([{index_objects_reports:[["SIS Student ID"],["Student ID"]]},{index_objects:[["SIS Internal ID","sis_internal_id"]]},{index_objects_reports:[["Reporting ID"],["First Name"],["Middle Name"],["Last Name"],["Date of Birth"],["Grade"],["Gender"],["Street"],["City"],["State"],["Zip"],["District of Residence"],["County of Residence"], 1628["District of Service"],["Building"],["Building Reporting ID"],["Medicaid"]]},{index_objects_enrollments:[["Special Education Program Participation","Special Education"],["Section 504 Program Participation","Section 504"],["Advanced Learners Program Participation","Advanced Learners"],["English Learners Program Participation","English Learners"],["RTI/MTSS Program Participation","RTI/MTSS"],["K-4 Literacy Program Participation","K-4 Literacy"]]},{index_objects:[["District Enrollment","district_enrollment"], 1629["Deleted","deleted"]]}],["Student ID"],a)}});V(uI,{name:"Users",O:"User",G:"A list of all users in your district.",J:"system/users",cc:!0,query:function(a){return U([{index_users:[["Last Name","last_name"],["First Name","first_name"],["Email","user_name"],["Roles","user_role"],["Buildings","buildings"],["LDAP Username","ldap_user_name"],["Force Local Authentication","force_local_authentication"],["Last Login"]]}],["Last Name"],a)}}); 1630V(uI,{name:"Document Viewer",O:"Doc Viewer",G:"A list of all completed plan documents and effective dates. Useful for alerts and document viewer integrations with student information and third-party systems.",Le:'This endpoint\nemits a record for:\n\n- Each **complete** document that...\n- Is written using a form type of **interest**\n(generally the plan document for each Special Program) and...\n- The student is **non-deleted** in SameGoal.\n\nThis endpoint is typically used by third-party applications\n(eg student information systems (SISes), dashboards and toolbars)\nto add links to student Special Programs documents in SameGoal within their\napplication. Each record emitted includes the following fields:\n\n- **studentID** - Student Id number for the student in the district SIS.\n- **form** - Document form name.\n- **startDate** - Document start date.\n- **endDate** - Document end date, explicit or implied.\n- **url** - Link to view document on samegoal.com "Document Viewer" page.\nThis page displays the full document as a read-only PDF, plus any additional\nviews (eg "IEP at a Glance"). URL contains an encrypted token which expires\nafter 7 days, but can be accessed by anyone with the link. URL access must be\nproperly secured in third-party consumer applications based on user\nroles/permissions in the third-party application.\n- **program** - Special Program document is for (eg "Special Education").\n- **programAbbr** - Special Program abbreviation (eg "SE").\n- **programNote** - Special Program note, if any (eg "Referred: 07/20/2024").\n- **altViewForm** - Additional view for this form. When populated,\nurl defaults to this form view (eg "IEP at a Glance").\n\n**Basic usage:** Third-party applications may integrate links\nof format `<a href="url">form</a>` into their application.\nEach student may have 0 or more links.\n\n**Advanced usage:** Third-party applications may incorporate additional\ndocument information provided in the endpoint into their web application\n(optional).', 1631J:"system/docViewer",cc:!0,inputs:function(a){return[W(a),WH("Effective",""),ZH("Meeting Date:"),X(!0)]},query:function(a){return U([{index_objects_reports:[["Student ID"]]},{index_forms:[["Form","form_name"]]},{index_documents_reports:[["AltViewForm"],["Start Date"],["End Date"],["Program"],["ProgramAbbr"],["ProgramNote"]]},{index_documents:[["DocViewer Reference"]]}],["Student ID","Form","Start Date","End Date"],a)}}); 1632V(uI,{name:"Student Program Participation",O:"Program Participation",G:"A report of student program participation records, including start date, end date and program. Records are only returned for programs with a cutover date specified.",J:"system/programParticipation",inputs:function(){return[
1632X(!1),aI(),bI("Advanced Learners"),bI("English Learners"),bI("K-4 Literacy"),bI("RTI/MTSS"),bI("Section 504"),bI("Special Education")]},query:function(a){return U([{index_objects:[["Student ID","print_id"], 1633["SIS Student ID","object_name"],["Internal SIS Student ID","sis_internal_id"]]},{index_objects_enrollments:[["Start Date","start"],["End Date","end"],["Program","program"],["Notes","notes"]]}],["Start Date","Student ID"],a)}}); 1634V(uI,{name:"Deadlines",G:"These reports highlight upcoming deadlines for all special programs",J:"system/allDeadlines",inputs:function(a){a=W(a);var b=X(!1);var c=void 0===c?[]:c;for(var d=[],e=0;e<VH.length;e++)if(0==c.length)d.push({text:VH[e],check:!0});else{for(var f=!1,g=0;g<c.length;g++)if(VH[e]==c[g]){f=!0;break}d.push({text:VH[e],check:f})}return[a,b,{name:"Program:",type:"checkbox",options:d,required:!0},ZH("Due:")]},query:function(a){return iI(a)}}); 1635V(uI,{name:"Acknowledgements of Receipt",O:"Acknowledgement",G:"This report helps track acknowledgements of receipt. For each requested acknowledgement, it includes information about when the acknowledgement was requested, whether the user has acknowledged the document, and when the acknowledgement of a document took place.",J:"system/acknowledgements",cc:!1,dg:49,oh:3,inputs:function(a){for(var b=[],c=r(a.buildings),d=c.next();!d.done;d=c.next())d=d.value,b.push({text:(""!=d.name?d.name:"None Assigned")+ 1636" ("+d.reporting_id+")",value:d.reporting_id,check:d.building_id?!d.inactive:!0,hidden:d.hidden});return[{name:"Building:",type:"checkbox",options:b,required:!0,Fm:"buildingCheckbox",Le:"Building Reporting Id(s)",Pm:!0},{name:"District Enrollment:",type:"checkbox",options:[{text:"Pre-Enrolled",check:!0},{text:"Enrolled",check:!0},{text:"Transferred",check:!1},{text:"Withdrew",check:!1},{text:"Dropped Out",check:!1},{text:"Graduated",check:!1},{text:"Historical/Other",check:!1},{text:"Historical/Idle", 1637check:!1}],required:!0,Gm:"/iep/g/support/online-guides/user-guide/student-enrollment-status",G:'Pre-Enrolled and Enrolled students are "active". All others are "inactive".'},SH("Program:",a.activePrograms),SH("Acknowledged:",["No","Yes"],["No"]),SH("Closed:",["No","Yes"],["No"]),TH("Notification Date:","Date a user was notified that their acknowledgement was required.")]},query:function(a){a._filter_cols=[["Closed","Closed:"],["Acknowledged","Acknowledged:"]];return U([{index_documents:[["Doc URL", 1638"'/iep/#pageName=form&docId=' || SPLIT_PART(idr.\"doc_id\", '_', 1) || '&formId=' || id.\"form_id\" || CASE WHEN SPLIT_PART(idr.\"doc_id\", '_', 2) != '2147483647' THEN '&version=' || SPLIT_PART(idr.\"doc_id\", '_', 2) ELSE '' END || '&collapse' || '&acknowledge=true'"]]},{index_forms:[["Form Name","form_name"]]},{index_objects_reports:[["Student Last Name","Last Name"],["Student First Name","First Name"],["Student ID"],["Grade"],["Building"]]},{acknowledgements:[["Version","version"],["Notification Date"], 1639["Sign Date"],["Acknowledged"],["Outstanding Days"],["Outstanding Days Range"],["Days to Acknowledge"],["Days to Acknowledge Range"],["Required Reason"],["Notification Caused By"],["Closed"],["Days to Close"],["Closed By"]]},{acknowledgements_users:[["User First Name","first_name"],["User Last Name","last_name"],["User Email","user_name"]]},{index_instances_reports:[["District Name"],["District Reporting ID"]]}],["Student ID","Doc URL"],a)}}); 1640V(uI,{name:"Document History Audit",O:"History Entry",G:"Displays audit-level information for documents.",J:"system/documentHistoryAudit",dg:89,oh:3,inputs:function(){return[{name:"Document ID:",type:"document_id",G:"ID(s) of the document(s) for which to show history. One ID per line.",required:!0},UH(),TH("Dates:","Range of dates within which to include documents.")]},query:function(a){return RH(a)}}); 1641V(uI,{name:"Student Document Audit",O:"History Entry",G:"Displays audit-level information for documents belonging to a student.",J:"system/studentDocumentAudit",dg:89,oh:3,inputs:function(){return[{name:"Student:",type:"student_search",G:"Student for which document history will be reported.",required:!0},UH(),TH("Dates:","Range of dates within which to include documents.")]},query:function(a){return RH(a)}}); 1642V(uI,{name:"Staff Document Audit",O:"History Entry",G:"Displays audit information for documents modified by a given staff member.",J:"system/staffDocumentAudit",dg:89,oh:3,input
1642s:function(){return[{name:"User:",type:"user_search",G:"User for which document history will be reported.",required:!0},UH(),TH("Dates:","Range of dates within which to include documents.")]},query:function(a){return RH(a)}});new pH;function vI(a,b){iF.call(this);this.B=a||"";this.M=b||!1;this.L=tE("BODY")[0];this.l=sE("search");this.h=sE("results");this.A="";this.I=this.C=this.K=!1;this.g=-1;this.i=0;WE(this.L,"keydown",this.ri,!0,this);WE(this.l,"keyup",this.re,void 0,this);WE(this.l,"change",this.re,void 0,this);""!=this.l.value&&this.re()}ua(vI,iF);n=vI.prototype; 1643n.ri=function(a){switch(a.j){case 38:case 36:case 33:a.preventDefault();if(0>=this.g)return;break;case 40:case 35:case 34:a.preventDefault();if(this.g>=this.i-1)return;break;case 13:a.preventDefault();if(0>this.g)return;var b=sE("result"+this.g);this.B?window.location=b.href:this.dispatchEvent(new JE("click",b.dataset.domain));return;default:return}b=sE("result"+this.g);switch(a.j){case 38:this.g--;break;case 40:this.g++;break;case 36:this.g=0;break;case 35:this.g=this.i-1;break;case 33:this.g=3< 1644this.g?this.g-3:0;break;case 34:this.g=this.g<this.i-3?this.g+3:this.i-1;break;default:throw Error("internal error district directory");}var c=sE("result"+this.g);CE(b);BE(c);a=(b=this.h||wE(document))||wE(document);var d=nF(c),e=nF(a);if(!WD||9<=Number(lE)){g=lF(a,"borderLeftWidth");var f=lF(a,"borderRightWidth");h=lF(a,"borderTopWidth");k=lF(a,"borderBottomWidth");f=new kF(parseFloat(h),parseFloat(f),parseFloat(k),parseFloat(g))}else{var g=pF(a,"borderLeft");f=pF(a,"borderRight");var h=pF(a,"borderTop"), 1645k=pF(a,"borderBottom");f=new kF(h,f,k,g)}a==wE(document)?(g=d.x-a.scrollLeft,d=d.g-a.scrollTop,!WD||10<=Number(lE)||(g+=f.left,d+=f.top)):(g=d.x-e.x-f.left,d=d.g-e.g-f.top);e=c.offsetWidth;f=c.offsetHeight;h=ZD&&!e&&!f;(void 0===e||h)&&c.getBoundingClientRect?(c=mF(c),c=new oE(c.right-c.left,c.bottom-c.top)):c=new oE(e,f);e=a.clientHeight-c.height;f=a.scrollLeft;h=a.scrollTop;f+=Math.min(g,Math.max(g-(a.clientWidth-c.width),0));h+=Math.min(d,Math.max(d-e,0));a=new nE(f,h);b.scrollLeft=a.x;b.scrollTop= 1646a.g;this.g==this.i-1&&(this.h.scrollTop=999999999)};n.al=function(a){a=a.g.id.substring(6);isFinite(a)&&(a=String(a));var b=Va(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN;b!=this.g&&(a=sE("result"+this.g),this.g=b,b=sE("result"+this.g),CE(a),BE(b))};n.re=function(){var a=this.l.value;2>a.length?(this.A=a,this.i=0,this.g=-1,this.h.innerText="Type to search"):this.A!=a&&(this.A=a,this.K||(this.K=!0,this.i=0,this.g=-1,this.h.innerText="Loading...",qF(gb(this.Nm,this),250)))}; 1647n.Nm=function(){this.K=!1;this.I?this.C=!0:wI(this)};function wI(a){a.C=!1;a.I=!0;var b="/iep/districtsearch?q="+encodeURIComponent(a.A);a=gb(a.$k,a);var c=new xF;BF.push(c);a&&c.s("complete",a);c.xa("ready",c.Ij);c.B=1E4;CF(c,b)} 1648function xI(a,b,c){b=b.split(" ");for(var d=0,e=b.length;d<e;d++){for(var f=0,g=b[d]+(d+1==e?"":" "),h=g.toLowerCase(),k=0,l=c.length;k<l;k++){var m=c[k];0==h.indexOf(m)&&m.length>f&&(f=m.length)}0<f&&(h=xE("B",void 0,g.substr(0,f)),a.appendChild(h));a.appendChild(document.createTextNode(String(g.substr(f))))}a.normalize()} 1649n.$k=function(a){a=a.target;if(JF(a))if(this.I=!1,this.C)wI(this);else{try{var b=a.g?a.g.responseText:""}catch(m){b=""}b=JSON.parse(b);this.h.innerHTML="";a=b.districts||[];this.i=a.length;this.g=0<a.length?0:-1;for(var c=this.A.toLowerCase().split(" "),d=0,e=a.length;d<e;d++){var f=a[d],g=xE("DIV","po");xI(g,f.name,c);var h=xE("DIV","qo");xI(h,f.city+", "+f.state,c);var k=xE("DIV","qo");xI(k,f.domain,c);var l="no";0==d&&(l+=" oo");g=[g,h,k];this.M&&(h=[],f.d2dName&&h.push(f.d2dName),f.d2dTitle&& 1650h.push(f.d2dTitle),f.d2dEmail&&h.push(f.d2dEmail),f.d2dPhone&&h.push(f.d2dPhone),0<h.length&&(h=xE("DIV",{style:"font-size:.8em; border-top: 1px solid #ccc"},"Transfer Coordinator: ",h.join(", ")),g.push(h)));f=xE(this.B?"A":"DIV",{"class":l,href:this.B+f.domain,"data-domain":f.domain,id:"result"+d},g);WE(f,"mouseover",this.al,void 0,this);this.B||WE(f,"click",this.Mj,void 0,this);this.h.appendChild(f)}0==a.length&&(a=xE("DIV","mo","No results"),this.h.appendChild(a));b.moreResults&&(b=xE("DIV","mo", 1651"Additional results omitted"),this.h.appendChild(b))}else this.h.innerHTML="",b=xE("DIV","mo","Error querying server"),this.h.appendChild(b),this.I=!1,this.i=0,this.g=-1,this.C&&wI(this)};n.Mj=function(){var a=sE("result"+this.g);this.dispatchEvent(new JE("click",a.dataset.domain));this.dispatchEvent(new JE("change",this))};n.text=function(){return sE("result"+this.g).innerText}; 1652n.ec=function(){iF.prototype.ec.call(this);dF(this.L,"keydown",this.ri,!0,this);dF(this.l,"keyup",this.re,void 0,this);dF(this.l,"change",this.re,void 0,this)};function yI(a){var b=a.ownerDocument||a.document,c=b.selection.createRange();"textarea"==a.type?(b=b.body.createTextRange(),b.moveToElementText(a)):b=a.createTextRange();return[b,c]}function zI(a,b){"textarea"==a.type&&(b=a.value.substring(0,b).replace(/(\r\n|\r|\n)/g,"\n").length);return b}function AI(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};function BI(){for(var a=0,b=0,c;;a++){var d=document.getElementById("contact-tr"+a),e=document.getElementById("name"+a),f=document.getElementById("email"+a);if(d)""==e.value&&""==f.value?(c=d.parentNode,c.removeChild(d)):(c=d.parentNode,e.id="name"+b,e.name="name"+b,f.id="email"+b,f.name="email"+b,d.id="contact-tr"+b,d.name="contact-tr"+b,b++);else break}e=document.createElement("input");e.type="text";e.name="name"+b;e.id="name"+b;e.classList.add("form-horizontal");e.classList.add("contact");e.addEventListener("blur", 1653BI);e.addEventListener("change",BI);e.setAttribute("autocomplete","new-street-address");d=document.createElement("input");d.type="email";d.name="email"+b;d.id="email"+b;d.classList.add("form-horizontal");d.classList.add("contact");d.addEventListener("blur",BI);d.addEventListener("change",BI);d.setAttribute("autocomplete","new-street-address");a=document.createElement("td");a.appendChild(e);e=document.createElement("td");e.appendChild(d);d=document.createElement("tr");d.id="contact-tr"+b;d.appendChild(a); 1654d.appendChild(e);c.appendChild(d)} 1655function CI(){var a=document.getElementById("headcount_form");a&&a.addEventListener("submit",function(b){b.preventDefault();b=new Map;for(var c=r(document.querySelectorAll("*[tag=program_count]")),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.name.split("_");3==e.length&&(e=e[1],b.has(e)?b.set(e,b.get(e)+parseInt(d.value,10)):b.set(e,parseInt(d.value,10)))}b=r(b);for(c=b.next();!c.done;
1655c=b.next())if(c=r(c.value),c.next(),0==c.next().value){alert("Each LEA must have students enrolled in at least one program.");DI(a); 1656return}a.submit()})}function DI(a){a.dataset.Zi="";setTimeout(function(){for(var b=r(a.querySelectorAll("input,button,select,textarea")),c=b.next();!c.done;c=b.next())c.value.disabled=!1},0)} 1657(function(){for(var a={},b=r(document.getElementsByTagName("FORM")),c=b.next();!c.done;a={Dc:a.Dc},c=b.next())a.Dc=c.value,a.Dc.addEventListener("submit",function(d){return function(e){"submitted"===d.Dc.dataset.Zi?e.preventDefault():(d.Dc.dataset.Zi="submitted",document.activeElement.blur(),setTimeout(function(){for(var f=r(d.Dc.querySelectorAll("input,button,select,textarea")),g=f.next();!g.done;g=f.next())g.value.disabled=!0},0))}}(a))})(); 1658switch(window.location.pathname){case "/sm/request-pricing-district":var EI=(new URLSearchParams(window.location.search)).get("version");new vI("/sm/request-pricing-members?version="+EI+"&domain=");a:{var FI;FI=tE("INPUT");if(0!=FI.length){for(var GI,HI=0,II=FI.length;HI<II;HI++){var JI=FI[HI];if("text"==JI.type||"email"==JI.type||"password"==JI.type){if(""==JI.value){JI.focus();break a}GI=JI}}GI.focus();var KI=GI,LI=999999999;if(AI(KI))KI.selectionStart=LI;else if(WD&&!kE("9")){var MI=yI(KI),NI= 1659MI[0];NI.inRange(MI[1])&&(LI=zI(KI,LI),NI.collapse(!0),NI.move("character",LI),NI.select())}var OI=GI,PI=999999999;if(AI(OI))OI.selectionEnd=PI;else if(WD&&!kE("9")){var QI=yI(OI),RI=QI[1];if(QI[0].inRange(RI)){PI=zI(OI,PI);var SI;b:{var TI=0,UI=0;if(AI(OI))TI=OI.selectionStart,UI=-1;else if(WD&&!kE("9")){var VI=yI(OI),ZI=VI[0],$I=VI[1];if(ZI.inRange($I)){ZI.setEndPoint("EndToStart",$I);if("textarea"==OI.type){var aJ;$I.duplicate();for(var bJ=ZI.text,cJ=bJ,dJ=!1;!dJ;)0==ZI.compareEndPoints("StartToEnd", 1660ZI)?dJ=!0:(ZI.moveEnd("character",-1),ZI.text==bJ?cJ+="\r\n":dJ=!0);aJ=[cJ.length,-1];SI=aJ;break b}TI=ZI.text.length;UI=-1}}SI=[TI,UI]}var eJ=zI(OI,SI[0]);RI.collapse(!0);RI.moveEnd("character",PI-eJ);RI.select()}}}}break;case "/sm/request-billing-config":for(var fJ=document.getElementsByClassName("contact"),gJ=0,hJ=fJ.length;gJ<hJ;gJ++){var iJ=fJ[gJ];iJ.addEventListener("blur",BI);iJ.addEventListener("change",BI)}CI()};}).call(this);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.