PageSourceSearch

https://play.tv2.dk/_next/static/chunks/7e31fbc3.16570122b21221c9.js

js tv2.dk collected 2026-09-24 08:27:31 UTC 1,615,961 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2581],{37188:function(e,r,s){var o,u=s(30880);o="u">typeof self?self:"u">typeof window?window:void 0!==s.g?s.g:this,function(e){"use strict";var r,a=o.window,h=o.document,c=o.location,f=o.navigator,l=o.setTimeout,p=o.clearTimeout,v=o.setInterval,d=o.clearInterval,y=o.Error,g=o.TypeError,m=o.SyntaxError,w=o.Object,b=o.Math,k=o.parseInt,E=o.parseFloat,A=o.isNaN,x=o.Uint8Array,T=o.Worker,C=(o.WorkerGlobalScope,o.XMLHttpRequest),S="u">typeof globalThis?globalThis:void 0!==a?a:void 0!==s.g?s.g:void 0!==o?o:{};function R(e,r,s){return e(s={path:r,exports:{},require:function(e,r){return L(null==r&&s.path)}},s.exports),s.exports}function L(){throw new y("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var _,P=R(function(e,s){e.exports=(function e(s,o,u){function a(c,f){if(!o[c]){if(!s[c]){var l="function"==typeof r&&r;if(!f&&l)return l(c,!0);if(h)return h(c,!0);var p=new y("Cannot find module '"+c+"'");throw p.code="MODULE_NOT_FOUND",p}var v=o[c]={exports:{}};s[c][0].call(v.exports,function(e){return a(s[c][1][e]||e)},v,v.exports,e,s,o,u)}return o[c].exports}for(var h="function"==typeof r&&r,c=0;c<u.length;c++)a(u[c]);return a})({1:[function(e,r,s){r.exports=function(e){var r=e.l;function s(e){var s=new r(e),o=s.promise();return s.setHowMany(1),s.setUnwrap(),s.init(),o}e.any=function(e){return s(e)},e.prototype.any=function(){return s(this)}}},{}],2:[function(e,r,s){try{throw new y}catch(e){o=e}var o,a=e("./schedule"),h=e("./queue"),c=e("./util");function f(){this.g=!1,this.I=!1,this.R=new h(16),this.N=new h(16),this.M=!1,this.U=!0;var e=this;this.drainQueues=function(){e.F()},this.q=a}function p(e,r,s){this.R.push(e,r,s),this.G()}function v(e,r,s){this.N.push(e,r,s),this.G()}function d(e){this.N.j(e),this.G()}function g(e){for(;e.length()>0;)!function(e){var r=e.shift();if("function"!=typeof r)r.Y();else{var s=e.shift(),o=e.shift();r.call(s,o)}}(e)}f.prototype.setScheduler=function(e){var r=this.q;return this.q=e,this.g=!0,r},f.prototype.hasCustomScheduler=function(){return this.g},f.prototype.enableTrampoline=function(){this.U=!0},f.prototype.disableTrampolineIfNecessary=function(){c.hasDevTools&&(this.U=!1)},f.prototype.haveItemsQueued=function(){return this.I||this.M},f.prototype.fatalError=function(e,r){r?(u.stderr.write("Fatal "+(e instanceof y?e.stack:e)+"\n"),u.exit(2)):this.throwLater(e)},f.prototype.throwLater=function(e,r){if(1==arguments.length&&(r=e,e=function(){throw r}),void 0!==l)l(function(){e(r)},0);else try{this.q(function(){e(r)})}catch(e){throw new y("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}},c.hasDevTools?(f.prototype.invokeLater=function(e,r,s){this.U?p.call(this,e,r,s):this.q(function(){l(function(){e.call(r,s)},100)})},f.prototype.invoke=function(e,r,s){this.U?v.call(this,e,r,s):this.q(function(){e.call(r,s)})},f.prototype.settlePromises=function(e){this.U?d.call(this,e):this.q(function(){e.Y()})}):(f.prototype.invokeLater=p,f.prototype.invoke=v,f.prototype.settlePromises=d),f.prototype.F=function(){g(this.N),this.Z(),this.M=!0,g(this.R)},f.prototype.G=function(){this.I||(this.I=!0,this.q(this.drainQueues))},f.prototype.Z=function(){this.I=!1},r.exports=f,r.exports.firstLineError=o},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,r,s){r.exports=function(e,r,s,o){var u=!1,a=function(e,r){this.K(r)},h=function(e,r){r.promiseRejectionQueued=!0,r.bindingPromise.J(a,a,null,this,e)},c=function(e,r){0==(0x3010000&this.nt)&&this.ut(r.target)},f=function(e,r){r.promiseRejectionQueued||this.K(e)};e.prototype.bind=function(a){u||(u=!0,e.prototype.ot=o.propagateFromFunction(),e.prototype.at=o.boundValueFunction());var l=s(a),p=new e(r);p.ot(this,1);var v=this.ct();if(p.ft(l),l instanceof e){var d={promiseRejectionQueued:!1,promise:p,target:v,bindingPromise:l};v.J(r,h,void 0,p,d),l.J(c,f,void 0,p,d),p.vt(l)}else p.ut(v);return p},e.prototype.ft=function(e){void 0!==e?(this.nt=2097152|this.nt,this.dt=e):this.nt=-2097153&this.nt},e.prototype._t=function(){return 2097152==(2097152&this.nt)},e.bind=function(r,s){return e.resolve(s).bind(r)}}},{}],4:[function(e,r,s){"u">typeof Promise&&(o=Promise);var o,u=e("./promise")();u.noConflict=function(){try{Promise===u&&(Promise=o)}catch(e){}return u},r.exports=u},{"./promise":22}],5:[function(e,r,s){var o=w.create;if(o){var u=o(null),a=o(null);u[" size"]=a[" size"]=0}r.exports=function(r){var s=e("./util"),o=s.canEvaluate;function u(e){return(function(e,o){var u;if(null!=e&&(u=e[o]),"function"!=typeof u){var a="Object "+s.classString(e)+" has no method '"+s.toString(o)+"'";throw new r.TypeError(a)}return u})(e,this.pop()).apply(e,this)}function a(e){return e[this]}function h(e){var r=+this;return r<0&&(r=b.max(0,r+e.length)),e[r]}s.isIdentifier,r.prototype.call=function(e){var r=[].slice.call(arguments,1
1);return r.push(e),this.J(u,void 0,void 0,r,void 0)},r.prototype.get=function(e){var r;if("number"==typeof e)r=h;else if(o){var s=(void 0)();r=null!==s?s:a}else r=a;return this.J(r,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,r,s){r.exports=function(r,s,o,u){var a=e("./util"),h=a.tryCatch,c=a.errorObj,f=r.wt;r.prototype.break=r.prototype.cancel=function(){if(!u.cancellation())return this.yt("cancellation is disabled");for(var e=this,r=e;e.kt();){if(!e.At(r)){r.bt()?r.Tt().cancel():r.Et();break}var s=e.St;if(null==s||!s.kt()){e.bt()?e.Tt().cancel():e.Et();break}e.bt()&&e.Tt().cancel(),e.It(),r=e,e=s}},r.prototype.Rt=function(){this.Nt--},r.prototype.Dt=function(){return void 0===this.Nt||this.Nt<=0},r.prototype.At=function(e){return e===this?(this.Nt=0,this.Ct(),!0):(this.Rt(),!!this.Dt()&&(this.Ct(),!0))},r.prototype.Et=function(){this.Dt()&&this.Pt()},r.prototype.Pt=function(){this.kt()&&(this.Bt(),f.invoke(this.Ot,this,void 0))},r.prototype.Ot=function(){this.Lt()>0&&this.Y()},r.prototype.Mt=function(){this.xt=void 0},r.prototype.kt=function(){return this.isPending()&&!this.Ut()},r.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},r.prototype.Ft=function(e,r){if(a.isArray(e))for(var s=0;s<e.length;++s)this.Ft(e[s],r);else if(void 0!==e)if("function"==typeof e){if(!r){var o=h(e).call(this.at());o===c&&(this.Ht(o.e),f.throwLater(o.e))}}else e._resultCancelled(this)},r.prototype.Ct=function(){var e=this.Xt();this.Mt(),f.invoke(this.Ft,this,e)},r.prototype.Vt=function(){this.kt()&&(this.Ft(this.Xt(),!0),this.Mt())},r.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,r,s){r.exports=function(r){var s=e("./util"),o=e("./es5").keys,u=s.tryCatch,a=s.errorObj;return function(e,h,c){return function(f){var l=c.at();t:for(var p=0;p<e.length;++p){var v=e[p];if(v===y||null!=v&&v.prototype instanceof y){if(f instanceof v)return u(h).call(l,f)}else if("function"==typeof v){var d=u(v).call(l,f);if(d===a)return d;if(d)return u(h).call(l,f)}else if(s.isObject(f)){for(var g=o(v),m=0;m<g.length;++m){var w=g[m];if(v[w]!=f[w])continue t}return u(h).call(l,f)}}return r}}}},{"./es5":13,"./util":36}],8:[function(e,r,s){r.exports=function(e){var r=!1,s=[];function o(){this.Wt=new o.CapturedTrace(u())}function u(){var e=s.length-1;if(e>=0)return s[e]}return e.prototype.qt=function(){},e.prototype.Gt=function(){},e.prototype.zt=function(){return null},e.jt=e.prototype.jt=function(){},o.prototype.Gt=function(){void 0!==this.Wt&&(this.Wt.qt=null,s.push(this.Wt))},o.prototype.zt=function(){if(void 0!==this.Wt){var e=s.pop(),r=e.qt;return e.qt=null,r}return null},o.CapturedTrace=null,o.create=function(){if(r)return new o},o.deactivateLongStackTraces=function(){},o.activateLongStackTraces=function(){var s=e.prototype.Gt,a=e.prototype.zt,h=e.jt,c=e.prototype.jt,f=e.prototype.qt;o.deactivateLongStackTraces=function(){e.prototype.Gt=s,e.prototype.zt=a,e.jt=h,e.prototype.jt=c,e.prototype.qt=f,r=!1},r=!0,e.prototype.Gt=o.prototype.Gt,e.prototype.zt=o.prototype.zt,e.jt=e.prototype.jt=u,e.prototype.qt=function(){var e=this.jt();e&&null==e.qt&&(e.qt=this)}},o}},{}],9:[function(e,r,s){r.exports=function(r,s){var o,a,c,f=r.Yt,p=r.wt,v=e("./errors").Warning,d=e("./util"),m=e("./es5"),b=d.canAttachTrace,E=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,A=/\((?:timers\.js):\d+:\d+\)/,x=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,T=null,C=null,S=!1,R=0!=d.env("BLUEBIRD_DEBUG"),L=!(0==d.env("BLUEBIRD_WARNINGS")||!R&&!d.env("BLUEBIRD_WARNINGS")),_=!(0==d.env("BLUEBIRD_LONG_STACK_TRACES")||!R&&!d.env("BLUEBIRD_LONG_STACK_TRACES")),P=0!=d.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(L||!!d.env("BLUEBIRD_W_FORGOTTEN_RETURN"));r.prototype.suppressUnhandledRejections=function(){var e=this.ct();e.nt=-1048577&e.nt|524288},r.prototype.Qt=function(){if(0==(524288&this.nt)){this.Zt();var e=this;l(function(){e.Kt()},1)}},r.prototype.Jt=function(){tt("rejectionHandled",o,void 0,this)},r.prototype.$t=function(){this.nt=0x10000000|this.nt},r.prototype.in=function(){return 0!=(0x10000000&this.nt)},r.prototype.Kt=function(){if(this.un()){var e=this.hn();this.cn(),tt("unhandledRejection",a,e,this)}},r.prototype.cn=function(){this.nt=262144|this.nt},r.prototype.fn=function(){this.nt=-262145&this.nt},r.prototype.vn=function(){return(262144&this.nt)>0},r.prototype.Zt=function(){this.nt=1048576|this.nt},r.prototype.dn=function(){this.nt=-1048577&this.nt,this.vn()&&(this.fn(),this.Jt())},r.prototype.un=function(){return(1048576&this.nt)>0},r.prototype.yt=function(e,r,s){return G(e,r,s||this)},r.onPossiblyUnhandledRejection=function(e){var r=f();a="function"==typeof e?null===r?e:d.domainBind(r,e):void 0},r.onUnhandledRejectionHandled=function(e){var r=f();o="function"==typeof e?null===r?e:d.domainBind(r,e):void 0};var I=function(){};r.longStackTraces=function(){if(p.haveItemsQueued()&&!ta.longStackTraces)throw new y("c
1annot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");if(!ta.longStackTraces&&tn()){var e=r.prototype._n,o=r.prototype.Ht,u=r.prototype.wn;ta.longStackTraces=!0,I=function(){if(p.haveItemsQueued()&&!ta.longStackTraces)throw new y("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");r.prototype._n=e,r.prototype.Ht=o,r.prototype.wn=u,s.deactivateLongStackTraces(),p.enableTrampoline(),ta.longStackTraces=!1},r.prototype._n=$,r.prototype.Ht=J,r.prototype.wn=Q,s.activateLongStackTraces(),p.disableTrampolineIfNecessary()}},r.hasLongStackTraces=function(){return ta.longStackTraces&&tn()};var N=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return d.global.dispatchEvent(e),function(e,r){var s={detail:r,cancelable:!0};m.defineProperty(s,"promise",{value:r.promise}),m.defineProperty(s,"reason",{value:r.reason});var o=new CustomEvent(e.toLowerCase(),s);return!d.global.dispatchEvent(o)}}if("function"==typeof Event){var e=new Event("CustomEvent");return d.global.dispatchEvent(e),function(e,r){var s=new Event(e.toLowerCase(),{cancelable:!0});return s.detail=r,m.defineProperty(s,"promise",{value:r.promise}),m.defineProperty(s,"reason",{value:r.reason}),!d.global.dispatchEvent(s)}}var e=h.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),d.global.dispatchEvent(e),function(e,r){var s=h.createEvent("CustomEvent");return s.initCustomEvent(e.toLowerCase(),!1,!0,r),!d.global.dispatchEvent(s)}}catch(e){}return function(){return!1}}(),O=d.isNode?function(){return u.emit.apply(u,arguments)}:d.global?function(e){var r="on"+e.toLowerCase(),s=d.global[r];return!!s&&(s.apply(d.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function D(e,r){return{promise:r}}var U={promiseCreated:D,promiseFulfilled:D,promiseRejected:D,promiseResolved:D,promiseCancelled:D,promiseChained:function(e,r,s){return{promise:r,child:s}},warning:function(e,r){return{warning:r}},unhandledRejection:function(e,r,s){return{reason:r,promise:s}},rejectionHandled:D},M=function(e){var r=!1;try{r=O.apply(null,arguments)}catch(e){p.throwLater(e),r=!0}var s=!1;try{s=N(e,U[e].apply(null,arguments))}catch(e){p.throwLater(e),s=!0}return s||r};function F(){return!1}function j(e,r,s){var o=this;try{e(r,s,function(e){if("function"!=typeof e)throw new g("onCancel must be a function, got: "+d.toString(e));o.yn(e)})}catch(e){return e}}function H(e){if(!this.kt())return this;var r=this.Xt();void 0!==r?d.isArray(r)?r.push(e):this.vt([r,e]):this.vt(e)}function B(){return this.xt}function V(e){this.xt=e}function X(){this.St=void 0,this.xt=void 0}function W(e,r){if(0!=(1&r)){this.St=e;var s=e.Nt;void 0===s&&(s=0),e.Nt=s+1}0!=(2&r)&&e._t()&&this.ft(e.dt)}r.config=function(e){if("longStackTraces"in(e=w(e))&&(e.longStackTraces?r.longStackTraces():!e.longStackTraces&&r.hasLongStackTraces()&&I()),"warnings"in e){var s=e.warnings;ta.warnings=!!s,P=ta.warnings,d.isObject(s)&&"wForgottenReturn"in s&&(P=!!s.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!ta.cancellation){if(p.haveItemsQueued())throw new y("cannot enable cancellation after promises are in use");r.prototype.pn=X,r.prototype.ot=W,r.prototype.Xt=B,r.prototype.vt=V,r.prototype.yn=H,r.prototype.An=j,q=W,ta.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!ta.monitoring?(ta.monitoring=!0,r.prototype.Tn=M):!e.monitoring&&ta.monitoring&&(ta.monitoring=!1,r.prototype.Tn=F)),r},r.prototype.Tn=F,r.prototype.An=function(e,r,s){try{e(r,s)}catch(e){return e}},r.prototype.Xt=function(){},r.prototype.vt=function(e){},r.prototype.yn=function(e){},r.prototype._n=function(){},r.prototype.Ht=function(){},r.prototype.wn=function(){},r.prototype.pn=function(){},r.prototype.ot=function(e,r){};var q=function(e,r){0!=(2&r)&&e._t()&&this.ft(e.dt)};function Y(){var e=this.dt;return void 0!==e&&e instanceof r?e.isFulfilled()?e.value():void 0:e}function $(){this.Wt=new to(this.jt())}function J(e,r){if(b(e)){var s=this.Wt;if(void 0!==s&&r&&(s=s.En),void 0!==s)s.attachExtraTrace(e);else if(!e.Sn){var o=z(e);d.notEnumerableProp(e,"stack",o.message+"\n"+o.stack.join("\n")),d.notEnumerableProp(e,"Sn",!0)}}}function Q(){this.Wt=void 0}function G(e,s,o){if(ta.warnings){var u,a=new v(e);
1if(s)o.Ht(a);else if(ta.longStackTraces&&(u=r.jt()))u.attachExtraTrace(a);else{var h=z(a);a.stack=h.message+"\n"+h.stack.join("\n")}M("warning",a)||Z(a,"",!0)}}function K(e){for(var r=[],s=0;s<e.length;++s){var o=e[s],u="    (No stack trace)"===o||T.test(o),a=u&&ti(o);u&&!a&&(S&&" "!==o.charAt(0)&&(o="    "+o),r.push(o))}return r}function z(e){var r=e.stack,s=e.toString();return r="string"==typeof r&&r.length>0?function(e){for(var r=e.stack.replace(/\s+$/g,"").split("\n"),s=0;s<r.length;++s){var o=r[s];if("    (No stack trace)"===o||T.test(o))break}return s>0&&"SyntaxError"!=e.name&&(r=r.slice(s)),r}(e):["    (No stack trace)"],{message:s,stack:"SyntaxError"==e.name?r:K(r)}}function Z(e,r,s){if("u">typeof console){var o;if(d.isObject(e)){var u=e.stack;o=r+C(u,e)}else o=r+String(e);"function"==typeof c?c(o,s):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(o)}}function tt(e,r,s,o){var u=!1;try{"function"==typeof r&&(u=!0,"rejectionHandled"===e?r(o):r(s,o))}catch(e){p.throwLater(e)}"unhandledRejection"===e?M(e,s,o)||u||Z(s,"Unhandled rejection "):M(e,o)}function te(e){var r,s;if("function"==typeof e)r="[function "+(e.name||"anonymous")+"]";else{if(r=e&&"function"==typeof e.toString?e.toString():d.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(r))try{r=JSON.stringify(e)}catch(e){}0===r.length&&(r="(empty array)")}return"(<"+((s=r).length<41?s:s.substr(0,38)+"...")+">, no stack trace)"}function tn(){return"function"==typeof tu}var ti=function(){return!1},tr=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function ts(e){var r=e.match(tr);if(r)return{fileName:r[1],line:k(r[2],10)}}function to(e){this.En=e,this.In=0;var r=this.Lt=1+(void 0===e?0:e.Lt);tu(this,to),r>32&&this.uncycle()}d.inherits(to,y),s.CapturedTrace=to,to.prototype.uncycle=function(){var e=this.Lt;if(!(e<2)){for(var r=[],s={},o=0,u=this;void 0!==u;++o)r.push(u),u=u.En;for(var o=(e=this.Lt=o)-1;o>=0;--o){var a=r[o].stack;void 0===s[a]&&(s[a]=o)}for(var o=0;o<e;++o){var h=s[r[o].stack];if(void 0!==h&&h!==o){h>0&&(r[h-1].En=void 0,r[h-1].Lt=1),r[o].En=void 0,r[o].Lt=1;var c=o>0?r[o-1]:this;h<e-1?(c.En=r[h+1],c.En.uncycle(),c.Lt=c.En.Lt+1):(c.En=void 0,c.Lt=1);for(var f=c.Lt+1,l=o-2;l>=0;--l)r[l].Lt=f,f++;return}}}},to.prototype.attachExtraTrace=function(e){if(!e.Sn){this.uncycle();for(var r=z(e),s=r.message,o=[r.stack],u=this;void 0!==u;)o.push(K(u.stack.split("\n"))),u=u.En;!function(e){for(var r=e[0],s=1;s<e.length;++s){for(var o=e[s],u=r.length-1,a=r[u],h=-1,c=o.length-1;c>=0;--c)if(o[c]===a){h=c;break}for(var c=h;c>=0;--c){var f=o[c];if(r[u]!==f)break;r.pop(),u--}r=o}}(o),function(e){for(var r=0;r<e.length;++r)(0===e[r].length||r+1<e.length&&e[r][0]===e[r+1][0])&&(e.splice(r,1),r--)}(o),d.notEnumerableProp(e,"stack",function(e,r){for(var s=0;s<r.length-1;++s)r[s].push("From previous event:"),r[s]=r[s].join("\n");return s<r.length&&(r[s]=r[s].join("\n")),e+"\n"+r.join("\n")}(s,o)),d.notEnumerableProp(e,"Sn",!0)}};var tu=function(){var e=/^\s*at\s*/,r=function(e,r){return"string"==typeof e?e:void 0!==r.name&&void 0!==r.message?r.toString():te(r)};if("number"==typeof y.stackTraceLimit&&"function"==typeof y.captureStackTrace){y.stackTraceLimit+=6,T=e,C=r;var s=y.captureStackTrace;return ti=function(e){return E.test(e)},function(e,r){y.stackTraceLimit+=6,s(e,r),y.stackTraceLimit-=6}}var o,u=new y;if("string"==typeof u.stack&&u.stack.split("\n")[0].indexOf("stackDetection@")>=0)return T=/@/,C=r,S=!0,function(e){e.stack=(new y).stack};try{throw new y}catch(e){o="stack"in e}return"stack"in u||!o||"number"!=typeof y.stackTraceLimit?(C=function(e,r){return"string"==typeof e?e:"object"!=typeof r&&"function"!=typeof r||void 0===r.name||void 0===r.message?te(r):r.toString()},null):(T=e,C=r,function(e){y.stackTraceLimit+=6;try{throw new y}catch(r){e.stack=r.stack}y.stackTraceLimit-=6})}();"u">typeof console&&void 0!==console.warn&&(c=function(e){console.warn(e)},d.isNode&&u.stderr.isTTY?c=function(e,r){console.warn((r?"\x1b[33m":"\x1b[31m")+e+"\x1b[0m\n")}:d.isNode||"string"!=typeof(new y).stack||(c=function(e,r){console.warn("%c"+e,r?"color: darkorange":"color: red")}));var ta={warnings:L,longStackTraces:!1,cancellation:!1,monitoring:!1};return _&&r.longStackTraces(),{longStackTraces:function(){return ta.longStackTraces},warnings:function(){return ta.warnings},cancellation:function(){return ta.cancellation},monitoring:function(){return ta.monitoring},propagateFromFunction:function(){return q},boundValueFunction:function(){return Y},checkForgottenReturns:function(e,r,s,o,u){if(void 0===e&&null!==r&&P&&!(void 0!==u&&u.in())&&0!=(65535&o.nt)){s&&(s+=" ");var a="",h="";if(r.Wt){for(var c=r.Wt.stack.split("\n"),f=K(c),l=f.length-1;l>=0;--l){var p=f[l];if(!A.test(p)){var v=p.match(x);v&&(a="at "+v[1]+":"+v[2]+":"+v[3]+" ");break}}if(f.length>0){for(var d=f[0],l=0;l<c.length;++l)if(c[l]===d){l>0&&(h="\n"+c[l-1]);break}}}var y="a promise was created in a "+s+"handler "+a+"but was not returned from it, see http://goo.gl/rRqMUw"+h;o.yt(y,!0,r)}},setBounds:function(e,r){if(tn()){for(var s,o,u=(e.stack||"").split("\n"),a=(r.stack||"").split("\n"),h=-1,c=-1,f=0;f<u.length;++f){var l=ts(u[f]);if(l){s=l.fileName,h=l.line;break}}for(var f=0;f<a.length;++f){var l=ts(a[f]);if(l){o=l.fileName,c=l.line;break}}h<0||c<0||!s||!o||s!==o||h>=c||(ti=function(e){if(E.test(e))return!0;var r=ts(e);return!!(r&&r.fileName===s&&h<=r.line&&r.line<=c)})}},warn:G,deprecated:function(e,r){var s=e+" is deprecated and will be removed in a future version.";return r&&(s+=" Use "+r+" instead."),G(s)},CapturedTrace:to,fireDomEvent:N,fireGlobalEvent:O}}}
1,{"./errors":12,"./es5":13,"./util":36}],10:[function(e,r,s){r.exports=function(e){function r(){return this.value}function s(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(s){return s instanceof e&&s.suppressUnhandledRejections(),this.J(r,void 0,void 0,{value:s},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this.J(s,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this.J(void 0,s,void 0,{reason:e},void 0);var r=arguments[1];return this.caught(e,function(){throw r})},e.prototype.catchReturn=function(s){if(arguments.length<=1)return s instanceof e&&s.suppressUnhandledRejections(),this.J(void 0,r,void 0,{value:s},void 0);var o=arguments[1];return o instanceof e&&o.suppressUnhandledRejections(),this.caught(s,function(){return o})}}},{}],11:[function(e,r,s){r.exports=function(e,r){var s=e.reduce,o=e.all;function u(){return o(this)}e.prototype.each=function(e){return s(this,e,r,0).J(u,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return s(this,e,r,r)},e.each=function(e,o){return s(e,o,r,0).J(u,void 0,void 0,e,void 0)},e.mapSeries=function(e,o){return s(e,o,r,r)}}},{}],12:[function(e,r,s){var o,u,a=e("./es5"),h=a.freeze,c=e("./util"),f=c.inherits,l=c.notEnumerableProp;function p(e,r){function s(o){if(!(this instanceof s))return new s(o);l(this,"message","string"==typeof o?o:r),l(this,"name",e),y.captureStackTrace?y.captureStackTrace(this,this.constructor):y.call(this)}return f(s,y),s}var v=p("Warning","warning"),d=p("CancellationError","cancellation error"),m=p("TimeoutError","timeout error"),w=p("AggregateError","aggregate error");try{o=g,u=RangeError}catch(e){o=p("TypeError","type error"),u=p("RangeError","range error")}for(var b="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),k=0;k<b.length;++k)"function"==typeof Array.prototype[b[k]]&&(w.prototype[b[k]]=Array.prototype[b[k]]);a.defineProperty(w.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),w.prototype.isOperational=!0;var E=0;function A(e){if(!(this instanceof A))return new A(e);l(this,"name","OperationalError"),l(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof y?(l(this,"message",e.message),l(this,"stack",e.stack)):y.captureStackTrace&&y.captureStackTrace(this,this.constructor)}w.prototype.toString=function(){var e=Array(4*E+1).join(" "),r="\n"+e+"AggregateError of:\n";e=Array(4*++E+1).join(" ");for(var s=0;s<this.length;++s){for(var o=this[s]===this?"[Circular AggregateError]":this[s]+"",u=o.split("\n"),a=0;a<u.length;++a)u[a]=e+u[a];r+=(o=u.join("\n"))+"\n"}return E--,r},f(A,y);var x=y.Rn;x||(x=h({CancellationError:d,TimeoutError:m,OperationalError:A,RejectionError:A,AggregateError:w}),a.defineProperty(y,"Rn",{value:x,writable:!1,enumerable:!1,configurable:!1})),r.exports={Error:y,TypeError:o,RangeError:u,CancellationError:x.CancellationError,OperationalError:x.OperationalError,TimeoutError:x.TimeoutError,AggregateError:x.AggregateError,Warning:v}},{"./es5":13,"./util":36}],13:[function(e,r,s){var o=function(){return void 0===this}();if(o)r.exports={freeze:w.freeze,defineProperty:w.defineProperty,getDescriptor:w.getOwnPropertyDescriptor,keys:w.keys,names:w.getOwnPropertyNames,getPrototypeOf:w.getPrototypeOf,isArray:Array.isArray,isES5:o,propertyIsWritable:function(e,r){var s=w.getOwnPropertyDescriptor(e,r);return!(s&&!s.writable&&!s.set)}};else{var u={}.hasOwnProperty,a={}.toString,h={}.constructor.prototype,c=function(e){var r=[];for(var s in e)u.call(e,s)&&r.push(s);return r};r.exports={isArray:function(e){try{return"[object Array]"===a.call(e)}catch(e){return!1}},keys:c,names:c,defineProperty:function(e,r,s){return e[r]=s.value,e},getDescriptor:function(e,r){return{value:e[r]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return w(e).constructor.prototype}catch(e){return h}},isES5:o,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,r,s){r.exports=function(e,r){var s=e.map;e.prototype.filter=function(e,o){return s(this,e,o,r)},e.filter=function(e,o,u){return s(e,o,u,r)}}},{}],15:[function(e,r,s){r.exports=function(r,s,o){var u=e("./util"),a=r.CancellationError,h=u.errorObj,c=e("./catch_filter")(o);function f(e,r,s){this.promise=e,this.type=r,this.handler=s,this.called=!1,this.cancelPromise=null}function l(e){this.finallyHandler=e}function p(e,r){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise.K(r):e.cancelPromise.Pt(),e.cancelPromise=null,!0)}
1function v(){return y.call(this,this.promise.ct().hn())}function d(e){if(!p(this,e))return h.e=e,h}function y(e){var u=this.promise,c=this.handler;if(!this.called){this.called=!0;var f=this.isFinallyHandler()?c.call(u.at()):c.call(u.at(),e);if(f===o)return f;if(void 0!==f){u.$t();var y=s(f,u);if(y instanceof r){if(null!=this.cancelPromise){if(y.Ut()){var g=new a("late cancellation observer");return u.Ht(g),h.e=g,h}y.isPending()&&y.yn(new l(this))}return y.J(v,d,void 0,this,void 0)}}}return u.isRejected()?(p(this),h.e=e,h):(p(this),e)}return f.prototype.isFinallyHandler=function(){return 0===this.type},l.prototype._resultCancelled=function(){p(this.finallyHandler)},r.prototype.Nn=function(e,r,s,o){return"function"!=typeof e?this.then():this.J(s,o,void 0,new f(this,r,e),void 0)},r.prototype.lastly=r.prototype.finally=function(e){return this.Nn(e,0,y,y)},r.prototype.tap=function(e){return this.Nn(e,1,y)},r.prototype.tapCatch=function(e){var s=arguments.length;if(1===s)return this.Nn(e,1,void 0,y);var o,a=Array(s-1),h=0;for(o=0;o<s-1;++o){var f=arguments[o];if(!u.isObject(f))return r.reject(new g("tapCatch statement predicate: expecting an object but got "+u.classString(f)));a[h++]=f}a.length=h;var l=arguments[o];return this.Nn(c(a,l,this),1,void 0,y)},f}},{"./catch_filter":7,"./util":36}],16:[function(e,r,s){r.exports=function(r,s,o,u,a,h){var c=e("./errors").TypeError,f=e("./util"),l=f.errorObj,p=f.tryCatch,v=[];function d(e,s,u,a){if(h.cancellation()){var c=new r(o),f=this.Dn=new r(o);this.Cn=c.lastly(function(){return f}),c._n(),c.vt(this)}else(this.Cn=new r(o))._n();this.Pn=a,this.Bn=e,this.On=s,this.Ln=void 0,this.Mn="function"==typeof u?[u].concat(v):v,this.xn=null,this.Un=!1}f.inherits(d,a),d.prototype.Fn=function(){return null===this.Cn},d.prototype.Hn=function(){this.Cn=this.Ln=null,h.cancellation()&&null!==this.Dn&&(this.Dn.Xn(),this.Dn=null)},d.prototype.Vn=function(){if(!this.Fn()){var e;if(void 0!==this.Ln.return)this.Cn.Gt(),e=p(this.Ln.return).call(this.Ln,void 0),this.Cn.zt();else{var s=new r.CancellationError("generator .return() sentinel");r.coroutine.returnSentinel=s,this.Cn.Ht(s),this.Cn.Gt(),e=p(this.Ln.throw).call(this.Ln,s),this.Cn.zt()}this.Un=!0,this.xn=null,this.Wn(e)}},d.prototype.qn=function(e){this.xn=null,this.Cn.Gt();var r=p(this.Ln.next).call(this.Ln,e);this.Cn.zt(),this.Wn(r)},d.prototype.Gn=function(e){this.xn=null,this.Cn.Ht(e),this.Cn.Gt();var r=p(this.Ln.throw).call(this.Ln,e);this.Cn.zt(),this.Wn(r)},d.prototype._resultCancelled=function(){if(this.xn instanceof r){var e=this.xn;this.xn=null,e.cancel()}},d.prototype.promise=function(){return this.Cn},d.prototype.zn=function(){this.Ln=this.Bn.call(this.On),this.On=this.Bn=void 0,this.qn(void 0)},d.prototype.Wn=function(e){var s=this.Cn;if(e===l)return this.Hn(),this.Un?s.cancel():s.jn(e.e,!1);var o=e.value;if(!0===e.done)return this.Hn(),this.Un?s.cancel():s.ut(o);var a=u(o,this.Cn);if(a instanceof r||null!==(a=function(e,s,o){for(var a=0;a<s.length;++a){o.Gt();var h=p(s[a])(e);if(o.zt(),h===l){o.Gt();var c=r.reject(l.e);return o.zt(),c}var f=u(h,o);if(f instanceof r)return f}return null}(a,this.Mn,this.Cn))){var h=(a=a.ct()).nt;0==(0x3010000&h)?(this.xn=a,a.Yn(this,null)):0!=(0x2000000&h)?r.wt.invoke(this.qn,this,a.Qn()):0!=(0x1000000&h)?r.wt.invoke(this.Gn,this,a.Zn()):this.Vn()}else this.Gn(new c("A value %s was yielded that could not be treated as a promise\n\n    See http://goo.gl/MqrFmX\n\n".replace("%s",String(o))+"From coroutine:\n"+this.Pn.split("\n").slice(1,-7).join("\n")))},r.coroutine=function(e,r){if("function"!=typeof e)throw new c("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var s=w(r).yieldHandler,o=(new y).stack;return function(){var r=e.apply(this,arguments),u=new d(void 0,void 0,s,o),a=u.promise();return u.Ln=r,u.qn(void 0),a}},r.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new c("expecting a function but got "+f.classString(e));v.push(e)},r.spawn=function(e){if(h.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return s("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var o=new d(e,this),u=o.promise();return o.zn(r.spawn),u}}},{"./errors":12,"./util":36}],17:[function(e,r,s){r.exports=function(r,s,o,u,a,h){var c=e("./util");c.canEvaluate,c.tryCatch,c.errorObj,r.join=function(){var e,r=arguments.length-1;r>0&&"function"==typeof arguments[r]&&(e=arguments[r]);var o=[].slice.call(arguments);e&&o.pop();var u=new s(o).promise();return void 0!==e?u.spread(e):u}}},{"./util":36}],18:[function(e,r,s){r.exports=function(r,s,o,u,a,h){var c=r.Yt,f=e("./util"),l=f.tryCatch,p=f.errorObj,v=r.wt;function d(e,r,s,o){this.constructor$(e),this.Cn._n();var u=c();this.Kn=null===u?r:f.domainBind(u,r),this.Jn=o===a?Array(this.length()):null,this.$n=s,this.ni=0,this.ri=[],v.invoke(this.ei,this,void 0)}function y(e,s,u,a){if("function"!=typeof s)return o("expecting a function but got "+f.classString(s));var h=0;if(void 0!==u){if("object"!=typeof u||null===u)return r.reject(new g("options argument must be an object but it is "+f.classString(u)));if("number"!=typeof u.concurrency)return r.reject(new g("'concurrency' must be a number but it is "+f.classString(u.concurrency)));h=u.concurrency}return new d(e,s,h="number"==typeof h&&isFinite(h)&&h>=1?h:0,a).promise()}f.inherits(d,s),d.prototype.ei=function(){this._init$(void 0,-2)},d.prototype._init=function(){},d.prototype.qn=function(e,s){var o=this.ui,a=this.length(),c=this.Jn,f=this.$n;if(s<0){if(o[s=-1*s-1]=e,f>=1&&(this.ni--,this.oi(),this.Fn()))return!0}else{if(f>=1&&this.ni>=f)return o[s]=e,this.ri.push(s),!1;null!==c&&(c[s]=e);var v=this.Cn,d=this.Kn,y=v.at();v.Gt();var g=l(d).call(y,e,s,a),m=v.zt();if(h.checkForgottenReturns(g,m,null!==c?"Promise.filter":"Promise.map",v),g===p)return this.K(g.e),!0;var w=u(g,this.Cn);if(w instanceof r){var b=(w=w.ct()).nt;if(0==(0x3010000&b))return f>=1&&this.ni++,o[s]=w,w.Yn(this,-1*(s+1)),!1;if(0==(0x2000000&b))return 0!=(0x1000000&b)?this.K(w.Zn()):this.Pt(),!0;g=w.Qn()}o[s]=g}return++this.ai>=a&&(null!==c?this.ci(o,c):this.di(o),!0)},d.prototype.oi=function(){for(var e=this.ri,r=this.$n,s=this.ui;e.length>0&&this.ni<r;){if(this.Fn())return;var o=e.pop();this.qn(s[o],o)}},d.prototype.ci=function(e,r){for(var s=r.length,o=Array(s),u=0,a=0;a<s;
1++a)e[a]&&(o[u++]=r[a]);o.length=u,this.di(o)},d.prototype.preservedValues=function(){return this.Jn},r.prototype.map=function(e,r){return y(this,e,r,null)},r.map=function(e,r,s,o){return y(e,r,s,o)}}},{"./util":36}],19:[function(e,r,s){r.exports=function(r,s,o,u,a){var h=e("./util"),c=h.tryCatch;r.method=function(e){if("function"!=typeof e)throw new r.TypeError("expecting a function but got "+h.classString(e));return function(){var o=new r(s);o._n(),o.Gt();var u=c(e).apply(this,arguments),h=o.zt();return a.checkForgottenReturns(u,h,"Promise.method",o),o._i(u),o}},r.attempt=r.try=function(e){if("function"!=typeof e)return u("expecting a function but got "+h.classString(e));var o,f=new r(s);if(f._n(),f.Gt(),arguments.length>1){a.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],p=arguments[2];o=h.isArray(l)?c(e).apply(p,l):c(e).call(p,l)}else o=c(e)();var v=f.zt();return a.checkForgottenReturns(o,v,"Promise.try",f),f._i(o),f},r.prototype._i=function(e){e===h.errorObj?this.jn(e.e,!1):this.ut(e,!0)}}},{"./util":36}],20:[function(e,r,s){var o=e("./util"),u=o.maybeWrapAsError,a=e("./errors").OperationalError,h=e("./es5"),c=/^(?:name|message|stack|cause)$/;r.exports=function(e,r){return function(s,f){if(null!==e){if(s){var l=function(e){if(e instanceof y&&h.getPrototypeOf(e)===y.prototype){(r=new a(e)).name=e.name,r.message=e.message,r.stack=e.stack;for(var r,s=h.keys(e),u=0;u<s.length;++u){var f=s[u];c.test(f)||(r[f]=e[f])}return r}return o.markAsOriginatingFromRejection(e),e}(u(s));e.Ht(l),e.K(l)}else if(r){var p=[].slice.call(arguments,1);e.Xn(p)}else e.Xn(f);e=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(e,r,s){r.exports=function(r){var s=e("./util"),o=r.wt,u=s.tryCatch,a=s.errorObj;function h(e,r){if(!s.isArray(e))return c.call(this,e,r);var h=u(r).apply(this.at(),[null].concat(e));h===a&&o.throwLater(h.e)}function c(e,r){var s=this.at(),h=void 0===e?u(r).call(s,null):u(r).call(s,null,e);h===a&&o.throwLater(h.e)}function f(e,r){if(!e){var s=new y(e+"");s.cause=e,e=s}var h=u(r).call(this.at(),e);h===a&&o.throwLater(h.e)}r.prototype.asCallback=r.prototype.nodeify=function(e,r){if("function"==typeof e){var s=c;void 0!==r&&w(r).spread&&(s=h),this.J(s,f,void 0,this,e)}return this}}},{"./util":36}],22:[function(e,r,s){r.exports=function(){var s=function(){return new g("circular promise resolution chain\n\n    See http://goo.gl/MqrFmX\n")},o=function(){return new N.PromiseInspection(this.ct())},a=function(e){return N.reject(new g(e))};function h(){}var c,f={},l=e("./util");c=l.isNode?function(){var e=u.domain;return void 0===e&&(e=null),e}:function(){return null},l.notEnumerableProp(N,"Yt",c);var p=e("./es5"),v=e("./async"),d=new v;p.defineProperty(N,"wt",{value:d});var y=e("./errors"),g=N.TypeError=y.TypeError;N.RangeError=y.RangeError;var m=N.CancellationError=y.CancellationError;N.TimeoutError=y.TimeoutError,N.OperationalError=y.OperationalError,N.RejectionError=y.OperationalError,N.AggregateError=y.AggregateError;var b=function(){},k={},E={},A=e("./thenables")(N,b),x=e("./promise_array")(N,b,A,a,h),T=e("./context")(N),C=T.create,S=e("./debuggability")(N,T),R=(S.CapturedTrace,e("./finally")(N,A,E)),L=e("./catch_filter")(E),_=e("./nodeback"),P=l.errorObj,I=l.tryCatch;function N(e){e!==b&&function(e,r){if(null==e||e.constructor!==N)throw new g("the promise constructor cannot be invoked directly\n\n    See http://goo.gl/MqrFmX\n");if("function"!=typeof r)throw new g("expecting a function but got "+l.classString(r))}(this,e),this.nt=0,this.gi=void 0,this.wi=void 0,this.Ai=void 0,this.Ti=void 0,this.Ei(e),this.qt(),this.Tn("promiseCreated",this)}function O(e){this.promise.ut(e)}function D(e){this.promise.jn(e,!1)}function U(e){var r=new N(b);r.gi=e,r.wi=e,r.Ai=e,r.Ti=e}return N.prototype.toString=function(){return"[object Promise]"},N.prototype.caught=N.prototype.catch=function(e){var r=arguments.length;if(r>1){var s,o=Array(r-1),u=0;for(s=0;s<r-1;++s){var h=arguments[s];if(!l.isObject(h))return a("Catch statement predicate: expecting an object but got "+l.classString(h));o[u++]=h}if(o.length=u,"function"!=typeof(e=arguments[s]))throw new g("The last argument to .catch() must be a function, got "+l.toString(e));return this.then(void 0,L(o,e,this))}return this.then(void 0,e)},N.prototype.reflect=function(){return this.J(o,o,void 0,this,void 0)},N.prototype.then=function(e,r){if(S.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof r){var s=".then() only accepts functions but was passed: "+l.classString(e);arguments.length>1&&(s+=", "+l.classString(r)),this.yt(s)}return this.J(e,r,void 0,void 0,void 0)},N.prototype.done=function(e,r){this.J(e,r,void 0,void 0,void 0).Si()},N.prototype.spread=function(e){return"function"!=typeof e?a("expecting a function but got "+l.classString(e)):this.all().J(e,void 0,void 0,k,void 0)},N.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},N.prototype.all=function(){return arguments.length>0&&this.yt(".all() was passed arguments but it does not take any"),new x(this).promise()},N.prototype.error=function(e){return this.caught(l.originatesFromRejection,e)},N.getNewLibraryCopy=r.exports,N.is=function(e){return e instanceof N},N.fromNode=N.fromCallback=function(e){var r=new N(b);r._n();var s=arguments.length>1&&!!w(arguments[1]).multiArgs,o=I(e)(_(r,s));return o===P&&r.jn(o.e,!0),r.Ii()||r.Ri(),r},N.all=function(e){return new x(e).promise()},N.cast=function(e){var r=A(e);
1return r instanceof N||((r=new N(b))._n(),r.Ni(),r.wi=e),r},N.resolve=N.fulfilled=N.cast,N.reject=N.rejected=function(e){var r=new N(b);return r._n(),r.jn(e,!0),r},N.setScheduler=function(e){if("function"!=typeof e)throw new g("expecting a function but got "+l.classString(e));return d.setScheduler(e)},N.prototype.J=function(e,r,s,o,u){var a=void 0!==u,h=a?u:new N(b),f=this.ct(),p=f.nt;a||(h.ot(this,3),h._n(),void 0===o&&0!=(2097152&this.nt)&&(o=0!=(0x3010000&p)?this.at():f===this?void 0:this.dt),this.Tn("promiseChained",this,h));var v=c();if(0!=(0x3010000&p)){var y,g,w=f.Di;0!=(0x2000000&p)?(g=f.wi,y=e):0!=(0x1000000&p)?(g=f.gi,y=r,f.dn()):(w=f.Ci,g=new m("late cancellation observer"),f.Ht(g),y=r),d.invoke(w,f,{handler:null===v?y:"function"==typeof y&&l.domainBind(v,y),promise:h,receiver:o,value:g})}else f.Pi(e,r,h,o,v);return h},N.prototype.Lt=function(){return 65535&this.nt},N.prototype.Ii=function(){return 0!=(0x7010000&this.nt)},N.prototype.bt=function(){return 0x4000000==(0x4000000&this.nt)},N.prototype.Bi=function(e){this.nt=-65536&this.nt|65535&e},N.prototype.Ni=function(){this.nt=0x2000000|this.nt,this.Tn("promiseFulfilled",this)},N.prototype.Oi=function(){this.nt=0x1000000|this.nt,this.Tn("promiseRejected",this)},N.prototype.Li=function(){this.nt=0x4000000|this.nt,this.Tn("promiseResolved",this)},N.prototype.Si=function(){this.nt=4194304|this.nt},N.prototype.Mi=function(){return(4194304&this.nt)>0},N.prototype.xi=function(){this.nt=-65537&this.nt},N.prototype.Bt=function(){this.nt=65536|this.nt,this.Tn("promiseCancelled",this)},N.prototype.It=function(){this.nt=8388608|this.nt},N.prototype.Ri=function(){d.hasCustomScheduler()||(this.nt=0x8000000|this.nt)},N.prototype.Ui=function(e){var r=0===e?this.Ti:this[4*e-4+3];if(r!==f)return void 0===r&&this._t()?this.at():r},N.prototype.Fi=function(e){return this[4*e-4+2]},N.prototype.Hi=function(e){return this[4*e-4+0]},N.prototype.Xi=function(e){return this[4*e-4+1]},N.prototype.at=function(){},N.prototype.Vi=function(e){e.nt;var r=e.gi,s=e.wi,o=e.Ai,u=e.Ui(0);void 0===u&&(u=f),this.Pi(r,s,o,u,null)},N.prototype.Wi=function(e,r){var s=e.Hi(r),o=e.Xi(r),u=e.Fi(r),a=e.Ui(r);void 0===a&&(a=f),this.Pi(s,o,u,a,null)},N.prototype.Pi=function(e,r,s,o,u){var a=this.Lt();if(a>=65531&&(a=0,this.Bi(0)),0===a)this.Ai=s,this.Ti=o,"function"==typeof e&&(this.gi=null===u?e:l.domainBind(u,e)),"function"==typeof r&&(this.wi=null===u?r:l.domainBind(u,r));else{var h=4*a-4;this[h+2]=s,this[h+3]=o,"function"==typeof e&&(this[h+0]=null===u?e:l.domainBind(u,e)),"function"==typeof r&&(this[h+1]=null===u?r:l.domainBind(u,r))}return this.Bi(a+1),a},N.prototype.Yn=function(e,r){this.Pi(void 0,void 0,r,e,null)},N.prototype.ut=function(e,r){if(0==(0x7010000&this.nt)){if(e===this)return this.jn(s(),!1);var o=A(e,this);if(!(o instanceof N))return this.Xn(e);r&&this.ot(o,2);var u=o.ct();if(u!==this){var a=u.nt;if(0==(0x3010000&a)){var h=this.Lt();h>0&&u.Vi(this);for(var c=1;c<h;++c)u.Wi(this,c);this.Li(),this.Bi(0),this.qi(u)}else if(0!=(0x2000000&a))this.Xn(u.Qn());else if(0!=(0x1000000&a))this.K(u.Zn());else{var f=new m("late cancellation observer");u.Ht(f),this.K(f)}}else this.K(s())}},N.prototype.jn=function(e,r,s){var o=l.ensureErrorObject(e),u=o===e;if(!u&&!s&&S.warnings()){var a="a promise was rejected with a non-error: "+l.classString(e);this.yt(a,!0)}this.Ht(o,!!r&&u),this.K(e)},N.prototype.Ei=function(e){if(e!==b){var r=this;this._n(),this.Gt();var s=!0,o=this.An(e,function(e){r.ut(e)},function(e){r.jn(e,s)});s=!1,this.zt(),void 0!==o&&r.jn(o,!0)}},N.prototype.Gi=function(e,r,s,o){var u=o.nt;if(0==(65536&u)){o.Gt(),r===k?s&&"number"==typeof s.length?a=I(e).apply(this.at(),s):(a=P).e=new g("cannot .spread() a non-array: "+l.classString(s)):a=I(e).call(r,s);var a,h=o.zt();0==(65536&(u=o.nt))&&(a===E?o.K(s):a===P?o.jn(a.e,!1):(S.checkForgottenReturns(a,h,"",o,this),o.ut(a)))}},N.prototype.ct=function(){for(var e=this;e.bt();)e=e.Tt();return e},N.prototype.Tt=function(){return this.wi},N.prototype.qi=function(e){this.wi=e},N.prototype.zi=function(e,r,s,u){var a=e instanceof N,c=this.nt,f=0!=(0x8000000&c);0!=(65536&c)?(a&&e.Vt(),s instanceof R&&s.isFinallyHandler()?(s.cancelPromise=e,I(r).call(s,u)===P&&e.K(P.e)):r===o?e.Xn(o.call(s)):s instanceof h?s.Vn(e):a||e instanceof x?e.Pt():s.cancel()):"function"==typeof r?a?(f&&e.Ri(),this.Gi(r,s,u,e)):r.call(s,u,e):s instanceof h?s.Fn()||(0!=(0x2000000&c)?s.qn(u,e):s.Gn(u,e)):a&&(f&&e.Ri(),0!=(0x2000000&c)?e.Xn(u):e.K(u))},N.prototype.Ci=function(e){var r=e.handler,s=e.promise,o=e.receiver,u=e.value;"function"==typeof r?s instanceof N?this.Gi(r,o,u,s):r.call(o,u,s):s instanceof N&&s.K(u)},N.prototype.Di=function(e){this.zi(e.promise,e.handler,e.receiver,e.value)},N.prototype.ji=function(e,r,s){var o=this.Ai,u=this.Ui(0);this.Ai=void 0,this.Ti=void 0,this.zi(o,e,u,r)},N.prototype.Yi=function(e){var r=4*e-4;this[r+2]=this[r+3]=this[r+0]=this[r+1]=void 0},N.prototype.Xn=function(e){var r=this.nt;if(!((0x7010000&r)>>>16)){if(e===this){var o=s();return this.Ht(o),this.K(o)}this.Ni(),this.wi=e,(65535&r)>0&&(0!=(0x8000000&r)?this.Y():d.settlePromises(this),this.wn())}},N.prototype.K=function(e){var r=this.nt;if(!((0x7010000&r)>>>16)){if(this.Oi(),this.gi=e,this.Mi())return d.fatalError(e,l.isNode);(65535&r)>0?d.settlePromises(this):this.Qt()}},N.prototype.Qi=function(e,r){for(var s=1;s<e;s++){var o=this.Hi(s),u=this.Fi(s),a=this.Ui(s);this.Yi(s),this.zi(u,o,a,r)}},N.prototype.Zi=function(e,r){for(var s=1;s<e;s++){var o=this.Xi(s),u=this.Fi(s),a=this.Ui(s);this.Yi(s),this.zi(u,o,a,r)}},N.prototype.Y=function(){var e=this.nt,r=65535&e;if(r>0){if(0!=(0x1010000&e)){var s=this.gi;this.ji(this.wi,s,e),this.Zi(r,s)}else{var o=this.wi;this.ji(this.gi,o,e),this.Qi(r,o)}this.Bi(0)}this.pn()},N.prototype.hn=function(){var e=this.nt;return 0!=(0x2000000&e)?this.wi:0!=(0x1000000&e)?this.gi:void 0},"u">typeof Symbol&&Symbol.toStringTag&&p.defineProperty(N.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),N.defer=N.pending=function(){return S.deprecated("Promise.defer","new Promise"),{promise:new N(b),resolve:O,reject:D}},l.notEnumerableProp(N,"Ki",s),e("./method")(N,b,A,a,S),e("./bind")(N,b,A,S),e("./cancel")(N,x,a,S),e("./direct_resolve")(N),e("./synchronous_inspection")(N),e("./join")(N,x,A,b,d,c),N.Promise=N,N.version="3.5.5",e("./call_get.js")(N),e("./generators.js")(N,a,b,A,h,S),e("./map.js")(N,x,a,A,b,S),e("./nodeify.js")(N),e("./promisify.js")(N,b),e("./props.js")(N,x,A,a),e("./race.js")(N,b,A,a),e("./reduce.js")(N,x,a,A,b,S),e("./settle.js")(N,x,S),e("./some.js")(N,x,a),e("./timers.js")(N,b,S),e("./using.js")(N,a,A,C,b,S),e("./any.js")(N),e("./each.js")(N,b),e("./filter.js")(N,b),l.toFastProperties(N),l.toFastProperties(N.prototype),U({a:1}),U({b:2}),U({c:3}),U(1),U(function(){}
1),U(void 0),U(!1),U(new N(b)),S.setBounds(v.firstLineError,l.lastLineError),N}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,r,s){r.exports=function(r,s,o,u,a){var h=e("./util");function c(e){var o=this.Cn=new r(s);e instanceof r&&o.ot(e,3),o.vt(this),this.ui=e,this.Lt=0,this.ai=0,this._init(void 0,-2)}return h.isArray,h.inherits(c,a),c.prototype.length=function(){return this.Lt},c.prototype.promise=function(){return this.Cn},c.prototype._init=function e(s,a){var c=o(this.ui,this.Cn);if(c instanceof r){var f=(c=c.ct()).nt;if(this.ui=c,0==(0x3010000&f))return this.Cn.Ri(),c.J(e,this.K,void 0,this,a);if(0==(0x2000000&f))return 0!=(0x1000000&f)?this.K(c.Zn()):this.Pt();c=c.Qn()}if(null!==(c=h.asArray(c)))0!==c.length?this.Ji(c):-5===a?this.$i():this.di(function(e){switch(e){case -2:return[];case -3:return{};case -6:return new Map}}(a));else{var l=u("expecting an array or an iterable object but got "+h.classString(c)).reason();this.Cn.jn(l,!1)}},c.prototype.Ji=function(e){var s=this.getActualLength(e.length);this.Lt=s,this.ui=this.shouldCopyValues()?Array(s):this.ui;for(var u=this.Cn,a=!1,h=null,c=0;c<s;++c){var f=o(e[c],u);h=f instanceof r?(f=f.ct()).nt:null,a?null!==h&&f.suppressUnhandledRejections():null!==h?0==(0x3010000&h)?(f.Yn(this,c),this.ui[c]=f):a=0!=(0x2000000&h)?this.qn(f.Qn(),c):0!=(0x1000000&h)?this.Gn(f.Zn(),c):this.Vn(c):a=this.qn(f,c)}a||u.Ri()},c.prototype.Fn=function(){return null===this.ui},c.prototype.di=function(e){this.ui=null,this.Cn.Xn(e)},c.prototype.Pt=function(){!this.Fn()&&this.Cn.kt()&&(this.ui=null,this.Cn.Pt())},c.prototype.K=function(e){this.ui=null,this.Cn.jn(e,!1)},c.prototype.qn=function(e,r){return this.ui[r]=e,++this.ai>=this.Lt&&(this.di(this.ui),!0)},c.prototype.Vn=function(){return this.Pt(),!0},c.prototype.Gn=function(e){return this.ai++,this.K(e),!0},c.prototype._resultCancelled=function(){if(!this.Fn()){var e=this.ui;if(this.Pt(),e instanceof r)e.cancel();else for(var s=0;s<e.length;++s)e[s]instanceof r&&e[s].cancel()}},c.prototype.shouldCopyValues=function(){return!0},c.prototype.getActualLength=function(e){return e},c}},{"./util":36}],24:[function(e,r,s){r.exports=function(r,s){var o={},u=e("./util"),a=e("./nodeback"),h=u.withAppended,c=u.maybeWrapAsError,f=u.canEvaluate,l=e("./errors").TypeError,p={ir:!0},v=RegExp("^(?:arity|length|name|arguments|caller|callee|prototype|ir)$"),d=function(e){return u.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function y(e){return!v.test(e)}function g(e){try{return!0===e.ir}catch(e){return!1}}var m=f?void 0:function(e,f,l,p,v,d){var y=function(){return this}(),g=e;function m(){var u=f;f===o&&(u=this);var l=new r(s);l._n();var p="string"==typeof g&&this!==y?this[g]:e,v=a(l,d);try{p.apply(u,h(arguments,v))}catch(e){l.jn(c(e),!0,!0)}return l.Ii()||l.Ri(),l}return"string"==typeof g&&(e=p),u.notEnumerableProp(m,"ir",!0),m};function b(e,r,s,a,h){for(var c=RegExp(r.replace(/([$])/,"\\$")+"$"),f=function(e,r,s,o){for(var a=u.inheritedDataKeys(e),h=[],c=0;c<a.length;++c){var f=a[c],v=e[f],y=o===d||d(f);"function"!=typeof v||g(v)||function(e,r,s){var o=u.getDataPropertyOrDefault(e,r+s,p);return!!o&&g(o)}(e,f,r)||!o(f,v,e,y)||h.push(f,v)}return function(e,r,s){for(var o=0;o<e.length;o+=2){var u=e[o];if(s.test(u)){for(var a=u.replace(s,""),h=0;h<e.length;h+=2)if(e[h]===a)throw new l("Cannot promisify an API that has normal methods with '%s'-suffix\n\n    See http://goo.gl/MqrFmX\n".replace("%s",r))}}}(h,r,s),h}(e,r,c,s),v=0,y=f.length;v<y;v+=2){var w=f[v],b=f[v+1],k=w+r;if(a===m)e[k]=m(w,o,w,b,r,h);else{var E=a(b,function(){return m(w,o,w,b,r,h)});u.notEnumerableProp(E,"ir",!0),e[k]=E}}return u.toFastProperties(e),e}r.promisify=function(e,r){if("function"!=typeof e)throw new l("expecting a function but got "+u.classString(e));if(g(e))return e;var s=m(e,void 0===(r=w(r)).context?o:r.context,void 0,e,null,!!r.multiArgs);return u.copyDescriptors(e,s,y),s},r.promisifyAll=function(e,r){if("function"!=typeof e&&"object"!=typeof e)throw new l("the target of promisifyAll must be an object or a function\n\n    See http://goo.gl/MqrFmX\n");var s=!!(r=w(r)).multiArgs,o=r.suffix;"string"!=typeof o&&(o="Async");var a=r.filter;"function"!=typeof a&&(a=d);var h=r.promisifier;if("function"!=typeof h&&(h=m),!u.isIdentifier(o))throw RangeError("suffix must be a valid identifier\n\n    See http://goo.gl/MqrFmX\n");for(var c=u.inheritedDataKeys(e),f=0;f<c.length;++f){var p=e[c[f]];"constructor"!==c[f]&&u.isClass(p)&&(b(p.prototype,o,a,h,s),b(p,o,a,h,s))}return b(e,o,a,h,s)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(e,r,s){r.exports=function(r,s,o,u){var a,h=e("./util"),c=h.isObject,f=e("./es5");"function"==typeof Map&&(a=Map);var l=function(){var e=0,r=0;function s(s,o){this[e]=s,this[e+r]=o,e++}return function(o){r=o.size,e=0;var u=Array(2*o.size);return o.forEach(s,u),u}}();function p(e){var r,s=!1;if(void 0!==a&&e instanceof a)r=l(e),s=!0;else{var o=f.keys(e),u=o.length;r=Array(2*u);for(var h=0;h<u;++h){var c=o[h];r[h]=e[c],r[h+u]=c}}this.constructor$(r),this.rr=s,this._init$(void 0,s?-6:-3)}function v(e){var s,a=o(e);return c(a)?(s=a instanceof r?a.J(r.props,void 0,void 0,void 0,void 0):new p(a).promise(),a instanceof r&&s.ot(a,2),s):u("cannot await properties of a non-object\n\n    See http://goo.gl/MqrFmX\n")}h.inherits(p,s),p.prototype._init=function(){},p.prototype.qn=function(e,r){var s;if(this.ui[r]=e,++this.ai>=this.Lt){if(this.rr)s=function(e){for(var r=new a,s=e.length/2|0,o=0;o<s;++o){var u=e[s+o],h=e[o];r.set(u,h)}return r}(this.ui);else{s={};for(var o=this.length(),u=0,h=this.length();u<h;++u)s[this.ui[u+o]]=this.ui[u]}return this.di(s),!0}return!1},p.prototype.shouldCopyValues=function(){return!1},p.prototype.getActualLength=function(e){return e>>1},r.prototype.props=function(){return v(this)},r.props=function(e){return v(e)}}}
1,{"./es5":13,"./util":36}],26:[function(e,r,s){function o(e){this.er=e,this.Lt=0,this.dr=0}o.prototype._r=function(e){return this.er<e},o.prototype.j=function(e){var r=this.length();this.gr(r+1),this[this.dr+r&this.er-1]=e,this.Lt=r+1},o.prototype.push=function(e,r,s){var o=this.length()+3;if(this._r(o))return this.j(e),this.j(r),void this.j(s);var u=this.dr+o-3;this.gr(o);var a=this.er-1;this[u+0&a]=e,this[u+1&a]=r,this[u+2&a]=s,this.Lt=o},o.prototype.shift=function(){var e=this.dr,r=this[e];return this[e]=void 0,this.dr=e+1&this.er-1,this.Lt--,r},o.prototype.length=function(){return this.Lt},o.prototype.gr=function(e){this.er<e&&this.wr(this.er<<1)},o.prototype.wr=function(e){var r=this.er;this.er=e,function(e,r,s,o){for(var u=0;u<o;++u)r[u+s]=e[u+0],e[u+0]=void 0}(this,this,r,this.dr+this.Lt&r-1)},r.exports=o},{}],27:[function(e,r,s){r.exports=function(r,s,o,u){var a=e("./util");function h(e,c){var f=o(e);if(f instanceof r)return f.then(function(e){return h(e,f)});if(null===(e=a.asArray(e)))return u("expecting an array or an iterable object but got "+a.classString(e));var l=new r(s);void 0!==c&&l.ot(c,3);for(var p=l.Xn,v=l.K,d=0,y=e.length;d<y;++d){var g=e[d];(void 0!==g||d in e)&&r.cast(g).J(p,v,void 0,l,null)}return l}r.race=function(e){return h(e,void 0)},r.prototype.race=function(){return h(this,void 0)}}},{"./util":36}],28:[function(e,r,s){r.exports=function(r,s,o,u,a,h){var c=r.Yt,f=e("./util"),l=f.tryCatch;function p(e,s,o,u){this.constructor$(e);var h=c();this.yr=null===h?s:f.domainBind(h,s),void 0!==o&&(o=r.resolve(o)).yn(this),this.pr=o,this.Ar=null,this.Tr=u===a?Array(this.Lt):0===u?null:void 0,this.Cn._n(),this._init$(void 0,-5)}function v(e,r){this.isFulfilled()?r.di(e):r.K(e)}function d(e,r,s,u){return"function"!=typeof r?o("expecting a function but got "+f.classString(r)):new p(e,r,s,u).promise()}function y(e){this.accum=e,this.array.Er(e);var s=u(this.value,this.array.Cn);return s instanceof r?(this.array.Ar=s,s.J(g,void 0,void 0,this,void 0)):g.call(this,s)}function g(e){var s,o=this.array,u=o.Cn,a=l(o.yr);u.Gt(),(s=void 0!==o.Tr?a.call(u.at(),e,this.index,this.length):a.call(u.at(),this.accum,e,this.index,this.length))instanceof r&&(o.Ar=s);var c=u.zt();return h.checkForgottenReturns(s,c,void 0!==o.Tr?"Promise.each":"Promise.reduce",u),s}f.inherits(p,s),p.prototype.Er=function(e){void 0!==this.Tr&&null!==this.Tr&&e!==a&&this.Tr.push(e)},p.prototype.Sr=function(e){return null!==this.Tr&&this.Tr.push(e),this.Tr},p.prototype._init=function(){},p.prototype.$i=function(){this.di(void 0!==this.Tr?this.Tr:this.pr)},p.prototype.shouldCopyValues=function(){return!1},p.prototype.di=function(e){this.Cn.ut(e),this.ui=null},p.prototype._resultCancelled=function(e){if(e===this.pr)return this.Pt();this.Fn()||(this._resultCancelled$(),this.Ar instanceof r&&this.Ar.cancel(),this.pr instanceof r&&this.pr.cancel())},p.prototype.Ji=function(e){this.ui=e;var s,o,u=e.length;if(void 0!==this.pr?(s=this.pr,o=0):(s=r.resolve(e[0]),o=1),this.Ar=s,!s.isRejected())for(;o<u;++o){var a={accum:null,value:e[o],index:o,length:u,array:this};s=s.J(y,void 0,void 0,a,void 0)}void 0!==this.Tr&&(s=s.J(this.Sr,void 0,void 0,this,void 0)),s.J(v,v,void 0,s,this)},r.prototype.reduce=function(e,r){return d(this,e,r,null)},r.reduce=function(e,r,s,o){return d(e,r,s,o)}}},{"./util":36}],29:[function(e,r,s){var o,c,f,p,v,d=e("./util"),g=d.getNativePromise();if(d.isNode&&"u"<typeof MutationObserver){var m=S.setImmediate,w=u.nextTick;o=d.isRecentNode?function(e){m.call(S,e)}:function(e){w.call(u,e)}}else if("function"==typeof g&&"function"==typeof g.resolve){var b=g.resolve();o=function(e){b.then(e)}}else o="u">typeof MutationObserver&&(void 0===a||!a.navigator||!a.navigator.standalone&&!a.cordova)&&"classList"in h.documentElement?(c=h.createElement("div"),f={attributes:!0},p=!1,v=h.createElement("div"),new MutationObserver(function(){c.classList.toggle("foo"),p=!1}).observe(v,f),function(e){var r=new MutationObserver(function(){r.disconnect(),e()});r.observe(c,f),p||(p=!0,v.classList.toggle("foo"))}):"u">typeof setImmediate?function(e){setImmediate(e)}:void 0!==l?function(e){l(e,0)}:function(){throw new y("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")};
1r.exports=o},{"./util":36}],30:[function(e,r,s){r.exports=function(r,s,o){var u=r.PromiseInspection;function a(e){this.constructor$(e)}e("./util").inherits(a,s),a.prototype.Ir=function(e,r){return this.ui[e]=r,++this.ai>=this.Lt&&(this.di(this.ui),!0)},a.prototype.qn=function(e,r){var s=new u;return s.nt=0x2000000,s.Rr=e,this.Ir(r,s)},a.prototype.Gn=function(e,r){var s=new u;return s.nt=0x1000000,s.Rr=e,this.Ir(r,s)},r.settle=function(e){return o.deprecated(".settle()",".reflect()"),new a(e).promise()},r.prototype.settle=function(){return r.settle(this)}}},{"./util":36}],31:[function(e,r,s){r.exports=function(r,s,o){var u=e("./util"),a=e("./errors").RangeError,h=e("./errors").AggregateError,c=u.isArray,f={};function l(e){this.constructor$(e),this.Nr=0,this.Dr=!1,this.Cr=!1}function p(e,r){if((0|r)!==r||r<0)return o("expecting a positive integer\n\n    See http://goo.gl/MqrFmX\n");var s=new l(e),u=s.promise();return s.setHowMany(r),s.init(),u}u.inherits(l,s),l.prototype._init=function(){if(this.Cr)if(0!==this.Nr){this._init$(void 0,-5);var e=c(this.ui);!this.Fn()&&e&&this.Nr>this.Pr()&&this.K(this.Br(this.length()))}else this.di([])},l.prototype.init=function(){this.Cr=!0,this._init()},l.prototype.setUnwrap=function(){this.Dr=!0},l.prototype.howMany=function(){return this.Nr},l.prototype.setHowMany=function(e){this.Nr=e},l.prototype.qn=function(e){return this.Or(e),this.Lr()===this.howMany()&&(this.ui.length=this.howMany(),1===this.howMany()&&this.Dr?this.di(this.ui[0]):this.di(this.ui),!0)},l.prototype.Gn=function(e){return this.Mr(e),this.xr()},l.prototype.Vn=function(){return this.ui instanceof r||null==this.ui?this.Pt():(this.Mr(f),this.xr())},l.prototype.xr=function(){if(this.howMany()>this.Pr()){for(var e=new h,r=this.length();r<this.ui.length;++r)this.ui[r]!==f&&e.push(this.ui[r]);return e.length>0?this.K(e):this.Pt(),!0}return!1},l.prototype.Lr=function(){return this.ai},l.prototype.Ur=function(){return this.ui.length-this.length()},l.prototype.Mr=function(e){this.ui.push(e)},l.prototype.Or=function(e){this.ui[this.ai++]=e},l.prototype.Pr=function(){return this.length()-this.Ur()},l.prototype.Br=function(e){return new a("Input array must contain at least "+this.Nr+" items but contains only "+e+" items")},l.prototype.$i=function(){this.K(this.Br(0))},r.some=function(e,r){return p(e,r)},r.prototype.some=function(e){return p(this,e)},r.l=l}},{"./errors":12,"./util":36}],32:[function(e,r,s){r.exports=function(e){function r(e){void 0!==e?(e=e.ct(),this.nt=e.nt,this.Rr=e.Ii()?e.hn():void 0):(this.nt=0,this.Rr=void 0)}r.prototype.hn=function(){return this.Rr};var s=r.prototype.value=function(){if(!this.isFulfilled())throw new g("cannot get fulfillment value of a non-fulfilled promise\n\n    See http://goo.gl/MqrFmX\n");return this.hn()},o=r.prototype.error=r.prototype.reason=function(){if(!this.isRejected())throw new g("cannot get rejection reason of a non-rejected promise\n\n    See http://goo.gl/MqrFmX\n");return this.hn()},u=r.prototype.isFulfilled=function(){return 0!=(0x2000000&this.nt)},a=r.prototype.isRejected=function(){return 0!=(0x1000000&this.nt)},h=r.prototype.isPending=function(){return 0==(0x3010000&this.nt)},c=r.prototype.isResolved=function(){return 0!=(0x3000000&this.nt)};r.prototype.isCancelled=function(){return 0!=(8454144&this.nt)},e.prototype.Fr=function(){return 65536==(65536&this.nt)},e.prototype.Ut=function(){return this.ct().Fr()},e.prototype.isCancelled=function(){return 0!=(8454144&this.ct().nt)},e.prototype.isPending=function(){return h.call(this.ct())},e.prototype.isRejected=function(){return a.call(this.ct())},e.prototype.isFulfilled=function(){return u.call(this.ct())},e.prototype.isResolved=function(){return c.call(this.ct())},e.prototype.value=function(){return s.call(this.ct())},e.prototype.reason=function(){var e=this.ct();return e.dn(),o.call(e)},e.prototype.Qn=function(){return this.hn()},e.prototype.Zn=function(){return this.dn(),this.hn()},e.PromiseInspection=r}},{}],33:[function(e,r,s){r.exports=function(r,s){var o=e("./util"),u=o.errorObj,a=o.isObject,h={}.hasOwnProperty;
1return function(e,c){if(a(e)){if(e instanceof r)return e;var f=function(e){try{return e.then}catch(e){return u.e=e,u}}(e);if(f===u){c&&c.Gt();var l=r.reject(f.e);return c&&c.zt(),l}if("function"==typeof f){if(function(e){try{return h.call(e,"Ai")}catch(e){return!1}}(e)){var p,v,d,y,l=new r(s);return e.J(l.Xn,l.K,void 0,l,null),l}return v=p=new r(s),c&&c.Gt(),p._n(),c&&c.zt(),d=!0,y=o.tryCatch(f).call(e,function(e){p&&(p.ut(e),p=null)},function(e){p&&(p.jn(e,d,!0),p=null)}),d=!1,p&&y===u&&(p.jn(y.e,!0,!0),p=null),v}}return e}}},{"./util":36}],34:[function(e,r,s){r.exports=function(r,s,o){var u=e("./util"),a=r.TimeoutError;function h(e){this.handle=e}h.prototype._resultCancelled=function(){p(this.handle)};var c=function(e){return f(+this).thenReturn(e)},f=r.delay=function(e,u){var a,f;return void 0!==u?(a=r.resolve(u).J(c,null,null,e,void 0),o.cancellation()&&u instanceof r&&a.vt(u)):(a=new r(s),f=l(function(){a.Xn()},+e),o.cancellation()&&a.vt(new h(f)),a._n()),a.Ri(),a};function v(e){return p(this.handle),e}function d(e){throw p(this.handle),e}r.prototype.delay=function(e){return f(e,this)},r.prototype.timeout=function(e,r){var s,c,f=new h(l(function(){var e,o,h;s.isPending()&&(e=s,o=c,h="string"!=typeof r?r instanceof y?r:new a("operation timed out"):new a(r),u.markAsOriginatingFromRejection(h),e.Ht(h),e.K(h),null!=o&&o.cancel())},e*=1));return o.cancellation()?(s=(c=this.then()).J(v,d,void 0,f,void 0)).vt(f):s=this.J(v,d,void 0,f,void 0),s}}},{"./util":36}],35:[function(e,r,s){r.exports=function(r,s,o,u,a,h){var c=e("./util"),f=e("./errors").TypeError,p=e("./util").inherits,v=c.errorObj,d=c.tryCatch,y={};function g(e){l(function(){throw e},0)}function m(e,r,s){this.Wr=e,this.Cn=r,this.qr=s}function w(e,r,s){this.constructor$(e,r,s)}function b(e){return m.isDisposer(e)?(this.resources[this.index].Vr(e),e.promise()):e}function k(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this.Wr},m.prototype.promise=function(){return this.Cn},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():y},m.prototype.tryDispose=function(e){var r=this.resource(),s=this.qr;void 0!==s&&s.Gt();var o=r!==y?this.doDispose(r,e):null;return void 0!==s&&s.zt(),this.Cn.Gr(),this.Wr=null,o},m.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},p(w,m),w.prototype.doDispose=function(e,r){return this.data().call(e,e,r)},k.prototype._resultCancelled=function(){for(var e=this.length,s=0;s<e;++s){var o=this[s];o instanceof r&&o.cancel()}},r.using=function(){var e=arguments.length;if(e<2)return s("you must pass at least 2 arguments to Promise.using");var u,f=arguments[e-1];if("function"!=typeof f)return s("expecting a function but got "+c.classString(f));var l=!0;2===e&&Array.isArray(arguments[0])?(u=arguments[0],e=u.length,l=!1):(u=arguments,e--);for(var p=new k(e),y=0;y<e;++y){var w=u[y];if(m.isDisposer(w)){var E=w;(w=w.promise()).Vr(E)}else{var A=o(w);A instanceof r&&(w=A.J(b,null,null,{resources:p,index:y},void 0))}p[y]=w}for(var x=Array(p.length),y=0;y<x.length;++y)x[y]=r.resolve(p[y]).reflect();var T=r.all(x).then(function(e){for(var r=0;r<e.length;++r){var s=e[r];if(s.isRejected())return v.e=s.error(),v;if(!s.isFulfilled())return void T.cancel();e[r]=s.value()}C.Gt(),f=d(f);var o=l?f.apply(void 0,e):f(e),u=C.zt();return h.checkForgottenReturns(o,u,"Promise.using",C),o}),C=T.lastly(function(){var e,s,u,h=new r.PromiseInspection(T);return e=0,s=p.length,u=new r(a),function a(){if(e>=s)return u.Xn();var c,f,l=((f=o(c=p[e++]))!==c&&"function"==typeof c.Hr&&"function"==typeof c.Xr&&c.Hr()&&f.Vr(c.Xr()),f);if(l instanceof r&&l.Hr()){try{l=o(l.Xr().tryDispose(h),p.promise)}catch(e){return g(e)}if(l instanceof r)return l.J(a,g,null,null,null)}a()}(),u});return p.promise=C,C.vt(p),C},r.prototype.Vr=function(e){this.nt=131072|this.nt,this.zr=e},r.prototype.Hr=function(){return(131072&this.nt)>0},r.prototype.Xr=function(){return this.zr},r.prototype.Gr=function(){this.nt=-131073&this.nt,this.zr=void 0},r.prototype.disposer=function(e){if("function"==typeof e)return new w(e,this,u());throw new f}}},{"./errors":12,"./util":36}],36:[function(e,r,s){var h,c=e("./es5"),l=void 0===f,p={e:{}},v=void 0!==o?o:void 0!==a?a:void 0!==S?S:void 0!==this?this:null;function d(){try{var e=h;return h=null,e.apply(this,arguments)}catch(e){return p.e=e,p}}function g(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function m(e,r,s){return g(e)||c.defineProperty(e,r,{value:s,configurable:!0,enumerable:!1,writable:!0}),e}var b=function(){var e=[Array.prototype,w.prototype,Function.prototype],r=function(r){for(var s=0;s<e.length;++s)if(e[s]===r)return!0;return!1};if(c.isES5){var s=w.getOwnPropertyNames;return function(e){for(var o,u=[],a=w.create(null);null!=e&&!r(e);){try{o=s(e)}catch(e){break}for(var h=0;h<o.length;++h){var f=o[h];if(!a[f]){a[f]=!0;var l=w.getOwnPropertyDescriptor(e,f);null!=l&&null==l.get&&null==l.set&&u.push(f)}}e=c.getPrototypeOf(e)}return u}}var o={}.hasOwnProperty;return function(s){if(r(s))return[];var u=[];t:for(var a in s)if(o.call(s,a))u.push(a);else{for(var h=0;h<e.length;++h)if(o.call(e[h],a))continue t;u.push(a)}return u}}(),k=/this\s*\.\s*\S+\s*=/,E=/^[a-z$_][a-z$_0-9]*$/i;function A(e){try{return e+""}
1catch(e){return"[no string representation]"}}function x(e){return e instanceof y||null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function T(e){return x(e)&&c.propertyIsWritable(e,"stack")}var C="stack"in new y?function(e){return T(e)?e:new y(A(e))}:function(e){if(T(e))return e;try{throw new y(A(e))}catch(e){return e}};function R(e){return({}).toString.call(e)}var L=function(e){return c.isArray(e)?e:null};if("u">typeof Symbol&&Symbol.iterator){var _="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var r,s=[],o=e[Symbol.iterator]();!(r=o.next()).done;)s.push(r.value);return s};L=function(e){return c.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?_(e):null}}var P,I=void 0!==u&&"[object process]"===R(u).toLowerCase(),N=void 0!==u&&void 0!==u.env,O={isClass:function(e){try{if("function"==typeof e){var r=c.names(e.prototype),s=c.isES5&&r.length>1,o=r.length>0&&(1!==r.length||"constructor"!==r[0]),u=k.test(e+"")&&c.names(e).length>0;if(s||o||u)return!0}return!1}catch(e){return!1}},isIdentifier:function(e){return E.test(e)},inheritedDataKeys:b,getDataPropertyOrDefault:function(e,r,s){if(!c.isES5)return({}).hasOwnProperty.call(e,r)?e[r]:void 0;var o=w.getOwnPropertyDescriptor(e,r);return null!=o?null==o.get&&null==o.set?o.value:s:void 0},thrower:function(e){throw e},isArray:c.isArray,asArray:L,notEnumerableProp:m,isPrimitive:g,isObject:function(e){return"function"==typeof e||"object"==typeof e&&null!==e},isError:x,canEvaluate:l,errorObj:p,tryCatch:function(e){return h=e,d},inherits:function(e,r){var s={}.hasOwnProperty;function o(){for(var o in this.constructor=e,this.constructor$=r,r.prototype)s.call(r.prototype,o)&&"$"!==o.charAt(o.length-1)&&(this[o+"$"]=r.prototype[o])}return o.prototype=r.prototype,e.prototype=new o,e.prototype},withAppended:function(e,r){var s,o=e.length,u=Array(o+1);for(s=0;s<o;++s)u[s]=e[s];return u[s]=r,u},maybeWrapAsError:function(e){return g(e)?new y(A(e)):e},toFastProperties:function(e){return e},filledRange:function(e,r,s){for(var o=Array(e),u=0;u<e;++u)o[u]=r+u+s;return o},toString:A,canAttachTrace:T,ensureErrorObject:C,originatesFromRejection:function(e){return null!=e&&(e instanceof y.Rn.OperationalError||!0===e.isOperational)},markAsOriginatingFromRejection:function(e){try{m(e,"isOperational",!0)}catch(e){}},classString:R,copyDescriptors:function(e,r,s){for(var o=c.names(e),u=0;u<o.length;++u){var a=o[u];if(s(a))try{c.defineProperty(r,a,c.getDescriptor(e,a))}catch(e){}}},hasDevTools:"u">typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:I,hasEnvVariables:N,env:function(e){return N?u.env[e]:void 0},global:v,getNativePromise:function(){if("function"==typeof Promise)try{var e=new Promise(function(){});if("[object Promise]"===({}).toString.call(e))return Promise}catch(e){}},domainBind:function(e,r){return e.bind(r)}};O.isRecentNode=O.isNode&&(u.versions&&u.versions.node?P=u.versions.node.split(".").map(Number):u.version&&(P=u.version.split(".").map(Number)),0===P[0]&&P[1]>10||P[0]>0),O.isNode&&O.toFastProperties(u);try{throw new y}catch(e){O.lastLineError=e}r.exports=O},{"./es5":13}]},{},[4])(4),null!=a?a.P=a.Promise:null!=o&&(o.P=o.Promise)}),I=function(){},N=function(e){return e};function O(e,r){var s=-1/0;return function(){var o=_.xo();o-s>=r&&(e.apply(void 0,arguments),s=o)}}function D(e,r,s){var o;return function(){for(var u=arguments.length,a=Array(u),h=0;h<u;h++)a[h]=arguments[h];var c=this,f=s&&!o;void 0!==o&&_.jr(o),o=_.Yr(function(){o=void 0,s||e.apply(c,a)},r),f&&e.apply(c,a)}}function U(e,r){for(var s=0;s<r.length;s++){var o=r[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),w.defineProperty(e,o.key,o)}}function M(e,r,s){return r&&U(e.prototype,r),s&&U(e,s),e}function F(e,r){return(F=w.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function j(e,r){e.prototype=w.create(r.prototype),e.prototype.constructor=e,F(e,r)}P&&P.config({warnings:!1,longStackTraces:!1}),P&&(td=P.setScheduler(I),ty={Qr:function(e){tp=e,td(tv)},Zr:tv=function(){var e=tp;e&&(tp=void 0,e())}},P.setScheduler(ty.Qr)),(tl=tg||(tg={})).Kr="web",tl.Jr="android",tl.$r="android-tv",tl.re="ios",tl.ue="tvos",tl.oe="chromecast";var H=f?f.userAgent:"",B=H.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),V=H.match(/Android ([0-9\.]+)/i),X=H.match(/Windows NT ([0-9\.]+)/i),W=H.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),q=H.match(/Firefox\/([0-9\.]+)/i),Y=H.match(/OPR\/(\d+\.\d+)/i),$=H.match(/Tizen ([0-9\.]+)/i),J=function(){function e(){this.fe=!!("ontouchstart"in o||o.DocumentTouch&&h instanceof o.DocumentTouch||f&&f.msMaxTouchPoints),this._e=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(H)||/(macintosh|mac(?=_powerpc)\s)/i.test(H),this.we=/Windows NT/i.test(H),this.ye=X?E(X[1]):0,this.ke=/Android/i.test(H),this.me=V?E(V[1]):0,this.pe=/windows phone (8|8\.1)/i.test(H),this.Ae=/iPhone/i.test(H),this.Te=/iPad/i.test(H),this.Ee=this._e&&this.fe&&!this.Te,this.Se=/iPod/i.test(H),this.Ie=/Mobile Safari/i.test(H),this.Re=(this.Ae||this.Te||this.Ee||this.Se)&&!this.pe,this.Ne=this.pe||this.Re||this.ke||this.Ie,this.De=/CriOS/i.test(H),this.Ce=!!(o.chrome&&/google/i.test(f.vendor))||this.De,this.Pe=!!(o.chrome||/Chrome/i.test(H)||/CriOS/i.test(H)),this.Be=B?k(B[1],10):0,this.Oe=/SMART-TV.*Tizen/i.test(H),this.Le=$?E($[1]):0,this.Me=/webos|web0s/i.test(H),this.xe=/Edge\/\d+/i.test(H),this.Ue=/Trident/i.test(H),this.Fe=this.Ue&&!
1o.ActiveXObject&&"ActiveXObject"in o,this.He=/Vivaldi/i.test(H),this.Xe=/Firefox/i.test(H)&&!/Seamonkey/i.test(H),this.Ve=q?E(q[1]):0,this.We=/Safari/i.test(H)&&!/Chrome/i.test(H)&&!this.pe&&!this.Oe,this.qe=W?E(W[2]):0,this.Ge=!!Y,this.ze=Y?E(Y[1]):0,this.je="web"===tg.$r,this.Ye="web"===tg.Jr,this.Qe=this.Ye||this.je,this.Ze="web"===tg.re,this.Ke="web"===tg.ue,this.Je="web"===tg.oe}return M(e,[{key:"$e",get:function(){return this.fe}},{key:"tu",get:function(){return this._e}},{key:"nu",get:function(){return this.we}},{key:"uu",get:function(){return this.ye}},{key:"ou",get:function(){return this.ke}},{key:"au",get:function(){return this.me}},{key:"fu",get:function(){return this.pe}},{key:"vu",get:function(){return this.Ae}},{key:"du",get:function(){return this.Te}},{key:"_u",get:function(){return this.Ee}},{key:"wu",get:function(){return this.Se}},{key:"yu",get:function(){return this.Re}},{key:"mu",get:function(){return this.Ie}},{key:"pu",get:function(){return this.Ne}},{key:"Au",get:function(){return this.De}},{key:"bu",get:function(){return this.Ce}},{key:"Tu",get:function(){return this.Be}},{key:"Eu",get:function(){return this.Oe}},{key:"Su",get:function(){return this.Le}},{key:"Iu",get:function(){return this.Me}},{key:"Ru",get:function(){return this.xe}},{key:"Nu",get:function(){return this.Ue}},{key:"Du",get:function(){return this.Fe}},{key:"Cu",get:function(){return this.He}},{key:"Pu",get:function(){return this.Xe}},{key:"Bu",get:function(){return this.Ve}},{key:"Ou",get:function(){return this.We}},{key:"Lu",get:function(){return this.qe}},{key:"Mu",get:function(){return this.Ge}},{key:"xu",get:function(){return this.ze}},{key:"Uu",get:function(){return this.je}},{key:"Fu",get:function(){return this.Ye}},{key:"Hu",get:function(){return this.Qe}},{key:"Xu",get:function(){return this.Ze}},{key:"Vu",get:function(){return this.Ke}},{key:"Wu",get:function(){return this.Je}},{key:"Gu",get:function(){return this.Pe}}]),e}();J.ju=new J;var Q=J.ju,G={}.hasOwnProperty,K={}.toString;function z(e){return null!=e}var Z=Array.isArray||function(e){return"[object Array]"===K.call(e)};function tt(e){return te(e)&&G.call(e,"length")&&to(e.length)}function te(e){return"object"==typeof e&&null!==e}function tn(e){return te(e)&&e.constructor&&e.constructor===w}function ti(e){return"string"==typeof e}function tr(e){return"boolean"==typeof e}function ts(e){return!!e&&"function"==typeof e.then}function to(e){return"number"==typeof e}var tu=!(Q.Nu&&!Q.Du),ta=o.console;function th(e){if(te(e))try{return JSON.stringify(e)}catch(e){}return e}function tc(e){return e.map(th).join(" ")}function tf(e){var r=ta&&ta[e];return r?r.bind&&tu?r.bind(ta):function(){for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];ta[e](tc(s))}:void 0}var tl,tp,tv,td,ty,tg,tm,tw=tf("log")||I,tb=tf("warn")||tw.bind(void 0,"WARNING:"),tk=tf("error")||tw.bind(void 0,"ERROR:"),tE=(tm=ta&&ta.assert)?tm.bind&&tu?tm.bind(ta):function(e){for(var r=arguments.length,s=Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];ta.assert(e,tc(s))}:function(e){if(!e){for(var r=arguments.length,s=Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];tk.apply(void 0,["Assertion failed:"].concat(s))}},tA=null;try{tA=new WebAssembly.Instance(new WebAssembly.Module(new x([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function tx(e,r,s){this.low=0|e,this.high=0|r,this.unsigned=!!s}function tT(e){return!0===(e&&e.Yu)}tx.prototype.Yu,w.defineProperty(tx.prototype,"Yu",{value:!0}),tx.isLong=tT;var tC={},tS={};function tR(e,r){var s,o,u;return r?(u=0<=(e>>>=0)&&e<256)&&(o=tS[e])?o:(s=t_(e,(0|e)<0?-1:0,!0),u&&(tS[e]=s),s):(u=-128<=(e|=0)&&e<128)&&(o=tC[e])?o:(s=t_(e,e<0?-1:0,!1),u&&(tC[e]=s),s)}function tL(e,r){if(A(e))return r?tj:tF;if(r){if(e<0)return tj;if(e>=tD)return tW}else{if(e<=-tU)return tq;if(e+1>=tU)return tX}return e<0?tL(-e,r).neg():t_(e%tO|0,e/tO|0,r)}function t_(e,r,s){return new tx(e,r,s)}tx.fromInt=tR,tx.fromNumber=tL,tx.fromBits=t_;
vendor: 8,114 bytes, line 1
1var tP=b.pow;function tI(e,r,s){if(0===e.length)throw y("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return tF;if("number"==typeof r?(s=r,r=!1):r=!!r,(s=s||10)<2||36<s)throw RangeError("radix");if((o=e.indexOf("-"))>0)throw y("interior hyphen");if(0===o)return tI(e.substring(1),r,s).neg();for(var o,u=tL(tP(s,8)),a=tF,h=0;h<e.length;h+=8){var c=b.min(8,e.length-h),f=k(e.substring(h,h+c),s);if(c<8){var l=tL(tP(s,c));a=a.mul(l).add(tL(f))}else a=(a=a.mul(u)).add(tL(f))}return a.unsigned=r,a}function tN(e,r){return"number"==typeof e?tL(e,r):"string"==typeof e?tI(e,r):t_(e.low,e.high,"boolean"==typeof r?r:e.unsigned)}tx.fromString=tI,tx.fromValue=tN;var tO=0x100000000,tD=0xffffffffffffffff,tU=0xffffffffffffffff/2,tM=tR(0x1000000),tF=tR(0);tx.ZERO=tF;var tj=tR(0,!0);tx.UZERO=tj;var tH=tR(1);tx.ONE=tH;var tB=tR(1,!0);tx.UONE=tB;var tV=tR(-1);tx.NEG_ONE=tV;var tX=t_(-1,0x7fffffff,!1);tx.MAX_VALUE=tX;var tW=t_(-1,-1,!0);tx.MAX_UNSIGNED_VALUE=tW;var tq=t_(0,-0x80000000,!1);tx.MIN_VALUE=tq;var tY=tx.prototype;tY.toInt=function(){return this.unsigned?this.low>>>0:this.low},tY.toNumber=function(){return this.unsigned?(this.high>>>0)*tO+(this.low>>>0):this.high*tO+(this.low>>>0)},tY.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(tq)){var r=tL(e),s=this.div(r),o=s.mul(r).sub(this);return s.toString(e)+o.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var u=tL(tP(e,6),this.unsigned),a=this,h="";;){var c=a.div(u),f=(a.sub(c.mul(u)).toInt()>>>0).toString(e);if((a=c).isZero())return f+h;for(;f.length<6;)f="0"+f;h=""+f+h}},tY.getHighBits=function(){return this.high},tY.getHighBitsUnsigned=function(){return this.high>>>0},tY.getLowBits=function(){return this.low},tY.getLowBitsUnsigned=function(){return this.low>>>0},tY.getNumBitsAbs=function(){if(this.isNegative())return this.eq(tq)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,r=31;r>0&&0==(e&1<<r);r--);return 0!=this.high?r+33:r+1},tY.isZero=function(){return 0===this.high&&0===this.low},tY.eqz=tY.isZero,tY.isNegative=function(){return!this.unsigned&&this.high<0},tY.isPositive=function(){return this.unsigned||this.high>=0},tY.isOdd=function(){return 1==(1&this.low)},tY.isEven=function(){return 0==(1&this.low)},tY.equals=function(e){return tT(e)||(e=tN(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},tY.eq=tY.equals,tY.notEquals=function(e){return!this.eq(e)},tY.neq=tY.notEquals,tY.ne=tY.notEquals,tY.lessThan=function(e){return 0>this.comp(e)},tY.lt=tY.lessThan,tY.lessThanOrEqual=function(e){return 0>=this.comp(e)},tY.lte=tY.lessThanOrEqual,tY.le=tY.lessThanOrEqual,tY.greaterThan=function(e){return this.comp(e)>0},tY.gt=tY.greaterThan,tY.greaterThanOrEqual=function(e){return this.comp(e)>=0},tY.gte=tY.greaterThanOrEqual,tY.ge=tY.greaterThanOrEqual,tY.compare=function(e){if(tT(e)||(e=tN(e)),this.eq(e))return 0;var r=this.isNegative(),s=e.isNegative();return r&&!s?-1:!r&&s?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},tY.comp=tY.compare,tY.negate=function(){return!this.unsigned&&this.eq(tq)?tq:this.not().add(tH)},tY.neg=tY.negate,tY.add=function(e){tT(e)||(e=tN(e));var r,s,o,u=this.high>>>16,a=65535&this.high,h=this.low>>>16,c=65535&this.low,f=e.high>>>16,l=65535&e.high,p=e.low>>>16,v=0;return o=0+((r=0+((s=0+(c+(65535&e.low)))>>>16)+(h+p))>>>16),v+=(o+=a+l)>>>16,v+=u+f,t_((r&=65535)<<16|(s&=65535),(v&=65535)<<16|(o&=65535),this.unsigned)},tY.subtract=function(e){return tT(e)||(e=tN(e)),this.add(e.neg())},tY.sub=tY.subtract,tY.multiply=function(e){if(this.isZero())return tF;if(tT(e)||(e=tN(e)),tA)return t_(tA.mul(this.low,this.high,e.low,e.high),tA.get_high(),this.unsigned);if(e.isZero())return tF;if(this.eq(tq))return e.isOdd()?tq:tF;if(e.eq(tq))return this.isOdd()?tq:tF;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(tM)&&e.lt(tM))return tL(this.toNumber()*e.toNumber(),this.unsigned);var r,s,o,u=this.high>>>16,a=65535&this.high,h=this.low>>>16,c=65535&this.low,f=e.high>>>16,l=65535&e.high,p=e.low>>>16,v=65535&e.low,d=0;return o=0+((r=0+((s=0+c*v)>>>16)+h*v)>>>16),r&=65535,o+=(r+=c*p)>>>16,d+=(o+=a*v)>>>16,o&=65535,d+=(o+=h*p)>>>16,o&=65535,d+=(o+=c*l)>>>16,d+=u*v+a*p+h*l+c*f,t_((r&=65535)<<16|(s&=65535),(d&=65535)<<16|(o&=65535),this.unsigned)},tY.mul=tY.multiply,tY.divide=function(e){if(tT(e)||(e=tN(e)),e.isZero())throw y("division by zero");if(tA)return this.unsigned||-0x80000000!==this.high||-1!==e.low||-1!==e.high?t_((this.unsigned?tA.div_u:tA.div_s)(this.low,this.high,e.low,e.high),tA.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?tj:tF;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return tj;if(e.gt(this.shru(1)))return tB;o=tj}else{if(this.eq(tq))return e.eq(tH)||e.eq(tV)?tq:e.eq(tq)?tH:(r=this.shr(1).div(e).shl(1)).eq(tF)?e.isNegative()?tH:tV:(s=this.sub(e.mul(r)),o=r.add(s.div(e)));if(e.eq(tq))return this.unsigned?tj:tF;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=tF}for(s=this;s.gte(e);){r=b.max(1,b.floor(s.toNumber()/e.toNumber()));for(var r,s,o,u=b.ceil(b.log(r)/b.LN2),a=u<=48?1:tP(2,u-48),h=tL(r),c=h.mul(e);c.isNegative()||c.gt(s);)c=(h=tL(r-=a,this.unsigned)).mul(e);h.isZero()&&(h=tH),o=o.add(h),s=s.sub(c)}return o},tY.div=tY.divide,tY.modulo=function(e){return tT(e)||(e=tN(e)),tA?t_((this.unsigned?tA.rem_u:tA.rem_s)(this.low,this.high,e.low,e.high),tA.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},tY.mod=tY.modulo,tY.rem=tY.modulo,tY.not=function(){return t_(~this.low,~this.high,this.unsigned)},tY.and=function(e){return tT(e)||(e=tN(e)),t_(this.low&e.low,this.high&e.high,this.unsigned)},tY.or=function(e){return tT(e)||(e=tN(e)),t_(this.low|e.low,this.high|e.high,this.unsigned)},tY.xor=function(e){return tT(e)||(e=tN(e)),t_(this.low^e.low,this.high^e.high,this.unsigned)},tY.shiftLeft=function(e){return tT(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?t_(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):t_(0,this.low<<e-32,this.unsigned)},tY.shl=tY.shiftLeft,tY.shiftRight=function(e){return tT(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?t_(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):t_(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},tY.shr=tY.shiftRight,tY.shiftRightUnsigned=function(e){if(tT(e)&&(e=e.toInt()),0==(e&=63))return this;var r=this.high;return e<32?t_(this.low>>>e|r<<32-e,r>>>e,this.unsigned):t_(32===e?r:r>>>e-32,0,this.unsigned)},tY.shru=tY.shiftRightUnsigned,tY.shr_u=tY.shiftRightUnsigned,tY.toSigned=function(){return this.unsigned?t_(this.low,this.high,!1):this},tY.toUnsigned=function(){return this.unsigned?this:t_(this.low,this.high,!0)},tY.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},tY.toBytesLE=function(){var e=this.high,r=this.low;return[255&r,r>>>8&255,r>>>16&255,r>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},tY.toBytesBE=function(){var e=this.high,r=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,r>>>24,r>>>16&255,r>>>8&255,255&r]},tx.fromBytes=function(e,r,s){return s?tx.fromBytesLE(e,r):tx.fromBytesBE(e,r)},tx.fromBytesLE=function(e,r){return new tx(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,r)},tx.fromBytesBE=function(e,r){return new tx(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],r)};var t$=b.pow(2,-52);function tJ(e,r,s){return b.min(b.max(e,r),s)}function tQ(e,r,s){return e===r||b.abs(e-r)<=s}function tG(e,r){if(e===r)return!0;var s=b.abs(e-r);return s<t$||s<b.max(b.abs(e),b.abs(r))*t$}function tK(e,r){return e===r||e!=e&&r!=r}function tz(e,r){for(var s=e,o=r;0!==o;){var u=s%o;s=o,o=u}return s<0?-s:s}function tZ(e){return!A(e.getTime())}function t0(){return Date.now()||(new Date).getTime()}var t1,t2=1/6,t3=tx.fromNumber(0x1fffffffffffff);function t5(e,r){if(0===r)return e.isZero()?NaN:e.isNegative()?-1/0:1/0;
1if(e.lessThanOrEqual(t3))return e.toNumber()/r;var s=e.divide(r),o=e.subtract(s.multiply(r));return s.toNumber()+o.toNumber()/r}function t4(e){return e.Qu===t1.Zu}function t6(e){return e.Qu===t1.Ku}function t8(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(eB=t1||(t1={}))[eB.Zu=1]="Zu",eB[eB.Ju=2]="Ju",eB[eB.Ku=3]="Ku",eB[eB.$u=4]="$u",eB[eB.ns=9]="ns";var t7=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];y.apply(this,r)};(t7.prototype=w.create(y.prototype)).constructor=t7;var t9=function(e){function r(r,s){var o;return(o=e.call(this)||this).cause=void 0,o.message=r||"Unknown error",o.cause=s,y.captureStackTrace&&y.captureStackTrace(t8(o),o.constructor),o}return j(r,e),M(r,[{key:"name",get:function(){return"BaseError"}}]),r}(t7),et=function(e){function r(r){return e.call(this,"Invalid XML",r)||this}return j(r,e),r}(t9),ee=function(){function e(){}return e.prototype.rs=function(e){var r,s=new DOMParser;try{r=s.parseFromString(e,"text/xml")}catch(e){throw new et(e)}if(!r||r.getElementsByTagName("parsererror").length>0)throw new et;return new ea(r)},e}(),en=function(){function e(e){this.us=void 0,this.us=e}var r=e.prototype;return r.hs=function(e){return this.us.isEqualNode(e.us)},r.fs=function(r){return new e(this.us.cloneNode(r))},M(e,[{key:"Qu",get:function(){return t1.Ju}},{key:"vs",get:function(){var e;return null!=(e=this.us.localName)?e:ec(this.us.nodeName)}},{key:"ds",get:function(){return this.us.nodeName}},{key:"ls",get:function(){var e;return null!=(e=this.us.namespaceURI)?e:void 0}},{key:"_s",get:function(){var e;return null!=(e=this.us.prefix)?e:void 0}},{key:"gs",get:function(){return this.us.nodeValue}}]),e}(),ei=function(){function e(e){this.ys=void 0,this.As=void 0,this.ys=e}var r=e.prototype;return r.Ts=function(e){return this.Es.filter(function(r){return eh(r)&&r.Ss===e})},r.Is=function(e,r){return this.Es.filter(function(s){return eh(s)&&s.vs===r&&s.ls===e})},r.Rs=function(e){this.ys.appendChild(e.Ns),this.As&&this.As.push(e)},r.hs=function(e){return this.ys.isEqualNode(e.Ns)},M(e,[{key:"Es",get:function(){return void 0===this.As&&(this.As=function(e){for(var r=[],s=0;s<e.length;s++){var o=function(e){switch(e.nodeType){case t1.Zu:return new er(e);case t1.Ku:return new eo(e);case t1.$u:return new eu(e)}}(e.item(s));o&&r.push(o)}return r}(this.ys.childNodes)),this.As}},{key:"Ds",get:function(){return this.Es.filter(eh)}},{key:"Ns",get:function(){return this.ys}}]),e}(),er=function(e){function r(r){return e.call(this,r)||this}j(r,e);var s=r.prototype;return s.Cs=function(e){if(this.ys.hasAttribute(e))return this.ys.getAttribute(e)},s.Ps=function(e,r){if(this.ys.hasAttributeNS(e,r))return this.ys.getAttributeNS(e,r)},s.Bs=function(e){this.ys.removeAttribute(e)},s.Os=function(e,r){this.ys.removeAttributeNS(e,r)},s.Ls=function(e,r){this.ys.setAttribute(e,r)},s.Ms=function(e,r,s){this.ys.setAttributeNS(e,r,s)},s.fs=function(e){return new r(this.ys.cloneNode(e))},M(r,[{key:"Qu",get:function(){return t1.Zu}},{key:"vs",get:function(){var e;return null!=(e=this.ys.localName)?e:ec(this.ys.nodeName)}},{key:"ls",get:function(){var e;return null!=(e=this.ys.namespaceURI)?e:void 0}},{key:"_s",get:function(){var e;return null!=(e=this.ys.prefix)?e:void 0}},{key:"Ss",get:function(){return this.ys.nodeName}},{key:"xs",get:function(){for(var e=this.ys.attributes,r=[],s=0;s<e.length;s++)r.push(new en(e.item(s)));return r}},{key:"Us",get:function(){return this.ys.textContent}}]),r}(ei),es=function(){function e(e){this.ys=void 0,this.ys=e}return e.prototype.hs=function(e){return this.Fs===e.Fs},M(e,[{key:"Fs",get:function(){return this.ys.nodeValue}},{key:"Ns",get:function(){return this.ys}}]),e}(),eo=function(e){function r(r){return e.call(this,r)||this}return j(r,e),r.prototype.fs=function(e){return new r(this.ys.cloneNode(e))},M(r,[{key:"Qu",get:function(){return t1.Ku}}]),r}(es),eu=function(e){function r(r){return e.call(this,r)||this}return j(r,e),r.prototype.fs=function(e){return new r(this.ys.cloneNode(e))},M(r,[{key:"Qu",get:function(){return t1.$u}}]),r}(es),ea=function(e){function r(r){return e.call(this,r)||this}return j(r,e),r.prototype.fs=function(e){return new r(this.ys.cloneNode(e))},M(r,[{key:"Qu",get:function(){return t1.ns}},{key:"Hs",get:function(){return new er(this.ys.documentElement)}}]),r}(ei);function eh(e){return t4(e)}function ec(e){var r=e.indexOf(":");return r<0?e:e.substr(r+1)}function ef(e,r){for(var s=0;s<r.length;s++){var o=r[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),w.defineProperty(e,o.key,o)}}function el(e,r,s,o){var u,a,h,c,f,l=e.length,p=0,v=2*s;for(u=0;
1u<l;u+=v)for(h=(a=u+s)+s,a>l&&(a=l),h>l&&(h=l),c=u,f=a;;)if(c<a&&f<h)0>=r(e[c],e[f])?o[p++]=e[c++]:o[p++]=e[f++];else if(c<a)o[p++]=e[c++];else{if(!(f<h))break;o[p++]=e[f++]}}var ep=/[a-zA-Z]/,ev=/[0-9]/,ed=/[0-9a-fA-F]/,ey=/^0x/i,eg=/^[0-9]+$/,em=/^[0-9a-fA-F]+$/,ew=/^[0-7]+$/,eb=w.prototype.toString,ek=Array.isArray||function(e){return"[object Array]"===eb.call(e)},eE="u">typeof Symbol&&"symbol"==typeof Symbol.iterator;function eA(e){return ek(e)?e:Array.from(e)}function ex(e){return e>=65&&e<=90}function eT(e){return ex(e)||e>=97&&e<=122}function eC(e){return e>=48&&e<=57}function eS(e){return eC(e)||e>=65&&e<=70||e>=97&&e<=102}function eR(e){return ex(e)?e+32:e}function eL(e){return eC(e)?e-48:e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:-1}function e_(e,r){return void 0===r&&(r=!1),0<=e&&e<=9?e+48:10<=e&&e<=15?e+(r?87:55):-1}var eP=b.min,eI=String.fromCharCode;function eN(e){for(var r=e.length,s=[],o=0;o<r;o+=16384){var u=eP(o+16384,r);s.push(eI.apply(null,e.slice(o,u)))}return s.join("")}var eO=/[^\0-\x7E]/,eD=/[\x2E\u3002\uFF0E\uFF61]/g,eU={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},eM=b.floor,eF=String.fromCharCode;function ej(e){throw RangeError(eU[e])}function eH(e){for(var r=[],s=0,o=e.length;s<o;){var u=e.charCodeAt(s++);if(u>=55296&&u<=56319&&s<o){var a=e.charCodeAt(s++);56320==(64512&a)?r.push(((1023&u)<<10)+(1023&a)+65536):(r.push(u),s--)}else r.push(u)}return r}var eB,eV,eX,eW,eq=function(e,r){return e+22+75*(e<26)-((0!=r)<<5)},eY=function(e,r,s){var o=0;for(e=s?eM(e/700):e>>1,e+=eM(e/r);e>455;o+=36)e=eM(e/35);return eM(o+36*e/(e+38))},e$=function(e){var r,s,o,u;return r=e,s=function(e){return eO.test(e)?"xn--"+function(e){for(var r=[],s=(e=eH(e)).length,o=128,u=0,a=72,h=0,c=e;h<c.length;h++){var f=c[h];f<128&&r.push(eF(f))}var l=r.length,p=l;for(l&&r.push("-");p<s;){for(var v=0x7fffffff,d=0,y=e;d<y.length;d++){var g=y[d];g>=o&&g<v&&(v=g)}var m=p+1;v-o>eM((0x7fffffff-u)/m)&&ej("overflow"),u+=(v-o)*m,o=v;for(var w=0,b=e;w<b.length;w++){var k=b[w];if(k<o&&++u>0x7fffffff&&ej("overflow"),k==o){for(var E=u,A=36;;A+=36){var x=A<=a?1:A>=a+26?26:A-a;if(E<x)break;var T=E-x,C=36-x;r.push(eF(eq(x+T%C,0))),E=eM(T/C)}r.push(eF(eq(E,0))),a=eY(u,m,p==l),u=0,++p}}++u,++o}return r.join("")}(e):e},o=r.split("@"),u="",o.length>1&&(u=o[0]+"@",r=o[1]),u+(function(e,r){for(var s=[],o=e.length;o--;)s[o]=r(e[o]);return s})((r=r.replace(eD,".")).split("."),s).join(".")};function eJ(e){for(var r=[],s=0;s<e.length;s++){var o=e[s];o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o)}return eN(r)}function eQ(e){if(e>=55296&&e<=57343)throw new y("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function eG(e,r){return e>>r&63|128}function eK(e){for(var r,s=[],o=0;o<e.length;o++)r=e[o],0!=(0xffffff80&r)?(0==(0xfffff800&r)?s.push(r>>6&31|192):0==(0xffff0000&r)?(eQ(r),s.push(r>>12&15|224),s.push(eG(r,6))):0==(0xffe00000&r)&&(s.push(r>>18&7|240),s.push(eG(r,12)),s.push(eG(r,6))),s.push(63&r|128)):s.push(r);return s}function ez(){if(eW>=eX)throw new y("Invalid byte index");var e=255&eV[eW];if(eW++,128==(192&e))return 63&e;throw new y("Invalid continuation byte")}function eZ(e){return[37,e_(e>>4),e_(15&e)]}function e0(e){return e>=0&&e<=31||e>126}function e1(e){return e0(e)||32===e||34===e||60===e||62===e||96===e}function e2(e){return e1(e)||35===e||63===e||123===e||125===e}function e3(e){return e2(e)||47===e||58===e||59===e||61===e||64===e||e>=91&&e<=94||124===e}function e5(e){return e<33||e>126||34===e||35===e||60===e||62===e}function e4(e){return e5(e)||39===e}function e6(e,r){if(!r(e))return[e];for(var s=eK([e]),o=[],u=0;u<s.length;u++){var a=s[u];o.push.apply(o,eZ(a))}return o}function e8(e,r){for(var s=[],o=0,u=eH(e);o<u.length;o++){var a=u[o];s.push.apply(s,e6(a,r))}return eJ(s)}function e7(e){return eJ(function(e){eX=(eV=e.slice()).length,eW=0;for(var r,s=[];!1!==(r=function(){var e,r;if(eW>eX)throw new y("Invalid byte index");if(eW===eX)return!1;if(e=255&eV[eW],eW++,0==(128&e))return e;if(192==(224&e)){if((r=(31&e)<<6|ez())>=128)return r;throw new y("Invalid continuation byte")}if(224==(240&e)){if((r=(15&e)<<12|ez()<<6|ez())>=2048)return eQ(r),r;throw new y("Invalid continuation byte")}if(240==(248&e)&&(r=(7&e)<<18|ez()<<12|ez()<<6|ez())>=65536&&r<=1114111)return r;throw new y("Invalid UTF-8 detected")}());)s.push(r);return s}(function(e){for(var r=[],s=e.length,o=0;o<s;o++){var u=e[o];if(37===u&&o+2<s&&eS(e[o+1])&&eS(e[o+2])){var a=eL(e[o+1])<<4|eL(e[o+2]);r.push(a),o+=2}else r.push(u)}return r}(eK(eH(e)))))}var e9={Xs:4},nt=/[\0\t\n\r #%/:?@\[\\\]]/,ne=/[\0\t\n\r #/:?@\[\\\]]/;function nn(e,r){if("["===e[0]){if("]"!==e[e.length-1])throw new g("Invalid IPv6 address");return{Xs:2,Vs:function(e){var r,s,o,u=e.length,a=[0,0,0,0,0,0,0,0],h=0,c=null,f=0;
1if(0<u&&":"===e[f]){if(!(f+1<u&&":"===e[f+1]))throw new g;f+=2,c=h+=1}for(;f<u;){if(8===h)throw new g("Too many groups");if(":"!==e[f]){for(var l=0,p=0;p<4&&f<u&&ed.test(e[f]);)l=l<<4|k(e[f],16),f+=1,p+=1;if("."===e[f]){if(0===p||(f-=p,h>6))throw new g;for(var v=0;f<u;){var d=null;if(v>0){if(!("."===e[f]&&v<4))throw new g;f+=1}if(!ev.test(e[f]))throw new g;for(;f<u&&ev.test(e[f]);){var y=k(e[f],10);if(null===d)d=y;else if(0===d||(d=10*d+y)>255)throw new g;f+=1}a[h]=a[h]<<8|d,2!==(v+=1)&&4!==v||(h+=1)}if(4!==v)throw new g;break}if(":"===e[f]){if((f+=1)===u)throw new g}else if(f<u)throw new g;a[h]=l,h+=1}else{if(null!==c)throw new g("Too many :: groups");f+=1,c=h+=1}}if(null!==c){var m=h-c;for(h=7;0!==h&&m>0;)s=c+m-1,o=void 0,o=a[r=h],a[r]=a[s],a[s]=o,h-=1,m-=1}else if(8!==h)throw new g;return a}(e.slice(1,-1))}}if(!r){if(ne.test(e))throw new g("Invalid code point in opaque host");var s=e8(e,e0);return""===s?e9:{Xs:3,Wr:s}}var o=e$(e7(e).toLowerCase());if(nt.test(o))throw new g("Invalid code point in host");var u=function(e){var r=e.split(".");if(""===r[r.length-1]&&r.pop(),!(r.length>4)){for(var s=[],o=0;o<r.length;o++){var u=r[o];if(""===u)return;var a=function(e){var r=10,s=eg;return ey.test(e)?(e=e.slice(2),r=16,s=em):e.length>=2&&"0"===e[0]&&(e=e.slice(1),r=8,s=ew),""===e?0:s.test(e)?k(e,r):void 0}(u);if(void 0===a)return;s.push(a)}for(var h=0;h<s.length-1;h++)if(s[h]>255)throw new g;if(s[s.length-1]>=b.pow(256,5-s.length))throw new g;for(var c=s.pop(),f=0;f<s.length;f++)c+=s[f]*b.pow(256,3-f);return c}}(o);return void 0!==u?{Xs:1,Vs:u}:""===o?e9:{Xs:0,Ws:o}}function ni(e){switch(e.Xs){case 0:return e.Ws;case 1:return function(e){for(var r=[],s=e,o=1;o<=4;o++)r.push(""+(255&s)),4!==o&&r.push("."),s>>>=8;return r.reverse().join("")}(e.Vs);case 2:return"["+function(e){for(var r="",s=function(e){for(var r=0,s=0,o=0,u=0,a=0;a<8;a++)0===e[a]?(0===u&&(o=a),u++):(u>s&&(r=o,s=u),u=0);return u>s&&(r=o,s=u),s>1?r:null}(e),o=!1,u=0;u<8;u++){if(o){if(0===e[u])continue;o=!1}s!==u?(r+=e[u].toString(16),7!==u&&(r+=":")):(r+=0===u?"::":":",o=!0)}return r}(e.Vs)+"]";case 3:return e.Wr;case 4:return""}}var nr=/\+/g;function ns(e){for(var r=e.split("&"),s=[],o=0;o<r.length;o++){var u=r[o];if(""!==u){var a=u.indexOf("="),h=void 0,c=void 0;-1!==a?(h=u.slice(0,a),c=u.slice(a+1)):(h=u,c=""),h=h.replace(nr," "),c=c.replace(nr," ");var f=e7(h),l=e7(c);s.push([f,l])}}return s}function no(e){for(var r="",s=0;s<e.length;s++){var o=e[s];s>0&&(r+="&"),r+=nu(eK(eH(o[0])))+"="+nu(eK(eH(o[1])))}return r}function nu(e){for(var r=[],s=0;s<e.length;s++){var o,u=e[s];32===u?r.push(43):42===u||45===u||46===u||95===u||eC(o=u)||eT(o)?r.push(u):r.push.apply(r,eZ(u))}return eN(r)}var na=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function nh(e){var r=""+e,s=na.exec(r);return s?function(e,r){for(var s=e.length,o=[],u=r;u<s;u++){var a=e.charCodeAt(u);if(nf(a))if(nl(a)||u===s-1)o.push(nc);else{var h=e.charCodeAt(u+1);nl(h)?(o.push(a,h),u++):o.push(nc)}else o.push(a)}return e.slice(0,r)+eN(o)}(r,s.index):r}var nc=65533,nf=function(e){return 55296==(63488&e)},nl=function(e){return 0!=(1024&e)};function np(e,r){var s=e[0],o=r[0];return s===o?0:s<o?-1:1}function nv(e){e.qs.length=0}function nd(e,r){!function(e,r){for(var s=0;s<r.length;s++)e[s]=r[s];e.length=r.length}(e.qs,ns(r))}function ny(e){if(e.Gs){var r=no(e.qs);""===r&&(r=null),e.Gs.Gs.zs=r}}var ng=function(){function e(e){if(void 0===e&&(e=void 0),this.Gs=null,null==e)this.qs=[];else if("object"==typeof e||"function"==typeof e)if((s=e)instanceof ng&&ek(s.qs)&&(!eE||s[Symbol.iterator]===nm))this.qs=e.qs.slice();else{var r;if(null!=(r=e)&&(ek(r)||eE&&"function"==typeof r[Symbol.iterator])){this.qs=[];for(var s,o=0,u=eA(e);o<u.length;o++){var a=eA(u[o]);if(2!==a.length)throw new g("Invalid name-value pair");this.qs.push([nh(a[0]),nh(a[1])])}}else for(var h in this.qs=[],e)w.prototype.hasOwnProperty.call(e,h)&&this.qs.push([nh(h),nh(e[h])])}else(e=nh(e)).length>0&&"?"===e[0]&&(e=e.slice(1)),this.qs=ns(e)}var r=e.prototype;return r.append=function(e,r){e=nh(e),r=nh(r),this.qs.push([e,r]),ny(this)},r.delete=function(e){e=nh(e);for(var r=this.qs,s=0;s<r.length;)r[s][0]===e?r.splice(s,1):s++;ny(this)},r.get=function(e){e=nh(e);for(var r=this.qs,s=0;s<r.length;s++){var o=r[s];if(o[0]===e)return o[1]}return null},r.getAll=function(e){e=nh(e);for(var r=this.qs,s=[],o=0;o<r.length;o++){var u=r[o];u[0]===e&&s.push(u[1])}return s},r.has=function(e){e=nh(e);for(var r=this.qs,s=0;s<r.length;s++)if(r[s][0]===e)return!0;return!1},r.set=function(e,r){e=nh(e),r=nh(r);for(var s=this.qs,o=!1,u=0;u<s.length;){var a=s[u];a[0]===e?o?s.splice(u,1):(a[1]=r,o=!0,u++):u++}o||s.push([e,r]),ny(this)},r.sort=function(){var e,r;(r=function(e,r){var s=e.length;if(s<=1)return e;for(var o=Array(s),u=1;u<s;u*=2){el(e,r,u,o);var a=e;e=o,o=a}return e}(e=this.qs,np))!==e&&el(r,null,e.length,e),ny(this)},r.toString=function(){return no(this.qs)},r.entries=function(){return new nE(this.qs,nw)},r.keys=function(){return new nE(this.qs,nb)},r.values=function(){return new nE(this.qs,nk)},r.forEach=function(e){var r=this;
1this.qs.forEach(function(s){return e(s[1],s[0],r)})},e}(),nm=ng.prototype.entries;eE&&(ng.prototype[Symbol.iterator]=nm);var nw=function(e){return[e[0],e[1]]},nb=function(e){return e[0]},nk=function(e){return e[1]},nE=function(){function e(e,r){this.js=0,this.qs=e,this.Ys=r}return e.prototype.next=function(){return this.js<this.qs.length?{done:!1,value:this.Ys(this.qs[this.js++])}:{done:!0,value:void 0}},e}(),nA="null",nx=w.create(null);nx.ftp=21,nx.file=0,nx.gopher=70,nx.http=80,nx.https=443,nx.ws=80,nx.wss=443;var nT=/^(?:\.|%2e)$/i,nC=/^(?:\.|%2e){2}$/i;function nS(e){return void 0!==nx[e]}function nR(e){return nS(e.Qs)}function nL(e){return""!==e.Zs||""!==e.Ks}function n_(e){var r=e.length;if(!(r>=2)||!nI(e.slice(0,2)))return!1;if(2!==r){var s=e[2];if(47!==s&&92!==s&&63!==s&&35!==s)return!1}return!0}function nP(e){return 2===e.length&&ep.test(e[0])&&(":"===e[1]||"|"===e[1])}function nI(e){return 2===e.length&&nP(eN(e))}function nN(e){return nP(e)&&":"===e[1]}function nO(e){var r=e.Js;0!==r.length&&("file"===e.Qs&&1===r.length&&nN(r[0])||r.pop())}function nD(e){return null===e.$s||e9===e.$s||e.uo||"file"===e.Qs}var nU=/\t|\n|\r/g,nM=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function nF(e,r,s,o){void 0===s&&(s=null),void 0===o&&(o=null),s||(s=new nH,e=e.replace(nM,""));var u=null!==o?o:0;r=r||null;for(var a=[],h=!1,c=!1,f=!1,l=eH(e=e.replace(nU,"")),p=l.length,v=0;v<=p;){var d=v<p?l[v]:-1;switch(u){case 0:if(!eT(d)){if(null===o){a.length=0,u=2;continue}throw new g("Invalid scheme")}a.push(eR(d)),u=1;break;case 1:if(eC(d)||eT(d)||43===d||45===d||46===d)a.push(eR(d));else{if(58!==d){if(null===o){a.length=0,u=2,v=0;continue}throw new g("Invalid scheme")}var y=eJ(a);if(null!==o&&(nS(s.Qs)&&!nS(y)||!nS(s.Qs)&&nS(y)||(nL(s)||null!==s.oo)&&"file"===y||"file"===s.Qs&&(s.$s===e9||null===s.$s)))return;if(s.Qs=y,null!==o)return void(nR(s)&&s.oo===nx[s.Qs]&&(s.oo=null));a.length=0,"file"===s.Qs?u=13:nR(s)&&r&&r.Qs===s.Qs?u=3:nR(s)?u=7:47===l[v+1]?(u=4,v+=1):(s.uo=!0,s.Js.push(""),u=18)}break;case 2:if(!r||r.uo&&35!==d)throw new g("Invalid scheme");r.uo&&35===d?(s.Qs=r.Qs,s.Js=r.Js.slice(),s.zs=r.zs,s.ao="",s.uo=!0,u=20):(u="file"!==r.Qs?5:13,v-=1);break;case 3:47===d&&47===l[v+1]?u=8:(u=5,v-=1);break;case 4:47===d?u=9:(u=17,v-=1);break;case 5:s.Qs=r.Qs,-1===d?(s.Zs=r.Zs,s.Ks=r.Ks,s.$s=r.$s,s.oo=r.oo,s.Js=r.Js.slice(),s.zs=r.zs):47===d?u=6:63===d?(s.Zs=r.Zs,s.Ks=r.Ks,s.$s=r.$s,s.oo=r.oo,s.Js=r.Js.slice(),s.zs="",u=19):35===d?(s.Zs=r.Zs,s.Ks=r.Ks,s.$s=r.$s,s.oo=r.oo,s.Js=r.Js.slice(),s.zs=r.zs,s.ao="",u=20):92===d&&nR(s)?u=6:(s.Zs=r.Zs,s.Ks=r.Ks,s.$s=r.$s,s.oo=r.oo,s.Js=r.Js.slice(),s.Js.pop(),u=17,v-=1);break;case 6:nR(s)&&(47===d||92===d)?u=8:47===d?u=9:(s.Zs=r.Zs,s.Ks=r.Ks,s.$s=r.$s,s.oo=r.oo,u=17,v-=1);break;case 7:if(47!==d||47!==l[v+1]){u=8;continue}u=8,v+=1;break;case 8:47!==d&&92!==d&&(u=9,v-=1);break;case 9:if(64===d){h&&a.unshift(37,52,48),h=!0;for(var m=0;m<a.length;m++){var w=a[m];if(58!==w||f){var b=eJ(e6(w,e3));f?s.Ks+=b:s.Zs+=b}else f=!0}a.length=0}else if(-1===d||47===d||63===d||35===d||nR(s)&&92===d){if(h&&0===a.length)throw new g("Invalid host");v-=a.length+1,a.length=0,u=10}else a.push(d);break;case 10:case 11:if(null!==o&&"file"===s.Qs)v-=1,u=15;else if(58!==d||c)if(-1===d||47===d||63===d||35===d||nR(s)&&92===d){if(v-=1,nR(s)&&0===a.length)throw new g("Invalid host");if(null!==o&&0===a.length&&(nL(s)||null!==s.oo))return;var E=nn(eJ(a),nR(s));if(s.$s=E,a.length=0,u=16,null!==o)return}else 91===d?c=!0:93===d&&(c=!1),a.push(d);else{if(0===a.length)throw new g("Invalid host");var A=nn(eJ(a),nR(s));if(s.$s=A,a.length=0,u=12,11===o)return}break;case 12:if(eC(d))a.push(d);else{if(!(-1===d||47===d||63===d||35===d||nR(s)&&92===d||null!==o))throw new g("Invalid port");if(0!==a.length){var x=k(eJ(a),10);if(x>65535)throw new g("Invalid port");s.oo=x===nx[s.Qs]?null:x,a.length=0}if(null!==o)return;u=16,v-=1}break;case 13:s.Qs="file",47===d||92===d?u=14:r&&"file"===r.Qs?-1===d?(s.$s=r.$s,s.Js=r.Js.slice(),s.zs=r.zs):63===d?(s.$s=r.$s,s.Js=r.Js.slice(),s.zs="",u=19):35===d?(s.$s=r.$s,s.Js=r.Js.slice(),s.zs=r.zs,s.ao="",u=20):(n_(l.slice(v))||(s.$s=r.$s,s.Js=r.Js.slice(),nO(s)),u=17,v-=1):(u=17,v-=1);break;case 14:47===d||92===d?u=15:(r&&"file"===r.Qs&&!n_(l.slice(v))&&(nN(r.Js[0])?s.Js.push(r.Js[0]):s.$s=r.$s),u=17,v-=1);break;case 15:if(-1===d||47===d||92===d||63===d||35===d)if(v-=1,null===o&&nI(a))u=17;else if(0===a.length){if(s.$s=e9,null!==o)return;u=16}else{var T=nn(eJ(a),nR(s));if(0===T.Xs&&"localhost"===T.Ws&&(T=e9),s.$s=T,null!==o)return;a.length=0,u=16}else a.push(d);break;case 16:nR(s)?(u=17,47!==d&&92!==d&&(v-=1)):null===o&&63===d?(s.zs="",u=19):null===o&&35===d?(s.ao="",u=20):-1!==d&&(u=17,47!==d&&(v-=1));break;case 17:if(-1===d||47===d||nR(s)&&92===d||null===o&&(63===d||35===d)
1){var C,S,R,L=eJ(a);if((C=L,nC.test(C))?(nO(s),47===d||nR(s)&&92===d||s.Js.push("")):(S=L,!nT.test(S)||47===d||nR(s)&&92===d)?(R=L,nT.test(R)||("file"===s.Qs&&0===s.Js.length&&nI(a)&&(e9!==s.$s&&null!==s.$s&&(s.$s=e9),a[1]=58,L=eJ(a)),s.Js.push(L))):s.Js.push(""),a.length=0,"file"===s.Qs&&(-1===d||63===d||35===d))for(;s.Js.length>1&&""===s.Js[0];)s.Js.shift();63===d?(s.zs="",u=19):35===d&&(s.ao="",u=20)}else a.push.apply(a,e6(d,e2));break;case 18:63===d?(s.zs="",u=19):35===d?(s.ao="",u=20):-1!==d&&(s.Js[0]+=eJ(e6(d,e0)));break;case 19:null===o&&35===d?(s.ao="",u=20):-1!==d&&(s.zs+=eJ(e6(d,nR(s)?e4:e5)));break;case 20:-1===d||0===d||(s.ao+=eJ(e6(d,e1)))}v++}return s}function nj(e,r,s,o){try{nF(e,r,s,o)}catch(e){}}var nH=function(){this.Qs="",this.Zs="",this.Ks="",this.$s=null,this.oo=null,this.Js=[],this.zs=null,this.ao=null,this.uo=!1},nB=function(){function e(e,r){var s,o,u=null;if(null!=r)if(null!=r&&r instanceof nB&&"object"==typeof r.Gs)u=r.Gs;else try{u=nF(String(r),null)}catch(e){throw new g("Invalid base URL: "+e.message)}try{o=nF(String(e),u)}catch(e){throw new g("Invalid URL: "+e.message)}var a=o.zs;this.Gs=o,this.zs=(s=new ng,null!==a&&nd(s,a),s),this.zs.Gs=this}var r,s,o=e.prototype;return o.toString=function(){return this.href},o.toJSON=function(){return this.href},r=[{key:"href",get:function(){return function(e,r){void 0===r&&(r=!1);var s=e.Qs+":";if(null!==e.$s?(s+="//",nL(e)&&(s+=e.Zs,""!==e.Ks&&(s+=":"+e.Ks),s+="@"),s+=ni(e.$s),null!==e.oo&&(s+=":"+e.oo)):null===e.$s&&"file"===e.Qs&&(s+="//"),e.uo)s+=e.Js[0];else for(var o=0,u=e.Js;o<u.length;o++)s+="/"+u[o];
1return null!==e.zs&&(s+="?"+e.zs),r||null===e.ao||(s+="#"+e.ao),s}(this.Gs)},set:function(e){try{r=nF(String(e),null)}catch(e){throw new g("Invalid URL: "+e.message)}this.Gs=r,nv(this.zs);var r,s=this.Gs.zs;null!==s&&nd(this.zs,s)}},{key:"origin",get:function(){return function e(r){var s,o,u,a;switch(r.Qs){case"blob":try{a=nF(r.Js[0],null)}catch(e){return nA}return e(a);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return s=r.Qs,o=r.$s,u=r.oo,s+"://"+ni(o)+(null===u?"":":"+u);default:return nA}}(this.Gs)}},{key:"protocol",get:function(){return this.Gs.Qs+":"},set:function(e){nj(e+":",null,this.Gs,0)}},{key:"username",get:function(){return this.Gs.Zs},set:function(e){nD(this.Gs)||(this.Gs.Zs=e8(e,e3))}},{key:"password",get:function(){return this.Gs.Ks},set:function(e){nD(this.Gs)||(this.Gs.Ks=e8(e,e3))}},{key:"host",get:function(){var e=this.Gs,r=e.$s;if(null===r)return"";var s=e.oo,o=ni(r);return null!==s&&(o+=":"+s),o},set:function(e){this.Gs.uo||nj(e,null,this.Gs,10)}},{key:"hostname",get:function(){var e=this.Gs.$s;return null===e?"":ni(e)},set:function(e){this.Gs.uo||nj(e,null,this.Gs,11)}},{key:"port",get:function(){var e=this.Gs.oo;return null===e?"":""+e},set:function(e){nD(this.Gs)||(""===e?this.Gs.oo=null:nj(e,null,this.Gs,12))}},{key:"pathname",get:function(){var e=this.Gs.Js;return this.Gs.uo?e[0]:0===e.length?"":"/"+e.join("/")},set:function(e){this.Gs.uo||(this.Gs.Js.length=0,nj(e,null,this.Gs,16))}},{key:"search",get:function(){var e=this.Gs.zs;return null===e||""===e?"":"?"+e},set:function(e){e=nh(e);var r=this.Gs;""===e?(r.zs=null,nv(this.zs)):("?"===e[0]&&(e=e.slice(1)),r.zs="",nj(e,null,r,19),nd(this.zs,e))}},{key:"searchParams",get:function(){return this.zs}},{key:"hash",get:function(){var e=this.Gs.ao;return null===e||""===e?"":"#"+e},set:function(e){""!==e?("#"===e[0]&&(e=e.slice(1)),this.Gs.ao="",nj(e,null,this.Gs,20)):this.Gs.ao=null}}],ef(e.prototype,r),s&&ef(e,s),e}();function nV(e,r,s){return e.split(r).join(s)}function nX(e,r){return null!=e&&-1!==e.indexOf(r)}function nW(e,r){return null!=e&&e.substr(0,r.length)===r}function nq(e,r){return null!=e&&e.substr(e.length-r.length,r.length)===r}function nY(e,r){return e.toUpperCase()===r.toUpperCase()}function n$(e,r){var s=0|r;if(0===e.length||0===s)return"";for(var o=e,u="";1==(1&s)&&(u+=o),0!=(s>>>=1);)o+=o;return u}function nJ(e,r,s){void 0===s&&(s=" ");var o=s,u=(0|r)-e.length;return u<=0?e:(u>o.length&&(o+=n$(o,u/o.length)),o.slice(0,u)+e)}function nQ(e){for(var r=[],s=0;s<e.length;s++){var o=e[s];o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o)}return nG(r)}function nG(e){var r=e.length;if(r<=16384)return String.fromCharCode.apply(String,e);for(var s=[],o=0;o<r;o+=16384)s.push(String.fromCharCode.apply(String,e.slice(o,o+16384)));return s.join("")}function nK(e,r){for(var s=0,o=w.keys(r);s<o.length;s++){var u=o[s];e.searchParams.set(u,r[u])}}function nz(e,r){var s=_.do(e);return r&&!nq(s,"/")&&(s+="/"),s}var nZ,n0,n1,n2,n3,n5,n4,n6=/cache:(.+)?(?=&|$)/;function n8(e){return _._o(e).hostname}function n7(e){return e.document&&e.document.baseURI||e.location.href||""}function n9(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function it(e){var r=e.className;return"string"==typeof r?r:r&&"string"==typeof r.baseVal?r.baseVal:""}function ie(e,r){var s=e.className;"string"==typeof s?e.className=r:s&&"string"==typeof s.baseVal&&(s.baseVal=r)}function ii(e,r){return void 0!==e.classList?e.classList.contains(r):void 0!==e.className&&-1!==(" "+it(e)+" ").indexOf(" "+r+" ")}function ir(e,r){if(void 0!==e.classList)e.classList.add(r);else if(void 0!==e.className){var s=it(e);-1===(" "+s+" ").indexOf(" "+r+" ")&&ie(e,(s+" "+r).trim())}}function is(e,r){if(void 0!==e.classList)e.classList.remove(r);else if(void 0!==e.className){for(var s=" "+it(e)+" ",o=" "+r+" ";-1!==s.indexOf(o);)s=s.replace(o," ");ie(e,s.trim())}}function io(e,r,s){void 0===s&&(s=!ii(e,r)),s?ir(e,r):is(e,r)}function iu(e,r,s){e.display=r,"none"!==e.display&&""!==e.display||(e.display=s)}function ia(e,r){var s=r.style;if(s)for(var o in e)s[o]=e[o]}function ih(e){var r=e.style;r.position="absolute",r.left="0",r.right="0",r.top="0",r.bottom="0",r.width="100%",r.height="100%"}function ic(e){e.removeAttribute("title")}function il(e){return"video"===(e&&e.nodeName&&e.nodeName.toLowerCase()||"")}function ip(e){e.src&&(e.removeAttribute("src"),e.load())}function iv(){return void 0!==h?h.createElement("video"):void 0}function id(){return n4||(n4=iv()),n4}var iy=!!("ontouchstart"in o||o.DocumentTouch&&h instanceof o.DocumentTouch)||!(!f||!f.msMaxTouchPoints),ig=id(),im=!(!ig||!ig.webkitShowPlaybackTargetPicker),iw=function(){function e(){this.mo=void 0,this.po=!1,this.$e=iy,this.pu=!1,this.Ao=!0}var r=e.prototype;return r.To=function(){return 0},r.Eo=function(e,r){return!0},r.So=function(e){return e>=2*t2},M(e,[{key:"Io",get:function(){return void 0===this.mo&&(this.mo=this.To()),this.mo}},{key:"Ro",get:function(){return a.devicePixelRatio||1}},{key:"No",get:function(){return im}},{key:"Do",get:function(){return!1}},{key:"Co",get:function(){return!0}},{key:"Po",get:function(){return Q.Ou}},{key:"Bo",get:function(){return!0}}]),e}(),ib=function(){var e=iv();if(!e)return!1;var r=e.muted;return e.muted=!r,e.muted!==r}(),ik=function(){if(Q._u)return!1;var e=iv();if(!e)return!1;var r=e.volume;return e.volume=r/2+.1,r!==e.volume}(),iE=function(e){function r(r){var s;return(s=e.call(this)||this).Oo=void 0,s.Oo=r,s.Oo&&(s.po=s.Oo.po,s.$e=s.Oo.$e,s.Ao=ib&&s.Oo.Ao),s}j(r,e);var s=r.prototype;return s.To=function(){return this.Oo?this.Oo.Io:e.prototype.To.call(this)},s.Eo=function(r,s){return this.Oo?this.Oo.Eo(r,s):e.prototype.Eo.call(this,r,s)},s.So=function(r){return this.Oo?this.Oo.So(r):e.prototype.So.call(this,r)},r}(iw),iA=function(e){function r(r){var s;return(s=e.call(this,r)||this).po=!0,s.pu=!0,s}return j(r,e),r}(iE),ix=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.To=function(){return n2.MediaSource?e.prototype.To.call(this):1}
1,r}(iA),iT=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.Eo=function(r,s){return!(s.Lo>1920)&&e.prototype.Eo.call(this,r,s)},M(r,[{key:"Do",get:function(){return Q.Su<3}},{key:"Co",get:function(){return Q.Su>=3}}]),r}(iE),iC=function(e){function r(){return e.call(this)||this}return j(r,e),r}(iw),iS=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.Eo=function(e,r){if(e&&e.Mo&&r&&r.Mo){var s=iR(e.Mo,"mp4a.40.2")&&iR(r.Mo,"mp4a.40.5"),o=iR(e.Mo,"mp4a.40.5")&&iR(r.Mo,"mp4a.40.2"),u=iR(e.Mo,"mp4a.40.2")&&iR(r.Mo,"mp4a.40.34"),a=iR(e.Mo,"mp4a.40.34")&&iR(r.Mo,"mp4a.40.2"),h=iR(e.Mo,"mp4a.40.5")&&iR(r.Mo,"mp4a.40.34"),c=iR(e.Mo,"mp4a.40.34")&&iR(r.Mo,"mp4a.40.5");return!(s||o||u||a||h||c)}return!0},r}(iC);function iR(e,r){return e.indexOf(r)>-1}var iL=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.So=function(e){return e>=2},r}(iC),i_=function(e){function r(){var r;return(r=e.call(this)||this).po=Q.Lu>=11,r.Ao=Q.Ou&&!(Q.yu&&Q.Lu<10),r}return j(r,e),r}(iC),iP=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),M(r,[{key:"Bo",get:function(){return!1}}]),r}(iE),iI=function(){function e(){var e;this.xo=void 0,this.Uo=new ee,this.Fo=new iN,this.Ho=(e=Q.Pu?new iS:Q.Ru||Q.Nu?new iL:Q.Ou?new i_:new iC,Q.yu?new ix(e):Q.pu?new iA(e):Q.Eu?new iT(e):Q.Iu?new iP(e):new iE(e)),this.Xo=function(){if(o.URL)try{var e=new o.URL("b","http://a");return e.pathname="c d","http://a/c%20d"===e.href}catch(e){}return!1}(),o.performance&&o.performance.now?this.xo=function(){return o.performance.now()}:this.xo=t0}var r=e.prototype;return r.Vo=function(){tw.apply(void 0,arguments)},r.Wo=function(){tb.apply(void 0,arguments)},r.qo=function(){tk.apply(void 0,arguments)},r.Go=function(e){for(var r=arguments.length,s=Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];tE.apply(void 0,[e].concat(s))},r.Yr=function(e,r){return l(e,r)},r.zo=function(e,r){return v(e,r)},r.jr=function(e){p(e)},r.jo=function(e){d(e)},r.rs=function(e){return this.Uo.rs(e)},r.Yo=function(){return this.Qo.Yo()},r.Zo=function(){return this.Qo.Zo()},r.Ko=function(){return this.Qo.Ko()},r.Jo=function(){return this.Qo.Jo()},r.$o=function(){return this.Qo.$o()},r.ra=function(e,r){return this.Qo.ra(e,r)},r.ea=function(e){return this.Qo.ea(e)},r._o=function(e,r){return void 0===r&&(r=n7(n2)),new nB(e,r)},r.do=function(e,r){if(void 0===r&&(r=n7(n2)),this.Xo){var s=ti(r)?r:r.toString();return new o.URL(e,s).href}return this._o(e,r).href},M(e,[{key:"ua",get:function(){return this.Fo}},{key:"oa",get:function(){return this.Ho}},{key:"va",get:function(){return{_a:f&&f.userAgent.match(/Android /i)?"Android":"other",ya:!!(f&&f.userAgent.match(/Android 8.0.0/i))}}},{key:"ma",get:function(){return o&&o.location&&"https:"===o.location.protocol}}]),e}(),iN=function(){function e(){}return M(e,[{key:"Aa",get:function(){return f.oscpu}},{key:"oa",get:function(){return f.platform}},{key:"Ta",get:function(){return f.vendor}},{key:"Ea",get:function(){return f.vendorSub}}]),e}(),iO=R(function(e){!function(e){var r,s=w.prototype,o=s.hasOwnProperty,u="function"==typeof Symbol?Symbol:{},a=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function f(e,s,o,u){var a,h=s&&s.prototype instanceof k?s:k,c=w.create(h.prototype),f=new N(u||[]);return a=p,c.Sa=function(s,u){if(a===d)throw new y("Generator is already running");if(a===m){if("throw"===s)throw u;return D()}for(f.method=s,f.arg=u;;){var h=f.delegate;if(h){var c=function e(s,o){var u=s.iterator[o.method];if(u===r){if(o.delegate=null,"throw"===o.method){if(s.iterator.return&&(o.method="return",o.arg=r,e(s,o),"throw"===o.method))return b;o.method="throw",o.arg=new g("The iterator does not provide a 'throw' method")}return b}var a=l(u,s.iterator,o.arg);if("throw"===a.type)return o.method="throw",o.arg=a.arg,o.delegate=null,b;var h=a.arg;return h?h.done?(o[s.resultName]=h.value,o.next=s.nextLoc,"return"!==o.method&&(o.method="next",o.arg=r),o.delegate=null,b):h:(o.method="throw",o.arg=new g("iterator result is not an object"),o.delegate=null,b)}(h,f);if(c){if(c===b)continue;return c}}if("next"===f.method)f.sent=f.Ia=f.arg;else if("throw"===f.method){if(a===p)throw a=m,f.arg;
vendor: 4,764 bytes, line 1
1f.dispatchException(f.arg)}else"return"===f.method&&f.abrupt("return",f.arg);a=d;var w=l(e,o,f);if("normal"===w.type){if(a=f.done?m:v,w.arg===b)continue;return{value:w.arg,done:f.done}}"throw"===w.type&&(a=m,f.method="throw",f.arg=w.arg)}},c}function l(e,r,s){try{return{type:"normal",arg:e.call(r,s)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p="suspendedStart",v="suspendedYield",d="executing",m="completed",b={};function k(){}function E(){}function x(){}var T={};T[a]=function(){return this};var C=w.getPrototypeOf,S=C&&C(C(O([])));S&&S!==s&&o.call(S,a)&&(T=S);var R=x.prototype=k.prototype=w.create(T);function L(e){["next","throw","return"].forEach(function(r){e[r]=function(e){return this.Sa(r,e)}})}function _(e){var r;this.Sa=function(s,u){function a(){return new Promise(function(r,a){!function r(s,u,a,h){var c=l(e[s],e,u);if("throw"!==c.type){var f=c.arg,p=f.value;return p&&"object"==typeof p&&o.call(p,"Ra")?Promise.resolve(p.Ra).then(function(e){r("next",e,a,h)},function(e){r("throw",e,a,h)}):Promise.resolve(p).then(function(e){f.value=e,a(f)},function(e){return r("throw",e,a,h)})}h(c.arg)}(s,u,r,a)})}return r=r?r.then(a,a):a()}}function P(e){var r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),this.tryEntries.push(r)}function I(e){var r=e.completion||{};r.type="normal",delete r.arg,e.completion=r}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function O(e){if(e){var s=e[a];if(s)return s.call(e);if("function"==typeof e.next)return e;if(!A(e.length)){var u=-1,h=function s(){for(;++u<e.length;)if(o.call(e,u))return s.value=e[u],s.done=!1,s;return s.value=r,s.done=!0,s};return h.next=h}}return{next:D}}function D(){return{value:r,done:!0}}E.prototype=R.constructor=x,x.constructor=E,x[c]=E.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var r="function"==typeof e&&e.constructor;return!!r&&(r===E||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(e){return w.setPrototypeOf?w.setPrototypeOf(e,x):(e.__proto__=x,c in e||(e[c]="GeneratorFunction")),e.prototype=w.create(R),e},e.awrap=function(e){return{Ra:e}},L(_.prototype),_.prototype[h]=function(){return this},e.AsyncIterator=_,e.async=function(r,s,o,u){var a=new _(f(r,s,o,u));return e.isGeneratorFunction(s)?a:a.next().then(function(e){return e.done?e.value:a.next()})},L(R),R[c]="Generator",R[a]=function(){return this},R.toString=function(){return"[object Generator]"},e.keys=function(e){var r=[];for(var s in e)r.push(s);return r.reverse(),function s(){for(;r.length;){var o=r.pop();if(o in e)return s.value=o,s.done=!1,s}return s.done=!0,s}},e.values=O,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this.Ia=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(I),!e)for(var s in this)"t"===s.charAt(0)&&o.call(this,s)&&!A(+s.slice(1))&&(this[s]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var s=this;function u(o,u){return c.type="throw",c.arg=e,s.next=o,u&&(s.method="next",s.arg=r),!!u}for(var a=this.tryEntries.length-1;a>=0;--a){var h=this.tryEntries[a],c=h.completion;if("root"===h.tryLoc)return u("end");if(h.tryLoc<=this.prev){var f=o.call(h,"catchLoc"),l=o.call(h,"finallyLoc");if(f&&l){if(this.prev<h.catchLoc)return u(h.catchLoc,!0);if(this.prev<h.finallyLoc)return u(h.finallyLoc)}else if(f){if(this.prev<h.catchLoc)return u(h.catchLoc,!0)}else{if(!l)throw new y("try statement without catch or finally");if(this.prev<h.finallyLoc)return u(h.finallyLoc)}}}},abrupt:function(e,r){for(var s=this.tryEntries.length-1;s>=0;--s){var u=this.tryEntries[s];if(u.tryLoc<=this.prev&&o.call(u,"finallyLoc")&&this.prev<u.finallyLoc){var a=u;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var h=a?a.completion:{};return h.type=e,h.arg=r,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(h)},complete:function(e,r){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&r&&(this.next=r),b},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r];if(s.finallyLoc===e)return this.complete(s.completion,s.afterLoc),I(s),b}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r];if(s.tryLoc===e){var o=s.completion;if("throw"===o.type){var u=o.arg;I(s)}return u}}throw new y("illegal catch attempt")},delegateYield:function(e,s,o){return this.delegate={iterator:O(e),resultName:s,nextLoc:o},"next"===this.method&&(this.arg=r),b}}
1}(e.exports)});function iD(){return(iD=w.assign||function(e){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var o in s)w.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(this,arguments)}function iU(){var e=w.create(null);return e.__=void 0,delete e.__,e}function iM(){return new iW}function iF(e){var r=iM();for(var s in e)G.call(e,s)&&r.set(s,e[s]);return r}function ij(e){var r=[];return e.forEach(function(e){return r.push(e)}),r}var iH,iB,iV,iX="u">typeof Map&&"entries"in Map.prototype?Map:void 0,iW=iX||(iH=function(){function e(e,r){this.data=void 0,this.keys=void 0,this.index=0,this.selector=void 0,this.data=e,this.selector=r,this.keys=w.keys(e)}return e.prototype.next=function(){var e=this.index;return e<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[e]),done:!1}):{value:void 0,done:!0}},e}(),function(){function e(){this.data=iU(),this.size=0}var r=e.prototype;return r.get=function(e){return this.data[e]},r.set=function(e,r){return this.has(e)||this.size++,this.data[e]=r,this},r.has=function(e){return e in this.data},r.delete=function(e){return!!this.has(e)&&(this.size--,delete this.data[e],!0)},r.clear=function(){this.data=iU(),this.size=0},r.keys=function(){return new iH(this.data,function(e,r){return r})},r.values=function(){return new iH(this.data,function(e,r){return e[r]})},r.entries=function(){return new iH(this.data,function(e,r){return[r,e[r]]})},r.forEach=function(e){for(var r in this.data)e(this.data[r],r)},e}()),iq=iX||(iB=function(){function e(e,r){this.Da=void 0,this.Ca=void 0,this.Da=e,this.Ca=r}return e.prototype.next=function(){var e=this.Da.next();return e.done?e:{value:this.Ca(e.value),done:!1}},e}(),function(){function e(){this.Pa=iM()}var r=e.prototype;return r.get=function(e){return this.Pa.get(""+e)},r.set=function(e,r){return this.Pa.set(""+e,r),this},r.has=function(e){return this.Pa.has(""+e)},r.delete=function(e){return this.Pa.delete(""+e)},r.clear=function(){this.Pa.clear()},r.keys=function(){return new iB(this.Pa.keys(),function(e){return Number(e)})},r.values=function(){return this.Pa.values()},r.entries=function(){return new iB(this.Pa.entries(),function(e){var r=e[0],s=e[1];return[Number(r),s]})},r.forEach=function(e){this.Pa.forEach(function(r,s){e(r,Number(s))})},M(e,[{key:"size",get:function(){return this.Pa.size}}]),e}()),iY="urn:mpeg:dash:mp4protection:2011",i$="cenc",iJ="sinf",iQ="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",iG="com.microsoft.playready",iK="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",iz="urn:uuid:"+iK,iZ="94ce86fb-07ff-4f43-adb8-93d2fa968ca2",i0="urn:uuid:"+iZ,i1="com.apple.fps.1_0";(rj=iV||(iV={})).Ba="playready",rj.Oa="widevine",rj.La="fairplay",rj.Ma="clearkey",rj.xa="aes128";var i2={Ua:iV.Ba,Fa:iG,Ha:"cenc",Xa:"9a04f079-9840-4286-ab92-e65be0885f95",Va:iQ,Wa:"PlayReady"},i3={Ua:iV.Oa,Fa:"com.widevine.alpha",Ha:"cenc",Xa:iK,Va:iz,Wa:"Widevine"},i5={Ua:iV.La,Fa:i1,Ha:"skd",Xa:iZ,Va:i0,Wa:"FairPlay"},i4={Ua:iV.La,Fa:"com.apple.fps",Ha:"sinf",Xa:iZ,Va:i0,Wa:"FairPlay"},i6={Ua:iV.Ma,Fa:"org.w3.clearkey",Ha:"cenc",Xa:"1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Va:"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Wa:"ClearKey"}
1,i8=[i2,i3,i5,i6];function i7(e){return i8.filter(function(r){return r.Va===e.toLowerCase()})}var i9=Q.bu&&Q.Tu>=42||Q.Pu&&Q.Bu>=38||Q.Ru||Q.Du||Q.Mu&&Q.xu>=29;function rt(e,r){return nX(e,"audio")?{initDataTypes:["cenc"],audioCapabilities:[iD({contentType:e},r?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[iD({contentType:e},r?{robustness:"SW_SECURE_CRYPTO"}:{})]}}function re(){return void 0!==f&&"function"==typeof f.requestMediaKeySystemAccess}function rn(){return"u">typeof HTMLMediaElement&&void 0!==HTMLMediaElement.prototype.webkitGenerateKeyRequest&&void 0!==HTMLMediaElement.prototype.webkitAddKey&&void 0!==HTMLMediaElement.prototype.webkitCancelKeyRequest}var ri=function(){function e(e){this.qa=void 0,this.Ga=iM(),this.Ya=void 0,this.qa=e}var r,s,o=e.prototype;return o.$o=function(){return this.ea(i3)},o.Zo=function(){return this.ea(i6)},o.Jo=function(){return this.ea(i2)},o.Ko=function(){return this.ea(i5)},o.ea=function(e){var r=e.Va,s=this.Ga.get(r);if(s)return s;var o=this.ra(e,'video/mp4; codecs="avc1.42000a"');return this.Ga.set(r,o),o},r=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.qa.Qa(r.Fa,[rt(s,!0)]);case 3:case 11:return e.abrupt("return",!0);case 6:return e.prev=6,e.t0=e.catch(0),e.prev=8,e.next=11,this.qa.Qa(r.Fa,[rt(s,!1)]);case 14:return e.prev=14,e.t1=e.catch(8),e.abrupt("return",!1);case 17:case"end":return e.stop()}},e,this,[[0,6],[8,14]])})),o.ra=function(e,s){return r.apply(this,arguments)},o.Yo=function(){return this.Ya||(this.Ya=this.Za()),this.Ya},s=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("https:"!==n3.protocol){e.next=2;break}return e.abrupt("return",!1);case 2:if(i9){e.next=4;break}return e.abrupt("return",!1);case 4:return e.next=6,this.Zo();case 6:if(!e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}},e,this)})),o.Za=function(){return s.apply(this,arguments)},e}();function rr(e,r){return ro(e.slice(),r)}function rs(e,r){var s=ro(e,r);return s!==e&&ru(s,void 0,e.length,e),e}function ro(e,r){var s=e,o=s.length;if(o<=1)return s;for(var u=Array(o),a=1;a<o;a*=2){ru(s,r,a,u);var h=s;s=u,u=h}return s}function ru(e,r,s,o){var u,a,h,c,f,l=e.length,p=0,v=2*s;for(a=0;a<l;a+=v)for(u=(h=a+s)+s,h>l&&(h=l),u>l&&(u=l),c=a,f=h;;)if(c<h&&f<u)r&&0>=r(e[c],e[f])?o[p++]=e[c++]:o[p++]=e[f++];else if(c<h)o[p++]=e[c++];else{if(!(f<u))break;o[p++]=e[f++]}}function ra(e,r,s){var o=rh(e,r,s);return -1===o?void 0:e[o]}function rh(e,r,s){for(var o=0;o<e.length;o+=1){var u=e[o];if(r.call(s,u,o,e))return o}return -1}function rc(e,r){var s=e.indexOf(r);return -1!==s&&(rf(e,s),!0)}function rf(e,r){e.splice(r,1)}function rl(e,r){return -1!==e.indexOf(r)}function rp(e,r){for(var s=0;s<r.length;s++)if(!rl(e,r[s]))return!1;return!0}function rv(e){e.length=0}function rd(e,r){if(e.length!==r.length)return!1;for(var s=0;s<e.length;s++)if(!rl(r,e[s]))return!1;return!0}function ry(e){var r;return(r=[]).concat.apply(r,e)}function rg(e,r){for(var s=[],o=0;o<e.length;o++){var u=e[o];s.push.apply(s,r(u))}return s}function rm(e,r){if(0!==e.length)return e.reduce(function(e,s){return 0>=r(e,s)?e:s})}function rw(e,r){return rm(e,function(e,s){return r(s,e)})}function rb(e){for(var r=[],s=0;s<e.length;s++){for(var o=!0,u=s+1;u<e.length;u++)if(e[s]===e[u]){o=!1;break}o&&r.push(e[s])}return r}var rk=function(){function e(){this.Ka=!1,this.Ja=!1,this.$a=[],this.nh=[]}var r=e.prototype;return r.ih=function(){if(!this.Ka&&!this.Ja){this.Ka=!0;for(var e=0,r=this.$a.slice();e<r.length;e++)(0,r[e])();this.rh()}},r.rh=function(){if(!this.Ja){this.Ja=!0;for(var e=0,r=this.nh.slice();e<r.length;e++)(0,r[e])();rv(this.$a),rv(this.nh)}},r.eh=function(e){this.Ja||this.$a.push(e)},r.uh=function(e){this.Ja||rc(this.$a,e)},r.sh=function(e){this.Ja||this.nh.push(e)},r.oh=function(e){this.Ja||rc(this.nh,e)},e}(),rE=function(){function e(){this.ah=new rk}var r=e.prototype;return r.hh=function(){this.ah.ih()},r.rh=function(){this.ah.rh()},r.fh=function(e){var r=this.ah;if(!r.Ka){if(e.Ka)r.ih();else if(!r.Ja&&!e.Ja){var s=function(){o(),r.ih()},o=function o(){e.uh(s),e.oh(o),r.uh(s),r.oh(o)};e.eh(s),e.sh(o),r.eh(s),r.sh(o)}}},r.vh=function(){var r=new e,s=new e,o=r.dh,u=s.dh,a=this.ah,h=function(){o.Ka&&u.Ja||u.Ka&&o.Ja?a.ih():o.Ja&&u.Ja&&a.rh()};return o.eh(h),u.eh(h),o.sh(h),u.sh(h),r.fh(a),s.fh(a),a.sh(function(){o.uh(h),u.uh(h),o.oh(h),u.oh(h)}),[r,s]},M(e,[{key:"dh",get:function(){return this.ah}}]),e}(),rA=function(e){function r(r,s){return e.call(this,r||"Aborted",s)||this}return j(r,e),M(r,[{key:"name",get:function(){return"AbortError"}}]),r}(t9);function rx(e){return e instanceof y&&"AbortError"===e.name}function rT(e){if(e&&e.Ka)throw new rA}function rC(e){if(rx(e))throw e}function rS(e){if(!rx(e))throw e}
1function rR(e,r){return r?new P(function(s,o){if(r.Ka)return e.catch(I),o(new rA);var u=function e(){r.uh(e),o(new rA)};r.eh(u),e.then(function(e){r.uh(u),s(e)},function(e){r.uh(u),o(e)})}):e}function rL(e,r){return e.then(function(e){return r.rh(),e},function(e){throw r.rh(),e})}function r_(e,r){var s=new rE;return r&&s.fh(r),e(s.dh).then(function(e){return s.hh(),e},function(e){throw s.hh(),e})}var rP=P.resolve();function rI(e){rP.then(e)}function rN(e){e.then(I,I)}function rO(e){return rD.apply(this,arguments)}function rD(){return(rD=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P.all(r);case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.next=10,P.all(r.map(function(e){return e.catch(I)}));case 10:throw e.t0;case 11:case"end":return e.stop()}},e,null,[[0,6]])}))).apply(this,arguments)}function rU(e,r){return new P(function(s,o){if(void 0!==r&&r.Ka)o(new rA);else{var u=_.Yr(function(){void 0!==r&&r.uh(a),s()},e),a=function(){_.jr(u),o(new rA)};void 0!==r&&r.eh(a)}})}function rM(e){return e&&"function"!=typeof e?e.slice():e}function rF(e,r,s){if(s)if("function"==typeof s)s.call(e,r);else for(var o=0;o<s.length;o++)s[o].call(e,r)}var rj,rH,rB=function(){function e(e){var r=this;this.lh=iU(),this._h=void 0,this.gh=void 0,this.wh=function(e){r.yh(e)},this.gh=e||this}var r=e.prototype;return r.kh=function(e,r){if("function"==typeof r)if("string"==typeof e)this.ph(e,r);else for(var s=0;s<e.length;s++){var o=e[s];this.ph(o,r)}},r.ph=function(e,r){var s=this.lh[e];s?"function"==typeof s?this.lh[e]=[s,r]:s.push(r):this.lh[e]=r},r.Ah=function(e){if("function"==typeof e){var r=this._h;r?"function"==typeof r?this._h=[r,e]:r.push(e):this._h=e}},r.Th=function(){this.lh=iU(),this._h=void 0},r.yh=function(e){var r=rM(this.lh[e.type]),s=rM(this._h);rF(this.gh,e,r),rF(this.gh,e,s)},r.Eh=function(e,r){if("function"==typeof r)if("string"==typeof e)this.Sh(e,r);else for(var s=0;s<e.length;s++){var o=e[s];this.Sh(o,r)}},r.Sh=function(e,r){var s=this.lh[e];s&&("function"==typeof s?s===r&&(this.lh[e]=void 0):rc(s,r))},r.Ih=function(e){if("string"==typeof e)this.lh[e]=void 0;else for(var r=0;r<e.length;r++){var s=e[r];this.lh[s]=void 0}},r.Rh=function(e){var r=this._h;r&&("function"==typeof r?r===e&&(this._h=void 0):rc(r,e))},r.Nh=function(e,r){var s=this;return new P(function(o,u){if(r&&r.Ka)return u(new rA);var a=function(e){c(),o(e)},h=function(){c(),u(new rA)},c=function(){s.Eh(e,a),r&&r.uh(h)};s.kh(e,a),r&&r.eh(h)})},e}(),rV=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.yh=function(r){var s=this;rI(function(){e.prototype.yh.call(s,r)})},r}(rB),rX=function(e,r){void 0===r&&(r=new Date),this.type=e,this.date=r},rW=["cenc"],rq=["cbcs","cbcs-1-9"],rY=function(e){function r(r){var s;return(s=e.call(this,"Ch")||this).Dh=r,s}return j(r,e),r}(rX),r$=function(e){function r(r,s,o,u){var a;return(a=e.call(this,"Ph")||this).Dh=r,a.Bh=s,a.Ph=o,a.Oh=u,a}return j(r,e),r}(rX),rJ=function(e){function r(){return e.call(this,"Lh")||this}return j(r,e),r}(rX);(ov=rH||(rH={})).Mh="Uh",ov.Fh="Hh";var rQ=function(e){function r(r,s){var o;return(o=e.call(this,rH.Mh)||this).Ha=r,o.Xh=s,o}return j(r,e),r}(rX),rG=function(e){function r(){return e.call(this,rH.Fh)||this}return j(r,e),r}(rX),rK=new x([0]).buffer,rz=function(){function e(){this.Vh=void 0,this.Vh=[]}var r=e.prototype;return r.Wh=function(e){for(var r=0,s=this.Vh;r<s.length;r++)if(s[r][0]===e)return!0;return!1},r.qh=function(e){for(var r=0,s=this.Vh;r<s.length;r++){var o=s[r];if(o[0]===e)return o[1]}},r.Gh=function(e,r){this.Vh.forEach(function(r){return e(r[1],r[0])},r)},r.jh=function(e,r){this.Vh.push([e,r])},r.Yh=function(){rv(this.Vh)},M(e,[{key:"Qh",get:function(){return this.Vh.length}}]),e}(),rZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),r0=/[\t\n\f\r ]/g;function r1(e){return 43===e?62:47===e?63:e>=48&&e<=57?e-48+52:e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:r2()}function r2(){throw new y("Invalid base64 input")}function r3(e){var r=e;r0.test(r)&&(r=r.replace(r0,""));var s=r.length;s%4==0&&s>=1&&"="===r[s-1]&&(s>=2&&"="===r[s-2]?s-=2:s-=1,r=r.substr(0,s));var o=s%4;if(1===o)return r2();for(var u,a=0===o?0:4-o,h=new x(3*(s+a)/4-a),c=a>0?s-4:s,f=0,l=0;f<c;f+=4)u=r1(r.charCodeAt(f))<<18|r1(r.charCodeAt(f+1))<<12|r1(r.charCodeAt(f+2))<<6|r1(r.charCodeAt(f+3)),h[l++]=u>>16&255,h[l++]=u>>8&255,h[l++]=255&u;return 2===a?(u=r1(r.charCodeAt(f))<<2|r1(r.charCodeAt(f+1))>>4,h[l++]=255&u):1===a&&(u=r1(r.charCodeAt(f))<<10|r1(r.charCodeAt(f+1))<<4|r1(r.charCodeAt(f+2))>>2,h[l++]=u>>8&255,h[l++]=255&u),h}function r5(e){for(var r=e.length,s=r%3,o=[],u=r-s,a=0;a<u;a+=16383)o.push(function(e,r,s){for(var o,u,a,h=[],c=r;c<s;c+=3)h.push((o=e[c],u=e[c+1],a=e[c+2],rZ[o>>2]+rZ[(3&o)<<4|u>>4]+rZ[(15&u)<<2|a>>6]+rZ[63&a]));return h.join("")}(e,a,b.min(u,a+16383)));if(1===s){var h=e[r-1];o.push(rZ[h>>2]+rZ[(3&h)<<4]+"==")}else if(2===s){var c=e[r-2],f=e[r-1];o.push(rZ[c>>2]+rZ[(3&c)<<4|f>>4]+rZ[(15&f)<<2]+"=")}return o.join("")}var r4=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
1]","[object DataView]"],r6=ArrayBuffer.isView||function(e){return e&&rl(r4,K.call(e))};function r8(e,r){return e===r||e.byteLength===r.byteLength&&r7(new x(e),new x(r))}function r7(e,r){if(e===r)return!0;if(e.byteLength!==r.byteLength)return!1;for(var s=0;s<e.length;s+=1)if(e[s]!==r[s])return!1;return!0}function r9(e){var r=e.reduce(function(e,r){return e+r.byteLength},0);return st(e,r)}function st(e,r){for(var s=new x(r),o=0,u=0;u<e.length;u++){var a=e[u];s.set(a,o),o+=a.byteLength}return s}function se(e,r,s){var o=new x(e.byteLength+r.byteLength),u=sj(e,0,s),a=sj(e,s);return o.set(u),o.set(r,s),o.set(a,s+r.byteLength),o}function sn(e){return r3(e).buffer}function si(e,r,s){for(var o=0,u=0;u<s;u++)o=2*o+function(e,r){var s=r.Zh,o=e.getUint8(s>>3),u=1<<7-(7&s);return r.Kh(1),+((o&u)===u)}(e,r);return o}var sr=function(){function e(e){void 0===e&&(e=0),this.Jh=e}var r=e.prototype;return r.Kh=function(e){this.Jh+=e},r.$h=function(e){this.Jh=e},r.tc=function(){return new e(this.Zh)},M(e,[{key:"Zh",get:function(){return this.Jh}}]),e}();function ss(e){if(e>=55296&&e<=57343)throw new y("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function so(e,r){return e>>r&63|128}function su(e,r){if(r.Zh>=e.length)throw new y("Invalid byte index");var s=255&e[r.Zh];if(r.Kh(1),128==(192&s))return 63&s;throw new y("Invalid continuation byte")}function sa(e,r){var s=r.Zh;if(s>e.length)throw new y("Invalid byte index");if(s===e.length)return!1;var o=255&e[s];if(r.Kh(1),0==(128&o))return o;if(192==(224&o)){var u=(31&o)<<6|su(e,r);if(u>=128)return u;throw new y("Invalid continuation byte")}if(224==(240&o)){var a=(15&o)<<12|su(e,r)<<6|su(e,r);if(a>=2048)return ss(a),a;throw new y("Invalid continuation byte")}if(240==(248&o)){var h=(7&o)<<18|su(e,r)<<12|su(e,r)<<6|su(e,r);if(h>=65536&&h<=1114111)return h}throw new y("Invalid UTF-8 detected")}var sh=[128,64,32,16,8,4,2,1],sc=function(){function e(e){this.nc=e}return e.prototype.ic=function(e){var r,s;return r=this.nc,(r&(s=e))===s},e}();function sf(e,r){var s;return(e&(s=sh[r]))===s}function sl(e,r){var s=e.getUint8(r.Zh);return r.Kh(1),s}function sp(e,r,s){var o=sj(sV(e),r.Zh,r.Zh+s);return r.Kh(o.byteLength),o}function sv(e,r,s){sV(e).set(sV(s),r.Zh),r.Kh(s.byteLength)}function sd(e,r,s){return r.Zh+s<=e.byteLength}function sy(e,r,s,o){return void 0===o&&(o=!1),o?function(e,r,s){for(var o=0,u=1,a=0;a<s;a++)o+=sl(e,r)*u,u*=256;return o}(e,r,s):function(e,r,s){for(var o=0,u=0;u<s;u++)o=256*o+sl(e,r);return o}(e,r,s)}function sg(e,r,s){void 0===s&&(s=!1);var o=e.getUint16(r.Zh,s);return r.Kh(2),o}function sm(e,r,s){void 0===s&&(s=!1);var o=e.getUint32(r.Zh,s);return r.Kh(4),o}function sw(e,r,s,o){void 0===o&&(o=!1),e.setUint32(r.Zh,s,o),r.Kh(4)}
1function sb(e,r,s){void 0===s&&(s=!1);var o=sm(e,r,s),u=sm(e,r,s),a=s?u:o,h=s?o:u;return tx.fromBits(h,a,!0)}function sk(e,r,s,o){void 0===o&&(o=!1);var u=s.getHighBitsUnsigned(),a=s.getLowBitsUnsigned(),h=o?u:a;sw(e,r,o?a:u,o),sw(e,r,h,o)}function sE(e,r,s){for(var o="",u=0;u<s;u++)o+=function(e,r){var s=sl(e,r);if(s)return String.fromCharCode(s)}(e,r);return o}function sA(e,r){return sx(e,r,!0)}function sx(e,r,s){for(var o=[];r.Zh<e.byteLength;){var u=sl(e,r);if(s&&!u)break;o.push(u)}return nG(o)}function sT(e,r,s){for(var o,u=s.length,a=0;a<u;a+=1)o=s.charCodeAt(a),e.setUint8(r.Zh,o),r.Kh(1)}function sC(e,r){if(r.Zh+2<=e.byteLength){var s=e.getUint8(r.Zh),o=e.getUint8(r.Zh+1);return(254!==s||255!==o)&&(255===s&&254===o||void 0)}}function sS(e,r){var s=sC(e,r);return void 0!==s&&r.Kh(2),sR(e,r,!0===s)}function sR(e,r,s){return void 0===s&&(s=!1),sL(e,r,s,!0)}function sL(e,r,s,o){for(var u=[];r.Zh+2<=e.byteLength;){var a=sg(e,r,s);if(o&&!a)break;u.push(a)}return nG(u)}function s_(e,r,s,o){void 0===o&&(o=!1);for(var u,a,h=s.length,c=0;c<h;c+=1)u=s.charCodeAt(c),void 0===(a=o)&&(a=!1),e.setUint16(r.Zh,u,a),r.Kh(2)}function sP(e){return sx(sB(e),new sJ,!1)}function sI(e){var r=new x(e.length);return sT(sB(r),new sJ,e),r}function sN(e,r){return void 0===r&&(r=!1),sL(sB(e),new sJ,r,!1)}function sO(e,r){void 0===r&&(r=!1);var s=new x(2*e.length);return s_(sB(s),new sJ,e,r),s}function sD(e,r){return r.Zh+3<=e.byteLength&&239===e.getUint8(r.Zh)&&187===e.getUint8(r.Zh+1)&&191===e.getUint8(r.Zh+2)}function sU(e,r){var s=[];for(sD(e,r)&&r.Kh(3);r.Zh<e.byteLength;){var o=function(e,r){var s,o=sl(e,r);return 0==(128&o)?s=o:192==(224&o)?s=64*(31&o)+(63&sl(e,r)):224==(240&o)?s=4096*(15&o)+64*(63&sl(e,r))+(63&sl(e,r)):240==(248&o)&&(s=262144*(7&o)+4096*(63&sl(e,r))+64*(63&sl(e,r))+(63&sl(e,r))),s}(e,r);if(void 0===o||0===o)break;s.push(o)}return nQ(s)}function sM(e){return nQ(function(e){var r,s=[],o=new sJ;if(!1===(r=sa(e,o)))return s;for(65279===r||s.push(r);!1!==(r=sa(e,o));)s.push(r);return s}(sV(e)))}function sF(e,r){if(sD(e,r))return sU(e,r);if(void 0!==sC(e,r))return sS(e,r);if(r.Zh+4<=e.byteLength){if(0===e.getUint8(r.Zh)&&0===e.getUint8(r.Zh+2))return sR(e,r,!1);if(0===e.getUint8(r.Zh+1)&&0===e.getUint8(r.Zh+3))return sR(e,r,!0)}return sU(e,r)}function sj(e,r,s){return void 0===r&&(r=0),void 0===s&&(s=e.byteLength),new x(e.buffer,e.byteOffset+r,s-r)}function sH(e,r,s){return void 0===r&&(r=0),void 0===s&&(s=e.byteLength),new DataView(e.buffer,e.byteOffset+r,s-r)}function sB(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function sV(e){return new x(e.buffer,e.byteOffset,e.byteLength)}function sX(e){return e instanceof ArrayBuffer||r6(e)}function sW(e){return e instanceof ArrayBuffer?new x(e):sV(e)}function sq(e,r,s){return void 0===r&&(r=0),void 0===s&&(s=e.byteLength),e.slice?e.slice(r,s):sY(sj(e,r,s))}function sY(e){if(e.slice)return e.slice(0);var r=new x(e.byteLength);return r.set(e,0),r}function s$(e){return[].slice.call(e)}var sJ=function(){function e(e){void 0===e&&(e=0),this.Jh=e}var r=e.prototype;return r.Kh=function(e){this.Jh+=e},r.$h=function(e){this.Jh=e},r.tc=function(){return new e(this.Zh)},r.rc=function(){return new sr(this.Zh<<3)},M(e,[{key:"Zh",get:function(){return this.Jh}}]),e}();function sQ(e){var r=e,s=0,o=0;nW(r,"0x")&&(r=r.substring(2));var u=new x(b.ceil(r.length/2));for(1==(1&r.length)&&(s=1,u[o++]=k(r[0],16));s<r.length;s+=2)u[o++]=k(r.substr(s,2),16);return u}var sG=function(){function e(){var e=this;this.ec=void 0,this.di=void 0,this.K=void 0,this.ec=new P(function(r,s){e.di=r,e.K=s})}var r=e.prototype;return r.uc=function(e){this.di&&(this.di(e),this.rh())},r.ac=function(e){this.K&&(this.K(e),this.rh())},r.hh=function(){this.ec.catch(I),this.ac(new rA)},r.rh=function(){this.di=void 0,this.K=void 0},e}();function sK(){return new x([8,4]).buffer}function sz(e,r){var s;return e===iG?(s=r).byteLength<2*sZ.length||sN(new DataView(s,0,2*sZ.length),!0)===sZ?s:sO('<PlayReadyKeyMessage type="LicenseAcquisition"><LicenseAcquisition Version="1"><Challenge encoding="base64encoded">'+r5(new x(s))+'</Challenge><HttpHeaders><HttpHeader><name>Content-Type</name><value>text/xml; charset=utf-8</value></HttpHeader><HttpHeader><name>SOAPAction</name><value>
1"http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense"</value></HttpHeader></HttpHeaders></LicenseAcquisition></PlayReadyKeyMessage>',!0).buffer:r}var sZ="<PlayReady",s0=function(e){function r(r,s,o,u){var a;return(a=e.call(this,r,u)||this).hc=void 0,a.cc=void 0,a.hc=s,a.cc=o,a}return j(r,e),r}(t9),s1=function(e){function r(r,s){(o=e.call(this)||this).fc=void 0,o.vc=!1,o.dc=void 0,o.lc=void 0,o._c=function(){o.gc()},o.wc=function(e){o.yh(new r$(t8(o),e.messageType,sz(o.yc,e.message)))},o.kc=function(){o.vc=!0,o.fc.Qh>0&&(o.fc.Yh(),o.yh(new rY(t8(o)))),o.mc.removeEventListener("keystatuseschange",o._c),o.mc.removeEventListener("message",o.wc)},o.mc=r,o.yc=s,o.mc.addEventListener("keystatuseschange",o._c),o.mc.addEventListener("message",o.wc),o.fc=new rz;var o,u=[];return o.mc.closed&&u.push(P.resolve(o.mc.closed)),o.lc=new sG,u.push(o.lc.ec),o.dc=P.race(u).then(o.kc),o.gc(),o}j(r,e);var s=r.prototype;return s.pc=function(){if(this.vc)return this.dc;var e=[];return e.push(P.resolve(this.mc.close())),e.push(rU(1e3)),this.lc.uc(P.race(e).catch(s2)),this.vc=!0,this.dc},s.Ac=function(e,r,s){return P.resolve(this.mc.generateRequest(e,r)).catch(s2)},s.bc=function(e){return P.resolve(this.mc.load(e)).catch(s2)},s.Tc=function(){return P.resolve(this.mc.remove()).catch(s2)},s.Ec=function(e){return P.resolve(this.mc.update(e)).catch(s2)},s.gc=function(){var e=this;this.fc.Yh(),this.mc.keyStatuses.forEach(function(r,s){e.Sc(s,r)}),this.yh(new rY(this))},s.Sc=function(e,r){if("string"==typeof e){var s=e;e=r,r=s}var o=sW(e);if(this.yc===iG&&16===o.byteLength){var u=sB(o),a=u.getUint32(0,!0),h=u.getUint16(4,!0),c=u.getUint16(6,!0);u.setUint32(0,a,!1),u.setUint16(4,h,!1),u.setUint16(6,c,!1)}this.yc===iG&&"status-pending"===r&&(r="usable"),this.fc.jh(o,r)},M(r,[{key:"Ic",get:function(){return this.dc}},{key:"Rc",get:function(){return this.mc.expiration}},{key:"Nc",get:function(){return this.fc}},{key:"Dc",get:function(){return this.mc.sessionId}}]),r}(rB);function s2(e){var r;if(e.message){var s=e.message.match(/^SystemCode:0x([0-9a-fA-F]+)$/);s&&(r=0|k(s[1],16))}throw new s0(e.message,void 0,r,e)}var s3=function(){function e(e,r){this.Cc=e,this.yc=r}var r,s=e.prototype;return r=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new s1(this.Cc.createSession(r),this.yc));case 1:case"end":return e.stop()}},e,this)})),s.Pc=function(e){return r.apply(this,arguments)},s.Bc=function(e){return P.resolve(this.Cc.setServerCertificate(e))},s.Oc=function(e){return P.resolve(e.setMediaKeys(this.Cc))},s.Lc=function(e){return P.resolve(e.setMediaKeys(null))},e}(),s5=function(){function e(e,r,s){this.Mc=e,this.yc=r,this.xc=s}var r,s=e.prototype;return r=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Mc.createMediaKeys();case 2:return r=e.sent,e.abrupt("return",new s3(r,this.yc));case 4:case"end":return e.stop()}},e,this)})),s.Uc=function(){return r.apply(this,arguments)},s.Fc=function(){return this.xc},M(e,[{key:"Hc",get:function(){return this.Mc.keySystem}}]),e}(),s4="application/ttml+xml",s6="application/mp4",s8="text/vtt";function s7(e){return nX(e,s6)||nX(e,"video/mp4")||nX(e,"audio/mp4")}var s9=function(){function e(e,r){this.Ua=void 0,this.Xc=void 0,this.Ua=e,this.Xc=r}return e.prototype.Vc=function(e){for(var r=0,s=this.Xc;r<s.length;r++){var o=s[r],u=o[0],a=o[1];if(u.toLowerCase()===e.toLowerCase())return a}},e}();function ot(e){var r=e.trim(),s=r.indexOf(";");if(s<0)return new s9(r,[]);for(var o=r.substr(0,s).trim(),u=r.substr(s+1).trim(),a=[],h=0,c=!1,f=0;f<u.length;f++){var l=u[f];if(c||";"!==l)'"'===l&&(c=!c);else{var p=oe(u.substr(h,f));p&&a.push(p),h=f+1}}if(h!==u.length){var v=oe(u.substr(h));v&&a.push(v)}return new s9(o,a)}function oe(e){var r=e.indexOf("=");if(!(r<0)){var s=e.substr(0,r).trim(),o=e.substr(r+1).trim();return'"'===o[0]&&(o=o.substring(1,o.length-1)),[s,o]}}function on(e){var r=e.trim(),s=r.indexOf(";");return s<0?r:r.substr(0,s).trim()}function oi(e,r,s,o){var u=!1;if(!(o.persistentState&&"optional"!==o.persistentState||o.distinctiveIdentifier&&"optional"!==o.distinctiveIdentifier)){var a={audioCapabilities:[],videoCapabilities:[],persistentState:o.persistentState||"optional",distinctiveIdentifier:o.distinctiveIdentifier||"optional",initDataTypes:o.initDataTypes,sessionTypes:["temporary"],label:o.label,Wc:o.Wc},h=!1;if(o.audioCapabilities){var c=o.audioCapabilities.filter(function(e){return!!e.contentType});c.length&&(a.audioCapabilities=c.filter(function(o){return or(e,r,s,o)}),h=!0,a.audioCapabilities.length&&(u=!0))}if(o.videoCapabilities){var f=o.videoCapabilities.filter(function(e){return!!e.contentType});f.length&&(a.videoCapabilities=f.filter(function(o){return or(e,r,s,o)}),h=!0,a.videoCapabilities.length&&(u=!0))}return h||(u=e(s,"video/mp4")),u?a:void 0}}function or(e,r,s,o){return!!o.contentType&&!(o.encryptionScheme&&!rl(r,o.encryptionScheme))&&!o.robustness&&e(s,on(o.contentType))}function os(e){if(e.videoCapabilities)for(var r=0,s=e.videoCapabilities;r<s.length;r++){var o=s[r];if(o.contentType)return o.contentType}if(e.audioCapabilities)for(var u=0,a=e.audioCapabilities;u<a.length;u++){var h=a[u];if(h.contentType)return h.contentType}}function oo(e){for(var r=[],s=0;s<e.length;s++){var o=e[s];o.encryptionScheme&&r.push({contentType:o.contentType,robustness:o.robustness})}return e.concat(r)}var ou=function(){var e;function r(){}return r.prototype.Qa=(e=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(s=s.filter(function(e){return!e.Wc}),o=0,u=s;o<u.length;o++)(a=u[o]).audioCapabilities&&(a.audioCapabilities=oo(a.audioCapabilities)),a.videoCapabilities&&(a.videoCapabilities=oo(a.videoCapabilities));return e.next=4,f.requestMediaKeySystemAccess(r,s);case 4:return c=(h=e.sent).getConfiguration(),e.abrupt("return",new s5(h,r,c));case 7:case"end":return e.stop()}},e)})),function(r,s){return e.apply(this,arguments)}),r.qc=function(){return re()},r}(),oa=function(e){function r(r,s){var o;return(o=e.call(this)||this).vc=!1,o.Gc=void 0,o.zc=void 0,o.jc=void 0,o.Yc=void 0,o.Qc=void 0,o.kc=function(){o.vc=!0,o.Gc.uc(void 0),o.Qc&&(o.Qc.removeEventListener("mskeyclose",o.kc),o.Qc.removeEventListener("mskeymessage",o.Zc),o.Qc.removeEventListener("mskeyerror",o.Kc),o.Qc.removeEventListener("mskeyadded",o.Jc))},o.Zc=function(e){o.jc&&(o.jc.uc(void 0),o.jc=void 0),o.yh(new r$(t8(o),"license-request",sY(e.message).buffer,e.destinationURL||void 0))},o.Kc=function(){var e=o.Qc&&o.Qc.error;if(e){var r=new s0("Unknown CDM error",e.code,e.systemCode);
1if(o.jc)o.jc.ac(r),o.jc=void 0;else if(o.zc)o.zc.ac(r),o.zc=void 0;else switch(r.hc){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:o.$c("output-not-allowed");break;default:o.$c("internal-error")}}},o.Jc=function(){o.jc&&(o.$c("usable"),o.jc.uc(void 0),o.jc=void 0),o.zc&&(o.$c("usable"),o.zc.uc(void 0),o.zc=void 0)},o.tf=r,o.nf=s,o.Gc=new sG,o.Yc=new rz,o}j(r,e);var s,o,u,a,h=r.prototype;return s=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.if(),this.jc=new sG,this.Pc(sW(s),o),e.next=5,this.jc.ec;case 5:case"end":return e.stop()}},e,this)})),h.Ac=function(e,r,o){return s.apply(this,arguments)},h.Pc=function(e,r){if(!e)throw new g("Expected initData to be defined but was "+e+".");var s,o=r&&r.playready&&r.playready.rf;return(s=r?this.tf.createSession(this.nf,e,o):this.tf.createSession(this.nf,e)).addEventListener("mskeyclose",this.kc),s.addEventListener("mskeymessage",this.Zc),s.addEventListener("mskeyerror",this.Kc),s.addEventListener("mskeyadded",this.Jc),this.Qc=s,this.$c("status-pending"),s},o=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.if(),e.abrupt("return",!0);case 2:case"end":return e.stop()}},e,this)})),h.bc=function(e){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.zc=new sG,this.if(),this.Qc){e.next=4;break}return e.abrupt("return",P.resolve());case 4:if(0!==(s=sW(r)).byteLength){e.next=7;break}throw new g("Cannot call update with an empty response.");case 7:return this.Qc.update(s),e.next=10,this.zc.ec;case 10:case"end":return e.stop()}},e,this)})),h.Ec=function(e){return u.apply(this,arguments)},h.pc=function(){return!this.vc&&this.Qc&&(this.vc=!0,this.Qc.close()),this.Gc.ec},a=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.if(),e.abrupt("return");case 2:case"end":return e.stop()}},e,this)})),h.Tc=function(){return a.apply(this,arguments)},h.if=function(){if(this.vc)throw new g("Already closing or closed.")},h.$c=function(e){this.Yc.Yh(),this.Yc.jh(rK,e),this.yh(new rY(this))},M(r,[{key:"Dc",get:function(){return this.Qc&&this.Qc.sessionId||""}},{key:"Rc",get:function(){return NaN}},{key:"Ic",get:function(){return this.Gc.ec}},{key:"Nc",get:function(){return this.Yc}}]),r}(rB),oh=function(){function e(e,r){this.tf=e,this.nf=r}var r,s=e.prototype;return r=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new oa(this.tf,this.nf));case 1:case"end":return e.stop()}},e,this)})),s.Pc=function(e){return r.apply(this,arguments)},s.Bc=function(e){return P.resolve(!1)},s.Oc=function(e){var r=this;return e.readyState>=1?e.msSetMediaKeys(this.tf):e.addEventListener("loadedmetadata",function s(){e.msSetMediaKeys(r.tf),e.removeEventListener("loadedmetadata",s)}),P.resolve()},s.Lc=function(e){return P.resolve()},e}(),oc=function(){function e(e,r){this.nf=void 0,this.yc=e,this.ef=r;var s=os(r)||"video/mp4";this.nf=on(s)}var r=e.prototype;return r.Fc=function(){return this.ef},r.Uc=function(){return P.resolve(new oh(new n2.MSMediaKeys(this.yc),this.nf))},M(e,[{key:"Hc",get:function(){return this.yc}}]),e}(),of=function(){function e(){}return e.prototype.Qa=function(e,r){try{return P.resolve(function(e,r){if(!ol())throw new g("Unsupported key system "+e);for(var s=0;s<r.length;s++){var o=r[s],u=oi(op,rW,e,o);if(u)return new oc(e,u)}throw new g("Unsupported key system configuration for "+e)}(e,r))}catch(e){return P.reject(e)}},e.qc=function(){return ol()},e}();function ol(){return void 0!==n2.MSMediaKeys&&"function"==typeof n2.MSMediaKeys.isTypeSupported}function op(e,r){return n2.MSMediaKeys.isTypeSupported(e,r)}var ov,od,oy,og=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).Gc=new sG,u.uf=void 0,u.Yc=new rz,u.sf=void 0,u.hf=new sG,u.Kc=function(){var e=u.sf&&u.sf.error;if(e){var r=new s0("Unknown CDM error",e.code,e.systemCode);u.uf?(u.uf.ac(r),u.uf=void 0):r.hc===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?u.$c("output-not-allowed"):u.$c("internal-error"),u.yh(new rJ)}},u.Zc=function(e){u.uf&&(u.uf.uc(void 0),u.uf=void 0),u.yh(new r$(t8(u),"license-request",sY(e.message).buffer,e.destinationURL||void 0))},u.cf=r,u.nf=s,u.vf=o,u}j(r,e);var s,o=r.prototype;return o.Ac=function(e,r,s){var o,u,a,h,c,f,l,p,v=s&&s.fairplay&&s.fairplay.df;if(!v)throw new g("Expected FairPlay contentId to be defined but was "+v+".");var d=(o=sW(r),u=this.vf,sw(l=new DataView(f=new ArrayBuffer(4+(h=2*(a=sM(o)
1).length)+4+(c=2*v.length)+4+u.byteLength)),p=new sJ,h,!0),s_(l,p,a,!0),sw(l,p,c,!0),s_(l,p,v,!0),sw(l,p,u.byteLength,!0),sv(l,p,u),new x(f));return this.sf=this.cf.createSession(this.nf,d),this.sf.addEventListener("webkitkeymessage",this.Zc,!1),this.sf.addEventListener("webkitkeyerror",this.Kc,!1),this.$c("usable"),this.hf.uc(this.sf),this.hf=new sG,P.resolve()},o.bc=function(e){return P.resolve(!0)},s=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(s=sW(r)).byteLength){e.next=3;break}throw new g("Cannot call update with an empty response.");case 3:if(this.uf=new sG,e.t0=this.sf,e.t0){e.next=9;break}return e.next=8,this.hf.ec;case 8:e.t0=e.sent;case 9:return e.t0.update(s),e.next=13,this.uf.ec;case 13:case"end":return e.stop()}},e,this)})),o.Ec=function(e){return s.apply(this,arguments)},o.pc=function(){var e=this.sf;return e&&(e.removeEventListener("webkitkeymessage",this.Zc,!1),e.removeEventListener("webkitkeyerror",this.Kc,!1),e.close()),this.hf.hh(),this.Gc.uc(void 0),this.Gc.ec},o.Tc=function(){return P.resolve(void 0)},o.$c=function(e){this.Yc.Yh(),this.Yc.jh(rK,e),this.yh(new rY(this))},M(r,[{key:"Dc",get:function(){return this.sf?this.sf.sessionId:""}},{key:"Rc",get:function(){return NaN}},{key:"Ic",get:function(){return this.Gc.ec}},{key:"Nc",get:function(){return this.Yc}}]),r}(rB);(od=e.ErrorCode||(e.ErrorCode={}))[od.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",od[od.LICENSE_ERROR=2e3]="LICENSE_ERROR",od[od.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",od[od.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",od[od.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",od[od.SOURCE_INVALID=3e3]="SOURCE_INVALID",od[od.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",od[od.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",od[od.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",od[od.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",od[od.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",od[od.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",od[od.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",od[od.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",od[od.MEDIA_ABORTED=5004]="MEDIA_ABORTED",od[od.NETWORK_ERROR=6e3]="NETWORK_ERROR",od[od.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",od[od.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",od[od.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",od[od.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",od[od.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",od[od.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",od[od.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",od[od.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",od[od.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",od[od.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",od[od.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",od[od.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",od[od.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",od[od.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",od[od.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",od[od.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",od[od.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",od[od.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",od[od.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",od[od.AD_ERROR=1e4]="AD_ERROR",od[od.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",od[od.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR",(oy=e.ErrorCategory||(e.ErrorCategory={}))[oy.CONFIGURATION=1]="CONFIGURATION",oy[oy.LICENSE=2]="LICENSE",oy[oy.SOURCE=3]="SOURCE",oy[oy.MANIFEST=4]="MANIFEST",oy[oy.MEDIA=5]="MEDIA",oy[oy.NETWORK=6]="NETWORK",oy[oy.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",oy[oy.SUBTITLE=8]="SUBTITLE",oy[oy.VR=9]="VR",oy[oy.AD=10]="AD",oy[oy.FULLSCREEN=11]="FULLSCREEN",(e.ErrorCategory||(e.ErrorCategory={})).fromCode=function(r){var s=b.floor(r/1e3);if(s in e.ErrorCategory)return s;throw new g("Invalid error code: "+r)};var om=function(r){function s(e,s,o){var u;return(u=r.call(this,s,o)||this).code=void 0,u.code=e,u}return j(s,r),M(s,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return e.ErrorCategory.fromCode(this.code)}}]),s}(t9),ow=function(){function r(e,r){this.vf=void 0,this.cf=e,this.nf=r}var s,o=r.prototype;return o.getInternalMediaKeys=function(){return this.cf},s=P.coroutine(iO.mark(function r(s){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(this.vf){r.next=2;break}throw new om(e.ErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR,"No valid certificate was provided.");case 2:return r.abrupt("return",new og(this.cf,this.nf,this.vf));case 3:case"end":return r.stop()}},r,this)})),o.Pc=function(e){return s.apply(this,arguments)},o.Bc=function(e){return this.vf=sW(e),P.resolve(!0)},o.Oc=function(e){return e.webkitSetMediaKeys(this.cf),P.resolve()},o.Lc=function(e){return e.webkitSetMediaKeys(null),P.resolve()},r}(),ob=function(){function e(e,r){this.nf=void 0,this.yc=e,this.ef=r;var s=os(r)||"video/mp4";this.nf=on(s)}
1var r=e.prototype;return r.Fc=function(){return this.ef},r.Uc=function(){return P.resolve(new ow(new n2.WebKitMediaKeys(this.yc),this.nf))},M(e,[{key:"Hc",get:function(){return this.yc}}]),e}(),ok=function(){function e(){}return e.prototype.Qa=function(e,r){try{return P.resolve(function(e,r){if(e!==i1)throw new g(e+" is not supported with webkit-prefixed Encrypted Media Extensions.");if(!oE())throw new g("Unsupported key system "+e);for(var s=0;s<r.length;s++){var o=r[s],u=oi(oA,rq,e,o);if(u)return new ob(e,u)}throw new g("Unsupported key system configuration for "+e)}(e,r))}catch(e){return P.reject(e)}},e.qc=function(){return oE()},e}();function oE(){return void 0!==n2.WebKitMediaKeys&&"function"==typeof n2.WebKitMediaKeys.isTypeSupported}function oA(e,r){return n2.WebKitMediaKeys.isTypeSupported(e,r)}var ox,oT=function(){var e;function r(e){this.lf=e}return r.prototype.Qa=(e=P.coroutine(iO.mark(function e(r,s){var o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=0,u=this.lf;case 1:if(!(o<u.length)){e.next=14;break}return a=u[o],e.prev=3,e.next=6,a.Qa(r,s);case 6:return e.abrupt("return",e.sent);case 9:e.prev=9,e.t0=e.catch(3);case 11:o++,e.next=1;break;case 14:throw new g("Unsupported key system configuration for "+r);case 15:case"end":return e.stop()}},e,this,[[3,9]])})),function(r,s){return e.apply(this,arguments)}),r}(),oC=function(e){function r(r){var s;return(s=e.call(this)||this).jc=void 0,s.uf=void 0,s.Gc=void 0,s._f=!1,s.gf=void 0,s.wf=void 0,s.yf=void 0,s.kf=void 0,s.mf=void 0,s.yc=r,s.Gc=new sG,s.wf="",s.mf=new sG,s.yf=new rz,s}j(r,e);var s,o,u,a,h,c=r.prototype;return c.pf=function(){this.uf&&(this.$c("usable"),this.uf.uc(void 0),this.uf=void 0)},c.Af=function(e){var r=new s0("Unknown CDM error",e.errorCode,e.systemCode);this.uf?(this.uf.ac(r),this.uf=void 0):this.jc?(this.jc.ac(r),this.jc=void 0):r.hc===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?this.$c("output-restricted"):1===r.cc?this.$c("expired"):this.$c("internal-error")},c.bf=function(e){0!==e.message.byteLength&&(this.jc&&(this.jc.uc(void 0),this.jc=void 0),this.yh(new r$(this,"license-request",sz(this.yc,sY(e.message).buffer),e.defaultURL||void 0)))},c.Tf=function(e){this.kf||(this.kf=e,this.mf.uc(e))},s=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.throwIfClosed(),this._f=!0,this.Gc.uc(void 0);case 3:case"end":return e.stop()}},e,this)})),c.pc=function(){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.throwIfClosed(),this.jc=new sG,this.gf=sW(s),e.t0=this.kf,e.t0){e.next=8;break}return e.next=7,this.mf.ec;case 7:e.t0=e.sent;case 8:return e.t0.webkitGenerateKeyRequest(this.yc,this.gf),e.next=12,this.jc.ec;case 12:case"end":return e.stop()}},e,this)})),c.Ac=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.throwIfClosed(),e.abrupt("return",!1);case 2:case"end":return e.stop()}},e,this)})),c.bc=function(e){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.throwIfClosed();case 1:case"end":return e.stop()}},e,this)})),c.Tc=function(){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.throwIfClosed(),this.uf=new sG,e.t0=this.kf,e.t0){e.next=7;break}return e.next=6,this.mf.ec;case 6:e.t0=e.sent;case 7:return e.t0.webkitAddKey(this.yc,sW(r),this.gf,this.Dc),e.next=11,this.uf.ec;case 11:case"end":return e.stop()}},e,this)})),c.Ec=function(e){return h.apply(this,arguments)},c.throwIfClosed=function(){if(this._f)throw new g("Already closing or closed.")},c.$c=function(e){this.yf.Yh(),this.yf.jh(rK,e),this.yh(new rY(this))},M(r,[{key:"Nc",get:function(){return this.yf}},{key:"Dc",get:function(){return this.wf},set:function(e){this.wf=e}},{key:"Ic",get:function(){return this.Gc.ec}},{key:"Rc",get:function(){return NaN}}]),r}(rB),oS=function(){function e(e){var r=this;this.kf=void 0,this.Ef=iM(),this.Sf=[],this.Jc=function(e){var s=r.If(e.sessionId);s&&s.pf()},this.Rf=function(e){var s=r.If(e.sessionId);s&&s.Af(e)},this.Nf=function(e){var s=r.If(e.sessionId);s&&s.bf(e)},this.yc=e}var r,s=e.prototype;return s.Oc=function(e){return this.kf=e,this.kf.addEventListener("webkitkeyadded",this.Jc),this.kf.addEventListener("webkitkeyerror",this.Rf),this.kf.addEventListener("webkitkeymessage",this.Nf),this.Ef.forEach(function(r,s){return r.Tf(e)}),this.Sf.forEach(function(r){return r.Tf(e)}),P.resolve()},s.Lc=function(e){return e.removeEventListener("webkitkeyadded",this.Jc),e.removeEventListener("webkitkeyerror",this.Rf),e.removeEventListener("webkitkeymessage",this.Nf),this.kf=void 0,P.resolve()},r=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;
1)switch(e.prev=e.next){case 0:return u=new oC(this.yc),this.kf&&u.Tf(this.kf),this.Sf.push(u),e.abrupt("return",u);case 4:case"end":return e.stop()}},e,this)})),s.Pc=function(e,s,o){return r.apply(this,arguments)},s.Bc=function(e){return P.resolve(!1)},s.If=function(e){if(e){var r=this.Ef.get(e);return r||((r=this.Sf.shift())?(r.Dc=e,this.Ef.set(e,r),r):void 0)}},e}(),oR=function(){function e(e,r){this.Hc=e,this.Df=r}var r=e.prototype;return r.Uc=function(){return P.resolve(new oS(this.Hc))},r.Fc=function(){return this.Df},e}(),oL=function(){function e(){}return e.prototype.Qa=function(e,r){try{return P.resolve(function(e,r){if(!oL.qc())throw new g("Unsupported key system "+e);for(var s=0;s<r.length;s++){var o=oi(o_,rW,e,r[s]);if(o)return new oR(e,o)}throw new g("Unsupported key system configuration for "+e)}(e,r))}catch(e){return P.reject(e)}},e.qc=function(){return rn()},e}();function o_(e,r){var s=id();return!(!s||!s.canPlayType||""===s.canPlayType(r,e))}function oP(){var e;return ox||(e=[],ok.qc()&&e.push(new ok),ou.qc()&&e.push(new ou),of.qc()&&e.push(new of),oL.qc()&&e.push(new oL),ox=new oT(e)),ox}var oI=function(){function e(){this.Cf=iM()}var r=e.prototype;return r.Yh=function(e){this.Cf.delete(e)},r.Pf=function(){this.Cf.clear()},r.qh=function(e){return this.Cf.get(e)},r.Bf=function(e,r){this.Cf.set(e,r)},e}(),oN=function(){function e(){}return e.Of=function(){return e.ju||(e.ju=oO.qc()?new oO:new oI),e.ju},e.Yh=function(r){e.Of().Yh(r)},e.Pf=function(){e.Of().Pf()},e.qh=function(r){return e.Of().qh(r)},e.Bf=function(r,s){e.Of().Bf(r,s)},e}();oN.ju=void 0;var oO=function(e){function r(){return e.apply(this,arguments)||this}j(r,e),r.qc=function(){try{return o.sessionStorage.setItem("foobar","foobar"),o.sessionStorage.removeItem("foobar"),!0}catch(e){return!1}};var s=r.prototype;return s.Yh=function(e){o.sessionStorage.removeItem(e)},s.Pf=function(){o.sessionStorage.clear()},s.qh=function(e){return o.sessionStorage[e]},s.Bf=function(e,r){o.sessionStorage[e]=r},r}(oN),oD=function(){var e=o.Blob;if(e)try{return new e,function(r,s){return new e(r,s)}}catch(e){}var r=o.BlobBuilder||o.WebKitBlobBuilder||o.MozBlobBuilder||o.MSBlobBuilder;return r?function(e,s){var o=new r;if(e)for(var u=0;u<e.length;u++){var a=e[u];o.append(a)}return o.getBlob(s&&s.type||"")}:null}();function oU(e,r,s){var o=oD([r],{type:"application/octet-stream"}),u=URL.createObjectURL(o),a=function(e,r){var s=e,o=s.indexOf("?");if(o>=0&&(s=s.substr(0,o)),s=s.substr(s.lastIndexOf("/")+1),r){var u=s.indexOf(".");u<0&&(u=s.length),s=s.substr(0,u)+r+s.substr(u)}return s}(e,s),c=h.createElement("a");c.href=u,c.download=a,h.body.appendChild(c),c.click(),h.body.removeChild(c),URL.revokeObjectURL(u)}(uc=ul||(ul={})).Lf="Mf",uc.xf="Uf",uc.Ff="contentprotectionerror",uc.Hf="contentprotectionsuccess",uc.Xf="currentsourcechange",uc.Vf="destroy",uc.Wf="durationchange",uc.qf="emptied",uc.Mh="encrypted",uc.Gf="ended",uc.zf="jf",uc.Yf="loadstart",uc.Qf="manifestupdate",uc.Zf="nosupportedrepresentationfound",uc.Kf="offline",uc.Jf="online",uc.$f="pause",uc.tv="play",uc.rv="progress",uc.ev="ratechange",uc.uv="representationchange",uc.ov="resize",uc.hv="seeked",uc.fv="seeking",uc.vv="segmentnotfound",uc._v="wv",uc.yv="mv",uc.pv="sourcechange",uc.Av="timeupdate",uc.bv="volumechange",uc.Tv="Ev",uc.Sv="metricschange",(uf=up||(up={})).Iv="arraybuffer",uf.Rv="json",uf.Nv="stream",uf.Ku="text";var oM=function(){function e(r){var s=this;this.Pa=void 0,this.Pa={},r instanceof e?r.asList().forEach(function(e){var r=e[0],o=e[1];s.append(r,o)}):Array.isArray(r)?r.forEach(function(e){s.append(e[0],e[1])}):r&&w.getOwnPropertyNames(r).forEach(function(e){s.append(e,r[e])})}var r=e.prototype;return r.append=function(e,r){var s=e,o=r;s=oF(s),o=oj(o);var u=s.toLowerCase();if(this.Pa.hasOwnProperty(u)){var a=this.Pa[u],h=a[1];a[1]=h?h+", "+o:o}else this.Pa[u]=[s,o]},r.delete=function(e){var r=oF(e).toLowerCase();delete this.Pa[r]},r.get=function(e){var r=oF(e).toLowerCase();return this.Pa.hasOwnProperty(r)?this.Pa[r][1]:null},r.has=function(e){var r=oF(e).toLowerCase();return this.Pa.hasOwnProperty(r)},r.set=function(e,r){var s=e,o=(s=oF(s)).toLowerCase();this.Pa[o]=[s,oj(r)]},r.forEach=function(e,r){for(var s in this.Pa)this.Pa.hasOwnProperty(s)&&e.call(r,this.Pa[s][1],s,this)},r.asList=function(){var e=[];for(var r in this.Pa)if(this.Pa.hasOwnProperty(r)){var s=this.Pa[r],o=s[0],u=s[1];e.push([o,u])}return e},r.Dv=function(){var e={};return this.forEach(function(r,s){e[s]=r}),e},r.Cv=function(e){var r=this;e.forEach(function(e,s){r.append(s,e)})},r.Pv=function(e){var r=this;e.forEach(function(e,s){r.set(s,e)})},e}();function oF(e){var r=e;if("string"!=typeof r&&(r=String(r)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(r))throw new g("Invalid character in header field name");return r}function oj(e){var r=e;return"string"!=typeof r&&(r=String(r)),r}var oH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"};function oB(){}var oV=Number.isNaN||function(e){return e!=e};function oX(e){return"object"==typeof e&&null!==e||"function"==typeof e}function oW(e){return e.slice()}function oq(e){return!1!=(!("number"!=typeof e||oV(e))&&!(e<0))&&e!==1/0}function oY(e,r,s){if("function"!=typeof e)throw new g("Argument is not a function");return Function.prototype.apply.call(e,r,s)}function o$(e,r,s,o){var u=e[r];if(void 0!==u){if("function"!=typeof u)throw new g(u+" is not a method");switch(s){case 0:return function(){return oQ(u,e,o)};case 1:return function(r){return oQ(u,e,[r].concat(o))}}}return function(){return oZ(void 0)}}function oJ(e,r,s){var o=e[r];if(void 0!==o)return oY(o,e,s)}function oQ(e,r,s){try{var o;return o=oY(e,r,s),oZ(o)}catch(e){return o0(e)}}function oG(e){if(oV(e=Number(e))||e<0)throw RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function oK(e){if(void 0===e)return function(){return 1};if("function"!=typeof e)throw new g("size property of a queuing strategy must be a function");return function(r){return e(r)}}var oz=P.prototype.then,oZ=P.resolve.bind(P),o0=P.reject.bind(P);function o1(e){return new P(e)}function o2(e,r,s){return oz.call(e,r,s)}function o3(e,r,s){o2(o2(e,r,s),void 0,oB)}function o5(e){o2(e,void 0,oB)}var o4=function(){function e(){this.Bv=0,this.Ov=0,this.dr={Lv:[],Mv:void 0},this.xv=this.dr,this.Bv=0,this.Ov=0}return w.defineProperty(e.prototype,"length",{get:function(){return this.Ov},enumerable:!0,configurable:!0}),e.prototype.push=function(e){var r=this.xv,s=r;16383===r.Lv.length&&(s={Lv:[],Mv:void 0}
1),r.Lv.push(e),s!==r&&(this.xv=s,r.Mv=s),++this.Ov},e.prototype.shift=function(){var e=this.dr,r=e,s=this.Bv,o=s+1,u=e.Lv,a=u[s];return 16384===o&&(r=e.Mv,o=0),--this.Ov,this.Bv=o,e!==r&&(this.dr=r),u[s]=void 0,a},e.prototype.forEach=function(e){for(var r=this.Bv,s=this.dr,o=s.Lv;!(r===o.length&&void 0===s.Mv||r===o.length&&(r=0,0===(o=(s=s.Mv).Lv).length));)e(o[r]),++r},e.prototype.peek=function(){var e=this.dr,r=this.Bv;return e.Lv[r]},e}();function o6(e,r,s){var o=null;!0===s&&(o=w.prototype);var u=w.create(o);return u.value=e,u.done=r,u}function o8(e,r){var s,o;e.Uv=!0,e.Fv=r,r.Hv=e,"readable"===r.Xv?ut(e):"closed"===r.Xv?(ut(e),un(e)):(s=e,o=r.Vv,ut(s),ue(s,o))}function o7(e){var r,s;"readable"===e.Fv.Xv?ue(e,new g("Reader was released and can no longer be used to monitor the stream's closedness")):(r=e,s=new g("Reader was released and can no longer be used to monitor the stream's closedness"),ut(r),ue(r,s)),e.Fv.Hv=void 0,e.Fv=void 0}function o9(e){return new g("Cannot "+e+" a stream using a released reader")}function ut(e){e.dc=o1(function(r,s){e.Wv=r,e.qv=s})}function ue(e,r){o5(e.dc),e.qv(r),e.Wv=void 0,e.qv=void 0}function un(e){e.Wv(void 0),e.Wv=void 0,e.qv=void 0}var ui=oH("[[CancelSteps]]"),ur=oH("[[PullSteps]]");function us(e,r){void 0===r&&(r=!1);var s=new uy(e);return s.Uv=r,s}function uo(e){return o1(function(r,s){e.Hv.Gv.push({di:r,K:s})})}function uu(e,r,s){var o=e.Hv;o.Gv.shift().di(o6(r,s,o.Uv))}function ua(e){return e.Hv.Gv.length}function uh(e){var r=e.Hv;return void 0!==r&&!!ug(r)}var uc,uf,ul,up,uv,ud,uy=function(){function e(e){if(!1===aq(e))throw new g("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===aY(e))throw new g("This stream has already been locked for exclusive reading by another reader");o8(this,e),this.Gv=new o4}return w.defineProperty(e.prototype,"closed",{get:function(){return ug(this)?this.dc:o0(uw("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return ug(this)?void 0===this.Fv?o0(o9("cancel")):a$(this.Fv,e):o0(uw("cancel"))},e.prototype.read=function(){return ug(this)?void 0===this.Fv?o0(o9("read from")):um(this):o0(uw("read"))},e.prototype.releaseLock=function(){if(!ug(this))throw uw("releaseLock");if(void 0!==this.Fv){if(this.Gv.length>0)throw new g("Tried to release a reader lock when that reader has pending read() calls un-settled");o7(this)}},e}();function ug(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"Gv")}function um(e){var r=e.Fv;return r.zv=!0,"closed"===r.Xv?oZ(o6(void 0,!0,e.Uv)):"errored"===r.Xv?o0(r.Vv):r.Yv[ur]()}function uw(e){return new g("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof oH.asyncIterator&&((uv={})[oH.asyncIterator]=function(){return this},ud=uv,w.defineProperty(ud,oH.asyncIterator,{enumerable:!1}));var ub={next:function(){if(!1===uk(this))return o0(uE("next"));var e=this.Qv;return void 0===e.Fv?o0(o9("iterate")):o2(um(e),function(r){var s=r.done;return s&&o7(e),o6(r.value,s,!0)},void 0)},return:function(e){if(!1===uk(this))return o0(uE("next"));var r=this.Qv;if(void 0===r.Fv)return o0(o9("finish iterating"));if(r.Gv.length>0)return o0(new g("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this.Zv){var s=a$(r.Fv,e);return o7(r),o2(s,function(){return o6(e,!0,!0)},void 0)}return o7(r),oZ(o6(e,!0,!0))}};function uk(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"Qv")}function uE(e){return new g("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function uA(e){var r=e.ri.shift();return e.Kv-=r.size,e.Kv<0&&(e.Kv=0),r.value}function ux(e,r,s){if(!oq(s=Number(s)))throw RangeError("Size must be a finite, non-NaN, non-negative number.");e.ri.push({value:r,size:s}),e.Kv+=s}function uT(e){e.ri=new o4,e.Kv=0}void 0!==ud&&w.setPrototypeOf(ub,ud),w.defineProperty(ub,"next",{enumerable:!1}),w.defineProperty(ub,"return",{enumerable:!1});var uC=oH("[[AbortSteps]]"),uS=oH("[[ErrorSteps]]"),uR=function(){function e(e,r){void 0===e&&(e={}),void 0===r&&(r={}),uL(this);var s,o,u,a,h=r.size,c=r.highWaterMark;if(void 0!==e.type)throw RangeError("Invalid type is specified");var f=oK(h);void 0===c&&(c=1),s=e,o=c=oG(c),a=o$(s,"write",1,[u=w.create(uq.prototype)]),uY(this,u,function(){return oJ(s,"start",[u])},a,o$(s,"close",0,[]),o$(s,"abort",1,[]),o,f)}return w.defineProperty(e.prototype,"locked",{get:function(){if(!1===u_(this))throw uz("locked");return uP(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===u_(this)?o0(uz("abort")):!0===uP(this)?o0(new g("Cannot abort a stream that already has a writer")):uI(this,e)},e.prototype.close=function(){return!1===u_(this)?o0(uz("close")):!0===uP(this)?o0(new g("Cannot close a stream that already has a writer")):!0===uM(this)?o0(new g("Cannot close an already-closing stream")):uN(this)},e.prototype.getWriter=function(){var e;if(!1===u_(this))throw uz("getWriter");return e=this,new uH(e)},e}();function uL(e){e.Xv="writable",e.Vv=void 0,e.Jv=void 0,e.$v=void 0,e.td=new o4,e.rd=void 0,e.ed=void 0,e.ud=void 0,e.od=void 0,e.ad=!1}function u_(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"$v")}function uP(e){return void 0!==e.Jv}function uI(e,r){var s=e.Xv;if("closed"===s||"errored"===s)return oZ(void 0);if(void 0!==e.od)return e.od.Cn;var o=!1;"erroring"===s&&(o=!0,r=void 0);var u=o1(function(s,u){e.od={Cn:void 0,di:s,K:u,Zn:r,hd:o}});return e.od.Cn=u,!1===o&&uD(e,r),u}function uN(e){var r=e.Xv;if("closed"===r||"errored"===r)return o0(new g("The stream (in "+r+" state) is not in the writable state and cannot be closed"));var s,o=o1(function(r,s){e.ed={di:r,K:s}}),u=e.Jv;return void 0!==u&&!0===e.ad&&"writable"===r&&u8(u),ux(s=e.$v,"close",0),uJ(s),o}function uO(e,r){"writable"!==e.Xv?uU(e):uD(e,r)}function uD(e,r){var s=e.$v;e.Xv="erroring",e.Vv=r;var o=e.Jv;
1void 0!==o&&uV(o,r),!1==(void 0!==e.rd||void 0!==e.ud)&&!0===s.fd&&uU(e)}function uU(e){e.Xv="errored",e.$v[uS]();var r=e.Vv;if(e.td.forEach(function(e){e.K(r)}),e.td=new o4,void 0!==e.od){var s=e.od;if(e.od=void 0,!0===s.hd)return s.K(r),void uF(e);o3(e.$v[uC](s.Zn),function(){s.di(),uF(e)},function(r){s.K(r),uF(e)})}else uF(e)}function uM(e){return void 0!==e.ed||void 0!==e.ud}function uF(e){void 0!==e.ed&&(e.ed.K(e.Vv),e.ed=void 0);var r=e.Jv;void 0!==r&&u2(r,e.Vv)}function uj(e,r){var s=e.Jv;void 0!==s&&r!==e.ad&&(!0===r?u5(s):u8(s)),e.ad=r}var uH=function(){function e(e){if(!1===u_(e))throw new g("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===uP(e))throw new g("This stream has already been locked for exclusive writing by another writer");this.vd=e,e.Jv=this;var r=e.Xv;if("writable"===r){!1===uM(e)&&!0===e.ad?u5(this):(s=this,u5(s),u8(s)),u1(this)}else if("erroring"===r)u4(this,e.Vv),u1(this);else if("closed"===r){o=this,u5(o),u8(o),u1(this),u3(this)}else{var s,o,u,a,h=e.Vv;u4(this,h),u=this,a=h,u1(u),u2(u,a)}}return w.defineProperty(e.prototype,"closed",{get:function(){return!1===uB(this)?o0(uZ("closed")):this.dc},enumerable:!0,configurable:!0}),w.defineProperty(e.prototype,"desiredSize",{get:function(){var e,r,s;if(!1===uB(this))throw uZ("desiredSize");if(void 0===this.vd)throw u0("desiredSize");return"errored"===(r=(e=this.vd).Xv)||"erroring"===r?null:"closed"===r?0:(s=e.$v).md-s.Kv},enumerable:!0,configurable:!0}),w.defineProperty(e.prototype,"ready",{get:function(){return!1===uB(this)?o0(uZ("ready")):this.dd},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===uB(this)?o0(uZ("abort")):void 0===this.vd?o0(u0("abort")):uI(this.vd,e)},e.prototype.close=function(){if(!1===uB(this))return o0(uZ("close"));var e,r=this.vd;return void 0===r?o0(u0("close")):!0===uM(r)?o0(new g("Cannot close an already-closing stream")):(e=this,uN(e.vd))},e.prototype.releaseLock=function(){if(!1===uB(this))throw uZ("releaseLock");void 0!==this.vd&&uX(this)},e.prototype.write=function(e){return!1===uB(this)?o0(uZ("write")):void 0===this.vd?o0(u0("write to")):uW(this,e)},e}();function uB(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"vd")}function uV(e,r){"pending"===e._d?u6(e,r):u4(e,r)}function uX(e){var r,s,o,u,a=e.vd,h=new g("Writer was released and can no longer be used to monitor the stream's closedness");uV(e,h),r=e,s=h,"pending"===r.ld?u2(r,s):(o=r,u=s,u1(o),u2(o,u)),a.Jv=void 0,e.vd=void 0}function uW(e,r){var s=e.vd,o=s.$v,u=function(e,r){try{return e.wd(r)}catch(r){return uQ(e,r),1}}(o,r);if(s!==e.vd)return o0(u0("write to"));var a=s.Xv;if("errored"===a)return o0(s.Vv);if(!0===uM(s)||"closed"===a)return o0(new g("The stream is closing or closed and cannot be written to"));if("erroring"===a)return o0(s.Vv);var h=o1(function(e,r){s.td.push({di:e,K:r})});return function(e,r,s){try{ux(e,{chunk:r},s)}catch(r){return void uQ(e,r)}var o=e.yd;!1===uM(o)&&"writable"===o.Xv&&uj(o,uG(e)),uJ(e)}(o,r,u),h}var uq=function(){function e(){throw new g("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1==(!!oX(this)&&!!w.prototype.hasOwnProperty.call(this,"yd")))throw new g("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.yd.Xv&&uK(this,e)},e.prototype[uC]=function(e){var r=this.kd(e);return u$(this),r},e.prototype[uS]=function(){uT(this)},e}();function uY(e,r,s,o,u,a,h,c){r.yd=e,e.$v=r,r.ri=void 0,r.Kv=void 0,uT(r),r.fd=!1,r.wd=c,r.md=h,r.pd=o,r.Ad=u,r.kd=a,uj(e,uG(r)),o3(oZ(s()),function(){r.fd=!0,uJ(r)},function(s){r.fd=!0,uO(e,s)})}function u$(e){e.pd=void 0,e.Ad=void 0,e.kd=void 0,e.wd=void 0}function uJ(e){var r=e.yd;if(!1!==e.fd&&void 0===r.rd)if("erroring"!==r.Xv){if(0!==e.ri.length){var s,o,u,a,h,c,f=e.ri.peek().value;"close"===f?((o=s=e.yd).ud=o.ed,o.ed=void 0,uA(e),u=e.Ad(),u$(e),o3(u,function(){var e;s.ud.di(void 0),s.ud=void 0,"erroring"===s.Xv&&(s.Vv=void 0,void 0!==s.od&&(s.od.di(),s.od=void 0)),s.Xv="closed",void 0!==(e=s.Jv)&&u3(e)},function(e){s.ud.K(e),s.ud=void 0,void 0!==s.od&&(s.od.K(e),s.od=void 0),uO(s,e)})):(a=f.chunk,(c=h=e.yd).rd=c.td.shift(),o3(e.pd(a),function(){h.rd.di(void 0),h.rd=void 0;var r=h.Xv;uA(e),!1===uM(h)&&"writable"===r&&uj(h,uG(e)),uJ(e)},function(r){"writable"===h.Xv&&u$(e),h.rd.K(r),h.rd=void 0,uO(h,r)}))}}else uU(r)}function uQ(e,r){"writable"===e.yd.Xv&&uK(e,r)}function uG(e){return 0>=e.md-e.Kv}function uK(e,r){var s=e.yd;u$(e),uD(s,r)}function uz(e){return new g("WritableStream.prototype."+e+" can only be used on a WritableStream")}function uZ(e){return new g("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function u0(e){return new g("Cannot "+e+" a stream using a released writer")}function u1(e){e.dc=o1(function(r,s){e.Wv=r,e.qv=s,e.ld="pending"})}function u2(e,r){o5(e.dc),e.qv(r),e.Wv=void 0,e.qv=void 0,e.ld="rejected"}function u3(e){e.Wv(void 0),e.Wv=void 0,e.qv=void 0,e.ld="resolved"}function u5(e){e.dd=o1(function(r,s){e.bd=r,e.Td=s}),e._d="pending"}function u4(e,r){u5(e),u6(e,r)}function u6(e,r){o5(e.dd),e.Td(r),e.bd=void 0,e.Td=void 0,e._d="rejected"}function u8(e){e.bd(void 0),e.bd=void 0,e.Td=void 0,e._d="fulfilled"}function u7(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}var u9,at="u">typeof DOMException?DOMException:void 0,ae=!function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(at)?((u9=function(e,r){this.message=e||"",this.name=r||"Error",y.captureStackTrace&&y.captureStackTrace(this,this.constructor)}).prototype=w.create(y.prototype),w.defineProperty(u9.prototype,"constructor",{value:u9,writable:!0,configurable:!0}),u9):at;function an(e,r,s,o,u,a){var h=us(e),c=new uH(r);e.zv=!0;var f=!1,l=oZ(void 0);return o1(function(p,v){var d,y,m;if(void 0!==a){if(d=function(){var s=new ae("Aborted","AbortError"),a=[];!1===o&&a.push(function(){return"writable"===r.Xv?uI(r,s):oZ(void 0)}),!1===u&&a.push(function(){return"readable"===e.Xv?a$(e,s):oZ(void 0)}),E(function(){return P.all(a.map(function(e){return e()}))},!0,s)},!0===a.aborted)return void d();a.addEventListener("abort",d)}if(k(e,h.dc,function(e){!1===o?E(function(){return uI(r,e)},!0,e):A(!0,e)}),k(r,c.dc,function(r){!1===u?E(function(){return a$(e,r)},!0,r):A(!0,r)}),y=h.dc,m=function(){!1===s?E(function(){var e,r;return r=(e=c.vd).Xv,!0===uM(e)||"closed"===r?oZ(void 0):"errored"===r?o0(e.Vv):uN(c.vd)}):A()},"closed"===e.Xv?m():o3(y,m),!0===uM(r)||"closed"===r.Xv){var w=new g("the destination writable stream closed before all data could be piped to it");!1===u?E(function(){return a$(e,w)},!0,w):A(!0,w)}function b(){var e=l;return o2(l,function(){return e!==l?b():void 0})}function k(e,r,s){"errored"===e.Xv?s(e.Vv):o3(r,void 0,s)}function E(e,s,o){function u(){o3(e(),function(){return x(s,o)},function(e){return x(!0,e)})}!0!==f&&(f=!0,"writable"===r.Xv&&!1===uM(r)?o3(b(),u):u())}function A(e,s){!0!==f&&(f=!0,"writable"===r.Xv&&!1===uM(r)?o3(b(),function(){return x(e,s)}):x(e,s))}function x(e,r){uX(c),o7(h),void 0!==a&&a.removeEventListener("abort",d),e?v(r):p(void 0)}o5(o1(function(e,r){!function s(o){o?e():o2(!0===f?oZ(!0):o2(c.dd,function(){return o2(um(h),function(e){return!0===e.done||(l=o2(uW(c,e.value),void 0,oB),!1)})}),s,r)}(!1)}))})}var ai=function(){function e(){throw new g}return w.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===ar(this))throw av("desiredSize");return af(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===ar(this))throw av("close");if(!1===al(this))throw new g("The stream is not in a state that permits close");aa(this)},e.prototype.enqueue=function(e){if(!1===ar(this))throw av("enqueue");if(!1===al(this))throw new g("The stream is not in a state that permits enqueue");return ah(this,e)},e.prototype.error=function(e){if(!1===ar(this))throw av("error");ac(this,e)},e.prototype[ui]=function(e){uT(this);var r=this.Ed(e);return au(this),r},e.prototype[ur]=function(){var e=this.Sd;if(this.ri.length>0){var r=uA(this);return!0===this.Id&&0===this.ri.length?(au(this),aJ(e)):as(this),oZ(o6(r,!1,e.Hv.Uv))}var s=uo(e);return as(this),s},e}();function ar(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"Sd")}function as(e){!1!==ao(e)&&(!0!==e.Rd?(e.Rd=!0,o3(e.Nd(),function(){e.Rd=!1,!0===e.Dd&&(e.Dd=!1,as(e))},function(r){ac(e,r)})):e.Dd=!0)}function ao(e){var r=e.Sd;return!1!==al(e)&&!1!==e.fd&&(!0===aY(r)&&ua(r)>0||af(e)>0)}function au(e){e.Nd=void 0,e.Ed=void 0,e.wd=void 0}function aa(e){var r=e.Sd;e.Id=!0,0===e.ri.length&&(au(e),aJ(r))}function ah(e,r){var s=e.Sd;if(!0===aY(s)&&ua(s)>0)uu(s,r,!1);else{var o=void 0;try{o=e.wd(r)}catch(r){throw ac(e,r),r}try{ux(e,r,o)}catch(r){throw ac(e,r),r}}as(e)}function ac(e,r){var s=e.Sd;"readable"===s.Xv&&(uT(e),au(e),aQ(s,r))}function af(e){var r=e.Sd.Xv;return"errored"===r?null:"closed"===r?0:e.md-e.Kv}function al(e){var r=e.Sd.Xv;return!1===e.Id&&"readable"===r}function ap(e,r,s,o,u,a,h){r.Sd=e,r.ri=void 0,r.Kv=void 0,uT(r),r.fd=!1,r.Id=!1,r.Dd=!1,r.Rd=!1,r.wd=h,r.md=a,r.Nd=o,r.Ed=u,e.Yv=r,o3(oZ(s()),function(){r.fd=!0,as(r)},function(e){ac(r,e)})}function av(e){return new g("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}var ad=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&b.floor(e)===e},ay=function(){function e(){throw new g("ReadableStreamBYOBRequest cannot be used directly")}return w.defineProperty(e.prototype,"view",{get:function(){if(!1===aw(this))throw aO("view");return this.Cd},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===aw(this))throw aO("respond");if(void 0===this.Pd)throw new g("This BYOB request has been invalidated");this.Cd.buffer,function(e,r){if(!1===oq(r=Number(r)))throw RangeError("bytesWritten must be a finite");aL(e,r)}(this.Pd,e)},e.prototype.respondWithNewView=function(e){if(!1===aw(this))throw aO("respond");if(void 0===this.Pd)throw new g("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new g("You can only respond with array buffer views");e.buffer,function(e,r){var s=e.Bd.peek();if(s.byteOffset+s.bytesFilled!==r.byteOffset)throw RangeError("The region specified by view does not match byobRequest");
1if(s.byteLength!==r.byteLength)throw RangeError("The buffer of view has different capacity than byobRequest");s.buffer=r.buffer,aL(e,r.byteLength)}(this.Pd,e)},e}(),ag=function(){function e(){throw new g("ReadableByteStreamController constructor cannot be used directly")}return w.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===am(this))throw aD("byobRequest");if(void 0===this.Od&&this.Bd.length>0){var e=this.Bd.peek(),r=new x(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),s=w.create(ay.prototype);s.Pd=this,s.Cd=r,this.Od=s}return this.Od},enumerable:!0,configurable:!0}),w.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===am(this))throw aD("desiredSize");return aN(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===am(this))throw aD("close");if(!0===this.Id)throw new g("The stream has already been closed; do not close it again!");var e=this.Ld.Xv;if("readable"!==e)throw new g("The stream (in "+e+" state) is not in the readable state and cannot be closed");!function(e){var r=e.Ld;if(e.Kv>0)return e.Id=!0;if(e.Bd.length>0&&e.Bd.peek().bytesFilled>0){var s=new g("Insufficient bytes to fill elements in the given buffer");throw aI(e,s),s}aP(e),aJ(r)}(this)},e.prototype.enqueue=function(e){if(!1===am(this))throw aD("enqueue");if(!0===this.Id)throw new g("stream is closed or draining");var r,s,o,u,a=this.Ld.Xv;if("readable"!==a)throw new g("The stream (in "+a+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(e))throw new g("You can only enqueue array buffer views when using a ReadableByteStreamController");e.buffer,r=this.Ld,s=e.buffer,o=e.byteOffset,u=e.byteLength,!0===uh(r)?0===ua(r)?aA(this,s,o,u):uu(r,new x(s,o,u),!1):!0===aF(r)?(aA(this,s,o,u),aR(this)):aA(this,s,o,u),ab(this)},e.prototype.error=function(e){if(!1===am(this))throw aD("error");aI(this,e)},e.prototype[ui]=function(e){this.Bd.length>0&&(this.Bd.peek().bytesFilled=0),uT(this);var r=this.Ed(e);return aP(this),r},e.prototype[ur]=function(){var e=this.Ld;if(this.Kv>0){var r=this.ri.shift();this.Kv-=r.byteLength,aC(this);var s=void 0;try{s=new x(r.buffer,r.byteOffset,r.byteLength)}catch(e){return o0(e)}return oZ(o6(s,!1,e.Hv.Uv))}var o=this.Md;if(void 0!==o){var u=void 0;try{u=new ArrayBuffer(o)}catch(e){return o0(e)}var a={buffer:u,byteOffset:0,byteLength:o,bytesFilled:0,elementSize:1,ctor:x,readerType:"default"};this.Bd.push(a)}var h=uo(e);return ab(this),h},e}();function am(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"Ld")}function aw(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"Pd")}function ab(e){var r;!1!=("readable"===(r=e.Ld).Xv&&!0!==e.Id&&!1!==e.fd&&!!(!0===uh(r)&&ua(r)>0||!0===aF(r)&&aM(r)>0||aN(e)>0))&&(!0!==e.Rd?(e.Rd=!0,o3(e.Nd(),function(){e.Rd=!1,!0===e.Dd&&(e.Dd=!1,ab(e))},function(r){aI(e,r)})):e.Dd=!0)}function ak(e,r){var s,o,u=!1;"closed"===e.Xv&&(u=!0);var a=aE(r);"default"===r.readerType?uu(e,a,u):(s=u,(o=e.Hv).xd.shift().di(o6(a,s,o.Uv)))}function aE(e){var r=e.bytesFilled,s=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,r/s)}function aA(e,r,s,o){e.ri.push({buffer:r,byteOffset:s,byteLength:o}),e.Kv+=o}function ax(e,r){var s=r.elementSize,o=r.bytesFilled-r.bytesFilled%s,u=b.min(e.Kv,r.byteLength-r.bytesFilled),a=r.bytesFilled+u,h=a-a%s,c=u,f=!1;h>o&&(c=h-r.bytesFilled,f=!0);for(var l,p,v,d=e.ri;c>0;){var y=d.peek(),g=b.min(c,y.byteLength),m=r.byteOffset+r.bytesFilled;l=r.buffer,p=y.buffer,v=y.byteOffset,new x(l).set(new x(p,v,g),m),y.byteLength===g?d.shift():(y.byteOffset+=g,y.byteLength-=g),e.Kv-=g,aT(e,g,r),c-=g}return f}function aT(e,r,s){aS(e),s.bytesFilled+=r}function aC(e){0===e.Kv&&!0===e.Id?(aP(e),aJ(e.Ld)):ab(e)}function aS(e){void 0!==e.Od&&(e.Od.Pd=void 0,e.Od.Cd=void 0,e.Od=void 0)}function aR(e){for(;e.Bd.length>0;){if(0===e.Kv)return;var r=e.Bd.peek();!0===ax(e,r)&&(a_(e),ak(e.Ld,r))}}function aL(e,r){var s=e.Bd.peek();if("closed"===e.Ld.Xv){if(0!==r)throw new g("bytesWritten must be 0 when calling respond() on a closed stream");s.buffer=s.buffer;var o=e.Ld;if(!0===aF(o))for(;aM(o)>0;)ak(o,a_(e))}else{if(s.bytesFilled+r>s.byteLength)throw RangeError("bytesWritten out of range");if(aT(e,r,s),!(s.bytesFilled<s.elementSize)){a_(e);var u=s.bytesFilled%s.elementSize;if(u>0){var a=s.byteOffset+s.bytesFilled,h=s.buffer.slice(a-u,a);aA(e,h,0,h.byteLength)}s.buffer=s.buffer,s.bytesFilled-=u,ak(e.Ld,s),aR(e)}}ab(e)}function a_(e){var r=e.Bd.shift();return aS(e),r}function aP(e){e.Nd=void 0,e.Ed=void 0}function aI(e,r){var s=e.Ld;"readable"===s.Xv&&(aS(e),e.Bd=new o4,uT(e),aP(e),aQ(s,r))}function aN(e){var r=e.Ld.Xv;return"errored"===r?null:"closed"===r?0:e.md-e.Kv}function aO(e){return new g("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function aD(e){return new g("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function aU(e){return o1(function(r,s){e.Hv.xd.push({di:r,K:s})})}function aM(e){return e.Hv.xd.length}function aF(e){var r=e.Hv;return void 0!==r&&!!aH(r)}var aj=function(){function e(e){if(!aq(e))throw new g("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===am(e.Yv))throw new g("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(aY(e))throw new g("This stream has already been locked for exclusive reading by another reader");o8(this,e),this.xd=new o4}return w.defineProperty(e.prototype,"closed",{get:function(){return aH(this)?this.dc:o0(aB("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return aH(this)?void 0===this.Fv?o0(o9("cancel")):a$(this.Fv,e):o0(aB("c
1ancel"))},e.prototype.read=function(e){var r,s,o;return aH(this)?void 0===this.Fv?o0(o9("read from")):ArrayBuffer.isView(e)?(e.buffer,0===e.byteLength?o0(new g("view must have non-zero byteLength")):(r=this,s=e,((o=r.Fv).zv=!0,"errored"===o.Xv)?o0(o.Vv):function(e,r){var s=e.Ld,o=1;r.constructor!==DataView&&(o=r.constructor.BYTES_PER_ELEMENT);var u=r.constructor,a={buffer:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength,bytesFilled:0,elementSize:o,ctor:u,readerType:"byob"};if(e.Bd.length>0)return e.Bd.push(a),aU(s);if("closed"===s.Xv)return oZ(o6(new u(a.buffer,a.byteOffset,0),!0,s.Hv.Uv));if(e.Kv>0){if(!0===ax(e,a)){var h=aE(a);return aC(e),oZ(o6(h,!1,s.Hv.Uv))}if(!0===e.Id){var c=new g("Insufficient bytes to fill elements in the given buffer");return aI(e,c),o0(c)}}e.Bd.push(a);var f=aU(s);return ab(e),f}(o.Yv,s))):o0(new g("view must be an array buffer view")):o0(aB("read"))},e.prototype.releaseLock=function(){if(!aH(this))throw aB("releaseLock");if(void 0!==this.Fv){if(this.xd.length>0)throw new g("Tried to release a reader lock when that reader has pending read() calls un-settled");o7(this)}},e}();function aH(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"xd")}function aB(e){return new g("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var aV=function(){function e(e,r){void 0===e&&(e={}),void 0===r&&(r={}),aW(this);var s=r.size,o=r.highWaterMark,u=e.type;if("bytes"===String(u)){if(void 0!==s)throw RangeError("The strategy for a byte stream cannot have a size function");void 0===o&&(o=0),function(e,r,s){var o,u=w.create(ag.prototype),a=o$(r,"pull",0,[u]),h=o$(r,"cancel",1,[]),c=r.autoAllocateChunkSize;if(void 0!==c&&(!1===ad(c=Number(c))||c<=0))throw RangeError("autoAllocateChunkSize must be a positive integer");o=c,u.Ld=e,u.Dd=!1,u.Rd=!1,u.Od=void 0,u.ri=u.Kv=void 0,uT(u),u.Id=!1,u.fd=!1,u.md=oG(s),u.Nd=a,u.Ed=h,u.Md=o,u.Bd=new o4,e.Yv=u,o3(oZ(function(){return oJ(r,"start",[u])}()),function(){u.fd=!0,ab(u)},function(e){aI(u,e)})}(this,e,o=oG(o))}else{if(void 0!==u)throw RangeError("Invalid type is specified");var a,h,c,f,l=oK(s);void 0===o&&(o=1),a=e,h=o=oG(o),f=o$(a,"pull",0,[c=w.create(ai.prototype)]),ap(this,c,function(){return oJ(a,"start",[c])},f,o$(a,"cancel",1,[]),h,l)}}return w.defineProperty(e.prototype,"locked",{get:function(){if(!1===aq(this))throw aG("locked");return aY(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===aq(this)?o0(aG("cancel")):!0===aY(this)?o0(new g("Cannot cancel a stream that already has a reader")):a$(this,e)},e.prototype.getReader=function(e){var r,s=(void 0===e?{}:e).mode;if(!1===aq(this))throw aG("getReader");if(void 0===s)return us(this,!0);if("byob"===(s=String(s)))return(r=new aj(this)).Uv=!0,r;throw RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(e,r){var s=e.writable,o=e.readable,u=void 0===r?{}:r,a=u.preventClose,h=u.preventAbort,c=u.preventCancel,f=u.signal;if(!1===aq(this))throw aG("pipeThrough");if(!1===u_(s))throw new g("writable argument to pipeThrough must be a WritableStream");if(!1===aq(o))throw new g("readable argument to pipeThrough must be a ReadableStream");if(a=!!a,h=!!h,c=!!c,void 0!==f&&!u7(f))throw new g("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===aY(this))throw new g("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===uP(s))throw new g("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return o5(an(this,s,a,h,c,f)),o},e.prototype.pipeTo=function(e,r){var s=void 0===r?{}:r,o=s.preventClose,u=s.preventAbort,a=s.preventCancel,h=s.signal;return!1===aq(this)?o0(aG("pipeTo")):!1===u_(e)?o0(new g("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(o=!!o,u=!!u,a=!!a,void 0===h||u7(h)?!0===aY(this)?o0(new g("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===uP(e)?o0(new g("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):an(this,e,o,u,a,h):o0(new g("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===aq(this))throw aG("tee");var e=function(e){var r,s,o,u,a,h=us(e),c=!1,f=!1,l=!1,p=o1(function(e){a=e});function v(){return!0===c||(c=!0,o5(o2(um(h),function(e){if(c=!1,!0===e.done)return!1===f&&aa(o.Yv),void(!1===l&&aa(u.Yv));var r=e.value;!1===f&&ah(o.Yv,r),!1===l&&ah(u.Yv,r)},void 0))),oZ(void 0)}function d(){}
1return o=aX(d,v,function(o){if(f=!0,r=o,!0===l){var u=a$(e,oW([r,s]));a(u)}return p}),u=aX(d,v,function(o){if(l=!0,s=o,!0===f){var u=a$(e,oW([r,s]));a(u)}return p}),o3(h.dc,void 0,function(e){ac(o.Yv,e),ac(u.Yv,e)}),[o,u]}(this);return oW(e)},e.prototype.getIterator=function(e){var r,s,o,u=(void 0===e?{}:e).preventCancel;if(!1===aq(this))throw aG("getIterator");return void 0===(r=void 0!==u&&u)&&(r=!1),s=us(this),(o=w.create(ub)).Qv=s,o.Zv=!!r,o},e}();function aX(e,r,s,o,u){void 0===o&&(o=1),void 0===u&&(u=function(){return 1});var a=w.create(aV.prototype);return aW(a),ap(a,w.create(ai.prototype),e,r,s,o,u),a}function aW(e){e.Xv="readable",e.Hv=void 0,e.Vv=void 0,e.zv=!1}function aq(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"Yv")}function aY(e){return void 0!==e.Hv}function a$(e,r){return e.zv=!0,"closed"===e.Xv?oZ(void 0):"errored"===e.Xv?o0(e.Vv):(aJ(e),o2(e.Yv[ui](r),oB,void 0))}function aJ(e){e.Xv="closed";var r=e.Hv;void 0!==r&&(ug(r)&&(r.Gv.forEach(function(e){e.di(o6(void 0,!0,r.Uv))}),r.Gv=new o4),un(r))}function aQ(e,r){e.Xv="errored",e.Vv=r;var s=e.Hv;void 0!==s&&(ug(s)?(s.Gv.forEach(function(e){e.K(r)}),s.Gv=new o4):(s.xd.forEach(function(e){e.K(r)}),s.xd=new o4),ue(s,r))}function aG(e){return new g("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}"symbol"==typeof oH.asyncIterator&&w.defineProperty(aV.prototype,oH.asyncIterator,{value:aV.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var aK=function(){function e(e){var r=e.highWaterMark;this.highWaterMark=r}return e.prototype.size=function(e){return e.byteLength},e}(),az=function(){function e(e){var r=e.highWaterMark;this.highWaterMark=r}return e.prototype.size=function(){return 1},e}(),aZ=function(){function e(e,r,s){void 0===e&&(e={}),void 0===r&&(r={}),void 0===s&&(s={});var o=r.size,u=r.highWaterMark,a=s.size,h=s.highWaterMark;if(void 0!==e.writableType)throw RangeError("Invalid writable type specified");var c=oK(o);if(void 0===u&&(u=1),u=oG(u),void 0!==e.readableType)throw RangeError("Invalid readable type specified");var f,l=oK(a);void 0===h&&(h=0),h=oG(h),function(e,r,s,o,u,a){var h,c,f;function l(){return r}void 0===(h=s)&&(h=1),void 0===(c=o)&&(c=function(){return 1}),uL(f=w.create(uR.prototype)),uY(f,w.create(uq.prototype),l,function(r){var s=e.Fd;return!0===e.ad?o2(e.Hd,function(){var o=e.Ud;if("erroring"===o.Xv)throw o.Vv;return a7(s,r)},void 0):a7(s,r)},function(){var r,s,o;return r=e.Xd,o=(s=e.Fd).Vd(),a6(s),o2(o,function(){if("errored"===r.Xv)throw r.Vv;var e=r.Yv;!0===al(e)&&aa(e)},function(s){throw a1(e,s),r.Vv})},function(r){return a1(e,r),oZ(void 0)},h,c),e.Ud=f,e.Xd=aX(l,function(){return a3(e,!1),e.Hd},function(r){return a2(e,r),oZ(void 0)},u,a),e.ad=void 0,e.Hd=void 0,e.Wd=void 0,a3(e,!0),e.Fd=void 0}(this,o1(function(e){f=e}),u,c,h,l),function(e,r){var s,o=w.create(a5.prototype),u=function(e){try{var r;return a8(o,e),r=void 0,oZ(r)}catch(e){return o0(e)}},a=r.transform;if(void 0!==a){if("function"!=typeof a)throw new g("transform is not a method");u=function(e){return oQ(a,r,[e,o])}}var h=o$(r,"flush",0,[o]);s=u,o.qd=e,e.Fd=o,o.Gd=s,o.Vd=h}(this,e);var p=oJ(e,"start",[this.Fd]);f(p)}return w.defineProperty(e.prototype,"readable",{get:function(){if(!1===a0(this))throw ht("readable");return this.Xd},enumerable:!0,configurable:!0}),w.defineProperty(e.prototype,"writable",{get:function(){if(!1===a0(this))throw ht("writable");return this.Ud},enumerable:!0,configurable:!0}),e}();function a0(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"Fd")}function a1(e,r){ac(e.Xd.Yv,r),a2(e,r)}function a2(e,r){a6(e.Fd),uQ(e.Ud.$v,r),!0===e.ad&&a3(e,!1)}function a3(e,r){void 0!==e.Hd&&e.Wd(),e.Hd=o1(function(r){e.Wd=r}),e.ad=r}var a5=function(){function e(){throw new g("TransformStreamDefaultController instances cannot be created directly")}return w.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===a4(this))throw a9("desiredSize");return af(this.qd.Xd.Yv)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===a4(this))throw a9("enqueue");a8(this,e)},e.prototype.error=function(e){if(!1===a4(this))throw a9("error");a1(this.qd,e)},e.prototype.terminate=function(){var e,r;if(!1===a4(this))throw a9("terminate");!0===al(r=(e=this.qd).Xd.Yv)&&aa(r),a2(e,new g("TransformStream terminated"))},e}();function a4(e){return!!oX(e)&&!!w.prototype.hasOwnProperty.call(e,"qd")}function a6(e){e.Gd=void 0,e.Vd=void 0}function a8(e,r){var s=e.qd,o=s.Xd.Yv;if(!1===al(o))throw new g("Readable side is not in a state that permits enqueue");try{ah(o,r)}catch(e){throw a2(s,e),s.Xd.Vv}!0!==ao(o)!==s.ad&&a3(s,!0)}function a7(e,r){return o2(e.Gd(r),void 0,function(r){throw a1(e.qd,r),r})}function a9(e){return new g("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function ht(e){return new g("TransformStream.prototype."+e+" can only be used on a TransformStream")}var he=function(e){function r(r){var s;return(s=e.call(this,""+r.join("\n"),r[0])||this).causes=r,s}return j(r,e),M(r,[{key:"name",get:function(){return"AggregateError"}}]),r}(t9);function hn(e){var r;return r=[new x(e)],new aV({start:function(e){for(var s=0;s<r.length;s++){var o=r[s];e.enqueue(o)}e.close()}})}function hi(e,r){var s,o,u,a,h,c;return(s=r,o=e.getReader(),u=new sG,a=function(){h();var e=new rA;o.cancel(e).catch(I),u.ac(e)},h=function(){s&&(s.uh(a),s=void 0)},s&&(s.Ka?a():s.eh(a)),c=[],P.resolve(o.read()).then(function e(r){return r.done?(h(),P.resolve(c)):(c.push(r.value),P.resolve(o.read()).then(e))}).then(function(e){h(),u.uc(e)},function(e){h(),u.ac(e)}),u.ec).then(function(e){return r9(e).buffer})}function hr(e,r){var s=r,o=new aZ,u=o.readable,a=o.writable,h=a.getWriter(),c=function(){s&&s.hh()};return h.closed.then(c,c),e.then(function(e){return s=void 0,h.releaseLock(),e.pipeTo(a).catch(I)}
1,function(e){return s=void 0,h.releaseLock(),a.abort(e).catch(I)}),u}function hs(e){var r=new aZ,s=r.readable,o=r.writable;return e.pipeTo(o,{preventCancel:!0}).catch(function(e){var r;r=Z(e)?e[0]===e[1]||rx(e[0])&&rx(e[1])?e[0]:new he(e):e,o.abort(r).catch(I)}),s.tee()}var ho,hu=function(){function e(e){this.zd=e}var r=e.prototype;return r.addEventListener=function(e,r){this.zd.eh(r)},r.removeEventListener=function(e,r){this.zd.uh(r)},M(e,[{key:"aborted",get:function(){return this.zd.Ka}}]),e}();function ha(e){return sM(new x(e))}function hh(e){return new x(function(e){for(var r,s=[],o=0;o<e.length;o++)r=e[o],0!=(0xffffff80&r)?(0==(0xfffff800&r)?s.push(r>>6&31|192):0==(0xffff0000&r)?(ss(r),s.push(r>>12&15|224),s.push(so(r,6))):0==(0xffe00000&r)&&(s.push(r>>18&7|240),s.push(so(r,12)),s.push(so(r,6))),s.push(63&r|128)):s.push(r);return s}(function(e){for(var r=[],s=0,o=e.length;s<o;){var u=e.charCodeAt(s++);if(u>=55296&&u<=56319&&s<o){var a=e.charCodeAt(s++);56320==(64512&a)?r.push(((1023&u)<<10)+(1023&a)+65536):(r.push(u),s--)}else r.push(u)}return r}(e))).buffer}(hb=ho||(ho={}))[hb.Nv=0]="Nv",hb[hb.jd=1]="jd";var hc=function(){function e(){}var r=e.prototype;return r.Yd=function(e){return this.Qd(e).then(JSON.parse)},r.Zd=function(e,r){switch(e){case up.Iv:return this.Kd(r);case up.Rv:return this.Yd(r);case up.Nv:return this.Jd();case up.Ku:return this.Qd(r);default:throw new g}},e}();function hf(e){return(e.get("content-type")||"").toLowerCase()}var hl=function(e){function r(r){var s;return(s=e.call(this)||this).ol=!1,s.al=void 0,s.hl=new sG,s.hl.ec.catch(I),s.cl(r),s}j(r,e);var s=r.prototype;return s.fl=function(){return this.hl.ec},s.Qd=function(e){return this.vl(hp,e)},s.Yd=function(e){return this.vl(hd,e)},s.Kd=function(e){return this.vl(hg,e)},s.Jd=function(){var e;return this.dl((e=this.al).Ua===ho.Nv?e.Jd:hr(e.ec.then(hm).then(hn),e.ul))},s.vl=function(e,r){if(this.ol)return P.reject(new g("Already used"));this.ol=!0;var s=e(this.al,r);return this.hl.uc(s.then(I)),s},s.dl=function(e){if(this.ol)throw new g("Already used");if(e.locked)throw new g("Body stream is locked");this.ol=!0;var r=new aZ,s=P.resolve(e.pipeTo(r.writable));return this.hl.uc(s),r.readable},s.cl=function(e){this.al=e,e.Ua===ho.jd&&e.ec.catch(I)},s.ll=function(){if(this.ol)throw new g("Already used");var e=function(e){if(e.Ua===ho.Nv){var r=e.Jd.tee(),s=r[0],o=r[1];return[{Ua:e.Ua,Jd:s,$d:e.$d},{Ua:e.Ua,Jd:o,$d:e.$d}]}var u=e.ul.vh(),a=u[0],h=u[1];return[{Ua:e.Ua,ec:e.ec,ul:a},{Ua:e.Ua,ec:e.ec,ul:h}]}(this.al),s=e[0],o=e[1];return this.cl(s),new r(o)},M(r,[{key:"_l",get:function(){return this.ol}}]),r}(hc);function hp(e,r){return e.Ua===ho.Nv?hi(e.Jd,r).then(ha):(r&&e.ul.fh(r),rL(e.ec.then(hv),e.ul))}function hv(e){switch(e.Ua){case up.Ku:return P.resolve(e.il||"");case up.Iv:return P.resolve(e.il).then(ha);case up.Rv:return P.resolve(e.il).then(JSON.stringify)}}function hd(e,r){return e.Ua===ho.Nv?hp(e,r).then(JSON.parse):(r&&e.ul.fh(r),rL(e.ec.then(hy),e.ul))}function hy(e){return e.Ua===up.Rv?P.resolve(e.il):hv(e).then(JSON.parse)}function hg(e,r){return e.Ua===ho.Nv?hi(e.Jd,r):(r&&e.ul.fh(r),rL(e.ec.then(hm),e.ul))}function hm(e){switch(e.Ua){case up.Iv:return P.resolve(e.il);case up.Ku:case up.Rv:return hv(e).then(hh)}}function hw(e){return e.wl>=200&&e.wl<=299||304===e.wl}var hb,hk,hE,hA,hx,hT=function(e){function r(r,s){s?(u=s.yl,a=s.Al,h=s.wl,c=s.bl,f=s.Tl):(u=[],a=up.Ku,h=200,c="OK",f=!1);var o,u,a,h,c,f,l=r.El,p=new oM(r.yl||u),v=r.Al||a,d=r.Sl||(s&&s.El===l?s.Sl:l.Il),y=s?s.Rl:null,m=function(e,r,s){if(e instanceof hc)return e;if(e instanceof aV)return new hl({Ua:ho.Nv,Jd:e,$d:hf(s)});var o=hf(s),u=P.resolve(e).then(function(e){if(e){if("string"==typeof e)return{Ua:up.Ku,il:e,$d:o||"text/plain;charset=UTF-8"};if(e instanceof ArrayBuffer||r6(e)){var r;return{Ua:up.Iv,il:(r=e)instanceof ArrayBuffer?r:sY(sV(r)).buffer,$d:o}}if(tn(e)||Z(e))return{Ua:up.Rv,il:e,$d:o};throw new g("Unsupported BodyInit type")}return{Ua:up.Ku,il:null,$d:o}});return new hl({Ua:ho.jd,ec:u,ul:r})}(void 0!==r.Fs?r.Fs:y,r.ul||new rE,p);return(o=e.call(this,m)||this).yl=void 0,o.El=void 0,o.Sl=void 0,o.Al=void 0,o.wl=void 0,o.bl=void 0,o.Tl=void 0,o.yl=p,o.El=l,o.Sl=d,o.Al=v,o.wl=void 0!==r.wl?r.wl:h,o.bl=void 0!==r.bl?String(r.bl):c,o.Tl=r.Tl||f,o}j(r,e);var s=r.prototype;return s.Fs=function(e){return this.Zd(this.Al,e)},s.tc=function(){return new r({Fs:this.ll(),El:this.El},this)},r}(function(e){function r(r){var s;return(s=e.call(this)||this).Rl=void 0,s.Rl=r,s}j(r,e);var s=r.prototype;return s.fl=function(){return this.Rl.fl()},s.Qd=function(e){return this.Rl.Qd(e)},s.Yd=function(e){return this.Rl.Yd(e)},s.Kd=function(e){return this.Rl.Kd(e)},s.Jd=function(){return this.Rl.Jd()},s.ll=function(){return this.Rl.ll()},M(r,[{key:"_l",get:function(){return this.Rl._l}}]),r}(hc));
1(hC=hk||(hk={})).DELETE="DELETE",hC.GET="GET",hC.HEAD="HEAD",hC.OPTIONS="OPTIONS",hC.POST="POST",hC.PUT="PUT",(hS=hE||(hE={})).Nl="",hS.Dl="manifest",hS.Cl="segment",hS.Pl="content-protection",(hR=hA||(hA={})).Nl="",hR.Bl="initialization-segment",hR.Ol="fairplay-license",hR.Ll="fairplay-certificate",hR.Ml="widevine-license",hR.xl="widevine-certificate",hR.Ul="playready-license",hR.Fl="clearkey-license",hR.Hl="aes128-key",(hL=hx||(hx={})).Nl="",hL.Xl="audio",hL.Vl="video",hL.Ku="text",hL.Wl="image";var hC,hS,hR,hL,h_,hP=function(e,r){this.il=void 0,this.yl=void 0,this.ql=void 0,this.Al=void 0,this.Gl=void 0,this.dh=void 0,this.Ua=void 0,this.zl=void 0,this.jl=void 0,this.Il=void 0,this.Yl=void 0,this.Ql=void 0;var s,o,u,a,h,c,f,l,p,v,d,y=e.Il;r?(s=r.il,o=r.yl,u=r.ql,a=r.Al,h=r.Gl,c=r.dh,f=r.Ua,l=r.zl,p=r.jl,v=r.Yl,d=r.Ql):(s=null,o={},u=hk.GET,a=up.Ku,h=0,f=hE.Nl,l=hA.Nl,p=hx.Nl,v=!1),this.Il=y,this.il=e.il||s,this.yl=new oM(e.yl||o),this.ql=e.ql||u,this.Al=e.Al||a,this.Gl=void 0!==e.Gl?Number(e.Gl)||0:h,this.dh=e.dh||c||(new rE).dh,this.Ua=e.Ua||f,this.zl=e.zl||l,this.jl=e.jl||p,this.Yl=void 0!==e.Yl?!!e.Yl:v,this.Ql=e.Ql||d},hI=function(){function e(){}var r=e.prototype;return r.El=function(e){var r,s=new hT({Fs:null,yl:{},El:r=new hP(e),Sl:r.Il,Al:r.Al,wl:0,bl:ul.Kf});return P.resolve(s)},r.Zl=function(e){},r.Kl=function(){},e}(),hN=function(){function e(e,r){void 0===r&&(r=!0),this.Jl=void 0,this.$l=void 0,this.Jl=e,this.$l=r}var r=e.prototype;return r.El=function(e){var r=this.t_(e);return this.Jl.El(r)},r.Zl=function(e){return this.Jl.Zl(this.n_(e))},r.t_=function(r){var s=new hP(r);return this.$l||(s=new hP({Il:e.i_(s.Il)},s)),s},r.n_=function(r){var s=r.Il;return this.$l||(s=e.i_(s)),{Il:s,il:r.il}},e.i_=function(e){return _.ma&&nW(e,"http://")?e.replace(":","s:"):e},r.Kl=function(){this.Jl.Kl()},M(e,null,[{key:"r_",get:function(){return e.e_||(e.e_=new e(new hI)),e.e_}}]),e}();hN.e_=void 0,(h1=h_||(h_={})).u_="HttpOpenError",h1.s_="HttpResponseError",h1.o_="HttpTimeoutError";var hO=function(e){function r(r,s,o){var u;return(u=e.call(this,s,o)||this).a_=void 0,u.a_=r,u}return j(r,e),M(r,[{key:"El",get:function(){return this.a_}}]),r}(t9),hD=function(e){function r(r,s){return e.call(this,r,"Error while opening "+r.Il+". Invalid URL.",s)||this}return j(r,e),M(r,[{key:"name",get:function(){return h_.u_}}]),r}(hO),hU=function(e){function r(r,s,o){var u;return(u=e.call(this,r.El,null!=o?o:"Error while loading "+r.El.Il+", status code "+r.wl,s)||this).h_=void 0,u.h_=r,u}return j(r,e),M(r,[{key:"name",get:function(){return h_.s_}},{key:"c_",get:function(){return this.h_}}]),r}(hO),hM=function(e){function r(r,s){return e.call(this,r,"Request for "+r.Il+" timed out after "+r.Gl+" seconds.",s)||this}return j(r,e),M(r,[{key:"name",get:function(){return h_.o_}}]),r}(hO),hF=function(e,r){return(hF=w.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])})(e,r)};function hj(e,r){function s(){this.constructor=e}hF(e,r),e.prototype=null===r?w.create(r):(s.prototype=r.prototype,new s)}var hH="object"==typeof a?a:"object"==typeof o?o:"object"==typeof s.g?s.g:null,hB=function(){var e=hH.Blob;if(e)try{return new e,function(e,r){return new hH.Blob(e,r)}}catch(e){}var r=hH.BlobBuilder||hH.WebKitBlobBuilder||hH.MozBlobBuilder||hH.MSBlobBuilder;return r?function(e,s){var o=new r;if(e)for(var u=0;u<e.length;u++){var a=e[u];o.append(a)}return o.getBlob(s&&s.type||"")}:null}(),hV="function"==typeof aV?aV:void 0;function hX(e){return e&&"function"==typeof e.getReader}function hW(e){if("function"!=typeof e)return!1;try{var r=!1,s=new e({start:function(){r=!0}});return!!r&&hX(s)}catch(e){return!1}}var hq=function(){function e(e,r){this.Hv=e,this.f_=r}return e.prototype.pull=function(e){var r=this;return this.Hv.read().then(function(s){r.f_&&r.f_(s),s.done?e.close():e.enqueue(s.value)})},e.prototype.cancel=function(e){return this.Hv.cancel(e)},e}();function hY(e,r){return r.constructor===e?r:new e(new hq(r.getReader()),{highWaterMark:0})}var h$=function(){function e(e,r){this.v_=e,this.Pt=r}return e.prototype.pull=function(e){return this.v_().then(function(r){e.enqueue(new x(r)),e.close()})},e.prototype.cancel=function(e){this.Pt&&this.Pt(e)},e}();function hJ(e,r,s){return new e(new h$(r,s),{highWaterMark:0})}var hQ={searchParams:"URLSearchParams"in hH,iterable:"Symbol"in hH&&"iterator"in Symbol,blob:"FileReader"in hH&&!!hB,formData:"FormData"in hH,arrayBuffer:"ArrayBuffer"in hH,stream:hW(hV),streamRequest:"Request"in hH&&"body"in hH.Request.prototype,streamResponse:"Response"in hH&&"body"in hH.Response.prototype,abort:"AbortController"in hH&&"Request"in hH&&"signal"in hH.Request.prototype,encoding:"TextEncoder"
1in hH&&"TextDecoder"in hH,url:"URL"in hH&&function(e){try{return new hH.URL(e).toString()===e}catch(e){return!1}}("http://example.com/"),firefox:"navigator"in hH&&/Firefox\//.test(hH.navigator.userAgent)};function hG(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new g("Invalid character in header field name");return e}function hK(e){return"string"!=typeof e&&(e=String(e)),e}function hz(e){var r={next:function(){var r=e.shift();return{done:void 0===r,value:r}}};return hQ.iterable&&(r[Symbol.iterator]=function(){return r}),r}var hZ=function(){function e(e){var r=this;this.Pa={};var s=function(e,s){Array.isArray(e)&&2===e.length?r.append(e[0],e[1]):r.append(s,e)};e&&"function"==typeof e.forEach?e.forEach(s):hQ.iterable&&e&&e[Symbol.iterator]?Array.from(e).forEach(s):e&&w.getOwnPropertyNames(e).forEach(function(s){r.append(s,e[s])})}return e.prototype.append=function(e,r){e=hG(e),r=hK(r);var s=e.toLowerCase();if(this.Pa.hasOwnProperty(s)){var o=this.Pa[s],u=o[1];o[1]=u?u+", "+r:r}else this.Pa[s]=[e,r]},e.prototype.delete=function(e){var r=hG(e).toLowerCase();delete this.Pa[r]},e.prototype.get=function(e){var r=hG(e).toLowerCase();return this.Pa.hasOwnProperty(r)?this.Pa[r][1]:null},e.prototype.has=function(e){var r=hG(e).toLowerCase();return this.Pa.hasOwnProperty(r)},e.prototype.set=function(e,r){var s=(e=hG(e)).toLowerCase();this.Pa[s]=[e,hK(r)]},e.prototype.forEach=function(e,r){for(var s in this.Pa)this.Pa.hasOwnProperty(s)&&e.call(r,this.Pa[s][1],s,this)},e.prototype.keys=function(){var e=[];return this.forEach(function(r,s){e.push(s)}),hz(e)},e.prototype.values=function(){var e=[];return this.forEach(function(r){e.push(r)}),hz(e)},e.prototype.entries=function(){var e=[];return this.forEach(function(r,s){e.push([s,r])}),hz(e)},e.prototype.asList=function(){var e=[];for(var r in this.Pa)if(this.Pa.hasOwnProperty(r)){var s=this.Pa[r],o=s[0],u=s[1];e.push([o,u])}return e},e}();function h0(){}hQ.iterable&&(hZ.prototype[Symbol.iterator]=hZ.prototype.entries);var h1,h2,h3,h5,h4=b.min,h6=String.fromCharCode;function h8(e){if(e>=55296&&e<=57343)throw new y("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function h7(e,r){return e>>r&63|128}function h9(){if(h5>=h3)throw new y("Invalid byte index");var e=255&h2[h5];if(h5++,128==(192&e))return 63&e;throw new y("Invalid continuation byte")}var ct=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];function ce(e){return e&&URLSearchParams.prototype.isPrototypeOf(e)}function cn(e){return e&&ArrayBuffer.prototype.isPrototypeOf(e)}function ci(e){return e&&DataView.prototype.isPrototypeOf(e)}var cr,cs=ArrayBuffer.isView||function(e){return e&&(ct.indexOf(w.prototype.toString.call(e))>-1||ci(e))};function co(e){if(e.bodyUsed)return P.reject(new g("Already used"));e.bodyUsed=!0}function cu(e){return new P(function(r,s){e.onload=function(){r(e.result)},e.onerror=function(){s(e.error)}})}function ca(e){return hQ.encoding?new hH.TextDecoder("utf-8").decode(new x(e)):function(e){for(var r=[],s=0;s<e.length;s++){var o=e[s];o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o)}for(var u=r.length,a=[],h=0;h<u;h+=16384){var c=h4(h+16384,u);a.push(h6.apply(null,r.slice(h,c)))}return a.join("")}(function(e){h3=(h2=e).length,h5=0;for(var r,s=[];!1!==(r=function(){var e,r;if(h5>h3)throw new y("Invalid byte index");if(h5===h3)return!1;if(e=255&h2[h5],h5++,0==(128&e))return e;if(192==(224&e)){if((r=(31&e)<<6|h9())>=128)return r;throw new y("Invalid continuation byte")}if(224==(240&e)){if((r=(15&e)<<12|h9()<<6|h9())>=2048)return h8(r),r;throw new y("Invalid continuation byte")}if(240==(248&e)&&(r=(7&e)<<18|h9()<<12|h9()<<6|h9())>=65536&&r<=1114111)return r;throw new y("Invalid UTF-8 detected")}());)s.push(r);return s}(new x(e)))}function ch(e){return hQ.encoding?(new hH.TextEncoder).encode(e).buffer:new x(function(e){for(var r,s=[],o=0;o<e.length;o++)r=e[o],0!=(0xffffff80&r)?(0==(0xfffff800&r)?s.push(r>>6&31|192):0==(0xffff0000&r)?(h8(r),s.push(r>>12&15|224),s.push(h7(r,6))):0==(0xffe00000&r)&&(s.push(r>>18&7|240),s.push(h7(r,12)),s.push(h7(r,6))),s.push(63&r|128)):s.push(r);return s}(function(e){for(var r=[],s=0,o=e.length;s<o;){var u=e.charCodeAt(s++);if(u>=55296&&u<=56319&&s<o){var a=e.charCodeAt(s++);
156320==(64512&a)?r.push(((1023&u)<<10)+(1023&a)+65536):(r.push(u),s--)}else r.push(u)}return r}(e))).buffer}function cc(e){var r=e.getReader(),s=[],o=function(e){var u=e.done,a=e.value;return u?P.resolve(s):(s.push(a),r.read().then(o))};return r.read().then(o)}function cf(e){return cc(e).then(function(e){return function(e){for(var r=0,s=0;s<e.length;s++)r+=(h=e[s]).byteLength;for(var o=new x(r),u=0,a=0;a<e.length;a++){var h=e[a];o.set(h,u),u+=h.byteLength}return o}(e).buffer})}function cl(e){return e.slice?e.slice(0):cp(new x(e))}function cp(e){if(e.slice)return e.slice(0).buffer;var r=new x(e.byteLength);return r.set(new x(e.buffer,e.byteOffset,e.byteLength)),r.buffer}function cv(e){var r=new FormData;return e.trim().split("&").forEach(function(e){if(e){var s=e.split("="),o=s.shift().replace(/\+/g," "),u=s.join("=").replace(/\+/g," ");r.append(decodeURIComponent(o),decodeURIComponent(u))}}),r}function cd(e){if(e.bodyUsed)throw new g("Already used");if(e.d_===cr.l_){if(!e.__.tee)throw new y("could not clone ReadableStream body");var r=e.__.tee(),s=r[0],o=r[1];return e.body=s,e.__=s,e.g_=s,o}
1return e.d_===cr.Iv?cl(e.__):e.d_===cr.jd?e.__.then(cd):e.g_}(cT=cr||(cr={}))[cT.Ku=0]="Ku",cT[cT.w_=1]="w_",cT[cT.y_=2]="y_",cT[cT.Iv=3]="Iv",cT[cT.l_=4]="l_",cT[cT.jd=5]="jd";var cy=function(){function e(r,s){this.bodyUsed=!1;var o,u,a,h,c,f=this;if(this.g_=r||null,r)if("string"==typeof r)this.d_=cr.Ku,this.__=r;else if((c=r)&&"function"==typeof c.then)this.d_=cr.jd,this.__=P.resolve(r).then(function(r){return new e(r,s)}),this.__.catch(h0);else if(hQ.blob&&(o=r)&&Blob.prototype.isPrototypeOf(o))this.d_=cr.w_,this.__=r;else if(hQ.formData&&(u=r)&&FormData.prototype.isPrototypeOf(u))this.d_=cr.y_,this.__=r;else if(hQ.searchParams&&ce(r))this.d_=cr.Ku,this.__=r.toString();else if(hQ.arrayBuffer&&(cn(r)||cs(r)))ci(r)&&(this.g_=new x((h=r).buffer,h.byteOffset,h.byteLength)),this.d_=cr.Iv,this.__=cn(a=r)?cl(a):cp(a);else{if(!hQ.stream||!hX(r))throw new y("unsupported BodyInit type");r=hY(hV,r),this.d_=cr.l_,this.__=r,this.g_=r}else this.d_=cr.Ku,this.__="";this.k_="",s.has("content-type")?this.k_=(s.get("content-type")||"").toLowerCase():("string"==typeof r?this.k_="text/plain;charset=UTF-8":f.d_===cr.w_&&f.__.type?this.k_=f.__.type:hQ.searchParams&&ce(r)&&(this.k_="application/x-www-form-urlencoded;charset=UTF-8"),this.k_&&s.set("content-type",this.k_)),hQ.stream&&(null==r?this.body=null:f.d_===cr.l_?this.body=f.__:this.body=hJ(hV,function(){return f.arrayBuffer()},function(){f.bodyUsed=!0}))}return e.prototype.text=function(){var e,r,s;return co(this)||(this.d_===cr.w_?(e=this.__,s=cu(r=new FileReader),r.readAsText(e),s):this.d_===cr.Iv?P.resolve(this.__).then(ca):this.d_===cr.l_?cf(this.__).then(ca):this.d_===cr.jd?this.__.then(function(e){return e.text()}):this.d_===cr.y_?P.reject(new y("could not read FormData body as text")):P.resolve(this.__))},e.prototype.json=function(){return this.text().then(JSON.parse)},e}();hQ.blob&&(cy.prototype.blob=function(){var e,r;return co(this)||(this.d_===cr.w_?P.resolve(this.__):this.d_===cr.Iv?P.resolve(hB([this.__],{type:this.k_})):this.d_===cr.l_?(e=this.__,r=this.k_,cc(e).then(function(e){return hB(e,{type:r||""})})):this.d_===cr.jd?this.__.then(function(e){return e.blob()}):this.d_===cr.y_?P.reject(new y("could not read FormData body as Blob")):P.resolve(hB([this.__],{type:this.k_})))}),hQ.arrayBuffer&&(cy.prototype.arrayBuffer=function(){var e,r,s;return this.d_===cr.Iv?co(this)||P.resolve(this.__):this.d_===cr.w_?co(this)||(e=this.__,s=cu(r=new FileReader),r.readAsArrayBuffer(e),s):this.d_===cr.l_?cf(this.__):this.d_===cr.jd?co(this)||this.__.then(function(e){return e.arrayBuffer()}):this.d_===cr.y_?P.reject(new y("could not read FormData body as ArrayBuffer")):P.resolve(this.__).then(ch)}),hQ.formData&&(cy.prototype.formData=function(){return this.d_===cr.y_?co(this)||P.resolve(this.__):this.text().then(cv)});var cg=[301,302,303,307,308],cm=function(e){function r(r,s){var o=this,u=new hZ((s=s||{}).headers);return(o=e.call(this,r||null,u)||this).type="default",o.status=void 0===s.status?200:s.status,o.ok=o.status>=200&&o.status<300,o.statusText=void 0!==s.statusText?String(s.statusText):"",o.headers=u,o.url=s.url||"",o}return hj(r,e),r.prototype.clone=function(){return new r(cd(this),{status:this.status,statusText:this.statusText,headers:new hZ(this.headers),url:this.url})},r.error=function(){var e=new r(null,{status:0,statusText:""});return e.type="error",e},r.redirect=function(e,s){if(-1===cg.indexOf(s))throw RangeError("Invalid status code");return new r(null,{status:s,headers:{location:e}})},r}(cy),cw=(function(e,r){function s(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}function o(e,r){for(var s=0;s<r.length;s++){var o=r[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),w.defineProperty(e,o.key,o)}}function u(e,r,s){return r&&o(e.prototype,r),s&&o(e,s),e}function a(e){return(a=w.setPrototypeOf?w.getPrototypeOf:function(e){return e.__proto__||w.getPrototypeOf(e)})(e)}function c(e,r){return(c=w.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function f(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,r,s){return(p="u">typeof Reflect&&Reflect.get?Reflect.get:function(e,r,s){var o=function(e,r){for(;!w.prototype.hasOwnProperty.call(e,r)&&null!==(e=a(e)););return e}(e,r);if(o){var u=w.getOwnPropertyDescriptor(o,r);return u.get?u.get.call(s):u.value}})(e,r,s||e)}
1w.defineProperty(r,"__esModule",{value:!0});var v=function(){function e(){s(this,e),w.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return u(e,[{key:"addEventListener",value:function(e,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(r)}},{key:"removeEventListener",value:function(e,r){if(e in this.listeners){for(var s=this.listeners[e],o=0,u=s.length;o<u;o++)if(s[o]===r)return void s.splice(o,1)}}},{key:"dispatchEvent",value:function(e){var r=this;if(e.type in this.listeners){for(var s=function(s){l(function(){return s.call(r,e)})},o=this.listeners[e.type],u=0,a=o.length;u<a;u++)s(o[u]);return!e.defaultPrevented}}}]),e}(),d=function(){function e(){var r,o;return s(this,e),(r=!(o=a(e).call(this))||"object"!=typeof o&&"function"!=typeof o?f(this):o).listeners||v.call(f(r)),w.defineProperty(f(r),"aborted",{value:!1,writable:!0,configurable:!0}),w.defineProperty(f(r),"onabort",{value:null,writable:!0,configurable:!0}),r}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function");e.prototype=w.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&c(e,r)}(e,v),u(e,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(r){"abort"===r.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,r)),p(a(e.prototype),"dispatchEvent",this).call(this,r)}}]),e}(),y=function(){function e(){s(this,e),w.defineProperty(this,"signal",{value:new d,writable:!0,configurable:!0})}return u(e,[{key:"abort",value:function(){var e;try{e=new Event("abort")}catch(r){void 0!==h?h.createEvent?(e=h.createEvent("Event")).initEvent("abort",!1,!1):(e=h.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(e)}},{key:"toString",value:function(){return"[object AbortController]"}}]),e}();"u">typeof Symbol&&Symbol.toStringTag&&(y.prototype[Symbol.toStringTag]="AbortController",d.prototype[Symbol.toStringTag]="AbortSignal"),r.AbortSignal=d,r.AbortController=y,r.default=y}(cC={exports:{}},cC.exports),cC.exports);cw&&cw.__esModule&&w.prototype.hasOwnProperty.call(cw,"default")&&cw.default,cw.AbortSignal;var cb=cw.AbortController,ck=hH.DOMException;try{new ck}catch(e){(ck=function(e,r){y.call(this,e),this.name=r||"Error",y.captureStackTrace&&y.captureStackTrace(this,this.constructor)}).prototype=w.create(y.prototype),ck.prototype.constructor=ck}function cE(e,r){if(!e.signal.aborted)if(r.aborted)e.abort();else{var s=function(){r.removeEventListener("abort",s),e.signal.removeEventListener("abort",s),e.abort()};r.addEventListener("abort",s),e.signal.addEventListener("abort",s)}}function cA(e,r,s){return new P(function(o,u){if(r.signal.aborted)return e.catch(h0),u(cx());var a=function(){r.signal.removeEventListener("abort",a),u(cx())};r.signal.addEventListener("abort",a),e.then(function(e){r.signal.removeEventListener("abort",a),o(e),s&&r.abort()},function(e){r.signal.removeEventListener("abort",a),u(e),s&&r.abort()})})}function cx(){return new ck("Aborted","AbortError")}var cT,cC,cS,cR="moz-chunked-arraybuffer";function cL(e){try{var r=new C;return r.open("GET","https://test"),r.responseType=e,r.responseType===e}catch(e){}return!1}(cQ=cS||(cS={}))[cQ.UNSENT=0]="UNSENT",cQ[cQ.OPENED=1]="OPENED",cQ[cQ.HEADERS_RECEIVED=2]="HEADERS_RECEIVED",cQ[cQ.LOADING=3]="LOADING",cQ[cQ.DONE=4]="DONE";var c_=function(){function e(e,r){var s=this;this.m_=!1,this.a_=e,this.p_=r,this.A_=new C,this.b_=new P(function(e,r){s.T_=e,s.E_=r})}return e.prototype.send=function(){var e=this;return this.S_().then(function(r){return e.I_(r,e.p_),e.b_})},e.prototype.S_=function(){var e=this.a_;return e.d_===cr.l_?e.arrayBuffer():P.resolve(e.g_)},e.prototype.R_=function(e){this.a_.onprogress&&this.a_.onprogress(e.loaded,e.lengthComputable?e.total:void 0)},e.prototype.N_=function(e){this.E_(e)},e.prototype.D_=function(){this.N_(new g("Network request failed"))},e.prototype.C_=function(){this.N_(new g("Network request failed"))},e.prototype.P_=function(){this.N_(cx())},e.prototype.I_=function(e,r){var s=this,o=this.a_,u=this.A_,a=function(){return s.B_()};if(o.signal.aborted)return this.P_();u.onreadystatechange=function(){if(u.readyState>=cS.HEADERS_RECEIVED&&!s.m_){var e,r,o=(e=u.getAllResponseHeaders()||"",r=new hZ,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
1h(function(e){var s=e.split(":"),o=s.shift().trim();if(o){var u=s.join(":").trim();r.append(o,u)}}),r),a={status:u.status,statusText:u.statusText,headers:o,url:u.responseURL||o.get("X-Request-URL")};s.m_=!0,s.O_(a)}},u.onprogress=function(e){return s.R_(e)},u.onload=function(){return s.L_()},u.onerror=function(){return s.D_()},u.ontimeout=function(){return s.C_()},u.onabort=function(){return s.P_()},u.open(o.method,o.url,!0),u.withCredentials="include"===o.credentials,"responseType"in u&&r&&(u.responseType=r),o.headers.forEach(function(e,r){u.setRequestHeader(r,e)}),o.signal.addEventListener("abort",a),u.onloadend=function(){o.signal.removeEventListener("abort",a)},e?u.send(e):u.send()},e.prototype.B_=function(){this.A_.abort()},e}(),cP=function(e){function r(r,s){var o=e.call(this,r,s)||this;return o.M_=void 0,o.x_=void 0,o}return hj(r,e),r.prototype.O_=function(e){var r=this;this.M_=new P(function(e,s){r.x_=e,r.U_=s}),this.T_(new cm(this.M_,e))},r.prototype.L_=function(){var e=this.A_.response||this.A_.responseText;this.x_(e)},r.prototype.N_=function(r){e.prototype.N_.call(this,r),this.U_&&this.U_(r)},r}(c_),cI=function(e){function r(r){var s=e.call(this,r,cR)||this;return s.F_=void 0,s.H_=void 0,s.X_=!1,s}return hj(r,e),r.prototype.O_=function(e){var r=this;this.F_=new hV({start:function(e){r.H_=e},cancel:function(){r.X_=!0,r.B_()}}),this.T_(new cm(this.F_,e))},r.prototype.R_=function(r){this.X_||this.H_.enqueue(new x(this.A_.response)),e.prototype.R_.call(this,r)},r.prototype.L_=function(){this.H_.close()},r.prototype.N_=function(r){e.prototype.N_.call(this,r),this.H_&&!this.X_&&(this.X_=!0,this.H_.error(r))},r}(c_),cN=function(){var e=hQ.firefox&&cL(cR);return cN=function(){return e},e},cO=function(){var e;return e=hQ.arrayBuffer&&cL("arraybuffer")?"arraybuffer":hQ.blob&&cL("blob")?"blob":"",cO=function(){return e},e},cD=hH.fetch,cU=hH.Request,cM=(hH.Response,hH.AbortController),cF=["http:","https:"],cj=function(){try{if(hQ.streamRequest){var e=new cU("about:blank",{body:"",method:"POST"}).body;if(e&&hW(e.constructor))return e.constructor}}catch(e){}}();function cH(e){return e.has("content-length")?Number(e.get("content-length")):void 0}var cB=["DELETE","GET","HEAD","OPTIONS","POST","PUT"],cV=function(e){function r(s,o){var u,a,h,c,f,l,p,v,d,y,m,w=this,b=(o=o||{}).body||null;if(s instanceof r){if(s.bodyUsed)throw new g("Already used");h=s.url,c=s.credentials,o.headers||(f=new hZ(s.headers)),l=s.method,p=s.mode,v=s.referrer,d=s.referrerPolicy,y=s.signal,m=s.onprogress,b||null==s.g_||(b=s.g_,s.bodyUsed=!0)}else h=String(s),c="same-origin",l="GET",p="cors",v="about:client",d="",y=null,m=null;if(!o.headers&&f||(f=new hZ(o.headers)),o&&(v="about:client",d=""),(w=e.call(this,b,f)||this).url=h,w.headers=f,w.credentials=o.credentials||c,w.method=(a=(u=o.method||l).toUpperCase(),cB.indexOf(a)>-1?a:u),w.mode=o.mode||p,w.signal=o.signal||y||(new cb).signal,w.referrer=void 0!==o.referrer?o.referrer:v,w.referrerPolicy=void 0!==o.referrerPolicy?o.referrerPolicy:d,w.onprogress=o.onprogress||m,("GET"===w.method||"HEAD"===w.method)&&b)throw new g("Body not allowed for GET or HEAD requests");return w}return hj(r,e),r.prototype.clone=function(){return new r(this,{body:cd(this)})},r}(cy),cX="function"==typeof cD&&hQ.stream&&hQ.streamResponse&&hQ.url;function cW(e,r){return new P(function(s){var o=new cV(e,r);s((cX&&function(e){try{return cF.indexOf(new hH.URL(e,hH.location.href).protocol)>=0}catch(e){return!1}}(o.url)?function(e){var r=new cb;return e.signal&&cE(r,e.signal),(function(e,r){var s,o;if(s=e.d_===cr.l_?hQ.streamRequest&&cj?P.resolve(hY(cj,e.__)):cA(e.arrayBuffer(),r,!1):cA(P.resolve(e.g_),r,!1),hQ.abort){var u=new cM;cE(u,r.signal),o=u.signal}return s.then(function(r){var s;return new cU(e.url,{body:r||void 0,credentials:e.credentials,headers:((s=e.headers)instanceof hZ?s:new hZ(s)).asList(),method:e.method,mode:e.mode,referrer:e.referrer,referrerPolicy:e.referrerPolicy,signal:o})})})(e,r).then(cD).then(function(s){return function(e,r,s){var o;if(hQ.stream){var u,a,h,c=void 0;if(hQ.streamResponse){var f=e.body;c=f&&hY(hV,f)}else c=hJ(hV,function(){return cA(e.arrayBuffer(),r,!0)},function(){r.abort()});c&&s&&(u=c,a=cH(e.headers),h=0,c=new hV(new hq(u.getReader(),function(e){var r=e.done,o=e.value;r?a=void 0===a?h:a:h+=o.byteLength,s(h,a)}),{highWaterMark:0})),o=c}else{var l,p,v=cA(e.arrayBuffer(),r,!0);s&&(l=v,p=cH(e.headers),v=P.resolve().then(function(){return s(0,p),l}).then(function(e){var r=e.byteLength;return s(r,p=void 0===p?r:p),e})),o=v}return new cm(o,e)}(s,r,e.onprogress)})}
1:function(e){return(hQ.stream&&cN()?new cI(e):new cP(e,cO())).send()})(o))})}cW.polyfill=!0;var cq=function(){function e(e){this.c_=void 0,this.a_=void 0,this.V_=new rE,this.h_=void 0,this.W_=!1,this.a_=e,this.V_.fh(e.dh),this.c_=this.q_()}var r,s=e.prototype;return r=P.coroutine(iO.mark(function e(){var r,s,o,u,a,h,c,f=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(r=this.a_).Gl&&l(function(){f.W_=!0,f.V_.hh()},r.Gl),e.prev=2,s=cW(r.Il,{method:r.ql,headers:r.yl.Dv(),body:r.il,credentials:r.Yl?"include":"same-origin",signal:function(e){var r=new cb;if(e.Ka)r.abort();else if(!e.Ja){var s=function(){o(),r.abort()},o=function o(){r.signal.removeEventListener(c$,s),e.uh(s),e.uh(o)};r.signal.addEventListener(c$,s),e.eh(s),e.sh(o)}return r.signal}(this.V_.dh),onprogress:r.Ql}),e.next=9;break;case 6:throw e.prev=6,e.t0=e.catch(2),new hD(r,e.t0);case 9:return e.prev=9,e.next=12,s;case 12:o=e.sent,e.next=20;break;case 15:throw e.prev=15,e.t1=e.catch(9),rx(u=this.G_(e.t1))&&this.V_.hh(),u;case 20:if(a=o.url||r.Il,h=0===o.status&&"file:"===_._o(a).protocol?200:o.status,c=new hT({Fs:new cY(this,o,this.V_),El:r,Al:r.Al,yl:new oM(o.headers.asList()),wl:h,bl:o.statusText,Sl:a}),this.h_=c,!hw(c)){e.next=29;break}return e.abrupt("return",c);case 29:throw new hU(c);case 30:case"end":return e.stop()}},e,this,[[2,6],[9,15]])})),s.q_=function(){return r.apply(this,arguments)},s.G_=function(e){return rx(e)?this.W_?new hM(this.a_):new rA(e.message,e):this.h_?new hU(this.h_,e):new hD(this.a_,e)},e}(),cY=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).En=void 0,u.z_=void 0,u.V_=void 0,u.hl=new sG,u.En=r,u.z_=s,u.V_=o,u.hl.ec.catch(I),u}j(r,e);var s=r.prototype;return s.fl=function(){return this.hl.ec},s.Qd=function(e){return this.vl(this.z_.text(),e)},s.Kd=function(e){return this.vl(this.z_.arrayBuffer(),e)},s.Jd=function(){var e=this.z_.body;return e?this.dl(e):hr(this.Kd().then(hn),this.V_)},s.ll=function(){var e=this.z_.clone(),s=this.V_.vh(),o=s[0],u=s[1];return this.V_=o,new r(this.En,e,u)},s.vl=function(e,r){var s=this;r&&this.V_.fh(r);var o=P.resolve(e).catch(function(e){throw s.En.G_(e)});return o=rL(o,this.V_),this.hl.uc(o.then(I)),o},s.dl=function(e){var r=this,s=new aZ,o=P.resolve(e.pipeTo(s.writable,{preventAbort:!0})).catch(function(e){var o=r.En.G_(e);throw s.writable.abort(o).catch(I),o});return o=rL(o,this.V_),this.hl.uc(o.then(I)),s.readable},M(r,[{key:"_l",get:function(){return this.z_.bodyUsed}}]),r}(hc),c$="abort";function cJ(e,r,s){return new P(function(o,u){if(s&&s.Ka)return u(new rA);var a=function(e){c(),o(e)},h=function(){c(),u(new rA)},c=function(){e.removeEventListener(r,a),s&&s.uh(h)};e.addEventListener(r,a),s&&s.eh(h)})}var cQ,cG,cK=function(){function e(){}var r=e.prototype;return r.El=function(e){return new cq(e).c_},r.Zl=function(e){if(n5&&n5.sendBeacon)n5.sendBeacon(e.Il,oD([e.il],{type:e.$d}));else{var r=e.$d?{"Content-type":e.$d}:void 0;rN(this.El(new hP({ql:hk.POST,Il:e.Il,il:e.il,yl:r})))}},r.Kl=function(){},e}();_=new(function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).j_=void 0,r.Y_=function(){if(Q.Iu||Q.Eu){var e=Q.Tu;if(void 0===e||42>Number(e))return!1}return!0}(),r.Q_=void 0,r}return j(r,e),M(r,[{key:"Qo",get:function(){return this.j_||(this.j_=new ri(oP())),this.j_}},{key:"Z_",get:function(){return this.Y_}},{key:"K_",get:function(){return!1}},{key:"J_",get:function(){return oN.Of()}},{key:"rg",get:function(){return{eg:oU}}},{key:"og",get:function(){return f.connection&&f.connection.effectiveType||"default"}},{key:"ag",get:function(){return f.connection&&f.connection.type||"unknown"}},{key:"hg",get:function(){return this.Q_||(this.Q_=new hN(new cK)),this.Q_}}]),r}(iI)),(cz=cG||(cG={})).cg="fg",cz.vg="dg",cG.cg,cG.vg;var cz,cZ,c0=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this)._g=void 0,o}return j(r,e),M(r,[{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}}]),r}(rX),c1=function(e){function r(r){return e.call(this,r)||this}return j(r,e),r}(c0),c2=function(e){function r(r){return e.call(this,r)||this}return j(r,e),r}(rX),c3=function(e){function r(r){var s;return(s=e.call(this,cG.cg)||this).yg=r,s}return j(r,e),r.prototype.wg=function(){return new c5(this.yg.gg)},r}(c1),c5=function(e){function r(r){var s;return(s=e.call(this,"addtrack")||this).track=r,s}return j(r,e),r}(c2),c4=function(e){function r(r){var s;return(s=e.call(this,cG.vg)||this).yg=r,s}return j(r,e),r.prototype.wg=function(){return new c6(this.yg.gg)},r}(c1),c6=function(e){function r(r){var s;return(s=e.call(this,"removetrack")||this).track=r,s}return j(r,e),r}(c2);(fb=cZ||(cZ={})).pg="Ag",fb.Tg="Eg",fb.Sg="Ig",fb.Rg="Ng",fb.Dg="Cg",fb.Pg="Bg",fb.Og="Lg",fb.Mg="xg",fb.Ug="Ec",fb.Fg="Hg",fb.Xg="Vg",fb.QUALITY_UNAVAILABLE="qualityunavailable",fb.NO_QUALITY="noquality";var c8=function(e){function r(){var r;return(r=e.call(this)||this).Wg=[],r._g=void 0,r}j(r,e);var s=r.prototype;return s.qg=function(e){return this.Wg[e]},s.Gg=function(e){return!(!e||rl(this.Wg,e))&&(this.Wg.push(e),this._g&&this._g.push(e.gg),e.kh(cZ.Pg,this.wh),this.yh(new c3(e)),!0)},s.zg=function(e){if(!e)return!1;var r=this.Wg.indexOf(e);return!(r<0)&&(rf(this.Wg,r),this._g&&rf(this._g,r),e.Eh(cZ.Pg,this.wh),this.yh(new c4(e)),!0)},s.jg=function(e){return rl(this.Wg,e)},s.Yg=function(){for(var e=this.Wg,r=e.length-1;r>=0;r-=1)this.zg(e[r])},s.Kl=function(){this.Yg(),this.Th()},M(r,[{key:"Qg",get:function(){return this.Wg}},{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}},{key:"Zg",get:function(){return this.Wg.length}}]),r}(rB),c7=function(e){function r(r){var s;return(s=e.call(this,cZ.Pg)||this).yg=r,s}return j(r,e),r.prototype.wg=function(){return new c9(this.yg.gg)},r}(c1),c9=function(e){function r(r){var s;return(s=e.call(this,"change")||this).track=r,s}return j(r,e),r}(c2),ft=function(e){function r(){var r;return(r=e.call(this)||this).Kg=void 0,r.Jg=function(e){var s=e.yg;r.Gg(s)},r.$g=function(e){var s=e.yg;r.zg(s)},r}j(r,e);var s=r.prototype;return s.nw=function(e){e.kh(cG.cg,this.Jg),e.kh(cG.vg,this.$g)},s.iw=function(e){e.Eh(cG.cg,this.Jg),e.Eh(cG.vg,this.$g)},s.Kl=function(){this.Kg&&this.Kg.Kl(),e.prototype.Kl.call(this)},M(r,[{key:"ew",get:function(){return this.Kg},set:function(e){var r=this.Kg;if(e!==r){if(r){this.iw(r);for(var s=0,o=r.Qg;s<o.length;s++){var u=o[s];e&&e.jg(u)||this.zg(u)}}if(this.Kg=e,e){for(var a=[],h=0,c=e.Qg;h<c.length;h++){var f=c[h];this.Gg(f),this.uw(f)&&a.push(f)}this.nw(e);for(var l=0;l<a.length;l++){var p=a[l];p.yh(new c7(p))}}}}}]),r}(c8),fe=w.freeze||N;function fn(e,r,s){w.defineProperty(e,r,{writable:!1,enumerable:!0,value:s})}function fi(e,r){for(var s=0,o=w.getOwnPropertyNames(r);s<o.length;s++){var u=o[s];w.defineProperty(e,u,w.getOwnPropertyDescriptor(r,u))}return e}function fr(e){if(tn(e)){var r={};for(var s in e)G.call(e,s)&&(r[s]=fr(e[s]));return r}if(Z(e)){for(var o=Array(e.length),u=0;u<o.length;u++)u in e&&(o[u]=fr(e[u]));return o}return e}function fs(e,r){return e===r||!(!e||!r)&&!(!te(e)||!te(r))&&(tt(e)?!!tt(r)&&function(e,r){var s=e.length;if(s!==r.length)return!1;for(var o=0;o<s;o+=1)if(!fs(e[o],r[o]))return!1;return!0}(e,r):!tt(r)&&function(e,r){var s=w.keys(e),o=w.keys(r);if(!s||!o||s.length!==o.length)return!1;for(var u=0;u<s.length;u++){var a=s[u];if(!G.call(r,a)||!fs(e[a],r[a]))return!1}return!0}(e,r))}function fo(e,r){return e.constructor===r.constructor}function fu(e){for(var r={},s=0,o=w.keys(e);s<o.length;s++){var u=o[s],a=e[u];null!=a&&(r[u]=a)}return r}function fa(e){for(var r={},s=0,o=w.keys(e);s<o.length;s++){var u=o[s],a=e[u];if(tt(a)){for(var h=[],c=0;c<a.length;c+=1){var f=a[c];if(null!=f){var l=te(f)?fa(f):f;h.push(l)}}r[u]=h}else null!=a&&(r[u]=te(a)?fa(a):a)}return r}function fh(e){var r=e;if("string"==typeof r){if("true"===(r=r.toLowerCase()))return!0;
1if("false"===r)return!1}return!!r}function fc(e){return"string"==typeof e?""===e?NaN:Number(e):"boolean"==typeof e||null==e||e instanceof Date||"number"!=typeof Number(e)&&!e?NaN:Number(e)}function ff(e){var r=fc(e);if(A(r))throw new y("Expected a valid number.");return r}function fl(e){return"string"==typeof e?e:""}function fp(e,r){return tt(e)?function(e,r){if(!tt(e))return[];for(var s=0|e.length,o=Array(s),u=0;u<s;u++)o[u]=r(e[u]);return o}(e,r):r(e)}var fv=[cG.cg,cG.vg,cZ.Pg];function fd(e){var r,s=e.Qg.map(function(e){return e.gg});return s.item=function(r){var s=e.qg(0|r);return s&&s.gg||void 0},s.addEventListener=function(e,s){r.kh(e,s)},s.removeEventListener=function(e,s){r.Eh(e,s)},r=new rV(s),e.kh(fv,function(e){return r.yh(e.gg)}),s}function fy(){}function fg(e){var r,s=[cZ.Ug,cZ.Pg,cZ.Fg,cZ.Xg,cZ.QUALITY_UNAVAILABLE],o={get activeQuality(){return e.ow&&e.ow.gg},get enabled(){return e.aw},set enabled(n){e.aw=fh(n)},get id(){return e.hw},get uid(){return e.cw},get kind(){return e.fw},get label(){return e.vw},set label(n){e.vw=fl(n)},get language(){return e.dw},get qualities(){return e.lw.gg},set targetQuality(n){var u;(u=n?function(e,r){for(var s=[],o=0,u=e.lw.Qg;o<u.length;o++)for(var a=u[o],h=0;h<r.length;h++){var c=r[h];a.gg===c&&s.push(a)}return s}(e,Z(n)?n:[n]):[]).length>0?e._w=u:e._w=void 0},get targetQuality(){if(e._w)return 1===e._w.length?e._w[0].gg:e._w.map(function(e){return e.gg})},addEventListener:function(e,s){var o=fp(e,fl);r.kh(o,s)},removeEventListener:function(e,s){var o=fp(e,fl);r.Eh(o,s)}};return r=new rV(o),e.kh(s,function(e){return r.yh(e.gg)}),w.defineProperty(o,"constructor",{value:fy}),o}function fm(){}function fw(e){var r=fd(e);return w.defineProperty(r,"constructor",{value:fm}),r}var fb,fk,fE,fA=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.wg=function(){return fw(this)},s.uw=function(e){return e.aw},r}(ft);function fx(e){if("string"==typeof e){var r=e.toLowerCase();switch(r){case fk.gw:case fk.ww:case fk.yw:return r}}else if("number"==typeof e)switch(e){case 0:break;case 1:return fk.ww;case 2:return fk.yw}return fk.gw}function fT(){}function fC(e){var r,s=[cZ.Pg,cZ.Ug,cZ.pg,cZ.Tg,cZ.Sg,cZ.Rg,cZ.Dg,cZ.Og,cZ.Mg],o=[fE.mw],u={get kind(){return e.fw},get label(){return e.vw},set label(n){e.vw=fl(n)},get language(){return e.dw},get id(){return e.hw},get uid(){return e.cw},get inBandMetadataTrackDispatchType(){return e.pw},get mode(){return e.Aw},set mode(n){n!==fk.yw&&n!==fk.ww&&n!==fk.gw||(e.Aw=n)},get type(){return e.Ua},get readyState(){return e.bw},get cues(){return e.Aw===fk.gw?null:e.Tw.gg},get activeCues(){return e.Aw===fk.gw?null:e.Ew.gg},get src(){return e.Sw||""},addEventListener:function(e,s){var o=fp(e,fl);r.kh(o,s)},removeEventListener:function(e,s){var o=fp(e,fl);r.Eh(o,s)}};return r=new rV(e),e.kh(s,function(e){return r.yh(e.gg)}),e.kh(o,function(e){return r.yh(e)}),w.defineProperty(u,"constructor",{value:fT}),u}function fS(){}function fR(e){var r=fd(e);return w.defineProperty(r,"constructor",{value:fS}),r}(fQ=fk||(fk={})).gw="disabled",fQ.ww="hidden",fQ.yw="showing",(fE||(fE={})).mw="error";var fL=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.wg=function(){return fR(this)},s.uw=function(e){return e.Aw===fk.yw},r}(ft),f_=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.Ah=function(r){e.prototype.Ah.call(this,r)},s.Rh=function(r){e.prototype.Rh.call(this,r)},r}(rB),fP=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r}(f_),fI=function(e){function r(){return e.call(this,ul.zf)||this}return j(r,e),r}(rX),fN=function(e){function r(r){var s;return(s=e.call(this,ul.Xf)||this).currentSource=r,s}return j(r,e),r}(rX),fO=function(){function e(){}return e.Iw=function(r,s){var o=e.Rw(r,s);return o?e.Nw(o):0},e.Dw=function(){return _.og||"default"},e.Cw=function(){return _.ag||"unknown"},e.Rw=function(r,s){var o,u=null==(o=_.J_)?void 0:o.qh(s),a=u&&JSON.parse(u);if(a&&a[r])return e.Pw(a,r,s)},e.Nw=function(e){return e.availableBandwidth||0},e.Pw=function(r,s,o){if(!e.Bw(r,s))return r[s];e.Ow(r,s,o)},e.Ow=function(e,r,s){var o;delete e[r],null==(o=_.J_)||o.Bf(s,JSON.stringify(e))},e.Bw=function(e,r){var s=e[r].storedTimestamp;if(!s)return!1;var o=new Date(s),u=(new Date).getTime();return o.setMonth(o.getMonth()+1)<=u},e.Lw=function(e,r,s,o){var u;return iD({},e,((u={})[r]={availableBandwidth:s,storedTimestamp:o},u))},e.Mw=function(r){var s=e.Dw();e.xw(s,"theoplayer-stored-network-info",r,t0())},e.xw=function(r,s,o,u){var a,h,c=null==(a=_.J_)?void 0:a.qh(s),f=c?JSON.parse(c):void 0,l=e.Lw(f,r,o,u);null==(h=_.J_)||h.Bf(s,JSON.stringify(l))},e.Uw=function(){var r=e.Dw();return e.Iw(r,"theoplayer-stored-network-info")},e}();function fD(e){return{appID:e&&e.appID?fl(e.appID):"1ADD53F3"}}function fU(e){var r=fz.Fw;return e&&nX(e,"mpd")&&(r=fz.Hw),e&&nX(e,"m3u8")&&(r=fz.Xw),r}function fM(e){switch(e){case fK.Vw:case fK.Ww:return e;default:return fK.qw}}function fF(e){if(!e)return!1;var r=e.toLowerCase();return nW(r,fz.Xw)||nW(r,fz.Gw)}function fj(e){return te(e)&&te(e.ssai)&&"google-dai"===e.ssai.integration}function fH(e){return te(e)&&ti(e.integration)&&"verizon-media"===e.integration}function fB(e){if(ti(e))return!e;if(fH(e))return!e.id;if(fj(e)){var r=e.ssai,s="live"===r.availabilityType&&r.assetKey,o="vod"===r.availabilityType&&r.contentSourceID&&r.videoID;return!!(s&&o)}return!e.src}function fV(e){return!!(te(e)&&ti(e.src))}function fX(e){return ti(e)||fV(e)||fj(e)||fH(e)}function fW(e){if(e){if(fX(e))return fB(e);for(var r=0;r<e.length;r++)if(!fB(e[r]))return!1}return!0}function fq(){return{crossOrigin:fK.qw,useCredentials:!1,liveOffset:void 0,timeServer:void 0,hlsDateRange:void 0,experimentalRe
1ndering:!1,nativeUiRendering:!1,lowLatency:!1,useNativePlayback:!1,dash:void 0,hls:void 0}}function fY(){return iD({},fq(),{src:void 0,type:fz.Fw,contentProtection:void 0,ssai:void 0,integrationData:void 0,isAdvertisement:void 0})}function f$(e){if(!tt(e))return[];for(var r=[],s=0;s<e.length;s++){var o=e[s];tn(o)&&r.push(o)}return r}function fJ(e){return ti(e.src)}(f2=fG||(fG={})).AUTO="auto",f2.MANUAL="manual",f2.DISABLED="disabled",(f3=fK||(fK={})).qw="",f3.Vw="anonymous",f3.Ww="use-credentials",(f5=fz||(fz={})).Hw="application/dash+xml",f5.Xw="application/vnd.apple.mpegurl",f5.Gw="application/x-mpegurl",f5.Fw="video/mp4",f5.zw="application/vnd.theoplayer.hesp+json",f5.jw="application/vnd.theo.hesp+json",(f4=fZ||(fZ={})).ENABLED="enabled",f4.INSECURE="insecure",f4.DISABLED="disabled",(f6=f0||(f0={})).NONE="none",f6.MIDROLL_AND_POSTROLL="midroll-and-postroll",(f8=f1||(f1={}))[f8.Yw=0]="Yw",f8[f8.Qw=1]="Qw",f8[f8.Zw=2]="Zw",f8[f8.Kw=3]="Kw",f8[f8.Jw=4]="Jw";var fQ,fG,fK,fz,fZ,f0,f1,f2,f3,f5,f4,f6,f8,f7,f9=function(e){function r(r,s){var o;return void 0===s&&(s=f1.Yw),(o=e.call(this,ul.qf)||this).currentTime=r,o.readyState=s,o}return j(r,e),r}(rX),lt=function(e){function r(r){var s;return(s=e.call(this,ul.$f)||this).currentTime=r,s}return j(r,e),r}(rX),le=function(e){function r(r){var s;return(s=e.call(this,ul.tv)||this).currentTime=r,s}return j(r,e),r}(rX);(ln=f7||(f7={})).$w="canplay",ln.iy="canplaythrough",ln.ey="loadeddata",ln.uy="loadedmetadata",ln.Og="readystatechange",ln.sy="waiting",ln.oy="playing";var ln,li,lr,ls=[f7.$w,f7.iy,f7.ey,f7.uy,f7.Og,f7.sy,f7.oy],lo=function(e){function r(r,s){var o;return void 0===s&&(s=f1.Qw),(o=e.call(this,f7.uy)||this).currentTime=r,o.readyState=s,o}return j(r,e),r}(rX),lu=function(e){function r(r){var s;return(s=e.call(this,ul.Wf)||this).duration=r,s}return j(r,e),r}(rX),la=function(e){function r(r,s){var o;return(o=e.call(this,ul.ev)||this).currentTime=r,o.playbackRate=s,o}return j(r,e),r}(rX),lh=function(e){function r(r,s){var o;return(o=e.call(this,ul.Av)||this).currentTime=r,o.currentProgramDateTime=s,o}return j(r,e),r}(rX),lc=function(e){function r(r){var s;return(s=e.call(this,ul.Gf)||this).currentTime=r,s}return j(r,e),r}(rX),lf=function(e){function r(r,s){var o;return void 0===s&&(s=f1.Zw),(o=e.call(this,f7.ey)||this).currentTime=r,o.readyState=s,o}return j(r,e),r}(rX),ll=function(e){function r(r){var s;return(s=e.call(this,ul.fv)||this).currentTime=r,s}return j(r,e),r}(rX),lp=function(e){function r(r){var s;return(s=e.call(this,ul.hv)||this).currentTime=r,s}return j(r,e),r}(rX),lv=function(e){function r(r,s){var o;return(o=e.call(this,ul.bv)||this).currentTime=r,o.volume=s,o}return j(r,e),r}(rX),ld=function(e){function r(r,s){var o;return void 0===s&&(s=f1.Kw),(o=e.call(this,f7.$w)||this).currentTime=r,o.readyState=s,o}return j(r,e),r}(rX),ly=function(e){function r(r,s){var o;return void 0===s&&(s=f1.Jw),(o=e.call(this,f7.iy)||this).currentTime=r,o.readyState=s,o}return j(r,e),r}(rX),lg=function(e){function r(r,s){var o;return(o=e.call(this,f7.Og)||this).currentTime=r,o.readyState=s,o}return j(r,e),r}(rX),lm=function(e){function r(r){var s;return(s=e.call(this,fE.mw)||this).errorObject=r,s}return j(r,e),r.prototype.wg=function(){return this},M(r,[{key:"error",get:function(){return this.errorObject.message}}]),r}(c0);function lw(e){switch(e){case li.ALL:case li.CONTENT:return e;default:return li.NONE}}function lb(e){var r,s,o,u,a,h=fr(e||{});return h.libraryLocation&&(h.libraryLocation=nz(h.libraryLocation)),h.isEmbeddable=!!h.isEmbeddable,h.cast={chromecast:fD((u=h.cast)?u.chromecast:void 0),strategy:function(e){switch(e){case"auto":return fG.AUTO;case"manual":default:return fG.MANUAL;case"disabled":return fG.DISABLED}}(u?u.strategy:void 0)},r=h.ads,o={allowedMimeTypes:void 0,preload:"midroll-and-postroll",showCountdown:!0,vpaidMode:fZ.ENABLED,googleImaConfiguration:{useNativeIma:!1}},void 0===r||(void 0!==r.preload&&(o.preload="none"===r.preload?f0.NONE:f0.MIDROLL_AND_POSTROLL),void 0!==r.showCountdown&&(o.showCountdown=fh(r.showCountdown)),void 0!==r.vpaidMode&&(o.vpaidMode=function(e){switch(e){case"insecure":return fZ.INSECURE;case"disabled":return fZ.DISABLED;default:return fZ.ENABLED}}(r.vpaidMode)),Z(r.allowedMimeTypes)&&(o.allowedMimeTypes=r.allowedMimeTypes.filter(ti)),void 0!==r.googleImaConfiguration&&(o.googleImaConfiguration=void 0===(s=r.googleImaConfiguration)?{useNativeIma:!1}:{useNativeIma:fh(s.useNativeIma)})),h.ads=o,h.analytics=f$(h.analytics),h.mutedAutoplay=lw(h.mutedAutoplay),h.allowNativeFullscreen=!!h.allowNativeFullscreen,h.allowMixedContent=!!h.allowMixedContent,h.persistVolume=!!h.persistVolume,h.liveOffset=Number(h.liveOffset)||void 0,h.hlsDateRange=!!h.hlsDateRange,h.retainPlaybackRateOnSourceChange=!!h.retainPlaybackRateOnSourceChange,h.license=ti(a=h.license)?a:void 0,h.licenseUrl=function(e){if(e)try{return nz(e)}catch(e){return void _.Wo("Invalid 'licenseUrl', falling back to default URL")}}(h.licenseUrl),h}function lk(e){return{vy:e.vy,ly:e.ly,_y:e._y,Lh:e.Lh,gy:e.gy,wy:e.wy,yy:e.yy,py:e.py,bw:e.bw,Ay:e.Ay,b
1y:e.by,Ty:e.Ty,Ey:e.Ey}}function lE(e,r){var s=r.Ey,o=r.wy;e.Ey=s,e.wy=o}function lA(e,r,s){if(r!==s){var o=r.vy,u=r.ly,a=r.wy,h=r.yy,c=r.py,f=r.bw,l=r.Ay,p=(r.Ty,r.by,r.Ey),v=s.vy,d=s.ly,y=s._y,g=s.gy,m=s.wy,w=s.yy,b=s.py,k=s.bw,E=s.Ay,x=(s.Ty,s.by,s.Ey);f!==f1.Yw&&e.yh(new f9(v,k)),w&&!h?e.yh(new lt(v)):!w&&h&&e.yh(new le(v)),k>=f1.Qw&&e.yh(new lo(v,k)),d===u||A(d)&&A(u)||e.yh(new lu(d)),b!==c&&e.yh(new la(v,b)),v!==o&&e.yh(new lh(v,void 0)),y&&e.yh(new lc(v)),k>=f1.Zw&&e.yh(new lf(v,k)),E&&!l?e.yh(new ll(v)):!E&&l&&e.yh(new lp(v)),x===p&&m===a||e.yh(new lv(v,x)),k>=f1.Kw&&e.yh(new ld(v,k)),k>=f1.Jw&&e.yh(new ly(v,k)),k!==f&&e.yh(new lg(v,k)),g&&e.yh(new lm(g))}}(lx=li||(li={})).NONE="none",lx.ALL="all",lx.CONTENT="content",(lT=lr||(lr={})).LIVE_OFFSET="liveoffset",lT.TRACK_BYTES_DOWNLOADED="trackbytesdownloaded",lT.ESTIMATED_TRACK_NETWORK_BANDWIDTH="estimatedtracknetworkbandwidth",lT.ESTIMATED_TRACK_MEDIA_DATA_BANDWIDTH="estimatedtrackmediadatabandwidth",lT.SEGMENT_RECEIVE_INTERVAL="segmentreceiveinterval";var lx,lT,lC,lS={windowStart:.2,target:.45,windowEnd:.7,maxOffset:1.5},lR=lL(.5,lS);function lL(e,r){var s=b.max(1,e/r.windowStart);return{windowStart:s*r.windowStart,target:s*r.target,windowEnd:s*r.windowEnd,maxOffset:r.maxOffset+(s*r.windowEnd-r.windowEnd)}}(lj=lC||(lC={}))[lj.Sy=0]="Sy",lj[lj.Iy=1]="Iy",lj[lj.Ry=-1]="Ry";var l_=function(e,r){return(0|e)-(0|r)},lP=function(e,r){return e===r?lC.Sy:e<r?lC.Ry:e>r?lC.Iy:A(e)?A(r)?lC.Sy:lC.Iy:lC.Ry};function lI(e,r,s){return tQ(e,r,s)?lC.Sy:lP(e,r)}var lN=function(e,r){return tG(e,r)?lC.Sy:lP(e,r)},lO=function(){function e(){}var r=e.prototype;return r.Ny=function(e){return this.Dy()*e},r.Cy=function(e){return this.Py(e)>0},r.By=function(e){return this.Py(e)>=0},r.Oy=function(e,r){return this.My(e).Ly(r)},r.xy=function(e){return 0===this.Py(e)},r.Uy=function(e){return 0>this.Py(e)},r.Ly=function(e){return 0>=this.Py(e)},r.Fy=function(){return this.Hy()?this.Xy():this},r.Vy=function(e){return this.Wy(e.Xy())},r.My=function(e){return this.Vy(e).Fy()},e}();function lD(e,r){return e.qy()?r.qy()?lC.Sy:lC.Iy:r.qy()?lC.Ry:e.Gy()?r.Gy()&&e.Hy()===r.Hy()?lC.Sy:e.Hy()?lC.Ry:lC.Iy:r.Hy()?lC.Iy:lC.Ry}var lU=function(){function e(e,r){this.zy=void 0,this.jy=void 0,this.zy=e,this.jy=r}e.Yy=function(r,s,o){return o?new e(r.toUnsigned(),s.toUnsigned()):new e(r.toSigned(),s.toSigned())},e.Qy=function(r){return r.unsigned?new e(r,tx.UZERO):new e(r,r.isNegative()?tx.NEG_ONE:tx.ZERO)},e.Zy=function(r,s){if(A(r))return s?e.Ky:e.Jy;if(s){if(r<0)return e.Ky;if(r>=3402823669209385e23)return e.$y}else{if(r<=-17014118346046923e22)return e.nk;if(r+1>=17014118346046923e22)return e.rk}return r<0?e.Zy(-r,s).Xy():e.Yy(tx.fromNumber(r%0xffffffffffffffff),tx.fromNumber(r/0xffffffffffffffff),s)};var r=e.prototype;return r.ek=function(){return this.jy.unsigned},r.hk=function(){return this.zy.isZero()&&this.jy.isZero()},r.Hy=function(){return this.jy.isNegative()},r.ck=function(){return this.ek()?e.Yy(this.zy,this.jy,!1):this},r.fk=function(){return this.ek()?this:e.Yy(this.zy,this.jy,!0)},r.vk=function(){return this.zy},r.Dy=function(){return this.Hy()?-this.Xy().Dy():0xffffffffffffffff*this.jy.toNumber()+this.zy.toUnsigned().toNumber()},r.dk=function(){return this.zy.toInt()},r.xy=function(e){return(this.ek()===e.ek()||this.jy.getHighBits()>>>31!=1||e.jy.getHighBits()>>>31!=1)&&this.jy.toUnsigned().eq(e.jy.toUnsigned())&&this.zy.toUnsigned().eq(e.zy.toUnsigned())},r.Py=function(e){if(this.xy(e))return lC.Sy;var r=this.Hy(),s=e.Hy();if(r&&!s)return lC.Ry;if(!r&&s)return lC.Iy;if(!this.ek())return this.Vy(e).Hy()?lC.Ry:lC.Iy;var o=this.fk(),u=e.fk(),a=u.jy.comp(o.jy);return a>0||0===a&&u.zy.gt(o.zy)?lC.Ry:lC.Iy},r.Uy=function(e){return 0>this.Py(e)},r.Ly=function(e){return 0>=this.Py(e)},r.lk=function(e){return this.Py(e)>0},r._k=function(e){return this.Py(e)>=0},r.gk=function(){return new e(this.zy.not(),this.jy.not())},r.wk=function(r){return new e(this.zy.and(r.zy),this.jy.and(r.jy))},r.yk=function(r){return new e(this.zy.or(r.zy),this.jy.or(r.jy))},r.pk=function(r){var s=127&r;return 0===s?this:s<64?e.Yy(this.zy.shl(s),this.jy.shl(s).or(this.zy.shru(64-s)),this.ek()):e.Yy(tx.ZERO,this.zy.shl(s-64),this.ek())},r.Ak=function(r){var s=127&r;return 0===s?this:s<64?e.Yy(this.zy.shru(s).or(this.jy.shl(64-s)),this.jy.shr(s),this.ek()):e.Yy(this.jy.shr(s-64),this.jy.isNegative()?tx.NEG_ONE:tx.ZERO,this.ek())},r.bk=function(r){var s=127&r;return 0===s?this:s<64?e.Yy(this.zy.shru(s).or(this.jy.shl(64-s)),this.jy.shru(s),this.ek()):64===s?e.Yy(this.jy,tx.ZERO,this.ek()):e.Yy(this.jy.shru(s-64),tx.ZERO,this.ek())},r.Wy=function(r){var s,o,u=this.jy.high>>>16,a=65535&this.jy.high,h=this.jy.low>>>16,c=65535&this.jy.low,f=this.zy.high>>>16,l=65535&this.zy.high,p=this.zy.low>>>16,v=65535&this.zy.low,d=r.jy.high>>>16,y=65535&r.jy.high,g=r.jy.low>>>16,m=65535&r.jy.low,w=r.zy.high>>>16,b=65535&r.zy.high,k=r.zy.low>>>16,E=0,A=0,x=0,T=0,C=0,S=0;s=0+((o=0+(v+(65535&r.zy.low)))>>>16),o&=65535,S+=(s+=p+k)>>>16,s&=65535,C+=(S+=l+b)>>>16,S&=65535,T+=(C+=f+w)>>>16,C&=65535,x+=(T+=c+m)>>>16,T&=65535,A+=(x+=h+g)>>>16,x&=65535,E+=(A+=a+y)>>>16,A&=65535,E+=u+d,E&=65535;var R=this.ek(),L=tx.fromBits(x<<16|T,E<<16|A,R),_=tx.fromBits(s<<16|o,C<<16|S,R);return e.Yy(_,L,R)},r.Vy=function(e){return this.Wy(e.Xy())},r.Xy=function(){return this.gk().Wy(e.Tk)},r.Ek=function(r){if(this.hk()||r.hk())return this.ek()?e.Ky:e.Jy;if(this.Hy())return r.Hy()?this.Xy().Ek(r.Xy()):this.Xy().Ek(r).Xy();if(r.Hy())return this.Ek(r.Xy()).Xy();if(this.jy.isZero()&&0===this.zy.high&&r.jy.isZero()&&0===r.zy.high)return e.Qy(this.zy.multiply(r.zy));var s=tx.fromBits(0xffffffff,0,!0),o=this.zy.and(s),u=this.zy.shru(32),a=this.jy.and(s),h=this.jy.shru(32),c=r.zy.and(s),f=r.zy.shru(32),l=r.jy.and(s),p=r.jy.shru(32),v=tx.UZERO,d=tx.UZERO,y=tx.UZERO,g=tx.UZERO;v=v.add(o.mul(c)),d=d.add(v.shru(32)),v=v.and(s),d=d.add(u.mul(c)),y=y.add(d.shru(32)),d=(d=d.and(s)).add(o.mul(f)),y=y.add(d.shru(32)),d=d.and(s),y=y.add(a.mul(c)),g=g.add(y.shru(32)),y=(y=y.and(s)).add(u.mul(f)),g=g.add(y.shru(32)),y=(y=y.and(s)).add(o.mul(l)),g=g.add(y.shru(32)),y=y.and(s),g=g.add(h.mul(c)).add(a.mul(f)).add(u.mul(l)).add(o.mul(p)).and(s);var m=tx.fromBits(v.getLowBitsUnsigned(),d.getLowBitsUnsigned(),!0),w=tx.fromBits(y.getLowBitsUnsigned(),g.getLowBitsUnsigned(),!0);return e.Yy(m,w,this.ek())},r.Sk=function(r){var s,o,u=r;if(u.hk())throw RangeError("division by zero");if(this.hk())return this.ek()?[e.Ky,e.Ky]:[e.Jy,e.Jy];if(this.ek()){if(u.ek()||(u=u.fk()),u.lk(this))return[e.Ky,this];if(u.lk(this.bk(1)))return[o=e.Ik,s=this.Vy(u)];o=e.Ky}else{if(this.xy(e.nk)){if(u.xy(e.Tk)||u.xy(e.Rk))return[e.nk,e.Jy];if(u.xy(e.nk))return[e.Tk,e.Jy];var a=this.Ak(1).Nk(u).pk(1);return a.xy(e.Jy)?o=u.Hy()?e.Tk:e.Rk:(s=this.Vy(u.Ek(a)),o=a.Wy(s.Nk(u))),[o,s=this.Vy(u.Ek(o))]}if(u.xy(e.nk))return this.ek()?[e.Ky,this]:[e.Jy,this];if(this.Hy()){if(u.Hy())return this.Xy().Sk(u.Xy());var h=this.Xy().Sk(u);return o=h[0],s=h[1],[o.Xy(),s.Xy()]}if(u.Hy()){var c=this.Sk(u.Xy());return o=c[0],s=c[1],[o.Xy(),s.Xy()]}o=e.Jy}for(s=this;s._k(u);){for(var f=b.max(1,b.floor(s.Dy()/u.Dy())),l=b.ceil(b.log(f)/b.LN2),p=l<=48?1:b.pow(2,l-48),v=e.Zy(f),d=v.Ek(u);d.Hy()||d.lk(s);)f-=p,d=(v=e.Zy(f,this.ek())).Ek(u);v.hk()&&(v=e.Tk),o=o.Wy(v),s=s.Vy(d)}return[o,s]},r.Nk=function(e){return this.Sk(e)[0]},r.Dk=function(e){return this.Sk(e)[1]},r.toString=function(r){var s=r||10;if(s<2||s>36)throw RangeError("radix");if(this.hk())return"0";if(this.Hy()){if(this.xy(e.nk)){var o=e.Zy(s),u=this.Nk(o),a=u.Ek(o).Vy(this);return u.toString(s)+a.dk().toString(s)}return"-"+this.Xy().toString(s)}for(var h=e.Zy(b.pow(s,6),this.ek()),c=this,f="";;){var l=c.Nk(h),p=(c.Vy(l.Ek(h)).dk()>>>0).toString(s);if((c=l).hk())return p+f;for(;p.length<6;)p="0"+p;f=String(p)+f}},e}();lU.Jy=lU.Qy(tx.ZERO),lU.Ky=lU.Qy(tx.UZERO),lU.Tk=lU.Qy(tx.ONE),lU.Ik=lU.Qy(tx.UONE),lU.Rk=lU.Qy(tx.NEG_ONE),lU.rk=lU.Yy(tx.NEG_ONE,tx.MAX_VALUE,!1),lU.$y=lU.Yy(tx.MAX_UNSIGNED_VALUE,tx.MAX_UNSIGNED_VALUE,!0),lU.nk=lU.Yy(tx.ZERO,tx.MIN_VALUE,!1);var lM=function(){function e(e,r){void 0===r&&(r=1),this.Ck=void 0,this.Pk=void 0,this.Ck=e,this.Pk=r}e.Bk=function(r){return new e(b.ceil(r.Ck),r.Pk)},e.Ok=function(r){return new e(b.floor(r.Ck),r.Pk)},e.Lk=function(e,r){return e.By(r)?e:r},e.Mk=function(e,r){return e.Ly(r)?e:r};var r=e.prototype;return r.Wy=function(r){return this.Pk>=r.Pk?new e(this.Ck+r.xk(this.Pk).Ck,this.Pk):new e(this.xk(r.Pk).Ck+r.Ck,r.Pk)},r.Cy=function(e){return e.Uy(this)},r.By=function(e){return e.Ly(this)},r.My=function(r){return this.Pk>=r.Pk?new e(b.abs(this.Ck-r.xk(this.Pk).Ck),this.Pk):r.My(this)},r.Oy=function(e,r){return this.My(e).Ly(r)},r.Py=function(e){return this.Pk>=e.Pk?lN(this.Ck,e.xk(this.Pk).Ck):lN(this.xk(e.Pk).Ck,e.Ck)},r.xy=function(e){return 0===this.Py(e)},r.Uy=function(e){return 0>this.Py(e)},r.Ly=function(e){return 0>=this.Py(e)},r.xk=function(r){return new e(this.Ck*(r/this.Pk),r)},r.Vy=function(r){return this.Pk>=r.Pk?new e(this.Ck-r.xk(this.Pk).Ck,this.Pk):new e(this.xk(r.Pk).Ck-r.Ck,r.Pk)},r.Uk=function(r){return new e(this.Ck*r,this.Pk)},M(e,[{key:"Gy",get:function(){return!isFinite(this.Ck)}},{key:"Fk",get:function(){return this.Ck/this.Pk}}]),e}();lM.Hk=new lM(1/6,1),lM.Jy=new lM(0),lM.Xk=new lM(1/0),lM.Vk=1e6;var lF=function(e){function r(r,s){var o;return(o=e.call(this)||this).gs=void 0,o.Pk=void 0,o.gs=r.toSigned(),o.Pk=s>>>0,o}j(r,e),r.Wk=function(e,s){return void 0===s&&(s=1e6),r.Zy(e*s,s)},r.Zy=function(e,s){return A(e)?r.qk:e===1/0?r.Gk:e===-1/0?r.zk:new r(tx.fromNumber(e),s)},r.Qy=function(e,s){return new r(e,s)},r.jk=function(e){return r.Wk(e.Fk,1e6)},r.Yk=function(e){return new r(tx.fromNumber(e.getTime()),1e3)},r.Lk=function(e,r){return e.By(r)?e:r},r.Mk=function(e,r){return e.Ly(r)?e:r},r.Qk=function(e,s,o){return r.Lk(s,r.Mk(o,e))};var s=r.prototype;return s.Hy=function(){return this.gs.isNegative()},s.hk=function(){return 0!==this.Pk&&this.gs.isZero()},s.Gy=function(){return 0===this.Pk&&!this.gs.isZero()},s.qy=function(){return 0===this.Pk&&this.gs.isZero()},s.Dy=function(){if(0===this.Pk)return this.gs.isZero()?NaN:this.gs.isNegative()?-1/0:1/0;var e=this.gs.divide(this.Pk),r=this.gs.subtract(e.multiply(this.Pk));return e.toNumber()+r.toNumber()/this.Pk}
1,s.vk=function(){if(0===this.Pk)throw new y("Failed to convert timestamp");return this.gs},s.Zk=function(){return new Date(0===this.Pk?NaN:this.xk(1e3).gs.toNumber())},s.Kk=function(){return new lM(0===this.Pk?this.Dy():this.gs.toNumber(),this.Pk)},s.xk=function(e,s){void 0===s&&(s=lH.Jk);var o=this.Pk;if(o===e||0===o)return this;var u=tz(o,e);return new r((function(e,r,s){var o=e.Sk(r),u=o[0],a=o[1];if(a.hk())return u;if(s===lH.Jk)return a.Hy()?u.Vy(lU.Tk):u;if(s===lH.$k)return a.Hy()?u:u.Wy(lU.Tk);var h=a.Ek(lU.Zy(2));return h.Hy()?h.Xy().Uy(r)?u:u.Vy(lU.Tk):h.Uy(r)?u:u.Wy(lU.Tk)})(lU.Qy(this.gs).Ek(lU.Zy(e/u)),lU.Zy(o/u),s).vk(),e)},s.Py=function(e){if(this===e)return lC.Sy;if(0===this.Pk||0===e.Pk)return lD(this,e);if(this.hk())return e.hk()?lC.Sy:e.Hy()?lC.Iy:lC.Ry;if(e.hk())return this.Hy()?lC.Ry:lC.Iy;var r=b.min(this.Pk,e.Pk),s=this.xk(r,lH.tm).gs,o=e.xk(r,lH.tm).gs;return s.compare(o)},s.Xy=function(){var e;return 0===this.Pk?(e=this,e.qy()?e:e.Hy()?lF.Gk:lF.zk):new r(this.gs.negate(),this.Pk)},s.Wy=function(e){if(0===this.Pk||0===e.Pk){var s,o;return s=this,o=e,s.qy()||o.qy()?lF.qk:s.Gy()&&o.Gy()?s.Hy()===o.Hy()?s:lF.qk:s.Gy()?s:o}if(this.hk())return e;if(e.hk())return this;var u=b.max(this.Pk,e.Pk),a=this.xk(u,lH.tm),h=e.xk(u,lH.tm);return new r(a.gs.add(h.gs),u)},s.Ek=function(e){if(this.qy()||A(e))return r.qk;if(this.Gy()||!isFinite(e)){if(this.hk()||0===e)return r.qk;var s=this.Hy()?r.zk:r.Gk;return e<0?s.Xy():s}return this.hk()?this:new r(0===e?tx.ZERO:this.gs.multiply(e),this.Pk)},s.Nk=function(e){if(this.qy()||A(e))return r.qk;if(this.Gy())return isFinite(e)?0===e?1/e<0?this.Xy():this:e<0?this.Xy():this:r.qk;if(!isFinite(e))return new r(tx.ZERO,this.Pk);if(this.hk())return 0===e?r.qk:new r(tx.ZERO,this.Pk);if(0===e){var s=this.Hy()?r.zk:r.Gk;return 1/e<0?s.Xy():s}return new r(this.gs.divide(e),this.Pk)},s.nm=function(){return[this.gs.low,this.gs.high,this.Pk]},r}(lO);lF.Jy=new lF(tx.ZERO,1e6),lF.qk=new lF(tx.ZERO,0),lF.Gk=new lF(tx.ONE,0),lF.zk=new lF(tx.NEG_ONE,0);var lj,lH,lB=function(e){function r(r,s){var o;return(o=e.call(this)||this).gs=void 0,o.Pk=void 0,o.gs=BigInt.asIntN(64,r),o.Pk=s>>>0,o}j(r,e),r.Wk=function(e,s){return void 0===s&&(s=1e6),r.Zy(e*s,s)},r.Zy=function(e,s){return A(e)?r.qk:e===1/0?r.Gk:e===-1/0?r.zk:new r(BigInt(b.floor(e)),s)},r.Qy=function(e,s){return new r(BigInt(e.high)<<BigInt(32)|BigInt(e.low>>>0),s)},r.jk=function(e){return r.Wk(e.Fk,1e6)},r.Yk=function(e){return r.Zy(e.getTime(),1e3)},r.Lk=function(e,r){return e.By(r)?e:r},r.Mk=function(e,r){return e.Ly(r)?e:r},r.Qk=function(e,s,o){return r.Lk(s,r.Mk(o,e))};var s=r.prototype;return s.Hy=function(){return this.gs<BigInt(0)},s.hk=function(){return 0!==this.Pk&&this.gs===BigInt(0)},s.Gy=function(){return 0===this.Pk&&this.gs!==BigInt(0)},s.qy=function(){return 0===this.Pk&&this.gs===BigInt(0)},s.Dy=function(){if(0===this.Pk)return this.gs===BigInt(0)?NaN:this.gs<BigInt(0)?-1/0:1/0;var e=this.gs/BigInt(this.Pk),r=this.gs-e*BigInt(this.Pk);return Number(e)+Number(r)/this.Pk},s.vk=function(){if(0===this.Pk)throw new y("Failed to convert timestamp");return this.im()},s.im=function(){var e=this.gs&BigInt(0xffffffff),r=this.gs>>BigInt(32)&BigInt(0xffffffff);return tx.fromBits(Number(e),Number(r))},s.Zk=function(){return new Date(0===this.Pk?NaN:Number(this.xk(1e3).gs))},s.Kk=function(){return new lM(0===this.Pk?this.Dy():Number(this.gs),this.Pk)},s.xk=function(e,s){void 0===s&&(s=lH.Jk);var o=this.Pk;if(o===e||0===o)return this;var u=tz(o,e);return new r(function(e,r,s){var o=e/r,u=e-o*r;if(u===BigInt(0))return o;if(s===lH.Jk)return u<BigInt(0)?o-BigInt(1):o;if(s===lH.$k)return u<BigInt(0)?o:o+BigInt(1);var a=u*BigInt(2);return a<BigInt(0)?-a<r?o:o-BigInt(1):a<r?o:o+BigInt(1)}(this.gs*BigInt(e/u),BigInt(o/u),s),e)},s.Py=function(e){if(this===e)return lC.Sy;if(0===this.Pk||0===e.Pk)return lD(this,e);if(this.hk())return e.hk()?lC.Sy:e.Hy()?lC.Iy:lC.Ry;if(e.hk())return this.Hy()?lC.Ry:lC.Iy;var r=b.min(this.Pk,e.Pk),s=this.xk(r,lH.tm).gs,o=e.xk(r,lH.tm).gs;return s>o?lC.Iy:s<o?lC.Ry:lC.Sy},s.Xy=function(){var e;return 0===this.Pk?(e=this,e.qy()?e:e.Hy()?lB.Gk:lB.zk):new r(-this.gs,this.Pk)},s.Wy=function(e){if(0===this.Pk||0===e.Pk){var s,o;return s=this,o=e,s.qy()||o.qy()?lB.qk:s.Gy()&&o.Gy()?s.Hy()===o.Hy()?s:lB.qk:s.Gy()?s:o}if(this.hk())return e;if(e.hk())return this;var u=b.max(this.Pk,e.Pk),a=this.xk(u,lH.tm),h=e.xk(u,lH.tm);return new r(a.gs+h.gs,u)},s.Ek=function(e){if(this.qy()||A(e))return r.qk;if(this.Gy()||!isFinite(e)){if(this.hk()||0===e)return r.qk;var s=this.Hy()?r.zk:r.Gk;return e<0?s.Xy():s}return this.hk()?this:new r(0===e?BigInt(0):this.gs*BigInt(e),this.Pk)},s.Nk=function(e){if(this.qy()||A(e))return r.qk;if(this.Gy())return isFinite(e)?0===e?1/e<0?this.Xy():this:e<0?this.Xy():this:r.qk;if(!isFinite(e))return new r(BigInt(0),this.Pk);if(this.hk())return 0===e?r.qk:new r(BigInt(0),this.Pk);if(0===e){var s=this.Hy()?r.zk:r.Gk;return 1/e<0?s.Xy():s}return new r(this.gs/BigInt(e),this.Pk)},s.nm=function(){var e=this.im();return[e.low,e.high,this.Pk]},M(r,null,[{key:"Jy",get:function(){return r.um||(r.um=new r(BigInt(0),1e6)),r.um}},{key:"qk",get:function(){return r.hm||(r.hm=new r(BigInt(0),0)),r.hm}}
1,{key:"Gk",get:function(){return r.cm||(r.cm=new r(BigInt(1),0)),r.cm}},{key:"zk",get:function(){return r.fm||(r.fm=new r(BigInt(-1),0)),r.fm}}]),r}(lO);lB.um=void 0,lB.hm=void 0,lB.cm=void 0,lB.fm=void 0,(lV=lH||(lH={}))[lV.Jk=0]="Jk",lV[lV.$k=1]="$k",lV[lV.tm=2]="tm";var lV,lX,lW=!function(){try{return"function"==typeof BigInt&&"bigint"==typeof BigInt(0)}catch(e){return!1}}()?lF:lB;function lq(e){return lW.Qy(tx.fromBits(e[0],e[1],!1),e[2])}(lJ=lX||(lX={}))[lJ.gw=0]="gw",lJ[lJ.mm=1]="mm",lJ[lJ.pm=2]="pm";var lY=["analytic","golive","nogolive","bufferedchange"];function l$(e){var r=fp(e,fl);return(ti(r)?[r]:r).filter(function(e){return -1!==lY.indexOf(e)})}var lJ,lQ,lG=function(e){function r(){var r,s,o;return(r=e.call(this)||this).Kg=void 0,r._g=void 0,s="Android"===_.va._a?lR:lS,r.Am=_.va.ya?(o=s,_.va.ya&&(o=lL(.65,o)),o):s,r.Kg=void 0,r}j(r,e);var s=r.prototype;return s.nw=function(e){e.kh(lY,this.wh)},s.iw=function(e){e.Eh(lY,this.wh)},s.vm=function(){return this.Kg?this.Kg.vm():P.resolve()},s.Kl=function(){this.Th(),this.Kg&&this.iw(this.Kg),this.Kg=void 0},M(r,[{key:"ew",get:function(){return this.Kg},set:function(e){var r=this.Kg;e!==r&&(r&&this.iw(r),e&&this.nw(e),this.Kg=e,this.Kg&&(this.Kg.gm=this.Am))}},{key:"gg",get:function(){var e;return this._g||(this._g=(e=this,{goLive:function(){return e.vm()},get isLive(){return e.dm},get currentServerLiveTime(){return e.lm},get currentLatency(){return e._m},get latency(){return e.gm},set latency(n){if(!function(e){if(!te(e))return!1;var r=z(e.target)&&"number"==typeof e.target&&z(e.windowEnd)&&"number"==typeof e.windowEnd&&z(e.windowStart)&&"number"==typeof e.windowStart&&z(e.maxOffset)&&"number"==typeof e.maxOffset,s=e.windowStart>=0&&e.windowStart<=e.target&&e.target<=e.windowEnd&&e.maxOffset>=e.windowEnd;return r&&s}(n))throw new y("Invalid latency configuration");e.gm=n},get manifest(){return e.wm},get metrics(){return e.ym},addEventListener:function(r,s){e.kh(l$(r),s)},removeEventListener:function(r,s){e.Eh(l$(r),s)}})),this._g}},{key:"lm",get:function(){var e;return null==(e=this.Kg)?void 0:e.lm}},{key:"_m",get:function(){var e;return null==(e=this.Kg)?void 0:e._m}},{key:"dm",get:function(){return!!this.Kg&&this.Kg.dm}},{key:"gm",get:function(){return this.Am},set:function(e){this.Kg&&(this.Kg.gm=e),this.Am=e}},{key:"wm",get:function(){var e;return null==(e=this.Kg)?void 0:e.wm}},{key:"ym",get:function(){var e;return null==(e=this.Kg)?void 0:e.ym}}]),r}(rB),lK=function(e){function r(r){var s;return(s=e.call(this)||this).Kg=void 0,s.Tm=[],s.Em=!1,s.Sm=new fA,s.Im=new fA,s.Rm=new fL,s.Nm=new lG,s.Dm=!1,s.Cm(r),r.Ah(s.wh),s.Kg=r,s.Sm.ew=r.Pm,s.Im.ew=r.Bm,s.Rm.ew=r.Om,s.Nm.ew=r.Lm,s}j(r,e);var s,o,u,a,h=r.prototype;return h.Mm=function(){this.Kg.Mm()},h.xm=function(){this.Kg.xm()},s=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",rO(this.Tm.map(function(e){return e.Um()})).then(I));case 1:case"end":return e.stop()}},e,this)})),h.Um=function(){return s.apply(this,arguments)},h.Fm=function(){return this.Kg.Fm()},o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(s),e.next=3,this.Kg.Hm(r,s);case 3:case"end":return e.stop()}},e,this)})),h.Hm=function(e,r){return o.apply(this,arguments)},h.Xm=function(){return this.ew.Xm()},h.Vm=function(){this.ew.Vm()},h.Wm=function(){this.ew.Wm()},h.qm=function(){if(!this.Em){for(var e=0,r=this.Tm;e<r.length;e++)r[e].qm();this.Em=!0}},h.Gm=function(e){this.Kg.Gm(e)},h.zm=function(){this.Kg.zm()},h.jm=function(){this.Kg.jm()},h.Ym=function(){this.Kg.Ym()},h.Qm=function(){return this.Kg.Qm()},h.Zm=function(){return this.Kg.Zm()},h.Km=function(){for(var e=[],r=0,s=this.Tm;r<s.length;r++){var o=s[r];e.push.apply(e,o.Km())}return e},h.Jm=function(e){for(var r=!1,s=0,o=this.Tm;s<o.length;s++)r=o[s].Jm(e)||r;return r},h.yh=function(r){this.Jm(r)||e.prototype.yh.call(this,r)},h.Cm=function(e){this.Tm.push(e)},h.$m=function(e){rc(this.Tm,e)},h.tp=function(e){if(e!==this.Kg){var r=this.Kg;r.zm(),r.Rh(this.wh);var s=lk(this),o=this.np,u=this.Zm();this.Kg=e,this.Sm.ew=e.Pm,this.Im.ew=e.Bm,this.Rm.ew=e.Om,this.Nm.ew=e.Lm,lA(this,s,this);var a=this.np;a!==o&&this.yh(new fN(a)),this.Zm()!==u&&this.yh(new fI),e.Ah(this.wh),e.Gm(r)}},h.ip=function(){},u=P.coroutine(iO.mark(function e(){var r,s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.Th(),this.Kg.zm(),r=0,s=this.Tm;
1case 3:if(!(r<s.length)){e.next=10;break}return o=s[r],e.next=7,o.Kl();case 7:r++,e.next=3;break;case 10:this.Sm.Kl(),this.Im.Kl(),this.Rm.Kl(),this.Nm.Kl();case 14:case"end":return e.stop()}},e,this)})),h.Kl=function(){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",rO(this.Tm.map(function(e){return e.Yg()})).then(I));case 1:case"end":return e.stop()}},e,this)})),h.Yg=function(){return a.apply(this,arguments)},M(r,[{key:"Pm",get:function(){return this.Sm}},{key:"Om",get:function(){return this.Rm}},{key:"Bm",get:function(){return this.Im}},{key:"rp",get:function(){return this.Kg.rp}},{key:"ep",get:function(){return this.Kg.ep},set:function(e){this.Kg.ep=e}},{key:"np",get:function(){return this.Kg.np}},{key:"vy",get:function(){return this.Kg.vy},set:function(e){this.Kg.vy=e}},{key:"ly",get:function(){return this.Kg.ly}},{key:"sp",get:function(){return this.Kg.sp}},{key:"_y",get:function(){return this.Kg._y}},{key:"Lh",get:function(){return this.Kg.Lh}},{key:"gy",get:function(){return this.Kg.gy}},{key:"Lm",get:function(){return this.Nm}},{key:"op",get:function(){return this.Kg.op}},{key:"ym",get:function(){return function(e){for(var r=0,s=0,o=0,u=0,a=0,h={amountOfBufferedAudioSegments:0,amountOfBufferedVideoSegments:0},c=0;c<e.length;c++){var f=e[c];r+=f.ap,s+=f.hp,o+=f.cp,u+=f.fp,a+=f.vp,h.amountOfBufferedAudioSegments+=f.dp.amountOfBufferedAudioSegments,h.amountOfBufferedVideoSegments+=f.dp.amountOfBufferedVideoSegments}return{ap:r,hp:s,cp:o,fp:u,vp:a,dp:h}}(this.Tm.map(function(e){return e.ym}))}},{key:"wy",get:function(){return this.Kg.wy},set:function(e){this.Kg.wy=e}},{key:"lp",get:function(){return this.Kg.lp}},{key:"yy",get:function(){return this.Kg.yy}},{key:"py",get:function(){return this.Kg.py},set:function(e){this.Kg.py=e}},{key:"_p",get:function(){return this.Kg._p}},{key:"gp",get:function(){return this.Kg.gp},set:function(e){this.Kg.gp=e}},{key:"bw",get:function(){return this.Kg.bw}},{key:"wp",get:function(){return this.Kg.wp}},{key:"Ay",get:function(){return this.Kg.Ay}},{key:"by",get:function(){return this.Kg.by}},{key:"Ty",get:function(){return this.Kg.Ty}},{key:"Ey",get:function(){return this.Kg.Ey},set:function(e){this.Kg.Ey=e}},{key:"ew",get:function(){return this.Kg},set:function(e){this.tp(e)}}]),r}(fP),lz=function(e){function r(r,s,o,u,a,h,c,f){var l;return(l=e.call(this,r,s,o)||this).url=void 0,l.status=void 0,l.statusText=void 0,l.response=void 0,l.systemCode=void 0,l.url=u,l.status=a,l.statusText=h,l.response=c,l.systemCode=f,l}return j(r,e),M(r,[{key:"name",get:function(){return"ContentProtectionError"}}]),r}(om);(l5=lQ||(lQ={}))[l5.ABORTED=1]="ABORTED",l5[l5.NETWORK=2]="NETWORK",l5[l5.DECODE=3]="DECODE",l5[l5.SRC_NOT_SUPPORTED=4]="SRC_NOT_SUPPORTED",l5[l5.ENCRYPTED=5]="ENCRYPTED",l5[l5.LICENSE_INVALID=6]="LICENSE_INVALID",l5[l5.ADVERTISEMENT_ERROR=7]="ADVERTISEMENT_ERROR";var lZ=function(e){function r(r,s,o,u){var a;return(a=e.call(this,s)||this).code=void 0,a.message=void 0,a.cause=void 0,a.systemCode=void 0,a.code=r,a.message=null!=s?s:"Unknown error",a.cause=o,a.systemCode=u,y.captureStackTrace&&y.captureStackTrace(t8(a),a.constructor),a}return j(r,e),M(r,[{key:"name",get:function(){return"MediaError"}}]),r}(t7);function l0(e){fn(e,"MEDIA_ERR_ABORTED",lQ.ABORTED),fn(e,"MEDIA_ERR_NETWORK",lQ.NETWORK),fn(e,"MEDIA_ERR_DECODE",lQ.DECODE),fn(e,"MEDIA_ERR_SRC_NOT_SUPPORTED",lQ.SRC_NOT_SUPPORTED),fn(e,"MEDIA_ERR_ENCRYPTED",lQ.ENCRYPTED)}function l1(r){var s,o;return r.category===e.ErrorCategory.CONTENT_PROTECTION?new lZ(lQ.ENCRYPTED,r.message,null==(s=r.cause)?void 0:s.message,r.systemCode):new lZ(function(r){if(r===e.ErrorCode.MEDIA_ABORTED)return lQ.ABORTED;if(r===e.ErrorCode.MANIFEST_LOAD_ERROR||r===e.ErrorCode.MEDIA_LOAD_ERROR||r===e.ErrorCode.SUBTITLE_LOAD_ERROR)return lQ.NETWORK;if(r===e.ErrorCode.MEDIA_DECODE_ERROR)return lQ.DECODE;if(r===e.ErrorCode.MEDIA_NOT_SUPPORTED)return lQ.SRC_NOT_SUPPORTED;var s=e.ErrorCategory.fromCode(r);return s===e.ErrorCategory.NETWORK?lQ.NETWORK:s===e.ErrorCategory.SOURCE?lQ.SRC_NOT_SUPPORTED:s===e.ErrorCategory.LICENSE?lQ.LICENSE_INVALID:s===e.ErrorCategory.CONTENT_PROTECTION?lQ.ENCRYPTED:s===e.ErrorCategory.AD?lQ.ADVERTISEMENT_ERROR:lQ.DECODE}(r.code),r.message,null==(o=r.cause)?void 0:o.message)}function l2(e){return new om(l3(e.code),e.message,e)}function l3(r){switch(r){case lQ.ABORTED:return e.ErrorCode.MEDIA_ABORTED;
1case lQ.NETWORK:return e.ErrorCode.NETWORK_ERROR;case lQ.DECODE:return e.ErrorCode.MEDIA_DECODE_ERROR;case lQ.SRC_NOT_SUPPORTED:return e.ErrorCode.SOURCE_NOT_SUPPORTED;case lQ.ENCRYPTED:return e.ErrorCode.CONTENT_PROTECTION_ERROR;case lQ.LICENSE_INVALID:return e.ErrorCode.LICENSE_ERROR;case lQ.ADVERTISEMENT_ERROR:return e.ErrorCode.AD_ERROR}}l0(lZ),l0(lZ.prototype);var l5,l4,l6=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.Gg=function(r){return e.prototype.Gg.call(this,r)},s.wg=function(){return fw(this)},r}(c8);(pr=l4||(l4={})).Xl="audio",pr.Vl="video",pr.Ku="text",pr.Wl="image",pr.Nl="unknown";var l8=function(){function e(){this.yp=[],this._g=void 0}var r=e.prototype;return r.Wy=function(e){this.yp.push(e),this._g&&this._g.push(e.gg)},r.qg=function(e){return this.yp[e]},r.kp=function(e){return Z(e)?rp(this.yp,e):rl(this.yp,e)},M(e,[{key:"Qg",get:function(){return this.yp}},{key:"Zg",get:function(){return this.yp.length}},{key:"gg",get:function(){var e,r;return this._g||(this._g=((r=(e=this).Qg.map(function(e){return e.gg})).item=function(r){var s=e.qg(0|r);return s&&s.gg||void 0},r)),this._g}}]),e}(),l7=function(e){function r(r){var s;return(s=e.call(this,cZ.Ug)||this).yg=r,s}return j(r,e),r.prototype.wg=function(){return new l9(this.yg.gg)},r}(c1),l9=function(e){function r(r){var s;return(s=e.call(this,"update")||this).track=r,s}return j(r,e),r}(c2),pt=0,pe=0,pn=0,pi=0,pr,ps,po,pu,pa=0,ph=function(e){function r(r){var s;return(s=e.call(this)||this).Ua=l4.Xl,s.mp=void 0,s.pp=void 0,s.Ap=void 0,s.bp=void 0,s.Tp=!1,s.yp=void 0,s._g=void 0,s.mp=r,s.bp=pt++,s.pp=pa+++"",s.Ap=r.label,s.yp=new l8,s.Ep(),s}j(r,e);var s=r.prototype;return s.Sp=function(e){this.aw=e},s.Ep=function(){this.aw=this.Ip},M(r,[{key:"ow",get:function(){}},{key:"aw",get:function(){return this.Tp},set:function(e){this.Tp!==e&&(this.Tp=e,this.Ip=e,this.yh(new c7(this)))}},{key:"Ip",get:function(){return!!this.mp.enabled},set:function(e){this.mp.enabled=e}},{key:"gg",get:function(){return this._g||(this._g=fg(this)),this._g}},{key:"hw",get:function(){return this.pp}},{key:"cw",get:function(){return this.bp}},{key:"fw",get:function(){return this.mp.kind}},{key:"vw",get:function(){return this.Ap},set:function(e){e!==this.Ap&&(this.Ap=e,this.yh(new l7(this)))}},{key:"dw",get:function(){return this.mp.language}},{key:"Aw",get:function(){return this.aw?"enabled":"disabled"}},{key:"Rp",get:function(){return this.mp}},{key:"lw",get:function(){return this.yp}},{key:"_w",get:function(){},set:function(e){}}]),r}(rB),pc=0,pf=function(e){function r(r){var s;return(s=e.call(this)||this).Ua=l4.Vl,s.mp=void 0,s.pp=void 0,s.bp=void 0,s.Tp=!1,s.yp=void 0,s.Ap=void 0,s._g=void 0,s.mp=r,s.bp=pt++,s.pp=pc+++"",s.yp=new l8,s.Ap=r.label,s.Ep(),s}j(r,e);var s=r.prototype;return s.Ep=function(){this.aw=this.Ip},s.Sp=function(e){this.aw=e},M(r,[{key:"ow",get:function(){}},{key:"aw",get:function(){return this.Tp},set:function(e){this.Tp!==e&&(this.Tp=e,this.Ip=e,this.yh(new c7(this)))}},{key:"Ip",get:function(){return!!this.mp.selected},set:function(e){this.mp.selected=e}},{key:"gg",get:function(){return this._g||(this._g=fg(this)),this._g}},{key:"hw",get:function(){return this.pp}},{key:"cw",get:function(){return this.bp}},{key:"fw",get:function(){return"main"}},{key:"vw",get:function(){return this.Ap},set:function(e){e!==this.Ap&&(this.Ap=e,this.yh(new l7(this)))}},{key:"dw",get:function(){return this.mp.language}},{key:"Aw",get:function(){return this.aw?"enabled":"disabled"}},{key:"Rp",get:function(){return this.mp}},{key:"lw",get:function(){return this.yp}},{key:"_w",get:function(){},set:function(e){}}]),r}(rB),pl=function(e){function r(r){var s;return(s=e.call(this,ul.Lf)||this).op=r,s}return j(r,e),r}(rX);function pp(e){switch(e){case po.DEFAULT:case po.SRT:case po.TTML:case po.WEBVTT:case po.EMSG:case po.EVENT_STREAM:case po.ID3:case po.CEA608:case po.DATE_RANGE:return!0;default:return!1}}(pv=ps||(ps={}))[pv.NONE=0]="NONE",pv[pv.LOADING=1]="LOADING",pv[pv.LOADED=2]="LOADED",pv[pv.ERROR=3]="ERROR",(pd=po||(po={})).DEFAULT="",pd.SRT="srt",pd.TTML="ttml",pd.WEBVTT="webvtt",pd.EMSG="emsg",pd.EVENT_STREAM="eventstream",pd.ID3="id3",pd.CEA608="cea608",pd.DATE_RANGE="daterange",(py=pu||(pu={})).Np="cue",py.Dp="region",py.Cp="stylesheet";var pv,pd,py,pg,pm,pw={"line-left":"start",center:"middle","line-right":"end"},pb={start:"line-left",middle:"center",end:"line-right"};function pk(e,r){if("auto"===e)switch(r){case"start":case"left":return"line-left";case"end":case"right":return"line-right";default:return"center"}return e}function pE(e,r){var s;if("auto"===e)switch(r){case"start":case"left":return 0;case"end":case"right":return 100;default:return 50}return A(s="number"==typeof e?e:E(e))?50:s}(pJ=pg||(pg={})).Pp="Bp",pJ.Op="Lp",pJ.Ug="Ec",(pQ=pm||(pm={})).Pp="enter",pQ.Op="exit",pQ.Ug="update";var pA=function(e){function r(r,s){var o;return(o=e.call(this,r)||this).Mp=s,o}return j(r,e),r}(c1),px=function(e){function r(r,s){var o;return(o=e.call(this,r)||this).cue=s,o}return j(r,e),r}(c2);function pT(e){var r,s=[pg.Pp,pg.Op,pg.Ug],o={get track(){return e.yg.gg},get id(){return e.hw},get uid(){return e.cw},get startTime(){return e.xp},get endTime(){return e.Up},get content(){return e.Fp},addEventListener:function(e,s){var o=fp(e,fl);r.kh(o,s)},removeEventListener:function(e,s){var o=fp(e,fl);r.Eh(o,s)}};return r=new rV(o),e.kh(s,function(e){return r.yh(e.gg)}),o}function pC(){}function pS(e){return fi(pT(e),{get align(){return e.Hp},get line(){return e.Xp},get lineAlign(){return e.Vp},get position(){return e.Wp},get positionAlign(){return e.qp},get region(){return e.Gp?e.Gp.gg:null},get size(){return e.Qh},get snapToLines(){return e.zp},get text(){return e.Fp},get vertical(){return e.jp}})}
1function pR(e,r){return tQ(e.xp,r.xp,.02)&&tQ(e.Up,r.Up,.02)&&e.hw===r.hw}var pL=function(e){function r(r,s,o,u,a){var h;return(h=e.call(this)||this).bp=void 0,h.pp=void 0,h.Yp=void 0,h.Qp=void 0,h._g=void 0,h.Zp=void 0,h.Kp=!1,h.Jp=void 0,h.$p=void 0,h.tA="",h.nA=-1,h.bp=pi++,h.Yp=r,h.Qp=s,h.Jp=o,h.$p=!!u,h.pp=null!=a?a:"",h}j(r,e);var s=r.prototype;return s.wg=function(){return pT(this)},s.xy=function(e){return this===e||fo(this,e)&&pR(this,e)},s.Kl=function(){this.Th()},M(r,[{key:"xp",get:function(){return this.Yp},set:function(e){this.Yp=e}},{key:"Up",get:function(){return this.Qp},set:function(e){this.Qp=e}},{key:"hw",get:function(){return this.pp}},{key:"cw",get:function(){return this.bp}},{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}},{key:"iA",get:function(){return this.Kp},set:function(e){this.Kp=e}},{key:"yg",get:function(){return this.Zp},set:function(e){this.Zp=e}},{key:"Fp",get:function(){return this.Jp},set:function(e){this.Jp=e}},{key:"rA",get:function(){return this.tA},set:function(e){this.tA=e}},{key:"eA",get:function(){return this.$p},set:function(e){this.$p=e}}]),r}(rB);function p_(e,r){return e.Fp===r.Fp&&e.Xp===r.Xp&&e.Vp===r.Vp&&e.Wp===r.Wp&&e.qp===r.qp&&e.Gp===r.Gp&&e.zp===r.zp&&e.Qh===r.Qh&&e.Hp===r.Hp&&e.jp===r.jp}var pP=function(e){function r(r,s,o,u,a){var h;return(h=e.call(this,r,s,o,u,a)||this).Xp="auto",h.Vp="start",h.Wp="auto",h.qp="auto",h.Gp=void 0,h.zp=!0,h.Qh=100,h.Hp="center",h.jp="",h}return j(r,e),r.prototype.xy=function(r){return this===r||fo(this,r)&&e.prototype.xy.call(this,r)&&p_(this,r)},M(r,[{key:"gg",get:function(){return this._g||(this._g=pS(this)),this._g}},{key:"Ua",get:function(){return pu.Np}}]),r}(pL);function pI(e){var r="number"==typeof e.Xp?e.Xp:E(e.Xp);return A(r)||e.zp||!(r<0||r>100)?A(r)?e.zp?-1:100:r:100}function pN(e){return pE(e.Wp,e.Hp)}function pO(e){return pk(e.qp,e.Hp)}function pD(e){var r=100,s=pO(e),o=pN(e);return"line-left"===s&&(r=100-o),"line-right"===s&&(r=o),"center"===s&&o<=50&&(r=2*o),"center"===s&&o>50&&(r=2*(100-o)),e.Qh<r?e.Qh:r}function pU(e){return{get id(){return e.hw},get identifier(){return e.hw},get lines(){return e.uA},get regionAnchorX(){return e.sA},get regionAnchorY(){return e.oA},get scrollValue(){return e.aA},get viewportAnchorX(){return e.hA},get viewportAnchorY(){return e.cA},get width(){return e.Lo}}}var pM=function(){function e(e,r,s,o,u,a,h,c){this._g=void 0,this.hw=e,this.Lo=r,this.uA=s,this.sA=o,this.oA=u,this.hA=a,this.cA=h,this.aA=c}return M(e,[{key:"gg",get:function(){return this._g||(this._g=pU(this)),this._g}},{key:"Ua",get:function(){return pu.Dp}}]),e}(),pF=b.pow(2,33),pj=lW.Zy(pF,9e4),pH=pj.Nk(2);function pB(e){return null!=e&&!e.qy()}function pV(e,r){return e.Gy()||r.Gy()?lW.Lk(e,r):pq(e,r).Cy(lW.Jy)?e:r}function pX(e,r){var s=e.Vy(r);return s.Uy(lW.Jy)&&(s=s.Wy(pj)),s}function pW(e,r){var s=e.Wy(r);return s.By(pj)&&(s=s.Vy(pj)),s}function pq(e,r){var s=e.Vy(r);return e.Gy()||r.Gy()||(s.By(pH)?s=s.Vy(pj):s.Uy(pH.Xy())&&(s=s.Wy(pj))),s}function pY(e,r){if(e||r)return e?r?lW.Mk(e,r):e:r}function p$(e,r){if(e||r)return e?r?lW.Lk(e,r):e:r}var pJ,pQ,pG,pK,pz,pZ,p0={fA:0,vA:1/0,dA:0},p1=["WEBVTT ","WEBVTT	","WEBVTT\n"],p2=[" ","	","\n","\f","\r"],p3=/^\d*$/,p5=/.*[0-9]+.*/,p4=/^[\d.-]+$/,p6=/(^\.|\.$)/,p8=/(\D\.|\.\D)/;function p7(e,r){return void 0===r&&(r=p0),p9(sF(new DataView(e),new sJ),r)}function p9(e,r){void 0===r&&(r=p0);var s={Tw:[],lA:[],_A:[]},o=vt(e),u=new sJ;if(vo(o),ve(o,function(e){return"\n"!==e},u),u.Zh>=o.length)return s;for((u.Kh(1),"\n"!==o.charAt(u.Zh))?vi(vn(o,u,!1,!0,s,r),s):u.Kh(1),ve(o,function(e){return"\n"===e},u);u.Zh<o.length;)vi(vn(o,u,!1,!1,s,r),s),ve(o,function(e){return"\n"===e},u);return s}function vt(e){var r=nV(e,"\0"," "),s=nV(r,"\r\n","\n");return nV(s,"\r","\n")}function ve(e,r,s){for(var o=s.Zh;s.Zh<e.length&&r(e.charAt(s.Zh));)s.Kh(1);return e.substring(o,s.Zh)}function vn(e,r,s,o,u,a){for(var h,c=0,f=r.Zh,l="",p=!1,v=!1,d=null,g=null,m=null;!p;)if(h=ve(e,function(e){return"\n"!==e},r),c++,r.Zh>=e.length?p=!0:r.Kh(1),nX(h,"--\x3e")){if(o||1!==c&&(2!==c||v)){r.$h(f);break}v=!0,f=r.Zh,d=new pP(0,0,"",!1,l);try{(function(e,r,s,o){var u,a,h,c,f=new sJ;if(vu(e,f),u=vs(e,f),a=o,s.xp=u+a.fA,vu(e,f),"--\x3e"!==e.substring(f.Zh,f.Zh+3))throw y("Something went wrong with parsing a WebVTT Cue");f.Kh(3),vu(e,f),h=vs(e,f),c=o,s.Up=h+c.fA,function(e,r,s){for(var o=e.split(/\s/),u=0;u<o.length;u++){var a=o[u];if(0!==a.length&&nX(a,":")&&":"!==a.charAt(0)&&":"!==a.charAt(a.length-1)){var h,c,f=a.indexOf(":"),l=a.substring(0,f),p=a.substring(f+1,a.length);switch(l.toUpperCase()){case"REGION":!function(e,r,s){for(var o=s.length-1;o>=0;o--)if(s[o].hw===e)return void(r.Gp=s[o])}(p,r,s);break;case"VERTICAL":var v=p,d=r;switch(v.toLowerCase()){case"rl":case"vertical:rl":case"vertical-rl":d.jp="rl";break;case"lr":case"vertical:lr":case"vertical-lr":d.jp="lr";break;default:d.jp=""}break;case"D":h=p,c=r,"VERTICAL"===h.toUpperCase()?c.jp="rl":"VERTICAL-LR"===h.toUpperCase()&&(c.jp="lr");break;case"LINE":case"L":!function(e,r){var s,o=e,u="";if(nX(e,",")&&(o=e.substring(0,e.indexOf(",")),u=e.substring(e.indexOf(",")+1,e.length)),p5.test(o)){if(nq(o,"%")){var a=va(o);if(null===a)return;s=a}else if(!p4.test(e)||e.lastIndexOf("-")>0||e.indexOf(".")!==e.lastIndexOf(".")||!p8.test(e)||p6.test(e)||A(s=E(e)))return;switch(r.Xp=s,r.zp=nq(o,"%"),u=e.toLowerCase()){case"start":case"center":case"end":r.Vp=u;break;case"middle":r.Vp="center"}}}(p,r);break;case"POSITION":case"T":!function(e,r){var s=e,o="";nX(e,",")&&(s=e.substring(0,e.indexOf(",")),o=e.substring(e.indexOf(",")+1,e.length));var u=va(s);if(null!==u)switch(r.Wp=u,o=o.toLowerCase()){case"line-left":case"center":case"line-right":case"auto":r.qp=o;break;case"start":r.qp="line-left";break;case"middle":r.qp="center";break;case"end":r.qp="line-right"}}(p,r);break;case"SIZE":case"S":!function(e,r){var s=va(e);null!==s&&(r.Qh=s)}(p,r);break;case"ALIGN":case"A":!function(e,r){var s=e.toLowerCase();switch(s){case"start":case"center":case"end":case"left":case"right":r.Hp=s;break;case"middle":r.Hp="center"}}(p,r)}}}}(e.substring(f.Zh,e.length),s,r)})(h,u.lA,d,a),l=""}catch(e){_.Wo(e),d=null}}else{if(""===h)break;o&&nW(h,"X-TIMESTAMP-MAP")&&(u.gA=function(e){var r,s,o,u,a=e.split("=")[1].trim().split(","),h=(r=a[0].trim(),nW(r,"MPEGTS"))?a[0]:a[1],c=(s=a[0].trim(),nW(s,"LO
1CAL"))?a[0]:a[1];return{wA:(u=Number(h.split(/:(.*)/)[1].trim())||0,lW.Zy(u,9e4)),yA:lW.Wk(null!=(o=vs(c.split(/:(.*)/)[1].trim(),new sJ))?o:0)}}(h)),o||2!==c||s||(nY("STYLE",l.replace(/ /g,""))?(g={Ua:pu.Cp},l=""):nY("REGION",l.replace(/ /g,""))&&(m=new pM("",100,3,0,100,0,100,""),l="")),l&&(l+="\n"),l+=h,f=r.Zh}if(d)return d.Fp=l,d;if(g);else if(m)return function(e,r){for(var s=e.split(/\s/),o=0;o<s.length;o++){var u=s[o];if(0!==u.length&&nX(u,":")&&":"!==u.charAt(0)&&":"!==u.charAt(u.length-1)){var a,h,c,f,l=u.indexOf(":"),p=u.substring(0,l),v=u.substring(l+1,u.length);switch(p.toUpperCase()){case"ID":r.hw=v;break;case"WIDTH":!function(e,r){var s=va(e);null!==s&&(r.Lo=s)}(v,r);break;case"LINES":a=v,h=r,p3.test(a)&&(h.uA=k(a));break;case"REGIONANCHOR":var d=vh(v);d&&(r.sA=d[0],r.oA=d[1]);break;case"VIEWPORTANCHOR":var y=vh(v);y&&(r.hA=y[0],r.cA=y[1]);break;case"SCROLL":c=v,f=r,"up"===c.toLowerCase()&&(f.aA="up")}}}}(l,m),m;return null}function vi(e,r){e&&e.Ua===pu.Np?r.Tw.push(e):e&&e.Ua===pu.Dp?r.lA.push(e):e&&e.Ua===pu.Cp&&r._A.push(e)}function vr(e){return/^[0-9]$/.test(e)}function vs(e,r){var s,o,u,a=nV(e,",","."),h=!1;if(r.Zh>=a.length||!vr(a.charAt(r.Zh)))throw new y("Something went wrong with parsing a WebVTT Cue timestamp");var c=ve(a,vr,r),f=k(c,10);if((c.length>2||f>59)&&(h=!0),r.Zh>=a.length||":"!==a.charAt(r.Zh))throw new y("Something went wrong with parsing a WebVTT Cue timestamp");r.Kh(1);var l=ve(a,vr,r);if(2!==l.length)throw new y("Something went wrong with parsing a WebVTT Cue timestamp");var p=k(l,10);if(h||r.Zh<a.length&&":"===a.charAt(r.Zh)){if(r.Zh>=a.length||":"!==a.charAt(r.Zh))throw new y("Something went wrong with parsing a WebVTT Cue timestamp");r.Kh(1);var v=ve(a,vr,r);if(2!==l.length)throw new y("Something went wrong with parsing a WebVTT Cue timestamp");s=f,o=p,u=k(v,10)}else s=0,o=f,u=p;if(r.Zh>=a.length||"."!==a.charAt(r.Zh))throw new y("Something went wrong with parsing a WebVTT Cue timestamp");r.Kh(1);var d=k(ve(a,vr,r),10);if(p>59||u>59)throw new y("Something went wrong with parsing a WebVTT Cue timestamp");return 60*s*60+60*o+u+d/1e3}function vo(e){if(e.length<6)return!1;for(var r=0;r<p1.length;r++)if(nW(e,p1[r]))return!0;return!1}function vu(e,r){for(;r.Zh<e.length&&rl(p2,e.charAt(r.Zh));)r.Kh(1)}function va(e){var r=e.lastIndexOf("%");if(r>-1){var s=E(e.substring(0,r));if(!A(s)&&s>=0&&s<=100)return s}return null}function vh(e){if(e.indexOf(",")>=0){var r=va(e.substring(0,e.indexOf(","))),s=va(e.substring(e.indexOf(",")+1,e.length));return[tJ(r||0,0,100),tJ(s||100,0,100)]}return null}(vF=pG||(pG={})).kA="moov",vF.mA="mvhd",vF.pA="trak",vF.AA="tkhd",vF.bA="mdia",vF.TA="mdhd",vF.EA="hdlr",vF.SA="minf",vF.IA="stbl",vF.RA="stsd",vF.NA="stsc",vF.DA="mvex",vF.CA="trex",vF.PA="avc1",vF.BA="avcC",vF.OA="hev1",vF.LA="hvc1",vF.MA="hvcC",vF.xA="pasp",vF.UA="mp4a",vF.FA="esds",vF.HA="wvtt",vF.XA="vttC",vF.VA="vlab",vF.WA="enca",vF.qA="encv",vF.GA="moof",vF.zA="mfhd",vF.jA="traf",vF.YA="tfhd",vF.QA="trun",vF.ZA="tfdt",vF.KA="mdat",vF.JA="pssh",vF.$A="emsg",vF.ib="sidx",vF.rb="styp",vF.eb="ftyp",vF.ub="sinf",vF.sb="frma",(vj=pK||(pK={})).Vl="vide",vj.Xl="soun",vj.ob="subt",vj.hb="hint",vj.cb="meta",vj.fb="auxv",(vH=pz||(pz={}))[vH.BASE_DATA_OFFSET_PRESENT=1]="BASE_DATA_OFFSET_PRESENT",vH[vH.SAMPLE_DESCRIPTION_INDEX_PRESENT=2]="SAMPLE_DESCRIPTION_INDEX_PRESENT",vH[vH.DEFAULT_SAMPLE_DURATION_PRESENT=8]="DEFAULT_SAMPLE_DURATION_PRESENT",vH[vH.DEFAULT_SAMPLE_SIZE_PRESENT=16]="DEFAULT_SAMPLE_SIZE_PRESENT",vH[vH.DEFAULT_SAMPLE_FLAGS_PRESENT=32]="DEFAULT_SAMPLE_FLAGS_PRESENT",vH[vH.DURATION_IS_EMPTY=32]="DURATION_IS_EMPTY",vH[vH.DEFAULT_BASE_IS_MOOF=131072]="DEFAULT_BASE_IS_MOOF",(vB=pZ||(pZ={}))[vB.DATA_OFFSET_PRESENT=1]="DATA_OFFSET_PRESENT",vB[vB.FIRST_SAMPLE_FLAGS_PRESENT=4]="FIRST_SAMPLE_FLAGS_PRESENT",vB[vB.SAMPLE_DURATION_PRESENT=256]="SAMPLE_DURATION_PRESENT",vB[vB.SAMPLE_SIZE_PRESENT=512]="SAMPLE_SIZE_PRESENT",vB[vB.SAMPLE_FLAGS_PRESENT=1024]="SAMPLE_FLAGS_PRESENT",vB[vB.SAMPLE_COMPOSITION_TIME_OFFSET_PRESENT=2048]="SAMPLE_COMPOSITION_TIME_OFFSET_PRESENT";var vc=function(){function e(e,r){this.Fs=void 0,this.vb=void 0,this.Fs=e,this.vb=r}var r=e.prototype;return r._b=function(){return sl(this.Fs,this.vb)},r.gb=function(){return sg(this.Fs,this.vb)},r.wb=function(){var e,r,s,o;return e=this.Fs,r=this.vb,void 0===s&&(s=!1),o=e.getInt16(r.Zh,s),r.Kh(2),o},r.yb=function(){return sm(this.Fs,this.vb)},r.kb=function(){var e,r,s,o;return e=this.Fs,r=this.vb,void 0===s&&(s=!1),o=e.getInt32(r.Zh,s),r.Kh(4),o},r.mb=function(){return sb(this.Fs,this.vb)},r.pb=function(e){return sp(this.Fs,this.vb,e)},r.Ab=function(e){return function(e,r,s){for(var o=[],u=0;u<s;u++)o.push(sm(e,r));return o}(this.Fs,this.vb,e)},r.bb=function(e){return sE(this.Fs,this.vb,e)},r.Tb=function(){return sU(this.Fs,this.vb)},r.Eb=function(e){this.vb.Kh(e)},r.tc=function(){return new e(this.Fs,this.vb.tc())},e}();function vf(e,r){for(var s=0;s<e.length;s++){var o=e[s];if(o.Ua===r)return o}}function vl(e,r){for(var s=[],o=0;o<e.length;o++){var u=e[o];u.Ua===r&&s.push(u)}return s}var vp=function(e){function r(r,s){var o;return(o=e.call(this)||this).Sb=r,o.Ib=s,o}return j(r,e),M(r,[{key:"name",get:function(){return"DataIncompleteError"}}]),r}(t9),vv=function(){function e(){}return e.Rb=function(r){var s=r.Fs,o=r.vb,u=e.Nb(s,o,!1);if(!u.Db)throw new vp(o.Zh,u.Ds);return u.Ds},e.Nb=function(r,s,o){for(var u=[];s.Zh<r.byteLength;){var a=e.Cb(r,s,o);if(!a.Db)return{Db:!1,Ds:u};u.push(a.Pb)}return{Db:!0,Ds:u}},e.Bb=function(r,s){var o=e.Cb(r,s,!1);if(!o.Db)throw new vp(s.Zh);return o.Pb},e.Ob=function(r,s){for(var o=r.Fs,u=r.vb;u.Zh<o.byteLength;){var a=e.Cb(o,u,!1);if(!a.Db)return;if(a.Pb.Ua===s)return a.Pb}},e.Cb=function(r,s,o){var u=s.Zh,a=e.Lb(r,s);if(!a.Db)return a;var h=a.Mb,c=h.Qh;if(0===c){if(o)return s.$h(u),{Db:!1,xb:1/0};c=r.byteLength-u}var f=u+c;if(f>r.byteLength)return s.$h(u),{Db:!1,xb:f};var l={Ua:h.Ua,Zh:u,Fs:new vc(sH(r,u,f),new sJ(h.Ub))};return s.$h(f),{Db:!0,Pb:l}},e.Lb=function(e,r){var s=r.Zh;if(!sd(e,r,8))return{Db:!1,xb:r.Zh+8};var o=sm(e,r),u=sE(e,r,4);
1if(1===o){if(!sd(e,r,8)){var a=r.Zh+8;return r.$h(s),{Db:!1,xb:a}}o=sb(e,r).toNumber()}if("uuid"===u){if(!sd(e,r,16)){var h=r.Zh+16;return r.$h(s),{Db:!1,xb:h}}u=sE(e,r,16)}return{Db:!0,Mb:{Ua:u,Qh:o,Ub:r.Zh-s}}},e.Fb=function(e,r,s){var o=e.Fs,u=e.vb,a=sj(sV(o),u.Zh,o.byteLength);return s&&(a=sY(a)),u.Kh(a.byteLength),{Ua:r,Fs:a}},e.Hb=function(r,s,o){var u=vm(r.yb());return{Ua:s,Xb:u.version,Vb:u.flags,Fs:e.Fb(r,s,o).Fs}},e}();function vd(e,r){var s=vy(e,r);if(!s)throw new y("Missing "+r+" atom");return s}function vy(e,r){for(var s=0;s<e.length;s++){var o=e[s];if(o.Ua===r)return o.Fs}}function vg(e,r){for(var s=[],o=0;o<e.length;o++){var u=e[o];u.Ua===r&&s.push(u.Fs)}return s}function vm(e){return{version:e>>24,flags:new sc(0xffffff&e)}}var vw=function(){function e(){}return e.Wb=function(r){for(var s=[],o=vv.Rb(new vc(r,new sJ)),u=0;u<o.length;u++){var a=o[u],h=e.qb(a);h&&s.push(h)}return s},e.Gb=function(e){return vv.Nb(e,new sJ,!1).Ds.some(function(e){return e.Ua===pG.GA||e.Ua===pG.rb})},e.zb=function(r){return vg(vv.Rb(new vc(r,new sJ)),pG.JA).map(e.jb)},e.qb=function(r){switch(r.Ua){case pG.kA:return e.Yb(r.Fs);case pG.GA:return e.Qb(r.Fs,r.Zh);case pG.KA:return e.Zb(r.Fs);case pG.ib:return e.Kb(r.Fs);case pG.$A:return e.Jb(r.Fs)}},e.Yb=function(r){var s=vv.Rb(r),o=vd(s,pG.mA),u=vg(s,pG.pA),a=vy(s,pG.DA),h=e.$b(o),c=u.map(e.tT),f=a?e.nT(a):void 0;return{Ua:pG.kA,Mb:h,iT:c,rT:f}},e.$b=function(e){var r=vm(e.yb()),s=r.version,o=r.flags,u=1===s?e.mb():e.yb(),a=1===s?e.mb():e.yb(),h=e.yb(),c=1===s?e.mb():e.yb(),f=e.yb(),l=e.gb()>>8;e.Eb(2),e.Eb(8);var p=e.Ab(9);e.Eb(24);var v=e.yb();return{Ua:pG.mA,Xb:s,Vb:o,eT:u,uT:a,Pk:h,ly:c,sT:f,Ey:l,oT:p,aT:v}},e.tT=function(r){var s=vv.Rb(r),o=vd(s,pG.AA),u=vd(s,pG.bA),a=e.hT(o),h=e.cT(u);return{Ua:pG.pA,Mb:a,fT:h}},e.hT=function(e){var r=vm(e.yb()),s=r.version,o=r.flags,u=1===s?e.mb():e.yb(),a=1===s?e.mb():e.yb(),h=e.yb();e.Eb(4);var c=1===s?e.mb():e.yb();e.Eb(8);var f=e.wb(),l=e.wb(),p=e.wb()/b.pow(2,8);e.Eb(2);var v=e.Ab(9),d=e.yb()/b.pow(2,16),y=e.yb()/b.pow(2,16);return{Ua:pG.AA,vT:o.ic(1),dT:o.ic(2),lT:o.ic(4),eT:u,uT:a,_T:h,ly:c,gT:f,wT:l,Ey:p,oT:v,Lo:d,yT:y}},e.cT=function(r){var s=vv.Rb(r),o=vd(s,pG.TA),u=vd(s,pG.EA),a=vd(s,pG.SA),h=e.kT(o),c=e.mT(u),f=e.pT(a);return{Ua:pG.bA,Mb:h,AT:c,bT:f}},e.kT=function(e){var r=vm(e.yb()),s=r.version,o=r.flags,u=1===s?e.mb():e.yb(),a=1===s?e.mb():e.yb(),h=e.yb(),c=1===s?e.mb():e.yb();return e.gb(),e.Eb(2),{Ua:pG.TA,Xb:s,Vb:o,eT:u,uT:a,Pk:h,ly:c}},e.mT=function(e){var r=vm(e.yb()),s=r.version,o=r.flags;e.Eb(4);var u=e.bb(4);e.Eb(12);var a=e.Tb();return{Ua:pG.EA,Xb:s,Vb:o,TT:u,ds:a}},e.pT=function(r){var s=vd(vv.Rb(r),pG.IA),o=e.ET(s);return{Ua:pG.SA,ST:o}},e.ET=function(r){var s=vd(vv.Rb(r),pG.RA),o=e.IT(s);return{Ua:pG.IA,RT:o}},e.IT=function(r){for(var s=vm(r.yb()),o=s.version,u=s.flags,a=(r.yb(),[]),h=vv.Rb(r),c=0;c<h.length;c++){var f=h[c],l=e.NT(f.Fs,f.Ua);l&&a.push(l)}return{Ua:pG.RA,Xb:o,Vb:u,DT:a}},e.NT=function(r,s){var o=e.CT(r,s);return o||(o=e.PT(r,s))||(s===pG.HA?e.BT(r):void 0)},e.CT=function(r,s){return s===pG.UA?e.OT(r):s===pG.WA?e.LT(r):void 0},e.PT=function(r,s){return s===pG.PA?e.MT(r):s===pG.OA||s===pG.LA?e.xT(r,s):s===pG.qA?e.UT(r):void 0},e.FT=function(e,r){return e.Eb(6),{Ua:r,HT:e.gb()}},e.XT=function(r,s){var o=e.FT(r,s);r.Eb(8);var u=r.gb(),a=r.gb();return r.Eb(2),r.Eb(2),iD({},o,{VT:u,WT:a,qT:r.yb()>>>16})},e.GT=function(r,s){var o=e.FT(r,s);r.Eb(2),r.Eb(2),r.Eb(12);var u=r.gb(),a=r.gb(),h=r.yb(),c=r.yb();r.Eb(4);var f=r.gb();r.Eb(32);var l=r.gb();return r.Eb(2),iD({},o,{Lo:u,yT:a,zT:h,jT:c,YT:f,QT:l})},e.OT=function(r){var s=e.XT(r,pG.UA),o=vd(vv.Rb(r),pG.FA);return iD({},s,{ZT:e.KT(o)})},e.BT=function(r){var s=e.FT(r,pG.HA),o=vv.Rb(r),u=vd(o,pG.XA),a=e.JT(u),h=vy(o,pG.VA);return iD({},s,{$T:a,tE:h?e.nE(h):h})},e.JT=function(e){return{Ua:pG.XA,iE:e.Tb()}},e.nE=function(e){return{Ua:pG.VA,vw:e.Tb()}},e.KT=function(e){return vv.Hb(e,pG.FA,!0)},e.MT=function(r){var s=e.GT(r,pG.PA),o=vv.Rb(r),u=vd(o,pG.BA),a=vy(o,pG.xA);return iD({},s,{rE:e.eE(u),uE:a?e.sE(a):void 0})},e.xT=function(r,s){var o=e.GT(r,s),u=vd(vv.Rb(r),pG.MA);return iD({},o,{oE:e.aE(u)})},e.UT=function(r){var s=r.tc(),o=e.GT(r,pG.qA),u=vd(vv.Rb(r),pG.ub),a=e.hE(u);return iD({},o,{cE:e.PT(s,a.vE.fE),dE:a})},e.LT=function(r){var s=r.tc(),o=e.XT(r,pG.WA),u=vd(vv.Rb(r),pG.ub),a=e.hE(u);return iD({},o,{cE:e.CT(s,a.vE.fE),dE:a})},e.hE=function(r){var s=vd(vv.Rb(r),pG.sb),o=e.lE(s);return{Ua:pG.ub,vE:o}},e.lE=function(e){var r=e.bb(4);return{Ua:pG.sb,fE:r}},e.eE=function(e){return vv.Fb(e,pG.BA,!0)},e.aE=function(e){return vv.Fb(e,pG.MA,!0)},e.sE=function(e){var r=e.yb(),s=e.yb();return{Ua:pG.xA,_E:r,gE:s}},e.nT=function(r){var s=vg(vv.Rb(r),pG.CA).map(e.wE);return{Ua:pG.DA,iT:s}},e.wE=function(e){var r=vm(e.yb()),s=r.version,o=r.flags,u=e.yb(),a=e.yb(),h=e.yb(),c=e.yb(),f=e.yb
1();return{Ua:pG.CA,Xb:s,Vb:o,_T:u,yE:a,kE:h,mE:c,pE:f}},e.Qb=function(r,s){var o=vv.Rb(r),u=vd(o,pG.zA),a=vg(o,pG.jA),h=e.AE(u),c=a.map(e.bE);return{Ua:pG.GA,TE:s,Mb:h,iT:c}},e.AE=function(e){var r=vm(e.yb()),s=r.version,o=r.flags,u=e.yb();return{Ua:pG.zA,Xb:s,Vb:o,EE:u}},e.bE=function(r){var s=vv.Rb(r),o=vd(s,pG.YA),u=vg(s,pG.QA),a=vy(s,pG.ZA),h=e.SE(o),c=u.map(function(r){return e.IE(r,h)}),f=a?e.RE(a):void 0;return{Ua:pG.jA,Mb:h,NE:c,DE:f}},e.SE=function(e){var r=vm(e.yb()),s=r.version,o=r.flags,u=e.yb(),a=o.ic(pz.BASE_DATA_OFFSET_PRESENT)?e.mb():void 0,h=o.ic(pz.SAMPLE_DESCRIPTION_INDEX_PRESENT)?e.yb():void 0,c=o.ic(pz.DEFAULT_SAMPLE_DURATION_PRESENT)?e.yb():void 0,f=o.ic(pz.DEFAULT_SAMPLE_SIZE_PRESENT)?e.yb():void 0,l=o.ic(pz.DEFAULT_SAMPLE_FLAGS_PRESENT)?e.yb():void 0;return{Ua:pG.YA,Xb:s,Vb:o,_T:u,CE:a,PE:h,kE:c,mE:f,pE:l}},e.IE=function(r,s){for(var o=vm(r.yb()),u=o.version,a=o.flags,h=r.yb(),c=a.ic(pZ.DATA_OFFSET_PRESENT)?r.kb():void 0,f=a.ic(pZ.FIRST_SAMPLE_FLAGS_PRESENT)?r.yb():void 0,l=[],p=0;p<h;p++){var v=e.BE(r,a,u,s);0===p&&void 0!==f&&(v.Vb=f),l.push(v)}return{Ua:pG.QA,Xb:u,Vb:a,OE:h,TE:c,LE:f,ME:l}},e.BE=function(e,r,s,o){return{ly:r.ic(pZ.SAMPLE_DURATION_PRESENT)?e.yb():o.kE,Qh:r.ic(pZ.SAMPLE_SIZE_PRESENT)?e.yb():o.mE,Vb:r.ic(pZ.SAMPLE_FLAGS_PRESENT)?e.yb():o.pE,xE:r.ic(pZ.SAMPLE_COMPOSITION_TIME_OFFSET_PRESENT)?0===s?e.yb():e.kb():void 0}},e.Jb=function(e){var r=e.Fs,s=e.vb,o=vm(sm(r,s)),u=o.version,a=o.flags;if(1===u){var h=sm(r,s),c=sb(r,s),f=sm(r,s),l=sm(r,s),p=sA(r,s),v=sA(r,s),d=sq(sV(r),s.Zh,r.byteLength);return s.Kh(d.byteLength),{Ua:pG.$A,Xb:u,Vb:a,UE:p,gs:v,Pk:h,FE:c,HE:f,hw:l,XE:d}}var y=sA(r,s),g=sA(r,s),m=sm(r,s),w=sm(r,s),b=sm(r,s),k=sm(r,s),E=sq(sV(r),s.Zh,r.byteLength);return s.Kh(E.byteLength),{Ua:pG.$A,Vb:a,Xb:u,UE:y,gs:g,Pk:m,VE:w,HE:b,hw:k,XE:E}},e.Zb=function(e){return vv.Fb(e,pG.KA,!1)},e.jb=function(r){var s=r.Fs,o=r.vb,u=sY(sV(s)).buffer,a=vm(sm(s,o)),h=a.version,c=a.flags,f=e.WE(s,o),l=[];if(h>0)for(var p=sm(s,o),v=0;v<p;v++){var d=sp(s,o,16);l.push(d)}var y=sm(s,o),g=new x(u,o.Zh,y);return o.Kh(s.byteLength),{Ua:pG.JA,Xb:h,Vb:c,qE:f,GE:l,zE:y,Fs:g,jE:u}},e.WE=function(e,r){for(var s="",o=0;o<4;o++){var u=sl(e,r).toString(16);s+=1===u.length?"0"+u:u}s+="-";for(var a=0;a<2;a++){var h=sl(e,r).toString(16);s+=1===h.length?"0"+h:h}s+="-";for(var c=0;c<2;c++){var f=sl(e,r).toString(16);s+=1===f.length?"0"+f:f}s+="-";for(var l=0;l<2;l++){var p=sl(e,r).toString(16);s+=1===p.length?"0"+p:p}s+="-";for(var v=0;v<6;v++){var d=sl(e,r).toString(16);s+=1===d.length?"0"+d:d}return s.toLowerCase()},e.Kb=function(e){var r,s,o=e.Fs,u=e.vb,a=vm(sm(o,u)),h=a.version,c=a.flags,f=sm(o,u),l=sm(o,u);0===h?(r=tx.fromBits(sm(o,u),0,!0),s=tx.fromBits(sm(o,u),0,!0)):(r=sb(o,u),s=sb(o,u)),u.Kh(2);for(var p=sg(o,u),v=[],d=0;d<p;d+=1){var y=sm(o,u),g=y>>31&1,m=0x7fffffff&y,w=sm(o,u),b=sm(o,u),k=b>>31&1,E=b>>28&7,A=0xfffffff&b;v.push({YE:g,QE:m,ly:w,ZE:k,KE:E,JE:A})}return{Ua:pG.ib,Xb:h,Vb:c,$E:f,Pk:l,tS:r,nS:s,iS:p,rS:v}},e.RE=function(e){var r,s=e.Fs,o=e.vb,u=vm(sm(s,o)),a=u.version,h=u.flags;return r=0===a?tx.fromBits(sm(s,o),0,!0):sb(s,o),{Ua:pG.ZA,Xb:a,Vb:h,DE:r}},e}();function vb(e){return e&&"Ns"in e?e.Ns:e}var vk=function(e){function r(r,s,o,u,a,h,c){var f;return(f=e.call(this,r,s,o,u)||this).eS=void 0,f.uS=void 0,f.sS=void 0,f.eS=a,f.uS=h,f.sS=c||void 0,f}return j(r,e),r.prototype.xy=function(r){return this===r||!!fo(this,r)&&!!e.prototype.xy.call(this,r)&&!!fs(this.oS,r.oS)&&!!fs(this.lA,r.lA)&&(this.aS&&r.aS?!!this.aS.hs(r.aS)&&(this.Fp&&r.Fp?this.Fp.hs(r.Fp):this.Fp===r.Fp):this.aS===r.aS)},M(r,[{key:"oS",get:function(){return this.eS}},{key:"lA",get:function(){return this.uS}},{key:"aS",get:function(){return this.sS}},{key:"gg",get:function(){var e;return this._g||(this._g=fi(pT(e=this),{get styles(){return e.oS},get regions(){return e.lA},get metadata(){return vb(e.aS)},get content(){return vb(e.Fp)}})),this._g}}]),r}(pL),vE=function(){function e(e,r,s){this.Cd=void 0,this.hS=void 0,this.cS=void 0,this.hS=e,this.cS=r,t4(s)?this.Cd=function(e){for(var r=0,s=["begin","end","dur"];r<s.length;r++){var o=s[r];e.Bs(o)}return e}(s):this.Cd=s}return M(e,[{key:"fS",get:function(){return this.Cd.fs(!0)}},{key:"xp",get:function(){return this.hS}},{key:"Up",get:function(){return this.cS}}]),e}(),vA="http://www.w3.org/XML/1998/namespace";function vx(e,r,s,o){var u=e.Is(s,r);return 0===u.length&&(u=e.Ts(o+":"+r)),u}function vT(e,r){for(var s=e,o=0;o<r.length;o++){var u=r[o];s=s.replace(u+":","")}return s}function vC(e,r){for(var s=e.xs,o={},u=0;u<s.length;u++)o[vT(s[u].ds,r)]=s[u].gs;return o}var vS=/^(\d\d+):(\d\d):(\d+)((\.(\d+))?|(:(\d\d+)(\.(\d+))?))$/,vR=/^(\d+)(\.(\d+))?(h|m|s|ms|f|t)$/,vL="http://www.w3.org/ns/ttml";function v_(e,r,s,o){void 0===s&&(s=p0),void 0===o&&(o=s4);var u,a,h=[],c=new DataView(e);return o===s6?(u=s,h=(a=vf(vw.Wb(c),pG.KA))?vI(sB(a.Fs),r,u):[]):o===s4&&(h=vI(c,r,s)),h}function vP(e,r,s){return void 0===s&&(s=p0),vN(e,r,s)}function vI(e,r,s){return vN(sF(e,new sJ),r,s)}function vN(e,r,s){var o,u=[];try{o=_.rs(e)}catch(e){return u}var a=o.Hs;if("tt"!==a.vs)return u;var h=a&&a.Is(vL,"head")[0],c=a&&a.Is(vL,"body")[0],f=["ebutts","tts","xml"];if(!c||!h)return u;for(var l=function(e,r){for(var s={},o=e.Is(vL,"styling")[0],u=o&&o.Is(vL,"style")||[],a=0;a<u.length;a++){var h=u[a];s[h.Ps(vA,"id")]=vC(h,r)}return s}(h,f),p=function(e,r){var s=fr(e),o=vU(r.Cs("tts:extent"));if(!o)return s;for(var u=0,a=w.keys(s);u<a.length;u++){var h=a[u],c=vU(s[h].extent);if(c){var f=vO(c[0],o[0]),l=vO(c[1],o[1]);s[h].extent=f+" "+l}var p=vU(s[h].origin);if(p){var v=vO(p[0],o[0]),d=vO(p[1],o[1]);s[h].origin=v+" "+d}}return s}(function(e,r){for(var s={},o=e.Is(vL,"layout")[0],u=o&&o.Is(vL,"region")||[],a=0;a<u.length;a++){var h=u[a],c=h.Ps(vA,"id");if(c){s[c]=vC(h,r);var f=function(e,r){for(var s={},o=e.Ts("style")||[],u=0;u<o.length;u++){var a=vC(o[u],r);for(var h in a)G.call(a,h)&&(s[h]=a[h])}return s}(h,r);for(var l in f)G.call(f,l)&&(s[c][l]=f[l])}}return s}(h,f),a),v=h.Is(vL,"metadata")[0],d=function e(r,s,o,u){var a,h,c,f=s,l=o,p=[],v=[];
1if(t4(r)){f=null!=(h=vM(r.Cs("begin"),u))?h:f,a=vM(r.Cs("dur"),0),l=null!=(c=vM(r.Cs("end"),u))?c:void 0!==a?f+a:l;for(var d=r.Es,y=0;y<d.length;y++)("body"===r.vs||"div"===r.vs)&&d[y].Qu>1||(p=p.concat(e(d[y],f,l,u)))}for(var g=function(e,r,s){var o=[];o.push(e,r);for(var u=0;u<s.length;u++){var a=s[u];o.push(a.xp,a.Up)}o.sort(lP);for(var h=o.length,c=0;c<h-1;c++)o[c+1]===o[c]&&(rf(o,c+1),c--,h=o.length);return o}(f,l,p),m=0;m<g.length-1;m++){var w=function(e,r,s){for(var o=[],u=0;u<s.length;u++){var a=s[u].xp,h=s[u].Up;(a>=e&&h<=r||a<r&&h>=r||a<e&&h>e)&&o.push(s[u])}return o}(g[m],g[m+1],p);if(w.length<=0&&function(e){if(t4(e)){var r=e.vs.toUpperCase(),s=!!e.Cs("smpte:backgroundImage");return"BR"===r||s}return e.Qu===t1.Ku}(r)){var b=r.fs(!1);v.push(new vE(g[m],g[m+1],b))}else w.length>0&&function(){var e=r.fs(!1);w.forEach(function(r){return e.Rs(r.fS)}),v.push(new vE(g[m],g[m+1],e))}()}return v}(c,s.fA,s.vA,s.dA),y=0;y<d.length;y++){var g=d[y],m=function(e,r){for(var s=function e(r){var s,o=[];if(t4(r)){(s=r.Cs("region"))&&o.push(s);for(var u=r.Es,a=0;a<u.length;a++)o=o.concat(e(u[a]))}return o}(r.fS),o={},u=0;u<s.length;u++){var a=s[u];o[a]=e[a]}return o}(p,g);u.push(new vk(g.xp,g.Up,g.fS,!1,l,m,v))}return u}function vO(e,r){var s=vD(e),o=vD(r);if(s&&o&&s===o){var u=Number(e.slice(0,-s.length)),a=Number(r.slice(0,-o.length));return A(u)||A(a)?e:u/a*100+"%"}return e}function vD(e){return nq(e,"px")?"px":nq(e,"em")?"em":nq(e,"c")?"c":nq(e,"%")?"%":void 0}function vU(e){if(e){var r=e.split(" ");if(2===r.length)return[r[0],r[1]]}}function vM(e,r){if(e){if(vS.test(e)){var s=vS.exec(e);if(!s)return;var o=Number(s[1])||0,u=Number(s[2])||0,a=Number(s[3])||0,h=s[6];return 3600*o+60*u+a+(h?Number(h)*b.pow(.1,h.length):0)-r}if(vR.test(e)){var c=vR.exec(e);if(!c)return;var f,l=Number(c[1]);switch(c[4]){case"h":f=3600*l;break;case"m":f=60*l;break;case"s":f=l;break;case"ms":f=.001*l;break;default:f=NaN}return f-r}}}var vF,vj,vH,vB,vV,vX=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.Gg=function(r){return e.prototype.Gg.call(this,r)},s.zg=function(r){var s=e.prototype.zg.call(this,r);return s&&(r.Aw=fk.gw),s},s.wg=function(){return fR(this)},r}(c8),vW=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).iT=new vX,r.vS=function(e){var s=e.yg;r.dS(s)},r}j(r,e);var s,o=r.prototype;return o.Gg=function(e){e.kh(cZ.Pg,this.vS),this.iT.Gg(e),this.dS(e)},o.zg=function(e){e.Eh(cZ.Pg,this.vS),e.Aw=fk.gw,this.iT.zg(e)},o.lS=function(e){},o._S=function(e){},o.dS=function(e){e.Aw!==fk.gw?this.lS(e):this._S(e)},o.gS=function(){for(var e=0,r=this.iT.Qg;e<r.length;e++){var s=r[e];s.Eh(cZ.Pg,this.vS),s.Kl()}},o.Yg=function(){return this.gS(),this.iT.Yg(),P.resolve()},s=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),e.next=3,this.Yg();case 3:this.iT.Kl();case 4:case"end":return e.stop()}},e,this)})),o.Kl=function(){return s.apply(this,arguments)},r}(rB);(v$=vV||(vV={})).ob="subtitles",v$.wS="captions",v$.yS="descriptions",v$.kS="chapters",v$.cb="metadata",v$.mS="thumbnails";var vq=[vV.ob,vV.wS,vV.yS,vV.kS,vV.cb,vV.mS];function vY(e){var r=String(e||"").toLowerCase();return"string"==typeof r&&rl(vq,r)?r:r?vV.cb:vV.ob}var v$,vJ,vQ=function(e){function r(r,s,o,u,a){var h;return(h=e.call(this,r,s,a)||this).url=void 0,h.status=void 0,h.url=o,h.status=u,h}return j(r,e),r}(om);function vG(e){return e instanceof hO}function vK(e){return e instanceof hU}function vz(e){return e===vV.ob||e===vV.wS}function vZ(e){return e.some(v0)}function v0(e){return nX(e,vJ.pS)}function v1(e){return nX(e,vJ.AS)||nX(e,vJ.HA)}function v2(e,r){return s7(e)&&r.some(v1)}function v3(e,r){return e===vV.mS||e===vV.cb&&r===vV.mS}function v5(e,r){return l_(e.cw,r.cw)}function v4(r,s){var o=s,u=0;if(vG(r)&&r.name===h_.u_)o=r.El.Il;else if(vK(r)){var a=r.c_;if(o=a.Sl,0===(u=a.wl))return new vQ(e.ErrorCode.SUBTITLE_CORS_ERROR,"Could not load the subtitle file. Make sure the source is set correctly and that CORS support is enabled.",o,u,r)}return new vQ(e.ErrorCode.SUBTITLE_LOAD_ERROR,"Could not load the subtitle file.",o,u,r)}function v6(e){switch(e){case po.WEBVTT:return"WebVTT";case po.SRT:return"SRT";case po.TTML:return"TTML";default:return""}}function v8(e,r){for(var s=[],o=0,u=e.Tw.Qg;o<u.length;o++){var a=u[o];if(a.Up<=r)s.push(a);else if(a.xp>=r)break}for(var h=0;h<s.length;h++){var c=s[h];e.bS(c)}}(du=vJ||(vJ={})).AS="vtt",du.HA="wvtt",du.pS="stpp";var v7=function(e){function r(r){var s;return(s=e.call(this,fE.mw)||this).errorObject=r,s}return j(r,e),r.prototype.wg=function(){return this},M(r,[{key:"error",get:function(){return this.errorObject.message}}]),r}
1(c0),v9=function(r){function s(e,s){var o;return(o=r.call(this)||this).TS=void 0,o.ES=void 0,o.SS=new rE,o.TS=e,o.ES=s,o}j(s,r);var o,u,a=s.prototype;return a.IS=function(e){if(e.src){var r=e.kind||vV.ob,s=this.TS.RS(r,e.id,e.label,e.srclang,e.default);return s.Sw=nz(e.src),this.Gg(s),s}},o=P.coroutine(iO.mark(function r(s,o){var u,a,h,c,f,l,p,v,d,y;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s.bw=ps.LOADING,u=new hP({Il:s.Sw,Al:up.Ku,ql:hk.GET,dh:o}),r.prev=2,r.next=5,this.ES.El(u);case 5:return h=(c=r.sent).wl,r.next=9,c.Qd();case 9:a=r.sent,r.next=18;break;case 12:return r.prev=12,r.t0=r.catch(2),rC(r.t0),s.bw=ps.ERROR,s.yh(new v7(v4(r.t0,s.Sw))),r.abrupt("return");case 18:for(r.prev=18,s.Ua=f=function(e){var r;return vo(vt(e))?po.WEBVTT:"tt"===(null==(r=function(e){try{return _.rs(e).Hs}catch(e){}}(e))?void 0:r.vs)?po.TTML:po.SRT}(a),l=[],f===po.WEBVTT||f===po.SRT?l=p9(a).Tw:f===po.TTML&&(l=vP(a,s)),p=0,v=l;p<v.length;p++)d=v[p],s.DS(d);r.next=33;break;case 26:return r.prev=26,r.t1=r.catch(18),rC(r.t1),s.bw=ps.ERROR,y=v6(s.Ua),s.yh(new v7(new vQ(e.ErrorCode.SUBTITLE_PARSE_ERROR,"Could not parse the "+y+(y?" ":"")+"subtitle file.",s.Sw,h,r.t1))),r.abrupt("return");case 33:s.bw=ps.LOADED;case 34:case"end":return r.stop()}},r,this,[[2,12],[18,26]])})),a.NS=function(e,r){return o.apply(this,arguments)},a.lS=function(e){rl(this.iT.Qg,e)&&e.bw===ps.NONE&&this.NS(e,this.SS.dh).catch(rS)},a.bc=function(){},u=P.coroutine(iO.mark(function e(){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this.SS.hh(),this.SS=new rE,s=0,o=this.iT.Qg;s<o.length;s++)u=o[s],this.TS.CS(u);return e.next=5,r.prototype.Yg.call(this);case 5:case"end":return e.stop()}},e,this)})),a.Yg=function(){return u.apply(this,arguments)},s}(vW);function dt(e,r){for(var s=0;s<e.length;s++){var o=e[s];if(o.fw===r&&o.PS)return o}}function de(e){void 0!==e&&(e.Aw=fk.yw)}function dn(e){for(var r=0;r<vq.length;r++){var s=vq[r];s===vV.kS?de(dt(e.Qg,s)||function(e,r){for(var s=0;s<e.length;s++){var o=e[s];if(o.fw===r)return o}}(e.Qg,s)):de(dt(e.Qg,s))}}var di=function(e){function r(){return e.call(this,ul.ov)||this}return j(r,e),r}(rX),dr=function(){function e(e){var r=this;this.BS=[],this.OS=void 0,this.V_=new rE,this.LS=void 0,this.zn=function(){return 0===r.BS.length?r.LS?ds(r.LS,r.V_.dh).then(r.MS,r.MS):r.MS():r.BS.shift()().then(r.zn)},this.MS=function(){if(0!==r.BS.length)return r.zn();r.OS=void 0},this.LS=e}var r=e.prototype;return r.xS=function(e,r){var s=this;return new P(function(o){var u=new rE;u.fh(s.V_.dh),r&&u.fh(r);var a=function(){u.rh()};s.BS.push(function(){var r=ds(e,u.dh);return o(r),r.then(a,a)}),s.OS||(s.OS=s.zn())})},r.hh=function(){return this.US(!0)},r.Kl=function(){return this.LS=void 0,this.US(!1)},r.US=function(e){var r=this.OS;return this.V_.hh(),e&&(this.V_=new rE),P.resolve(r)},e}();function ds(e,r){return new P(function(s){return s(e(r))})}var du,da,dh,dc=function(e){function r(r){var s;return(s=e.call(this,ul.Ff)||this).errorObject=void 0,s.errorObject=r,s}return j(r,e),M(r,[{key:"error",get:function(){return this.errorObject.message}},{key:"licenseAcquisitionURL",get:function(){return this.errorObject.url}},{key:"status",get:function(){return this.errorObject.status}},{key:"statusText",get:function(){return this.errorObject.statusText}},{key:"licenseAcquisitionMessage",get:function(){return this.errorObject.response}},{key:"systemCode",get:function(){return this.errorObject.systemCode}}]),r}(rX),df="titanium",dl="conax",dp="ezdrm",dv="irdeto",dd="vudrm",dy="verimatrix",dg="keyos",dm="drmtoday",dw="expressplay",db="azure",dk="xstream",dE="vimond",dA="axinom",dx="uplynk",dT="comcast",dC="custom";function dS(e){return z(e.token&&e.deviceId)}function dR(e){var r,s=null==(r=e.fairplay)?void 0:r.headers;return void 0!==s&&z(s.PreAuthorization)}function dL(e){return dS(e)&&""!==e.token&&""!==e.deviceId&&!dR(e)}(dh=da||(da={})).FS=!1,dh.HS=!1,dh.XS=!1,dh.VS=!1,dh.LOG_ADS_DETAILS=!1,dh.LOG_CHROMECAST_DETAILS=!1,dh.LOG_CUSTOM_DRM=!1,dh.LOG_BUFFERING_VIDEO_MAIN=!1,dh.LOG_BUFFERING_VIDEO_SELECTION=!1,dh.LOG_BUFFERING_AUDIO_MAIN=!1,dh.LOG_BUFFERING_AUDIO_SELECTION=!1,dh.WS=!1;var d_,dP=function(){function e(e,r,s){this.qS=e,this.yc=r,this.GS=s}return e.prototype.zS=function(e){return function(e){var r=e.onCertificateRequest;if(void 0!==r&&"function"!=typeof r)throw new g("ContentProtectionIntegration.onCertificateRequest is not a function.");var s=e.onCertificateResponse;if(void 0!==s&&"function"!=typeof s)throw new g("ContentProtectionIntegration.onCertificateResponse is not a function.");var o=e.onLicenseRequest;if(void 0!==o&&"function"!=typeof o)throw new g("ContentProtectionIntegration.onLicenseRequest is not a function.");var u=e.onLicenseResponse;if(void 0!==u&&"function"!=typeof u)throw new g("ContentProtectionIntegration.onLicenseResponse is not a function.");var a=e.extractFairplayContentId;if(void 0!==a&&"function"!=typeof a)throw new g("ContentProtectionIntegration.extractFairplayContentId is not a function.");return e}(this.GS.build(e))},M(e,[{key:"jS",get:function(){return this.qS}},{key:"Hc",get:function(){return this.yc}}]),e}();(d8=d_||(d_={})).FAILED="FAILED",d8.OVERRIDDEN="OVERRIDDEN",d8.SUCCEEDED="SUCCEEDED";var dI=function(){function r(){this.YS=[]}var s=r.prototype;return s.registerContentProtectionIntegration=function(r,s,o){switch(this.QS(r,s,o)){case d_.FAILED:throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVA
1LID,"The keySystem should be 'widevine', 'playready' or 'fairplay', but was "+s+".");case d_.OVERRIDDEN:var u=d$(s);_.Wo("Warning: Overwriting an earlier registered integration for "+r+" and "+u+".");break;case d_.SUCCEEDED:d$(s)}},s.QS=function(e,r,s){var o=d$(r);if(!o)return d_.FAILED;for(var u=d_.SUCCEEDED,a=0,h=this.YS.slice();a<h.length;a++){var c=h[a];c.jS===e&&c.Hc===o&&(u=d_.OVERRIDDEN,rc(this.YS,c))}return this.YS.push(new dP(e,o,s)),u},s.ZS=function(e,r){return void 0!==this.KS(e,r)},s.JS=function(e,r,s){var o=this.KS(e,r);if(!o)throw y("No ContentProtectionIntegrationInit was found for integration id "+e+" and key system "+r);return o.zS(s)},s.KS=function(e,r){for(var s=0,o=this.YS;s<o.length;s++){var u=o[s];if(u.jS===e&&(!r||u.Hc===r))return u}},r}();dI.$S=new dI;var dN={playready:"https://pr-keyos.licensekeyserver.com/core/rightsmanager.asmx",widevine:"https://wv-keyos.licensekeyserver.com/",fairplay:"https://fp-keyos.licensekeyserver.com/getkey"};function dO(e){if(!e)return!0;var r=e.licenseAcquisitionURL,s=e.certificateURL,o=e.keys,u=e.headers,a=e.useCredentials,h=e.queryParameters,c=e.certificateRequestProcessor,f=e.certificateResponseProcessor,l=e.licenseRequestProcessor,p=e.licenseResponseProcessor;return!(r||s||o||u||a||h||c||f||l||p)}function dD(e){return e&&void 0!==e.licenseAcquisitionURL}function dU(e){if(!e)return!0;if(dH(e))return!1;var r=e.fairplay,s=e.playready,o=e.widevine,u=e.clearkey,a=e.aes128;return dO(r)&&dO(s)&&dO(o)&&dO(u)&&dO(a)}function dM(e){var r,s=dL(e),o=dR(e)&&""!==(null==(r=e.fairplay)?void 0:r.headers.PreAuthorization)&&!dS(e);return(!s||!o)&&(s||o)}function dF(e){return e.integration===dv}function dj(e){if(!e||dU(e))return!1;var r=e.fairplay,s=e.playready,o=e.widevine,u=e.clearkey;if(dH(e))return!0;if(r&&!(r&&(void 0!==r.certificateURL||void 0!==r.certificate))||s&&!dD(s)||o&&!dD(o)||u&&!(u&&(void 0!==u.licenseAcquisitionURL||void 0!==u.keys)))return!1;if(e.integration){if(dI.$S.ZS(e.integration))return!0;switch(e.integration){case df:if(!(e.integration===df&&(dB(e)||dV(e))))return!1;break;case dd:if(!dX(e))return!1;break;case dy:if(e.integration!==dy)return!1;break;case dv:if(!dF(e))return!1;break;case dl:if(!dM(e))return!1;break;case dp:if(e.integration!==dp)return!1;break;case dg:if(!dH(e))return!1;break;case dm:if(e.integration!==dm||void 0===e.token&&(void 0===e.merchant||void 0===e.sessionId||void 0===e.userId))return!1;break;case dw:if(e.integration!==dw)return!1;break;case dk:if(!dW(e))return!1;break;case dE:if(e.integration!==dE)return!1;break;case dA:if(!dq(e))return!1;break;case db:if(e.integration!==db||void 0===e.token)return!1;break;case dx:if(e.integration!==dx)return!1;break;case dT:if(!(e&&z(e.releasePid)&&z(e.accountId)&&z(e.token)))return!1;break;case dC:break;default:return!1}}return!0}function dH(e){return e.integration===dg}function dB(e){return void 0!==e.authToken}function dV(e){return void 0!==e.accountName&&void 0!==e.customerName&&void 0!==e.portalId}function dX(e){return e.integration===dd&&void 0!==e.token}function dW(e){return e&&e.integration===dk&&ti(e.ticketAcquisitionURL)&&ti(e.streamId)}function dq(e){return e.integration===dA&&void 0!==e.token}function dY(e,r){var s,o,u,a=r[e],h=null!=(s=null==a?void 0:a.licenseAcquisitionURL)?s:dN[e],c=null!=(o=null==a?void 0:a.customdata)?o:r.customdata,f=iD({},null!=(u=null==a?void 0:a.headers)?u:{},c?{customData:c}:{}),l=null!=a?a:{};return l.customdata,iD({},function(e,r){if(null==e)return{};var s,o,u={},a=w.keys(e);for(o=0;o<a.length;o++)r.indexOf(s=a[o])>=0||(u[s]=e[s]);return u}(l,["customdata"]),{licenseAcquisitionURL:h,headers:f})}function d$(e){switch(e.toLowerCase()){case"widevine":case iz:return iz;case"playready":case iQ:return iQ;case"fairplay":case i0:return i0}}function dJ(r,s){switch(r){case i$:for(var o,u={},a=vw.zb(new DataView(s)),h=0;h<a.length;h++){var c=a[h];u[c.qE]=c.jE}return u;case iJ:case"skd":return(o={})[iZ]=s,o;default:throw new om(e.ErrorCode.CONTENT_PROTECTION_INITIALIZATION_INVALID,"Unsupported initDataType "+r)}}var dQ=function(e){function r(r){var s;return(s=e.call(this)||this).tI=void 0,s.nI=void 0,s.V_=new rE,s.tI=r,s}j(r,e);var s,o,u,a=r.prototype;return a.iI=function(e){e&&(this.nI=e,this.rI(this.V_.dh).catch(rS))},s=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this.nI,!_.oa.Co){e.next=6;break}return e.next=4,this.eI(r);case 4:if(!e.sent){e.next=6;break}return e.abrupt("return");case 6:if(!s.uI){e.next=10;break}return e.next=9,this.sI(r);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}},e,this)})),a.rI=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c,f,l;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=this.nI,o=!1,u=0,a=s.oI;case 3:if(!(u<a.length)){e.next=25;break}h=a[u],c=0,f=h.aI;case 6:if(!(c<f.length)){e.next=20;break}return l=f[c],e.prev=8,e.next=11,this.hI(h.Hc.Ha,l,r);case 11:o=!0,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(8),rC(e.t0);case 17:c++,e.next=6;break;case 20:if(!o){e.next=22;break}return e.abrupt("return",!0);case 22:u++,e.next=3;break;case 25:return e.abrupt("return",!1);case 26:case"end":return e.stop()}},e,this,[[8,14]])})),a.eI=function(e){return o.apply(this,arguments)},a.cI=function(e,r){return this.hI(e,r,this.V_.dh)},a.Yg=function(){return this.nI=void 0,this.V_.hh(),this.V_=new rE,this.fI()},u=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),e.next=3,this.Yg();case 3:this.V_.rh();case 4:case"end":return e.stop()}},e,this)})),a.Kl=function(){return u.apply(this,arguments)},a.vI=function(e,r){return!!this.nI&&!!dJ(e,r)[iK]},M(r,[{key:"Hc",get:function(){return this.dI()}}]),r}(rB),dG=function(e){function r(){return e.call(this,ul.Hf)||this}return j(r,e),r}(rX),dK=function(e){function r(r){var s;return(s=e.call(this,"Ev")||this).lI=r,s}return j(r,e),r}(rX),dz=new dr,dZ=function(r){function s(s,o,u){var a;return(a=r.call(this)||this).Ic=void 0,a.Cr=!1,a._I=!1,a.V_=new rE,a.wc=function(r){"license-request"===r.Bh?a.gI(r.Ph,r.Oh).catch(function(e){return a.Kc(e)}):a.Kc(new lz(e.ErrorCode.CONTENT_PROTECTION_NOT_SUPPORTED,"Unsupported CDM message type: "+r.Bh))},a.wI=function(e){a.yI.Nc.Gh(function(e,r){switch(e){case"usable":_.Yr(function(){a._I=!0,a.yh(new dG)},100);break;case"expired":case"status-pending":break;case"output-restricted":case"internal-error":a.yh(new dK(r))}})},a.kI=function(r){a.Kc(new lz(e.ErrorCode.CONTENT_PROTECTION_INTERNAL_ERROR,"Unknown CDM error"))},a.yI=s,a.mI=o,a.pI=u,s.kh("Ph",a.wc),s.kh("Ch",a.wI),s.kh("Lh",a.kI),a.Ic=s.Ic.then(function(){return a.AI()}),a}j(s,r);var o,u,a,h=s.prototype;return h.Ac=function(){var e=this;return this.Cr=!0,dz.xS(function(r){return e.bI(r)},this.V_.dh)},o=P.coroutine(iO.mark(function r(s){var o,u,a;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,rT(s),r.next=4,this.mI.TI(this.pI.Xh);case 4:return o=r.sent,r.next=7,this.yI.Ac(this.pI.Ha,this.pI.Xh,o);case 7:if(!this.mI.EI){r.next=10;break}return r.next=10,this.mI.Nh("persistenttokenavailable",s);case 10:r.next=19;break;case 12:throw r.prev=12,r.t0=r.catch(0),rC(r.t0),u=r.t0 instanceof s0?r.t0.cc:void 0,a=new lz(e.ErrorCode.CONTENT_PROTECTION_INTERNAL_ERROR,"Error while performing the CDM request",r.t0,void 0,void 0,void 0,void 0,u),this.Kc(a),a;case 19:case"end":return r.stop()}},r,this,[[0,12]])})),h.bI=function(e){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function r(s,o){var u,a;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o&&this.mI.SI(o),r.prev=1,!r8(s,sK())){r.next=8;break}return r.next=5,this.mI.II(new x(s),this.V_.dh);case 5:u=r.sent,r.next=11;break;case 8:return r.next=10,this.mI.RI(new x(s),this.V_.dh);case 10:u=r.sent;case 11:r.next=18;break;case 13:if(r.prev=13,r.t0=r.catch(1),!rx(r.t0)){r.next=17;break}return r.abrupt("return");case 17:throw r.t0;case 18:return r.prev=18,r.next=21,this.yI.Ec(u);case 21:r.next=27;break;case 23:throw r.prev=23,r.t1=r.catch(18),a=r.t1 instanceof s0?r.t1.cc:void 0,new lz(e.ErrorCode.CONTENT_PROTECTION_INTERNAL_ERROR,"Error while applying license response",r.t1,void 0,void 0,void 0,void 0,a);case 27:case"end":return r.stop()}},r,this,[[1,13],[18,23]])})),h.gI=function(e,r){return u.apply(this,arguments)},h.Kc=function(r){var s=r instanceof lz?r:new lz(e.ErrorCode.CONTENT_PROTECTION_ERROR,r.message,r);this.yh(new dc(s)),this.pc()},h.AI=function(){this.yI.Eh("Ph",this.wc),this.yI.Eh("Ch",this.wI),this.yI.Eh("Lh",this.kI),this._I=!1,this.V_.hh()},a=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),this.AI(),e.next=4,this.yI.pc().catch(I);case 4:case"end":return e.stop()}},e,this)})),h.pc=function(){return a.apply(this,arguments)},s}(rB),d0=[ul.Hf,ul.Ff,ul.Tv],d1=function(e){function r(r,s,o){(u=e.call(this)||this).Cc=void 0,u.tI=void 0,u.NI=void 0,u.DI=[],u.CI=void 0,u.BI=[],u.Cc=r,u.tI=o,u.NI=s;var u,a=s.OI;return a&&rN(r.Bc(a)),u}j(r,e);var s,o,u,a=r.prototype;return a.LI=function(){return this.CI||(this.CI=this.MI()),this.CI},s=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.NI.II(new x(sK()));case 2:return r=e.sent,e.next=5,this.Cc.Bc(r.buffer);case 5:case"end":return e.stop()}},e,this)})),a.MI=function(){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r){var s,o=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.BI.push(r),e.next=4,this.Cc.Pc("temporary");case 4:return s=new dZ(e.sent,this.NI,r),this.DI.push(s),s.kh(d0,this.wh),s.Ic.then(function(){return o.UI(s)}),e.abrupt("return",s);case 10:return e.prev=10,rc(this.BI,r),e.finish(10);case 13:case"end":return e.stop()}},e,this,[[0,,10,13]])})),a.xI=function(e){return o.apply(this,arguments)},a.FI=function(e){if(e.HI)return!1;for(var r=0,s=this.DI;r<s.length;r++)if(d2(s[r].pI,e))return!0;for(var o=0,u=this.BI;o<u.length;o++)if(d2(u[o],e))return!0;return!1},a.UI=function(e){e.Eh(d0,this.wh),rc(this.DI,e)},u=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),r=this.DI.slice(),this.DI.length=0,e.next=5,P.all
1(r.map(function(e){return e.pc()}));case 5:this.NI.Kl();case 6:case"end":return e.stop()}},e,this)})),a.Kl=function(){return u.apply(this,arguments)},M(r,[{key:"XI",get:function(){return this.NI.XI}},{key:"Hc",get:function(){return this.NI.Hc}},{key:"VI",get:function(){return this.NI.VI}},{key:"WI",get:function(){return this.NI.WI}},{key:"qI",get:function(){return this.NI.qI}}]),r}(rB);function d2(e,r){return!e.HI&&e.Ha===r.Ha&&r8(e.Xh,r.Xh)}var d3=function(e){function r(){return e.call(this,"persistenttokenavailable")||this}return j(r,e),r}(rX),d5=function(r){function s(e,s,o,u,a){var h;return(h=r.call(this)||this).Hc=void 0,h.XI=void 0,h.WI=void 0,h.VI=void 0,h.ES=void 0,h.GI=void 0,h.zI=void 0,h.Hc=e,h.XI=s,h.WI=o,h.ES=u,h.zI=a,h.VI=h.jI(s),h}j(s,r);var o,u,a,h=s.prototype;return h.YI=function(){return this.GI},h.SI=function(e){this.GI=e},h.QI=function(){return this.VI.licenseAcquisitionURL||this.YI()},h.TI=function(e){return P.resolve(void 0)},o=P.coroutine(iO.mark(function r(s,o,u,a){var h,c;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==(h=this.KI(s,o,u,a)).Il){r.next=3;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"The license request URL has not been correctly configured.");case 3:return r.prev=3,r.next=6,this.hg.El(h);case 6:return c=r.sent,r.next=9,c.Zd(o);case 9:return r.abrupt("return",r.sent);case 12:return r.prev=12,r.t0=r.catch(3),rC(r.t0),r.next=17,this.JI(r.t0,h.Il,a);case 17:return r.abrupt("return");case 18:case"end":return r.stop()}},r,this,[[3,12]])})),h.ZI=function(e,r,s,u){return o.apply(this,arguments)},h.KI=function(e,r,s,o){var u=this.$I().Dv(),a=this.Yl;return new hP({Il:this.tR(),Al:r,yl:u,il:e,Yl:a,ql:hk.POST,Gl:0,dh:o,Ua:hE.Pl,zl:s})},h.gI=function(e,r){return P.resolve(e)},h.nR=function(e,r,s,o){return P.resolve(e)},h.$I=function(){return new oM(this.VI.headers||{})},u=P.coroutine(iO.mark(function r(s,o,u){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Error during license server request",s);case 1:case"end":return r.stop()}},r)})),h.JI=function(e,r,s){return u.apply(this,arguments)},h.tR=function(e,r){var s=r,o=this.VI.queryParameters;if(!s){var u=this.QI();if(!u)return"";s=u}if(o||e){var a=_._o(s);e&&nK(a,e),o&&nK(a,o),s=a.href}return s},h.iR=function(e){var r;return r=this.VI.licenseResponseProcessor,P.resolve(new x(d4(e,r)))},a=P.coroutine(iO.mark(function e(r,s,o){var u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.eR(r,o);case 2:return u=e.sent,e.next=5,this.ZI(u,this.zI,s,o);case 5:return a=e.sent,e.next=8,this.iR(a);case 8:return h=e.sent,e.abrupt("return",h);case 10:case"end":return e.stop()}},e,this)})),h.rR=function(e,r,s){return a.apply(this,arguments)},h.Kl=function(){this.Th()},M(s,[{key:"hg",get:function(){return this.ES}},{key:"EI",get:function(){return!1}},{key:"OI",get:function(){var e=this.VI.certificate;if(e)return ti(e)?r3(e):sW(e)}},{key:"uR",get:function(){return"optional"}},{key:"Wc",get:function(){return!1}},{key:"qI",get:function(){return!1}},{key:"Yl",get:function(){return!!this.VI.useCredentials}}]),s}(rB);function d4(r,s){if(!r||!s||"function"!=typeof s)return r;try{return s(r)}catch(r){throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Error while preprocessing DRM data",r)}}function d6(e,r){var s=sY(e).buffer,o=r.licenseRequestProcessor;return P.resolve(d4(s,o))}var d8,d7,d9=function(e){function r(r,s,o,u){return e.call(this,i3,r,s,o,u)||this}j(r,e);var s,o=r.prototype;return o.jI=function(e){return e.widevine||{}},s=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.OI){e.next=2;break}return e.abrupt("return",this.OI);case 2:return e.abrupt("return",this.RI(new x(r),s));case 3:case"end":return e.stop()}},e,this)})),o.II=function(e,r){return s.apply(this,arguments)},o.RI=function(r,s){return e.prototype.rR.call(this,r,hA.Ml,s)},r}(d5);(yA=d7||(d7={})).Oa="Widevine",yA.Ba="PlayreadyV2",yA.sR="PlayreadyV2",yA.oR="PlayreadyV3",yA.La="Fairplay";var yt={Widevine:{DRMProvider:"Google",DRMVersion:"1.4.8.86",DRMType:"Widevine"},PlayreadyV2:{DRMProvider:"Microsoft",DRMVersion:"2.9",DRMType:"Playready"},PlayreadyV3:{DRMProvider:"Microsoft",DRMVersion:"3",DRMType:"Playready"}
1,Fairplay:{DRMProvider:"Apple",DRMType:"FairPlay",DRMVersion:"1.0"}};function ye(e,r){var s,o,u,a,h=yt[r],c=e.accountName;return{CustomerName:e.customerName,AccountName:c,PortalId:e.portalId,FriendlyName:e.friendlyName,DeviceInfo:{FormatVersion:"1",DeviceType:"PC",OSType:null==(s=_.ua)?void 0:s.oa,OSVersion:null==(o=_.ua)?void 0:o.Aa,DRMProvider:h.DRMProvider,DRMVersion:h.DRMVersion,DRMType:h.DRMType,DeviceVendor:null==(u=_.ua)?void 0:u.Ta,DeviceModel:null==(a=_.ua)?void 0:a.Ea}}}function yn(r,s){if(!r.accountName)throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"Invalid Titanium "+s+" DRM configuration, accountName is not set.");if(!r.customerName)throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"Invalid Titanium "+s+" DRM configuration, customerName is not set.");if(!r.portalId)throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"Invalid Titanium "+s+" DRM configuration, portalId is not set.");throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"Invalid Titanium "+s+" DRM configuration.")}function yi(e,r,s){var o;if(dB(e))o={AuthToken:e.authToken,Payload:r};else{if(!dV(e))throw yn(e,s);o={LatensRegistration:ye(e,s),Payload:r}}return r5(sI(JSON.stringify(o)))}function yr(e,r,s){return ys.apply(this,arguments)}function ys(){return(ys=P.coroutine(iO.mark(function r(s,o,u){var a,h,c;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=s.c_){r.next=3;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Error during Titanium server request",s,o);case 3:return h=a,r.prev=4,r.next=7,h.Yd(u);case 7:c=function(e){if(e){if(e.WvProxyErr)return e.WvProxyErr.desc;if(e.DrmErr)return e.DrmErr.desc}}(r.sent),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(4),c="";case 14:throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Error during Titanium server request",s,h.El.Il,h.wl,h.bl,c);case 15:case"end":return r.stop()}},r,null,[[4,11]])}))).apply(this,arguments)}var yo=function(r){function s(e,s,o){var u;return(u=r.call(this,e,s,o,up.Rv)||this).aR=!0,u}j(s,r);var o,u,a,h=s.prototype;return h.JI=function(e,r,s){return yr(e,r,s)},o=P.coroutine(iO.mark(function r(s,o){var u,a;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(u=this.XI){r.next=3;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"Invalid Titanium Widevine DRM configuration.");case 3:return a=r5(s),r.abrupt("return",yi(u,a,d7.Oa));case 5:case"end":return r.stop()}},r,this)})),h.eR=function(e,r){return o.apply(this,arguments)},h.iR=function(r){var s;if(!r.license)throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_INVALID,"Could not process the response from the Titanium Widevine license server");return s=r3(r.license),P.resolve(s)},h.hR=function(e){return P.resolve(new x(e))},u=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.cR(),e.next=3,this.eR(r,s);case 3:return o=e.sent,e.next=6,this.ZI(o,up.Iv,hA.xl,s);case 6:return u=e.sent,e.next=9,this.hR(u);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}},e,this)})),h.II=function(e,r){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.prototype.RI.call(this,s,o);case 2:return u=e.sent,this.cR(),e.abrupt("return",u);case 5:case"end":return e.stop()}},e,this)})),h.RI=function(e,r){return a.apply(this,arguments)},h.cR=function(){this.yh(new d3),this.aR=!1},M(s,[{key:"EI",get:function(){return this.aR}},{key:"uR",get:function(){return _.oa.Bo?"required":"optional"}}]),s}(d9),yu=function(r){var s;function o(e,s,o){var u;return(u=r.call(this,e,s,o,up.Iv)||this).SI("https://widevine-proxy.drm.technology/proxy"),u}return j(o,r),o.prototype.eR=(s=P.coroutine(iO.mark(function r(s,o){var u,a,h,c;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,d6(s,this.VI);case 2:if(u=r.sent,a=this.WI,h=s$(new x(u)),c=this.fR){r.next=8;break}
1throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"The Widevine vuDRM token has not been correctly configured.");case 8:return r.abrupt("return",JSON.stringify({token:c,drm_info:h,kid:a}));case 9:case"end":return r.stop()}},r,this)})),function(e,r){return s.apply(this,arguments)}),M(o,[{key:"fR",get:function(){if(dX(this.XI))return this.XI.token}}]),o}(d9);function ya(e,r){var s=r||{};return e.ticket&&e.sessionId&&(s=iD({},s,{SessionId:e.sessionId,Ticket:e.ticket})),iD({},s,{CrmId:e.crmId,AccountId:e.accountId,ContentId:e.contentId})}var yh=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o,up.Iv)||this).SI("https://emeademo.dev.ott.irdeto.com/Widevine/getlicense"),u}j(r,e);var s=r.prototype;return s.eR=function(e,r){return d6(e,this.VI)},s.tR=function(r,s){var o=r;return dF(this.XI)&&(o=ya(this.XI,o)),e.prototype.tR.call(this,o,s)},r}(d9),yc="Conax-Custom-Data";function yf(e,r,s){var o=e&&dM(e)&&e;if(o&&!s.has(yc)){var u=JSON.stringify({Version:"1.0.0",CxAuthenticationDataToken:dL(o)?o.token:void 0,CxClientInfo:{DeviceType:"Browser",DrmClientType:r+"-HTML5",DrmClientVersion:"1.0.0",CxDeviceId:dL(o)?o.deviceId:void 0}});s.set(yc,u)}return s}var yl=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o,up.Iv)||this).SI("https://connect.conax.com:8094/license"),u}j(r,e);var s=r.prototype;return s.eR=function(e,r){return d6(e,this.VI)},s.$I=function(){var r=e.prototype.$I.call(this);return yf(this.XI,"Widevine",r)},r}(d9);function yp(e){return r3(JSON.parse(sP(new x(e))).license)}function yv(e){return"string"==typeof e.token?e.token:r5(sI(JSON.stringify({userId:e.userId,sessionId:e.sessionId,merchant:e.merchant})))}function yd(e,r,s){var o;return o=s.token?"x-dt-auth-token":"dt-custom-data",e.set(o,r),e}var yy=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o,up.Iv)||this).SI("https://lic.drmtoday.com/license-proxy-widevine/cenc/"),u}j(r,e);var s=r.prototype;return s.eR=function(e,r){return d6(e,this.VI)},s.iR=function(e){return P.resolve(yp(e))},s.$I=function(){return yd(e.prototype.$I.call(this),this.fR,this.XI)},M(r,[{key:"fR",get:function(){return yv(this.XI)}}]),r}(d9),yg=function(e){function r(r,s,o){return e.call(this,r,s,o,up.Iv)||this}j(r,e);var s=r.prototype;return s.eR=function(e,r){return d6(e,this.VI)},s.$I=function(){var r=e.prototype.$I.call(this),s=this.XI.token;return r.set("Authorization","Bearer "+s),r},r}(d9);function ym(e,r,s,o){return yw.apply(this,arguments)}function yw(){return(yw=P.coroutine(iO.mark(function r(s,o,u,a){var h,c,f,l,p,v;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(dW(s)){r.next=2;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"Invalid Xstream DRM Configuration");case 2:return(h=new oM).append("Cache-Control","no-cache"),h.append("Content-Type","application/json"),(c=s.sessionId)&&h.append("XSSESSION",c),f=s.streamId,l={drmType:o,licenseType:s.fairplay?"persistent"===s.fairplay.licenseType?"persistent":"non-persistent":s.widevine&&"persistent"===s.widevine.licenseType?"persistent":"non-persistent",streamId:f},p={Il:s.ticketAcquisitionURL,Al:up.Rv,yl:h,ql:hk.POST,il:JSON.stringify(l),dh:a},r.next=13,u.El(p);case 13:return v=r.sent,r.next=16,v.Yd();case 16:return r.abrupt("return",r.sent);case 17:case"end":return r.stop()}},r)}))).apply(this,arguments)}var yb=function(e){function r(r,s,o){return e.call(this,r,s,o,up.Rv)||this}j(r,e);var s,o=r.prototype;return o.$I=function(){var r=e.prototype.$I.call(this);return r.set("Content-Type","application/json"),r},s=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=r5(new x(r.buffer)),u=this.XI,e.next=4,ym(u,"widevine_modular",this.hg,s);case 4:return a=e.sent,this.SI(a.licenseServerUrl),h=sI(JSON.stringify({payload:o,ticket:a.ticket})),e.abrupt("return",d6(h,this.VI));case 8:case"end":return e.stop()}},e,this)})),o.eR=function(e,r){return s.apply(this,arguments)},o.iR=function(e){return P.resolve(r3(e.license))},r}(d9),yk=function(r){function s(e,s,o){return r.call(this,e,s,o,up.Iv)||this}j(s,r);var o=s.prototype;return o.eR=function(e,r){return d6(e,this.VI)},o.$I=function(){if(!dq(this.XI))throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVA
1LID,"Invalid Axinom configuration");var s=r.prototype.$I.call(this);return s.set("X-AxDRM-Message",this.XI.token),s},s}(d9);function yE(e){for(var r=new x(2*e.length),s=0;s<e.length;s+=1)r[2*s]=e.charCodeAt(s),r[2*s+1]=0;return r}var yA,yx,yT=function(e){function r(r,s,o){var u;return(u=e.call(this,i2,r,s,o,up.Iv)||this).vR=void 0,u}j(r,e);var s,o,u=r.prototype;return u.jI=function(e){return e.playready||{}},u.$I=function(){var r=new oM(this.vR);return r.Pv(e.prototype.$I.call(this)),r},u.dR=function(e){return e.length>=1&&e[0].Es.length>0},u.TI=function(r){var s=this.XI.playready.customData;if(s){var o=yE(s),u=yE('<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="false"><CustomData encoding="base64encoded">'+r5(o)+"</CustomData></LicenseAcquisition></PlayReadyCDMData>");return P.resolve({playready:{rf:u}})}return e.prototype.TI.call(this,r)},s=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d6(r,this.VI);case 2:return o=e.sent,e.abrupt("return",this.lR(o));case 4:case"end":return e.stop()}},e,this)})),u.eR=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c,f,l,p,v,d,y,g,m,w;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:h=null,c=sR(new DataView(r),new sJ,!0),e.prev=3,f=_.rs(c),e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(3),e.abrupt("return",h);case 10:for(p=null!=(o=null==(l=null==(s=f.Ts("PlayReadyKeyMessage")[0])?void 0:s.Ts("LicenseAcquisition")[0])?void 0:l.Ts("Challenge"))?o:[],this.dR(p)&&(h=sn(p[0].Us)),v=new oM,d=null!=(u=null==l||null==(a=l.Ts("HttpHeaders")[0])?void 0:a.Ts("HttpHeader"))?u:[],y=0;y<d.length;y++)m=(g=d[y]).Ts("name")[0].Us,w=g.Ts("value")[0].Us,v.append(m,w);return this.vR=v,e.abrupt("return",h);case 18:case"end":return e.stop()}},e,this,[[3,7]])})),u.lR=function(e){return o.apply(this,arguments)},u.II=function(e,r){return P.resolve(e)},u.RI=function(r,s){return e.prototype.rR.call(this,r,hA.Ul,s)},M(r,[{key:"Wc",get:function(){return!!this.XI.playready.customData}}]),r}(d5),yC=function(){function e(r){this._R=void 0,this.gR=r,this._R=e.wR(r)}return e.wR=function(e){return"3"===e.version?d7.oR:d7.sR},e.prototype.yR=function(){var e={};if(this._R===d7.oR){var r={LatensRegistration:ye(this.gR,d7.oR)};e["X-TITANIUM-DRM-CDATA"]=r5(sI(JSON.stringify(r)))}return e},M(e,[{key:"kR",get:function(){return this._R}},{key:"Wc",get:function(){return this._R===d7.sR}}]),e}(),yS=function(r){function s(e,s,o){var u;return(u=r.call(this,e,s,o)||this).mR=void 0,u.mR=new yC(u.XI),u}j(s,r);var o,u=s.prototype;return u.TI=function(r){var s=this.XI;if(!this.XI)throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"Invalid Titanium PlayReady DRM configuration.");if(dV(s)){var o,u,a,h={};return h.playready={rf:(a=sO(("<TitaniumCustomData>"+r5(sI('<LatensRegistration formatversion="'+(u=(o=ye(s,this.mR.kR)).DeviceInfo.FormatVersion)+'"><AccountName>'+o.AccountName+"</AccountName><CustomerName>"+o.CustomerName+"</CustomerName><PortalID>"+o.PortalId+'</PortalID><DeviceInfo formatversion="'+u+'"><DeviceType>'+o.DeviceInfo.DeviceType+"</DeviceType><OSType>"+o.DeviceInfo.OSType+"</OSType><OSVersion>"+o.DeviceInfo.OSVersion+"</OSVersion><DRMProvider>"+o.DeviceInfo.DRMProvider+"</DRMProvider><DRMVersion>"+o.DeviceInfo.DRMVersion+"</DRMVersion><DRMType>"+o.DeviceInfo.DRMType+"</DRMType><DeviceVendor>"+o.DeviceInfo.DeviceVendor+"</DeviceVendor><DeviceModel>"+o.DeviceInfo.DeviceModel+"</DeviceModel></DeviceInfo></LatensRegistration>"))+"</TitaniumCustomData>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/&lt;/g,"<").replace(/&gt;/g,">"),!0),sO('<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0"><CustomData encoding="base64encoded">'+r5(a)+"</CustomData></LicenseAcquisition></PlayReadyCDMData>",!0))},P.resolve(h)}return P.reject(yn(s,d7.Ba))},u.$I=function(){var e=new oM(this.mR.yR());return e.Pv(r.prototype.$I.call(this)),e},o=P.coroutine(iO.mark(function r(s,o,u){var a,h,c,f,l,p;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=s.c_){r.next=3;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Error during Titanium PlayReady license request",s,o);case 3:return r.prev=3,r.next=6,a.Kd(u);case 6:c=sP(new x(r.sent)),(f=_.rs(c))&&(l=function(e,r){return function(e,r){for(var s=e.Ds.slice(),o=[];s.length>0;){var u=s.shift();r(u)?o.push(u):s.push.apply(s,u.Ds)}return o}(e,function(e){return e.Ss===r})}(f,"CustomData")).length>0&&(h=null==(p=JSON.parse(l[0].Us).DrmErr)?void 0:p.desc),r.next=14;break;case 12:r.prev=12,r.t0=r.catch(3);case 14:throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Error during Titanium PlayReady license request",s,o,a.wl,a.bl,h);case 15:case"end":return r.stop()}},r,null,[[3,12]])})),u.JI=function(e,r,s){return o.apply(this,arguments)},u.dR=function(r){if(1!==r.length)throw new lz(e.ErrorCode.CONTENT_PROTECTION_INITIALIZATION_INVA
1LID,"PlayReady license message incorrectly formatted, Challenge not found.");return!0},M(s,[{key:"Wc",get:function(){return this.mR.Wc}}]),s}(yT),yR=function(r){function s(e,s,o){var u;return(u=r.call(this,e,s,o)||this).SI("https://playready-license.drm.technology/rightsmanager.asmx"),u}j(s,r);var o=s.prototype;return o.dR=function(r){if(1!==r.length)throw new lz(e.ErrorCode.CONTENT_PROTECTION_INITIALIZATION_INVALID,"Vudrm PlayReady license message incorrectly formatted, Challenge not found.");return!0},o.tR=function(e,s){var o=iD({},e||{},{token:this.fR});return r.prototype.tR.call(this,o,s)},M(s,[{key:"fR",get:function(){if(dX(this.XI))return this.XI.token}}]),s}(yT),yL=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).SI("https://emeademo.dev.ott.irdeto.com/playready/rightsmanager.asmx"),u}return j(r,e),r.prototype.tR=function(r,s){var o=r;return dF(this.XI)&&(o=ya(this.XI,o)),e.prototype.tR.call(this,o,s)},r}(yT),y_=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).SI("https://connect.conax.com:8010/cxplayready/rightsmanager.asmx"),u}return j(r,e),r.prototype.$I=function(){var r=e.prototype.$I.call(this);return yf(this.XI,"PlayReady",r)},r}(yT),yP=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).SI("https://lic.drmtoday.com/license-proxy-headerauth/drmtoday/RightsManager.asmx"),u}j(r,e);var s=r.prototype;return s.iR=function(r){return(nW(sP(new x(r)),"<?xml")?yx.pR:yx.Yd)===yx.Yd?P.resolve(yp(r)):P.resolve(e.prototype.iR.call(this,new x(r)))},s.$I=function(){return yd(e.prototype.$I.call(this),this.fR,this.XI)},M(r,[{key:"fR",get:function(){return yv(this.XI)}}]),r}(yT);(yI=yx||(yx={}))[yI.pR=0]="pR",yI[yI.Yd=1]="Yd";var yI,yN,yO=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).AR=void 0,u}j(r,e);var s,o=r.prototype;return o.$I=function(){var r=e.prototype.$I.call(this);return this.AR&&r.set("Ticket",this.AR),r.set("Content-Type","text/xml"),r},s=P.coroutine(iO.mark(function r(s,o){var u,a;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return u=this.XI,r.next=3,ym(u,"playready",this.hg,o);case 3:return a=r.sent,this.SI(a.licenseServerUrl),this.AR=a.ticket,r.abrupt("return",e.prototype.eR.call(this,s,o));case 7:case"end":return r.stop()}},r,this)})),o.eR=function(e,r){return s.apply(this,arguments)},r}(yT),yD=function(r){function s(){return r.apply(this,arguments)||this}return j(s,r),s.prototype.$I=function(){if(!dq(this.XI))throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"Invalid Axinom configuration");var s=r.prototype.$I.call(this);return s.set("X-AxDRM-Message",this.XI.token),s},s}(yT);(yU=yN||(yN={})).Rv="application/json",yU.bR="application/x-www-form-urlencoded",yU.TR="application/octet-stream",yU.Ku="text/plain;charset=UTF-8";var yU,yM,yF=function(e){function r(r,s,o,u,a){var h;return(h=e.call(this,r.Hc,s,o,u,a)||this).ER="",h.SR=void 0,h.IR=void 0,h.IR=r.df,h}j(r,e);var s,o,u,a,h,c=r.prototype;return c.RR=function(){return this.VI.certificateURL||this.SR},c.NR=function(e){this.SR=e},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.DR(r,this.ER));case 1:case"end":return e.stop()}},e,this)})),c.eR=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","spc="+encodeURIComponent(r5(r))+"&assetId="+encodeURIComponent(s));case 1:case"end":return e.stop()}},e)})),c.DR=function(e,r){return o.apply(this,arguments)},c.jI=function(e){return e.fairplay||{}},c.CR=function(e){var r=e.indexOf("?");if(r>=0)return P.resolve(e.substr(r+1));var s=e.split("/");return P.resolve(s[s.length-1])},u=P.coroutine(iO.mark(function e(r){var s,o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=null!=(s=this.IR)?s:sM(new x(r)),e.next=3,this.CR(o);case 3:return u=e.sent,this.ER=u,(a={}).fairplay={df:u},e.abrupt("return",a);case 8:case"end":return e.stop()}},e,this)})),c.TI=function(e){return u.apply(this,arguments)},c.$I=function(){var r=e.prototype.$I.call(this);return r.set("Content-Type",this.PR),r},a=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.OI){e.next=2;break}return e.abrupt("return",this.OI);case 2:return e.next=4,this.OR(s);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),c.II=function(e,r){return a.apply(this,arguments)},c.RI=function(r,s){return e.prototype.rR.call(this,r,hA.Ol,s)},c.LR=function(e){var r=this.RR(),s=this.$I();return new hP({Il:r,Al:up.Iv,yl:s,ql:hk.GET,Yl:!1,il:null,Gl:0,dh:e,Ua:hE.Pl,zl:hA.Ll})},h=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=this.LR(r),e.next=3,this.hg.El(s);case 3:return o=e.sent,e.next=6,o.Kd();case 6:return u=e.sent,e.abrupt("return",new x(u));case 8:case"end":return e.stop()}},e,this)})),c.OR=function(e){return h.apply(this,arguments)},c.iR=function(e){var r;if("string"==typeof e){var s=e.trim();"<ckc>"===s.substr(0,5)&&"</ckc>"===s.substr(-6)&&(s=s.slice(5,-6)),r=r3(s)}else r=new x(e);return P.resolve(r)},c.tR=function(r,s){var o=e.prototype.tR.call(this,r,s);return nW(o,"skd:")&&(o=o.substr(4)),o},M(r,[{key:"qI",get:function(){return!0}},{key:"PR",get:function(){return yN.bR}}]),r}(d5),yj=function(e){function r(r,s,o,u){return e.call(this,r,s,o,u,up.Iv)||this}j(r,e);var s,o,u=r.prototype;return s=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=(s=r.split("://",1))[0].slice(-3),u=(s=r.split(";",2)).length>1?s[1]:"",e.abrupt("return","skd"===o.toLowerCase()?u:"");case 5:case"end":return e.stop()}},e)})),u.CR=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}},e)})),u.eR=function(e){return o.apply(this,arguments)},u.iR=function(e){return P.resolve(new x(e))},u.tR=function(r,s){var o=r||{};return o.p1=t0(),e.prototype.tR.call(this,o,s)},M(r,[{key:"PR",get:function(){return yN.TR}}]),r}(yF),yH=function(r){function s(e,s,o,u){var a;return(a=r.call(this,e,s,o,u,up.Iv)||this).SI("https://fairplay-license.drm.technology/license"),a.NR("https://fairplay-license.drm.technology/certificate"),a}j(s,r);var o,u=s.prototype;return o=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o={token:this.fR,contentId:s,payload:r5(r)},e.abrupt("return",JSON.stringify(o));case 2:case"end":return e.stop()}},e,this)})),u.DR=function(e,r){return o.apply(this,arguments)},u.iR=function(e){return P.resolve(new x(e))},u.$I=function(){var e=r.prototype.$I.call(this);return e.set("x-vudrm-token",this.fR),e},M(s,[{key:"PR",get:function(){return yN.Rv}},{key:"fR",get:function(){if(!dX(this.XI))throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVA
1LID,"Token is required for FairPlay VuDrm.");return this.XI.token}}]),s}(yF),yB=function(r){function s(e,s,o,u){return r.call(this,e,s,o,u,up.Iv)||this}return j(s,r),s.prototype.iR=function(s){var o=function(r){var s;try{s=JSON.parse(r).ckc}catch(r){throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_INVALID,"Verimatrix Fairplay license response incorrectly formatted. Invalid json.")}if(!s)throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Verimatrix Fairplay license response incorrectly formatted. Ckc not found.");return s}(sP(new DataView(s)));return r.prototype.iR.call(this,o)},s}(yF),yV=function(r){function s(e,s,o,u){return r.call(this,e,s,o,u,up.Rv)||this}j(s,r);var o,u=s.prototype;return o=P.coroutine(iO.mark(function r(s){var o,u;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o=this.XI){r.next=3;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"Invalid Titanium Fairplay DRM configuration.");case 3:return u=r5(s),r.abrupt("return",yi(o,u,d7.La));case 5:case"end":return r.stop()}},r,this)})),u.eR=function(e){return o.apply(this,arguments)},u.iR=function(r){try{var s;if(ti(r)){var o=r.trim();s=JSON.parse(o)}else s=r;if(s.license){var u=sn(s.license);return P.resolve(new x(u))}return P.reject(new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"No license received from the Titanium Fairplay license server"))}catch(r){return P.reject(new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_INVALID,"Could not process the response from the Titanium Fairplay license server"))}},u.JI=function(e,r,s){return yr(e,r,s)},M(s,[{key:"PR",get:function(){return yN.Rv}}]),s}(yF),yX=function(e){function r(r,s,o,u){var a;return(a=e.call(this,r,s,o,u,up.Iv)||this).SI("https://emeademo.dev.ott.irdeto.com/streaming/getckc"),a.NR("https://emeademo.dev.ott.irdeto.com/streaming/getcertificate"),a}j(r,e);var s,o,u=r.prototype;return u.RR=function(){var r=e.prototype.RR.call(this);if(!r)return r;var s=_._o(r),o=this.XI;return dF(o)&&nK(s,{accountId:o.accountId,applicationId:o.applicationId||""}),s.href},s=P.coroutine(iO.mark(function r(s){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!dF(this.XI)){r.next=2;break}return r.abrupt("return",this.XI.contentId);case 2:return r.abrupt("return",e.prototype.CR.call(this,s));case 3:case"end":return r.stop()}},r,this)})),u.CR=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}},e)})),u.eR=function(e){return o.apply(this,arguments)},u.iR=function(e){return P.resolve(new x(e))},u.tR=function(r,s){var o,u=r;return dF(this.XI)&&(o=this.XI,u=iD({},ya(o,u),{KeyId:o.keyId})),e.prototype.tR.call(this,u,s)},M(r,[{key:"PR",get:function(){return yN.TR}}]),r}(yF),yW=function(r){function s(s,o,u,a){var h;if(h=r.call(this,s,o,u,a,up.Ku)||this,!dM(o))throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"Invalid Conax configuration");return h.SI("https://connect.conax.com:8097/license"),h}j(s,r);var o,u,a=s.prototype;return a.$I=function(){var e=r.prototype.$I.call(this);return yf(this.XI,"FairPlay",e)},o=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s={Il:this.RR(),Al:up.Iv,yl:{},ql:hk.GET,Yl:!1,il:null,Gl:0,dh:r,Ua:hE.Pl,zl:hA.Ll},e.next=4,this.hg.El(s);case 4:return o=e.sent,e.next=7,o.Kd();case 7:return u=e.sent,e.abrupt("return",new x(u));case 9:case"end":return e.stop()}},e,this)})),a.OR=function(e){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}},e)})),a.eR=function(e){return u.apply(this,arguments)},a.CR=function(e){var r,s=e.indexOf("?");return 0===e.indexOf("skd://")?(r=s>=0?e.substring(6,s):e.substring(6),P.resolve(sP(r3(r)))):P.resolve("unknown")},a.iR=function(e){try{var r=JSON.parse(e);return P.resolve(new x(sn(r.CkcMessage)))}catch(e){return P.reject("CFLRW-66")}},s}(yF),yq=function(r){function s(e,s,o,u){var a;return(a=r.call(this,e,s,o,u,up.Ku)||this).SI(dN[iV.La]),a}j(s,r);var o,u=s.prototype;return u.CR=function(r){return 0===r.indexOf("skd://")?P.resolve(r.substring(6,40)):P.reject(new lz(e.ErrorCode.CONTENT_PROTECTION_INITIALIZATION_INVA
1LID,"Error while determining the KeyOS Content ID."))},o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","spc="+r5(r)+"&assetId="+s);case 1:case"end":return e.stop()}},e)})),u.DR=function(e,r){return o.apply(this,arguments)},s}(yF),yY=function(e){function r(r,s,o,u){var a;return(a=e.call(this,r,s,o,u,up.Ku)||this).SI("https://lic.drmtoday.com/license-server-fairplay/"),a}j(r,e);var s,o=r.prototype;return s=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o="spc="+encodeURIComponent(r5(r))+"&"+encodeURI(s),"persistent"!==this.VI.licenseType){e.next=3;break}return e.abrupt("return",o+"&offline=true");case 3:return e.abrupt("return",o);case 4:case"end":return e.stop()}},e,this)})),o.DR=function(e,r){return s.apply(this,arguments)},o.$I=function(){return yd(e.prototype.$I.call(this),this.fR,this.XI)},M(r,[{key:"fR",get:function(){return yv(this.XI)}}]),r}(yF),y$=function(e){function r(r,s,o,u){return e.call(this,r,s,o,u,up.Iv)||this}j(r,e);var s,o=r.prototype;return o.CR=function(e){var r=e;return nW(r,"skd:")&&(r="http:"+r.substring(4)),nW(r,"http:")||nW(r,"https:")?P.resolve(_._o(r).hostname):P.reject(new y("Could not parse ExpressPlay FairPlay content ID."))},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}},e)})),o.eR=function(e){return s.apply(this,arguments)},o.iR=function(e){return P.resolve(new x(e))},M(r,[{key:"PR",get:function(){return yN.TR}}]),r}(yF),yJ=function(e){function r(r,s,o,u){return e.call(this,r,s,o,u,up.Ku)||this}return j(r,e),r.prototype.$I=function(){var r=e.prototype.$I.call(this),s=this.XI.token;return r.set("Authorization","Bearer "+s),r},r}(yF),yQ=function(e){function r(r,s,o,u){var a;if(a=e.call(this,r,s,o,u,up.Rv)||this,!dW(s))throw new y("Invalid Xstream DRM configuration");return a}j(r,e);var s,o,u=r.prototype;return s=P.coroutine(iO.mark(function e(r){var s,o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=this.RR(),o=this.$I(),u={Il:s,Al:up.Rv,yl:o,ql:hk.POST,dh:r,Ua:hE.Pl,zl:hA.Ll},e.next=5,this.hg.El(u);case 5:return a=e.sent,e.next=8,a.Yd();case 8:return h=e.sent,e.abrupt("return",new x(r3(h.certificate)));case 10:case"end":return e.stop()}},e,this)})),u.OR=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f,l,p;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===o&&(o=up.Ku),u=r5(r),a=this.XI,e.next=5,ym(a,"fairplay",this.hg,s);case 5:return h=e.sent,c=sI(JSON.stringify({spc:u,ticket:h.ticket})),f={Il:this.QI(),Al:up.Rv,yl:this.$I(),ql:hk.POST,il:c,Gl:0,dh:s,Ua:hE.Pl,zl:hA.Ol},e.next=10,this.hg.El(f);case 10:return l=e.sent,e.next=13,l.Yd();case 13:return p=e.sent,e.abrupt("return",r3(p.licence));case 15:case"end":return e.stop()}},e,this)})),u.RI=function(e,r){return o.apply(this,arguments)},M(r,[{key:"PR",get:function(){return yN.Rv}}]),r}(yF),yG=function(r){function s(e,s,o,u){return r.call(this,e,s,o,u,up.Ku)||this}j(s,r);var o,u=s.prototype;return o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r5(r));case 1:case"end":return e.stop()}},e)})),u.DR=function(e,r){return o.apply(this,arguments)},u.iR=function(s){if(0===s.length)throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Vimond license request error.");return r.prototype.iR.call(this,s)},u.$I=function(){var e=r.prototype.$I.call(this);return e.set("Content-Type","text/plain"),e},s}(yF),yK=function(r){function s(e,s,o,u){return r.call(this,e,s,o,u,up.Iv)||this}j(s,r);var o,u=s.prototype;return o=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}},e)})),u.DR=function(e){return o.apply(this,arguments)},u.iR=function(e){return P.resolve(new x(e))},u.$I=function(){if(!dq(this.XI))throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVA
1LID,"Invalid Axinom configuration");var s=r.prototype.$I.call(this);return s.set("X-AxDRM-Message",this.XI.token),s},M(s,[{key:"PR",get:function(){return yN.Rv}}]),s}(yF),yz=function(r){function s(e,s,o,u){var a;return(a=r.call(this,e,s,o,u,up.Rv)||this).MR=void 0,a}j(s,r);var o,u,a=s.prototype;return o=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o={spc:r5(r)},e.abrupt("return",JSON.stringify(o));case 2:case"end":return e.stop()}},e)})),a.DR=function(e,r){return o.apply(this,arguments)},a.CR=function(r){var s=_._o(r);return this.MR=r,s.searchParams.has("b")?P.resolve(s.searchParams.get("b")):P.reject(new lz(e.ErrorCode.CONTENT_PROTECTION_INITIALIZATION_INVALID,"Error during license server request: Could not extract content id"))},a.tR=function(e,s){var o=this.QI();return!o&&this.MR&&(o=this.MR),o&&(o=o.replace("skd://","https://")),r.prototype.tR.call(this,e,s||o)},u=P.coroutine(iO.mark(function r(s){var o;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!(o=ti(s)?JSON.parse(s.trim()):s).ckc){r.next=4;break}return r.abrupt("return",r3(o.ckc));case 4:r.next=9;break;case 6:throw r.prev=6,r.t0=r.catch(0),new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_INVALID,"Could not process the response from the Uplynk Fairplay license server");case 9:throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"No license received from the Uplynk Fairplay license server");case 10:case"end":return r.stop()}},r,null,[[0,6]])})),a.iR=function(e){return u.apply(this,arguments)},M(s,[{key:"PR",get:function(){return yN.Ku}}]),s}(yF),yZ=function(){function e(e,r){this.xR=e,this.UR=r}var r=e.prototype;return r.FR=function(e){return this.xR(e)},r.HR=function(e,r){throw new g(r+" must be "+this.UR+". (Received: "+e+")")},e}(),y0=new yZ(to,"a number"),y1=new yZ(ti,"a string"),y2=(yM={responseCode:y0,isException:new yZ(tr,"a boolean"),description:y1,title:y1,correlationId:y1},{FR:function(e){if(!te(e))return!1;for(var r=0,s=w.keys(yM);r<s.length;r++){var o=s[r];if(!yM[o].FR(e[o]))return!1}return!0},HR:function(e,r){if(!te(e))throw new g(r+" must be an object.");for(var s=0,o=w.keys(yM);s<o.length;s++){var u=o[s],a=yM[u];if(!a.FR(e[u]))return a.HR(e[u],r+"."+u)}throw new g}});function y3(){return(y3=P.coroutine(iO.mark(function e(r,s,o,u,a){var h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return h=function(e,r,s,o){var u,a={token:r.token,account:r.accountId,form:"json"},h=decodeURIComponent((nK(u=_._o(s),a),u.toString())),c=new oM({});c.append("Content-Type","application/json");var f=r5(e),l={getFairplayLicense:{releasePid:r.releasePid,spcMessage:f}};return{Il:h,Al:up.Ku,yl:c,ql:hk.POST,il:JSON.stringify(l),dh:o,Ua:hE.Pl,zl:hA.Ol}}(r,s,o,a),e.next=3,function(e,r){return y5.apply(this,arguments)}(h,u);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function y5(){return(y5=P.coroutine(iO.mark(function r(s,o){var u,a;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.El(s);case 2:return u=r.sent,r.next=5,u.Yd();case 5:if(a=r.sent,!y2.FR(a)){r.next=8;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,a.description,void 0,s.Il,a.responseCode);case 8:return r.abrupt("return",r3(a.getFairplayLicenseResponse.ckcResponse));case 9:case"end":return r.stop()}},r)}))).apply(this,arguments)}var y4=function(e){function r(r,s,o,u){var a;return(a=e.call(this,r,s,o,u,up.Iv)||this).XR=void 0,a.XR=s,a}j(r,e);var s,o=r.prototype;return o.CR=function(r){var s=r.replace("FairPlay",this.XR.releasePid);return e.prototype.CR.call(this,s)},s=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,function(e,r,s,o,u){return y3.apply(this,arguments)}(r,this.XR,this.QI(),this.hg,s);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),o.RI=function(e,r){return s.apply(this,arguments)},r}(yF),y6=function(r){function s(e,s,o){return r.call(this,i6,e,s,o,up.Iv)||this}j(s,r);var o,u,a=s.prototype;return a.jI=function(e){return e.clearkey||{}},o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",d6(r,this.VI));case 1:case"end":return e.stop()}},e,this)})),a.eR=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function s(o,u,a,h){var c,f;return iO.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(c=this.VI,!this.QI()){s.next=5;break}return s.abrupt("return",r.prototype.ZI.call(this,o,this.zI,a,h));case 5:if(!c.keys||!c.keys.length){s.next=10;break}return f={keys:c.keys.map(function(e){var r=e;return r||(r={}),{kty:"oct",kid:r.id,k:r.value}})},s.abrupt("return",sI(JSON.stringify(f)).buffer);case 10:throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVA
1LID,"The clearkey license has not been configured correctly.");case 11:case"end":return s.stop()}},s,this)})),a.ZI=function(e,r,s,o){return u.apply(this,arguments)},a.II=function(e,r){return P.resolve(new x(0))},a.RI=function(e,s){return r.prototype.rR.call(this,e,hA.Fl,s)},s}(d5),y8=function(e){var r;function s(){return e.apply(this,arguments)||this}return j(s,e),s.prototype.eR=(r=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",d6(r,this.VI));case 1:case"end":return e.stop()}},e,this)})),function(e,s){return r.apply(this,arguments)}),s}(d9),y7={url:"",method:"GET",headers:{},body:null,useCredentials:!1};function y9(e,r,s){return gt.apply(this,arguments)}function gt(){return(gt=P.coroutine(iO.mark(function e(r,s,o){var u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=gl(s),(a=r.onCertificateRequest)&&"function"==typeof a){e.next=5;break}return e.abrupt("return",P.resolve(s));case 5:return e.next=8,rR(P.resolve(a.call(r,u)),o);case 8:if(!sX(h=e.sent)){e.next=11;break}return e.abrupt("return",sW(h));case 11:return e.abrupt("return",gf(iD({},y7,h)));case 12:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ge(e,r,s,o,u){return gn.apply(this,arguments)}function gn(){return(gn=P.coroutine(iO.mark(function e(r,s,o,u,a){var h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h=r.onCertificateResponse,c=gc(s,o,u),h&&"function"==typeof h){e.next=5;break}return e.abrupt("return",P.resolve(s));case 5:return e.next=8,rR(P.resolve(h.call(r,c)),a);case 8:return f=e.sent,e.abrupt("return",sW(f));case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)}function gi(e,r,s,o){return gr.apply(this,arguments)}function gr(){return(gr=P.coroutine(iO.mark(function e(r,s,o,u){var a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,function(e,r,s,o){return gu.apply(this,arguments)}(r,s,o,u);case 2:if(!((a=e.sent)instanceof ArrayBuffer)){e.next=5;break}return e.abrupt("return",a);case 5:return e.abrupt("return",gf(a));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function gs(e,r,s,o,u,a){return go.apply(this,arguments)}function go(){return(go=P.coroutine(iO.mark(function e(r,s,o,u,a,h){var c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=gh(o,a),e.next=3,function(e,r,s,o,u){return ga.apply(this,arguments)}(r,new x(s),c,u,h);case 3:return f=e.sent,e.abrupt("return",sW(f).buffer);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function gu(){return(gu=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=null==r?void 0:r.onLicenseRequest,h=gh(s,o),a&&"function"==typeof a){e.next=5;break}return e.abrupt("return",P.resolve(h));case 5:return e.next=8,rR(P.resolve(a.call(r,h)),u);case 8:if(!sX(c=e.sent)){e.next=11;break}return e.abrupt("return",sW(c).buffer);case 11:return e.abrupt("return",iD({fairplaySkdUrl:void 0},y7,c));case 12:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ga(){return(ga=P.coroutine(iO.mark(function e(r,s,o,u,a){var h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h=null==r?void 0:r.onLicenseResponse,c=gc(s,o,u),h&&"function"==typeof h){e.next=5;break}return e.abrupt("return",P.resolve(s));case 5:return e.next=8,rR(P.resolve(h.call(r,c)),a);case 8:return f=e.sent,e.abrupt("return",sW(f));case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)}function gh(e,r){return iD({},gl(e),{fairplaySkdUrl:r})}function gc(e,r,s){return{url:s.Sl,status:s.wl,statusText:s.bl,headers:s.yl.Dv(),body:e,request:r}}function gf(e){return new hP({Il:e.url,ql:e.method,yl:e.headers,il:e.body,Yl:e.useCredentials})}function gl(e){var r;return{url:e.Il,body:null!=(r=function(e){if(e)return"string"==typeof e?sI(e):e instanceof ArrayBuffer?new x(e):r6(e)?sV(e):void 0}(e.il))?r:null,headers:e.yl.Dv(),method:e.ql,useCredentials:e.Yl}}var gp,gv=function(r){function s(e,s,o,u){var a;return(a=r.call(this,e,s,o)||this).WR=void 0,a.WR=u,a}j(s,r);var o,u=s.prototype;return u.II=function(e,r){return P.resolve(e)},o=P.coroutine(iO.mark(function r(s,o){var u,a,h,c,f;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.lR(sY(s).buffer);case 2:return u=r.sent,a=this.KI(u,up.Iv,hA.Ul,o),r.next=6,gi(this.WR,a,void 0,o);case 6:if(!((h=r.sent)instanceof ArrayBuffer)){r.next=10;break}return r.abrupt("return",new x(h));case 10:if(""!==h.Il){r.next=12;break}
1throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"The license request URL has not been correctly configured.");case 12:return r.prev=12,r.next=15,this.hg.El(h);case 15:return c=r.sent,r.next=18,c.Kd(o);case 18:return f=r.sent,r.t0=x,r.next=22,gs(this.WR,f,a,c,void 0,o);case 22:return r.t1=r.sent,r.abrupt("return",new r.t0(r.t1));case 26:throw r.prev=26,r.t2=r.catch(12),rC(r.t2),new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Error during PlayReady license request",r.t2);case 30:case"end":return r.stop()}},r,this,[[12,26]])})),u.RI=function(e,r){return o.apply(this,arguments)},s}(yT),gd=function(r){function s(e,s,o,u){var a;return(a=r.call(this,e,s,o,up.Iv)||this).WR=void 0,a.WR=u,a}j(s,r);var o,u,a=s.prototype;return o=P.coroutine(iO.mark(function r(s,o){var u,a,h,c,f;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!this.OI){r.next=2;break}return r.abrupt("return",this.OI);case 2:return u=this.KI(s,up.Iv,hA.xl,o),r.next=5,y9(this.WR,u,o);case 5:if(!((a=r.sent)instanceof x)){r.next=9;break}return r.abrupt("return",a);case 9:if(""!==a.Il){r.next=11;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"The certificate request URL has not been correctly configured.");case 11:return r.prev=11,r.next=14,this.hg.El(a);case 14:return h=r.sent,r.next=17,h.Kd(o);case 17:c=r.sent,r.next=24;break;case 20:throw r.prev=20,r.t0=r.catch(11),rC(r.t0),new lz(e.ErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR,"Error during Widevine certificate request",r.t0);case 24:return f=gh(u,void 0),r.next=27,ge(this.WR,new x(c),f,h,o);case 27:return r.abrupt("return",r.sent);case 28:case"end":return r.stop()}},r,this,[[11,20]])})),a.II=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function r(s,o){var u,a,h,c;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return u=this.KI(s,up.Iv,hA.Ml,o),r.next=3,gi(this.WR,u,void 0,o);case 3:if(!((a=r.sent)instanceof ArrayBuffer)){r.next=7;break}return r.abrupt("return",new x(a));case 7:if(""!==a.Il){r.next=9;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"The license request URL has not been correctly configured.");case 9:return r.prev=9,r.next=12,this.hg.El(a);case 12:return h=r.sent,r.next=15,h.Kd(o);case 15:c=r.sent,r.next=22;break;case 18:throw r.prev=18,r.t0=r.catch(9),rC(r.t0),new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Error during Widevine license request",r.t0);case 22:return r.t1=x,r.next=25,gs(this.WR,c,u,h,void 0,o);case 25:return r.t2=r.sent,r.abrupt("return",new r.t1(r.t2));case 27:case"end":return r.stop()}},r,this,[[9,18]])})),a.RI=function(e,r){return u.apply(this,arguments)},s}(y8),gy=function(r){function s(e,s,o,u,a){var h;return(h=r.call(this,e,s,o,u,up.Iv)||this).WR=void 0,h.qR=void 0,h.WR=a,h}j(s,r);var o,u,a,h=s.prototype;return o=P.coroutine(iO.mark(function r(s,o){var u,a,h,c,f;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!this.OI){r.next=2;break}return r.abrupt("return",this.OI);case 2:return u=this.LR(o),r.next=5,y9(this.WR,u,o);case 5:if(!r6(a=r.sent)){r.next=8;break}return r.abrupt("return",a);case 8:return r.prev=8,r.next=11,this.hg.El(a);case 11:return h=r.sent,r.next=14,h.Kd();case 14:return c=r.sent,f=gh(u,void 0),r.next=18,ge(this.WR,new x(c),f,h,o);case 18:return r.abrupt("return",r.sent);case 21:throw r.prev=21,r.t0=r.catch(8),rC(r.t0),new lz(e.ErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR,"Error during FairPlay certificate request",r.t0);case 25:case"end":return r.stop()}},r,this,[[8,21]])})),h.II=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function r(s,o){var u,a,h,c;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return u=this.KI(s,up.Iv,hA.Ol,o),r.next=3,gi(this.WR,u,this.qR,o);case 3:if(!((a=r.sent)instanceof ArrayBuffer)){r.next=7;break}return r.abrupt("return",new x(a));case 7:if(""!==a.Il){r.next=9;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_INVALID,"The license request URL has not been correctly configured.");case 9:return r.prev=9,r.next=12,this.hg.El(a);case 12:return h=r.sent,r.next=15,h.Kd(o);case 15:return c=r.sent,r.t0=x,r.next=19,gs(this.WR,c,u,h,this.qR,o);case 19:return r.t1=r.sent,r.abrupt("return",new r.t0(r.t1));case 23:throw r.prev=23,r.t2=r.catch(9),rC(r.t2),new lz(e.ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR,"Error during FairPlay license request",r.t2);case 27:case"end":return r.stop()}},r,this,[[9,23]])})),h.RI=function(e,r){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.qR=s,null==(o=this.WR)||!o.extractFairplayContentId){e.
1next=3;break}return e.abrupt("return",P.resolve(this.WR.extractFairplayContentId(s)));case 3:return e.abrupt("return",r.prototype.CR.call(this,s));case 4:case"end":return e.stop()}},e,this)})),h.CR=function(e){return a.apply(this,arguments)},s}(yF),gg=function(){function e(){}var r=e.prototype;return r.GR=function(e,r){return new d1(e,r,this)},r.zR=function(e,r,s,o){switch(e.Hc.Ua){case iV.Oa:return this.jR(r,s,o);case iV.Ba:return this.YR(r,s,o);case iV.La:return this.QR(e,r,s,o);case iV.Ma:default:return this.ZR(r,s,o)}},r.jR=function(e,r,s){var o=e.integration===dC&&ti(e.customIntegrationId)?e.customIntegrationId:e.integration;if(o&&dI.$S.ZS(o,iz)){var u=dI.$S.JS(o,iz,e);return new gd(e,r,s,u)}switch(o){case df:return new yo(e,r,s);case dd:return new yu(e,r,s);case dv:return new yh(e,r,s);case dl:return new yl(e,r,s);case dm:return new yy(e,r,s);case db:return new yg(e,r,s);case dk:return new yb(e,r,s);case dA:return new yk(e,r,s);default:return new y8(e,r,s,up.Iv)}},r.YR=function(e,r,s){var o=e.integration;if(o&&dI.$S.ZS(o,iQ)){var u=dI.$S.JS(o,iQ,e);return new gv(e,r,s,u)}switch(o){case df:return new yS(e,r,s);case dd:return new yR(e,r,s);case dv:return new yL(e,r,s);case dl:return new y_(e,r,s);case dm:return new yP(e,r,s);case dk:return new yO(e,r,s);case dA:return new yD(e,r,s);default:return new yT(e,r,s)}},r.QR=function(e,r,s,o){var u=r.integration;if(u&&dI.$S.ZS(u,i0)){var a=dI.$S.JS(u,i0,r);return new gy(e,r,s,o,a)}switch(u){case dp:return new yj(e,r,s,o);case dd:return new yH(e,r,s,o);case dy:return new yB(e,r,s,o);case df:return new yV(e,r,s,o);case dv:return new yX(e,r,s,o);case dl:return new yW(e,r,s,o);case dg:return new yq(e,r,s,o);case dm:return new yY(e,r,s,o);case dw:return new y$(e,r,s,o);case db:return new yJ(e,r,s,o);case dk:return new yQ(e,r,s,o);case dE:return new yG(e,r,s,o);case dA:return new yK(e,r,s,o);case dx:return new yz(e,r,s,o);case dT:return new y4(e,r,s,o);default:return new yF(e,r,s,o,up.Ku)}},r.ZR=function(e,r,s){return new y6(e,r,s)},r.KR=function(e){return e.Ua===iV.Ba||e.Ua===iV.Oa||e.Ua===iV.La||e.Ua===iV.Ma},e}(),gm=function(r){function s(e,s,o){var u,a;return void 0===o&&(o=new gg),(u=r.call(this,o)||this).ES=void 0,u.JR=void 0,u.$R=void 0,u.yc=void 0,u.tN=new dr,a=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.cI(r.Ha,r.Xh);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),rx(e.t0)||u.Kc(e.t0);case 8:case"end":return e.stop()}},e,null,[[0,5]])})),u.nN=function(e){return a.apply(this,arguments)},u.iN=function(e){u.yh(e)},u.rN=function(e){u.yh(e),u.yh(new lm(e.errorObject))},u.JR=e,u.ES=s,u.JR.kh(rH.Mh,u.nN),u}j(s,r);var o,u,a,h,c,f,l,p=s.prototype;return p.dI=function(){var e;return null==(e=this.yc)?void 0:e.Hc},p.Oc=function(e){if(this.$R)throw new y("Invalid state");this.$R=e},p.iI=function(e){if(!this.$R)throw new y("Invalid state");r.prototype.iI.call(this,e)},o=P.coroutine(iO.mark(function r(s,o,u){var a,h,c,f,l,p,v,d,y,g,m;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(rT(u),o.byteLength){r.next=3;break}return r.abrupt("return");case 3:if(this.nI&&this.nI.oI.length){r.next=5;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_CONFIGURATION_MISSING,"Missing configuration for encrypted content");case 5:if(a=this.nI,s===i$||"skd"===s||s===iJ){r.next=9;break}return r.abrupt("return");case 9:h=dJ(s,o),f=0,l=a.oI;case 11:if(!(f<l.length)){r.next=42;break}if(p=l[f],rT(u),(v=h[p.Hc.Xa])&&p.Hc.Ha===s){r.next=17;break}return r.abrupt("continue",39);case 17:return r.prev=17,r.next=20,this.eN(p.Hc,u);case 20:if(!(d=r.sent).qI){r.next=24;break}return r.next=24,d.LI();case 24:if(y=this.JR.op,g={Ha:p.Hc.Ha,Xh:v,HI:y},!this.uN(d,g)){r.next=32;break}return r.next=29,d.xI(g);case 29:return m=r.sent,r.next=32,m.Ac();case 32:return r.abrupt("return");case 35:r.prev=35,r.t0=r.catch(17),rC(r.t0),c=r.t0;case 39:f++,r.next=11;break;case 42:return r.next=44,_.Yo();case 44:if(!r.sent){r.next=48;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_NOT_SUPPORTED,"Encrypted content over an insecure connection is not supported",c);case 48:throw new lz(e.ErrorCode.CONTENT_PROTECTION_NOT_SUPPORTED,"Cannot create content decryption session",c);case 49:case"end":return r.stop()}},r,this,[[17,35]])})),p.hI=function(e,r,s){return o.apply(this,arguments)},p.uN=function(e,r){return _.oa.Do||!e.FI(r)},u=P.coroutine(iO.mark(function e(r){var s,o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this.nI){e.next=3;break}return e.abrupt("return");case 3:o=0,u=s.oI;case 4:if(!(o<u.length)){e.next=23;break}return a=u[o],rT(r),e.prev=7,e.next=10,this.eN(a.Hc,r);case 10:if(!(h=e.sent).qI){e.next=14;break}return e.next=14,h.LI();case 14:return e.abrupt("return");case 17:e.prev=17,e.t0=e.catch(7),rC(e.t0);case 20:o++,e.next=4;break;case 23:case"end":return e.stop()}},e,this,[[7,17]])})),p.sI=function(e){return u.apply(this,arguments)},p.eN=function(e,r){var s=this;return this.tN.xS(function(r){return s.sN(e,r)},r)},a=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(s),this.nI){e.next=3;break}throw new y("Not initialized");case 3:if(!this.yc){e.next=7;break}if(this.yc.Hc===r){e.next=6;break}throw new y("Internal key system error");case 6:return e.abrupt("return",this.yc);case 7:if(this.tI.KR(r)){e.next=9;break}throw new y("Unsupported "+r.Wa+" key system");case 9:if(o=this.oN(r)){e.next=12;break}throw new y("Missing configuration for "+r.Wa+" key system");case 12:return u=this.nI,a=this.tI.zR(o,u.XI,u.aN.WI,this.ES),e.next=16,this.Uc(r,o,a,s);case 16:return h=e.sent,(c=this.tI.GR(h,a)).kh(ul.Hf,this.iN),c.kh(ul.Ff,this.rN),c.kh(ul.Tv,this.wh),this.yc=c,e.abrupt("return",c);case 23:case"end":return e.stop()}},e,this)})),p.sN=function(e,r){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c,f,l,p,v,d,y;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.nI,h=r.Ha,f=(null==(c=function(e,r){switch(r){case iV.Oa:return e.widevine;case iV.Ba:return e.playready;case iV.La:return e.fairplay;default:return}}
1(a.XI,s.Hc.Ua))?void 0:c.persistentState)||o.uR,l=(null==c?void 0:c.distinctiveIdentifier)||void 0,p=!!(null==c?void 0:c.audioRobustness)||!!(null==c?void 0:c.videoRobustness),v=s.Hc.Ua===iV.Oa,e.prev=7,rT(u),d=gw(a,h,f,l,o.Wc,a.aN.hN,(null==c?void 0:c.audioRobustness)||(v?"SW_SECURE_CRYPTO":void 0),(null==c?void 0:c.videoRobustness)||(v?"SW_SECURE_CRYPTO":void 0)),e.next=12,this.$R.cN(r,[d]);case 12:case 26:return e.abrupt("return",e.sent);case 15:if(e.prev=15,e.t0=e.catch(7),rC(e.t0),rT(u),v){e.next=21;break}throw e.t0;case 21:if(!p){e.next=23;break}throw e.t0;case 23:return y=gw(a,h,f,l,o.Wc,a.aN.hN,void 0,void 0),e.next=26,this.$R.cN(r,[y]);case 27:case"end":return e.stop()}},e,this,[[7,15]])})),p.Uc=function(e,r,s,o){return h.apply(this,arguments)},p.oN=function(e){if(this.nI)for(var r=0,s=this.nI.oI;r<s.length;r++){var o=s[r];if(o.Hc===e)return o}},p.Kc=function(r){var s=r instanceof lz?r:new lz(e.ErrorCode.CONTENT_PROTECTION_ERROR,r.message,r);this.rN(new dc(s))},c=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.tN.hh();case 2:if(!(r=this.yc)){e.next=8;break}return r.Eh(ul.Tv,this.wh),this.yc=void 0,e.next=8,r.Kl();case 8:case"end":return e.stop()}},e,this)})),p.fN=function(){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.$R=void 0,e.next=3,this.fN();case 3:case"end":return e.stop()}},e,this)})),p.fI=function(){return f.apply(this,arguments)},l=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.JR.Eh(rH.Mh,this.nN),e.next=3,r.prototype.Kl.call(this);case 3:return e.next=5,this.tN.Kl();case 5:case"end":return e.stop()}},e,this)})),p.Kl=function(){return l.apply(this,arguments)},s}(dQ);function gw(e,r,s,o,u,a,h,c){return{initDataTypes:[r],audioCapabilities:gb(e.vN,a,h),videoCapabilities:gb(e.dN,a,c),persistentState:s,distinctiveIdentifier:o,Wc:u}}function gb(e,r,s){if(0!==e.length)return e.map(function(e){return{contentType:e,encryptionScheme:r,robustness:s}})}(gj=gp||(gp={}))[gj.lN=0]="lN",gj[gj._N=1]="_N";var gk=o.MediaSource,gE=o.WebKitMediaSource,gA=o.TextTrack,gx=h&&h.createElement("video"),gT=(h&&h.documentElement.style,Q.tu&&Q.Mu&&Q.xu<=26),gC=(Q.pu,!!T),gS=!(!gk&&!gE),gR=!!gA,gL=(h&&(h.fullscreenEnabled||h.webkitFullscreenEnabled||h.mozFullScreenEnabled||h.msFullscreenEnabled)||Q.yu,Q.Pu&&Q.Bu,gx&&gx.canPlayType&&(""!==gx.canPlayType("application/vnd.apple.mpegURL")||Q.ou&&!Q.Pu&&Q.au>=4)),g_=gx&&gx.canPlayType&&""!==gx.canPlayType("video/mp4")&&!gT,gP=gS&&!Q.Ou&&!Q.Nu&&!Q.Ru&&((gk||gE).isTypeSupported?(gk||gE).isTypeSupported('audio/mp4; codecs="mp4a.40.34"'):gx&&gx.canPlayType&&""!==gx.canPlayType('audio/mp4; codecs="mp4a.40.34"')),gI=gS&&!Q.Ou&&(gP||((gk||gE).isTypeSupported?(gk||gE).isTypeSupported("audio/mpeg"):gx&&gx.canPlayType&&""!==gx.canPlayType("audio/mpeg"))),gN=gS&&!(Q.Cu&&Q.tu)&&((gk||gE).isTypeSupported?(gk||gE).isTypeSupported('video/mp4; codecs="avc1.4d401e"'):g_),gO=(Q.Ou||Q.Nu||Q.Ru,Q.Du),gD=gO&&!1,gU=!Q.Ou,gM=Q.Nu&&Q.nu&&Q.uu<=6.1,gF=gx&&"onresize"in gx;try{a&&(a.top,a.self)}catch(e){}var gj,gH,gB=function(e){function r(r){var s;return(s=e.call(this,f7.sy)||this).currentTime=r,s}return j(r,e),r}(rX),gV=function(e){function r(r){var s;return(s=e.call(this,f7.oy)||this).currentTime=r,s}return j(r,e),r}(rX),gX=function(e){function r(r,s){var o;return void 0===s&&(s=!1),(o=e.call(this)||this).gN=f1.Yw,o.wN=!0,o.yN=!1,o.kN=!1,o.mN=function(e){var r=e.readyState;r!==o.gN&&o.yh(e),r===f1.Yw&&(o.yN=!1,o.kN=!1),o.pN(r),o.AN(r),o.bN(r),o.maybeDispatchCanPlayThroughEvent(r),o.TN(r),o.EN(r),o.gN=r},o.SN=function(){o.EN(o.gN),o.TN(o.gN),o.wN=o.IN.yy},o.RN=function(){o.wN=o.IN.yy},o.IN=r,o.NN=s,o.IN.kh(f7.Og,o.mN),o.IN.kh(ul.tv,o.SN),o.IN.kh(ul.$f,o.RN),o.NN&&o.IN.kh(f7.oy,o.wh),o}j(r,e);var s=r.prototype;return s.pN=function(e){!this.kN&&e>=f1.Qw&&(this.kN=!0,this.yh(new lo(this.IN.vy,e)))},s.AN=function(e){!this.yN&&e>=f1.Zw&&(this.yN=!0,this.yh(new lf(this.IN.vy,e)))},s.TN=function(e){this.NN||(e>=f1.Kw&&this.gN<f1.Kw&&!this.IN.yy||this.DN&&e>=f1.Kw)&&this.yh(new gV(this.IN.vy))},s.EN=function(e){!this.CN(e)||this.IN._y||this.IN.Lh||this.yh(new gB(this.IN.vy))},s.bN=function(e){this.gN<=f1.Zw&&e>=f1.Kw&&this.yh(new ld(this.IN.vy,e))},s.maybeDispatchCanPlayThroughEvent=function(e){e===f1.Jw&&this.yh(new ly(this.IN.vy,e))},s.CN=function(e){var r=!this.IN.yy&&e<=f1.Zw,s=!this.wN&&this.gN<=f1.Zw;return r&&!s},s.Yg=function(){this.gN=f1.Yw,this.wN=!0,this.yN=!1,this.kN=!1},s.Kl=function(){this.Th(),this.NN&&this.IN.Eh(f7.oy,this.wh),this.IN.Eh(ul.tv,this.SN),this.IN.Eh(ul.$f,this.RN),this.IN.Eh(f7.Og,this.mN)},M(r,[{key:"DN",get:function(){return!this.IN.yy&&this.wN}}]),r}(rB);(gW=gH||(gH={})).PN="nokey",gW.BN="keyexpired",gW.ON="sessionnotopened",gW.LN="insufficientoutputprotection",gW.MN="insufficientsecurity",gW.xN="frametoolarge",gW.UN="loststate",gW.FN="resourcebusy",gW.HN="unsupportedoperation";var gW,gq,gY,g$=[gH.HN,gH.FN,gH.UN,gH.xN,gH.MN,gH.LN,gH.ON,gH.BN,gH.PN],gJ=[ul.Hf,ul.Ff,fE.mw];[].concat(d0,[fE.mw],g$),(gQ=gq||(gq={})).Vl="video",gQ.Xl="audio",(gG=gY||(gY={}))[gG.XN=0]="XN",gG[gG.VN=1]="VN",gG[gG.WN=2]="WN",gG[gG.qN=3]="qN",gG[gG.Xw=4]="Xw",gG[gG.GN=5]="GN",gG[gG.jw=6]="jw",gG[gG.zN=7]="zN",gG[gG.jN=8]="jN";var gQ,gG,gK,gz=function(){function e(){}return e.prototype.YN=function(e){},M(e,[{key:"QN",get:function(){return 0}},{key:"ZN",get:function(){return 0}}]),e}();function gZ(){return gK||(gK=n2&&n2.document&&n2.document.createElement("video")),gK}var g0=function(e){function r(r,s,o,u,a,h,c){var f;return void 0===h&&(h=new gg),void 0===c&&(c=oP()),(f=e.call(this)||this).KN=void 0,f.JR=void 0,f.$R=void 0,f.Sm=void 0,f.Im=void 0,f.Rm=void 0,f.JN=void 0,f.$N=void 0,f.tD=void 0,f.nD=void 0,f.iD=void 0,f.tI=void 0,f.ES=void 0,f.qa=void 0,f.rD=void 0,f.eD=void 0,f.uD=new gz,f.sD=function(e){var r=e.Lh,s=r.code,o=new om(l3(s),"Something went wrong during native playback.",r);f.JN=new lZ(s,o.message,r.message),f.$N=o,f.yh(new lm(o))},f.oD=function(){f.yh(new lh(f.vy,f.ep))},f.aD=function(e){f.yy||(f.eD=void 0),f.yh(e)},f.hD=function(e){f.eD=void 0,f.yh(e)},f.cD=function(){f.yh(new pl(f.op))},f.fD=function(){f.Ty>0&&f.by>0&&f.yh(new di)},f.vD=function(e){f.Sm.Gg(new ph(e.track))},f.dD=function(e){var r=g3(f.Sm,e.track);r&&f.Sm.zg(r)},f.lD=function(){f._D(f.Sm)},f.gD=function(e){f.Im.Gg(new pf(e.track))},f.wD=function(e){var r=g3(f.Im,e.track);r&&f.Im.zg(r)},f.yD=function(){f._D(f.Im)},f.kD=function(e){e.type===ul.Ff&&(f.JN=l1(e.errorObject),f.$N=e.errorObject),f.wh(e)},f.KN=s,f.ES=o,f.qa=c,f.JR=f.KN.mD(l4.Vl),f.tD=f.JR.pD.preload,f.tI=h,f.nD=new gX(f.JR,!0),f.nD.kh(ls,f.wh),f.rD=new gm(f.JR,f.ES,f.tI),f.rD.kh(gJ,f.kD),f.bD(),f.Sm=new l6,f.Im=new l6,f.TD(),f.iD=new v9(f.JR,f.ES),f.Rm=new fL,f.jm(),f}j(r,e);var s,o,u,a,h=r.prototype;return h.Ym=function(){this.JR.Ym()},h.jm=function(){this.JR.jm()},s=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(o),u={Ua:gp.lN,Sw:r.src,$d:r.type,ED:[],gp:this.tD,SD:r.crossOrigin,RD:s.metadata&&s.metadata.title},e.next=4,this.JR.bc(u);case 4:return this.$R=e.sent,rT(o),e.next=8,this.rD.Yg();case 8:this.rD.Oc(this.$R),this.rD.iI(this.ND(r)),this.Rm.ew=this.JR.Om,s.textTracks&&this.DD(s.textTracks),dn(this.Om);case 13:case"end":return e.stop()}},e,this)})),h.Hm=function(e,r,o){return s.apply(this,arguments)},h.DD=function(e){for(var r=0;r<e.length;r++){var s=e[r];if(this.JR.CD()&&Q.yu&&gR&&!v3(s.kind,s.label)&&this.PD(s)){var o,u=null!=(o=s.kind)?o:vV.ob;this.JR.BD(s.src,u,s.label,s.srclang)}else{if(void 0===s.src)continue;this.iD.IS(s)}}},h.PD=function(e){return!e.format||"webvtt"===e.format},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.JR.Mm();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:if(this.OD){e.next=12;break}return e.next=10,this.JR.Nh(ul.rv);case 10:e.next=7;break;case 12:case"end":return e.stop()}},e,this,[[0,5]])})),h.Mm=function(){return o.apply(this,arguments)},h.xm=function(){this.JR.xm()},h.Xm=function(){return void 0!==this.JR.pD.webkitShowPlaybackTargetPicker},h.Vm=function(){this.JR.pD.webkitShowPlaybackTargetPicker&&this.JR.pD.webkitShowPlaybackTargetPicker()},h.Wm=function(){this.JR.pD.webkitShowPlaybackTargetPicker&&this.JR.pD.webkitShowPlaybackTargetPicker()},h.Qm=function(){return this.JR.pD},h.Zm=function(){return this.JR.LD},u=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.JN=void 0,this.$N=void 0,this.$R&&(this.$R=void 0),e.next=5,this.iD.Yg();case 5:return this.Rm.Yg(),this.JR.MD(),e.next=9,this.JR.Yg();case 9:return this.nD.Yg(),e.next=12,this.rD.Yg();case 12:this.gp=this.tD,this.Pm.Yg(),this.Bm.Yg(),this.eD=void 0;case 16:case"end":return e.stop()}},e,this)})),h.Yg=function(){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Yg();case 2:return this.Th(),this.xD(),this.UD(),e.next=7,this.rD.Kl();case 7:return this.nD.Kl(),e.next=10,this.KN.FD(this.JR);case 10:return this.Sm.Kl(),this.Im.Kl(),this.Rm.Kl(),e.next=15,this.iD.Kl();case 15:case"end":return e.stop()}},e,this)})),h.Kl=function(){return a.apply(this,arguments)},h.bD=function(){this.JR.kh(ul.tv,this.wh),this.JR.kh(ul.$f,this.wh),this.JR.kh(ul.Av,this.oD),this.JR.kh(ul.rv,this.wh),this.JR.kh(ul.Yf,this.wh),this.JR.kh(ul.fv,this.wh),this.JR.kh(ul.hv,this.aD),this.JR.kh(ul.Gf,this.wh),this.JR.kh(ul.ev,this.wh),this.JR.kh(ul.bv,this.wh),this.JR.kh(ul.Wf,this.wh),this.JR.kh(ul.ov,this.fD),this.JR.kh(f7.oy,this.hD),this.JR.kh(fE.mw,this.sD),this.JR.pD.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.cD)},h.xD=function(){this.JR.Eh(ul.tv,this.wh),this.JR.Eh(ul.$f,this.wh),this.JR.Eh(ul.Av,this.oD),this.JR.Eh(ul.rv,this.wh),this.JR.Eh(ul.Yf,this.wh),this.JR.Eh(ul.fv,this.wh),this.JR.Eh(ul.hv,this.aD),this.JR.Eh(ul.Gf,this.wh),this.JR.Eh(ul.ev,this.wh),this.JR.Eh(ul.bv,this.wh),this.JR.Eh(ul.Wf,this.wh),this.JR.Eh(ul.ov,this.fD),this.JR.Eh(f7.oy,this.hD),this.JR.Eh(fE.mw,this.sD),this.JR.pD.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.cD)},h.ND=function(e){if(e.contentProtection&&e.contentProtection.fairplay)return{XI:e.contentProtection||{},aN:{hN:"cbcs"},oI:[{Hc:i5,aI:[],df:void 0}],vN:[],dN:["video/mp4"]}},h.TD=function(){var e=this.JR.pD.audioTracks,r=this.JR.pD.videoTracks;e&&(e.addEventListener("addtrack",this.vD),e.addEventListener("removetrack",this.dD),e.addEventListener("change",this.lD)),r&&(r.addEventListener("addtrack",this.gD),r.addEventListener("removetrack",this.wD),r.addEventListener("change",this.yD))},h.UD=function(){var e=this.JR.pD.audioTracks,r=this.JR.pD.videoTracks;e&&(e.removeEventListener("addtrack",this.vD),e.removeEventListener("removetrack",this.dD),e.removeEventListener("change",this.lD)),r&&(r.removeEventListener("addtrack",this.gD),r.removeEventListener("removetrack",this.wD),r.removeEventListener("change",this.yD))},h._D=function(e){for(var r=0;r<e.Zg;r++)e.qg(r).Ep()},h.ip=function(){this.rD.fN().then(I)},M(r,[{key:"OD",get:function(){var e=this.JR.rp,r=this.vy;return e.HD(r,.01)}},{key:"Pm",get:function(){return this.Sm}},{key:"rp",get:function(){return this.JR.rp.XD()}},{key:"ep",get:function(){return this.JR.ep},set:function(e){e&&this.JR.VD(e)}},{key:"vy",get:function(){return void 0!==this.eD?this.eD:this.JR.vy},set:function(e){this.op&&(this.eD=e),this.JR.$h(e)}},{key:"ly",get:function(){return this.JR.ly}},{key:"_y",get:function(){return this.JR._y}},{key:"Lh",get:function(){return this.JN}},{key:"gy",get:function(){return this.$N}},{key:"Lm",get:function(){}},{key:"op",get:function(){return this.JR.op}},{key:"ym",get:function(){return iD({},{ap:0,hp:0,cp:0,fp:0,vp:0,dp:{amountOfBufferedAudioSegments:0,amountOfBufferedVideoSegments:0}},this.JR.WD())}},{key:"wy",get:function(){return this.JR.wy},set:function(e){this.JR.wy=e}},{key:"lp",get:function(){return!0}},{key:"yy",get:function(){return this.JR.yy}},{key:"py",get:function(){return this.JR.py}
1,set:function(e){this.JR.py=e}},{key:"_p",get:function(){return this.JR.pD.played}},{key:"gp",get:function(){return this.tD},set:function(e){this.tD=e,this.$R&&(this.$R.gp=e)}},{key:"bw",get:function(){return this.JR.bw}},{key:"wp",get:function(){return this.JR.wp.XD()}},{key:"Ay",get:function(){return this.JR.Ay}},{key:"qD",get:function(){return this.JR.qD}},{key:"Om",get:function(){return this.Rm}},{key:"Bm",get:function(){return this.Im}},{key:"by",get:function(){return this.JR.by}},{key:"Ty",get:function(){return this.JR.Ty}},{key:"Ey",get:function(){return this.JR.Ey},set:function(e){this.JR.Ey=e}},{key:"GD",get:function(){return this.uD}}]),r}(f_);function g1(e){return!e.type||!(!gZ().canPlayType||!gZ().canPlayType(e.type))}var g2=function(){function e(){this.zD=gY.jN}var r=e.prototype;return r.zS=function(e,r,s,o,u,a){return new g0(e,r,s,o,u)},r.jD=function(e,r){return g1(e)},r.YD=function(){return!1},e}();function g3(e,r){for(var s=0,o=e.Qg;s<o.length;s++){var u=o[s];if(u.Rp===r)return u}}var g5=function(){function e(){this.QD=new g2,this.ZD=[]}e.KD=function(){return this.ju};var r=e.prototype;return r.JD=function(e){this.ZD.push(e)},r.zS=function(e,r,s,o,u,a){for(var h=this.QD.zS(e,r,s,o,u,a),c=0,f=this.ZD;c<f.length;c++)h=(0,f[c])(h,s,o);return h},r.jD=function(e,r){return this.QD.jD(e,r)},r.YD=function(){return!1},M(e,[{key:"zD",get:function(){return this.QD.zD}}]),e}();function g4(e,r){return l_(e.zD,r.zD)}function g6(e){g8.ju.$D(e)}g5.ju=new g5;var g8=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).tC=g5.KD(),r}j(r,e);var s,o=r.prototype;return o.nC=function(e){this.tC=e},o.iC=function(){return this.tC},s=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=0;case 1:if(!(o<r.length)){e.next=11;break}return u=r[o],e.next=5,this.eC(u,s);case 5:if(!(a=e.sent)){e.next=8;break}return e.abrupt("return",{uC:u,sC:a});case 8:o++,e.next=1;break;case 11:h=this.tC,c=0;case 13:if(!(c<r.length)){e.next=20;break}if(f=r[c],!h.jD(f,s)){e.next=17;break}return e.abrupt("return",{uC:f,sC:h});case 17:c++,e.next=13;break;case 20:return e.abrupt("return",{uC:r[0],sC:h});case 21:case"end":return e.stop()}},e,this)})),o.rC=function(e,r){return s.apply(this,arguments)},r}(function(){function e(){this.oC=[]}var r,s=e.prototype;return s.$D=function(e){this.oC.push(e),this.oC.sort(g4)},r=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=0,u=this.oC;case 1:if(!(o<u.length)){e.next=17;break}if(!ts(h=(a=u[o]).jD(r,s))){e.next=10;break}return e.next=7,h;case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0=!!h;case 11:if(!e.t0){e.next=14;break}return e.abrupt("return",a);case 14:o++,e.next=1;break;case 17:return e.abrupt("return",void 0);case 18:case"end":return e.stop()}},e,this)})),s.eC=function(e,s){return r.apply(this,arguments)},e}());g8.ju=new g8;var g7,g9=function(){function e(e){this.aC=void 0,this.aC=n2&&n2.document&&n2.document.createElement("div"),ih(this.aC),e.appendChild(this.aC)}return e.prototype.Kl=function(){n9(this.aC)},e}();function mt(e){switch(e){case g7.hC:case"":return g7.hC;case g7.cb:return g7.cb;case g7.cC:default:return g7.cC}}(me=g7||(g7={})).jN="",me.cC="none",me.cb="metadata",me.hC="auto";var me,mn,mi=[fE.mw,ul.qf,ul.Mh,ul.Sv,ul.Lf,ul.zf,ul.Kf,ul.Jf,ul._v,ul.yv,f7.$w,f7.iy,f7.ey,f7.uy,f7.Og,f7.sy,f7.oy,ul.Ff,ul.Hf,ul.Wf,ul.Gf,ul.Yf,ul.Qf,ul.tv,ul.rv,ul.$f,ul.ev,ul.ov,ul.fv,ul.hv,ul.Av,ul.bv,ul.uv,ul.Zf,ul.vv],mr=function(e){function r(r,s){var o;return(o=e.call(this)||this).fC=void 0,o.vC=void 0,o.dC=void 0,o.lC=void 0,o.tD=g7.cC,o._C=void 0,o.gC=!0,o.Sm=new fA,o.Im=new fA,o.Rm=new fL,o.Nm=new lG,o.fC=r,o.dC=s,o.dC.gp=o.gp,o.wC(),o}j(r,e);var s,o,u,a=r.prototype;return a.xm=function(){this.dC.xm()},a.Mm=function(){this.dC.Mm()},a.Um=function(){return this.Hm(void 0)},a.qm=function(){},a.Jm=function(e){return!1},a.wC=function(){this.Sm.ew=this.dC.Pm,this.Im.ew=this.dC.Bm,this.Rm.ew=this.dC.Om,this.Nm.ew=this.dC.Lm,this.dC.kh(mi,this.wh)},a.yC=function(){this.dC.Eh(mi,this.wh),this.Sm.ew=void 0,this.Im.ew=void 0,this.Rm.ew=void 0,this.Nm.ew=void 0},a.Fm=function(){return this._C},s=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(s),this._C=r,r){e.next=4;break}return e.abrupt("return");case 4:if(!fW(o=r.sources.filter(fJ))){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.fC.rC(o,r);case 9:if(u=e.sent,rT(s),a=u.uC,h=u.sC,c=this.Zm(),f=lk(this),this.vC===h&&!this.Lh){e.next=25;break}return this.yC(),e.next=19,this.dC.Kl();case 19:var l,p;rT(s),this.vC=h,this.dC=this.kC(h),l=this.dC,p=f,l.wy!==p.wy&&(l.wy=p.wy),l.Ey!==p.Ey&&(l.Ey=p.Ey),l.py!==p.py&&(l.py=p.py),lA(this,f,this),this.wC();case 25:return this.dC.gp=this.gp,this.gC?this.dC.jm():this.dC.Ym(),e.next=29,this.dC.Hm(a,r,s
1);case 29:rT(s),this.mC(a),this.Zm()!==c&&this.yh(new fI);case 32:case"end":return e.stop()}},e,this)})),a.Hm=function(e,r){return s.apply(this,arguments)},a.mC=function(e){this.lC!==e&&(this.lC=e,this.yh(new fN(e)))},a.Xm=function(){return this.dC.Xm()},a.Vm=function(){this.dC.Vm()},a.Wm=function(){this.dC.Wm()},a.Zm=function(){return this.dC.Zm()},a.ip=function(){this.dC.ip()},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._C=void 0,this.mC(void 0),e.next=4,this.dC.Yg();case 4:case"end":return e.stop()}},e,this)})),a.Yg=function(){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),e.next=3,this.Yg();case 3:return e.next=5,this.dC.Kl();case 5:this.Sm.Kl(),this.Im.Kl(),this.Rm.Kl(),this.Nm.Kl();case 9:case"end":return e.stop()}},e,this)})),a.Kl=function(){return u.apply(this,arguments)},a.jm=function(){this.gC=!0,this.dC.jm()},a.Ym=function(){this.gC=!1,this.dC.Ym()},M(r,[{key:"Pm",get:function(){return this.Sm}},{key:"rp",get:function(){return this.dC.rp}},{key:"Lh",get:function(){return this.dC.Lh}},{key:"gy",get:function(){return this.dC.gy}},{key:"ep",get:function(){return this.dC.ep},set:function(e){this.dC.ep=e}},{key:"np",get:function(){return this.lC}},{key:"vy",get:function(){return this.dC.vy},set:function(e){this.dC.vy=e}},{key:"ly",get:function(){return this.dC.ly}},{key:"_y",get:function(){return this.dC._y}},{key:"Lm",get:function(){return this.Nm}},{key:"op",get:function(){return this.dC.op}},{key:"ym",get:function(){return this.dC.ym}},{key:"wy",get:function(){return this.dC.wy},set:function(e){this.dC.wy=e}},{key:"lp",get:function(){return this.dC.lp}},{key:"yy",get:function(){return this.dC.yy}},{key:"py",get:function(){return this.dC.py},set:function(e){this.dC.py=e}},{key:"_p",get:function(){return this.dC._p}},{key:"gp",get:function(){return this.tD},set:function(e){this.tD=e,this.dC&&(this.dC.gp=this.tD)}},{key:"bw",get:function(){return this.dC.bw}},{key:"wp",get:function(){return this.dC.wp}},{key:"Ay",get:function(){return this.dC.Ay}},{key:"Om",get:function(){return this.Rm}},{key:"by",get:function(){return this.dC.by}},{key:"Bm",get:function(){return this.Im}},{key:"Ty",get:function(){return this.dC.Ty}},{key:"Ey",get:function(){return this.dC.Ey},set:function(e){this.dC.Ey=e}},{key:"GD",get:function(){return this.dC.GD}}]),r}(rB),ms=function(e){function r(r,s){var o;return(o=e.call(this)||this).Zg=void 0,o.pC=void 0,o.AC=void 0,o.Zg=r.length>>1,o.pC=r,o.AC=s||function(e){for(var r=Array(2*e),s=0,o=0;s<e;s+=1,o+=2)r[o]=!0,r[o+1]=!1;return r}(o.Zg),o}j(r,e);var s=r.prototype;return s.bC=function(e){return this.pC[2*e]},s.TC=function(e){return this.AC[2*e]},s.EC=function(e){return this.pC[2*e+1]},s.SC=function(e){return this.AC[2*e+1]},M(r,[{key:"IC",get:function(){return this.pC.slice()}}]),r}(function(){function e(){}var r=e.prototype;return r.xy=function(e,r){return 0===this.Py(e,r)},r.lk=function(e,r){return this.Py(e,r)>0},r._k=function(e,r){return this.Py(e,r)>=0},r.Uy=function(e,r){return 0>this.Py(e,r)},r.Ly=function(e,r){return 0>=this.Py(e,r)},r.Mk=function(e,r){return this.Uy(e,r)?e:r},r.Lk=function(e,r){return this.lk(e,r)?e:r},r.RC=function(e,r,s){return s?this.Ly(e,r):this.Uy(e,r)},r.XD=function(){var e=this;return{get length(){return e.Zg},start:function(r){var s=0|r;return e.NC(s),e.DC(e.bC(s))},end:function(r){var s=0|r;return e.NC(s),e.DC(e.EC(s))}}},r.BC=function(){for(var e=Array(2*this.Zg),r=Array(2*this.Zg),s=0;s<this.Zg;s++)e[2*s]=this.bC(s),e[2*s+1]=this.EC(s),r[2*s]=!0,r[2*s+1]=!0;return this.OC(e,r)},r.NC=function(e){if(e<0)throw new y("The index provided ("+e+") must be non-negative");if(e>=this.Zg)throw new y("The index provided ("+e+") is greater than the maximum bound ("+this.Zg+")")},r.LC=function(e){if(0===this.Zg)return this.MC();if(this.HD(e))return e;if(this.Ly(e,this.bC(0)))return this.bC(0);
1if(this._k(e,this.EC(this.Zg-1)))return this.EC(this.Zg-1);for(var r,s=this.xC(),o=0;o<this.Zg;o++){var u=this.bC(o),a=this.My(u,e);this.Uy(a,s)&&(r=u,s=a);var h=this.EC(o),c=this.My(this.EC(o),e);this.Uy(c,s)&&(r=h,s=c)}return r},r.UC=function(e){for(var r=0,s=0,o=[],u=[];r<this.Zg&&s<e.Zg;){var a=this.bC(r),h=this.EC(r),c=this.TC(r),f=this.SC(r),l=e.bC(s),p=e.EC(s),v=e.TC(s),d=e.SC(s),y=this.Lk(a,l),g=this.Mk(h,p),m=void 0;m=this.xy(a,l)?c&&v:this.xy(y,a)?c:v;var w=void 0;w=this.xy(h,p)?f&&d:this.xy(g,h)?f:d,(this.Uy(y,g)||m&&w&&this.xy(y,g))&&(o.push(y,g),u.push(m,w));var b=this.Py(this.EC(r),e.EC(s));0===b?(r+=1,s+=1):b<0?r+=1:s+=1}return this.OC(o,u)},r.FC=function(){var e=this.HC(),r=e.Zg;if(0===r)return this.OC([e.XC(),e.xC()],[!1,!1]);var s=[],o=[],u=e.bC(0);e.xy(u,e.XC())||(s.push(e.XC(),u),o.push(!1,!e.TC(0)));for(var a=0;a<r-1;a++)s.push(e.EC(a),e.bC(a+1)),o.push(!e.SC(a),!e.TC(a+1));var h=e.EC(r-1);return e.xy(h,e.xC())||(s.push(h,e.xC()),o.push(!e.SC(r-1),!1)),e.OC(s,o)},r.VC=function(e){for(var r=0,s=0,o=this.Zg,u=e.Zg,a=Array(2*(o+u)),h=Array(2*(o+u)),c=0;r<o&&s<u;){var f=this.bC(r),l=this.EC(r),p=e.bC(s),v=e.EC(s);this.Uy(f,p)||this.xy(f,p)&&this.Uy(l,v)?(a[c]=f,a[c+1]=l,h[c]=this.TC(r),h[c+1]=this.SC(r),r++):(a[c]=p,a[c+1]=v,h[c]=e.TC(s),h[c+1]=e.SC(s),s++),c+=2}for(;r<o;)a[c]=this.bC(r),a[c+1]=this.EC(r),h[c]=this.TC(r),h[c+1]=this.SC(r),r++,c+=2;for(;s<u;)a[c]=e.bC(s),a[c+1]=e.EC(s),h[c]=e.TC(s),h[c+1]=e.SC(s),s++,c+=2;return this.OC(a,h)},r.WC=function(e){void 0===e&&(e=this.MC());var r=this.Zg;if(r<2)return this;for(var s=[],o=[],u=this.bC(0),a=this.EC(0),h=this.TC(0),c=this.SC(0),f=1;f<r;f++){var l=this.bC(f),p=this.EC(f),v=this.TC(f),d=this.SC(f);this.Uy(u,l)&&this.lk(a,p)||(this.xy(u,l)&&(h=v=h||v),this.xy(a,p)&&(c=d=c||d),this.RC(l,this.Wy(a,e),c||v)?a=p:(s.push(u,a),o.push(h,c),u=l,a=p,h=v),c=d)}return s.push(u,a),o.push(h,c),this.OC(s,o).HC()},r.HC=function(){for(var e=[],r=[],s=0;s<this.Zg;s++){var o=this.bC(s),u=this.EC(s),a=this.TC(s),h=this.SC(s);this.xy(o,u)?(a||h)&&(e.push(o,u),r.push(!0,!0)):(e.push(o,u),r.push(a,h))}return this.OC(e,r)},r.qC=function(e){return this.Zg?e.Zg?this.VC(e).WC():this:e},r.GC=function(e){var r=this.HC(),s=e.HC(),o=r.FC(),u=s.FC(),a=o.UC(s),h=u.UC(r);return a.qC(h)},r.Kh=function(e){if(this.xy(e,this.MC()))return this;for(var r=[],s=[],o=0;o<this.Zg;o++){var u=this.Wy(this.bC(o),e),a=this.Wy(this.EC(o),e);r.push(u,a),s.push(this.TC(o),this.SC(o))}return this.OC(r,s)},r.zC=function(e){return this.HC().UC(e.HC().FC())},r.HD=function(e,r){return this.jC(e,r)>=0},r.YC=function(e,r,s,o,u){return this.QC(e,r,s,o,u)>=0},r.ZC=function(e,r,s,o,u){return this.KC(e,r,s,o,u)>=0},r.JC=function(e){if(e.Zg!==this.Zg)return!1;for(var r=0;r<this.Zg;r++)if(!this.xy(this.bC(r),e.bC(r))||!this.xy(this.EC(r),e.EC(r))||this.TC(r)!==e.TC(r)||this.SC(r)!==e.SC(r))return!1;return!0},r.$C=function(e){for(var r=[],s=[],o=0;o<this.Zg;o++)e(this.bC(o),this.EC(o))&&(r.push(this.bC(o),this.EC(o)),s.push(this.TC(o),this.SC(o)));return this.OC(r,s)},r.KC=function(e,r,s,o,u){void 0===s&&(s=!0),void 0===o&&(o=!0),void 0===u&&(u=this.MC());for(var a=this.Vy(e,u),h=this.Wy(r,u),c=0;c<this.Zg;c+=1)if(this.RC(this.bC(c),h,!o||this.TC(c))&&this.RC(a,this.EC(c),!s||this.SC(c)))return c;return -1},r.QC=function(e,r,s,o,u){void 0===s&&(s=!0),void 0===o&&(o=!1),void 0===u&&(u=this.MC());for(var a=this.Wy(e,u),h=this.Vy(r,u),c=0;c<this.Zg;c+=1)if(this.RC(this.bC(c),a,!s||this.TC(c))&&this.RC(h,this.EC(c),!o||this.SC(c)))return c;return -1},r.jC=function(e,r){return this.QC(e,e,!0,!0,r)},r.tP=function(e,r){void 0===r&&(r=this.MC());for(var s=this.Wy(e,r),o=this.Zg-1;o>=0;o-=1)if(this.RC(this.bC(o),s,this.TC(o)))return o;return -1},r.nP=function(e,r){void 0===r&&(r=this.MC());for(var s=this.Vy(e,r),o=0;o<this.Zg;o+=1)if(this.RC(s,this.EC(o),this.SC(o)))return o;return -1},r.iP=function(e){return this.NC(e),this.OC([this.bC(e),this.EC(e)],[this.TC(e),this.SC(e)])},r.rP=function(e,r){var s=this.jC(e,r);return s<0?void 0:this.iP(s)},M(e,[{key:"eP",get:function(){for(var e=this.MC(),r=0;r<this.Zg;r++){var s=this.Vy(this.EC(r),this.bC(r));
1e=this.Wy(e,s)}return e}}]),e}()),mo=function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.Py=function(e,r){return e<r?lC.Ry:e===r?lC.Sy:lC.Iy},s.Wy=function(e,r){return e+r},s.Vy=function(e,r){return e-r},s.My=function(e,r){return b.abs(e-r)},s.MC=function(){return 0},s.xC=function(){return 1/0},s.XC=function(){return-1/0},r.uP=function(e){for(var s=[],o=0;o<e.length;o++)s.push(e.start(o),e.end(o));return new r(s)},r.sP=function(e){for(var s=[],o=[],u=0;u<e.Zg;u++)s.push(e.bC(u).Fk),s.push(e.EC(u).Fk),o.push(e.TC(u)),o.push(e.SC(u));return new r(s,o)},r.oP=function(e){return new r([e,e],[!0,!0])},s.OC=function(e,s){return new r(e,s)},s.DC=function(e){return e},r.aP=function(){return mu},r}(ms),mu=new mo([]);(mm=mn||(mn={})).Pg="fullscreenchange",mm.hP="fullscreensupportchange",mm.mw="fullscreenerror";var ma=function(e){function r(){return e.call(this,mn.mw)||this}return j(r,e),r}(rX),mh=new(function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.Bp=function(){this.yh(new ma)},s.Lp=function(){},s.Kl=function(){this.Th()},M(r,[{key:"cP",get:function(){return!1}},{key:"fP",get:function(){return!1}}]),r}(rB)),mc=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.Qm=function(){},r}(function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).vP=0,r.dP=!1,r.lP=!0,r._P=1,r.gP=!1,r.wP=1,r.Pm=new l6,r.rp=mo.aP().XD(),r.ly=NaN,r._y=!1,r.Lh=void 0,r.gy=void 0,r.Lm=void 0,r.op=!1,r.lp=!0,r._p=mo.aP().XD(),r.gp=g7.cC,r.bw=f1.Yw,r.wp=mo.aP().XD(),r.qD=void 0,r.Om=new vX,r.by=0,r.Bm=new l6,r.Ty=0,r.uD=new gz,r}j(r,e);var s,o,u=r.prototype;return u.jm=function(){},u.Ym=function(){},u.Mm=function(){this.lP&&(this.lP=!1,this.yh(new le(this.vy)),this.yh(new gB(this.vy)))},u.xm=function(){this.lP||(this.lP=!0,this.yh(new lh(this.vy,this.ep)),this.yh(new lt(this.vy)))},u.Hm=function(e,r){return P.resolve()},u.Xm=function(){return!1},u.Vm=function(){},u.Wm=function(){},u.Zm=function(){return mh},u.ip=function(){},s=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.vP=0,this.gP=!1,this.xm(),this.yh(new f9(this.vP));case 4:case"end":return e.stop()}},e,this)})),u.Yg=function(){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.Th(),this.Pm.Kl(),this.Om.Kl(),this.Bm.Kl();case 4:case"end":return e.stop()}},e,this)})),u.Kl=function(){return o.apply(this,arguments)},M(r,[{key:"ep",get:function(){},set:function(e){}},{key:"vy",get:function(){return this.vP},set:function(e){this.vP!==e&&(this.vP=e,this.gP=!0,this.yh(new ll(this.vy)))}},{key:"ym",get:function(){return{ap:0,hp:0,cp:0,fp:0,vp:0,dp:{amountOfBufferedAudioSegments:0,amountOfBufferedVideoSegments:0}}}},{key:"wy",get:function(){return this.dP},set:function(e){this.dP!==e&&(this.dP=e,this.yh(new lv(this.vy,this.Ey)))}},{key:"yy",get:function(){return this.lP}},{key:"py",get:function(){return this._P},set:function(e){this._P!==e&&(this._P=e,this.yh(new la(this.vy,this.py)))}},{key:"Ay",get:function(){return this.gP}},{key:"Ey",get:function(){return this.wP},set:function(e){this.wP!==e&&(this.wP=e,this.yh(new lv(this.vy,this.Ey)))}},{key:"GD",get:function(){return this.uD}}]),r}(rB)),mf=function(e){function r(r,s,o,u,a,h){var c;return(c=e.call(this,g8.ju,new mc)||this).ef=void 0,c.yP=void 0,c.kP=void 0,c.mP=void 0,c.ES=void 0,c.pP=void 0,c.AP=void 0,c.kP=r,c.ef=s,c.ES=o,c.pP=u,c.mP=h,c.yP=new nZ(a,c.mP),c.yP.bP(c.kP),c.AP=new g9(c.kP),c}j(r,e);var s,o=r.prototype;return o.qm=function(){e.prototype.qm.call(this),this.yP.TP()},o.Gm=function(e){lE(this,e)},o.zm=function(){},o.kC=function(e){return e.zS(this.kP,this.yP,this.ES,this.ef,this.pP,this.mP)},o.Qm=function(){return this.dC.Qm()},o.Km=function(){return this.yP.EP.map(function(e){return e.pD})},o.Ah=function(r){e.prototype.Ah.call(this,r)},o.Rh=function(r){e.prototype.Rh.call(this,r)},s=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype.Kl.call(this);case 2:this.yP.Kl(),this.AP.Kl();case 4:case"end":return r.stop()}},r,this)})),o.Kl=function(){return s.apply(this,arguments)},M(r,[{key:"sp",get:function(){return this.kP}}]),r}(mr),ml=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).kP=void 0,u.SP=void 0,u.IP=void 0,u.RP=void 0,u.NP=void 0,u.kP=r,u.SP=s,u.RP=new l6,u.NP=new vX,u.IP=o,u}j(r,e);var s,o=r.prototype;return o.Jm=function(e){return!0},o.Ym=function(){},o.Mm=function(){throw this.yh(new lm(this.IP)),this.SP},o.xm=function(){},o.Fm=function(){},s=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:throw rT(s),this.yh(new lm(this.IP)),this.SP;case 3:case"end":return e.stop()}},e,this)})),o.Hm=function(e,r){return s.apply(this,arguments)},o.jm=function(){},o.Um=function(){return P.resolve()},o.Qm=function(){},o.Zm=function(){return mh},o.Km=function(){return[]},o.qm=function(){},o.Gm=function(e){},o.zm=function(){},o.Xm=function(){return!1},o.Vm=function(){},o.Wm=function(){},o.ip=function(){},o.Yg=function(){return P.resolve()},o.Kl=function(){return this.Th(),this.RP.Kl(),this.NP.Kl(),P.resolve()},M(r,[{key:"Pm",get:function(){return this.RP}},{key:"rp",get:function(){return mo.aP().XD()}},{key:"ep",get:function(){return new Date(NaN)},set:function(e){}},{key:"np",get:function(){}},{key:"vy",get:function(){return 0},set:function(e){}},{key:"ly",get:function(){return 0}},{key:"sp",get:function(){return this.kP}},{key:"_y",get:function(){return!0}},{key:"Lh",get:function(){return this.SP}},{key:"gy",get:function(){return this.IP}},{key:"Lm",get:function(){}},{key:"ym",get:function(){return{ap:0,hp:0,cp:0,fp:0,vp:0,dp:{amountOfBufferedAudioSegments:0,amountOfBufferedVideoSegments:0}}}},{key:"wy",get:function(){return!1},set:function(e){}},{key:"lp",get:function(){return!0}},{key:"yy",get:function(){return!0}},{key:"py",get:function(){return 0},set:function(e){}},{key:"_p",get:function(){return mo.aP().XD()}},{key:"gp",get:function(){return g7.cC}
1,set:function(e){}},{key:"bw",get:function(){return f1.Yw}},{key:"wp",get:function(){return mo.aP().XD()}},{key:"Ay",get:function(){return!1}},{key:"Om",get:function(){return this.NP}},{key:"by",get:function(){return 0}},{key:"Bm",get:function(){return this.RP}},{key:"Ty",get:function(){return 0}},{key:"Ey",get:function(){return 1},set:function(e){}},{key:"op",get:function(){return!1}}]),r}(fP);function mp(e){if(e&&te(e)){var r;return iD({},e,{integration:function(e){if(ti(e))return e}(e.integration),fairplay:function(e){if(e){var r=mv(e);if(r)return iD({},r,{certificateURL:ti(e.certificateURL)?e.certificateURL:void 0})}}(e.fairplay),widevine:mv(e.widevine),playready:function(e){if(e){var r=mv(e);if(r)return iD({},r,{customData:ti(e.customData)?e.customData:void 0})}}(e.playready),clearkey:function(e){if(e){var r=mv(e);if(r)return iD({},r,{keys:Z(e.keys)?e.keys.map(function(e){if(e&&te(e)){var r=e.id,s=e.value;return ti(r)&&ti(s)?{id:r,value:s}:void 0}}).filter(z):void 0})}}(e.clearkey),aes128:function(e){if(te(e))return{useCredentials:tr(e.useCredentials)?e.useCredentials:void 0}}(e.aes128),integrationParameters:function(e){if(te(e))return e}(e.integrationParameters),preferredKeySystems:(r=e.preferredKeySystems)&&Z(r)?r.map(function(e){return d$(e)}).filter(z):[iz,iQ,i0]})}}function mv(e){if(e&&te(e))return{persistentState:md(e.persistentState),distinctiveIdentifier:md(e.distinctiveIdentifier),audioRobustness:my(e.audioRobustness),videoRobustness:my(e.videoRobustness),licenseAcquisitionURL:ti(e.licenseAcquisitionURL)?e.licenseAcquisitionURL:void 0,licenseType:function(e){switch(null==e?void 0:e.toLowerCase()){case"temporary":return"temporary";case"persistent":return"persistent"}}(e.licenseType),headers:e.headers,useCredentials:!!tr(e.useCredentials)&&e.useCredentials,queryParameters:e.queryParameters,certificate:ti(e.certificate)||sX(e.certificate)?e.certificate:void 0,certificateRequestProcessor:mg(e.certificateRequestProcessor),certificateResponseProcessor:mg(e.certificateResponseProcessor),licenseRequestProcessor:mg(e.licenseRequestProcessor),licenseResponseProcessor:mg(e.licenseResponseProcessor)}}function md(e){switch(null==e?void 0:e.toLowerCase()){case"required":return"required";case"optional":return"optional";case"not-allowed":return"not-allowed"}}function my(e){switch(e){case"HW_SECURE_ALL":return"HW_SECURE_ALL";case"HW_SECURE_DECODE":return"HW_SECURE_DECODE";case"HW_SECURE_CRYPTO":return"HW_SECURE_CRYPTO";case"SW_SECURE_DECODE":return"SW_SECURE_DECODE";case"SW_SECURE_CRYPTO":return"SW_SECURE_CRYPTO";case"":return""}}function mg(e){if("function"==typeof e)return e}var mm,mw,mb=function(e){function r(r){var s;return(s=e.call(this,"presentationmodechange")||this).presentationMode=r,s}return j(r,e),r}(rX),mk=function(e){function r(r,s){var o;return void 0===s&&(s=!1),(o=e.call(this,r)||this).DP=[],o.CP=void 0,o.PP=function(e){rI(function(){o.wh(e)})},o.CP=s?o.PP:o.wh,o}j(r,e);var s=r.prototype;return s.BP=function(e){e.Ah(this.CP),this.DP.push(e)},s.OP=function(e){e.Rh(this.CP),rc(this.DP,e)},s.Kl=function(){this.Th();for(var e=0,r=this.DP;e<r.length;e++)r[e].Rh(this.CP);rv(this.DP)},r}(f_),mE=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r}(mk);(mA=mw||(mw={})).INLINE="inline",mA.FULLSCREEN="fullscreen",mA.PICTURE_IN_PICTURE="picture-in-picture";var mA,mx,mT=function(r){function s(e){var s;return(s=r.call(this)||this).LP=void 0,s.MP=void 0,s.xP=!1,s.UP=!1,s.FP=void 0,s.HP=void 0,s.XP=void 0,s._g=void 0,s.VP=function(){return s.WP()},s.qP=function(){return s.GP()},s.XP=e,s.LP=s.MP=s.FP=s.HP=mw.INLINE,s.XP.kh(mn.Pg,s.VP),s.XP.kh(mn.mw,s.qP),s.zP(),s}j(s,r);var o=s.prototype;return o.wg=function(){var e,r,s;return e=this,(r=new mk(s={get currentMode(){return e.jP()},requestMode:function(r){var s=mS(r);s&&e.YP(s)},supportsMode:function(r){var s=mS(r);return!!s&&e.QP(s)},addEventListener:function(e,s){r.kh(e,s)},removeEventListener:function(e,s){r.Eh(e,s)}},!0)).BP(e),s},o.YP=function(e){this.ZP(e,e)}
1,o.ZP=function(e,r){this.MP!==r&&(this.xP=!0,this.LP=e,this.KP(r,this.MP),e!==mw.FULLSCREEN&&(this.FP=e),this.xP=!1,this.zP())},o.jP=function(){return this.UP?mw.FULLSCREEN:mw.INLINE},o.QP=function(e){switch(e){case mw.FULLSCREEN:return this.XP.fP;case mw.INLINE:return!0}return!1},o.zP=function(){if(!this.xP){var e=this.MP,r=this.jP();this.MP=r,r!==mw.FULLSCREEN&&(this.HP=r),e!==r&&this.yh(new mb(r))}},o.KP=function(e,r){var s=e===mw.FULLSCREEN;this.UP=s,s!==this.XP.cP&&(s?this.XP.Bp():this.XP.Lp())},o.WP=function(){if(!this.xP){var e=this.XP.cP;this.UP=e,e?this.ZP(mw.FULLSCREEN,mw.FULLSCREEN):e||this.LP!==mw.FULLSCREEN?this.zP():this.ZP(this.FP,this.HP)}},o.GP=function(){this.WP(),this.yh(new lm(new om(e.ErrorCode.FULLSCREEN_ERROR,"Failed to enter fullscreen.")))},o.Kl=function(){this.XP.Kl(),this.Th()},M(s,[{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}}]),s}(f_),mC={vy:0,ly:NaN,_y:!1,Lh:void 0,gy:void 0,wy:!1,yy:!0,py:1,bw:f1.Yw,Ay:!1,by:0,Ty:0,Ey:1};function mS(e){switch(e){case mw.INLINE:case mw.FULLSCREEN:case mw.PICTURE_IN_PICTURE:return e;default:return}}(mR=mx||(mx={})).DEFAULT="",mR.THEO="theo",mR.GOOGLE_IMA="google-ima",mR.SPOTX="spotx",mR.FREEWHEEL="freewheel";var mR,mL,m_,mP,mI,mN,mO,mD,mU,mM=function(){function e(){this.JP=[]}var r=e.prototype;return r.$P=function(e){var r=this.tB.filter(function(r){return r.nB(e)});if(r.length>1);else if(0===r.length)throw y("Unknown ad integration: "+e.integration);return r[0]||null},r.iB=function(e){this.JP.push(e)},M(e,[{key:"tB",get:function(){return this.JP}}]),e}();function mF(e){return{useSeamlessPeriodSwitch:function(e){if(!e||!ti(e))return m8.hC;switch(e){case"always":return m8.XB;case"never":return m8.VB;default:return m8.hC}}(null==e?void 0:e.useSeamlessPeriodSwitch)}}function mj(e){return{discontinuityAlignment:function(e){if(!e||!ti(e))return m7.hC;switch(e){case"playlist":return m7.WB;case"media":return m7.qB;default:return m7.hC}}(null==e?void 0:e.discontinuityAlignment)}}function mH(e){if(null!==e)return e}function mB(e){switch(e.integration){case"google-dai":var r,s={apiKey:e.apiKey,integration:e.integration,streamActivityMonitorID:mH(e.streamActivityMonitorID),adTagParameters:te(e.adTagParameters)?e.adTagParameters:{},authToken:mH(e.authToken)};if("vod"===(null==e?void 0:e.availabilityType)||e.videoID&&e.contentSourceID){var o=e.videoID,u=e.contentSourceID;return o?u?iD({},s,{availabilityType:"vod",videoID:o,contentSourceID:u}):void _.Wo("A VOD DAI configuration was provided without valid contentSourceID which is required."):void _.Wo("A VOD DAI configuration was provided without valid videoID which is required.")}if("live"===(null==e?void 0:e.availabilityType)||e.assetKey){var a=e.assetKey;return a?iD({},s,{availabilityType:"live",assetKey:a}):void _.Wo("A Live DAI configuration was provided without valid assetKey which is required.")}_.Wo("A DAI configuration was provided without a valid availabilityType which is required.");return;case"imagine":default:return{integration:e.integration};case"yospace":return{integration:e.integration,streamType:null!=(r=e.streamType)?r:void 0}}}function mV(e){var r,s,o;return dj(e)&&e.integration&&e.integration===dg?(r=dY(iV.Oa,e),s=dY(iV.Ba,e),o=e[iV.La]&&dY(iV.La,e),iD({integration:"keyos",widevine:r,playready:s},o?{fairplay:o}:{})):e}function mX(e){if(!e)return!0;var r,s=!(fX(r=e.sources)||tt(r)&&fX(r[0]))||fW(e.sources),o=!e.ads||mW(e.ads),u=""!==e.poster&&!e.poster;return s&&o&&u}function mW(e){return!e||Z(e)&&0===e.length}function mq(e){if(e&&e.sources)return function e(r){return ti(r)?r:fV(r)?r.src:tt(r)&&r.length>0?e(r[0]):void 0}(e.sources)}function mY(e,r,s){var o,u,a,h,c,f,l,p,v,d;return fH(e)?(o=e,u=r,a=s,(d=iD({},fq(),{ping:{adImpressions:!1,freeWheelVideoViews:!1,linearAdData:!1},integration:m9.VERIZON_MEDIA,id:"",preplayParameters:{},playbackUrlParameters:{},assetType:wt.ASSET,contentProtected:!1,assetInfo:!0})).id=ti(v=o.id)||tt(v)&&ti(v[0])||te(v)&&ti(v.userId)&&(tt(v.externalId)||ti(v.externalId))?v:"",o.preplayParameters&&(d.preplayParameters=o.preplayParameters),o.playbackUrlParameters&&(d.playbackUrlParameters=o.playbackUrlParameters),o.assetType&&(d.assetType=function(e){switch(e){case"channel":return wt.CHANNEL;case"event":return wt.EVENT;default:return wt.ASSET}}
1(o.assetType)),o.contentProtected&&(d.contentProtected=fh(o.contentProtected)),o.assetInfo?d.assetInfo=fh(o.assetInfo):d.assetInfo="asset"===d.assetType,d.ping=(h=d.assetType,c=o.ping,f=!1,l=!1,p=!1,c?(f=!!tr(c.adImpressions)&&c.adImpressions,l=!!tr(c.freeWheelVideoViews)&&c.freeWheelVideoViews,p=tr(c.linearAdData)?c.linearAdData:h!==wt.ASSET):h!==wt.ASSET&&(p=!0),{adImpressions:f,freeWheelVideoViews:l,linearAdData:p}),d=mJ(d=m$(d,o),u,a)):function(e,r,s){var o=fY(),u=r&&(r.contentProtection||r.drm);if(ti(e)){if(o.src=e,o.type=fU(e),u){var a=mp(u);o.contentProtection=mV(a)}}else if(fV(e)||fj(e)){o.src=e.src,o.type=e.type||fU(e.src),o.isAdvertisement=e.isAdvertisement;var h=e.type===fz.zw||e.type===fz.jw?e.hesp:void 0;void 0!==h&&(o.hesp=h);var c=mp(e.contentProtection||e.drm||u);o.contentProtection=mV(c),e.ssai&&(o.ssai=mB(e.ssai)),o=m$(o,e)}return mJ(o,r,s)}(e,r,s)}function m$(e,r){r.useCredentials?e.crossOrigin=fK.Ww:r.crossOrigin&&(e.crossOrigin=fM(r.crossOrigin)),ti(r.timeServer)&&(e.timeServer=r.timeServer),r.liveOffset&&(e.liveOffset=r.liveOffset),r.hlsDateRange&&(e.hlsDateRange=r.hlsDateRange),r.lowLatency&&(e.lowLatency=fh(r.lowLatency)),r.useNativePlayback&&(e.useNativePlayback=fh(r.useNativePlayback)),r.dash&&(e.dash=mF(r.dash)),r.hls&&(e.hls=mj(r.hls));var s=void 0!==r.experimentalRendering?fh(r.experimentalRendering):void 0;void 0!==s&&(e.experimentalRendering=s);var o=void 0!==r.nativeUiRendering?fh(r.nativeUiRendering):void 0;return void 0!==o&&(e.nativeUiRendering=o),e}function mJ(e,r,s){var o,u=r&&r.timeServer;return s&&s.liveOffset&&!z(e.liveOffset)&&(e.liveOffset=s.liveOffset),s&&s.hlsDateRange&&!z(e.hlsDateRange)&&(e.hlsDateRange=s.hlsDateRange),e.crossOrigin===fK.qw&&null!=r&&null!=(o=r.vr)&&o[360]&&(e.crossOrigin=fK.Vw),e.useCredentials=e.crossOrigin===fK.Ww,ti(u)&&!e.timeServer&&(e.timeServer=u),e}function mQ(e,r,s){if(void 0===s&&(s=mM.ju),mX(e))return{sources:[fY()]};var o,u=fr(e);if(u.sources=function(e,r,s){if(fX(e))return[mY(e,r,s)];if(tt(e)&&fX(e[0])){for(var o=[],u=0;u<e.length;u++){var a=e[u];o.push(mY(a,r,s))}return o}return[fY()]}(u.sources,u,r),"contentProtection"in u&&delete u.contentProtection,"drm"in u&&delete u.drm,"ads"in u){var a=function(e,r){if(!tt(e))return[];for(var s=[],o=0;o<e.length;o++){var u,a,h=e[o];(h=function(e,r){if(tn(e))try{return r.$P(e).GB(e)}catch(e){return}}(h,r))&&(ti((u=h).sources)&&""!==u.sources||te(u.sources)&&ti(u.sources.src)||(a=h).integration===mx.SPOTX&&!A(a.id)||"freewheel"===h.integration)&&s.push(h)}return s}(u.ads,s);0===a.length?delete u.ads:u.ads=a}var h,c,f=!fW(u.sources),l=u.ads&&u.ads.length>0;if(f&&!l?delete u.ads:l&&!f&&(u.sources=[]),"textTracks"in u){var p=function(e){if(!tt(e))return[];for(var r=[],s=0;s<e.length;s++){var o=e[s];""!==(o=function(e){var r={src:""};if(e&&e.src){if(r.src=fl(e.src),"default"in e&&(r.default=fh(e.default)),r.kind=vY(e.kind),pp(e.format)&&(r.format=e.format),"srclang"in e){var s=e.srclang;"string"==typeof s&&""!==s&&(r.srclang=s)}if("label"in e){var o=e.label;"string"==typeof o&&""!==o&&(r.label=o)}}return r}(o)).src&&r.push(o)}return r}(u.textTracks);0===p.length?delete u.textTracks:u.textTracks=p}if("poster"in u&&(u.poster=fl(u.poster)),"vr"in u&&((h=u.vr||{}).stereoMode=!function(e){switch(e){case m6.NONE:case m6.HORIZONTAL:case m6.VERTICAL:return!0;default:return!1}}(o=h.stereoMode)?m6.NONE:o,u.vr={360:!!h[360],stereoMode:h.stereoMode?function(e){switch(e){case"":return m6.NONE;case"horizontal":return m6.HORIZONTAL;case"vertical":return m6.VERTICAL;default:throw new g}}(h.stereoMode):m6.NONE}),"analytics"in u||(null==r?void 0:r.analytics)){var v=f$(u.analytics);u.analytics=function(e,r){for(var s=fr(e),o=0;o<r.length;o++)!function(o){var u=r[o];e.some(function(e){return e.integration===u.integration})||"agama"===u.integration||s.push(u)}(o);return s}(v,r&&r.analytics||[])}return"mutedAutoplay"in u&&(u.mutedAutoplay=lw(u.mutedAutoplay)),"timeServer"in u&&delete u.timeServer,u.blockContentIfAdError=void 0!==(c=u.blockContentIfAdError)&&"boolean"==typeof c&&!!c,u}mM.ju=new mM,(mZ=mL||(mL={})).oy="PLAYING",mZ.pm="PAUSED",mZ.rB="SEEK",mZ.eB="STALLED",mZ.uB="FAILED",mZ.sB="INITIAL_BUFFERING",mZ.oB="NO_ACCESS",(m0=m_||(m_={})).aB="HTTP_REQUEST_STATUS_CODE_1XX",m0.hB="HTTP_REQUEST_STATUS_CODE_2XX",m0.cB="HTTP_REQUEST_STATUS_CODE_3XX",m0.fB="HTTP_REQUEST_STATUS_CODE_4XX",m0.vB="HTTP_REQUEST_STATUS_CODE_5XX",m0.dB="BUFFER_LENGTH",m0.lB="BYTES_RECEIVED",m0._B="SEGMENT_READ_BITRATE",m0.gB="SEGMENT_PROFILE_BITRATE",m0.wB="NUMBER_OF_FRAMES_DROPPED",m0.yB="PLAYBACK_POSITION",m0.kB="NUM
1BER_OF_FRAMES_DECODED",m0.mB="PLAYBACK_DELTA_TO_ORIGIN",m0.pB="STREAM_DELTA_TO_ORIGIN",m0.AB="ORIGIN_TIMESTAMP",(m1=mP||(mP={})).bB="MANIFEST_URI",m1.TB="ASSET_DURATION",m1.EB="NUMBER_OF_CONTENT_PROFILES",m1.SB="CDN",m1.IB="CONTENT_TITLE",m1.RB="SERVICE_NAME",m1.NB="CONTENT_TYPE",m1.DB="CONTENT_DESCRIPTION",(mI||(mI={})).CB="shutdown_normal_shutdown",(m2=mN||(mN={})).PB="session/",m2.BB="internalError/",m2.OB="drmError/",m2.LB="caError/",m2.MB="networkError/",(m3=mO||(mO={})).xB="userAction",m3.UB="endOfStreamReached",(m5=mD||(mD={})).PAUSE="FB",m5.RESUME="HB",(m4=mU||(mU={})).UNAVAILABLE="unavailable",m4.AVAILABLE="available",m4.CONNECTING="connecting",m4.CONNECTED="connected",(we=m6||(m6={})).NONE="",we.HORIZONTAL="horizontal",we.VERTICAL="vertical",(wn=m8||(m8={})).hC="auto",wn.XB="always",wn.VB="never",(wi=m7||(m7={})).hC="auto",wi.WB="playlist",wi.qB="media",(m9||(m9={})).VERIZON_MEDIA="verizon-media",(wr=wt||(wt={})).ASSET="asset",wr.CHANNEL="channel",wr.EVENT="event";var mG=function(){function e(e){this.zB=e}return e.prototype.jB=function(e){var r,s,o,u,a,h,c,f=[];if(!e)return"";var l=e.length%4;if(l>0)for(;l++<4;)e+=this.zB.charAt(64);for(r=0;r<e.length;r+=4)s=(c=this.zB.indexOf(e.charAt(r))<<18|this.zB.indexOf(e.charAt(r+1))<<12|(a=this.zB.indexOf(e.charAt(r+2)))<<6|(h=this.zB.indexOf(e.charAt(r+3))))>>>16&255,o=c>>>8&255,u=255&c,f[r/4]=String.fromCharCode(s,o,u),64===h&&(f[r/4]=String.fromCharCode(s,o)),64===a&&(f[r/4]=String.fromCharCode(s));return f.join("")},e.prototype.YB=function(e,r){var s,o,u,a,h,c,f,l=[],p="";if((c=e.length%3)>0)for(;c++<3;)p+=this.zB.charAt(64),e+="\0";for(c=0;c<e.length;c+=3)o=(s=e.charCodeAt(c)<<16|e.charCodeAt(c+1)<<8|e.charCodeAt(c+2))>>18&63,u=s>>12&63,a=s>>6&63,h=63&s,l[c/3]=this.zB.charAt(o)+this.zB.charAt(u)+this.zB.charAt(a)+this.zB.charAt(h);return f=(f=l.join("")).slice(0,f.length-p.length),r||(f+=p),f},e.yA=new e(function(){var e,r,s,o,u=[],a=["object","$","undefined","function","Cannot find module '","MODULE_NOT_FOUND","*","com.widevine.alpha","urn:mpeg:dash:mp4protection:2011","^","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","__proto__","@@iterator","getUTCHours","setUTCFullYear","25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?","SegmentBase","RateChangeEvent","Symbol(","Symbol.",'; codecs="'];for(e=0;e<a.length;e+=1)for(r=a[e],s=0;s<r.length;s+=1)-1===u.indexOf(o=r.charAt(s))&&u.push(o);return u.join("")}()),e.QB=new e(e.yA.jB("aDtm.Dd_DE.4DuN$CeaD $t?FUa0ac'NlYsgU]dU*|sMCON9NL.i'YU M:.LiEb5TLaTOu18F|'v*:s7C41nOMop")),e}();function mK(e){return"string"==typeof e}function mz(e){return"number"==typeof e}var mZ,m0,m1,m2,m3,m5,m4,m6,m8,m7,m9,wt,we,wn,wi,wr,ws,wo={}.toString,wu=Array.isArray||function(e){return"[object Array]"===wo.call(e)};function wa(e,r){return wu(e)&&e.every(r)}(wh=ws||(ws={})).HTML5="html5",wh.ANDROID="android",wh.IOS="ios",wh.TVOS="tvos",wh.ANDROIDTV="androidtv",wh.TIZEN="tizen",wh.WEBOS="webos",wh.CHROMECAST="chromecast",wh.ROKU="roku",wh.FIRETV="firetv",wh.CHROMECASTCAF="chromecastcaf";var wh,wc,wf=w.keys(ws).map(function(e){return ws[e]});function wl(e){return -1!==wf.indexOf(e)}function wp(){return wc||(wc={Il:n3.href,ZB:n2.parent&&n2.parent!==a,KB:function(){try{return n2.top.location.href}catch(e){return n2&&n2.document&&n2.document.referrer}}()}),wc}var wv,wd=["http:","https:","ftp:","ws:","wss:"];(wy=wv||(wv={}))[wy.JB=0]="JB",wy[wy.$B=1]="$B",wy[wy.tO=2]="tO";var wy,wg,wm=function(e,r,s,o,u,a,h,c){void 0===u&&(u=""),void 0===a&&(a=Date.now()),void 0===h&&(h=[]),void 0===c&&(c=!0),this.nO=e,this.iO=r,this.rO=s,this.eO=o,this.uO=u,this.sO=a,this.oO=h,this.aO=c};(wC=wg||(wg={})).$B="expired",wC.hO="invaliddomain",wC.cO="invalidsource",wC.mw="error";var ww=function(){function e(e,r,s){this.fO=void 0,this.vO=e,this.dO=r,this.lO=s,this.fO=wT(this.lO)}var r=e.prototype;return r._O=function(e,r){var s=this;if(!mX(e)&&0!==r.rO.length&&!wE(r.rO)){var o=[];if(fX(e.sources)?o=[e.sources]:tt(e.sources)&&(o=e.sources),!o.every(function(e){return s.gO(e,r)})){var u=wg.cO,a=wR.wO(u);throw new om(wb(u),a)}}},r.yO=function(r){return this.kO(r.oO)&&this.mO(r)?e.pO(r.eO)?wv.JB:wv.$B:wv.tO},r.kO=function(e){var r=this;return 0===e.length||e.some(function(e){return r.AO(e)})},r.AO=function(e){return"web"===function(e){switch(e){case ws.ANDROID:return tg.Jr;case ws.ANDROIDTV:case ws.FIRETV:return tg.$r;case ws.IOS:return tg.re;case ws.TVOS:return tg.ue;case ws.CHROMECAST:case ws.CHROMECASTCAF:return tg.oe;default:return tg.Kr}}(e)},e.pO=function(e){var r=Number(new Date);return!!e&&r<=e},r.mO=function(e){return!(this.fO&&0!==e.iO.length&&!wE(e.iO))||!!(this.fO&&this.bO(e.iO)&&this.TO(e.iO))},r.bO=function(e){return wA(this.lO.Il,e)},r.TO=function(e){if(!this.lO.ZB||this.vO)return!0;var r=this.EO();return!!r&&wA(r,e)},r.EO=function(){if(this.lO.ZB){var e=c.ancestorOrigins;return e&&e.length>0?e[e.length-1]:this.lO.KB?this.lO.KB:void 0}},r.gO=function(r,s){return!!e.SO(r,s.rO)},e.SO=function(e,r){return wA(this.IO(e),r)},e.IO=function(e){return ti(e)?e:fV(e)&&e.src||""},e}();function wb(r){switch(r){case wg.hO:return e.ErrorCode.LICENSE_INVALID_DOMAIN;case wg.cO:return e.ErrorCode.LICENSE_INVALID_SOURCE;case wg.$B:return e.ErrorCode.LICENSE_EXPIRED;case wg.mw:return e.ErrorCode.LICENSE_ERROR}}function wk(e,r){var s=e,o=r;if(!s)return!1;if("*"===(o=o.trim())||o===(s=s.replace(/\.+$/,"")))return!0;var u="25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?",a="(\\*|"+u+")",h=RegExp("ip-range\\("+a+"\\."+a+"\\."+a+"\\."+a+"\\)"),c=o.match(h),f=function(e){return"*"===e?"("+u+")":e};if(null!==c&&5===c.length){var l=RegExp("^"+c[1]+"\\."+f(c[2])+"\\."+f(c[3])+"\\."+f(c[4])+"$");return null!==s.match(l)}return o="."+o,-1!==s.indexOf(o,s.length-o.length)}function wE(e){return e.some(function(e){return"*"===e})}function wA(e,r){var s=_._o(e);if(!wx(s))return!0;for(var o=0;o<r.length;o++){var u=r[o];if(wk(s.hostname,u)||wk(function(e){if(!nW(e,"http://webcache.googleusercontent.com/search?q=cache:"))return"";var r=_._o(e).search.match(n6);return r&&r.length>1?r[1]:""}(e),u))return!0}return!1}function wx(e){return -1!==wd.indexOf(e.protocol)}function wT(e){var r=_._o(e.Il);return wx(r)&&!wk(r.hostname,"localhost")&&!wk(r.hostname,"theoplayer.doubleclick.net")}var wC,wS,wR=function(){function e(){}return e.wO=function(e){return e===wg.hO?this.RO:e===wg.cO?this.NO:e===wg.$B?this.DO:this.CO},e}();function wL(e){var r=[e.EE,e.PO,e.BO];switch(e.PO){case wS.OO:r.push(e.Sw);break;case wS.LO:r.push(e.vy),r.push(e.Lh);break;case wS.MO:r.push(e.Lh)}return r}
1wR.CO="The license for this player is invalid.",wR.DO="The usage license for this video player has expired.",wR.RO="The current domain is incompatible with the license for this player.",wR.NO="The provided video source is incompatible with the license for this player.",(wU=wS||(wS={}))[wU.OO=1]="OO",wU[wU.LO=4]="LO",wU[wU.MO=5]="MO";for(var w_=Array(256),wP=0;wP<256;wP+=1)w_[wP]=(wP<16?"0":"")+wP.toString(16);function wI(){var e=t0(),r=(0x100000000*b.random()|0)+e&0xb4914e38,s=(0x100000000*b.random()|0)+e&0xd64fc9b9,o=(0x100000000*b.random()|0)+e&0x4361d9ee,u=(0x100000000*b.random()|0)+e&0x4c8caa81;return w_[255&r]+w_[r>>>8&255]+w_[r>>>16&255]+w_[r>>>24&255]+"-"+w_[255&s]+w_[s>>>8&255]+"-"+w_[s>>>16&15|64]+w_[s>>>24&255]+"-"+w_[63&o|128]+w_[o>>>8&255]+"-"+w_[o>>>16&255]+w_[o>>>24&255]+w_[255&u]+w_[u>>>8&255]+w_[u>>>16&255]+w_[u>>>24&255]}function wN(e){return sQ(e.replace(/-/g,""))}var wO=function(){function e(e){this.zB=void 0,this.zB=e}var r=e.prototype;return r.jB=function(e){var r,s,o,u,a,h,c,f=[];if(!e)return"";for(r=0;r<e.length;r+=4)s=(c=this.zB.indexOf(e.charAt(r))<<18|this.zB.indexOf(e.charAt(r+1))<<12|(a=this.zB.indexOf(e.charAt(r+2)))<<6|(h=this.zB.indexOf(e.charAt(r+3))))>>>16&255,o=c>>>8&255,u=255&c,f[r/4]=String.fromCharCode(s,o,u),64===h&&(f[r/4]=String.fromCharCode(s,o)),64===a&&(f[r/4]=String.fromCharCode(s));return f.join("")},r.YB=function(e){var r,s,o,u,a,h,c,f=[],l="";if((h=e.length%3)>0)for(;h++<3;)l+=this.zB.charAt(64),e+="\0";for(h=0;h<e.length;h+=3)s=(r=e.charCodeAt(h)<<16|e.charCodeAt(h+1)<<8|e.charCodeAt(h+2))>>18&63,o=r>>12&63,u=r>>6&63,a=63&r,f[h/3]=this.zB.charAt(s)+this.zB.charAt(o)+this.zB.charAt(u)+this.zB.charAt(a);return(c=f.join("")).slice(0,c.length-l.length)+l},e}();function wD(){return _.xo()}wO.yA=new wO(function(){var e,r,s,o,u=[],a=["object","$","undefined","function","Cannot find module '","MODULE_NOT_FOUND","*","com.widevine.alpha","urn:mpeg:dash:mp4protection:2011","^","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","__proto__","@@iterator","getUTCHours","setUTCFullYear","25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?","SegmentBase","RateChangeEvent","Symbol(","Symbol.",'; codecs="'];for(e=0;e<a.length;e+=1)for(r=a[e],s=0;s<r.length;s+=1)-1===u.indexOf(o=r.charAt(s))&&u.push(o);return u.join("")}()),wO.QB=new wO(wO.yA.jB("aDtm.Dd_DE.4DuN$CeaD $t?FUa0ac'NlYsgU]dU*|sMCON9NL.i'YU M:.LiEb5TLaTOu18F|'v*:s7C41nOMop"));var wU,wM,wF="theoplayer-session-id",wj=/[^\x00-\x7E]/g;function wH(e){return"\\u"+nJ(e.charCodeAt(0).toString(16),4,"0")}function wB(e){var r,s,o,u=(r=[e.xO,e.Dc,e.nO,e.Xb,e.UO,e.FO,e.HO.map(wL)],s=[],JSON.stringify(r,function(e,r){if(te(r)){if(-1!==s.indexOf(r))return null;s.push(r)}return r},o).replace(wj,wH));return wO.QB.YB(u)}var wV=function(){function e(e,r,s,o,u,a){var h=this;void 0===o&&(o=wO.yA),void 0===u&&(u=0),void 0===a&&(a=1),this.XO=[],this.VO=null,this.WO=0,this.qO="unknown",this.GO=0,this.zO=function(){wD()-h.WO>6e4&&h.Zr()},this.jO=function(){h.Zr(!0)},this._R=e,this.ES=r,this.YO=s,this.QO=o,this.ZO=u,this.KO=a,n1.JO(this.jO),v(this.zO,6e4)}var r,s,o,u,a,h,c,f,l=e.prototype;return l.$O=function(){return!!this.UO},r=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.YO.nL();case 2:if(e.sent.aO){e.next=5;break}return e.abrupt("return");case 5:return s={PO:wS.OO,BO:t0(),Sw:r},e.next=8,this.iL(s);case 8:case"end":return e.stop()}},e,this)})),l.tL=function(e){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o={PO:wS.LO,BO:t0(),vy:s,Lh:r},e.next=3,this.iL(o);case 3:case"end":return e.stop()}},e,this)})),l.rL=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s={PO:wS.MO,BO:t0(),Lh:r},e.next=3,this.iL(s);case 3:case"end":return e.stop()}},e,this)})),l.eL=function(e){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(var o;;)switch(e.prev=e.next){case 0:return e.next=2,this.YO.nL();case 2:if(s=e.sent,"a:n[_O*[C4C-N$_@_MYY $D]iOp]N$_-_]th_:c|aen?C:pH"!==this.QO.YB(s.nO)||r.PO===wS.MO){e.next=6;break}return e.abrupt("return");case 6:if(r.PO===wS.OO?this.uL():this.$O()||this.uL(),r.EE=this.GO++,this.XO.push(r),(o=r.PO)!==wS.OO&&o!==wS.MO){e.next=14;break}return e.next=12,this.Zr();case 12:case 17:e.next=19;break;case 14:if(!(this.XO.length>this.ZO)){e.next=19;break}return e.next=17,this.sL();case 19:case"end":return e.stop()}},e,this)}
1)),l.iL=function(e){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:void 0===r&&(r=!1);case 1:if(!(this.XO.length>0)){e.next=6;break}return e.next=4,this.sL(r);case 4:e.next=1;break;case 6:case"end":return e.stop()}},e,this)})),l.Zr=function(){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.YO.nL();case 2:return s=e.sent,e.abrupt("return",{xO:t0(),Dc:function(){if(!wM){var e=oN.qh(wF);e?wM=e:(wM=wI(),oN.Bf(wF,wM))}return wM}(),nO:this.QO.YB(s.nO)||"dev",Xb:this._R,UO:this.VO,FO:this.qO,HO:r});case 4:case"end":return e.stop()}},e,this)})),l.oL=function(e){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===r&&(r=!1),s=this.XO.splice(0,this.KO),e.next=4,this.oL(s);case 4:o=e.sent,r?this.Zl(o):this.aL(o),this.WO=wD();case 7:case"end":return e.stop()}},e,this)})),l.sL=function(){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new hP({Il:"https://license.theoplayer.com",il:s=wB(r),Yl:!1,Al:up.Ku,yl:{"Content-Type":yN.bR},Gl:4e3,ql:hk.POST}),e.prev=2,e.next=5,this.ES.El(o);case 5:return u=e.sent,e.next=8,u.Kd();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),(new Image).src="https://licensing.theoplayer.com/t?"+s;case 13:case"end":return e.stop()}},e,this,[[2,10]])})),l.aL=function(e){return f.apply(this,arguments)},l.Zl=function(e){var r=wB(e);this.ES.Zl({Il:"https://license.theoplayer.com",il:r,$d:yN.bR})},l.uL=function(){this.$O()&&this.Zr(),this.VO=wI(),this.GO=0},l.Kl=function(){n1.hL(this.jO),this.Zr()},M(e,[{key:"HO",get:function(){return this.XO}},{key:"UO",get:function(){return this.VO}}]),e}(),wX=!Q.yu&&!Q.Nu;function wW(e,r,s){var o=e.getImageData(r,s,1,1).data;return 0===o[0]&&0===o[1]&&0===o[2]&&0===o[3]}var wq=function(){function e(e){this.sC=void 0,this._g=void 0,this.cL=void 0,this.sC=e}var r=e.prototype;return r.fL=function(e){if(!e||!e.drawImage)return!1;var r=this.sC.Qm();if(!r)return!1;for(var s=arguments.length,o=Array(s>1?s-1:0),u=1;u<s;u++)o[u-1]=arguments[u];return e.drawImage.apply(e,[r].concat(o)),!0},r.vL=function(e,r,s,o,u,a){if(!e||!e.texImage2D)return!1;var c=this.sC,f=c.Qm();if(!f)return!1;if(!wX){this.cL||(this.cL=h.createElement("canvas"));var l=this.cL,p=l.getContext("2d"),v=c.Ty,d=c.by,g=l.width,m=l.height;p.clearRect(0,0,l.width,l.height),g===v&&m===d||(l.width=v,l.height=d),p.drawImage(f,0,0,v,d);var w=!1;v>0&&wW(p,v-1,0)&&(l.width=g,w=!0),d>0&&wW(p,0,d-1)&&(l.height=m,w=!0),w&&p.drawImage(f,0,0,v,d),f=l}try{e.texImage2D(r,s,o,u,a,f)}catch(e){throw new y("Error trying to render video content to the WebGLRenderingContext. This is most likely due to CORS restrictions. https://support.theoplayer.com/hc/en-us/articles/115003094385#Considerations")}return!0},M(e,[{key:"gg",get:function(){var e;return this._g||(this._g=(e=this,{drawImage:function(r){for(var s=arguments.length,o=Array(s>1?s-1:0),u=1;u<s;u++)o[u-1]=arguments[u];return e.fL.apply(e,[r].concat(o))},texImage2D:function(r,s,o,u,a,h){return e.vL(r,s,o,u,a,h)}}))}}]),e}(),wY=function(e){function r(r,s){var o;return(o=e.call(this,"dL")||this).Lo=r,o.yT=s,o}return j(r,e),r.prototype.wg=function(){return new w$(this.Lo,this.yT)},r}(c0),w$=function(e){function r(r,s){var o;return(o=e.call(this,"dimensionchange")||this).width=r,o.height=s,o}return j(r,e),r}(rX),wJ=function(e,r){this.sp=void 0,this.lL=void 0,this.sp=e,this.lL=r},wQ=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this)._L=void 0,o.gL=0,o.wL=0,o.yL=function(e){if(e.length>0){var r=e[e.length-1].contentRect;o.wL=r.width,o.gL=r.height,o.lL(o.wL,o.gL)}},o._L=new n2.ResizeObserver(o.yL),o._L.observe(o.sp),o}return j(r,e),r.prototype.Kl=function(){this._L.disconnect()},M(r,[{key:"kL",get:function(){return this.gL}},{key:"mL",get:function(){return this.wL}}]),r}(wJ),wG=0;function wK(e){var r=wD(),s=b.max(0,16-(r-wG)),o=l(function(){return e(r+s)},s);return wG=r+s,o}var wz,wZ=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame,w0=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelRequestAnimationFrame;wZ&&w0||(wZ=wK,w0=p),wZ=wZ.bind(o),w0=w0.bind(o);var w1=["Webkit","Moz","O","ms"],w2=function(){var e=!1;try{if(void 0!==n2&&"function"==typeof n2.addEventListener){var r=w.defineProperty({},"passive",{get:function(){e=!0}});n2.addEventListener("testPassiveEventSupport",I,r),n2.removeEventListener("testPassiveEventSupport",I,r)}}catch(e){}return e}(),w3=iM();function w5(e){return w3.has(e)||w3.set(e,function(e){var r=(wz||(wz=n2&&n2.document&&n2.document.createElement("span")),wz);if(!r||!r.style||void 0!==r.style[e])return e;for(var s=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<w1.length;o++){var u=w1[o]+s;if(void 0!==r.style[u])return u}return e}(e)),w3.get(e)}function w4(e){var r=e.style;
1r.position="absolute",r.left=r.right=r.bottom=r.top="0",r.overflow="scroll",r.zIndex="-1",r.visibility="hidden"}function w6(e){var r=e.style;r.position="absolute",r.left=r.top="0",r[w5("transition")]="0s"}var w8=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s)||this).pL=void 0,u.AL=0,u.wL=NaN,u.gL=NaN,u.bL=void 0,u.TL=void 0,u.EL=void 0,u.SL=void 0,u.IL=void 0,u.Yg=function(){u.TL.style.width="100000px",u.TL.style.height="100000px",u.bL.scrollLeft=1e5,u.bL.scrollTop=1e5,u.EL.scrollLeft=1e5,u.EL.scrollTop=1e5,0===u.EL.scrollTop&&wZ(u.Yg)},u.RL=function(){var e=u.mL,r=u.kL;u.lL(e,r),u.wL=e,u.gL=r,u.Yg(),u.AL=0},u.NL=function(){if(!u.AL){var e=u.mL,r=u.kL;e===u.wL&&r===u.gL||(u.AL=wZ(u.RL))}},u.DL=function(){u.IL||(u.IL=l(u.CL,66))},u.CL=function(){u.IL=void 0,u.PL()},u.PL=function(){u.NL()},u.Oc(o),u}j(r,e);var s=r.prototype;return s.BL=function(){var e,r=this.sp,s=h.createElement("div");return this.bL=h.createElement("div"),this.TL=h.createElement("div"),this.EL=h.createElement("div"),this.SL=h.createElement("div"),w4(this.bL),w4(this.EL),w6(this.TL),w6(e=this.SL),e.style.width="200%",e.style.height="200%",s.appendChild(this.bL),s.appendChild(this.EL),this.bL.appendChild(this.TL),this.EL.appendChild(this.SL),r&&r.appendChild(s),this.NL(),this.bL.addEventListener("scroll",this.NL),this.EL.addEventListener("scroll",this.NL),s},s.Oc=function(e){var r,s=this.sp,o=(r="position",a.getComputedStyle(s,void 0).getPropertyValue(r)||s.style[r]);e||"static"!==o||(s.style.position="relative"),this.pL=this.BL(),a&&a.addEventListener("resize",this.DL)},s.Kl=function(){this.pL&&(w0(this.AL),this.AL=0,this.bL.removeEventListener("scroll",this.NL),this.EL.removeEventListener("scroll",this.NL),n9(this.pL),this.pL=void 0,a&&a.removeEventListener("resize",this.DL))},M(r,[{key:"kL",get:function(){return this.sp&&this.sp.getBoundingClientRect().height||this.gL||0}},{key:"mL",get:function(){return this.sp&&this.sp.getBoundingClientRect().width||this.wL||0}}]),r}(wJ),w7=function(e){function r(r){var s;return(s=e.call(this)||this).sp=void 0,s._L=void 0,s.yL=function(e,r){s.yh(new wY(e,r))},s.sp=r,s}j(r,e);var s=r.prototype;return s.Oc=function(e){this._L||("function"==typeof n2.ResizeObserver?this._L=new wQ(this.sp,this.yL):this._L=new w8(this.sp,this.yL,e))},s.Kl=function(){this.Th(),this._L&&(this._L.Kl(),this._L=void 0)},M(r,[{key:"kL",get:function(){return this._L?this._L.kL:0}},{key:"mL",get:function(){return this._L?this._L.mL:0}}]),r}(rB),w9=function(e){function r(){return e.call(this,mn.Pg)||this}return j(r,e),r}(rX),bt=function(){if(h)for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0;r<e.length;r++){var s=e[r];if(s[1]in h)return{OL:s[0],LL:s[1],ML:s[2],xL:s[3],UL:s[4],FL:s[5]}}}(),be=function(e){function r(){return e.call(this,mn.hP)||this}return j(r,e),r}(rX),bn=function(e){function r(s){var o;return(o=e.call(this)||this).sp=void 0,o.fP=void 0,o.cP=!1,o.HL=function(){return o.VP()},o.XL=function(){return o.qP()},o.sp=s,o.fP=r.VL(s),h.addEventListener(bt.UL,o.HL),o.VP(),o}j(r,e),r.VL=function(e){return!!(bt&&h[bt.xL]&&bt.OL in e)};var s=r.prototype;return s.Bp=function(){var e=this.sp[bt.OL]();e&&e.then?e.then(this.HL,this.XL):(h.removeEventListener(bt.FL,this.XL),h.addEventListener(bt.FL,this.XL))},s.Lp=function(){var e=h[bt.LL]();e&&e.then?e.then(this.HL,this.XL):(h.removeEventListener(bt.FL,this.XL),h.addEventListener(bt.FL,this.XL))},s.VP=function(){var e=this.cP,r=this.sp===h[bt.ML];this.cP=r,e!==r&&this.yh(new w9)},s.qP=function(){this.yh(new ma)},s.Kl=function(){this.Th(),h.removeEventListener(bt.UL,this.HL),h.removeEventListener(bt.FL,this.XL)},r}(rB),bi=function(e){function r(s){var o;return(o=e.call(this)||this).sp=void 0,o.fP=void 0,o.cP=!1,o.HL=function(){return o.VP()},o.sp=s,o.fP=r.VL(s),o.sp.addEventListener("webkitbeginfullscreen",o.HL),o.sp.addEventListener("webkitendfullscreen",o.HL),o.sp.addEventListener("webkitpresentationmodechanged",o.HL),o.VP(),o}j(r,e),r.VL=function(e){return Q.yu&&("webkitEnterFullscreen"in e||"webkitSupportsPresentationMode"in e)};var s=r.prototype;return s.Bp=function(){var e=this;this.sp.webkitSupportsPresentationMode&&this.sp.webkitSupportsPresentationMode("fullscreen")?Q.yu?requestAnimationFrame(function(){return e.sp.webkitSetPresentationMode("fullscreen")}):this.sp.webkitSetPresentationMode("fullscreen"):this.sp.webkitEnterFullscreen()},s.Lp=function(){this.sp.webkitSupportsPresentationMode&&this.sp.webkitSupportsPresentationMode("inline")?this.sp.webkitSetPresentationMode("inline"):this.sp.webkitExitFullscreen()},s.VP=function(){var e,r=this.cP;e=this.sp.webkitPresentationMode?"fullscreen"===this.sp.webkitPresentationMode:!!this.sp.webkitDisplayingFullscreen,this.cP=e,r!==e&&this.yh(new w9)},s.Kl=function(){this.Th(),this.sp.removeEventListener("webkitbeginfullscreen",this.HL),this.sp.removeEventListener("webkitendfullscreen",this.HL),this.sp.removeEventListener("webkitpresentationmodechanged",this.HL)},r}(rB),br=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).WL=[],r.qL=void 0,r.UP=!1,r.VP=function(){var e=r.UP,s=r.GL();e!==s&&(r.UP=s,r.yh(new w9))},r}j(r,e);var s=r.prototype;return s.Bp=function(){this.qL?this.qL.Bp():this.yh(new ma)},s.Lp=function(){for(var e=0,r=this.WL;e<r.length;e++){var s=r[e];s.cP&&s.Lp()}},s.zL=function(e){this.qL=e},s.jL=function(e){this.WL.push(e),e.kh(mn.Pg,this.VP),e.kh(mn.mw,this.wh),this.VP()},s.YL=function(e){rc(this.WL,e),e.Eh(mn.Pg,this.VP),e.Eh(mn.mw,this.wh)},s.GL=function(){for(var e=0,r=this.WL;e<r.length;e++)if(r[e].cP)return!0;return!1},s.Yg=function(){this.qL=void 0,this.UP=!1;for(var e=this.WL.slice(),r=0;r<e.length;r++){var s=e[r];this.YL(s),s.Kl()}this.VP()},s.Kl=function(){this.Th(),this.Yg()},M(r,[{key:"fP",get:function(){return!!this.qL&&this.qL.fP}},{key:"cP",get:function(){return this.UP}}]),r}(rB),bs=function(e){function r(r,s){var o;return(o=e.call(this)||this).sC=void 0,o.QL=void 0,o.ZL=void 0,o.KL=!1,o.JL=function(){return o.Ec()},o.VP=function(e){o.KL||o.yh(e)},o.sC=r,o.QL=s,o.ZL=mh,o.$L(),o.sC.kh(ul.zf,o.JL),o.Ec(),o}j(r,e);var s=r.prototype;return s.Bp=function(){this.QL&&this.ZL.Bp()},s.Lp=function(){this.ZL.Lp()},s.$L=function(){this.ZL.kh(mn.Pg,this.VP),this.ZL.kh(mn.mw,this.wh)},s.tM=function(){this.ZL.Eh(mn.Pg,this.VP),this.ZL.Eh(mn.mw,this.wh)},s.Ec=function(){var e=this.ZL,r=this.sC.Zm();if(e!==r){this.KL=!0;var s=this.cP,o=this.fP;s&&this.Lp(),this.tM(),this.ZL=r,this.$L(),s&&!this.cP&&this.fP?this.Bp():this.Lp(),this.KL=!1,o!==this.fP&&this.yh(new be),s!==this.cP&&this.yh(new w9)}},s.Kl=function(){this.Th(),this.tM(),this.sC.Eh(ul.zf,this.JL)},M(r,[{key:"fP",get:function(){return!!this.QL&&this.ZL.fP}},{key:"cP",get:function(){return this.ZL.cP}}]),r}(rB);function bo(e){var r;return{get url(){return e.Il},get method(){return e.ql},get headers(){return r||(r=e.yl.Dv()),r},get body(){return e.il},get useCredentials(){return e.Yl},get type(){return e.Ua},get subType(){return e.zl},get mediaType(){return e.jl},get responseType(){return e.Al}}}var bu,ba=function(){function e(e,r){this.nM=new sG,this.iM=[],this._g=void 0,this.rM=!1,this.h_=void 0,this.eM=0,this.uM=e,this.sM=r}var r,s=e.prototype;return s.Db=function(){this.rM=!0,this.nM.uc(null)},s.oM=function(){this.nM.ac(this.iM)},s.aM=function(e){if(!this.hM)throw new g("Cannot respond more than once");if(!te(e))throw new g("Expected valid response");this.h_=this.cM(e),this.Db()},s.fM=function(){try{var e=this.sM(this.gg);e?this.vM(e):this.dM||this.lM||this.Db()}catch(e){this.oM()}},s.vM=function(e){if(this.lM)throw new y("Request has been redirected or a response already exists");if(ts(e))this._M(e);else{if("function"!=typeof e)throw new g("Expected promise or function");var r=new sG;try{var s=e(function(e){e?r.ac(e):r.uc(void 0)});ts(s)&&r.uc(s)}catch(e){r.ac(e)}this._M(r.ec)}},r=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.eM++,e.next=4,r;case 4:this.eM--,this.dM||this.lM||(this.iM.length?this.oM():this.Db(
1)),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),this.eM--,this.iM.push(e.t0),this.dM||this.lM||this.oM();case 13:case"end":return e.stop()}},e,this,[[0,8]])})),s._M=function(e){return r.apply(this,arguments)},M(e,[{key:"gM",get:function(){return this.nM.ec}},{key:"gg",get:function(){return this._g||(this._g=this.wM()),this._g}},{key:"lM",get:function(){return this.rM}},{key:"hM",get:function(){return!this.rM}},{key:"dM",get:function(){return this.eM>0}},{key:"c_",get:function(){return this.h_}}]),e}(),bh=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s)||this).yM=void 0,u.yM=o,u.fM(),u}j(r,e),r.kM=function(e,r,s){return new hT({Fs:void 0===e.body?s:e.body,El:r.El,Al:r.El.Al,yl:e.headers,wl:e.status,bl:e.statusText,Sl:e.url,Tl:!0},r)};var s=r.prototype;return s.wM=function(){var e,r,s;return s=bo((e=this).El),{get closed(){return!e.hM},get request(){return s},get url(){return e.Il},get status(){return e.wl},get statusText(){return e.bl},get headers(){return r||(r=e.yl.Dv()),r},get body(){return e.il},respondWith:function(r){return e.aM(r)},waitUntil:function(r){return e.vM(r)}}},s.cM=function(e){return r.kM(e,this.uM,this.yM)},M(r,[{key:"il",get:function(){return this.yM}},{key:"yl",get:function(){return this.uM.yl}},{key:"El",get:function(){return this.uM.El}},{key:"c_",get:function(){return this.h_}},{key:"wl",get:function(){return this.uM.wl}},{key:"bl",get:function(){return this.uM.bl}},{key:"Il",get:function(){return this.uM.Sl}}]),r}(ba),bc=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s)||this).mM=void 0,u.pM=void 0,u.pM=o,u.fM(),u}j(r,e);var s=r.prototype;return s.wM=function(){var e,r;return e=this,{get url(){return e.Il},get method(){return e.ql},get headers(){return r||(r=e.yl.Dv()),r},get body(){return e.il},get closed(){return!e.hM},get useCredentials(){return e.Yl},get type(){return e.Ua},get subType(){return e.zl},get mediaType(){return e.jl},get responseType(){return e.Al},redirect:function(r){return e.AM(r)},respondWith:function(r){return e.aM(r)},waitUntil:function(r){return e.vM(r)}}},s.cM=function(e){var r=this.uM.il,s=new hT({Fs:r,yl:{},El:this.uM,Sl:this.uM.Il,Al:this.uM.Al,wl:200,bl:"OK"});return bh.kM(e,s,r)},s.AM=function(e){var r,s;if(!this.hM)throw new g("Cannot redirect, already redirected or has a response");r=ti(e)?{url:e}:e,this.mM=(s=this.uM,new hP({Il:void 0===r.url?s.Il:r.url,ql:void 0!==r.method?function(e){switch(e.toUpperCase()){case"POST":return hk.POST;case"PUT":return hk.PUT;case"DELETE":return hk.DELETE;case"HEAD":return hk.HEAD;case"OPTIONS":return hk.OPTIONS;default:return hk.GET}}(r.method):void 0,yl:r.headers,il:r.body,Yl:r.useCredentials,Ua:void 0!==r.type?function(e){switch(e.toLowerCase()){case"manifest":return hE.Dl;case"segment":return hE.Cl;case"content-protection":return hE.Pl;default:return hE.Nl}}(r.type):void 0,zl:void 0!==r.subType?function(e){switch(e.toLowerCase()){case"initialization-segment":return hA.Bl;case"fairplay-license":return hA.Ol;case"fairplay-certificate":return hA.Ll;case"widevine-license":return hA.Ml;case"widevine-certificate":return hA.xl;case"playready-license":return hA.Ul;case"clearkey-license":return hA.Fl;case"aes128-key":return hA.Hl;default:return hA.Nl}}(r.subType):void 0,jl:void 0!==r.mediaType?function(e){switch(e.toLowerCase()){case"audio":return hx.Xl;case"video":return hx.Vl;case"text":return hx.Ku;case"image":return hx.Wl;default:return hx.Nl}}(r.mediaType):void 0,Al:void 0!==r.responseType?function(e){switch(e.toLowerCase()){case"arraybuffer":return up.Iv;case"json":return up.Rv;case"stream":return up.Nv;default:return up.Ku}}(r.responseType):void 0},s)),this.Db()},M(r,[{key:"il",get:function(){return this.uM.il}},{key:"hM",get:function(){return this.pM&&!this.rM}},{key:"yl",get:function(){return this.uM.yl}},{key:"ql",get:function(){return this.uM.ql}},{key:"bM",get:function(){return this.mM}},{key:"c_",get:function(){return this.h_}},{key:"Al",get:function(){return this.uM.Al}},{key:"Gl",get:function(){return this.uM.Gl}},{key:"dh",get:function(){return this.uM.dh}},{key:"Ua",get:function(){return this.uM.Ua}},{key:"zl",get:function(){return this.uM.zl}},{key:"jl",get:function(){return this.uM.jl}},{key:"Il",get:function(){return this.uM.Il}},{key:"Yl",get:function(){return this.uM.Yl}},{key:"Ql",get:function(){return this.uM.Ql}}]),r}(ba),bf=function(e){function r(r,s){void 0===s&&(s=!0);var o,u=new bl(r);return(o=e.call(this,u,s)||this).TM=void 0,o.TM=u,o}j(r,e);var s=r.prototype;
1return s.EM=function(e){this.TM.EM(e)},s.SM=function(e){this.TM.SM(e)},s.IM=function(e){this.TM.IM(e)},s.RM=function(e){this.TM.RM(e)},s.NM=function(e){this.TM.NM(e)},r}(hN),bl=function(){function e(e){this.Jl=void 0,this.DM=[],this.CM=[],this.Jl=e}var r,s,o,u,a=e.prototype;return r=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.PM(r,r.dh);case 3:s=e.sent,e.next=13;break;case 6:if(e.prev=6,e.t0=e.catch(0),!(e.t0 instanceof hO)){e.next=12;break}return e.next=11,this.BM(e.t0,r.dh);case 11:return e.abrupt("return",e.sent);case 12:throw e.t0;case 13:return e.next=15,this.OM(s,r.dh);case 15:if(!hw(s=e.sent)){e.next=20;break}return e.abrupt("return",s);case 20:throw new hU(s);case 21:case"end":return e.stop()}},e,this,[[0,6]])})),a.El=function(e){return r.apply(this,arguments)},a.Zl=function(e){return this.Jl.Zl(e)},s=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:rT(s),o=r,a=0,h=this.DM.slice();case 3:if(!(a<h.length)){e.next=21;break}if(c=h[a],rT(s),(f=new bc(o,c,!u)).lM){e.next=17;break}return e.prev=8,e.next=11,f.gM;case 11:e.next=17;break;case 13:return e.prev=13,e.t0=e.catch(8),e.abrupt("continue",18);case 17:f.bM&&!u?o=f.bM:f.c_&&!u&&(u=f.c_);case 18:a++,e.next=3;break;case 21:if(!u){e.next=23;break}return e.abrupt("return",u);case 23:return e.abrupt("return",this.Jl.El(o));case 24:case"end":return e.stop()}},e,this,[[8,13]])})),a.PM=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=r instanceof hU?r.c_:new hT({Fs:null,El:r.El,wl:0,bl:""}),e.next=3,this.OM(o,s);case 3:if((u=e.sent)!==o){e.next=8;break}throw r;case 8:if(!hw(u)){e.next=12;break}return e.abrupt("return",u);case 12:throw new hU(u);case 13:case"end":return e.stop()}},e,this)})),a.BM=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=r,u=0,a=this.CM.slice();case 2:if(!(u<a.length)){e.next=23;break}return h=a[u],rT(s),e.next=7,P.resolve(o.tc().Fs(s));case 7:if(c=e.sent,(f=new bh(o,h,c)).lM){e.next=19;break}return e.prev=10,e.next=13,f.gM;case 13:e.next=19;break;case 15:return e.prev=15,e.t0=e.catch(10),e.abrupt("continue",20);case 19:o=f.c_||o;case 20:u++,e.next=2;break;case 23:return e.abrupt("return",o);case 24:case"end":return e.stop()}},e,this,[[10,15]])})),a.OM=function(e,r){return u.apply(this,arguments)},a.EM=function(e){this.DM.unshift(e)},a.SM=function(e){this.DM.push(e)},a.IM=function(e){rc(this.DM,e)},a.RM=function(e){this.CM.unshift(e)},a.NM=function(e){rc(this.CM,e)},a.Kl=function(){this.Jl.Kl(),rv(this.DM),rv(this.CM)},e}(),bp=function(e){function r(r,s,o){var u;return(u=e.call(this,s)||this)._g=void 0,u.LM=r,u.ES=s,u.pP=o,u.LM.kh(ul.Jf,u.wh),u.LM.kh(ul.Kf,u.wh),u}j(r,e);var s=r.prototype;return s.MM=function(e){this.pP.MM(e)},s.EM=function(e){this.ES.EM(e)},s.IM=function(e){this.ES.IM(e)},s.RM=function(e){this.ES.RM(e)},s.NM=function(e){this.ES.NM(e)},s.Kl=function(){this.Th(),this.LM.Eh(ul.Jf,this.wh),this.LM.Eh(ul.Kf,this.wh)},M(r,[{key:"gg",get:function(){var e;return this._g||(this._g=(e=this,{get online(){return e.lp},get estimator(){var r;return r=e.xM,{get bandwidth(){return r.QN},get roundTripTime(){return r.ZN}}},setEstimator:function(r){e.MM(function(e){if(e)return{get QN(){return ff(e.bandwidth)},get ZN(){return ff(e.roundTripTime)},YN:function(r){var s=e.createMeasurer(bo(r));return s?{UM:function(e){s.markRequestStart(e)},FM:function(e){s.markResponseStart(e)},HM:function(e,r){s.markResponseData(e,r)},XM:function(e){s.markResponseEnd(e)}}:void 0}}}(r))},addRequestInterceptor:function(r){e.EM(r)},removeRequestInterceptor:function(r){e.IM(r)},addResponseInterceptor:function(r){e.RM(r)},removeResponseInterceptor:function(r){e.NM(r)},addEventListener:function(r,s){e.kh(r,s)},removeEventListener:function(r,s){e.Eh(r,s)}})),this._g}},{key:"lp",get:function(){return this.LM.lp}},{key:"xM",get:function(){return this.pP.xM}}]),r}(f_);function bv(e,r,s,o,u,a){var h=[],c=e-b.max(a,1),f=e+u;if(r&&s){var l=tJ(s,1,5);c=b.min(c,r-l),f=b.max(f,r+s+l)}return 0!==c&&o.ZC(0,c)&&h.push([0,c]),o.ZC(f,1/0)&&h.push([f,1/0]),h}(bM=bu||(bu={}
1)).PERFORMANCE="performance",bM.QUALITY="quality",bM.BANDWIDTH="bandwidth";var bd={type:bu.BANDWIDTH};function by(e){switch(e){case"bandwidth":return bu.BANDWIDTH;case"performance":return bu.PERFORMANCE;case"quality":return bu.QUALITY}}var bg=function(e){function r(r){var s;return(s=e.call(this,"WM")||this).VM=r,s}return j(r,e),r}(rX),bm=function(e){function r(r){var s;return(s=e.call(this,"GM")||this).qM=r,s}return j(r,e),r}(rX),bw=function(e){function r(r){var s;return(s=e.call(this,"jM")||this).zM=r,s}return j(r,e),r}(rX),bb=function(e){function r(){for(var r,s,o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return(r=e.call.apply(e,[this].concat(u))||this)._g=(s=t8(r),{get strategy(){var h;return{metadata:(h=s.qM).metadata,type:h.type}},set strategy(t){var c,f,l,p;p=fr(bd),ti(t)?p.type=by(t):te(t)&&function(e){switch(e){case bu.PERFORMANCE:case bu.QUALITY:case bu.BANDWIDTH:return!0;default:return!1}}(t.type)&&(p.type=by(t.type)),te(t)&&te(t.metadata)&&(c=t.metadata,f={},A(l=fc(c.bitrate))||(f.bitrate=l),p.metadata=f),s.qM=p},get targetBuffer(){return s.VM},set targetBuffer(t){var v=fc(t);A(v)||(s.VM=v>60?60:v)},get bufferLookbackWindow(){return s.zM},set bufferLookbackWindow(t){var d=fc(t);A(d)||(s.zM=d<=0?30:d)}}),r.YM=bd,r.QM=20,r.ZM=30,r.KM=void 0,r.JM=void 0,r}j(r,e);var s=r.prototype;return s.iI=function(e){this.JM=e},s.MM=function(e){this.KM=e},M(r,[{key:"$M",get:function(){switch(this.YM.type){case bu.PERFORMANCE:return 0;case bu.QUALITY:return 1/0;case bu.BANDWIDTH:return this.YM.metadata&&void 0!==this.YM.metadata.bitrate?this.YM.metadata.bitrate:8*fO.Uw();default:return 8*fO.Uw()}}},{key:"gg",get:function(){return this._g}},{key:"qM",get:function(){return this.YM},set:function(e){this.YM=e,this.yh(new bm(e))}},{key:"VM",get:function(){return this.QM},set:function(e){this.QM=e,this.yh(new bg(e))}},{key:"zM",get:function(){return this.ZM},set:function(e){this.ZM=e,this.yh(new bw(e))}},{key:"xM",get:function(){var e;return null!=(e=this.KM)?e:this.JM.GD}}]),r}(rB),bk=function(e){function r(){return e.call(this,"Bg")||this}return j(r,e),r.prototype.wg=function(){return new bE},r}(c0),bE=function(e){function r(){return e.call(this,"change")||this}return j(r,e),r}(rX),bA=function(e){function r(r,s){var o;return(o=e.call(this,s)||this).tx=void 0,o.nx=function(e){e&&e.gg&&rI(function(){o.yh(e.gg)})},o.tx=r,o.tx.Ah(o.nx),o}return j(r,e),r.prototype.Kl=function(){this.Th(),this.tx.Rh(this.nx)},r}(f_),bx=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r}(bA),bT=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).Yp=0,r.Qp=1/0,r._g=void 0,r}j(r,e);var s=r.prototype;return s.Yg=function(){0===this.Yp&&this.Qp===1/0||(this.Yp=0,this.Qp=1/0,this.yh(new bk))},s.ix=function(){return new mo([this.xp,this.Up],[!0,!0])},M(r,[{key:"xp",get:function(){return this.Yp},set:function(e){if(this.Up<=e)throw new y("Start time of a clip should be smaller than the end time.");this.Yp!==e&&(this.Yp=e,this.yh(new bk))}},{key:"Up",get:function(){return this.Qp},set:function(e){if(e<=this.xp)throw new y("End time of a clip should be larger than the start time.");this.Qp!==e&&(this.Qp=e,this.yh(new bk))}},{key:"gg",get:function(){var e,r,s;return this._g||(this._g=(s={get startTime(){return e.xp},set startTime(n){e.xp=n},get endTime(){return e.Up},set endTime(n){e.Up=n},addEventListener:function(e,s){r.kh(e,s)},removeEventListener:function(e,s){r.Eh(e,s)}},r=new bA(e=this,s),s)),this._g}}]),r}(f_),bC=function(e){function r(r){var s;return(s=e.call(this)||this).ex=function(e){s.ux(e)||s.yh(e)},s.sx=r,s.sx.Ah(s.ex),s}j(r,e);var s,o=r.prototype;return o.ox=function(){return this.sx.Pm},o.Km=function(){return this.sx.Km()},o.ax=function(){return this.sx.rp},o.hx=function(){return this.sx.np},o.vx=function(){return this.sx.ep},o.lx=function(e){this.sx.ep=e},o._x=function(){return this.sx.vy},o.gx=function(e){this.sx.vy=e},o.wx=function(){return this.sx.ly},o.yx=function(){return this.sx.sp},o.kx=function(){return this.sx._y},o.mx=function(){return this.sx.Lh},o.Ax=function(){return this.sx.gy},o.bx=function(){return this.sx.op},o.Tx=function(){return this.sx.wy},o.Ex=function(e){this.sx.wy=e},o.Sx=function(){return this.sx.lp},o.Ix=function(){return this.sx.yy},o.Rx=function(){return this.sx.py},o.Nx=function(e){this.sx.py=e},o.Dx=function(){return this.sx._p},o.Cx=function(){return this.sx.gp},o.Px=function(e){this.sx.gp=e},o.Bx=function(){return this.sx.bw},o.Ox=function(){return this.sx.wp},o.Lx=function(){return this.sx.Ay},o.Fm=function(){return this.sx.Fm()},s=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(s),e.next=3,this.sx.Hm(r,s);case 3:case"end":return e.stop()}},e,this)})),o.Hm=function(e,r){return s.apply(this,arguments)},o.Mx=function(){return this.sx.Om},o.xx=function(){return this.sx.by},o.Ux=function(){return this.sx.Bm},o.Fx=function(){return this.sx.Ty},o.Hx=function(){return this.sx.Ey},o.Xx=function(e){this.sx.Ey=e},o.Zm=function(){return this.sx.Zm()},o.Qm=function(){return this.sx.Qm()},o.Gm=function(e){this.sx.Gm(e)},o.zm=function(){this.sx.zm()},o.Ym=function(){this.sx.Ym()},o.qm=function(){this.sx.qm()},o.xm=function(){this.sx.xm()},o.Mm=function(){this.sx.Mm()},o.jm=function(){this.sx.jm()},o.Um=function(){return this.sx.Um()},o.Xm=function(){return this.sx.Xm()},o.Vm=function(){this.sx.Vm()},o.Wm=function(){this.sx.Wm()},o.Yg=function(){return this.sx.Yg()},o.Kl=function(){return this.sx.Kl()},o.ip=function(){this.sx.ip()},o.Jm=function(e){return this.sx.Jm(e)},o.ux=function(e){return!1},M(r,[{key:"Pm",get:function(){return this.ox()}},{key:"rp",get:function(){return this.ax()}},{key:"ep",get:function(){return this.vx()},set:function(e){this.lx(e)}},{key:"np",get:function(){return this.hx()}},{key:"vy",get:function(){return this._x()},set:function(e){this.gx(e)}},{key:"ly",get:function(){return this.wx()}},{key:"sp",get:function(){return this.yx()}},{key:"_y",get:function(){return this.kx()}},{key:"Lh",get:function(){return this.mx()}},{key:"gy",get:function(){return this.Ax()}},{key:"Lm",get:function(){return this.sx.Lm}},{key:"op",get:function(){return this.bx()}},{key:"ym",get:function(){return this.sx.ym}},{key:"wy",get:function(){return this.Tx()},set:function(e){this.Ex(e)}},{key:"lp",get:function(){return this.Sx()}},{key:"yy",get:function(){return this.Ix()}},{key:"py",get:function(){return this.Rx()},set:function(e){this.Nx(e)}},{key:"_p",get:function(){return this.Dx()}},{key:"gp",get:function(){return this.Cx()},set:function(e){this.Px(e)}},{key:"bw",get:function(){return this.Bx()}},{key:"wp",get:function(){return this.Ox()}},{key:"Ay",get:function(){return this.Lx()}},{key:"Om",get:function(){return this.Mx()}},{key:"by",get:function(){return this.xx()}},{key:"Bm",get:function(){return this.Ux()}},{key:"Ty",get:function(){return this.Fx()}},{key:"Ey",get:function(){return this.Hx()},set:function(e){this.Xx(e)}}]),r}(fP),bS=function(e){function r(s,o){var u;return(u=e.call(this,s)||this).Vx=void 0,u.Wx=!1,u.qx=void 0,u.Gx=!1,u.zx=function(){u.jx(),u.Yx()},u.oD=function(){u.Qx(),u.Yx(),u.Zx&&u.vy>=u.Vx.Up-r.Kx&&!u._y&&(u.qx=wZ(u.oD))},u.Jx=function(){u.Gx=!0},u.$x=function(){u.Gx&&(u.Gx=!1,u.Yx())},u.Vx=o,u.Vx.kh("Bg",u.zx),u.sx.kh("timeupdate",u.oD),u}j(r,e);var s,o=r.prototype;return o.gx=function(r){var s=this.Vx.ix().LC(r);e.prototype.gx.call(this,s),this.Yx()},o.kx=function(){return e.prototype.kx.call(this)||this.Wx},o.Ox=function(){return mo.uP(e.prototype.Ox.call(this)).UC(this.Vx.ix()).XD()},o.Mm=function(){this.kx()?this.gx(this.tU.start(0)):this.jx(),e.prototype.Mm.call(this),this.Yx()},s=P.coroutine(iO.mark(function r(s,o){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return rT(o),this.Wx=!1,this.Vx.Yg(),r.next=5,e.prototype.Hm.call(this,s,o);case 5:case"end":return r.stop()}},r,this)})),o.Hm=function(e,r){return s.apply(this,arguments)},o.Kl=function(){return this.Vx.Eh("Bg",this.zx),this.sx.Eh("timeupdate",this.oD),this.Qx(),e.prototype.Kl.call(this)},o.ux=function(r){switch(r.type){case"seeking":return this.yh(r),this.Jx(),!0;case"seeked":case"emptied":return this.yh(r),this.$x(),!0;case"ended":if(this.Zx)return!0}return e.prototype.ux.call(this,r)},o.Qx=function(){this.qx&&(w0(this.qx),this.qx=void 0)},o.Yx=function(){var e=this.vy,s=this.Zx&&e>=this.Vx.Up-r.Hk;this.Wx&&!s?(this.Wx=!1,this.yy&&this.Mm()):this.Wx||!s||this.Ay||this.Gx||(this.Wx=!0,this.yh(new lc(e)),this.xm())},o.jx=function(){if(this.ly!==1/0){var e=this.tU,s=mo.uP(e).LC(this.vy);tQ(this.vy,s,r.Hk)||this.gx(s)}},M(r,[{key:"tU",get:function(){return this.Ox().length?this.Ox():this.Vx.ix().XD()}},{key:"Zx",get:function(){return this.Vx.Up<this.ly}}]),r}(bC);bS.Kx=1,bS.Hk=.001;var bR=function(){function e(){this.nU=void 0,this.nU=!1}return M(e,[{key:"iU",get:function(){return this.nU},set:function(e){this.nU=e}}]),e}(),bL=function(e){function r(r,s){var o;return(o=e.call(this,r)||this).nU=void 0,o.rU=!1,o.eU=!1,o.nU=s,o}j(r,e);var s=r.prototype;return s.kx=function(){return!this.nU.iU&&e.prototype.kx.call(this)}
1,s.xm=function(){this.eU=!0,e.prototype.xm.call(this)},s.Mm=function(){this.eU=!1,e.prototype.Mm.call(this)},s.ux=function(r){if(this.nU.iU)switch(r.type){case"ended":return this.vy=0,this.eU||(this.Ay?this.rU=!0:this.Mm()),!0;case"seeked":this.rU&&(this.rU=!1,this.Mm());break;case"pause":if(this.rU||e.prototype.kx.call(this))return!0}return e.prototype.ux.call(this,r)},r}(bC),b_=function(){function e(e){var r;this._g=(r=this,{get currentBandwidthEstimate(){return r.fp},get corruptedVideoFrames(){return r.hp},get droppedVideoFrames(){return r.ap},get totalBytesLoaded(){return r.vp},get bufferedSegments(){return r.dp}}),this.dC=e}return M(e,[{key:"gg",get:function(){return this._g}},{key:"hp",get:function(){return this.dC.uU.ym.hp}},{key:"fp",get:function(){return this.dC.uU.ym.fp}},{key:"ap",get:function(){return this.dC.uU.ym.ap}},{key:"sU",get:function(){throw new y("Not implemented")}},{key:"oU",get:function(){throw new y("Not implemented")}},{key:"vp",get:function(){return this.dC.uU.ym.vp}},{key:"cp",get:function(){return this.dC.uU.ym.cp}},{key:"dp",get:function(){return this.dC.uU.ym.dp}}]),e}();function bP(e){return e&&il(e)?{ap:e?"function"==typeof e.getVideoPlaybackQuality?e.getVideoPlaybackQuality().droppedVideoFrames:e.webkitDroppedFrameCount||0:0,hp:e&&"function"==typeof e.getVideoPlaybackQuality&&e.getVideoPlaybackQuality().corruptedVideoFrames||0,cp:"function"==typeof e.getVideoPlaybackQuality?e.getVideoPlaybackQuality().totalVideoFrames:e.webkitDecodedFrameCount||0}:{ap:0,hp:0,cp:0,fp:0,vp:0,dp:{amountOfBufferedAudioSegments:0,amountOfBufferedVideoSegments:0}}}var bI=function(e){function r(){return e.call(this,"aU")||this}return j(r,e),r.prototype.wg=function(){return new bN},r}(c0),bN=function(e){function r(){return e.call(this,"castingchange")||this}return j(r,e),r}(rX),bO=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).hU=[],r._g=void 0,r.cU=function(){return r.yh(new bI)},r}j(r,e);var s=r.prototype;return s.fU=function(e){this.hU.push(e),e.kh("statechange",this.cU)},s.Kl=function(){var e=this;this.hU.forEach(function(r){r.Eh("statechange",e.cU)}),rv(this.hU)},M(r,[{key:"vU",get:function(){return this.hU.some(function(e){return e.vU})}},{key:"gg",get:function(){var e,r,s;return this._g||(this._g=(s={get casting(){return e.vU},addEventListener:function(e,s){r.kh(e,s)},removeEventListener:function(e,s){r.Eh(e,s)}},r=new bx(e=this,s),s)),this._g}}]),r}(fP),bD=function(){var r;function s(){}return r=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o=new hP({Il:r,Al:up.Ku,ql:hk.GET}),e.next=4,s.El(o);case 4:return u=e.sent,e.next=7,u.Fs();case 7:return e.abrupt("return",e.sent);case 10:return e.prev=10,e.t0=e.catch(0),rx(e.t0),e.abrupt("return",void 0);case 14:case"end":return e.stop()}},e,null,[[0,10]])})),s.dU=function(e,s){return r.apply(this,arguments)},s.lU=function(r){try{var s=function(e){try{var r,s,o,u,a,h,c,f,l,p,v,d=mG.QB.jB(e),g=JSON.parse(d);if(r=g,o="object"==typeof r&&null!==r,u=mK(r.key),a=mK(r.customer_id),h=mz(r.generation_date),c=mz(r.expiration_date),f=wa(r.domains_page,mK),l=wa(r.domains_source,mK),p=wa(r.sdks,wl),v=(s=r.send_impression,"boolean"==typeof s),!o||!u||!a||!h||!c||!f||!l||!p||!v)throw new y("The provided license could not be decoded correctly.");return g}catch(e){throw new y("The provided license could not be decoded correctly.")}}(r);return new wm(s.key,s.domains_page,s.domains_source,s.expiration_date,s.customer_id,s.generation_date,s.sdks,s.send_impression)}catch(r){throw new om(e.ErrorCode.LICENSE_ERROR,"Invalid license. No valid license was configured.")}},s._U=function(e){return void 0===e&&(e=wO.yA),_.Wo("The baked-in license is used. Please update the configuration with your license."),new wm(e.jB("F2b-iL'[FL[S"),["F$(:_L50F|aY"].map(function(r){return e.jB(r)}),['.$hsF|b9_Ess*rS:F]Y"'].map(function(r){return e.jB(r)}),Number(new Date(Number(e.jB('COD|aHpHa:p3Ceo3Co""')))))},s.convertLicenseToDummyLicense=function(e){return new wm(e.nO,e.iO,e.rO,864e13,e.uO,Date.now(),e.oO,e.aO)},s}(),bU=function(){function e(){}return e.Of=function(){return e.ju||(e.ju=bH.qc()?new bH:new oI),e.ju},e.Yh=function(r){e.Of().Yh(r)},e.Pf=function(){e.Of().Pf()},e.qh=function(r){return e.Of().qh(r)}
1,e.Bf=function(r,s){e.Of().Bf(r,s)},e.gU=function(r){var s=e.qh(r);if(void 0!==s)return E(s)},e.wU=function(r){return"true"===e.qh(r)},e}();bU.ju=void 0;var bM,bF,bj,bH=function(e){function r(){return e.apply(this,arguments)||this}j(r,e),r.qc=function(){try{return o.localStorage.setItem("foobar","foobar"),o.localStorage.removeItem("foobar"),!0}catch(e){}return!1};var s=r.prototype;return s.Yh=function(e){o.localStorage.removeItem(e)},s.Pf=function(){o.localStorage.clear()},s.qh=function(e){return o.localStorage[e]},s.Bf=function(e,r){o.localStorage[e]=r},r}(bU),bB=b.floor(0xdbb9ff*b.random()-72e5),bV=function(){function r(e,r,s,o,u,a){this.fO=void 0,this.ES=e,this.yU=r,this.kU=s,this.YO=o,this.mU=u,this.lO=a,this.fO=wT(a)}var s,o,u,a,h=r.prototype;return s=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.AU(this.mU.license,this.mU.licenseUrl);case 2:r=e.sent,this.YO.bU(r);case 4:case"end":return e.stop()}},e,this)})),h.pU=function(){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function r(s,o){var u,a,h,c,f,l,p,v,d;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(u=o,s?a=bD.lU(s):u||(a=bD._U()),u||(u="https://validate.theoplayer.com/1/"+a.nO),h=this.TU(),!a||(c=this.yU.yO(a))!==wv.JB){r.next=14;break}if(!this.EU(a.eO)||!this.EU(null==h?void 0:h.eO)){r.next=13;break}return r.next=10,this.SU(u);case 10:if(!(f=r.sent)){r.next=13;break}return r.abrupt("return",f);case 13:return r.abrupt("return",a);case 14:if(!h){r.next=25;break}if(this.yU.yO(h)!==wv.JB){r.next=24;break}if(!this.EU(null==h?void 0:h.eO)){r.next=23;break}return r.next=20,this.SU(u);case 20:if(!(l=r.sent)){r.next=23;break}return r.abrupt("return",l);case 23:return r.abrupt("return",h);case 24:bU.Yh("THEOplayer.license");case 25:return r.next=27,bD.dU(u,this.ES);case 27:if(!(p=r.sent)){r.next=37;break}if(v=bD.lU(p),this.yU.yO(v)!==wv.JB){r.next=34;break}return bU.Bf("THEOplayer.license",p),r.abrupt("return",v);case 34:bU.Yh("THEOplayer.license"),r.next=39;break;case 37:if(this.fO||!a||c!==wv.$B||u!=="https://validate.theoplayer.com/1/"+a.nO){r.next=39;break}return r.abrupt("return",bD.convertLicenseToDummyLicense(a));case 39:if(!a&&!v){r.next=43;break}this.IU(null!=(d=a)?d:v,new om(e.ErrorCode.LICENSE_ERROR,"The given license is invalid!")),r.next=44;break;case 43:throw new om(e.ErrorCode.LICENSE_ERROR,"The given license is invalid!");case 44:case"end":return r.stop()}},r,this)})),h.AU=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.YO.nL();case 2:if(s=e.sent,!this.EU(s.eO)){e.next=9;break}return u=null!=(o=this.mU.licenseUrl)?o:"https://validate.theoplayer.com/1/"+s.nO,e.next=7,this.SU(u);case 7:(a=e.sent)&&(this.YO.bU(a),s=a);case 9:if(e.prev=9,(h=this.yU.yO(s))!==wv.tO){e.next=16;break}throw new om(wb(c=wg.hO),wR.wO(c));case 16:if(h!==wv.$B){e.next=19;break}throw new om(wb(f=wg.$B),wR.wO(f));case 19:this.yU._O(r,s),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(9),this.RU(e.t0);case 25:case"end":return e.stop()}},e,this,[[9,22]])})),h._O=function(e){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,bD.dU(r,this.ES);case 3:if(void 0!==(s=e.sent)){e.next=6;break}return e.abrupt("return",void 0);case 6:if(o=bD.lU(s),this.yU.yO(o)!==wv.JB){e.next=11;break}return bU.Bf("THEOplayer.license",s),e.abrupt("return",o);case 11:return e.abrupt("return",void 0);case 14:return e.prev=14,e.t0=e.catch(0),e.abrupt("return",void 0);case 17:case"end":return e.stop()}},e,this,[[0,14]])})),h.SU=function(e){return a.apply(this,arguments)},h.EU=function(e){return!e||Number(new Date)+2592e5+bB>=e},h.TU=function(){var e=bU.qh("THEOplayer.license");if(e)return bD.lU(e)},h.IU=function(e,r){this.YO.bU(e),this.RU(r)},h.RU=function(e){throw tk(e.message),this.kU.eL(e.message),e},r}(),bX=function(){function e(){this.NU=void 0,this.DU=new sG}var r,s=e.prototype;return s.bU=function(e){this.NU=e,this.DU.uc()},r=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.NU){e.next=2;break}return e.abrupt("return",P.resolve(this.NU));case 2:return e.next=4,this.DU.ec;case 4:return e.abrupt("return",this.NU);case 5:case"end":return e.stop()}},e,this)})),s.nL=function(){return r.apply(this,arguments)},M(e,[{key:"CU",get:function(){return this.NU}}]),e}(),bW=function(e){function r(){return e.call(this,"Bg")||this}return j(r,e),r.prototype.wg=function(){return new bq},r}(c0),bq=function(e){function r(){return e.call(this,"change")||this}return j(r,e),r}(rX),bY={PU:void 0,BU:void 0,OU:void 0,LU:void 0,MU:void 0,xU:void 0,UU:void 0},b$="THEOplayer.textTrackStyle.",bJ=function(e){function r(){var s;return(s=e.call(this)||this).FU=void 0,s._g=void 0,s.FU=r.HU(),s}return j(r,e),r.prototype.Ec=function(e){this.FU=iD({},this.FU,e),r.XU(this.FU),this.yh(new bW)},r.HU=function(){var e=iD({},bY);return e.PU=bU.qh(b$+"fontFamily")||e.PU,e.BU=bU.qh(b$+"fontColor")||e.BU,e.OU=bU.qh(b$+"fontSize")||e.OU,e.LU=bU.qh(b$+"backgroundColor")||e.LU,e.MU=bU.qh(b$+"windowColor")||e.MU,e.xU=bU.qh(b$+"edgeStyle")||e.xU,e},r.XU=function(e){bU.Bf(b$+"fontFamily",e.PU||""),bU.Bf(b$+"fontColor",e.BU||""),bU.Bf(b$+"fontSize",e.O
1U||""),bU.Bf(b$+"backgroundColor",e.LU||""),bU.Bf(b$+"windowColor",e.MU||""),bU.Bf(b$+"edgeStyle",e.xU||"")},M(r,[{key:"VU",get:function(){return this.FU}},{key:"PU",get:function(){return this.FU.PU},set:function(e){this.Ec({PU:e})}},{key:"BU",get:function(){return this.FU.BU},set:function(e){this.Ec({BU:e})}},{key:"OU",get:function(){return this.FU.OU},set:function(e){this.Ec({OU:e})}},{key:"LU",get:function(){return this.FU.LU},set:function(e){this.Ec({LU:e})}},{key:"MU",get:function(){return this.FU.MU},set:function(e){this.Ec({MU:e})}},{key:"xU",get:function(){return this.FU.xU},set:function(e){this.Ec({xU:e})}},{key:"UU",get:function(){return this.FU.UU}},{key:"gg",get:function(){var e,r,s;return this._g||(this._g=(e=this,r=new rV(s={get fontFamily(){return e.PU},set fontFamily(n){e.PU=n},get fontColor(){return e.BU},set fontColor(n){e.BU=n},get fontSize(){return e.OU},set fontSize(n){e.OU=n},get backgroundColor(){return e.LU},set backgroundColor(n){e.LU=n},get windowColor(){return e.MU},set windowColor(n){e.MU=n},get edgeStyle(){return e.xU},set edgeStyle(n){e.xU=n},addEventListener:function(e,s){var o=fp(e,fl);r.kh(o,s)},removeEventListener:function(e,s){var o=fp(e,fl);r.Eh(o,s)}}),e.kh(["Bg"],function(e){return r.yh(e.gg)}),s)),this._g}}]),r}(rB),bQ=function(e){function r(r,s){(o=e.call(this)||this).WU=void 0,o.iE=void 0,o.uU=void 0,o.qU=void 0,o.hg=void 0,o.Vx=void 0,o.nU=void 0,o.GU=void 0,o.zU=void 0,o.pP=void 0,o.yU=void 0,o.jU=void 0,o.YU=void 0,o.mP=void 0,o.QU=!1,o.Em=!1,o.bp=void 0,o.ZU=!1,o.KU=void 0,o.JU=void 0,o.$U=void 0,o.tF=void 0,o.nF=void 0,o.iF=function(e){if(!o.ZU){o.ZU=!0;var r=o.WU,s=l1(e);o.uU.ew=new ml(o.sp,s,e),rN(r.Kl())}},o.rF=function(e){o.yh(e.gg)},o.eF=function(e){e.type!==ul.Jf&&e.type!==ul.Kf&&o.yh(e)};var o,u=fc(s.uid);A(u)?o.bp=pe++:o.bp=u,o.iE=s;var a=_.hg,h=new bX;o.qU=new wV("2.87.0",a,h),o.hg=new bf(a,s.allowMixedContent),o.pP=new bb,o.yU=new ww(s.isEmbeddable,"2.87.0",wp()),o.nF=new bV(a,o.yU,o.qU,h,s,wp()),o.nF.pU().catch(o.iF),o.jU=new w7(r),o.jU.kh("dL",o.rF),o.mP=new bJ,o.Vx=new bT,o.nU=new bR;var c=new mf(r,s,o.hg,o.pP,o.jU,o.mP);o.pP.iI(c);var f=c;f=new bL(f=new bS(f,o.uF),o.iU),o.WU=f,o.uU=new lK(o.WU),o.uU.Ah(o.eF),o.tF=new b_(t8(o)),o.JU=new bp(o.uU,o.hg,o.pP),o.GU=new wq(t8(o)),o.YU=new bs(o.uU,s.allowNativeFullscreen),o.zU=new mT(o.YU),o.jU.Oc();var l=new nZ(o.jU,o.mP,1,[l4.Vl]);return o.KU=new n0(l),o.$U=new bO,o}j(r,e);var s,o,u,a=r.prototype;return a.Ex=function(e){this.uU.wy=e,e||this.yy||this.qm()},a.Xx=function(e){this.uU.Ey=e},a.sF=function(){lA(this,mC,this)},a.Mm=function(){this.uU.Mm()},a.xm=function(){this.uU.xm()},s=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=5;break}return this.nF._O(r).catch(this.iF),o=function(e){e.sources;var r=e.sources.filter(function(e){return void 0===e.integration});return e.sources=r,e}(r),e.next=5,this.uU.Hm(o,s);case 5:case"end":return e.stop()}},e,this)})),a.Hm=function(e,r){return s.apply(this,arguments)},a.qm=function(){this.Em||(this.uU.qm(),this.KU.qm(),this.Em=!0)},a.cP=function(){return this.zU.jP()===mw.FULLSCREEN},a.jm=function(){this.uU.jm()},a.Ym=function(){this.uU.Ym()},a.Qm=function(){return this.uU.Qm()},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.uU.Um();case 2:return e.next=4,this.uU.Yg();case 4:case"end":return e.stop()}},e,this)})),a.Yg=function(){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),this.$U.Kl(),this.hg.Kl(),this.JU.Kl(),this.YU.Kl(),this.zU.Kl(),this.jU.Kl(),this.qU.Kl(),this.KU.Kl(),e.next=11,this.uU.Kl();case 11:case"end":return e.stop()}},e,this)})),a.Kl=function(){return u.apply(this,arguments)},M(r,[{key:"oF",get:function(){return this.pP}},{key:"Dm",get:function(){return this.QU},set:function(e){this.QU=e,this.uU.Dm=e}},{key:"aF",get:function(){return this.KU}},{key:"Pm",get:function(){return this.uU.Pm}},{key:"hF",get:function(){return this.$U}},{key:"cF",get:function(){return this.jU}},{key:"Lm",get:function(){return this.uU.Lm}},{key:"ym",get:function(){return this.tF}},{key:"fF",get:function(){return this.JU}},{key:"Om",get:function(){return this.uU.Om}},{key:"vF",get:function(){return this.mP}},{key:"Bm",get:function(){return this.uU.Bm}},{key:"rp",get:function(){return this.uU.rp}},{key:"uF",get:function(){return this.Vx}},{key:"iU",get:function(){return this.nU}},{key:"vy",get:function(){return this.uU.vy},set:function(e){this.uU.vy=e}},{key:"ep",get:function(){return this.uU.ep},set:function(e){this.uU.ep=e}},{key:"np",get:function(){return this.uU.np}},{key:"ly",get:function(){return this.uU.ly}},{key:"sp",get:function(){return this.uU.sp}},{key:"_y",get:function(){return this.uU._y}},{key:"Lh",get:function(){return this.uU.Lh}},{key:"gy",get:function(){return this.uU.gy}},{key:"wy",get:function(){return this.uU.wy},set:function(e){this.Ex(!!e)}},{key:"yy",get:function(){return this.uU.yy}},{key:"py",get:function(){return this.uU.py}
1,set:function(e){this.uU.py=e}},{key:"_p",get:function(){return this.uU._p}},{key:"gp",get:function(){return this.uU.gp},set:function(e){this.uU.gp=mt(e)}},{key:"bw",get:function(){return this.uU.bw}},{key:"wp",get:function(){return this.uU.wp}},{key:"Ay",get:function(){return this.uU.Ay}},{key:"cw",get:function(){return this.bp}},{key:"by",get:function(){return this.uU.by}},{key:"Ty",get:function(){return this.uU.Ty}},{key:"Ey",get:function(){return this.uU.Ey},set:function(e){var r=tJ(Number(e),0,1)||0;this.Xx(r)}}]),r}(fP);(b9=bF||(bF={}))[b9.dF=0]="dF",b9[b9.lF=1]="lF",(kt=bj||(bj={}))[kt._F=0]="_F";var bG={},bK={};function bz(e,r){(bG[r]||(bG[r]=[])).push(e)}function bZ(e,r){(bK[r]||(bK[r]=[])).push(e)}function b0(e,r){var s=e;if(bG[r])for(var o=0,u=bG[r];o<u.length;o++)s=(0,u[o])(s);return s}var b1=[],b2=[];function b3(e){for(var r=0;r<b1.length;r++)(0,b1[r])(e)}var b5=o.CustomEvent,b4=!function(){try{var e=new b5("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?function(e,r){var s=h.createEvent("CustomEvent");return r?s.initCustomEvent(e,r.bubbles,r.cancelable,r.detail):s.initCustomEvent(e,!1,!1,void 0),s}:function(e,r){return new CustomEvent(e,r)},b6=function(){function e(e,r){var s=this;this.dC=void 0,this.gF=void 0,this.wF=!1,this.yF=function(e){s.gF.rL(e.error,s.vy)},this.kF=function(){s.gF.tL(s.mF),s.dC.removeEventListener("playing",s.kF),s.wF=!1},this.pF=function(){s.wF||(s.dC.addEventListener("playing",s.kF),s.wF=!0)},this.gF=r,this.dC=e,this.dC.addEventListener("error",this.yF),this.dC.addEventListener("sourcechange",this.pF),this.pF()}return e.prototype.Yg=function(){},M(e,[{key:"vy",get:function(){var e=this.dC.currentTime;return"number"==typeof e&&isFinite(e)?e:"now"}},{key:"mF",get:function(){return this.dC.src||""}}]),e}();b1.push(function(e){new b6(e.gg,e.qU)});var b8="theoplayer-stored-volume",b7="theoplayer-stored-mutedstate";bz(function(e){function r(r,s){var o;if(o=e.call(this,r,s)||this,s.persistVolume){var u=bU.gU(b8);(void 0===u||A(u))&&(u=1);var a=bU.wU(b7)||!1;o.Ey=u,o.wy=a}return o}j(r,e);var s=r.prototype;return s.Ex=function(r){this.iE.persistVolume&&bU.Bf(b7,r),e.prototype.Ex.call(this,r)},s.Xx=function(r){this.iE.persistVolume&&bU.Bf(b8,r),e.prototype.Xx.call(this,r)},r},bF.lF);var b9,kt,ke,kn=new(function(){function e(){this.AF=[],this._g=void 0}var r=e.prototype;return r.qg=function(e){return this.AF[e]},r.bF=function(e){this.AF.push(e),this.gg.push(e.gg)},r.Tc=function(e){var r=this.AF.indexOf(e);r<0||(rf(this.AF,r),this._g&&rf(this._g,r))},r.TF=function(e){for(var r=0,s=this.AF;r<s.length;r++){var o=s[r];if(o.cw===e)return o}},M(e,[{key:"Zg",get:function(){return this.AF.length}},{key:"gg",get:function(){return this._g||(this._g=function(e){for(var r=[],s=0;s<e.Zg;s++)r[s]=e.qg(s).gg;return r.getPlayerByUID=function(r){var s=e.TF(r);return s&&s.gg},r}(this)),this._g}}]),e}()),ki=function(e){function r(r){var s;return(s=e.call(this,ul.pv)||this).source=r,s}return j(r,e),r}(rX),kr=function(e){function r(){var r;return(r=e.call(this)||this).vP=void 0,r.lP=void 0,r.gP=void 0,r._P=void 0,r.vP=0,r.lP=!0,r.gP=!1,r._P=1,r}j(r,e);var s=r.prototype;return s.Mm=function(){this.lP&&(this.lP=!1,this.yh(new le(this.vy)),this.yh(new gB(this.vy)))},s.xm=function(){this.lP||(this.lP=!0,this.yh(new lh(this.vy,this.ep)),this.yh(new lt(this.vy)))},s.Yg=function(){this.vP=0,this.gP=!1,this._P=1,this.xm(),this.yh(new f9(this.vP))},s.Kl=function(){this.Th()},s.Ym=function(){},s.jm=function(){},M(r,[{key:"ep",get:function(){},set:function(e){}},{key:"vy",get:function(){return this.vP},set:function(e){this.gP&&this.vP===e||(this.vP=e,this.gP=!0,this.yh(new ll(this.vy)))}},{key:"yy",get:function(){return this.lP}},{key:"py",get:function(){return this._P},set:function(e){this._P!==e&&(this._P=e,this.yh(new la(this.vy,this.py)))}},{key:"bw",get:function(){return f1.Yw}},{key:"Ay",get:function(){return this.gP}}]),r}(f_),ks=function(e){function r(){return e.call(this,ul.Vf)||this}return j(r,e),r}(rX),ko={zIndex:"1",display:"inline-block",verticalAlign:"middle",backgroundRepeat:"no-repeat",backgroundPosition:"50% 50%",backgroundSize:"contain",cursor:"pointer",margin:"0",padding:"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",height:"100%"},ku={visibility:"hidden"},ka={visibility:"visible"},kh=function(){function e(e){var r,s=this;this.aC=void 0,this.dC=void 0,this.EF=!1,this.SF=void 0,this.IF=void 0,this.RF=function(e){s.EF=!1,s.SF=e.source&&e.source.poster,s.Ec()},this.SN=function(){s.EF=!0,s.Ym()},this.dC=e,this.wC(),this.aC=((r=n2&&n2.document&&n2.document.createElement("div")).className="theoplayer-poster",ia(ko,r),r),e.sp.appendChild(this.aC)}
1var r=e.prototype;return r.Ec=function(){var e=this.dC.yy,r=this.EF;this.Il?this.aC.style.backgroundImage='url("'+this.Il.replace(/[\\"]/g,function(e){return"\\"+e})+'")':this.aC.style.backgroundImage="",e&&this.Il&&!r?this.jm():this.Ym()},r.jm=function(){ia(ku,this.dC.sp),ia(ka,this.aC)},r.Ym=function(){ia(ku,this.aC),ia(ka,this.dC.sp)},r.wC=function(){this.dC.kh("sourcechange",this.RF),this.dC.kh("play",this.SN)},r.Kl=function(){this.dC.Eh("sourcechange",this.RF),this.dC.Eh("play",this.SN),n9(this.aC)},M(e,[{key:"Il",get:function(){return void 0!==this.SF?this.SF:void 0!==this.IF?this.IF:void 0}},{key:"NF",set:function(e){this.IF=e,this.Ec()}}]),e}();function kc(){return ke||(ke=b0(ke=function(e){function r(r,s){var o;return(o=e.call(this,r)||this).dC=void 0,o.DF=void 0,o.CF=void 0,o.PF=void 0,o.BF=void 0,o.tN=void 0,o.OF=void 0,o.LF=void 0,o.gC=void 0,o._C=void 0,o._g=void 0,o.MF=function(e){e.type!==ul.ev&&o.LF.push(e)},o.DF=new bQ(r,s),o.CF=new kr,o.dC=o.DF,o.PF=new kh(t8(o)),o.tN=new dr,o.OF=!1,o.LF=[],o.gC=!0,o._C=void 0,o.wC(),o}j(r,e);var s,o,u,a,h=r.prototype;return s=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.tN.xS(r,s).catch(rS));case 1:case"end":return e.stop()}},e,this)})),h.xS=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(s),this.DF.Ah(this.MF),e.next=4,this.DF.Hm(r,s);case 4:this.DF.Rh(this.MF);case 5:case"end":return e.stop()}},e,this)})),h.xF=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(){var r,s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=this.Fm())&&!mX(r)&&this.Dm&&this.yy){e.next=3;break}return e.abrupt("return");case 3:return s=r.mutedAutoplay||this.iE.mutedAutoplay,e.next=6,this.aF.FF();case 6:o=e.sent,e.t0=o,e.next="all"===e.t0?10:"muted"===e.t0?12:14;break;case 10:return this.HF(),e.abrupt("break",14);case 12:return(this.wy||s===li.ALL)&&(this.wy=!0,this.Mm()),e.abrupt("break",14);case 14:case"end":return e.stop()}},e,this)})),h.UF=function(){return u.apply(this,arguments)},h.Hm=function(e){var r,s=this,o=this._C;o&&!mX(o)&&this.yh(new f9(0,0)),this.Yg(),this._C=e,rN(this.xS((r=P.coroutine(iO.mark(function r(o){return iO.wrap(function(r){for(;;
1)switch(r.prev=r.next){case 0:return rT(o),r.prev=1,r.next=4,s.xF(e,o);case 4:r.next=10;break;case 6:throw r.prev=6,r.t0=r.catch(1),s._C=void 0,r.t0;case 10:return r.next=12,s.XF();case 12:case"end":return r.stop()}},r,null,[[1,6]])})),function(e){return r.apply(this,arguments)})))},a=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.VF(this.DF),this.yh(new ki(this.Fm())),e.next=4,this.UF();case 4:case"end":return e.stop()}},e,this)})),h.XF=function(){return a.apply(this,arguments)},h.gx=function(e){this.dC.vy=e},h.mx=function(){return this.DF.Lh},h.Ax=function(){return this.DF.gy},h.Mm=function(){this.dC.Mm()},h.HF=function(){this.wy||this.qm(),this.Mm()},h.qm=function(){this.DF.qm()},h.xm=function(){this.dC.xm()},h.Um=function(){this.Hm(void 0)},h.jm=function(){this.gC=!0,this.dC.jm()},h.Ym=function(){this.gC=!1,this.dC.Ym()},h.sF=function(){this.DF.sF()},h.Xx=function(e){this.DF.Xx(e)},h.Ex=function(e){this.DF.Ex(e)},h.WF=function(e){this.BF=e,e.bF(this)},h.cP=function(){return this.DF.cP()},h.Fm=function(){return this._C},h.Qm=function(){return this.DF.Qm()},h._x=function(){return this.DF.vy},h.wx=function(){return this.DF.ly},h.ax=function(){return this.DF.rp},h.Dx=function(){return this.DF._p},h.Ox=function(){return this.DF.wp},h.Yg=function(){var e,r=this;this._C=void 0,rv(this.LF),this.CF.Yg(),this.VF(this.CF),this.tN.hh(),rN(this.tN.xS((e=P.coroutine(iO.mark(function e(s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(s),e.next=3,r.DF.Yg();case 3:case"end":return e.stop()}},e)})),function(r){return e.apply(this,arguments)})))},h.Kl=function(){var e=this;this.yh(new ks),this.PF.Kl(),this.yC(),this.Yg(),rN(this.xS(P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.DF.Kl();case 2:e.BF&&(e.BF.Tc(e),e.BF=void 0),e.tN.Kl();case 4:case"end":return r.stop()}},r)})))),this.Th()},h.VF=function(e){if(this.dC!==e){var r=this.dC.yy,s=this.dC.vy,o=this.dC.py,u=this.dC.Ay;this.yC(),e===this.DF?((u||e.vy!==s)&&(e.vy=s),e.py!==o&&(e.py=o),r?e.xm():e.Mm()):this.iE.retainPlaybackRateOnSourceChange?e.py=o:1!==o&&this.yh(new la(this._x(),1)),this.dC=e,this.wC();for(var a=0,h=this.LF;a<h.length;a++){var c=h[a];this.yh(c)}rv(this.LF),this.gC?e.jm():e.Ym()}},h.wC=function(){this.dC.Ah(this.wh)},h.yC=function(){this.dC.Rh(this.wh)},h.wg=function(){var e,r,s,o,u;return e=this,o=function(r){s=r;var o=mQ(r,e.iE);e.Hm(o)},(r=new mE(u={get abr(){return e.oF.gg},get audioTracks(){return e.Pm.gg},get autoplay(){return e.Dm},set autoplay(n){e.Dm=!!n},get buffered(){return e.ax()},get canvas(){return e.GU.gg},get clip(){return e.uF.gg},get currentProgramDateTime(){var a;return null!=(a=e.ep)?a:null},set currentProgramDateTime(n){e.ep=null!=n?n:void 0},get currentTime(){return e._x()},set currentTime(n){e.gx(Number(n))},get duration(){return e.wx()},get element(){return e.sp},get ended(){return e._y},get error(){return e.mx()},get errorObject(){return e.Ax()},get loop(){return e.iU.iU},set loop(n){e.iU.iU=!!n},get metrics(){return e.ym.gg},get muted(){return e.wy},set muted(n){e.Ex(n)},get network(){return e.fF.gg},get paused(){return e.yy},get playbackRate(){return e.py},set playbackRate(n){var h=Number(n);if(h<0)throw RangeError("playbackRate must be a positive number");e.py=h},get played(){return e.Dx()},get poster(){return e.qF},set poster(n){e.qF=fl(n)},get preload(){return e.gp},set preload(n){e.gp=n},get presentation(){return e.zU.gg},get readyState(){return e.bw},get seekable(){return e.Ox()},get seeking(){return e.Ay},get source(){return s},set source(t){o(t)},get src(){return mq(e.Fm())},set src(t){o({sources:t})},get textTracks(){return e.Om.gg},get textTrackStyle(){return e.vF.gg},get uid(){return e.cw},get videoHeight(){return e.by},get videoTracks(){return e.Bm.gg},get videoWidth(){return e.Ty},get volume(){return e.Ey},set volume(n){e.Xx(Number(n))},destroy:function(){e.Kl(),e=null,s=void 0},play:function(){e.HF()},pause:function(){e.xm()},stop:function(){s=void 0,e.Um()},prepareWithUserAction:function(){e.qm()},addEventListener:function(e,s){r.kh(e,s)},removeEventListener:function(e,s){r.Eh(e,s)},setSource:function(e){o(e)}},!0)).BP(e),u},M(r,[{key:"qU",get:function(){return this.DF.qU}},{key:"GU",get:function(){return this.DF.GU}},{key:"iE",get:function(){return this.DF.iE}},{key:"WU",get:function(){return this.DF.WU}},{key:"hg",get:function(){return this.DF.hg}},{key:"LD",get:function(){return this.DF.YU}},{key:"zU",get:function(){return this.DF.zU}},{key:"jU",get:function(){return this.DF.jU}},{key:"uU",get:function(){return this.DF.uU}},{key:"oF",get:function(){return this.DF.oF}},{key:"Dm",get:function(){return this.DF.Dm},set:function(e){this.DF.Dm=e,this.UF()}},{key:"aF",get:function(){return this.DF.aF}},{key:"Pm",get:function(){return this.DF.Pm}},{key:"hF",get:function(){return this.DF.hF}},{key:"cF",get:function(){return this.DF.jU}},{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}},{key:"Lm",get:function(){return this.DF.Lm}},{key:"ym",get:function(){return this.DF.ym}},{key:"fF",get:function(){return this.DF.fF}},{key:"Om",get:function(){return this.DF.Om}},{key:"vF",get:function(){return this.DF.vF}},{key:"Bm",get:function(){return this.DF.Bm}},{key:"uF",get:function(){return this.DF.uF}},{key:"iU",get:function(){return this.DF.iU}},{key:"ep",get:function(){return this.dC.ep},set:function(e){this.dC.ep=e}},{key:"np",get:function(){return this.DF.np}},{key:"sp",get:function(){return this.DF.sp}},{key:"_y",get:function(){return this.DF._y}},{key:"wy",get:function(){return this.DF.wy},set:function(e){this.DF.wy=e}},{key:"yy",get:function(){return this.dC.yy}},{key:"qF",get:function(){return this.PF.Il||""},set:function(e){this.PF.NF=e}},{key:"py",get:function(){return this.DF.py}
1,set:function(e){this.dC.py=e}},{key:"gp",get:function(){return this.DF.gp},set:function(e){this.DF.gp=mt(e)}},{key:"bw",get:function(){return this.dC.bw}},{key:"Ay",get:function(){return this.dC.Ay}},{key:"cw",get:function(){return this.DF.cw}},{key:"by",get:function(){return this.DF.by}},{key:"Ty",get:function(){return this.DF.Ty}},{key:"Ey",get:function(){return this.DF.Ey},set:function(e){this.DF.Ey=e}}]),r}(fP),bF.dF),ke=b0(ke,bF.lF)),ke}function kf(e,r){var s=lb(r),o=new(kc())(e,s),u=o.gg;return o.sF(),o.WF(kn),w.defineProperty(u,"constructor",{value:kf}),u=fe(u),b3(o),u}rI(function(){o.dispatchEvent&&o.dispatchEvent(b4("theoplayerready"))});var kl,kp={base64:new(function(){function e(){}var r=e.prototype;return r.encode=function(e){return r5(e)},r.decode=function(e){return r3(e)},e}())},kv=kn.gg,kd=dI.$S.registerContentProtectionIntegration.bind(dI.$S),ky=[ul.tv,ul.$f,f7.oy,ul.Av,ul.rv,ul.Yf,ul.fv,ul.hv,ul.Gf,ul.ev,ul.bv,ul.Wf,f7.Og,ul.ov,fE.mw,rH.Mh,rH.Fh],kg={GF:!1,zF:50},km=["loadstart","encrypted","waitingforkey","webkitneedkey","msneedkey"];(kl||(kl={})).UB="jF";var kw,kb=function(r){function s(e,s,o){var u;(u=r.call(this)||this).ef=void 0,u.JR=void 0,u.kf=void 0,u.YF=!1,u.QF=new sG,u.tN=new dr,u.qa=void 0,u.Cc=void 0,u.ZF=function(){u.KF(!0)},u.ef=e,u.JR=s,u.kf=s.pD,u.qa=o;for(var a=0;a<km.length;a++){var h=km[a];u.kf.addEventListener(h,u.ZF)}return u}j(s,r);var o,u,a,h,c,f,l=s.prototype;return o=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.qa.Qa(r.Fa,s);case 2:return o=e.sent,e.next=5,o.Uc();case 5:return u=e.sent,e.next=8,this.JF(u);case 8:return e.abrupt("return",u);case 9:case"end":return e.stop()}},e,this)})),l.cN=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(){var r,s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this.Th(),r=0;r<km.length;r++)s=km[r],this.kf.removeEventListener(s,this.ZF);return e.next=4,this.tN.Kl();case 4:return e.next=6,this.tH();case 6:return e.next=8,this.JF(void 0);case 8:case"end":return e.stop()}},e,this)})),l.rh=function(){return u.apply(this,arguments)},l.KF=function(e){e!==this.YF&&(this.YF=e,e?this.QF.uc(void 0):this.QF=new sG)},l.JF=function(e){var r=this;return this.tN.xS(function(){return r.nH(e)})},a=P.coroutine(iO.mark(function r(s){var o;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!s||this.kf.src){r.next=4;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_ERROR,"Attempted to attach MediaKeys to a sourceless MediaElement");case 4:if(s||!this.kf.src){r.next=6;break}throw new lz(e.ErrorCode.CONTENT_PROTECTION_ERROR,"Attempted to remove MediaKeys from a non-empty MediaElement");case 6:if(!s||this.YF){r.next=9;break}return r.next=9,this.QF.ec;case 9:if(!(o=this.Cc)){r.next=14;break}return r.next=13,o.Lc(this.kf);case 13:this.Cc=void 0;case 14:if(!s){r.next=18;break}return r.next=17,s.Oc(this.kf);case 17:this.Cc=s;case 18:case"end":return r.stop()}},r,this)})),l.nH=function(e){return a.apply(this,arguments)},l.Hm=function(e){var r=this;return this.tN.xS(function(){return r.iH(e)})},h=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.KF(!1),s=this.JR.py,this.kf.src=r,this.JR.py=s;case 4:case"end":return e.stop()}},e,this)})),l.iH=function(e){return h.apply(this,arguments)},l.bc=function(){var e=this;return this.tN.xS(function(){return e.q_()})},c=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.kf.load();case 1:case"end":return e.stop()}},e,this)})),l.q_=function(){return c.apply(this,arguments)},l.tH=function(){var e=this;return this.tN.xS(function(){return e.rH()})},f=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.KF(!1),ip(this.kf);case 2:case"end":return e.stop()}},e,this)})),l.rH=function(){return f.apply(this,arguments)},M(s,[{key:"Pm",get:function(){throw new y("Not implemented")}},{key:"iE",get:function(){return this.ef}},{key:"pD",get:function(){return this.kf}},{key:"Bm",get:function(){throw new y("Not implemented")}}]),s}(rB),kk=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s,o,u=r.prototype;return s=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=(r=this.iE).SD,e.next=e.t0===fK.Vw||e.t0===fK.Ww?4:(e.t0,fK.qw,6);break;case 4:return this.kf.setAttribute("crossorigin",r.SD),e.abrupt("break",8);case 6:return this.kf.removeAttribute("crossorigin"),e.abrupt("break",8);case 8:return void 0!==r.gp?this.kf.preload=r.gp:this.kf.preload=g7.jN,void 0!==r.RD?this.kf.title=r.RD:ic(this.kf),e.next=12,this.Hm(r.Sw);case 12:case"end":return e.stop()}},e,this)})),u.iI=function(){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return ic(this.kf),r.next=3,e.prototype.rh.call(this);case 3:case"end":return r.stop()}},r,this)})),u.rh=function(){return o.apply(this,arguments)},r.eH=function(e,r){return!!r.canPlayType&&!!r.canPlayType(e.$d)},M(r,[{key:"rp",get:function(){return mo.uP(this.kf.buffered)}},{key:"ly",get:function(){return this.kf.duration}},{key:"uH",get:function(){var e=this.ly;if(!isFinite(e))return!1;var r=this.rp;return 0!==r.Zg&&e-r.EC(r.Zg-1)<t2}},{key:"gp",get:function(){return this.kf.preload},set:function(e){this.kf.preload=e}},{key:"wp",get:function(){return mo.uP(this.kf.seekable)}},{key:"sH",get:function(){return this.rp}},{key:"oH",get:function(){if(il(this.kf)&&(this.kf.videoWidth>0||this.kf.videoHeight>0))return this.rp}}]),r}(kb),kE=function(e){function r(r){var s;return(s=e.call(this,ul.rv)||this).currentTime=r,s}return j(r,e),r}(rX),kA=function(e){function r(){return e.call(this,ul.Yf)||this}return j(r,e),r}(rX);(kw||(kw={})).aH="hH";var kx,kT,kC=[kw.aH,"aw","cH"];(kV=kx||(kx={}))[kV.fH=0]="fH",kV[kV.Nv=1]="Nv",kV[kV.vH=2]="vH",(kT||(kT={})).dH="lH";var kS=function(e){function r(r){var s;return(s=e.call(this,kT.dH)||this)._H=r,s}return j(r,e),r}(rX),kR=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).gH=mo.aP(),r}j(r,e);var s=r.prototype;return s.wH=function(e,r){var s=new mo([e,r]);this.gH=this.gH.qC(s),this.yh(new kS(s))},s.yH=function(e,r){this.gH=this.gH.zC(new mo([e,r]))},s.Yg=function(){this.gH=mo.aP()},s.Kl=function(){this.Th()},M(r,[{key:"kH",get:function(){return this.gH}}]),r}(rB),kL=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.mH=function(e,r,s){return P.reject(new y("Invalid state"))},s.pH=function(){return P.reject(new y("Invalid state"))},s.AH=function(e,r){return P.reject(new y("Invalid state"))},s.uH=function(){return!1},s.bH=function(){},s.TH=function(e,r){},s.EH=function(e,r){},s.Tc=function(e,r,s){return P.resolve()},s.SH=function(e,r){return P.reject(new y("Invalid state"))},s.IH=function(e){},s.RH=function(e){},s.NH=function(e){return!1},s.DH=function(e){},s.Kl=function(){return P.resolve()},M(r,[{key:"rp",get:function(){return mo.aP()}},{key:"CH",get:function(){return!1}},{key:"PH",get:function(){return mo.aP()}},{key:"BH",get:function(){return!1}},{key:"KL",get:function(){return!1}}]),r}(rB),k_=function(){function e(e,r){this.OH=void 0,this.LH=void 0,this.MH=void 0,this.OH=r,this.LH=e}var r=e.prototype;return r.uH=function(){return!!this.MH&&this.rp.BC().HD(this.MH)},r.bH=function(){var e=this.rp;this.MH=e.Zg>0?e.EC(e.Zg-1):0,this.OH.xH()},M(e,[{key:"rp",get:function(){if(this.OH.bw===kX.UH)return mo.aP();var e=mo.uP(this.LH.buffered).UC(new mo([0,1/0])),r=this.MH;return void 0!==r&&e.Zg>0&&e.EC(e.Zg-1)===r&&(e=e.qC(mo.oP(r))),e}}]),e}();function kP(e){return e&&"QuotaExceededError"===e.name}function kI(e,r){return void 0===r&&(r=new az({highWaterMark:1/0})),new aV(new kN(e,r),{highWaterMark:0})}var kN=function(){function e(e,r){var s=this,o=r.size,u=r.highWaterMark;this.Hv=void 0,this.FH=void 0,this.HH=void 0,this.ri=[],this.Kv=0,this.DU=void 0,this.XH=!1,this.VH=void 0,this.WH=function(e){return e.done?(s.oi(),void s.DU.close()):(s.ri.push(e.value),s.Kv+=s.FH(e.value),s.XH&&s.oi(),s.qH()?s.Hv.read().then(s.WH):void 0)},this.D_=function(e){s.oi(),s.DU.error(e)},this.Hv=e.getReader(),this.FH=void 0===o?function(){return 1}:o,this.HH=void 0===u?1:u}var r=e.prototype;return r.start=function(e){this.DU=e,this.qH()&&this.GH()},r.pull=function(){this.ri.length>0?this.oi():this.XH=!0,this.qH()&&this.GH()},r.cancel=function(e){return rv(this.ri),this.Kv=0,this.XH=!1,this.Hv.cancel(e)},r.oi=function(){if(0!==this.ri.length){var e=this.ri;this.ri=[],this.Kv=0,this.XH=!1,this.DU.enqueue(e)}},r.qH=function(){return!!this.XH||this.HH-this.Kv>0},r.GH=function(){var e=this;if(!this.VH){var r=this.Hv.read().then(this.WH).catch(this.D_);this.VH=r;var s=function(){e.VH===r&&(e.VH=void 0)};r.then(s,s)}},e}(),kO=Q.Ou,kD=function(e){function r(r,s,o,u){var a;return(a=e.call(this)||this).JR=void 0,a.zH=void 0,a.jH=void 0,a.LH=void 0,a.QM=20,a.ZM=30,a.YH=!1,a.QH=!1,a.ZH=void 0,a.KH=new rE,a.JH=!1,a.$H=void 0,a.tX=function(){a.YH=!1},a.JR=r,a.zH=o,a.jH=s,a.LH=u,a.LH.addEventListener("updateend",a.tX),a}j(r,e);var s,o,u,a,h,c,f,l,p,v,d,g,m,w=r.prototype;return w.mH=function(e,r,s){var o=this;switch(e.Ua){case kx.fH:case kx.Nv:return this.nX(function(s){return o.iX(e,r,s)},s);case kx.vH:throw new y("Opaque segments are not supported on web.")}},w.AH=function(e,r){var s=this;switch(e.Ua){case kx.fH:return this.nX(function(r){return s.rX(e,r)},r);case kx.Nv:throw new y("Streaming initialization segments are not supported on web.");case kx.vH:throw new y("Opaque initialization segments are not supported on web.")}},s=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.eX(r.Fs,void 0,s);case 2:kO&&(this.JH=!1,this.$H=r);case 3:case"end":return e.stop()}},e,this)})),w.rX=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(kO&&this.JH&&this.$H)){e.next=3;break}return e.next=3,this.rX(this.$H,o);case 3:return e.prev=3,rT(o),e.next=7,this.eX(r.Fs,s,o);case 7:this.yh(new rX(kw.aH));case 8:return e.prev=8,r.Ua===kx.Nv&&r.Fs.cancel(new rA).catch(I),e.finish(8);case 11:case"end":return e.stop()}},e,this,[[3,,8,11]])})),w.iX=function(e,r,s){return o.apply(this,arguments)},w.eX=function(e,r,s){return this.uX(e,r,s)},u=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(o),e.next=3,this.sX(this.JR.vy,null==s?void 0:s.oX,null==s?void 0:s.ly);
1case 3:if(rT(o),!(r instanceof aV)){e.next=9;break}return e.next=7,this.aX(r,s,o);case 7:e.next=11;break;case 9:return e.next=11,this.hX(r,s,o);case 11:case"end":return e.stop()}},e,this)})),w.uX=function(e,r,s){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r,s,o){var u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=void 0,r=(a=hs(r))[0],u=a[1],e.prev=5,e.next=8,this.cX(r,s,o);case 8:return u.cancel(new rA).catch(I),e.abrupt("return");case 12:if(e.prev=12,e.t0=e.catch(5),!kP(e.t0)){e.next=21;break}return e.next=17,this.sX(this.JR.vy,s?s.oX:void 0,s?s.ly:void 0,o);case 17:if(!e.sent){e.next=21;break}return r=u,e.abrupt("continue",0);case 21:throw u.cancel(e.t0).catch(I),e.t0;case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,this,[[5,12]])})),w.aX=function(e,r,s){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f,l,p;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u=this.jH.rp,a=kI(r).getReader(),h=!1,e.prev=4,s&&this.fX(s);case 6:return e.next=9,rR(a.read(),o);case 9:if(!(c=e.sent).done){e.next=13;break}return h=!1,e.abrupt("break",20);case 13:return rT(o),f=r9(c.value),h=!0,e.next=18,this.vX(f);case 18:e.next=6;break;case 20:e.next=37;break;case 22:if(e.prev=22,e.t0=e.catch(4),a.cancel(e.t0).catch(I),!h){e.next=36;break}return e.next=28,this.dX();case 28:l=this.jH.rp.UC(u.FC()),p=0;case 30:if(!(p<l.Zg)){e.next=36;break}return e.next=33,this.lX(l.bC(p),l.EC(p));case 33:p++,e.next=30;break;case 36:throw e.t0;case 37:case"end":return e.stop()}},e,this,[[4,22]])})),w.cX=function(e,r,s){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=1,rT(o),s&&this.fX(s),e.next=6,this.vX(r);case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(1),!kP(e.t0)){e.next=17;break}return e.next=14,this.sX(this.JR.vy,s?s.oX:void 0,s?s.ly:void 0,o);case 14:if(!e.sent){e.next=17;break}return e.abrupt("continue",0);case 17:throw e.t0;case 18:e.next=0;break;case 20:case"end":return e.stop()}},e,this,[[1,9]])})),w.hX=function(e,r,s){return c.apply(this,arguments)},w.SH=function(e,r){var s=this;return this.nX(function(){return s._X(e,r)})},f=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.LH.appendWindowStart===r&&this.LH.appendWindowEnd===s){e.next=6;break}return e.next=3,this.dX();case 3:this.LH.appendWindowStart=0,this.LH.appendWindowEnd=s,this.LH.appendWindowStart=r;case 6:case"end":return e.stop()}},e,this)})),w._X=function(e,r){return f.apply(this,arguments)},w.fX=function(e){this.LH.timestampOffset!==e.dA&&(this.LH.timestampOffset=e.dA)},l=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.LH.appendBuffer(r),this.QH=!0,e.next=4,this.gX();case 4:case"end":return e.stop()}},e,this)})),w.vX=function(e){return l.apply(this,arguments)},p=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c,f,l;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=bv(r,s,o,this.jH.rp,this.QM,this.ZM),h=0;case 2:if(!(h<a.length)){e.next=9;break}return f=(c=a[h])[0],l=c[1],e.next=6,this.lX(f,l,u);case 6:h++,e.next=2;break;case 9:return e.abrupt("return",a.length>0);case 10:case"end":return e.stop()}},e,this)})),w.sX=function(e,r,s,o){return p.apply(this,arguments)},w.wX=function(e,r,s){var o=this;return this.nX(function(s){return o.lX(e,r,s)},s)},v=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(o),this.LH.remove(r,s),e.next=4,this.gX();case 4:case"end":return e.stop()}},e,this)})),w.lX=function(e,r,s){return v.apply(this,arguments)},w.gX=function(){var e=this,r=this.jH.rp;return new P(function(s,o){var u,a=!1,h=function(){a=!0},c=function(){a=!1,u="error"},f=function(){a=!1,u="aborted"},l=function(){p(),a&&!u?(r.JC(e.jH.rp)||e.yh(new rX(kw.aH)),s()):o(new y(u))},p=function(){e.LH.removeEventListener("update",h),e.LH.removeEventListener("error",c),e.LH.removeEventListener("abort",f),e.LH.removeEventListener("updateend",l)};e.LH.addEventListener("update",h),e.LH.addEventListener("error",c),e.LH.addEventListener("abort",f),e.LH.addEventListener("updateend",l)})},w.yX=function(){var e=this;return this.nX(function(){return e.dX()})},d=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.zH.bw===kX.u_){e.next=2;break}return e.abrupt("return");case 2:kO&&(this.JH=!0),this.LH.updating&&(this.YH=!0);try{this.LH.abort()}catch(e){this.YH=!1}if(!this.KL){e.next=8;break}return e.next=8,this.gX().catch(I);case 8:case"end":return e.stop()}},e,this)})),w.dX=function(){return d.apply(this,arguments)}
1,w.NH=function(e){return!!MediaSource.isTypeSupported(e)&&"function"==typeof this.LH.changeType},w.DH=function(e){this.kX(),this.zH.bw!==kX.UH&&this.LH.changeType&&this.LH.changeType(e)},g=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.kX(),(o=new rE).fh(this.KH.dh),s&&o.fh(s),e.prev=4,this.ZH=r(o.dh),e.next=8,this.ZH;case 8:if(this.zH.mX(),!this.KL){e.next=12;break}return e.next=12,this.gX();case 12:return e.prev=12,this.ZH=void 0,o.rh(),e.finish(12);case 16:case"end":return e.stop()}},e,this,[[4,,12,16]])})),w.nX=function(e,r){return g.apply(this,arguments)},w.kX=function(){if(this.ZH)throw new y("Internal error")},m=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.Th(),this.KH.hh(),!this.ZH){e.next=6;break}return e.next=5,this.ZH.catch(I);case 5:this.ZH=void 0;case 6:this.LH.removeEventListener("updateend",this.tX);case 7:case"end":return e.stop()}},e,this)})),w.rh=function(){return m.apply(this,arguments)},M(r,[{key:"BH",get:function(){return this.QH}},{key:"VM",get:function(){return this.QM},set:function(e){this.QM=e}},{key:"zM",set:function(e){this.ZM=e}},{key:"KL",get:function(){return this.YH||this.LH.updating}}]),r}(rB),kU=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).jH=r,u.pX=s,u.AX=o,u.pX.kh(kw.aH,u.wh),u}j(r,e);var s,o=r.prototype;return o.uH=function(){return this.jH.uH()},o.bH=function(){this.jH.bH()},o.TH=function(e,r){this.AX.wH(e,r)},o.EH=function(e,r){this.AX.yH(e,r)},o.pH=function(){return this.pX.yX()},o.mH=function(e,r,s){return this.pX.mH(e,r,s)},o.AH=function(e,r){return this.pX.AH(e,r)},o.Tc=function(e,r,s){return this.EH(e,r),this.pX.wX(e,r,s)},o.SH=function(e,r){return this.pX.SH(e,r)},o.IH=function(e){this.pX.VM=e},o.RH=function(e){this.pX.zM=e},o.NH=function(e){return this.pX.NH(e)},o.DH=function(e){this.pX.DH(e)},s=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.pX.Eh(kw.aH,this.wh),e.next=3,this.pX.rh();case 3:this.AX.Kl();case 4:case"end":return e.stop()}},e,this)})),o.Kl=function(){return s.apply(this,arguments)},M(r,[{key:"rp",get:function(){return this.jH.rp}},{key:"CH",get:function(){return!0}},{key:"PH",get:function(){return this.AX.kH}},{key:"BH",get:function(){return this.pX.BH}},{key:"KL",get:function(){return this.pX.KL}}]),r}(rB),kM=function(e){function r(r,s,o,u,a){var h;return(h=e.call(this)||this).zH=void 0,h.ef=void 0,h.bX=void 0,h.JR=void 0,h.nf=void 0,h.AX=void 0,h.LH=void 0,h.Xv=void 0,h.QM=void 0,h.ZM=void 0,h.zH=r,h.ef=o,h.nf=o.$d,h.bX=u,h.JR=s,h.Xv=new kL,h.Xv.kh(kw.aH,h.wh),h.QM=20,h.ZM=30,h.AX=a,h}j(r,e);var s,o,u,a,h,c,f,l,p,v=r.prototype;return v.uH=function(){return this.Xv.uH()},v.bH=function(){return this.Xv.bH()},v.TH=function(e,r){this.Xv.TH(e,r)},v.EH=function(e,r){this.Xv.EH(e,r)},v.pH=function(){return this.Xv.pH()},v.mH=function(e,r,s){return this.Xv.mH(e,r,s)},v.AH=function(e,r){return this.Xv.AH(e,r)},v.SH=function(e,r){return this.Xv.SH(e,r)},s=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Xv.Tc(r,s,o);case 2:(Q.Wu||Q.Iu)&&this.JR.$h(this.JR.vy);case 3:case"end":return e.stop()}},e,this)})),v.Tc=function(e,r,o){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.CH!==r){e.next=2;break}return e.abrupt("return");case 2:if(!r){e.next=7;break}return e.next=5,this.lS(s);case 5:e.next=9;break;case 7:return e.next=9,this._S(s);case 9:case"end":return e.stop()}},e,this)})),v.Sp=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,rT(r),kF(this.LH,!0),e.next=5,this.TX(this.LH);case 5:e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(0),rT(r),e.next=12,this.zH.EX(this);case 12:case"end":return e.stop()}},e,this,[[0,7]])})),v.lS=function(e){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=this.LH,e.prev=1,rT(r),e.next=5,this.Yg();case 5:kF(s,!1),this.LH=s,e.next=14;break;case 9:return e.prev=9,e.t0=e.catch(1),rT(r),e.next=14,this.zH.SX(this,s);case 14:case"end":return e.stop()}},e,this,[[1,9]])})),v._S=function(e){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=this.Xv).Eh(kw.aH,this.wh),e.next=4,
1s.Kl();case 4:this.Xv=r,this.Xv.IH(this.QM),this.Xv.RH(this.ZM),this.Xv.kh(kw.aH,this.wh);case 8:case"end":return e.stop()}},e,this)})),v.setState=function(e){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.LH=r,e.next=3,this.setState(function(e,r,s,o,u){var a=new k_(e,r),h=new kD(o,a,r,e);return new kU(a,h,u)}(r,this.zH,this.bX,this.JR,this.AX));case 3:this.yh(new rX("aw"));case 4:case"end":return e.stop()}},e,this)})),v.TX=function(e){return c.apply(this,arguments)},v.IX=function(e){var r=e.$d;if(this.nf!==r){if(!MediaSource.isTypeSupported(r))return!1;if(!this.Xv.NH(r)){if(this.bX!==l4.Vl)return!1;var s,o,u=ot(this.nf),a=ot(r);if(u.Ua!==a.Ua||(s=u.Vc("codecs"),o=a.Vc("codecs"),s&&o?s.split(".",1)[0]!=s.split(".",1)[0]:!!s||!!o))return!1}}return!0},f=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=r.$d,this.nf!==s&&(this.Xv.NH(s)&&this.Xv.DH(s),this.nf=s),this.ef=r,this.zH.NX();case 4:case"end":return e.stop()}},e,this)})),v.RX=function(e){return f.apply(this,arguments)},l=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.AX.Yg(),this.LH=void 0,e.next=4,this.setState(new kL);case 4:this.yh(new rX("cH"));case 5:case"end":return e.stop()}},e,this)})),v.Yg=function(){return l.apply(this,arguments)},p=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.Th(),e.next=4,this.Yg();case 4:this.Xv.Eh(kw.aH,this.wh),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}},e,this,[[0,7]])})),v.rh=function(){return p.apply(this,arguments)},M(r,[{key:"rp",get:function(){return this.Xv.rp}},{key:"iE",get:function(){return this.ef}},{key:"$d",get:function(){return this.nf}},{key:"PH",get:function(){return this.Xv.PH}},{key:"BH",get:function(){return this.Xv.BH}},{key:"VM",get:function(){return this.QM},set:function(e){this.QM=e,this.Xv.IH(e)}},{key:"zM",set:function(e){this.ZM=e,this.Xv.RH(e)}},{key:"KL",get:function(){return this.Xv.KL}},{key:"CH",get:function(){return this.Xv.CH}}]),r}(rB);function kF(e,r){var s=e&&e.audioTracks,o=e&&e.videoTracks;if(!s||!o)throw new y("Not supported by browser.");for(var u=0;u<s.length;u++)s[u].enabled!==r&&(s[u].enabled=r);for(var a=0;a<o.length;a++)o[a].selected!==r&&(o[a].selected=r)}var kj=[ul.tv,ul.$f,ul.fv,ul.hv,ul.Gf,ul.ev,f7.Og,fE.mw],kH=function(){function e(e,r){var s=this;this.gN=f1.Yw,this.DX=!1,this.CX=[],this.PX=0,this.BX=0,this.OX=0,this.LX=0,this.MX=1e3,this.xX=function(e){var r=s.JR.vy;e._H.HD(r)&&s.UX(r)},this.FX=D(function(){s.HX(f7.Og)},100),this.XX=D(function(){s.HX(ul.rv)},100),this.VX=function(){s.WX()?s.qX():s.GX()},this.zX=function(){var e=s.PX,r=s.BX,o=s.JR.vy,u=_.xo(),a=e!==o;if(a||!s.WX())return s.PX=o,s.BX=u,void(a&&(s.LX=0,s.MX=1e3));if(r>0&&u>r+s.MX){var h=o+.01*s.LX;s.jH.rp.HD(h)&&(s.PX=h,s.BX=u,s.LX++,s.MX=b.max(2*s.MX,1e4),s.JR.$h(h))}},this.jH=e,this.JR=r,this.JR.kh(f7.Og,this.FX),this.JR.kh(ul.rv,this.XX),this.JR.kh(kj,this.VX)}var r=e.prototype;return r.jX=function(e){this.CX.push(e),e.kh(kT.dH,this.xX)},r.Kl=function(){var e=this;this.GX(),this.gN=f1.Yw,this.JR.Eh(f7.Og,this.FX),this.JR.Eh(ul.rv,this.XX),this.JR.Eh(kj,this.VX),this.CX.forEach(function(r){return r.Eh(kT.dH,e.xX)}),this.DX=!0},r.HX=function(e){if(!this.DX){var r=this.JR.bw;if(r<=f1.Zw){var s=this.JR.vy,o=this.jH.rp,u=o.jC(s),a=o.EC(u);-1!==u&&(e===f7.Og&&r<this.gN||e===ul.rv&&r===this.gN)&&a<s+.5&&(s=a),this.UX(s)}e===f7.Og&&(this.gN=r)}},r.UX=function(e){if(!this.JR._y){var r=this.kH.zC(this.jH.rp).BC(),s=r.jC(e);-1!==s&&(.001>=b.abs(r.bC(s)-r.EC(s))||this.JR.$h(r.EC(s)))}},r.qX=function(){0===this.OX&&(this.OX=_.zo(this.zX,250))},r.GX=function(){0!==this.OX&&(_.jo(this.OX),this.OX=0),this.BX=0},r.WX=function(){return!this.JR.yy&&!this.JR.Ay&&0!==this.JR.py&&!this.JR._y&&!this.JR.Lh&&this.JR.bw>=f1.Kw},M(e,[{key:"kH",get:function(){return this.CX.reduce(function(e,r){return e.qC(r.kH)},mo.aP())}}]),e}();function kB(e){var r=[];if(e.YX&&e.YX.CH&&r.push(e.YX.rp),e.QX&&e.QX.CH&&r.push(e.QX.rp),0===r.length)return mo.aP();for(var s=0,o=0;o<r.length;o++){var u=r[o];u.Zg>0&&(s=b.max(s,u.EC(u.Zg-1)))}for(var a=e.uH,h=new mo([0,s],[!0,a]),c=0;c<r.length;c++){var f=r[c];a&&f.Zg>0&&(f=f.qC(new mo([f.EC(f.Zg-1),s],[!0,!0]))),h=h.UC(f)}return h}var kV,kX,kW=Q.Ru||Q.Nu,kq=function(){function e(e,r,s,o){void 0===s&&(s=!1),void 0===o&&(o=!1),this.ZX=void 0,this.hS=e,this.cS=r,this.KX=s,this.JX=o,this.ZX=wD()}return e.prototype.$X=function(){var e=this.hS,r=this.cS;if(this.KX||this.JX){var s=.001*(wD()-this.ZX);this.KX&&(e+=s),this.JX&&(r+=s)}return e>=r?mo.aP():new mo([e,r])},M(e,[{key:"tV",get:function(){return this.KX}},{key:"nV",get:function(){return this.JX}}]),e}();(EC=kX||(kX={})).UH="closed",EC.u_="open",EC.Gf="ended";var kY=function(){function e(){}return e.prototype.iV=function(){return new MediaSource},e}(),k$=function(e){function r(r,s,o,u){var a;return void 0===u&&(u=new kY),(a=e.call(this,r,s,o)||this).rV=void 0,a.eV=void 0,a.uV=void 0,a.sV=new kq(0,1/0),a.$R=void 0,a.oV=void 0,a.aV=void 0,a.hV=!1,a.cV=function(){a.fV()},a.vV=function(){a.JR.vV()},a.rV=u,a.$R=a.rV.iV(),a.JR.kh(ul.fv,a.cV),a.aV=new kH(t8(a),a.JR),a}j(r,e);var s,o,u,a,h,c,f,l,p=r.prototype;return p.dV=function(e){if(A(e)||e<0)throw new y("Invalid duration");var r=e===1/0,s=r?0x1fffffffffffff:e;if(r&&this.$R.setLiveSeekableRange){var o=b.pow(2,39);this.$R.setLiveSeekableRange(0,o)}this.lV()?this.$R.duration=s:this.oV=s},p._V=function(e,r,s,o){this.sV=new kq(e,r,!!s,!!o)},s=P.coroutine(iO.mark(function e(){var r,s,o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=ra(this.ef.gV,function(e){return nW(e.$d,"audio")}),s=ra(this.ef.gV,function(e){return nW(e.$d,"video")}),r&&(o=new kR,this.aV.jX(o),this.eV=new kM(this,this.JR,r,l4.Xl,o),this.eV.kh(kw.aH,this.vV)),s&&(u=new kR,this.aV.jX(u),this.uV=new kM(this,this.JR,s,l4.Vl,u),this.uV.kh(kw.aH,this.vV)),e.next=6,this.wV();case 6:if(!this.eV){e.next=12;break}return e.next=9,this.yV(this.eV.$d);case 9:return a=e.sent,e.next=12,this.eV.TX(a);case 12:if(!this.uV){e.next=18;break}return e.next=15,this.yV(this.uV.$d);case 15:return h=e.sent,e.next=18,this.uV.TX(h);case 18:case"end":return e.stop()}},e,this)})),p.iI=function(){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function r(){var s;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s=URL.createObjectURL(this.$R),r.next=3,e.prototype.Hm.call(this,s);case 3:return r.next=5,e.prototype.bc.call(this);case 5:case"end":return r.stop()}},r,this)})),p.wV=function(){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.bw===kX.u_){e.next=3;break}return e.next=3,cJ(this.$R,"sourceopen");case 3:if(!(this.eV&&this.eV.BH||this.uV&&this.uV.BH)){e.next=6;break}throw new y("kV");case 6:return e.abrupt("return",this.$R.addSourceBuffer(r));case 7:case"end":return e.stop()}},e,this)})),p.yV=function(e){return u.apply(this,arguments)},p.lV=function(){if(this.bw!==kX.u_)return!1;var e=this.eV&&this.eV.KL,r=this.uV&&this.uV.KL;return!(e||r)},p.bH=function(){this.hV=!0,this.eV&&this.eV.bH(),this.uV&&this.uV.bH(),this.hV=!1,this.fV()},p.IX=function(e){var r=ra(e.gV,function(e){return nW(e.$d,"audio")}),s=ra(e.gV,function(e){return nW(e.$d,"video")});if(this.eV){if(!r||!this.eV.IX(r))return!1}else if(r)return!1;if(this.uV){if(!s||!this.uV.IX(s))return!1}else if(s)return!1;return!0},a=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=ra(r.gV,function(e){return nW(e.$d,"audio")}),o=ra(r.gV,function(e){return nW(e.$d,"video")}),u=[],this.eV&&u.push(this.eV.RX(s)),this.uV&&u.push(this.uV.RX(o)),e.next=7,P.all
1(u);case 7:this.ef=r;case 8:case"end":return e.stop()}},e,this)})),p.RX=function(e){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!this.eV){r.next=4;break}return r.next=3,this.eV.rh();case 3:this.eV=void 0;case 4:if(!this.uV){r.next=8;break}return r.next=7,this.uV.rh();case 7:this.uV=void 0;case 8:return this.kf.src&&URL.revokeObjectURL(this.kf.src),this.JR.Eh(ul.fv,this.cV),this.aV.Kl(),r.next=13,e.prototype.rh.call(this);case 13:case"end":return r.stop()}},r,this)})),p.rh=function(){return h.apply(this,arguments)},p.NX=function(){var e=this,r=this.ef,s=r.gV.map(function(r){return nW(r.$d,"audio")&&e.eV?e.eV.iE:nW(r.$d,"video")&&e.uV?e.uV.iE:r});this.ef=iD({},r,{gV:s})},p.xH=function(){this.hV||this.fV()},p.fV=function(){this.mV&&this.lV()&&(this.$R.endOfStream(),this.oV=void 0,this.yh(new rX(kl.UB)),this.JR.vV())},c=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.yV(r.$d);case 3:return s=e.sent,e.next=6,r.TX(s);case 6:e.next=14;break;case 8:return e.prev=8,e.t0=e.catch(0),(o=this.pV).push(r),e.next=14,this.AV(o);case 14:case"end":return e.stop()}},e,this,[[0,8]])})),p.EX=function(e){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!Q.Pu){e.next=3;break}throw new y("Not supported in Firefox");case 3:this.$R.removeSourceBuffer(s),e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(0),o=this.pV.filter(function(e){return e!==r}),e.next=11,this.AV(o);case 11:case"end":return e.stop()}},e,this,[[0,6]])})),p.SX=function(e,r){return f.apply(this,arguments)},l=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.JR.bV(),s=0,o=this.pV;case 2:if(!(s<o.length)){e.next=10;break}if(!(u=o[s])){e.next=7;break}return e.next=7,u.Yg();case 7:s++,e.next=2;break;case 10:return this.$R=this.rV.iV(),e.next=13,this.wV();case 13:a=0;case 14:if(!(a<r.length)){e.next=24;break}return h=r[a],e.next=18,this.yV(h.$d);case 18:return c=e.sent,e.next=21,h.TX(c);case 21:a++,e.next=14;break;case 24:this.JR.TV();case 25:case"end":return e.stop()}},e,this)})),p.AV=function(e){return l.apply(this,arguments)},p.mX=function(){this.lV()&&(this.uH?this.fV():void 0!==this.oV&&(this.$R.duration=this.oV,this.oV=void 0))},r.eH=function(e){if("u"<typeof MediaSource||"function"!=typeof MediaSource.isTypeSupported)return!1;for(var r=0,s=e.gV;r<s.length;r++){var o=s[r];if(!MediaSource.isTypeSupported(o.$d))return!1}return!0},M(r,[{key:"YX",get:function(){return this.eV}},{key:"QX",get:function(){return this.uV}},{key:"pV",get:function(){var e=[];return this.eV&&this.eV.CH&&e.push(this.eV),this.uV&&this.uV.CH&&e.push(this.uV),e}},{key:"ly",get:function(){if(this.oV)return this.oV;var e=this.$R.duration;return 0x1fffffffffffff===e?1/0:e}},{key:"rp",get:function(){var e;return kW?kB(this):((e=mo.uP(this.kf.buffered)).Zg>0&&this.uH&&(e=e.qC(mo.oP(e.EC(e.Zg-1)))),e)}},{key:"sH",get:function(){if(this.eV&&this.eV.CH)return this.eV.rp}},{key:"oH",get:function(){if(this.uV&&this.uV.CH)return this.uV.rp}},{key:"wp",get:function(){return this.sV.$X().UC(new mo([0,this.ly],[!0,!0]))}},{key:"uH",get:function(){return(!this.eV||!this.eV.CH||this.eV.uH())&&(!this.uV||!this.uV.CH||this.uV.uH())}},{key:"bw",get:function(){return this.$R.readyState}},{key:"mV",get:function(){if(!this.uH)return!1;var e=this.rp;return 0!==e.Zg&&e.bC(e.Zg-1)<=this.JR.vy}}]),r}(kb),kJ=function(e){function r(r,s,o,u,a,h,c,f){var l;return(l=e.call(this)||this).vP=r,l.EV=s,l.SV=o,l.lP=u,l.gP=a,l.dP=h,l._P=c,l.wP=f,l}j(r,e);var s=r.prototype;return s.xm=function(){this.lP||(this.lP=!0,this.yh(new lt(this.vy)))},s.Mm=function(){this.lP&&(this.lP=!1,this.yh(new le(this.vy)))},M(r,[{key:"vy",get:function(){return this.vP},set:function(e){this.vy!==e&&(this.vP=e,this.gP=!0,this.yh(new ll(this.vy)))}},{key:"ly",get:function(){return this.EV}},{key:"_y",get:function(){return this.SV}},{key:"yy",get:function(){return this.lP}},{key:"Ay",get:function(){return this.gP}},{key:"wy",get:function(){return this.dP},set:function(e){this.wy!==e&&(this.dP=e,this.yh(new lv(this.vy,this.Ey)))}},{key:"py",get:function(){return this._P},set:function(e){this.py!==e&&(this._P=e,this.yh(new la(this.vy,this.py)))}},{key:"Ey",get:function(){return this.wP},set:function(e){this.Ey!==e&&(this.wP=e,this.yh(new lv(this.vy,this.Ey)))}}]),r}(rB),kQ=function(e){function r(r){var s;return(s=e.call(this)||this).JR=void 0,s.gN=f1.Yw,s.RV=function(){s.NV()},s.JR=r,s}j(r,e);var s=r.prototype;return s.DV=function(e){this.gN!==e&&(this.gN=e,this.yh(new lg(this.JR.vy,e)))},s.NV=function(){this.DV(this.Bx())},s.Yg=function(){this.DV(f1.Yw)},s.rh=function(){this.Th()},M(r,[{key:"bw",get:function(){return this.Bx()}}]),r}(rB),kG=["emptied","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","timeupdate","progress","seeking","seeked"],kK=function(e){function r(r){var s;s=e.call(this,r)||this;for(var o=0;o<kG.length;o++){var u=kG[o];s.JR.pD.addEventListener(u,s.RV)}return s}j(r,e);var s=r.prototype;return s.Bx=function(){var e=this.JR.pD.readyState;return e>f1.Zw&&this.JR.CV?f1.Zw:(this.JR.pD.seeking&&e>f1.Qw&&(e=f1.Qw),e)},s.rh=function(){for(var r=0;r<kG.length;r++){var s=kG[r];this.JR.pD.removeEventListener(s,this.RV)}e.prototype.rh.call(this)},r}(kQ),kz=function(e){function r(r){var s;(s=e.call(this,r)||this).JR.kh(ul.fv,s.RV);for(var o=0;o<kG.length;o++){var u=kG[o];s.JR.pD.addEventListener(u,s.RV)}return s}j(r,e);var s=r.prototype;return s.Bx=function(){if(this.JR.pD.readyState===f1.Yw)return f1.Yw;var e=this.PV(),r=e?e.EC-e.bC:0;if(!e)return f1.Qw;var s=this.JR.py;return this.BV()||r>=3*s?f1.Jw:r>=3?f1.Kw:f1.Zw},s.PV=function(){var e=this.JR.vy,r=this.JR.rp.WC(.04),s=r.jC(e);if(!(s<0))return{bC:e,EC:r.EC(s)}},s.BV=function(){if(this.JR._y)return!0;var e=this.JR.ly,r=this.PV();return!!r&&e-r.EC<=t2},s.rh=function(){this.JR.Eh(ul.fv,this.RV);for(var r=0;r<kG.length;r++){var s=kG[r];this.JR.pD.removeEventListener(s,this.RV)}e.prototype.rh.call(this)},r}(kQ),kZ=[f7.Og,ul.tv,ul.$f,ul.fv,ul.hv,ul.Gf,fE.mw],k0=function(e){function r(r){var s;return(s=e.call(this,r)||this).kf=void 0,s.OV=!1,s.LV=function(){s.OV=!0,s.Ec()},s.kf=r.pD,s.kf.addEventListener(f7.oy,s.LV),s}j(r,e);var s=r.prototype;return s.MV=function(){return this.OV&&e.prototype.MV.call(this)},s.Ec=function(){this.OV&&(this.kf.paused||this.kf.ended||this.kf.error)&&(this.OV=!1),e.prototype.Ec.call(this)},s.Yg=function(){e.prototype.Yg.call(this),this.OV=!1},s.rh=function(){this.kf.removeEventListener(f7.oy,this.LV),e.prototype.rh.call(this)},r}(function(e){function r(r){var s;return(s=e.call(this)||this).IN=void 0,s.xV=!1,s.JL=function(){s.Ec()},s.IN=r,s.IN.kh(kZ,s.JL),s}j(r,e);var s=r.prototype;return s.UV=function(){return this.IN.bw<f1.Kw},s.MV=function(){return!this.IN.Ay&&!(this.IN.yy||this.IN._y||this.IN.Lh||this.UV())},s.Ec=function(){var e=this.xV;this.xV=this.MV(),!e&&this.xV&&this.yh(new gV(this.IN.vy))},s.Yg=function(){this.xV=!1},s.rh=function(){this.Th(),this.IN.Eh(kZ,this.JL)},r}(rB)),k1=function(e){function r(r){var s;return(s=e.call(this,fE.mw)||this).Lh=void 0,s.Lh=r,s}return j(r,e),r}(rX);function k2(e,r,s,o,u,a,h){void 0===u&&(u=!1),void 0===a&&(a=0),void 0===h&&(h=e.length);for(var c=a,f=h-1;c<=f;){var l=c+(f-c>>1),p=o(s(e[l]),r);if(p<0)c=l+1;else if(p>0)f=l-1;else{if(!(u&&l>a&&0===o(s(e[l-1]),r)))return l;f=l-1}}return~c}function k3(e,r){return e.xp<=r&&e.Up>r}
1function k5(e,r){return lI(e.xp,r.xp,.02)||lI(e.Up,r.Up,.02)}function k4(e,r){var s=k2(e,r,N,k5,!0);if(s<0)return s;for(;s<e.length&&k5(r,e[s])===lC.Sy;s++)if(e[s].xy(r))return s;return-(s+1)}function k6(e){var r=e.yg;if(!r)return -1;if(e instanceof pL)return r.FV(e);var s=r.Tw;if(!s)return -1;var o=k4(s.Qg,e);return o>=0?o:-1}function k8(e,r){var s=function(e,r,s){for(var o=e.length,u=r.length,a=0,h=0,c=[],f=[];a<o&&h<u;){var l=e[a],p=r[h];l===p?(a++,h++):0>=s(p,l)?(c.push(p),h++):(f.push(l),a++)}for(;a<o;)f.push(e[a]),a++;for(;h<u;)c.push(r[h]),h++;return{HV:c,XV:f}}(e,r,k5);return function(e,r){for(var s=r.length,o=0;o<s;o++)e[o]=r[o];e.length=s}(e,r),s}var k7=function(){function e(e){this.VV=void 0,this._g=void 0,this.VV=e}var r=e.prototype;return r.wg=function(){for(var e=this,r=[],s=0;s<e.Zg;s++)r[s]=e.qh(s).gg;return r.item=function(r){var s=e.qh(0|r);return s&&s.gg||void 0},w.defineProperty(r,"constructor",{value:pC}),r},r.kp=function(e){for(var r=this.VV,s=r.length-1;s>=0;s-=1){var o=r[s];if(e.xy(o))return!0}return!1},r.qh=function(e){return this.VV[e]},M(e,[{key:"Qg",get:function(){return this.VV}},{key:"Zg",get:function(){return this.VV.length}},{key:"gg",get:function(){if(this._g){var e=this.VV;this._g.length=e.length;for(var r=0;r<e.length;r++)this._g[r]=e[r].gg}else this._g=this.wg();return this._g}}]),e}(),k9=function(e){function r(r,s){var o;return(o=e.call(this,cZ.Og)||this).yg=r,o.bw=s,o}return j(r,e),r.prototype.wg=function(){return new Et(this.yg.gg,this.bw)},r}(c1),Et=function(e){function r(r,s){var o;return(o=e.call(this,"readystatechange")||this).track=r,o.readyState=s,o}return j(r,e),r}(c2),Ee=function(e){function r(r){var s;return(s=e.call(this,cZ.Mg)||this).yg=r,s}return j(r,e),r.prototype.wg=function(){return new En(this.yg.gg)},r}(c1),En=function(e){function r(r){var s;return(s=e.call(this,"typechange")||this).track=r,s}return j(r,e),r}(c2),Ei=function(e){function r(r){var s;return(s=e.call(this,cZ.pg)||this).Mp=r,s}return j(r,e),r.prototype.wg=function(){return new Er(this.Mp.gg)},r}(c1),Er=function(e){function r(r){var s;return(s=e.call(this,"addcue")||this).cue=r,s}return j(r,e),r}(c2),Es=function(e){function r(r){var s;return(s=e.call(this,cZ.Tg)||this).Mp=r,s}return j(r,e),r.prototype.wg=function(){return new Eo(this.Mp.gg)},r}(c1),Eo=function(e){function r(r){var s;return(s=e.call(this,"removecue")||this).cue=r,s}return j(r,e),r}(c2),Eu=function(e){function r(r,s,o,u,a,h,c){var f;return(f=e.call(this)||this)._g=void 0,f.pp=void 0,f.bp=pt++,f.WV=!1,f.qV=void 0,f.GV=void 0,f.Ap=void 0,f.zV=void 0,f.LP=fk.gw,f.jV=ps.NONE,f.YV=void 0,f.Xs=void 0,f.VV=[],f.QV=[],f.ZV=void 0,f.KV=void 0,f.JV=0,f.$V=0,f.pp=s||"",f.qV=c||"",f.GV=r,f.zV=u||"",f.WV=!!a,f.Xs=h||po.DEFAULT,f.Ap=o||"",f.ZV=new k7(f.VV),f.KV=new k7(f.QV),f}j(r,e);var s=r.prototype;return s.tW=function(e){return ra(this.ZV.Qg,function(r){return r.hw===e})},s.wg=function(){return fC(this)},s.ZP=function(e){var r=fx(e);r!==this.Aw&&(this.LP=r,r===fk.gw&&(this.QV.forEach(function(e){e.iA=!1}),rv(this.QV),this.$V=0))},s.DS=function(e){if(e&&!e.yg){var r=k4(this.Tw.Qg,e);if(!(r>=0)){e.yg=this;var s=-(r+1);this.VV.splice(s,0,e),this.nW(s),e.nA=s,s<this.$V&&(this.$V=s),this.yh(new Ei(e))}}},s.bS=function(e){if(e&&e.yg===this){var r=this.FV(e);if(!(r<0)){e.iA=!1;var s=this.QV,o=k4(s,e);o>=0&&rf(s,o),rf(this.VV,r),this.nW(r),e.nA=-1,this.$V>r&&--this.$V,this.yh(new Es(e))}}},s.iW=function(e,r){var s=this.QV,o=this.VV,u=this.$V,a=!1;r&&(u=0);for(var h=s.length-1;h>=0;h--)k3(s[h],e)||(a=!0,rf(s,h));for(;u<o.length&&o[u].xp<=e;){var c=o[u];k3(c,e)&&!rl(s,c)&&(a=!0,s.push(c)),u++}a&&rs(s,k5),this.$V=u},s.FV=function(e){return(-1===e.nA||e.nA>=this.JV)&&this.rW(),e.nA},s.rW=function(){for(var e=this.VV,r=this.JV;r<e.length;r++)e[r].nA=r;this.JV=e.length},s.nW=function(e){e<this.JV&&(this.JV=e)},s.Kl=function(){this.Th();for(var e=this.VV.slice(),r=0;r<e.length;r++)e[r].Kl();rv(this.VV),rv(this.QV)},M(r,[{key:"Ew",get:function(){return this.KV}},{key:"Tw",get:function(){return this.ZV}},{key:"PS",get:function(){return this.WV},set:function(e){this.WV=e}},{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}},{key:"hw",get:function(){return this.pp}},{key:"cw",get:function(){return this.bp}},{key:"pw",get:function(){return this.qV},set:function(e){this.qV=e}},{key:"fw",get:function(){return this.GV}},{key:"vw",get:function(){return this.Ap},set:function(e){e!==this.Ap&&(this.Ap=e,this.yh(new l7(this)))}},{key:"dw",get:function(){return this.zV}},{key:"Aw",get:function(){return this.LP},set:function(e){this.ZP(e),this.yh(new c7(this))}},{key:"bw",get:function(){return this.jV}
1,set:function(e){this.jV!==e&&(this.jV=e,this.yh(new k9(this,this.jV)))}},{key:"Sw",get:function(){return this.YV},set:function(e){this.YV=e}},{key:"Ua",get:function(){return this.Xs},set:function(e){this.Xs!==e&&(this.Xs=e,this.yh(new Ee(this)))}}]),r}(rB),Ea=function(e){function r(r){var s;(s=e.call(this)||this).eW=[],s.uW=function(e){s.Gg(e.yg)},s.sW=function(e){var r=e.yg;s.oW(r)||s.zg(r)};for(var o=0;o<r.length;o++){var u=r[o];s.aW(u)}return s}j(r,e);var s=r.prototype;return s.aW=function(e){this.eW.push(e);for(var r=0,s=e.Qg;r<s.length;r++){var o=s[r];this.Gg(o)}this.hW(e)},s.cW=function(e){rc(this.eW,e),this.fW(e);for(var r=0,s=e.Qg;r<s.length;r++){var o=s[r];this.oW(o)||this.zg(o)}},s.oW=function(e){for(var r=0,s=this.eW;r<s.length;r++)if(s[r].jg(e))return!0;return!1},s.hW=function(e){e.kh(cG.cg,this.uW),e.kh(cG.vg,this.sW)},s.fW=function(e){e.Eh(cG.cg,this.uW),e.Eh(cG.vg,this.sW)},s.Kl=function(){for(;this.eW.length>0;)this.cW(this.eW[0]);e.prototype.Kl.call(this)},s.wg=function(){return fR(this)},r}(c8),Eh=function(e){function r(r,s){var o;return(o=e.call(this,pg.Pp,r)||this).Ck=s,o}return j(r,e),r.prototype.wg=function(){return new Ec(this.Mp.gg)},r}(pA),Ec=function(e){function r(r){return e.call(this,pm.Pp,r)||this}return j(r,e),r}(px),Ef=function(e){function r(r,s){var o;return(o=e.call(this,pg.Op,r)||this).Ck=s,o}return j(r,e),r.prototype.wg=function(){return new El(this.Mp.gg)},r}(pA),El=function(e){function r(r){return e.call(this,pm.Op,r)||this}return j(r,e),r}(px),Ep=function(e){function r(r){var s;return(s=e.call(this,cZ.Sg)||this).Mp=r,s}return j(r,e),r.prototype.wg=function(){return new Ev(this.Mp.gg)},r}(c1),Ev=function(e){function r(r){var s;return(s=e.call(this,"entercue")||this).cue=r,s}return j(r,e),r}(c2),Ed=function(e){function r(r){var s;return(s=e.call(this,cZ.Rg)||this).Mp=r,s}return j(r,e),r.prototype.wg=function(){return new Ey(this.Mp.gg)},r}(c1),Ey=function(e){function r(r){var s;return(s=e.call(this,"exitcue")||this).cue=r,s}return j(r,e),r}(c2),Eg=function(e){function r(r){var s;return(s=e.call(this)||this).vW=void 0,s.bp=void 0,s.Zp=void 0,s._g=void 0,s.Kp=!1,s.tA="",s.dW=function(){s.iA=!0},s.lW=function(){s.iA=!1},s.bp=pi++,s.vW=r,s.vW.addEventListener("enter",s.dW),s.vW.addEventListener("exit",s.lW),s}j(r,e);var s=r.prototype;return s.wg=function(){return pT(this)},s.xy=function(e){return this===e||fo(this,e)&&pR(this,e)},s.Kl=function(){this.Th(),this.vW.removeEventListener("enter",this.dW),this.vW.removeEventListener("exit",this.lW)},M(r,[{key:"cw",get:function(){return this.bp}},{key:"xp",get:function(){return this.vW.startTime},set:function(e){this.vW.startTime=e}},{key:"Up",get:function(){return this.vW.endTime},set:function(e){this.vW.endTime=e}},{key:"Fp",get:function(){return this.vW.text},set:function(e){this.vW.text=e+""}},{key:"eA",get:function(){return!!this.vW.pauseOnExit},set:function(e){this.vW.pauseOnExit=!!e}},{key:"yg",get:function(){return this.Zp},set:function(e){this.Zp=e}},{key:"hw",get:function(){return this.vW.id||""}},{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}},{key:"rA",get:function(){return this.tA},set:function(e){this.tA=e}},{key:"iA",get:function(){return this.Kp},set:function(e){this.iA!==e&&(this.Kp=e,e?(this.yh(new Eh(this,this.xp)),this.Zp&&this.Zp.yh(new Ep(this))):(this.yh(new Ef(this,this.Up)),this.Zp&&this.Zp.yh(new Ed(this))))}}]),r}(f_),Em=function(e){function r(r){var s;return(s=e.call(this,cZ.Dg)||this).yg=r,s}return j(r,e),r.prototype.wg=function(){return new Ew(this.yg.gg)},r}(c1),Ew=function(e){function r(r){var s;return(s=e.call(this,"cuechange")||this).track=r,s}return j(r,e),r}(c2);function Eb(e){if(e){var r=e.THEOplayerVTTRegion;return r||(r=new Ek(e),e.THEOplayerVTTRegion=r),r}}var Ek=function(){function e(e){this._W=void 0,this._g=void 0,this._W=e}return M(e,[{key:"gW",get:function(){return this._W}},{key:"hw",get:function(){return this._W.id||""}},{key:"Lo",get:function(){return+this._W.width||0},set:function(e){this._W.width=e||0}},{key:"uA",get:function(){return+this._W.lines||0},set:function(e){this._W.lines=e||0}},{key:"sA",get:function(){return+this._W.regionAnchorX||0},set:function(e){this._W.regionAnchorX=e||0}},{key:"oA",get:function(){return+this._W.regionAnchorY||0},set:function(e){this._W.regionAnchorY=e||0}},{key:"hA",get:function(){return+this._W.viewportAnchorX||0},set:function(e){this._W.viewportAnchorX=e||0}},{key:"cA",get:function(){return+this._W.viewportAnchorY||0},set:function(e){this._W.viewportAnchorY=e||0}},{key:"aA",get:function(){return this._W.scroll||""}},{key:"gg",get:function(){return this._g||(this._g=pU(this)),this._g}}]),e}(),EE=function(e){function r(r){return e.call(this,r)||this}return j(r,e),M(r,[{key:"jp",get:function(){return this.vW.vertical||""},set:function(e){this.vW.vertical=e||""}},{key:"zp",get:function(){return!!this.vW.snapToLines},set:function(e){this.vW.snapToLines=!!e}},{key:"Xp",get:function(){return this.vW.line},set:function(e){this.vW.line=e}},{key:"Qh",get:function(){return+this.vW.size},set:function(e){this.vW.size=tJ(e,0,100)}}]),r}(Eg),EA=function(e){function r(r){return e.call(this,r)||this}return j(r,e),r.prototype.xy=function(r){return this===r||fo(this,r)&&e.prototype.xy.call(this,r)&&p_(this,r)},M(r,[{key:"Gp",get:function(){return Eb(this.vW.region)}},{key:"Vp",get:function(){return this.vW.lineAlign||"start"},set:function(e){this.vW.lineAlign=e||"start"}},{key:"Wp",get:function(){return this.vW.position},set:function(e){this.vW.position=e}},{key:"qp",get:function(){return this.vW.positionAlign||"auto"},set:function(e){this.vW.positionAlign=e||"auto"}}
1,{key:"Hp",get:function(){return this.vW.align||"center"},set:function(e){this.vW.align=e||"center"}},{key:"gg",get:function(){return this._g||(this._g=pS(this)),this._g}}]),r}(EE),Ex=function(e){function r(r){return e.call(this,r)||this}return j(r,e),r.prototype.xy=function(r){return this===r||fo(this,r)&&e.prototype.xy.call(this,r)&&p_(this,r)},M(r,[{key:"Gp",get:function(){return Eb(this.gW)}},{key:"gW",get:function(){return function(e,r){if(void 0!==r){var s=e&&e.regions;return s&&s.getRegionById(r)||void 0}}(this.vW.track,this.vW.regionId)}},{key:"Vp",get:function(){var e;return"middle"===(e=this.vW.lineAlign||"start")?"center":e},set:function(e){var r;this.vW.lineAlign="center"===(r=e||"start")?"middle":r}},{key:"Wp",get:function(){return this.vW.position},set:function(e){this.vW.position=pE(e,this.Hp)}},{key:"qp",get:function(){return pb[this.vW.positionAlign||"middle"]},set:function(e){this.vW.positionAlign=pw[pk(e||"center",this.Hp)]}},{key:"Hp",get:function(){var e;return"middle"===(e=this.vW.align||"middle")?"center":e},set:function(e){var r;this.vW.align="center"===(r=e||"center")?"middle":r}},{key:"gg",get:function(){return this._g||(this._g=pS(this)),this._g}}]),r}(EE);function ET(e,r,s){for(var o=e[r].xp,u=r;u>=0&&e[u].xp===o;u--)e[u].Up=s}var EC,ES,ER,EL=function(e){function r(r,s){var o;return(o=e.call(this,r)||this).wW=void 0,o.wW=s,o}return j(r,e),r.prototype.xy=function(r){return this===r||fo(this,r)&&e.prototype.xy.call(this,r)&&this.Fp===r.Fp},M(r,[{key:"Fp",get:function(){return this.wW}},{key:"gg",get:function(){return this._g||(this._g=pT(this)),this._g}}]),r}(Eg);function E_(e){switch(e){case ES.ISO_8859_1:case ES.UTF16_BOM:case ES.UTF16:case ES.UTF8:return!0}return!1}function EP(e){switch(e){case ES.ISO_8859_1:return sA;case ES.UTF16_BOM:return sS;case ES.UTF16:return sR;case ES.UTF8:return sU}}function EI(e,r){var s=r.Zh,o=e.byteLength,u=sV(e);return r.Kh(o-s),sq(u,s,o).buffer}function EN(e,r){return{id:e||"",data:r instanceof ArrayBuffer?r:void 0}}function EO(e,r,s){var o=sl(e,r);if(E_(o)){var u=EP(o);return{id:s,language:sE(e,r,3),description:u(e,r),text:u(e,r)}}}function ED(e,r,s){var o=sl(e,r);if(E_(o)){var u=EP(o);return{id:s,mimeType:sA(e,r),fileName:u(e,r),description:u(e,r),data:EI(e,r)}}}function EU(e,r,s){var o=sl(e,r);if(E_(o)){for(var u=EP(o),a=[];r.Zh<e.byteLength;)a.push({involvement:u(e,r),involvee:u(e,r)});return{id:s,entries:a}}}function EM(e,r,s){var o=sl(e,r);if(E_(o)){for(var u=EP(o),a=sE(e,r,3),h=sl(e,r),c=sl(e,r),f=u(e,r),l=!1,p=[];r.Zh<e.byteLength;){var v=void 0;if(o===ES.UTF16_BOM){var d=sC(e,r);void 0===d?d=l:l=d,v=sR(e,r,d)}else v=u(e,r);if(!v||r.Zh+4>e.byteLength)break;p.push({text:v,timestamp:sm(e,r)})}return{id:s,language:a,format:h,contentType:c,description:f,entries:p}}}function EF(e,r,s){return{id:s,ownerIdentifier:sA(e,r),identifier:EI(e,r)}}function Ej(e,r,s){var o=sl(e,r);if(E_(o)){var u=EP(o);return{id:s,language:sE(e,r,3),description:u(e,r),text:u(e,r)}}}function EH(e,r,s){var o=sl(e,r);if(E_(o))return{id:s,text:EP(o)(e,r)}}function EB(e,r,s){return{id:s,url:sA(e,r)}}function EV(e,r,s){var o=sl(e,r);if(E_(o)){var u=EP(o);return{id:s,description:u(e,r),text:u(e,r)}}}function EX(e,r,s){var o=sl(e,r);if(E_(o))return{id:s,description:EP(o)(e,r),url:sA(e,r)}}function EW(e,r,s){switch(s){case"APIC":var o=sl(e,r);if(E_(o)){var u=EP(o),a=sA(e,r);return{id:s,mimeType:a,pictureType:sl(e,r),description:u(e,r),data:"--\x3e"===a?sA(e,r):EI(e,r)}}return;case"COMM":return EO(e,r,s);case"COMR":return function(e,r,s){var o=sl(e,r);if(E_(o)){var u,a,h=EP(o),c=sA(e,r),f=sE(e,r,8),l=sA(e,r),p=sl(e,r),v=h(e,r),d=h(e,r);return r.Zh<e.byteLength&&(u=sA(e,r)||"image/",a=EI(e,r)),{id:s,price:c,validUntil:f,contactURL:l,receivedAs:p,nameOfSeller:v,description:d,pictureMimeType:u,sellerLogo:a}}}(e,r,s);case"GEOB":return ED(e,r,s);case"IPLS":return EU(e,r,s);case"PRIV":return{id:s,ownerIdentifier:sA(e,r),data:EI(e,r)};case"POSS":return{id:s,format:sl(e,r),position:sm(e,r)};case"SYLT":return EM(e,r,s);case"TXXX":return EV(e,r,s);case"UFID":return EF(e,r,s);case"USER":var h=sl(e,r);
1if(E_(h)){var c=EP(h);return{id:s,language:sE(e,r,3),text:c(e,r)}}return;case"USLT":return Ej(e,r,s);case"WXXX":return EX(e,r,s);case"YMID":case"YTYP":case"YSEQ":case"YDUR":case"YCSP":return EH(e,r,s);default:var f=s.charAt(0);if("T"===f)return EH(e,r,s);if("W"===f)return EB(e,r,s)}}function Eq(e,r){return(127&sl(e,r))<<21|(127&sl(e,r))<<14|(127&sl(e,r))<<7|127&sl(e,r)}function EY(e){for(var r=new x(e.byteLength),s=0,o=0;o<e.byteLength;o++){var u=e.getUint8(o);255===u&&o++,r[s]=u,s++}return new DataView(r,0,s)}function E$(e){switch(e.key){case"APIC":case"PIC":return{id:e.key,mimeType:e.type,pictureType:16,description:e.info,data:e.data};case"GEOB":case"GEO":return{id:e.key,mimeType:e.type,fileName:e.name,description:e.info,data:e.data};case"PRIV":return{id:e.key,ownerIdentifier:e.info,data:e.data};case"TXXX":case"TXX":return{id:e.key,description:e.info,text:e.data};case"WXXX":case"WXX":return{id:e.key,description:e.info,url:e.data};case"YMID":case"YTYP":case"YSEQ":case"YDUR":case"YCSP":return EH(new DataView(e.data),new sJ,e.key);default:var r=e.key.charAt(0);if("T"===r)return{id:e.key,text:e.data};if("W"===r)return{id:e.key,url:e.data}}return EN(e.key,e.data)}(Al=ES||(ES={}))[Al.ISO_8859_1=0]="ISO_8859_1",Al[Al.UTF16_BOM=1]="UTF16_BOM",Al[Al.UTF16=2]="UTF16",Al[Al.UTF8=3]="UTF8",(Ap=ER||(ER={}))[Ap.V22=2]="V22",Ap[Ap.V23=3]="V23",Ap[Ap.V24=4]="V24";var EJ=function(e){function r(r,s,o){var u;return void 0===o&&(o=!0),(u=e.call(this)||this).mp=void 0,u.RW=void 0,u.VV=[],u.QV=[],u.ZV=void 0,u.KV=void 0,u.bp=void 0,u.Ap=void 0,u.LP=fk.gw,u.jV=ps.NONE,u._g=void 0,u.YV=void 0,u.Xs=po.DEFAULT,u.NW=void 0,u.DW=function(){u.PW(),u.mp.removeEventListener("cuechange",u.DW)},u.BW=function(){u.Aw!==fk.gw&&(u.OW(),u.iW(),u.VV.length&&u.LW(ps.LOADING))},u.MW=function(){u.LW(ps.LOADED)},u.xW=function(){u.LW(ps.ERROR)},u.mp=r,u.NW=o,u.mp.addEventListener("cuechange",u.DW),u.mp.addEventListener("cuechange",u.BW),u.RW=s,u.RW&&(u.YV=nz(u.RW.src),u.RW.addEventListener("load",u.MW),u.RW.addEventListener("error",u.xW)),u.bp=pt++,u.Ap=r.label||"",u.ZV=new k7(u.VV),u.KV=new k7(u.QV),u.Aw=u.UW,rI(function(){u.BW(),u.LW(ps.NONE)}),u}j(r,e);var s=r.prototype;return s.wg=function(){return fC(this)},s.PW=function(){var e=this.Aw;this.FW||e!==fk.yw?this.UW=e:this.UW=fk.ww},s.HW=function(){var e=this.Aw,r=this.UW;e!==r&&(this.FW||e!==fk.yw||r!==fk.ww)&&("metadata"===this.fw&&r===fk.gw?this.Aw=e:this.Aw=r)},s.NV=function(e){this.jV!==e&&(this.jV=e,this.yh(new k9(this,e)))},s.LW=function(e){var r=b.max(this.jV,this.XW,e);this.NV(r)},s.VW=function(e){return e&&e.THEOplayerTextTrackCue||void 0},s.WW=function(e){var r=this.VW(e);if(r)return r;if(tt(r=this.qW(e)))for(var s=0,o=r;s<o.length;s++)o[s].yg=this;else r.yg=this;return e.THEOplayerTextTrackCue=r,r},s.qW=function(e){return e&&"org.id3"===e.type&&e.value?(this.Ua=po.ID3,function(e){var r;try{r=E$(e.value)}catch(e){r=EN("")}return new EL(e,r)}(e)):e&&e.data instanceof ArrayBuffer?(this.Ua=po.ID3,function(e){var r=[];try{var s,o,u,a=(s=new DataView(e.data),o=new sJ,(u=function(e,r){if(e.byteLength-r.Zh<10||73!==sl(e,r)||68!==sl(e,r)||51!==sl(e,r))return null;var s=sl(e,r),o=sl(e,r);if(!function(e){switch(e){case ER.V22:case ER.V23:case ER.V24:return!0}return!1}(s))return null;var u=sl(e,r),a=Eq(e,r);return{Xb:s,bW:o,Vb:function(e,r){switch(e){case ER.V24:return{yW:sf(r,0),kW:sf(r,1),mW:sf(r,2),pW:sf(r,3)};case ER.V23:return{yW:sf(r,0),kW:sf(r,1),mW:sf(r,2)};case ER.V22:return{yW:sf(r,0),AW:sf(r,1)}}}(s,u),TW:a}}(s,o))?{Mb:u,IW:function(e,r,s){var o=[],u=r.Zh,a=sH(e,u,u+s.TW),h=new sJ;switch(r.Kh(s.TW),s.Xb){case ER.V22:case ER.V23:s.Vb.yW&&(a=EY(a))}for(!function(e,r,s){var o,u,a,h,c;switch(s.Xb){case ER.V23:s.Vb.kW&&(o=r.Zh,u=sm(e,r)+4,a=32768&sg(e,r),r.$h(o+u),a&&sm(e,r));break;case ER.V24:s.Vb.kW&&(h=r.Zh,c=Eq(e,r),r.$h(h+c))}}(e,r,s);h.Zh<a.byteLength;)o.push(function(e,r,s){var o,u,a=function(e,r,s){var o,u,a,h,c,f;switch(s.Xb){case ER.V22:return{hw:sE(e,r,3),Qh:sy(e,r,3)};case ER.V23:return o=sE(e,r,4),u=sm(e,r),sl(e,r),{hw:o,Qh:u,Vb:{AW:sf(a=sl(e,r),0),EW:sf(a,1),groupingIdentity:sf(a,2)}};case ER.V24:return h=sE(e,r,4),c=Eq(e,r),sl(e,r),{hw:h,Qh:c,Vb:{groupingIdentity:sf(f=sl(e,r),1),AW:sf(f,4),EW:sf(f,5),yW:sf(f,6),SW:sf(f,7)}}}}(e,r,s),h=r.Zh,c=sH(e,h,h+a.Qh);switch(r.Kh(a.Qh),s.Xb){case ER.V22:o=function(e,r,s){switch(s){case"COM":return EO(e,r,s);case"GEO":return ED(e,r,s);case"IPL":return EU(e,r,s);case"PIC":return function(e,r,s){var o=sl(e,r);if(E_(o)){var u,a,h=EP(o),c=sE(e,r,3),f=sl(e,r),l=h(e,r);return"--\x3e"===c?(u=c,a=sA(e,r)):(u="image/"+c.toLowerCase(),a=EI(e,r)),{id:s,mimeType:u,pictureType:f,description:l,data:a}}}(e,r,s);case"SLT":return EM(e,r,s);case"TXX":return EV(e,r,s);case"UFI":return EF(e,r,s);case"ULT":return Ej(e,r,s);case"WXX":return EX(e,r,s);default:if("T"===s.charAt(0))return EH(e,r,s);if("W"===s.charAt(0))return EB(e,r,s)}}(u=c,new sJ,a.hw);break;case ER.V23:var f,l,p=new sJ;f=c,(l=a.Vb).AW&&sm(f,p),l.EW&&sl(f,p),l.groupingIdentity&&sl(f,p),o=EW(u=sH(c,p.Zh,c.byteLength),new sJ,a.hw);break;case ER.V24:var v,d,y=new sJ;a.Vb.yW&&(c=EY(c)),v=c,(d=a.Vb).groupingIdentity&&sl(v,y),d.AW&&sm(v,y),d.EW&&sl(v,y),d.SW&&Eq(v,y),o=EW(u=sH(c,y.Zh,c.byteLength),new sJ,a.hw)}if(!o){var g=sY(sV(u));o=EN(a.hw,g.buffer)}return o}(a,h,s));return o}(s,o,u)}:null);if(a)for(var h=0,c=a.IW;h<c.length;h++){var f=c[h];r.push(new EL(e,f))}}catch(e){}return r}(e)):"text"in e?(this.Ua=po.WEBVTT,"regionId"in e?new Ex(e):new EA(e)):new Eg(e)},s.GW=function(e){var r=[];if(!e)return r;for(var s=e.length,o=0;o<s;o++){var u=this.WW(e[o]||e.item(o));if(tt(u))for(var a=0;a<u.length;a++){var h=u[a];r.push(h)}else r.push(u)}return r},s.OW=function(){for(var e=this.GW(this.mp.cues),r=k8(this.VV,e),s=0,o=r.XV;s<o.length;s++){var u=o[s];this.yh(new Es(u))}for(var a=0,h=r.HV;a<h.length;a++){var c=h[a];this.yh(new Ei(c))}},s.iW=function(){for(var e=this.GW(this.mp.activeCues),r=k8(this.QV,e),s=0,o=r.XV;s<o.length;s++)o[s].iA=!1;for(var u=0,a=r.HV;u<a.length;u++)a[u].iA=!0;(r.HV.length||r.XV.length)&&this.yh(new Em(this))},s.Kl=function(){this.Th();for(var e=this.VV.slice(),r=0;r<e.length;r++)e[r].Kl();
1rv(this.VV),rv(this.QV),this.mp.removeEventListener("cuechange",this.BW),this.RW&&(this.mp.removeEventListener("load",this.MW),this.mp.removeEventListener("error",this.xW)),this.RW&&n9(this.RW)},M(r,[{key:"Ew",get:function(){return this.KV}},{key:"PS",get:function(){return this.RW?this.RW.default:void 0}},{key:"Tw",get:function(){return this.ZV}},{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}},{key:"hw",get:function(){return this.mp.id||this.RW&&this.RW.id||""}},{key:"cw",get:function(){return this.bp}},{key:"pw",get:function(){return this.mp.inBandMetadataTrackDispatchType||""}},{key:"fw",get:function(){return this.mp.kind||vV.ob}},{key:"vw",get:function(){return this.Ap},set:function(e){e!==this.vw&&(this.Ap=e,this.yh(new l7(this)))}},{key:"dw",get:function(){return this.mp.language||""}},{key:"Aw",get:function(){return this.LP},set:function(e){var r=this.Aw;this.LP=fx(e),this.PW();var s=this.Aw;r!==s&&this.yh(new c7(this)),s!==fk.gw&&this.LW(ps.LOADING)}},{key:"UW",get:function(){return fx(this.mp.mode)},set:function(e){this.mp.mode=e}},{key:"Rp",get:function(){return this.mp}},{key:"bw",get:function(){return this.jV}},{key:"XW",get:function(){return this.RW?+this.RW.readyState||ps.NONE:ps.LOADED}},{key:"Sw",get:function(){return this.YV}},{key:"Ua",get:function(){return this.Xs},set:function(e){this.Xs!==e&&(this.Xs=e,this.yh(new Ee(this)))}},{key:"FW",get:function(){return this.NW},set:function(e){this.NW=e,this.PW()}}]),r}(rB);function EQ(e){return e instanceof EJ}function EG(e,r){var s,o,u;return lP(e.Ck,r.Ck)||(s=e.Mp,o=r.Mp,s.yg===o.yg?l_(k6(s),k6(o)):v5(s.yg,o.yg))||((u=e.type)===r.type?lC.Sy:u===pg.Pp?lC.Ry:lC.Iy)}var EK=function(){function e(e,r){var s=this;this.dC=void 0,this.zW=void 0,this.Rm=[],this.jW=0,this.YW=0,this.QW=[],this.ZW=!1,this.KW=!1,this.JW=void 0,this.$W=function(){s.jW=0,s.tq(),s.nq()},this.iq=function(){s.tq(),s.nq()},this.rq=function(){s.KW=!0,s.JW=s.dC.vy,s.uq()},this.oq=function(){s.tq(),s.nq()},this.aq=function(){s.hq(),s.tq(),s.nq()},this.cq=function(){s.fq()},this.vq=function(e){rc(s.QW,e.Mp),s.fq()},this.zW=r,this.dC=e,e.kh(ul.Av,this.iq),e.kh(ul.tv,this.iq),e.kh(f7.oy,this.iq),e.kh(ul.$f,this.iq),e.kh(ul.fv,this.rq),e.kh(ul.hv,this.oq),this.fq()}var r=e.prototype;return r.Yg=function(){rv(this.QW);for(var e=0,r=this.Rm.slice();e<r.length;e++){var s=r[e];this.zg(s)}this.uq(),this.jW=0,this.YW=0,this.ZW=!1,this.KW=!1,this.JW=void 0},r.Gg=function(e){rl(this.Rm,e)||(this.Rm.push(e),e.kh(cZ.pg,this.cq),e.kh(cZ.Tg,this.vq),e.kh(cZ.Pg,this.aq),e.Tw.Zg&&this.fq(),this.hq())},r.zg=function(e){if(rc(this.Rm,e)){if(e.Eh(cZ.pg,this.cq),e.Eh(cZ.Tg,this.vq),e.Eh(cZ.Pg,this.aq),e.Tw.Zg){for(var r=0,s=e.Tw.Qg;r<s.length;r++){var o=s[r];rc(this.QW,o)}this.fq()}this.hq()}},r.hq=function(){this.ZW=this.Rm.some(function(e){return e.Aw!==fk.gw})},r.nq=function(){this.dC.Ay||this.dC.yy?this.uq():this.fq()},r.fq=function(){this.ZW&&(this.jW||(this.jW=this.zW.Qr(this.$W)))},r.uq=function(){this.jW&&(this.zW.dq(this.jW),this.jW=0)},r.tq=function(){var e;if(this.ZW&&!this.dC.Ay){var r=this.Rm,s=this.YW,o=null!=(e=this.JW)?e:this.dC.vy,u=o-s<-.1,a=this.KW||u;a&&o>s&&o-s<.1&&(a=!1),this.KW=!1,this.JW=void 0;for(var h,c=[],f=0;f<r.length;f++){var l=r[f];if(l.Aw!==fk.gw){l.iW(o,a);for(var p=0,v=l.Ew.Qg;p<v.length;p++){var d=v[p];c.push(d)}}}if(a)h=this.QW;else{h=[];for(var y=0;y<r.length;y++){var g=r[y];g.Aw!==fk.gw&&function(e,r,s,o){for(var u=0,a=e.Tw.Qg;u<a.length;u++){var h=a[u];if(h.xp>s)break;r<=h.Up&&o.push(h)}}(g,s-t2,o,h)}}for(var m=h.length-1;m>=0;m--)rl(c,h[m])&&rf(h,m);var w=[];if(!a)for(var k=h.length-1;k>=0;k--){var E=h[k];E.xp>=s&&E.Up<=o&&(w.push(E),rf(h,k))}for(var A=[],x=[],T=0;T<w.length;T++){var C=w[T];C.iA||A.push(new Eh(C,C.xp)),A.push(new Ef(C,b.max(C.xp,C.Up)))}for(var S=0,R=h;S<R.length;S++){var L=R[S];L.iA&&(A.push(new Ef(L,b.max(L.xp,L.Up))),L.iA=!1)}for(var _=0;_<c.length;_++){var P=c[_];P.iA||(A.push(new Eh(P,P.xp)),P.iA=!0)}A.sort(EG);for(var I=0;I<A.length;I++){var N=A[I],O=N.Mp;O.yh(N);var D=O.yg;D&&(N.type===pg.Pp?D.yh(new Ep(O)):D.yh(new Ed(O)),rl(x,D)||x.push(D))}x.sort(v5);for(var U=0;U<x.length;U++){var M=x[U];M.yh(new Em(M))}this.YW=o,this.QW=c}},r.Kl=function(){this.Yg(),this.dC.Eh(ul.Av,this.iq),this.dC.Eh(ul.tv,this.iq),this.dC.Eh(f7.oy,this.iq),this.dC.Eh(ul.$f,this.iq),this.dC.Eh(ul.fv,this.rq),this.dC.Eh(ul.hv,this.oq)},e}(),Ez=function(){function e(){}var r=e.prototype;return r.Qr=function(e){return wZ(e)},r.dq=function(e){w0(e)},e}(),EZ=new Ez,E0=function(e){function r(r,s){return void 0===s&&(s=EZ),e.call(this,r,s)||this}return j(r,e),r}(EK),E1=function(e){function r(r,s,o){var u;return(u=e.call(this,r,1/0,s,!1,o)||this).lq=void 0,u}return j(r,e),r.prototype.xy=function(r){return this===r||fo(this,r)&&e.prototype.xy.call(this,r)&&this.Fp===r.Fp},M(r,[{key:"gg",get:function(){return this._g||(this._g=pT(this)),this._g}}]),r}(pL),E2=function(e){function r(r,s,o){return void 0===o&&(o=po.DEFAULT),e.call(this,vV.cb,"",s||"","",!1,o,r)||this}return j(r,e),r}(Eu),E3=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).Ua=po.ID3,o.lq=void 0,o}j(r,e);var s=r.prototype;return s.DS=function(r){!function(e,r){if(0!==r.length){var s=r.length-1;if(r[s].xp<e.xp)ET(r,s,e.xp);else{var o=r[0];if(o.xp>
1e.xp)e.Up=o.xp;else{var u=k4(r,e);if(!(u>=0)){var a=-(u+1),h=a-1;h>=0&&r[h].xp<e.xp&&ET(r,h,e.xp),a<r.length&&(e.Up=r[a].xp)}}}}}(r,this.VV),e.prototype.DS.call(this,r)},s.wg=function(){return fC(this)},r}(E2),E5=function(e){function r(r){var s;return(s=e.call(this,r.inBandMetadataTrackDispatchType,r.label)||this).mp=void 0,s.BW=function(){s.Aw!==fk.gw&&(s.OW(),s.LW(ps.LOADED))},s.mp=r,s.mp.addEventListener("cuechange",s.BW),s.Aw=s.UW,rI(function(){s.BW()}),s}j(r,e);var s=r.prototype;return s.ZP=function(r){e.prototype.ZP.call(this,r),this.UW=this.Aw},s.LW=function(e){this.bw=b.max(this.bw,e)},s.OW=function(){for(var e=function(e){for(var r=e.length,s=[],o=0;o<r;o++)s.push(function(e){var r=e&&e.THEOplayerTextTrackCue||void 0;if(r)return r;var s=e.startTime,o=E$(e.value);return e.THEOplayerTextTrackCue=new E1(s,o),e.THEOplayerTextTrackCue}(e[o]||e.item(o)));return rs(s,k5),s}(this.mp.cues),r=k8(this.Tw.Qg.slice(),e),s=0,o=r.XV;s<o.length;s++){var u=o[s];this.bS(u)}for(var a=0,h=r.HV;a<h.length;a++){var c=h[a];this.DS(c)}},s.Kl=function(){this.mp.removeEventListener("cuechange",this.BW),e.prototype.Kl.call(this)},M(r,[{key:"hw",get:function(){return this.mp.id||""}},{key:"pw",get:function(){return this.mp.inBandMetadataTrackDispatchType||""}},{key:"dw",get:function(){return this.mp.language||""}},{key:"UW",get:function(){return fx(this.mp.mode)},set:function(e){this.mp.mode=e}},{key:"Rp",get:function(){return this.mp}}]),r}(E3),E4=function(e){function r(r){var s;return(s=e.call(this,0,r.Fp)||this)._q=void 0,s._q=r,s.Up=s._q.xp,s}return j(r,e),M(r,[{key:"hw",get:function(){return this._q.hw}},{key:"eA",get:function(){return this._q.eA},set:function(e){this._q.eA=e}},{key:"rA",get:function(){return this._q.rA},set:function(e){this._q.rA=e}}]),r}(E1);function E6(e){return void 0===e.lq&&(e.lq=new E4(e)),e.lq}var E8=function(e){function r(r,s){var o;(o=e.call(this,r.pw,r.vw)||this).gq=void 0,o.wq=void 0,o.yq=void 0,o.Ua=po.ID3,o.kq=function(e){o.mq(e.Mp)},o.pq=function(e){var r=e.Mp;if(void 0!==r.lq){var s=r.lq;r.lq=void 0,o.bS(s),s.Kl()}},o.Aq=function(e){var r=E6(e.Mp);r.iA||o.bq(r),o.Tq(r)},o.Eq=function(e){var r=e.Mp,s=E6(r);o.wq.vy<r.xp&&o.bq(s)},o.Sq=function(){var e=o.yq,r=o.Aw;if(o.yq=r,r===fk.gw)o.QV.forEach(function(e){return e.iA=!1}),rv(o.QV);else if(e===fk.gw)for(var s=o.wq.vy,u=0,a=o.VV;u<a.length;u++){var h=a[u];s<h.Up&&o.bq(h)}},o.wq=s,o.gq=r,o.yq=r.Aw,r.kh(cZ.pg,o.kq),r.kh(cZ.Tg,o.pq),r.kh(cZ.Sg,o.Aq),r.kh(cZ.Rg,o.Eq),r.kh(cZ.Pg,o.Sq);for(var u=0,a=o.gq.Tw.Qg;u<a.length;u++){var h=a[u];o.mq(h)}return o}j(r,e);var s=r.prototype;return s.bq=function(e){var r=k4(this.QV,e);r>=0||(this.QV.splice(-(r+1),0,e),e.iA=!0,e.yh(new Eh(e,this.wq.vy)),this.yh(new Ep(e)),this.yh(new Em(this)))},s.Tq=function(e){var r=k4(this.QV,e);r>=0&&rf(this.QV,r),e.iA=!1,e.yh(new Ef(e,this.wq.vy)),this.yh(new Ed(e)),this.yh(new Em(this))},s.Kl=function(){this.gq.Eh(cZ.pg,this.kq),this.gq.Eh(cZ.Tg,this.pq),this.gq.Eh(cZ.Sg,this.Aq),this.gq.Eh(cZ.Rg,this.Eq),this.gq.Eh(cZ.Pg,this.Sq),e.prototype.Kl.call(this)},s.mq=function(e){var r=E6(e);this.DS(r),this.Aw!==fk.gw&&this.wq.vy<r.Up&&this.bq(r)},M(r,[{key:"fw",get:function(){return this.gq.fw}},{key:"vw",get:function(){return this.gq.vw},set:function(e){this.gq.vw=e}},{key:"dw",get:function(){return this.gq.dw}},{key:"hw",get:function(){return this.gq.hw}},{key:"cw",get:function(){return this.gq.cw}},{key:"pw",get:function(){return this.gq.pw}},{key:"Aw",get:function(){return this.gq.Aw},set:function(e){this.gq.Aw=e}},{key:"bw",get:function(){return this.gq.bw}},{key:"Sw",get:function(){return this.gq.Sw}}]),r}(E2),E7=function(e){function r(r){var s;return(s=e.call(this)||this).wq=void 0,s.wq=r,s}j(r,e);var s=r.prototype;return s.Gg=function(r){return r.Ua===po.ID3?(r.lq||(r.lq=new E8(r,this.wq)),e.prototype.Gg.call(this,r.lq)):e.prototype.Gg.call(this,r)},s.zg=function(r){return r.Ua===po.ID3?!!r.lq&&e.prototype.zg.call(this,r.lq):e.prototype.zg.call(this,r)},r}(fL),E9=function(e){function r(r,s){var o,u;return(o=e.call(this)||this).Iq=new iq,u=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((s=r.yg).Ua){e.next=4;break}
1return e.next=4,s.Nh(cZ.Mg);case 4:if(s.Ua===po.ID3){e.next=6;break}return e.abrupt("return");case 6:if(0!==s.Tw.Zg){e.next=11;break}return e.next=9,s.Nh(cZ.pg);case 9:e.next=6;break;case 11:o.Rq(s);case 12:case"end":return e.stop()}},e)})),o.uW=function(e){return u.apply(this,arguments)},o.sW=function(e){var r=e.yg;if(r.Ua===po.ID3&&o.Iq.has(r.cw)){var s=o.Iq.get(r.cw);o.zg(s),o.TS.CS(s),r.Eh(cZ.pg,o.mq)}},o.mq=function(e){At(e.Mp)&&o.Nq(e.Mp)},o.TS=r,o.Dq=s,o.Cq(),o}j(r,e);var s,o,u=r.prototype;return u.Cq=function(){this.Dq.kh(cG.cg,this.uW),this.Dq.kh(cG.vg,this.sW)},u.Pq=function(){this.Dq.Eh(cG.cg,this.uW),this.Dq.Eh(cG.vg,this.sW)},u.Rq=function(e){var r=e.Tw.Qg[0];if(At(r)){var s=function(e){var r=e.match(Ae);if(r)return{yg:r[1],dw:r[2]}}(r.Fp.description),o=s.yg,u=s.dw;if(!this.Bq(o,u)){var a=this.TS.RS(vV.ob,e.hw,o,u,!1,po.TTML);this.Gg(a),this.Iq.set(e.cw,a);for(var h=0,c=e.Tw.Qg;h<c.length;h++){var f=c[h];At(f)&&this.Nq(f)}e.kh(cZ.pg,this.mq)}}},u.Bq=function(e,r){return!!ra(this.iT.Qg,function(s){return s.vw===e&&s.dw===r})},u.Nq=function(e){if(e.yg)for(var r=this.Iq.get(e.yg.cw),s=vP(e.Fp.text,r,{fA:0,vA:1/0,dA:-e.Up}),o=0;o<s.length;o++){var u=s[o];r.DS(u)}},s=P.coroutine(iO.mark(function r(){var s,o,u,a,h;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(s=0,o=this.Dq.Qg;s<o.length;s++)o[s].Eh(cZ.pg,this.mq);for(u=0,a=this.iT.Qg;u<a.length;u++)h=a[u],this.TS.CS(h);return this.Iq.clear(),r.next=5,e.prototype.Yg.call(this);case 5:case"end":return r.stop()}},r,this)})),u.Yg=function(){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return this.Pq(),r.next=3,e.prototype.Kl.call(this);case 3:case"end":return r.stop()}},r,this)})),u.Kl=function(){return o.apply(this,arguments)},r}(vW);function At(e){var r,s;return("TXXX"===(s=r=e.Fp).id||"TXX"===s.id)&&Ae.test(r.description)}var Ae=/^Track:(.+),Lang:(.+)$/,An=Q.Ru||Q.Nu,Ai=Q.Gu,Ar=Q.Ou,As=[ul.bv,ul.ev,ul.fv,ul.tv,ul.$f],Ao=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).kf=void 0,u.Oq=void 0,u.JN=void 0,u.gC=!0,u.$R=void 0,u.Lq=new dr,u.Mq=void 0,u.xq=void 0,u.Uq=void 0,u.Rm=void 0,u.Fq=void 0,u.Hq=void 0,u.Xq=void 0,u.Vq=void 0,u.Wq=void 0,u.qq=void 0,u.Gq=void 0,u.zq=void 0,u.jq=void 0,u.Yq=void 0,u.gP=!1,u.Qq=P.resolve(),u.Zq=new rE,u.Kq=[],u.Jq=mo.aP(),u.$q=void 0,u.tG=1,u.nG=!1,u.iG=!1,u.qa=void 0,u.rG=!1,u.eG=!1,u.uG=!1,u.sG=!1,u.oG=0,u.aG=function(e){var r=e.track,s=u.hG(r);u.cG(r,s)},u.fG=function(e){var r=function(e,r){for(var s=0,o=e.Qg;s<o.length;s++){var u=o[s];if(u.Rp===r)return u}}(u.Hq,e.track);r&&u.Hq.zg(r)},u.vG=function(){for(var e=0;e<u.Rm.Zg;e++){var r=u.Rm.qg(e);r instanceof EJ&&r.HW()}},u.dG=function(){for(var e=u.Hq.Qg,r=0;r<e.length;r++){var s=e[r];u.Hq.zg(s)}},u.lG=function(){var e=u.$R,r=e.YX,s=e.QX;if(r&&s){if(e.uH)u._G();else if(e.bw!==kX.UH){var o=r.rp,a=s.rp;if(0!==o.Zg&&0!==a.Zg){var h=u.vy;h<o.bC(0)||h<a.bC(0)?u._G():o.HD(h)!==a.HD(h)?u.gG():(u._G(),!u.oG&&u.Uq.MV()&&o.GC(a).ZC(h,h+.5)&&(u.oG=wZ(u.wG)))}else u._G()}}},u.wG=function(){u.oG=0,u.lG()},u.yG=function(){if(!(u.Ay||u.bw>=f1.Kw)){var e=u.$R,r=e.YX,s=e.QX;if(r&&s){var o=u.vy,a=r.rp,h=s.rp;a.HD(o)&&h.HD(o)&&a.GC(h).ZC(o-5,o)&&u.$h(o)}}},u.kG=function(){u.yh(new le(u.vy))},u.mG=function(){u.pG(new rA),u.yh(new lt(u.vy))},u.AG=function(){u.bG(),u.yh(new gV(u.vy))},u.TG=function(){u.EG(u.py)},u.SG=function(){u.yh(new lu(u.ly))},u.IG=function(){u.yh(new kE(u.vy))},u.RG=function(){u.yh(new kA)},u.NG=function(){var e=u.vy,r=u.Ay,s=u.bw<f1.Kw&&!u._y,o=void 0!==u.Yq,a=o&&u.Yq!==e;
1(r||!o||a&&!s)&&(u.yh(new lh(u.vy,void 0)),u.Yq=e)},u.DG=function(){!u.nG&&u._y&&(u.nG=!0,u.yh(new lc(u.vy)))},u.CG=function(){if(null!==u.kf.error){var e,r=u.kf.error;u.JN=new lZ(null!=(e=r.code)?e:lQ.DECODE,r.message||"Error decoding media",void 0,r.msExtendedCode),u.PG(u.JN),u.yh(new k1(u.JN))}else u.JN=void 0},u.BG=function(){u.yh(new lv(u.vy,u.Ey))},u.OG=function(){u.Ty>0&&u.by>0&&u.yh(new di)},u.LG=function(e){u.yh(new rQ(e.initDataType,e.initData||new ArrayBuffer(0)))},u.MG=function(){u.yh(new rG)},u.xG=function(e){var r=e.initData,s=r?sY(r).buffer:new ArrayBuffer(0);u.yh(new rQ(i$,s))},u.UG=function(e){if(e.initData){var r=function(e){try{var r=sB(e),s=new sJ,o=sm(r,s,!0),u=sp(r,s,o),a=sN(u,!0);return sI(a)}catch(e){return}}(e.initData);r&&u.yh(new rQ("skd",r))}else u.yh(new rQ("skd",new ArrayBuffer(0)))},u.FG=function(e){var r=e.initData,s=r?sY(r).buffer:new ArrayBuffer(0);u.yh(new rQ(i$,s))},u.HG=function(){u.bG()},u.XG=function(e){u.pG(e)},u.kf=r,u.qa=s,u.Oq=o,u.xq=new kK(t8(u)),u.xq.kh(f7.Og,u.wh),u.Uq=new k0(t8(u)),u.Uq.kh(f7.oy,u.AG),u.Rm=new vX,u.Fq=new vX,u.Hq=new vX,u.Xq=new Ea([u.Rm,u.Fq,u.Hq]),u.Vq=new E7(t8(u)),u.Vq.ew=u.Xq,u.Wq=new E9(t8(u),u.Vq),u.qq=new Ea([u.Xq,u.Wq.iT]),u.Gq=new E0(t8(u)),u.VG(),u.TD(),u}j(r,e);var s,o,u,a,c,f=r.prototype;return f.WG=function(){this.pD.ended||this.vy===this.ly||(this.nG=!1)},f.qG=function(){return void 0!==this.zq&&this.ly===this.zq},f.EG=function(e){this.tG!==e&&(this.tG=e,this.yh(new la(this.vy,e)))},f.WD=function(){return bP(this.kf)},f.Mm=function(){var e=this.GG();return this.zG(),e},f.zG=function(){this.rG?this.eG&&(this.eG=!1,this.yh(new le(this.vy))):this.jG()},f.jG=function(){if(this.Mq)this.Mq.Mm();else{Q.Ou&&!Q.yu&&this.kf.preload===g7.cC&&(this.kf.preload=g7.cb);var e=this.py,r=this.kf.play();e!==this.pD.playbackRate&&(this.py=e),ts(r)?r.then(this.HG,this.XG):this.Uq.MV()&&this.bG()}},f.xm=function(){this.rG?this.eG||(this.eG=!0,this.yh(new lt(this.vy))):this.YG()},f.YG=function(){this.Mq?this.Mq.xm():(this.kf.pause(),this.Uq.Ec()),this.PG(new rA)},f.GG=function(){var e=new sG;return this.Kq.push(e),e.ec},f.QG=function(){for(var e=0,r=this.Kq;e<r.length;e++)r[e].uc(void 0);rv(this.Kq)},f.PG=function(e){for(var r=0,s=this.Kq;r<s.length;r++)s[r].ac(e);rv(this.Kq)},f.bG=function(){this.rG||this.Mq||this.QG()},f.pG=function(e){this.rG||this.Mq||this.PG(e)},f.$h=function(e,r){this.Mq?this.Mq.vy=e:(this.Zq.hh(),this.Zq=new rE,this.Qq=this.ZG(e,this.Qq,this.Zq.dh).catch(I))},f.VD=function(e){var r=this.qD;if(r&&!A(r.getTime())){var s=(e.getTime()-r.getTime())/1e3;this.$h(s)}},s=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f,l,p,v,d=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.zq=r,this.gP=!0,this.nG&&!this.qG()&&(this.nG=!1),this.yh(new ll(r)),e.next=7,s.catch(I);case 7:if(rT(o),this.iG&&this.KG(),this.bw!==f1.Yw){e.next=12;break}return e.next=12,this.Nh(f7.Og,o);case 12:if(0!==this.kf.seekable.length){e.next=18;break}return e.next=15,P.race([cJ(this.kf,"timeupdate",o),rU(100,o)]);case 15:rT(o),e.next=12;break;case 18:u=this.JG(r),a=this.wp,h=!0,c=!1;case 22:if((a=this.wp).Zg>0&&!a.HD(u)&&(u=a.LC(u),h=!0),Ar&&void 0!==(f=this.$G())&&u>f&&(u=f,h=!0),c||!(void 0!==(l=this.tz())&&u>l)){e.next=36;break}return c=!0,e.next=32,this.nz(l,o);case 32:return e.next=34,cJ(this.kf,"seeked",o);case 34:rT(o),h=!0;case 36:if(!h){e.next=55;break}return h=!1,e.next=40,this.nz(u,o);case 40:rT(o),p=this.vy,u=(a=this.wp).LC(u),v=1;case 45:if(!(b.abs(u-p)>=t2)){e.next=55;break}return a=this.wp,u=function(e,r,s){if(void 0===s&&(s=0),!r.Zg)return 0;var o=r.LC(e),u=.01*s;return o===r.bC(0)?o+=u:o===r.EC(r.Zg-1)&&(o-=u),o}(u,a,v),e.next=50,this.nz(u,o);case 50:rT(o),p=this.vy,v++,e.next=45;break;case 55:if(this.kf.seeking||this.bw<f1.Zw){e.next=57;break}return e.abrupt("break",62);case 57:return e.next=59,r_(function(e){var r;return P.race([cJ(d.kf,"seeked",e),d.Nh([ul.rv,ul.Wf,f7.Og],e),null==(r=d.$R)?void 0:r.Nh(kl.UB,e)].filter(z))},o);case 59:rT(o),e.next=22;break;case 62:this.iz(),e.next=70;break;case 65:if(e.prev=65,e.t0=e.catch(0),!rx(e.t0)){e.next=69;break}return e.abrupt("return");case 69:case 70:case"end":return e.stop()}},e,this,[[0,65]])})),f.ZG=function(e,r,o){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){var o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(s),r=(o=this.wp).LC(r),!this.iG){e.next=18;break}u=!0;case 5:if(!(u||this.bw<f1.Kw)){e.next=17;break}if((o=this.wp).HD(r)||(r=o.LC(r),u=!0),!u){e.next=13;break}return u=!1,this.zq=r,this.yh(new ll(this.vy)),e.abrupt("continue",5);case 13:return e.next=15,this.Nh([f7.Og,ul.Wf],s);case 15:e.next=5;break;case 17:rT(s);case 18:if(a=cJ(this.kf,"seeking",s),this.kf.currentTime=r,this.zq=void 0,this.yh(new ll(this.vy)),!this.kf.seeking){e.next=25;break}return e.next=25,a;case 25:case"end":return e.stop()}},e,this)})),f.nz=function(e,r){return o.apply(this,arguments)},f.JG=function(e){var r=this.rp;if(r&&!r.HD(e)){var s=r.jC(e,.05);if(s>-1){var o=r.bC(s);if(e<o)return o}}return e},f.$G=function(){if(this.$R&&this.$R.uH){var e=this.$R.sH,r=this.$R.oH,s=e&&r?e.UC(r):e||r;if(s&&0!==s.Zg){var o=s.bC(s.Zg-1),u=s.EC(s.Zg-1);return b.max(o,u-.001)}}},f.tz=function(){if(this.$R&&this.$R.uH){var e=this.$R.oH;if(e&&0!==e.Zg){var r=e.bC(e.Zg-1),s=e.EC(e.Zg-1)-.02;return s-=.001,b.max(r,s)}}},f.iz=function(){this.gP=!1,this.iG&&this.rz(),this.yh(new lp(this.vy))},f.KG=function(){this.rG||(this.eG=this.yy,this.rG=!0,this.YG())}
1,f.rz=function(){this.rG&&(this.rG=!1,this.eG||this.zG())},u=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=0;case 1:if(!(s<r.length)){e.next=12;break}if((o=r[s]).Ua!==gp.lN||!kk.eH(o,this.kf)){e.next=7;break}return e.abrupt("return",o);case 7:if(o.Ua!==gp._N||!k$.eH(o)){e.next=9;break}return e.abrupt("return",o);case 9:s++,e.next=1;break;case 12:case"end":return e.stop()}},e,this)})),f.eH=function(e){return u.apply(this,arguments)},f.Ym=function(){this.gC=!1,il(this.kf)&&(this.kf.style.display="none")},f.jm=function(){this.gC=!0,il(this.kf)&&(this.kf.style.display="block")},f.RS=function(e,r,s,o,u,a,h){var c=new Eu(e,r,s,o,u,a,h);return this.Rm.Gg(c),this.Gq.Gg(c),c},f.CD=function(){return!0},f.BD=function(e,r,s,o){var u=h.createElement("track");u.src=nz(e),u.kind=r,u.label=null!=s?s:"",o&&(u.srclang=o),u.id=wI(),this.kf.appendChild(u);var a=new EJ(this.kf.textTracks.getTrackById(u.id),u);return this.Fq.Gg(a),a},f.CS=function(e){this.Rm.zg(e),this.Gq.zg(e)},f.MD=function(){this.Rm.Yg(),this.Fq.Qg.forEach(function(e){return e.Kl()}),this.Fq.Yg()},f.TD=function(){var e=this.kf.textTracks;e&&e.addEventListener&&(e.addEventListener("addtrack",this.aG),e.addEventListener("removetrack",this.fG),e.addEventListener("change",this.vG)),this.kf.addEventListener("emptied",this.dG)},f.UD=function(){var e=this.kf.textTracks;e&&e.removeEventListener&&(e.removeEventListener("addtrack",this.aG),e.removeEventListener("removetrack",this.fG),e.removeEventListener("change",this.vG)),this.kf.removeEventListener("emptied",this.dG)},f.cG=function(e,r){if(Q.Ou){if(e.kind===vV.cb)return void this.ez(e);if(e.kind===vV.wS&&!Au(e))return void this.sz(e,r)}0>this.Fq.Qg.map(function(e){return e.hw}).indexOf(e.id)&&this.Hq.Gg(new EJ(e,r))},f.ez=function(e){e.mode=fk.ww;var r=new E5(e);this.Hq.Gg(r),this.Gq.Gg(r)},f.sz=function(e,r){var s=this;e.addEventListener("cuechange",function o(){Au(e)&&(e.removeEventListener("cuechange",o),s.Hq.Gg(new EJ(e,r)))}),e.mode=fk.ww},f.hG=function(e){for(var r=this.kf.getElementsByTagName("track"),s=0;s<r.length;s++){var o=r[s]||r.item(s);if(o.track===e)return o}},f.bc=function(e){var r,s=this;return this.Lq.xS((r=P.coroutine(iO.mark(function r(o){var u;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(rT(o),!s.$R){r.next=3;break}throw new y("Already loaded a media source");case 3:if(e.Ua!==gp.lN){r.next=9;break}u=new kk(e,s,s.qa),s.iG=!1,s.oz(new kK(s)),r.next=17;break;case 9:if(e.Ua!==gp._N){r.next=16;break}u=new k$(e,s,s.qa),s.iG=An,s.oz(s.iG?new kz(s):new kK(s)),Ai&&(s.kh(ul.Av,s.lG),s.kh(f7.Og,s.yG)),r.next=17;break;case 16:throw new y("Unsupported configuration");case 17:return s.$R=u,r.next=20,u.iI();case 20:return r.abrupt("return",u);case 21:case"end":return r.stop()}},r)})),function(e){return r.apply(this,arguments)}))},f.gG=function(){if(!this.uG){var e=this.py;this.uG=!0,this.py=e,this.kf.playbackRate=0,this.xq&&this.xq.NV()}},f._G=function(){if(this.uG){var e=this.py;this.uG=!1,this.py=e,this.kf.currentTime=this.kf.currentTime,this.xq&&this.xq.NV()}},f.oz=function(e){var r=this.bw;this.xq.rh(),this.xq=e,this.xq.kh(f7.Og,this.wh);var s=this.bw;r!==s&&this.yh(new lg(this.vy,s))},a=P.coroutine(iO.mark(function e(){var r=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.gP=!1,this.Jq=mo.aP(),this.Zq.hh(),this.zq=void 0,this.jq=void 0,this.iG=!1,this.rG=!1,this.JN=void 0,this.nG=!1,this.Yq=void 0,this.PG(new rA),this.oz(new kK(this)),this.Uq.Yg(),this._G(),Ai&&(w0(this.oG),this.oG=0,this.Eh(ul.Av,this.lG),this.Eh(f7.Og,this.yG)),e.next=17,this.Lq.hh();case 17:return e.next=19,this.Lq.xS(P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.$R){e.next=4;break}return e.next=3,r.$R.rh();case 3:r.$R=void 0;case 4:case"end":return e.stop()}},e)})));case 19:case"end":return e.stop()}},e,this)})),f.Yg=function(){return a.apply(this,arguments)},c=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.cz(),this.UD(),e.next=4,this.Yg();case 4:return e.next=6,this.Lq.Kl();case 6:return this.Uq.rh(),this.xq.rh(),this.MD(),this.Rm.Kl(),this.Vq.Kl(),this.Hq.Kl(),this.Fq.Kl(),e.next=15,this.Wq.Kl();case 15:this.Xq.Kl(),this.qq.Kl(),this.Th();case 18:case"end":return e.stop()}},e,this)})),f.rh=function(){return c.apply(this,arguments)},f.VG=function(){this.pD.addEventListener("play",this.kG),this.pD.addEventListener("pause",this.mG),this.pD.addEventListener("timeupdate",this.NG),this.pD.addEventListener("progress",this.IG),this.pD.addEventListener("loadstart",this.RG),this.pD.addEventListener("ended",this.DG),this.pD.addEventListener("ratechange",this.TG),this.pD.addEventListener("volumechange",this.BG),this.pD.addEventListener("durationchange",this.SG),this.pD.addEventListener("resize",this.OG),this.pD.addEventListener("loadedmetadata",this.OG),this.pD.addEventListener("error",this.CG),re()?(this.kf.addEventListener("encrypted",this.LG),this.kf.addEventListener("waitingforkey",this.MG)):void 0!==n2.WebKitMediaKeys&&"function"==typeof n2.WebKitMediaKeys.isTypeSupp
1orted?this.kf.addEventListener("webkitneedkey",this.UG):rn()?this.kf.addEventListener("webkitneedkey",this.FG):void 0!==n2.MSMediaKeys&&"function"==typeof n2.MSMediaKeys.isTypeSupported&&this.kf.addEventListener("msneedkey",this.xG)},f.cz=function(){this.pD.removeEventListener("play",this.kG),this.pD.removeEventListener("pause",this.mG),this.pD.removeEventListener("timeupdate",this.NG),this.pD.removeEventListener("progress",this.IG),this.pD.removeEventListener("loadstart",this.RG),this.pD.removeEventListener("ended",this.DG),this.pD.removeEventListener("ratechange",this.TG),this.pD.removeEventListener("volumechange",this.BG),this.pD.removeEventListener("durationchange",this.SG),this.pD.removeEventListener("resize",this.OG),this.pD.removeEventListener("loadedmetadata",this.OG),this.pD.removeEventListener("error",this.CG),this.pD.removeEventListener("encrypted",this.LG),this.pD.removeEventListener("waitingforkey",this.MG),this.pD.removeEventListener("webkitneedkey",this.UG),this.pD.removeEventListener("webkitneedkey",this.FG),this.pD.removeEventListener("msneedkey",this.xG)},f.bV=function(){this.Mq||(this.Jq=this._p,this.Mq=new kJ(this.vy,this.ly,this._y,this.yy,this.Ay,this.wy,this.py,this.Ey),this.cz(),this.Mq.kh(As,this.wh))},f.TV=function(){if(this.Mq){var e=this.Mq;this.Mq=void 0,e.ly===this.ly||A(e.ly)&&A(this.ly)||this.yh(new lu(this.ly)),this.wy=e.wy,this.Ey=e.Ey,this.py=e.py,e.yy?this.xm():this.Mm().catch(I),e.vy!==this.vy?this.$h(e.vy):!e.Ay&&this.Ay?this.yh(new ll(this.vy)):e.Ay&&!this.Ay&&this.yh(new lp(this.vy)),!e._y&&this._y&&this.yh(new lc(this.vy)),e.Eh(As,this.wh),this.VG()}},f.fz=function(){this.vz||(xj(this.kf,_.oa),this.sG=!0)},f.lz=function(e){e.appendChild(this.kf)},f.vV=function(){Ai&&this.lG(),this.xq.NV()},M(r,[{key:"CV",get:function(){return this.uG}},{key:"rp",get:function(){return this.$R?this.$R.rp:mo.aP()}},{key:"ep",get:function(){var e=this.qD;if(e&&!A(e.getTime())){var r=1e3*this.vy;return new Date(e.getTime()+r)}}},{key:"qD",get:function(){if(this.pD.getStartDate)return this.gP&&this.jq||(this.jq=this.pD.getStartDate()),this.jq}},{key:"vy",get:function(){return this.Mq?this.Mq.vy:void 0!==this.zq?this.zq:this.kf.currentTime}},{key:"cF",get:function(){return this.Oq}},{key:"ly",get:function(){return this.Mq?this.Mq.ly:this.$R?this.$R.ly:this.kf.duration}},{key:"_y",get:function(){return this.Ay?this.qG():this.Mq?this.Mq._y:this.kf.ended||this.nG}},{key:"Lh",get:function(){return this.JN}},{key:"pD",get:function(){return this.kf}},{key:"yy",get:function(){return this.rG?this.eG:this.Mq?this.Mq.yy:this.kf.paused}},{key:"_p",get:function(){return this.Jq.qC(mo.uP(this.kf.played))}},{key:"yT",get:function(){return this.kf.offsetHeight*_.oa.Ro}},{key:"Lo",get:function(){return this.kf.offsetWidth*_.oa.Ro}},{key:"LD",get:function(){return mh}},{key:"bw",get:function(){return this.xq.bw}},{key:"wp",get:function(){return this.$R?this.$R.wp:mo.aP()}},{key:"Ay",get:function(){return this.Mq?this.Mq.Ay:this.gP}},{key:"wy",get:function(){return this.Mq?this.Mq.wy:this.kf.muted},set:function(e){this.Mq?this.Mq.wy=e:this.kf.muted=e}},{key:"py",get:function(){return this.Mq?this.Mq.py:void 0!==this.$q?this.$q:this.kf.playbackRate},set:function(e){this.Mq?this.Mq.py=e:this.yy||this.uG?(this.$q=e,this.EG(e)):(this.$q=void 0,this.kf.playbackRate=e)}},{key:"_z",get:function(){return this.gC}},{key:"Ey",get:function(){return this.Mq?this.Mq.Ey:this.kf.volume},set:function(e){this.Mq?this.Mq.Ey=e:this.kf.volume=e}},{key:"Om",get:function(){return this.qq}},{key:"op",get:function(){return!!this.kf.webkitCurrentPlaybackTargetIsWireless}},{key:"vz",get:function(){return this.sG}},{key:"gz",get:function(){return iD({},kg)}}]),r}(rB);function Au(e){return!!e.cues&&e.cues.length>0}var Aa=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.Qm=function(){},M(r,[{key:"by",get:function(){return 0}},{key:"Ty",get:function(){return 0}}]),r}(Ao),Ah=function(){function e(e){void 0===e&&(e=5),this.wz=void 0;var r=n2.document.createElement("div");r.className="theoplayer-texttracks",r.style.position="absolute",r.style.display="none",r.style.overflow="hidden",r.style.pointerEvents="none",r.style.top="10%",r.style.bottom="80%",r.style.bottom="10%",r.style.left="0",r.style.width="100%",r.style.lineHeight="1.3em",r.style.zIndex=""+e,this.wz=r,this.jm()}var r=e.prototype;return r.Ym=function(){this.wz.style.display="none"},r.jm=function(){iu(this.wz.style,"flex","-ms-flexbox")},r.lz=function(e){e.appendChild(this.wz)},r.Kl=function(){n9(this.wz)},M(e,[{key:"sp",get:function(){return this.wz}}]),e}();function Ac(e,r){return e?iD({},r,fu({LU:e.LU,OU:e.OU,BU:e.BU,PU:e.PU,MU:e.MU,xU:e.xU,UU:e.UU})):r}function Af(e){return e.OU&&nX(e.OU,"%")?Number(e.OU.replace("%",""))/100:e.OU&&nX(e.OU,"em")?Number(e.OU.replace("em","")):1}var Al,Ap,Av,Ad,Ay=function(){function e(e,r,s,o,u){var a=this;this.yz=iM(),this.kz=!0,this.mz=void 0,this.Zp=void 0,this.kf=void 0,this.Oq=void 0,this.pz=void 0,this.Az=function(e){return a.yz.has(e.rA)},this.bz=function(e){return!a.Az(e)},this.Tz=function(e){return a.DS(e.Mp)},this.Ez=function(e){return a.removeCue(e.Mp)},this.Sz=function(){return a.Iz()},this.Rz=function(e){return a.Nz(e.Mp)},this.Dz=function(e){return a.Cz(e.Mp)},this.Pz=function(e){a.Bz(e.Lo,e.yT)},this.Zp=e,this.pz=this.mz=u,this.kf=this.Oz(s),this.Oq=o,r.appendChild(this.kf),this.Lz(),this.Zp.Tw.Qg.forEach(function(e){return a.DS(e)}),this.cF.kh("dL",this.Pz),this.Bz(this.cF.mL,this.cF.kL)}
1var r=e.prototype;return r.Mz=function(e){this.mz=Ac(e,this.pz),this.mz.PU&&(this.pD.style.fontFamily=this.mz.PU),this.mz.UU&&(this.pD.style.visibility=this.mz.UU),this.Bz(this.cF.mL,this.cF.kL),this.xz()},r.Uz=function(){return this.mz},r.Lz=function(){this.Zp.kh(cZ.pg,this.Tz),this.Zp.kh(cZ.Tg,this.Ez),this.Zp.kh(cZ.Pg,this.Sz)},r.Fz=function(){var e=this;this.Zp.Eh(cZ.pg,this.Tz),this.Zp.Eh(cZ.Tg,this.Ez),this.Zp.Eh(cZ.Pg,this.Sz),this.Zp.Tw.Qg.forEach(function(r){return e.Hz(r)})},r.Xz=function(e){e.kh(pg.Pp,this.Rz),e.kh(pg.Op,this.Dz)},r.Hz=function(e){e.Eh(pg.Pp,this.Rz),e.Eh(pg.Op,this.Dz)},r.DS=function(e){e.rA||(e.rA=this.Vz),this.Xz(e),e.iA&&this.Nz(e)},r.removeCue=function(e){this.Hz(e),this.Cz(e)},r.Iz=function(){this.Zp.Aw===fk.yw?this.Wz():this.qz()},r.Wz=function(){var e=this,r=new wY(this.cF.mL,this.cF.kL);this.Pz(r),this.kz=!1,this.Gz.forEach(function(r){return e.Nz(r)})},r.Nz=function(e){this.kz||this.bz(e)&&(this.zz(e),this.yz.set(e.rA,e))},r.zz=function(e){var r=this.kf,s=this.jz(e);if(s)for(var o=0;o<s.length;o++){var u=s[o];u.className=e.rA,r.appendChild(u)}},r.qz=function(){var e=this;this.kz=!0,this.yz.forEach(function(r){return e.Cz(r)})},r.Cz=function(e){this.Az(e)&&(this.Yz(e),this.yz.delete(e.rA))},r.Yz=function(e){for(var r=this.kf,s=r.getElementsByClassName(e.rA);s.length;)r.removeChild(s[0])},r.xz=function(){for(var e=0,r=this.Qz;e<r.length;e++){var s=r[e];this.Yz(s),this.zz(s)}},r.Kl=function(){n9(this.pD),this.Fz(),this.cF.Eh("dL",this.Pz)},M(e,[{key:"yg",get:function(){return this.Zp}},{key:"pD",get:function(){return this.kf}},{key:"cF",get:function(){return this.Oq}},{key:"Zz",get:function(){return this.mz}},{key:"Qz",get:function(){return this.Zp.Ew.Qg.filter(this.Az)}},{key:"Gz",get:function(){return this.Zp.Ew.Qg.filter(this.bz)}}]),e}();function Ag(e,r){return e?{r_:e.r_,g_:e.g_,b_:e.b_,a_:r}:null}function Am(e){var r=e?e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i):null;return r?{r_:k(r[1],16),g_:k(r[2],16),b_:k(r[3],16)}:null}function Aw(e){return("0"+e.toString(16)).slice(-2)}function Ab(e){var r=e?e.match(/^rgba\(([0-9]+),\s*([0-9]+),\s*([0-9]+),\s*([0-9.]+)\)$/i):null;return r?{r_:k(r[1],10),g_:k(r[2],10),b_:k(r[3],10),a_:E(r[4])}:null}function Ak(e){return AE[e||"none"]}(AF=Av||(Av={})).Kz='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace',AF.Jz='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif',AF.$z='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace',AF.tj='Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif',(Aj=Ad||(Ad={})).BLACK="#000000",Aj.WHITE="#FFFFFF",Aj.GREEN="#00ff00",Aj.BLUE="#0000ff",Aj.CYAN="#00ffff",Aj.RED="#ff0000",Aj.YELLOW="#ffff00",Aj.MAGENTA="#ff00ff",Aj.TRANSPARENT="transparent";var AE={none:"",dropshadow:"#222 2px 2px 3px, #222 2px 2px 4px, #222 2px 2px 5px",raised:"#222 1px 1px, #222 2px 2px, #222 3px 3px",depressed:"#ccc 1px 1px, #ccc 0px 1px, #222 -1px -1px, #222 0px -1px",uniform:"#222 -1px -1px 0, #222 1px -1px 0, #222 -1px 1px 0, #222 1px 1px 0"};function AA(e){if(e.getBoundingClientRect&&e.parentNode&&(r=e.getBoundingClientRect()),!r)return{left:0,top:0};var r,s=h.documentElement,o=h.body,u=s.clientLeft||o.clientLeft||0,c=a.pageXOffset||o.scrollLeft,f=r.left+c-u,l=s.clientTop||o.clientTop||0,p=a.pageYOffset||o.scrollTop,v=r.top+p-l;return{left:b.round(f),top:b.round(v)}}function Ax(e,r,s,o){if(void 0===o&&(o=0),e&&r){e.style.left="0px";var u=e.getClientRects(),a=r.getClientRects(),h=u.length>0&&u[0],c=a.length>0&&a[0];if(h&&c){var f,l,p,v,d,y,g,m=h.width/2+h.left;f=c.width/2+c.left-m,void 0===(l=o)&&(l=0),p=f,v="left",void 0===(d=l)&&(d=0),g=(y=e.getClientRects()).length>0&&y[0],s&&(p=tJ(p,s[v]+d-g[v],s.right-d-g.right)),e.style[v]=p+"px"}}}function AT(e,r){void 0===e.textContent?e.innerText=r:e.textContent=r}var AC=iF({monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:"monospace, sans-serif",monospaceSerif:"monospace, serif",proportionalSansSerif:"Arial",proportionalSerif:"Times New Roman",default:"monospace, sans-serif;"}),AS=iF({lrtb:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;",rltb:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;direction: rtl;unicode-bidi: bidi-override;",tbrl:"-webkit-writing-mode: vertical-rl;writing-mode: vertical-rl;-webkit-text-orientation: upright;text-orientation: upright;",tblr:"-webkit-writing-mode: vertical-lr;writing-mode: vertical-lr;-webkit-text-orientation: upright;text-orientation: upright;",lr:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;",rl:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;direction: rtl;",tb:"-webkit-writing-mode: vertical-rl;writing-mode: vertical-rl;-webkit-text-orientation: upright;text-orientation: upright;"}),AR={backgroundColor:function(e,r){r.style.backgroundColor=e},color:function(e,r){r.style.color=e},direction:function(e,r){r.style.direction=e},display:function(e,r){"none"===e&&(r.style.display="none")},fontFamily:function(e,r){var s=AC.get(e);r.style.fontFamily=s||e},fontSize:function(e,r){nq(e,"px")?e=k(e)/24+"em":nq(e,"c")&&(e=e.replace("c","em")),r.style.fontSize=e},fontStyle:function(e,r){r.style.fontStyle=e},fontWeight:function(e,r){r.style.fontWeight=e},lineHeight:function(e,r){r.style.lineHeight=e},opacity:function(e,r){r.style.opacity=e},overflow:function(e,r){r.style.overflow=e},padding:function(e,r){r.style.padding=e},textAlign:function(e,r){"right"===e?(r.style.textAlign="right",r.style.justifyContent="flex-end"):"start"===e?(r.style.textAlign="start",r.style.justifyContent="flex-start"):"center"===e?(r.style.textAlign="center",r.style.justifyContent="center"):"end"===e?(r.style.textAlign="end",r.style.justifyContent="flex-end"):"left"===e&&(r.style.textAlign="left",r.style.justifyContent="flex-start")},textDecoration:function(e,r){var s=e;s=(s=(s=(s=s.replace("lineThrough","line-through")).replace("noUnderline","none")).replace("noLineThrough ","none")).replace("noOverline  ","none"),r.style.textDecoration=s},unicodeBidi:function(e,r){r.style.unicodeBidi=e.replace("bidiOverride","bidi-override")},visibility:function(e,r){r.style.visibility=e},zIndex:function(e,r){r.style.zIndex=e},displayAlign:function(e,r){var s;"before"===e.toLowerCase()?s="flex-start":"center"===e.toLowerCase()?s="center"
1:"after"===e.toLowerCase()&&(s="flex-end"),r.style.alignItems=s},extent:function(e,r){var s,o,u=e.split(" ");u.length>=2?(s=u[0],o=u[1]):s=o="100%",r.style.height=o,r.style.width=s},origin:function(e,r){var s=e.split(" "),o=s[0],u=s[1];void 0===o&&void 0===u||(void 0!==o&&(r.style.left=o),void 0!==u&&(r.style.top=u))},showBackground:function(e,r){},wrapOption:function(e,r){r.style.whiteSpace=e.replace("noWrap","nowrp").replace("wrap","normal").replace("nowrp","nowrap")},writingMode:function(e,r){var s=AS.get(e);s&&(r.style.cssText=r.style.cssText.concat(s))},textOutline:function(){},linePadding:function(e,r){if(nq(e,"c")){var s=e.replace("c","em");r.style.paddingLeft=r.style.paddingRight=s}},multiRowAlign:function(e,r){"auto"===e.toLowerCase()?r.style.textAlign="":r.style.textAlign="value"}},AL=0,A_={BU:Ad.WHITE,PU:"Arial, Helvetica, Sans-Serif",OU:"100%",LU:Ad.TRANSPARENT,MU:Ad.TRANSPARENT,xU:"none",UU:"visible"},AP=function(e){function r(r,s,o,u){return e.call(this,r,s,o,u,A_)||this}j(r,e);var s=r.prototype;return s.Oz=function(e){var r=h.createElement("div");return r.className="theoplayer-ttml-texttrack-"+e,r.style.position="absolute",r.style.display="flex",r.style.overflow="hidden",r.style.pointerEvents="none",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%",r},s.Bz=function(e,r){this.pD.style.fontSize=r/15+"px"},s.jz=function(e){if(e.yg&&e.yg.Ua!==po.TTML)return[];var r,s=[],o=e.oS,u=e.lA,a=e.Fp;if(0===w.keys(u).length){ir(r=h.createElement("div"),e.rA),AM(r);for(var c=AI(a,o,e.aS,void 0,this.pD),f=0;f<c.length;f++){var l=c[f];r.appendChild(l)}s.push(r)}else for(var p=0,v=w.keys(u);p<v.length;p++){var d=v[p],y=h.createElement("div");y.id=d,ir(y,e.rA);var g=AI(a,o,e.aS,y,this.pD);if(g){AM(y),function(e,r,s,o){AU(e,r.style,s,o),w.keys(r).forEach(function(s){AR[s]&&AR[s](r[s],e)})}(y,u[d],o,this.pD);for(var m=0;m<g.length;m++){var b=g[m];y.appendChild(b)}s.push(y)}s.push(y)}return s},s.Mz=function(e){},M(r,[{key:"Vz",get:function(){return"theoplayer-ttmlcue-"+AL++}}]),r}(Ay);function AI(e,r,s,o,u){var a;if(t4(e)&&("SPAN"===e.vs.toUpperCase()||"P"===e.vs.toUpperCase()||"BR"===e.vs.toUpperCase()||"DIV"===e.vs.toUpperCase()||"BODY"===e.vs.toUpperCase())){var h=function e(r){var s,o=r.Cs("region");if("p"===r.vs.toLowerCase())return o;for(var u=[],a=0,h=r.Ds;a<h.length;a++){var c=h[a];u.push(e(c))}return rb(u),0===u.length?o:1===u.length?null!=(s=u[0])?s:o:void 0}(e);if(!h||o.id===h){c=a="BODY"===e.vs.toUpperCase()?o:AN(e),AU(c,e.Cs("style"),r,u),Array.prototype.slice.call(e.xs).forEach(function(e){var r=vT(e.ds,["ebutts","tts","xml"]);AR[r]&&AR[r](e.gs,c,u)}),function(e,r,s){var o,u=null==r?void 0:r.Cs("smpte:backgroundImage");if(u){u=u.replace("#","");var a=function e(r,s){if(r&&s(r))return r;var o=null;if(null!=r&&r.Ds)for(var u=0,a=null==r?void 0:r.Ds;u<a.length&&!(o=e(a[u],s));u++);return o}(s,function(e){return e.xs.some(function(e){return"id"===e.vs&&e.gs===u})});a&&AD(e,a,r,!0)}(o=r.Ds[0])&&"metadata"===o.vs.toLowerCase()&&AD(e,o.Ds[0],r)}(a,e,s);for(var c,f=[],l=e.Es,p=0;p<l.length;p++){var v=AI(l[p],r,s,o,u);v&&(f=f.concat(v))}if("BODY"!==e.vs.toUpperCase()){for(var d=0,y=f;d<y.length;d++){var g=y[d];a.appendChild(g)}return[a]}return f}}else t6(e)&&(a=AN(e));if(a)return[a]}function AN(e){var r,s,o;if(t6(e))AT(r=h.createElement("text"),e.Fs);else if(t4(e))switch(e.vs.toUpperCase()){case"BR":r=h.createElement("br");break;case"SPAN":(s=r=h.createElement("span")).style.backgroundColor="rgba(0,0,0,0.6)",s.style.textAlign="start",s.style.lineHeight="normal",AO(r,e);break;case"P":(o=r=h.createElement("p")).style.fontFamily="Arial, Helvetica, Sans-Serif",o.style.color="white",o.style.justifyContent="flex-start",o.style.textAlign="start",o.style.padding="none",o.style.margin="0",o.style.lineHeight="normal",o.style.lineHeight="1.3em",o.style.textShadow="rgb(0, 0, 0) -1px -1px 0px, rgb(0, 0, 0) 1px -1px 0px, rgb(0, 0, 0) -1px 1px 0px, rgb(0, 0, 0) 1px 1px 0px",AO(r,e);break;case"DIV":(r=h.createElement("div")).style.position="absolute",AO(r,e)}return r}function AO(e,r){var s=r.Ps(vA,"id");s&&(e.id=s)}function AD(e,r,s,o){void 0===o&&(o=!1),o&&(e.style.width=e.style.height="100%");
1var u,a=h.createElement("img");a.src=(u=r&&r.Es.length>0?r.Es[0]:null)&&t6(u)?"data:image/png;base64,"+u.Fs:"",a.id=e.id,a.style.height="100%",a.style.maxWidth="100%",function(e,r){e.style.display="flex";var s=r.Cs("smpte:backgroundImageVertical");if(s)switch(s.toLowerCase()){case"left":e.style.alignItems="flex-start";break;case"center":e.style.alignItems="center";break;case"right":e.style.alignItems="flex-end";break;case"inherit":e.style.alignItems="inherit"}else e.style.alignItems="center";var o=r.Cs("smpte:backgroundImageHorizontal");if(o)switch(o.toLowerCase()){case"left":e.style.justifyContent="flex-start";break;case"center":e.style.justifyContent="center";break;case"right":e.style.justifyContent="flex-end";break;case"inherit":e.style.justifyContent="inherit"}else e.style.justifyContent="center"}(e,s),e.appendChild(a)}function AU(e,r,s,o){r&&r.split(" ").forEach(function(r){s[r]&&w.keys(s[r]).forEach(function(u){var a=vT(u,["ebutts","tts","xml"]);"style"===a.toLowerCase()?AU(e,s[r][u],s,o):AR[a]&&AR[a](s[r][u],e,o)})})}function AM(e){e.style.display="flex",e.style.top="auto",e.style.left="5%",e.style.width="90%",e.style.height="100%",e.style.maxHeight=e.style.maxWidth="100%",e.style.alignItems="flex-start",e.style.overflow="visible",e.style.position="absolute",e.style.justifyContent="center",e.style.textAlign="start",e.style.cssText=e.style.cssText.concat("ms-writing-mode: lr-tb, horizontal-tb;-webkit-writing-mode: horizontal-tb;-moz-writing-mode: horizontal-tb;writing-mode: horizontal-tb;"),e.style.padding="none",e.style.margin="0"}var AF,Aj,AH,AB,AV=void 0;(AX=AH||(AH={})).nj="Data",AX.uj="Tag",AX.vj="StartTag",AX.aj="StartTagClass",AX.sj="StartTagAnnotation",AX.dj="CharRefInAnnotation",AX.hj="EndTag",AX.cj="TimestampTag",(AW=AB||(AB={})).ej="string",AW.ij="starttag",AW._j="endtag",AW.gj="timestamp";var AX,AW,Aq,AY,A$={BU:Ad.WHITE,PU:"sans-serif",OU:"100%",LU:"rgba(0,0,0,0.8)",MU:Ad.TRANSPARENT,xU:"none",UU:"visible"},AJ="theoplayer-webvtt-region-",AQ=0,AG=function(e){function r(r,s,o,u){var a;return(a=e.call(this,r,s,o,u,A$)||this).yj={},a.mj=A0(3),a}j(r,e);var s=r.prototype;return s.Oz=function(e){var r=h.createElement("div");return r.className="theoplayer-webvtt-texttrack-"+e,ih(r),iu(r.style,"flex","-ms-flexbox"),r.style.overflow="hidden",r.style.pointerEvents="none",r.style.fontFamily=this.Zz.PU,r.style.whiteSpace="pre-line",r},s.Bz=function(e,r){for(var s=b.min(r/100,e/100),o=Af(this.Zz),u=0,a=w.keys(this.pj);u<a.length;u++){var h=a[u],c=this.pj[h].Aj;this.bj(c,s,o,this.pj[h].Gp)}this.bj(this.Tj,s,o),this.Ej()},s.Ej=function(){var e=Af(this.Zz);this.Tj.style.padding=e>=1.5?"0":1/e+"em"},s.zz=function(e){var r,s,o,u,a,h=this.pD,c=this.cF.kL/100,f=this.Tj;e.Gp&&(this.pj[e.Gp.hw]||(this.pj[e.Gp.hw]={Gp:e.Gp,Aj:(r=e.Gp,(o=A0(s=c)).className=AJ+r.hw,u=r.Lo,a=AK(r,s),o.style.width=u+"%",o.style.height=a+"px",o.style.left=Az(r)+"%",o.style.top=AZ(r,s)+"px",o.style.padding="0",o.style.boxSizing="border-box",o)}),f=this.pj[e.Gp.hw].Aj),h.querySelector("."+f.className)||h.appendChild(f);var l=this.jz(e);f.children.length>=1&&e.Gp&&"up"===e.Gp.aA&&(f.style.transitionProperty="top",f.style.transitionDuration="0.433s");for(var p=0;p<l.length;p++){var v=l[p];v.className=e.rA,f.appendChild(v)}},s.jz=function(e){var r=[];return e&&r.push(this.Sj(e)),r},s.Sj=function(e){for(var r=new sJ,s=e.Fp,o=this.Ij(e),u=o,a="",c=[],f={};r.Zh<s.length;){var l=function(e,r){for(var s,o=AH.nj,u="",a=[],h=e.charAt(r.Zh),c="",f={Ua:AB.ij,Ss:"",rj:[]};r.Zh<e.length+1;){switch(h=r.Zh<e.length?e.charAt(r.Zh):"EOF",o){case AH.nj:switch(h){case"&":var l=e.substr(r.Zh).match(/&#?[0-9a-zA-Z]+;/);l?(u+=(s=l[0],AV||(AV=n2.document.createElement("textarea")),AV.innerHTML=s,AV.value),r.Kh(l[0].length-1)):u+="&";break;case"<":if(u)return{Ua:AB.ej,Fp:u};o=AH.uj;break;case"EOF":return{Ua:AB.ej,Fp:u};default:u+=h}break;case AH.uj:switch(h){case"	":case"\n":case"\f":case" ":o=AH.sj;break;case".":o=AH.aj;break;case"/":o=AH.hj;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":u=h,o=AH.cj;break;case">":return r.Kh(1),f;case"EOF":return f;default:u=h,o=AH.vj}break;case AH.vj:switch(h){case"	":case"\f":case" ":o=AH.sj;break;case"\n":c=h,o=AH.sj;break;case".":o=AH.aj;break;case">":return r.Kh(1),{Ua:AB.ij,Ss:u,rj:[]};case"EOF":return{Ua:AB.ij,Ss:u,rj:[]};default:u+=h}break;case AH.aj:switch(h){case"	":case"\f":case" ":a.push(c),c="",o=AH.sj;break;case"\n":a.push(c),c=h,o=AH.sj;break;case".":a.push(c),c="";break;case">":return r.Kh(1),a.push(c),{Ua:AB.ij,Ss:u,rj:a};case"EOF":return a.push(c),{Ua:AB.ij,Ss:u,rj:a};default:c+=h}break;case AH.sj:switch(h){case"&":o=AH.dj;break;case">":r.Kh(1);var p=c.trim();return p=p.replace(/\s/," "),{Ua:AB.ij,Ss:u,rj:a,lj:p};default:c+=h}break;case AH.dj:for(var v="",d=r.Zh;">"===e.charAt(d);d++)v+=e.charAt(d);c+=v||"&",o=AH.sj;break;case AH.hj:switch(h){case">":return r.Kh(1),{Ua:AB._j,Ss:u};case"EOF":return{Ua:AB._j,Ss:u};default:u+=h}break;case AH.cj:switch(h){case">":return r.Kh(1),{Ua:AB.gj,wj:u};case"EOF":return{Ua:AB.gj,wj:u};default:u+=h}}r.Kh(1)}}(s,r);if(l.Ua===AB.ej){var p=this.Rj(l.Fp);(function(e,r){if(r.c)for(var s=0,o=r.c;s<o.length;s++){var u=o[s];if(u.rj)for(var a=0,h=u.rj;a<h.length;a++)ir(e,"theoplayer-webvtt-styling-"+h[a])}if(r.v)for(var c=0,f=r.v;c<f.length;c++){var l=f[c];l.lj&&ir(e,"theoplayer-webvtt-voice-"+l.lj)}})(p,f),u.appendChild(p)}else if(l.Ua===AB.ij){switch(f[l.Ss.toLowerCase()]||(f[l.Ss.toLowerCase()]=[]),f[l.Ss.toLowerCase()].push(l),l.Ss.toLowerCase()){case"c":case"v":break;case"i":var v=h.createElement("i");u.appendChild(v),u=v;break;case"b":var d=h.createElement("b");u.appendChild(d),u=d;break;case"u":var y=h.createElement("u");u.appendChild(y),u=y;break;case"ruby":var g=h.createElement("ruby");u.appendChild(g),u=g;break;case"rt":if("ruby"===a){var m=h.createElement("rt");u.appendChild(m)}break;case"lang":c.push(l.lj)}a=l.Ss||""}else if(l.Ua===AB._j)f[l.Ss.toLowerCase()]&&f[l.Ss.toLowerCase()].pop(),(!l.Ss||"C"!==l.Ss.toUpperCase()&&"V"!==l.Ss.toUpperCase())&&("LANG"===l.Ss.toUpperCase()?c.pop():"RUBY"===l.Ss.toUpperCase()&&"RUBY"===u.tagName?u=u.parentNode.parentNode:u.tagName&&u.tagName.toUpperCase()===l.Ss.toUpperCase()&&(u=u.parentNode)),a=l.Ss||"";
1else if(l.Ua===AB.gj){var w=l.wj,b=new sJ;try{vs(w,b)}catch(e){tk("ERROR collecting timestamp",e)}}}return o},s.Rj=function(e){var r=h.createElement("span");return AT(r,e),r.style.background=this.Zz.LU,r.style.color=this.Zz.BU,r},s.bj=function(e,r,s,o){if(o){var u=AK(o,r);e.style.height=u*s+"px",e.style.left=Az(o)+"%",e.style.top=AZ(o,r)+"px"}e.style.fontSize=5.23*r*s+"px"},s.Ij=function(e){var r,s,o,u,a,c,f=h.createElement("div");return f.style.margin="0",f.style.padding="0",f.style.unicodeBidi="plaintext",f.style.wordWrap="break-word",f.style.width="auto",f.style.textAlign=e.Hp,"rl"===e.jp?f.style.writingMode="vertical-rl":"lr"===e.jp?f.style.writingMode="vertical-lr":f.style.writingMode="horizontal-tb",r=pD(e),""===e.jp?(f.style.width=r+"%",f.style.height="auto"):(f.style.height=r+"%",f.style.width="auto"),u=pO(e),a=pN(e),c=pD(e),""===e.jp?("line-left"===u?s=a:"center"===u?s=a-c/2:"line-right"===u&&(s=a-c),o=e.zp?0:pI(e)):("line-left"===u?o=a:"center"===u?o=a-c/2:"line-right"===u&&(o=a-c),s=e.zp?0:pI(e)),f.style.left=s+"%",f.style.top=o+"%",f.style.background=this.Zz.MU,f.style.color=this.Zz.BU,f.style.textShadow=Ak(this.Zz.xU),f},s.Yz=function(e){for(var r=e.rA,s=this.pD,o=s.children,u=0;u<o.length;u++){for(var a=o[u].getElementsByClassName(r),h=0;h<a.length;h++)o[u].removeChild(a[h]);if(0===o[u].childNodes.length){for(var c=0,f=w.keys(this.pj);c<f.length;c++){var l=f[c];if(nX(o[u].className,AJ+l)){delete this.pj[l];break}}s.removeChild(o[u])}}},M(r,[{key:"pj",get:function(){return this.yj||(this.yj={}),this.yj}},{key:"Tj",get:function(){return this.mj||(this.mj=A0(3)),this.mj}},{key:"Vz",get:function(){return"theoplayer-webvtt-cue-"+AQ++}}]),r}(Ay);function AK(e,r){return e.uA*(5.23*r)*1.14}function Az(e){return e.hA-e.sA*e.Lo/100}function AZ(e,r){var s=e.cA,o=e.oA*AK(e,r)/100;return b.max(0,s-o)}function A0(e){var r=h.createElement("div");return r.className=AJ+"default",ih(r),iu(r.style,"inline-flex","-ms-flexbox"),r.style.flexFlow="column",r.style.justifyContent="flex-end",r.style["-ms-flex-align"]="end",r.style.overflow="hidden",r.style.wordWrap="break-word",r.style.writingMode="horizontal-tb",r.style.pointerEvents="none",r.style.maxHeight="100%",r.style.minHeight="0px",r.style.margin="0",r.style.padding="1em",r.style.boxSizing="border-box",r.style.fontSize=5.23*e+"px",r.style.lineHeight="1.14em",r}(xi=Aq||(Aq={}))[xi.Nj=0]="Nj",xi[xi.Dj=1]="Dj",xi[xi.Cj=2]="Cj",xi[xi.Pj=3]="Pj",xi[xi.Bj=4]="Bj",xi[xi.Oj=5]="Oj",(xr=AY||(AY={}))[xr.Lj=0]="Lj",xr[xr.Mj=1]="Mj",xr[xr.xj=2]="xj",xr[xr.Uj=3]="Uj";var A1=/CC[1-4]=(.*)/,A2=/CC1=(.*)/,A3=[[42,225],[92,233],[94,237],[95,243],[96,250],[123,231],[124,247],[125,209],[126,241],[127,9608],[128,174],[129,176],[130,189],[131,191],[132,8482],[133,162],[134,163],[135,9834],[136,224],[137,32],[138,232],[139,226],[140,234],[141,238],[142,244],[143,251],[144,193],[145,201],[146,211],[147,218],[148,220],[149,252],[150,8216],[151,161],[152,42],[153,8217],[154,9473],[155,169],[156,8480],[157,8226],[158,8220],[159,8221],[160,192],[161,194],[162,199],[163,200],[164,202],[165,203],[166,235],[167,206],[168,207],[169,239],[170,212],[171,217],[172,249],[173,219],[174,171],[175,187],[176,195],[177,227],[178,205],[179,204],[180,236],[181,210],[182,242],[183,213],[184,245],[185,123],[186,125],[187,92],[188,94],[189,95],[190,124],[191,8764],[192,196],[193,228],[194,214],[195,246],[196,223],[197,165],[198,164],[199,9475],[200,197],[201,229],[202,216],[203,248],[204,9487],[205,9491],[206,9495],[207,9499]].reduce(function(e,r){return e[r[0]]=r[1],e},{}),A5=function(){function e(){this.Fj=[],this.Hj=0,this.Xj=void 0;for(var e=0;e<32;e++)this.Fj.push(null);this.Xj=!1}var r=e.prototype;return r.Vj=function(e){for(var r=0;r<32;r++)e&&(this.Fj[r]=e.Fj[r])},r.xy=function(e){for(var r=0;r<32;r++)if(this.Fj[r]!==e.Fj[r])return!1;return!0},r.Wj=function(){for(var e=0;e<32;e++)if(null!==this.Fj[e])return!1;return!0},r.qj=function(e){this.Hj!==e&&(this.Hj=e),this.Hj<0?this.Hj=0:this.Hj>32&&(this.Hj=31)},r.Gj=function(e){var r=this.Hj+e;this.qj(r)},r.zj=function(){this.Gj(-1),this.Fj[this.Hj]=null},r.jj=function(e){e>=144&&this.zj();var r=A3[e]?String.fromCharCode(A3[e]):String.fromCharCode(e);this.Hj>=32||(32===Number(r)?(this.Fj[this.Hj]=this.Xj?"</i>":"<i>",this.Xj=!this.Xj):this.Fj[this.Hj]=r,this.Gj(1))},r.Yj=function(e){for(var r=e;r<32;r++)this.Fj[r]=null},r.Yh=function(){this.Yj(0),this.Hj=0},r.Qj=function(){this.Yj(this.Hj)},r.Zj=function(e,r){for(var s=this.Fj,o=null,u=0;u<32;u++){var a=s[u];null===a?o=null:(o||(o={x_:u,y_:e,Lo:0,yT:1,Fj:[[]]},r.push(o)),o.Fj[0].push(a),o.Lo++)}},r.nm=function(e,r){return e.$j(this.Fj,r)},e}(),A4=function(){function e(){this.tY=void 0,this.nY=void 0,this.iY=null,this.tY=[];for(var e=0;e<15;e++)this.tY.push(new A5);this.nY=14,this.Yg()}var r=e.prototype;return r.Vj=function(e){for(var r=0;r<15;r++)this.tY[r].Vj(e.tY[r])},r.xy=function(e){for(var r=!0,s=0;s<15;s++)if(!this.tY[s].xy(e.tY[s])){r=!1;break}return r},r.Wj=function(){for(var e=!0,r=0;r<15;r++)if(!this.tY[r].Wj()){e=!1;break}return e},r.Yg=function(){for(var e=0;e<15;e++)this.tY[e].Yh();this.nY=14},r.jj=function(e){this.tY[this.nY].jj(e)},r.rY=function(){this.tY[this.nY].zj()},r.Qj=function(){this.tY[this.nY].Qj()},r.eY=function(){if(null!==this.iY){var e=this.nY+1-this.iY,r=this.tY[e];r&&(rf(this.tY,e),r.Yh(),this.tY.splice(this.nY,0,r))}},r.Gj=function(e){this.tY[this.nY].Gj(e)},r.uY=function(e){this.iY=e},r.sY=function(e){var r=e.oY;this.iY&&r<this.iY-1&&(r=this.iY-1),this.nY=r;var s=this.tY[this.nY];null!==e.aY&&s.qj(e.aY)},r.hY=function(){for(var e=this.tY,r=[],s=0;s<e.length;s++)e[s].Zj(s,r);for(var o=0;o<r.length;o++){for(var u=!1,a=r[o],h=r.length-1;h>o;){var c,f,l=r[h];c=a,f=l,c.x_<=f.x_+f.Lo&&f.x_<=c.x_+c.Lo&&c.y_<=f.y_+f.yT&&f.y_<=c.y_+c.yT&&(a=function(e,r){for(var s=b.min(e.x_,r.x_),o=b.min(e.y_,r.y_),u=b.max(e.x_+e.Lo,r.x_+r.Lo)-s,a=b.max(e.y_+e.yT,r.y_+r.yT)-o,h=Array(a),c=0;c<a;c++){var f=Array(u),l=e.Fj[c+o-e.y_];if(l)for(var p=0;p<l.length;p++)l[p]&&(f[p-s+e.x_]=l[p]);var v=r.Fj[c+o-r.y_];if(v)for(var d=0;d<v.length;d++)v[d]&&(f[d-s+r.x_]=v[d]);h[c]=f}return{x_:s,y_:o,Lo:u,yT:a,Fj:h}}(a,l),rf(r,h),u=!0),h--}u&&(r[o]=a,o--)}return r.map(A6)},r.nm=function(e){return e.cY(this.tY)},e}();function A6(e){for(var r=Array(e.yT),s=e.Fj,o=0;o<s.length;o++){for(var u=s[o],a=[],h=!1,c=0;c<u.length;c++){var f=u[c];f?(h||(h=!0,a.push("<c.theoplayer-text-track-fragment>")),a.push(f)):(h&&(h=!1,a.push("</c>")),a.push(" "))}h&&(h=!1,a.push("</c>")),r[o]=a.join("")}var l=r.join("\n");return{x_:e.x_,y_:e.y_,Lo:e.Lo,yT:e.yT,Fp:l}}var A8=function(){function e(e,r){this.oY=e,this.aY=r}return e.prototype.xy=function(e){return this.oY===e.oY&&this.aY===e.aY},e}(),A7=function(){function e(e){this.fY=void 0,this.vY=void 0,this.dY=e,this.fY=this.lY(),this.vY=this._Y()}var r=e.prototype;return r.lY=function(){for(var e=new A8(1/0,1/0),r=0,s=this.gY;r<s.length;r++){var o=s[r];e=new A8(b.min(e.oY,o.wY.oY),b.min(e.aY,o.wY.aY))}return e},r._Y=function(){for(var e=new A8(-1/0,-1/0),r=0,s=this.gY;r<s.length;r++){var o=s[r];e=new A8(b.max(e.oY,o.yY.oY),b.max(e.aY,o.yY.aY))}return e},M(e,[{key:"wY",get:function(){return this.fY}},{key:"yY",get:function(){return this.vY}},{key:"gY",get:function(){return ry(this.dY.map(function(e){return e.gY}))}}]),e}(),A9=function(){function e(e,r){this.kY="",this.FU=e,this.fY=r}var r=e.prototype;return r.jj=function(e){this.kY+=e},r.mY=function(e){for(var r=0;r<e.length;r++){var s=e[r];this.jj(s)}},M(e,[{key:"pY",get:function(){return this.kY}},{key:"gY",get:function(){return[this]}},{key:"AY",get:function(){return this.FU}},{key:"wY",get:function(){return this.fY}},{key:"yY",get:function(){return new A8(this.wY.oY,this.wY.aY+this.pY.length-1)}}]),e}(),xt=function(){function e(){}var r=e.prototype;return r.bY=function(e){return e.nm(this)},r.cY=function(e){var r=this;return ry(e.map(function(e,s){return e.nm(r,s)}))},r.$j=function(e,r){return new xe(e,r).TY()},e}(),xe=function(){function e(e,r){this.EY=[],this.SY=null,this.oY=e,this.IY=r}var r=e.prototype;return r.TY=function(){if(this.RY)return[];for(var e=0;e<this.oY.length;e++)this.NY(e);return this.DY(),this.EY},r.CY=function(e){this.SY=new A9(xf,new A8(this.IY,e))},r.DY=function(){this.SY&&(this.EY.push(this.SY),this.SY=null)},r.NY=function(e){var r=this.oY[e];xn(r)?this.SY&&this.DY():(this.SY||this.CY(e),this.SY.jj(r))},M(e,[{key:"RY",get:function(){return this.oY.every(xn)}}]),e}();function xn(e){return null==e}var xi,xr,xs,xo=function(e){function r(r,s,o){return e.call(this,r,s,o,!1)||this}return j(r,e),r}(pL),xu=function(e){function r(r){var s;return(s=e.call(this,"PY")||this).cue=r,s}return j(r,e),r}(rX);(xa=xs||(xs={}))[xa.cC=0]="cC",xa[xa.BY=1]="BY",xa[xa.OY=2]="OY",xa[xa.LY=3]="LY",xa[xa.Ku=4]="Ku";var xa,xh,xc=function(e){function r(){var r;return(r=e.call(this)||this).Ck=lW.Jy,r.xp=lW.Jy,r.MY=void 0,r.xY=void 0,r.UY=void 0,r.FY=void 0,r.Aw=xs.cC,r.MY=new A4,r.xY=new A4,r.UY=new A4,r.FY=r.MY,r}j(r,e);var s=r.prototype;return s.jj=function(e){this.FY.jj(e),this.Aw!==xs.BY&&this.Aw!==xs.OY||this.HY()},s.ZP=function(e){e!==this.Aw&&(this.Aw=e,this.Aw===xs.LY?this.FY=this.xY:(this.FY=this.MY,this.FY.Yg()),this.Aw!==xs.OY&&(this.MY.uY(null),this.xY.uY(null)))},s.sY=function(e){this.FY.sY(e)},s.XY=function(){this.ZP(xs.LY)},s.VY=function(){this.Aw!==xs.Ku&&(this.FY.rY(),this.FY===this.MY&&this.HY())},s.WY=function(){},s.qY=function(){},s.GY=function(){this.FY.Qj(),this.HY()},s.zY=function(e){this.FY=this.MY,this.ZP(xs.OY),this.FY.uY(e)},s.jY=function(){},s.YY=function(){this.ZP(xs.BY)},s.QY=function(){this.ZP(xs.Ku)},s.ZY=function(){this.ZP(xs.Ku)},s.KY=function(){this.MY.Yg(),this.HY()},s.JY=function(){this.FY.eY(),this.HY()},s.$Y=function(){this.xY.Yg()},s.tQ=function(){if(this.Aw===xs.LY){var e=this.MY;this.MY=this.xY,this.xY=e,this.FY=this.xY}this.HY()},s.nQ=function(e){this.FY.Gj(e)},s.HY=function(){if(null!==this.Ck){if((!this.xp||this.xp.hk())&&!this.MY.Wj())this.xp=this.Ck;else if(!this.MY.xy(this.UY)){var e=this.iQ();if(this.Ck.Cy(this.xp)){var r=new xo(this.xp.Dy(),this.Ck.Dy(),e);this.yh(new xu(r))}this.xp=this.MY.Wj()?null:this.Ck}this.UY.Vj(this.MY)}},s.iQ=function(){return function(e){for(var r,s=[],o=[].concat(e);o.length>0;){var u=o.pop(),a=void 0;do{a=!1;for(var h=0;h<o.length;h++){var c,f,l,p,v,d,y,g,m,w=o[h];m=r=u,(1>=b.abs(m.yY.aY-w.wY.aY)||1>=b.abs(w.yY.aY-m.wY.aY)||1>=b.abs(m.yY.oY-w.wY.oY)||1>=b.abs(w.yY.oY-m.wY.oY)||(c=r.wY.oY,f=r.yY.oY,l=w.wY.oY,p=w.yY.oY,f>=l&&p>=c&&(v=r.wY.aY,d=r.yY.aY,y=w.wY.aY,g=w.yY.aY,d>=y&&g>=v)))&&(u=new A7([].concat(u.gY,w.gY)),rc(o,w),a=!0)}}while(a&&o.length>0);s.push(u)}return s}((new xt).bY(this.UY))},s.Yg=function(){this.Ck=lW.Jy,this.xp=lW.Jy,this.MY.Yg(),this.MY.uY(null),this.xY.Yg(),this.xY.uY(null),this.UY.Yg(),this.UY.uY(null),this.FY=this.MY,this.Aw=xs.cC},r}(rB);(xE=xh||(xh={})).FONT_REGULAR="regular",xE.FONT_UNDERLINE="underline",xE.FONT_ITALICS="italics",xE.FONT_UNDERLINE_ITALICS="underline-italics";var xf={BU:Ad.WHITE,PU:Av.$z,OU:"100%",LU:Ad.BLACK,MU:"transparent",xU:"none",rQ:xh.FONT_REGULAR,UU:"visible"},xl=[{eQ:Ad.WHITE,rQ:xh.FONT_REGULAR,aY:0},{eQ:Ad.WHITE,rQ:xh.FONT_UNDERLINE,aY:0},{eQ:Ad.GREEN,rQ:xh.FONT_REGULAR,aY:0},{eQ:Ad.GREEN,rQ:xh.FONT_UNDERLINE,aY:0},{eQ:Ad.BLUE,rQ:xh.FONT_REGULAR,aY:0},{eQ:Ad.BLUE,rQ:xh.FONT_UNDERLINE,aY:0},{eQ:Ad.CYAN,rQ:xh.FONT_REGULAR,aY:0},{eQ:Ad.CYAN,rQ:xh.FONT_UNDERLINE,aY:0},{eQ:Ad.RED,rQ:xh.FONT_REGULAR,aY:0},{eQ:Ad.RED,rQ:xh.FONT_UNDERLINE,aY:0},{eQ:Ad.YELLOW,rQ:xh.FONT_REGULAR,aY:0},{eQ:Ad.YELLOW,rQ:xh.FONT_UNDERLINE,aY:0},{eQ:Ad.MAGENTA,rQ:xh.FONT_REGULAR,aY:0},{eQ:Ad.MAGENTA,rQ:xh.FONT_UNDERLINE,aY:0},{eQ:Ad.WHITE,rQ:xh.FONT_ITALICS,aY:0},{eQ:Ad.WHITE,rQ:xh.FONT_UNDERLINE_ITALICS,aY:0},{eQ:Ad.WHITE,rQ:xh.FONT_REGULAR,aY:0},{eQ:Ad.WHITE,rQ:xh.FONT_UNDERLINE,aY:0},{eQ:Ad.WHITE,rQ:xh.FONT_REGULAR,aY:4},{eQ:Ad.WHITE,rQ:xh.FONT_UNDERLINE,aY:4},{eQ:Ad.WHITE,rQ:xh.FONT_REGULAR,aY:8},{eQ:Ad.WHITE,rQ:xh.FONT_UNDERLINE,aY:8},{eQ:Ad.WHITE,rQ:xh.FONT_REGULAR,aY:12},{eQ:Ad.WHITE,rQ:xh.FONT_UNDERLINE,aY:12},{eQ:Ad.WHITE,rQ:xh.FONT_REGULAR,aY:16},{eQ:Ad.WHITE,rQ:xh.FONT_UNDERLINE,aY:16},{eQ:Ad.WHITE,rQ:xh.FONT_REGULAR,aY:20},{eQ:Ad.WHITE,rQ:xh.FONT_UNDERLINE,aY:20},{eQ:Ad.WHITE,rQ:xh.FONT_REGULAR,aY:24},{eQ:Ad.WHITE,rQ:xh.FONT_UNDERLINE,aY:24},{eQ:Ad.WHITE,rQ:xh.FONT_REGULAR,aY:28},{eQ:Ad.WHITE,rQ:xh.FONT_UNDERLINE,aY:28}],xp=[11,-1,1,2,3,4,12,13,14,15,5,6,7,8,9,10],xv=function(e){function r(){(r=e.call(this)||this).uQ=void 0,r.sQ=null,r.oQ=null,r.aQ=0;var r,s=new xc;return r.uQ=[s,new xc],s.kh("PY",r.wh),r}j(r,e);var s=r.prototype;return s.Yg=function(){for(var e=0,r=this.uQ;e<r.length;e++)r[e].Yg()},s.hQ=function(e,r){if(r.Ua===AY.Lj&&r.cQ){r.fQ&&(this.aQ=0),this.uQ[this.aQ].Ck=e;var s=127&r.vQ,o=127&r.dQ;if(s+o!==0){switch(s){case 17:o>=32&&o<=47&&this.lQ(),o>=48&&o<=63&&this._Q(s,o);break;case 18:case 19:o>=32&&o<=63&&this._Q(s,o);break;case 20:case 21:o>=32&&o<=47&&this.gQ(s,o);break;case 23:o>=33&&o<=35&&this.gQ(s,o),o>=46&&o<=47&&this.lQ()}16===s&&o>=64&&o<=95?this.wQ(s,o):s>=17&&s<=23&&o>=64&&o<=127&&this.wQ(s,o),s>=32&&this._Q(s,o)}}},s.gQ=function(e,r){var s=null;if(e===this.sQ&&r===this.oQ)return this.sQ=null,this.oQ=null,!0;s=+(20!==e&&23!==e);var o=this.uQ[s];return 20===e||28===e?32===r?o.XY():33===r?o.VY():34===r?o.WY():35===r?o.qY():36===r?o.GY():37===r?o.zY(2):38===r?o.zY(3):39===r?o.zY(4):40===r?o.jY():41===r?o.YY():42===r?o.QY():43===r?o.ZY():44===r?o.KY():45===r?o.JY():46===r?o.$Y():47===r&&o.tQ():o.nQ(r-32),this.sQ=e,this.oQ=r,this.aQ=s,!0},s.wQ=function(e,s){e===this.sQ&&s===this.oQ&&(this.sQ=null,this.oQ=null);var o=e<=23?0:1,u=xp[e<<1&14|s>>5&1]-1;if(!(u<0)){var a=r.yQ(u,s);this.uQ[o].sY(a),this.sQ=e,this.oQ=s,this.aQ=o}},r.yQ=function(e,r){var s=r>95?r-96:r-64;return{eQ:xl[s].eQ,rQ:xl[s].rQ,aY:xl[s].aY,oY:e}},s._Q=function(e,r){var s=e>=25?e-8:e,o=this.uQ[this.aQ],u=!1;switch(s){case 17:o.jj(r+80),u=!0;break;case 18:o.jj(r+112),u=!0;break;case 19:o.jj(r+144),u=!0;break;default:e>=32&&(o.jj(e),r>=32&&o.jj(r),u=!0)}u&&(this.sQ=null,this.oQ=null)},s.lQ=function(){this.uQ[this.aQ].FY.Gj(1)},s.Kl=function(){this.Th()},M(r,[{key:"VT",get:function(){return this.uQ.length}}]),r}(rB);function xd(e,r){var s,o;return s=e.kQ,o=r.kQ,s.Py(o)||l_(e.EE,r.EE)}var xy=function(){function e(e,r,s){this.mQ=void 0,this.pQ=e,this.AQ=r,this.mz=s}var r=e.prototype;return r.bQ=function(){return this.mQ=this.TQ(),this.EQ(),this.SQ(),this.mQ},r.TQ=function(){var e=h.createElement("div");return e.style.position="absolute",e.style.margin="0",e.style.padding="0",e.style.whiteSpace="pre",e.style.width=this.IQ/32*this.AQ.RQ*100+"%",e.style.height=1.2*this.NQ+"em",e.style.lineHeight="1.2em",e.style.letterSpacing=this.AQ.DQ?"calc(1em - 1ch)":"",e.style.fontFamily=this.mz.PU,e.style.backgroundColor=this.mz.MU,e},r.EQ=function(){var e=this.CQ.oY/15*100,r=this.CQ.aY/32*100,s=(32-this.BQ.aY-1)/32*100,o=(15-this.BQ.oY-1)/15*100;this.AQ.OQ||(r=s=1,this.mQ.style.width="98%"),o<e?this.mQ.style.bottom=o*this.AQ.RQ+"%":this.mQ.style.top=e*this.AQ.RQ+"%",s<r?this.mQ.style.right=s+"%":this.mQ.style.left=r+"%"},r.SQ=function(){for(var e=this.pQ.gY.sort(xg),r=0;r<e.length;r++)this.LQ(e[r-1],e[r]),this.MQ(e[r]);this.LQ(e[e.length-1],null)},r.MQ=function(r){var s=Ac(this.mz,r.AY),o=e.xQ(s);AT(o,r.pY),this.mQ.appendChild(o)},e.xQ=function(e){var r=h.createElement("span");return r.style.display="inline-block",e.rQ!==xh.FONT_ITALICS&&e.rQ!==xh.FONT_UNDERLINE_ITALICS||(r.style.fontStyle="italic"),e.rQ!==xh.FONT_UNDERLINE&&e.rQ!==xh.FONT_UNDERLINE_ITALICS||(r.style.textDecoration="underline"),r.style.color=e.BU,r.style.backgroundColor=e.LU,r.style.textShadow=Ak(e.xU),r.style.height="1.2em",r},r.LQ=function(e,r){var s=e?e.yY.oY:this.pQ.wY.oY,o=r?r.wY.oY:this.pQ.yY.oY,u=e?e.yY.aY:this.pQ.wY.aY,a=r?r.wY.aY:this.pQ.yY.aY;s<o&&(!r||e&&e.wY.oY!==r.wY.oY?this.UQ():this.FQ(this.pQ.yY.aY-u),u=this.pQ.wY.aY),u<a&&(r?this.FQ(a-u):this.UQ())},r.UQ=function(){var e=h.createElement("br");this.mQ.appendChild(e)},r.FQ=function(e){if(!(e<=0)){var r=h.createElement("span");r.style.display="inline-block",AT(r,n$(" ",e)),this.mQ.appendChild(r)}},M(e,[{key:"CQ",get:function(){return this.pQ.wY}},{key:"BQ",get:function(){return this.pQ.yY}},{key:"IQ",get:function(){return this.pQ.yY.aY-this.pQ.wY.aY+1}},{key:"NQ",get:function(){return this.pQ.yY.oY-this.pQ.wY.oY+1}}]),e}();function xg(e,r){var s,o;return s=e.wY,o=r.wY,s.oY!==o.oY?s.oY-o.oY:
1s.aY-o.aY}var xm=0,xw=function(e){function r(r,s,o,u){var a;return(a=e.call(this,r,s,o,u,xf)||this).HQ=void 0,a.XQ=void 0,a}j(r,e);var s=r.prototype;return s.Oz=function(e){var r=h.createElement("div");return r.className="theoplayer-cea608-texttrack-"+e,r.style.position="absolute",r.style.overflow="hidden",r.style.pointerEvents="none",r.style.height="100%",this.Zz.PU&&(r.style.fontFamily=this.Zz.PU),r},s.Bz=function(e,r){this.VQ()},s.VQ=function(){var e,r=Af(this.Zz);this.XQ={RQ:(e=100*r)/100,DQ:e<=100,OQ:e<=150};var s=this.WQ/32;this.HQ=s*r,this.pD.style.fontSize=this.HQ+"px"},s.jz=function(e){var r=this;return this.XQ&&this.XQ.OQ?this.qQ(80):this.qQ(100),this.VQ(),e.Fp.map(function(e){return new xy(e,r.XQ,r.Zz).bQ()})},s.qQ=function(e){this.pD.style.left=(100-e)/2+"%",this.pD.style.width=e+"%"},M(r,[{key:"WQ",get:function(){var e=this.pD.offsetWidth;return this.XQ&&this.XQ.OQ||(e*=.8),e}},{key:"Vz",get:function(){return"theoplayer-cea608-texttrack-"+xm++}}]),r}(Ay),xb=function(){function e(e,r,s,o,u){var a=this;this.GQ=void 0,this.Oq=void 0,this.Rm=void 0,this.zQ=void 0,this.jQ=[],this.mP=void 0,this.YQ=function(e){var r=e.yg;r.kh(cZ.Og,a.QQ),r.kh(cZ.Mg,a.QQ),r instanceof EJ&&(r.FW=a.FW),a.ZQ(r)},this.QQ=function(e){var r=e.yg;a.ZQ(r)},this.KQ=function(e){var r=e.yg;r.Eh(cZ.Og,a.QQ),r.Eh(cZ.Mg,a.QQ),a.JQ(r)},this.$Q=function(){for(var e=a.FW,r=0,s=a.Rm.Qg;r<s.length;r++){var o=s[r];o instanceof EJ&&(o.FW=e)}},this.tZ=function(){for(var e=0,r=a.jQ;e<r.length;e++)r[e].Mz(a.mP)},this.nZ=function(){for(var e=0,r=a.jQ;e<r.length;e++){var s=r[e];s.Mz(iD({},s.Uz(),{UU:"hidden"}))}},this.iZ=function(){for(var e=0,r=a.jQ;e<r.length;e++){var s=r[e];s.Mz(iD({},s.Uz(),{UU:"visible"}))}},this.GQ=e,this.Oq=r,this.Rm=s,this.zQ=u,this.mP=o,this.Rm.kh(cG.cg,this.YQ),this.Rm.kh(cG.vg,this.KQ),this.Rm.kh("Bg",this.QQ),this.zQ.kh(mn.Pg,this.$Q),this.mP.kh("Bg",this.tZ),this.$Q()}var r=e.prototype;return r.rZ=function(e){for(var r=0,s=this.jQ;r<s.length;r++){var o=s[r];if(o.yg===e)return o}},r.eZ=function(e){switch(e.Ua){case po.TTML:case po.SRT:case po.WEBVTT:case po.CEA608:return!0}return!1},r.uZ=function(e){switch(e.Ua){case po.TTML:return new AP(e,this.GQ,e.vw,this.Oq);case po.SRT:case po.WEBVTT:return new AG(e,this.GQ,e.vw,this.Oq);case po.CEA608:return new xw(e,this.GQ,e.vw,this.Oq)}},r.sZ=function(e){var r=this.rZ(e);r||((r=this.uZ(e)).Mz(this.mP),this.jQ.push(r),e.Aw===fk.yw&&r.Wz())},r.JQ=function(e){for(var r=this.jQ,s=r.length-1;s>=0;s-=1){var o=r[s];o.yg===e&&(o.Kl(),rf(r,s))}},r.ZQ=function(e){vz(e.fw)&&this.eZ(e)&&(e.bw===ps.ERROR?this.JQ(e):this.sZ(e))},r.Yg=function(){for(var e=0,r=this.jQ;e<r.length;e++){var s=r[e];s.yg.Eh(cZ.Og,this.QQ),s.yg.Eh(cZ.Mg,this.QQ),s.Kl()}rv(this.jQ)},r.Kl=function(){this.Yg();for(var e=0,r=this.jQ;e<r.length;e++)r[e].Kl();this.Rm.Eh(cG.cg,this.YQ),this.Rm.Eh(cG.vg,this.KQ),this.Rm.Eh("Bg",this.QQ),this.zQ.Eh(mn.Pg,this.$Q),this.mP.Eh("Bg",this.tZ)},M(e,[{key:"FW",get:function(){return this.zQ.cP}}]),e}();function xk(e){var r,s=new br,o=(r=[],bn.VL(e)&&r.push(new bn(e)),bi.VL(e)&&r.push(new bi(e)),r);if(o.length>0){for(var u=0;u<o.length;u++){var a=o[u];s.jL(a)}s.zL(o[0])}return s}var xE,xA,xx=function(e){function r(r,s,o,u){var a;return(a=e.call(this,r,s,o)||this).oZ=void 0,a.aZ=void 0,a.mP=void 0,a.hZ=void 0,a.hZ=xk(r),a.mP=u,a.oZ=new Ah,a.aZ=new xb(a.oZ.sp,a.cF,a.Om,a.mP,a.LD),a}j(r,e);var s,o=r.prototype;return o.Qm=function(){return this.kf},s=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return this.hZ.Kl(),this.oZ.Kl(),this.aZ.Kl(),r.next=5,e.prototype.rh.call(this);case 5:case"end":return r.stop()}},r,this)})),o.rh=function(){return s.apply(this,arguments)},o.Ym=function(){e.prototype.Ym.call(this),this.oZ.Ym()},o.jm=function(){e.prototype.jm.call(this),this.oZ.jm()},o.lz=function(r){e.prototype.lz.call(this,r),this.oZ.lz(r)},M(r,[{key:"pD",get:function(){return this.kf}},{key:"by",get:function(){return this.kf.videoHeight}},{key:"Ty",get:function(){return this.kf.videoWidth}},{key:"LD",get:function(){return this.hZ}}]),r}(Ao);(x1=xA||(xA={})).cZ="HELLO",x1.fZ="HI_THERE",x1.vZ="INITIALIZE",x1.dZ="APPEND_INIT",x1.lZ="APPEND_DATA",x1._Z="ACK",x1.gZ="REMOVE",x1.wZ="DESTROY_SESSION";var xT=function(){function e(){this.oo=void 0,this.wf=void 0,this.tN=new dr}var r=e.prototype;return r.yZ=function(e){var r,s=this;return this.tN.xS((r=P.coroutine(iO.mark(function e(r){var o,u,a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(r),u=(o=new MessageChannel).port1,a=o.port2,f.serviceWorker.controller){e.next=7;break}return e.next=7,cJ(f.serviceWorker,"install",r);case 7:if("activated"===f.serviceWorker.controller.state){e.next=10;break}return e.next=10,cJ(f.serviceWorker.controller,"activate",r);case 10:return h={kind:xA.cZ,port:a},f.serviceWorker.controller.postMessage(h,[a]),u.start(),s.oo=u,e.prev=15,e.next=18,cJ(u,"message",r);case 18:if((c=e.sent.data).kind===xA.fZ){e.next=23;break}throw new y("Could not set up message channel");case 23:s.wf=c.sessionId,e.next=30;break;
1case 26:throw e.prev=26,e.t0=e.catch(15),rx(e.t0)&&s.kZ(),e.t0;case 30:case"end":return e.stop()}},e,null,[[15,26]])})),function(e){return r.apply(this,arguments)}),e)},r.mZ=function(e,r){var s=this;return this.oo,this.tN.xS(P.coroutine(iO.mark(function o(){var u;return iO.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(s.oo){o.next=2;break}throw new y("MessageSession not set up yet or already closed.");case 2:return r||(r=[]),s.oo.postMessage(e,r),o.next=7,cJ(s.oo,"message");case 7:return u=o.sent,o.abrupt("return",u.data);case 10:case"end":return o.stop()}},o)})))},r.pZ=function(){var e=this;return this.tN.xS(function(){return e.kZ()})},r.kZ=function(){if(f.serviceWorker.controller&&"activated"===f.serviceWorker.controller.state&&this.oo){var e={kind:xA.wZ};this.oo.postMessage(e),this.oo.close(),this.oo=void 0}},e}(),xC=function(){function e(){this.AZ=lM.Xk}var r=e.prototype;return r.bZ=function(e,r){var s=e.Vy(r);this.AZ=s.Cy(this.TZ)?this.AZ:s},r.EZ=function(e){this.AZ=e},M(e,[{key:"TZ",get:function(){return this.AZ}}]),e}(),xS=function(){function e(){this.OS=P.resolve()}return e.prototype.SZ=function(e){var r=this.OS.then(e);return this.OS=r.then(I,I),r},e}(),xR=function(e){function r(r,s){var o;return(o=e.call(this)||this).IZ=void 0,o.RZ=void 0,o.NZ=!0,o.DZ=void 0,o.tN=new xS,o.CZ=new rE,o.PZ=!1,o.BZ=!1,o.qO=r,o.OZ=s,o}j(r,e);var s,o,u,a,h,c,f=r.prototype;return f.Sp=function(e,r){if(this.CH!==e){this.NZ=e;var s=new rX(e?"aw":"cH");this.yh(s)}return P.resolve()},f.TH=function(e,r){},f.EH=function(e,r){},f.uH=function(){return this.BZ},s=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.CZ.hh(),this.CZ=new rE;case 2:case"end":return e.stop()}},e,this)})),f.hh=function(){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)})),f.pH=function(){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)})),f.SH=function(e,r){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(s,o,u){var a,h,c,f=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s.Ua===kx.fH){e.next=2;break}throw new y("Streaming or opaque segments are not supported yet.");case 2:return a=s.Fs,h=this.LZ(u),c=function(){var e=P.coroutine(iO.mark(function e(){var s,o,u,c,l,p;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(h.dh),(s=vl(vw.Wb(new DataView(a.buffer)),pG.GA)).length){e.next=5;break}throw new y("Moof boxes not found");case 5:return o=f.DZ,u=r.MZ(s,o),c=f.xZ(s,o),l=a.buffer,p={kind:xA.lZ,mimeType:f.qO,segment:a,startPts:lW.jk(u).nm(),totalDuration:lW.jk(c).nm()},e.next=12,f.OZ.mZ(p,[l]);case 12:void 0===f.IZ&&(f.IZ=u),void 0===f.RZ&&(f.RZ=u),f.RZ=f.RZ.Wy(c),f.yh(new rX(kw.aH));case 16:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),e.abrupt("return",this.tN.SZ(P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f.PZ=!0,e.next=4,c();case 4:return e.prev=4,h.rh(),f.PZ=!1,e.finish(4);case 8:case"end":return e.stop()}},e,null,[[0,,4,8]])}))));case 6:case"end":return e.stop()}},e,this)})),f.mH=function(e,r,s){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r,s){var o,u,a,h=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.Ua===kx.fH){e.next=2;break}throw new y("Streaming or opaque initialization segments are not supported yet.");case 2:return o=r.Fs,u=this.LZ(s),a=function(){var e=P.coroutine(iO.mark(function e(){var r,s,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(u.dh),r=vf(vw.Wb(new DataView(o.buffer)),pG.kA)){e.next=5;break}throw new y("Moov Box not found");case 5:if(0!==r.iT.length){e.next=7;break}throw new y("Tracks not found");case 7:return h.DZ=r.iT[0].fT.Mb.Pk,s=o.buffer,a={kind:xA.dZ,mimeType:h.qO,segment:o},e.next=12,h.OZ.mZ(a,[s]);case 12:h.yh(new rX(kw.aH));case 13:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),e.abrupt("return",this.tN.SZ(P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,h.PZ=!0,e.next=4,a();case 4:return e.prev=4,u.rh(),h.PZ=!1,e.finish(4);case 8:case"end":return e.stop()}},e,null,[[0,,4,8]])}))));case 6:case"end":return e.stop()}},e,this)})),f.AH=function(e,r){return h.apply(this,arguments)},f.bH=function(){this.BZ=!0},c=P.coroutine(iO.mark(function e(r,s,o){var u,a,h=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=this.LZ(o),a=function(){var e=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(u.dh),r={kind:xA.gZ,mimeType:h.qO,endTime:lW.Wk(s).nm()},e.next=4,h.OZ.mZ(r);case 4:h.IZ=void 0,h.RZ=void 0,h.yh(new rX(kw.aH));case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),e.abrupt("return",this.tN.SZ(P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,h.PZ=!0,e.next=4,a();case 4:return e.prev=4,u.rh(),h.PZ=!1,e.finish(4);case 8:case"end":return e.stop()}},e,null,[[0,,4,8]])}))));case 3:case"end":return e.stop()}},e,this)})),f.Tc=function(e,r,s){return c.apply(this,arguments)},f.IX=function(e){return!1},f.RX=function(e){return P.resolve()},r.MZ=function(e,r){if(0===e.length)throw new y("Initial Moof box not found");var s=e[0];if(0===s.iT.length)throw new y("No tracks");if(!s.iT[0].DE)throw new y("No decode time");return new lM(s.iT[0].DE.DE.toNumber(),r)},f.LZ=function(e){var r=new rE;return r.fh(this.CZ.dh),e&&r.fh(e),r},f.xZ=function(e,r){var s=0;return e.forEach(function(e){e.iT.forEach(function(e){e.NE.forEach(function(e){e.ME.forEach(function(e){var r;s+=null!=(r=e.ly)?r:0})})})}),new lM(s,r)},M(r,[{key:"rp",get:function(){return void 0===this.IZ||void 0===this.RZ?mo.aP():new mo([this.IZ.Fk,this.RZ.Fk])}},{key:"iE",get:function(){return{$d:this.qO}}},{key:"FO",get:function(){return this.qO}},{key:"PH",get:function(){return mo.aP()}},{key:"VM",get:function(){return 30},set:function(e){}},{key:"zM",get:function(){return 30},set:function(e){}},{key:"CH",get:function(){return this.NZ}},{key:"KL",get:function(){return this.PZ}},{key:"UZ",get:function(){return this.IZ}},{key:"Up",get:function(){return this.RZ}}]),r}(rB),xL=function(){function e(e,r){this.ef=void 0,this.eV=void 0,this.uV=void 0,this.ef=e,this.uV=ra(r,function(e){return!!e.FO.match(/video/)}),this.eV=ra(r,function(e){return!!e.FO.match(/audio/)}),this.FZ()}e.HZ=function(r,s){for(var o=[],u=0;u<r.gV.length;u++){var a=r.gV[u].$d;o.push(new xR(a,s))}return new e(r,o)};var r,s=e.prototype;return s.FZ=function(){},s.cN=function(e,r){return P.resolve(void 0)},r=P.coroutine(iO.mark(function e(){var r,s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=0,s=[this.eV,this.uV].filter(z);r<s.length;r++)(o=s[r]).Th(),o.pH().catch(I);case 1:case"end":return e.stop()}},e,this)})),s.rh=function(){return r.apply(this,arguments)},s.dV=function(e){},s._V=function(e,r,s,o){},s.bH=function(){var e,r;null==(e=this.eV)||e.bH(),null==(r=this.uV)||r.bH()},s.IX=function(e){return!1},s.RX=function(e){return P.resolve()},M(e,[{key:"XZ",get:function(){return[this.eV,this.uV].filter(z).filter(function(e){return e.CH})}},{key:"YX",get:function(){return this.eV}}
1,{key:"rp",get:function(){return kB(this)}},{key:"iE",get:function(){return this.ef}},{key:"ly",get:function(){return 0}},{key:"uH",get:function(){var e,r,s,o,u=null==(e=null==(r=this.eV)?void 0:r.uH())||e,a=null==(s=null==(o=this.uV)?void 0:o.uH())||s;return u&&a}},{key:"wp",get:function(){return new mo([0,1/0])}},{key:"QX",get:function(){return this.uV}},{key:"Bm",get:function(){throw new y("Not implemented")}}]),e}(),x_=lM.Jy,xP=new lM(-1/0),xI=lM.Xk,xN=function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.Py=function(e,r){return e.Uy(r)?lC.Ry:e.xy(r)?lC.Sy:lC.Iy},s.Wy=function(e,r){return e.Wy(r)},s.Vy=function(e,r){return e.Vy(r)},s.My=function(e,r){return e.My(r)},s.MC=function(){return x_},s.xC=function(){return xI},s.XC=function(){return xP},r.uP=function(e){for(var s=[],o=0;o<e.length;o++)s.push(new lM(e.start(o)),new lM(e.end(o)));return new r(s)},r.VZ=function(e){for(var s=[],o=[],u=0;u<e.Zg;u++)s.push(new lM(e.bC(u))),s.push(new lM(e.EC(u))),o.push(e.TC(u)),o.push(e.SC(u));return new r(s,o)},r.oP=function(e){return new r([e,e],[!0,!0])},s.OC=function(e,s){return new r(e,s)},s.DC=function(e){return e.Fk},r.aP=function(){return xO},r}(ms),xO=new xN([]),xD=function(e){function r(r){var s;return(s=e.call(this)||this).WZ=!0,s.OZ=new xT,s.qZ=new xC,s.$R=void 0,s.xq=void 0,s.GZ=!0,s.zZ=void 0,s.jZ=void 0,s.YZ=new P(function(e,r){s.zZ=e,s.jZ=r}),s.gP=!1,s.Qq=P.resolve(),s.Zq=new rE,s.QZ=!0,s.Jq=mo.aP(),s.hZ=void 0,s.ZZ=void 0,s.sG=!1,s.KZ=function(){s.yy||s.JZ.Zg<=0||s.rp.Zg<=0||s.qZ.bZ(new lM(s.rp.EC(s.rp.Zg-1)),s.JZ.EC(s.JZ.Zg-1))},s.$Z=function(){s.yh(new lc(s.vy))},s.tK=function(){s.yh(new lh(s.vy,s.ep))},s.nK=function(){s.yh(new la(s.vy,s.py))},s.iK=function(){s.yh(new lv(s.vy,s.Ey))},s.rK=function(){s.yh(new lu(s.ly))},s.eK=function(){s.yh(new gV(s.vy))},s.uK=function(){s.$h(s.vy)},s.sK=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s.QZ&&s.yh(new le(s.vy)),s.GZ=!1,s.QZ=!0;case 3:case"end":return e.stop()}},e)})),s.oK=function(){s.GZ=!0,s.yh(new lt(s.vy))},s.ZZ=r,s.xq=new kK(t8(s)),s.ZZ.setAttribute("id","player_video"),s.ZZ.setAttribute("x-webkit-airplay","deny"),s.ZZ.setAttribute("x-webkit-wirelessvideoplaybackdisabled",""),s.ZZ.playsInline=!0,s.ZZ.style.width="100%",s.ZZ.style.height="100%",s.aK(),s.hK(),s.hZ=xk(s.ZZ),s}j(r,e);var s,o,u,a,h,c=r.prototype;return c.aK=function(){this.ZZ.addEventListener("timeupdate",this.KZ),this.ZZ.addEventListener("ended",this.$Z),this.ZZ.addEventListener("timeupdate",this.tK),this.ZZ.addEventListener("ratechange",this.nK),this.ZZ.addEventListener("volumechange",this.iK),this.ZZ.addEventListener("durationchange",this.rK),this.ZZ.addEventListener("playing",this.eK),this.ZZ.addEventListener("seeking",this.uK),this.ZZ.addEventListener("play",this.sK),this.ZZ.addEventListener("pause",this.oK)},c.cK=function(){this.ZZ.removeEventListener("timeupdate",this.KZ),this.ZZ.removeEventListener("ended",this.$Z),this.ZZ.removeEventListener("timeupdate",this.tK),this.ZZ.removeEventListener("ratechange",this.nK),this.ZZ.removeEventListener("volumechange",this.iK),this.ZZ.removeEventListener("durationchange",this.rK),this.ZZ.removeEventListener("playing",this.eK),this.ZZ.removeEventListener("seeking",this.uK),this.ZZ.removeEventListener("play",this.sK),this.ZZ.removeEventListener("pause",this.oK)},c.hK=function(){this.xq.kh(f7.Og,this.wh)},c.fK=function(){this.xq.Eh(f7.Og,this.wh)},c.$h=function(e,r){this.Zq.hh(),this.Zq=new rE,this.Qq=this.ZG(e,this.Qq,this.Zq.dh).catch(I)},s=P.coroutine(iO.mark(function e(r,s,o){var u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.Jq=this._p,a=null==(u=this.$R)?void 0:u.XZ){e.next=4;break}return e.abrupt("return");case 4:return h=b.max.apply(b,a.map(function(e){return e.UZ?e.UZ.Fk:1/0})),this.gP=!0,this.yh(new ll(r)),e.next=9,s.catch(I);case 9:if(rT(o),e.prev=10,this.WZ||this.vK(),this.ZZ.load(),this.GZ){e.next=17;break}return this.QZ=!1,e.next=17,rR(this.ZZ.play(),o);case 17:if(!(this.bw<f1.Zw)){e.next=22;break}return e.next=20,this.xq.Nh(f7.Og,o);case 20:e.next=17;break;case 22:this.zZ(),this.WZ=!1,this.gP=!1,this.yh(new lp(this.vy)),e.next=32;break;case 28:throw e.prev=28,e.t0=e.catch(10),this.jZ(),e.t0;case 32:return e.prev=32,this.dK(),this.qZ.EZ(new lM(h)),e.finish(32);case 36:case"end":return e.stop()}},e,this,[[10,28,32,36]])})),c.ZG=function(e,r,o){return s.apply(this,arguments)},c.xm=function(){this.GZ=!0,this.ZZ.pause()},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.GZ){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,this.ZZ.src){e.next=9;break}return this.fz(),e.next=7,this.YZ;case 7:e.next=11;break;case 9:return e.next=11,this.ZZ.play();case 11:e.next=17;break;case 13:throw e.prev=13,e.t0=e.catch(2),this.GZ=!0,e.t0;case 17:case"end":return e.stop()}},e,this,[[2,13]])})),c.Mm=function(){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.OZ&&this.OZ.pZ().catch(I),this.Zq.hh(),this.cK(),this.fK(),this.xq.rh(),this.Th();case 6:case"end":return e.stop()}},e,this)})),c.rh=function(){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.OZ&&this.OZ.pZ().catch(I),this.Zq.hh(),this.ZZ.removeAttribute("src"),this.ZZ.removeAttribute("x-webkit-wirelessvideoplaybackdisabled"),this.ZZ.removeAttribute("x-airplay-deny"),this.ZZ.load(),this.xq.Yg(),this.Jq=mo.aP();case 8:case"end":return e.stop()}},e,this)})),c.Yg=function(){return a.apply(this,arguments)},c.fz=function(){this.vz||(xj(this.ZZ,_.oa),this.sG=!0)},c.vK=function(){var e,r=this.ZZ.getClientRects();if(r.length>0){var s,o,u=(e=r[0]).width,a=this.ZZ.videoWidth/this.ZZ.videoHeight,h=e.height;u/h>a?(s=h*a,o=h):(o=u/a,s=u),this.ZZ.style.width=s+"px",this.ZZ.style.height=o+"px",this.ZZ.style.marginLeft=(u-s)/2+"px",this.ZZ.style.marginTop=(h-o)/2+"px",this.ZZ.style.backgroundColor="black"}},c.dK=function(){this.ZZ.style.width="100%",this.ZZ.style.height="100%",this.ZZ.style.marginLeft="",this.ZZ.style.marginTop="",this.ZZ.style.backgroundColor=""},c.BD=function(e,r,s,o){},c.RS=function(e,r,s,o,u,a){},c.eH=function(e){return P.resolve(void 0)},c.WD=function(){var e=this.lK();return{hp:0,ap:e.droppedVideoFrames,cp:e.totalVideoFrames}},c.lK=function(){var e={droppedVideoFrames:0,totalVideoFrames:0};return void 0!==this.ZZ.webkitDroppedFrameCount?e.droppedVideoFrames=this.ZZ.webkitDroppedFrameCount:e.droppedVideoFrames="function"==typeof this.ZZ.getVideoPlaybackQuality?this.ZZ.getVideoPlaybackQuality().droppedVideoFrames:0,void 0!==this.ZZ.webkitTotalFrameCount?e.totalVideoFrames=this.ZZ.webkitTotalFrameCount:e.totalVideoFrames="function"==typeof this.ZZ.getVideoPlaybackQuality?this.ZZ.getVideoPlaybackQuality().totalVideoFrames:0,e},c.jm=function(){this.ZZ.style.display="block"},c.Ym=function(){this.ZZ.style.display="none"},c.bV=function(){},h=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.Ua!==gp.lN){e.next=2;break}throw new y("Not yet implemented");case 2:return e.next=4,this.OZ.yZ();case 4:return s={kind:xA.vZ,mediaBufferConfigs:r.gV.map(function(e){return e.$d})},e.next=7,this.OZ.mZ(s);case 7:return this.$R=xL.HZ(r,this.OZ),this.ZZ.preload="none",this.ZZ.src="https://theo.proxy/"+this.OZ.wf+"/master.m3u8",e.abrupt("return",this.$R);case 11:case"end":return e.stop()}},e,this)})),c.bc=function(e){return h.apply(this,arguments)},c.TV=function(){},c.CS=function(e){},c.MD=function(){},c.VD=function(e){},c.CD=function(){return!1},c.lz=function(e){e.appendChild(this.ZZ)},c.Qm=function(){return this.ZZ},c.WG=function(){},M(r,[{key:"pD",get:function(){return this.ZZ}},{key:"CV",get:function(){return!1}},{key:"vy",get:function(){return this.ZZ.currentTime+this.qZ.TZ.Fk}},{key:"yy",get:function(){return this.ZZ.paused}},{key:"Ey",get:function(){return this.ZZ.volume},set:function(e){this.ZZ.volume=e}},{key:"py",get:function(){return this.ZZ.playbackRate},set:function(e){this.ZZ.playbackRate=e}},{key:"_K",get:function(){return this.ZZ.defaultPlaybackRate}},{key:"rp",get:function(){var e,r;return null!=(e=null==(r=this.$R)?void 0:r.rp)?e:mo.aP()}},{key:"JZ",get:function(){return xN.uP(this.ZZ.buffered)}}
1,{key:"_p",get:function(){var e=mo.sP(this.gK);return this.Jq.qC(e.Kh(this.qZ.TZ.Fk))}},{key:"gK",get:function(){return xN.uP(this.ZZ.played)}},{key:"Ay",get:function(){return this.gP}},{key:"ly",get:function(){return this.ZZ.duration}},{key:"wy",get:function(){return this.ZZ.muted},set:function(e){this.ZZ.muted=e}},{key:"AY",get:function(){return this.ZZ.style}},{key:"gz",get:function(){return iD({},kg,{GF:!0,zF:300})}},{key:"bw",get:function(){return this.xq.bw}},{key:"by",get:function(){return this.ZZ.videoHeight}},{key:"Ty",get:function(){return this.ZZ.videoWidth}},{key:"_y",get:function(){return this.ZZ.ended}},{key:"yT",get:function(){return 0}},{key:"Lo",get:function(){return 0}},{key:"op",get:function(){return!1}},{key:"vz",get:function(){return this.sG}},{key:"ep",get:function(){}},{key:"cF",get:function(){}},{key:"Lh",get:function(){}},{key:"LD",get:function(){return this.hZ}},{key:"wp",get:function(){return this.$R?this.$R.wp:mo.aP()}},{key:"qD",get:function(){}},{key:"Om",get:function(){}},{key:"_z",get:function(){return"block"===this.ZZ.style.display}}]),r}(rB),xU=[l4.Xl,l4.Vl];function xM(e){var r=h.createElement(e);return il(r)&&r.addEventListener("contextmenu",function(e){e.preventDefault()}),xF(r),r}function xF(e){e.removeAttribute("id"),e.removeAttribute("class"),e.removeAttribute("style"),function(e){if(e)for(var r;r=e.firstChild;)e.removeChild(r)}(e),ip(e),e.pause(),e.playbackRate=1,e.preload=g7.hC,e.controls=!1,e.style.display="none",il(e)&&(e.style.width="100%",e.style.height="100%",e.style.pointerEvents="none",e.playsInline=!0,e.setAttribute("webkit-playsinline",""))}function xj(e,r){if(r.Ao){var s=e.muted;e.muted=!0,e.muted=!1,e.muted=s}else if(e.paused){var o=e.play();ts(o)&&rN(o),e.pause()}}nZ=(x2={wK:function(){function e(e,r,s,o,u){void 0===s&&(s=2),void 0===o&&(o=xU),void 0===u&&(u=oP()),this.yK=void 0,this.kK=void 0,this.qa=void 0,this.mK=void 0,this.Oq=void 0,this.mP=void 0,this.pK=void 0,this.yK=s,this.kK=[].concat(o),this.qa=u,this.Oq=e,this.mP=r,this.mK=iM(),this.AK()}var r,s=e.prototype;return s.bP=function(e){for(var r=0,s=this.EP;r<s.length;r++)s[r].lz(e)},s.mD=function(e){var r=ra(this.mK.get(e),function(e){return e.bK});if(r)return r.bK=!1,r.TK},s.EK=function(e){if(!this.pK)throw new y("Error creating iOS Safari MediaController");return this.pK},r=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=(s=r.pD).tagName.toLowerCase(),e.next=4,r.Yg();case 4:xF(s),(u=ra(this.mK.get(o)||[],function(e){return r===e.TK}))&&(u.bK=!0);case 7:case"end":return e.stop()}},e,this)})),s.FD=function(e){return r.apply(this,arguments)},s.TP=function(){for(var e=0,r=this.EP;e<r.length;e++)r[e].fz()},s.Kl=function(){for(var e=0,r=this.EP;e<r.length;e++){var s=r[e],o=s.pD;s.rh(),xF(o),n9(o)}},s.AK=function(){for(var e=0,r=this.kK;e<r.length;e++){var s=r[e],o=[];this.mK.set(s,o);for(var u=0;u<this.yK;u++){var a=xM(s),h=s===l4.Xl?new Aa(a,this.qa,this.Oq):new xx(a,this.qa,this.Oq,this.mP);o.push({TK:h,bK:!0})}}if(Q.Ou&&Q.yu){var c=xM(l4.Vl);this.pK=new xD(c)}},M(e,[{key:"EP",get:function(){for(var e=[],r=0,s=this.kK;r<s.length;r++){var o=s[r],u=this.mK.get(o).map(function(e){return e.TK});e.push.apply(e,u)}return this.pK&&e.push(this.pK),e}}]),e}(),SK:function(){function e(r){var s=this;this.IK=new dr,this.RK=P.coroutine(iO.mark(function r(){var o,u,a;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return u=(o=s.yP.mD(l4.Vl)).pD,r.next=4,e.NK(u);case 4:return a=r.sent,r.next=7,s.yP.FD(o);case 7:return r.abrupt("return",a);case 8:case"end":return r.stop()}},r)})),this.yP=r}var r,s,o,u=e.prototype;return u.FF=function(){return this.IK.xS(this.RK)},u.qm=function(){this.yP.TP()},r=P.coroutine(iO.mark(function r(s){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!Q.Iu&&!Q.Eu){r.next=2;break}return r.abrupt("return","all");case 2:return s.src||(s.src="data:video/mp4;base64,AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvw
1MkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw"),r.next=5,e.DK();case 5:return r.next=7,e.CK(s);case 7:if(!r.sent){r.next=9;break}return r.abrupt("return","all");case 9:return r.next=11,e.PK(s);case 11:if(!r.sent){r.next=13;break}return r.abrupt("return","muted");case 13:return r.abrupt("return","none");case 14:case"end":return r.stop()}},r)})),e.NK=function(e){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=r.play(),e.prev=1,ts(s)){e.next=4;break}return e.abrupt("return",!Q.pu);case 4:return e.next=6,s;case 6:return e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",!1);case 12:return e.prev=12,r.pause(),e.finish(12);case 15:case"end":return e.stop()}},e,null,[[1,9,12,15]])})),e.CK=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function r(s){var o;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s.muted=!0,r.next=3,e.CK(s);case 3:return o=r.sent,s.muted=!1,r.abrupt("return",o);case 6:case"end":return r.stop()}},r)})),e.PK=function(e){return o.apply(this,arguments)},e.DK=function(){return new P(function(e){if("function"==typeof MessageChannel){var r=new MessageChannel;r.port1.onmessage=function(){return e()},r.port2.postMessage("")}else l(e,0)})},u.Kl=function(){this.IK.Kl()},e}(),BK:{JO:function(e){n2.addEventListener("beforeunload",e)},hL:function(e){n2.removeEventListener("beforeunload",e)}},LK:a}).wK,n0=x2.SK,n1=x2.BK,n3=(n2=x2.LK)&&n2.location,n5=n2&&n2.navigator;var xH=function(e){var r;function s(){return e.apply(this,arguments)||this}return j(s,e),s.prototype.jD=(r=P.coroutine(iO.mark(function r(s){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a.MediaSource){r.next=2;break}return r.abrupt("return",!1);case 2:return r.abrupt("return",e.prototype.jD.call(this,s));case 3:case"end":return r.stop()}},r,this)})),function(e){return r.apply(this,arguments)}),s}(function(){var e,r;function s(){}return s.prototype.jD=(e=P.coroutine(iO.mark(function e(r){var o;return iO.wrap(function(e){for(var u;;)switch(e.prev=e.next){case 0:if((u=r.type)&&nW(u.toLowerCase(),fz.Hw)){e.next=2;break}return e.abrupt("return",!1);case 2:if(!(o=r.contentProtection)||dU(o)){e.next=10;break}if(dj(o)){e.next=6;break}return e.abrupt("return",!1);case 6:return e.next=8,s.MK(o);case 8:if(e.sent){e.next=10;break}return e.abrupt("return",!1);case 10:return e.abrupt("return",!0);case 11:case"end":return e.stop()}},e)})),function(r){return e.apply(this,arguments)}),r=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=r.playready,!e.t0){e.next=5;break}return e.next=4,_.Jo();case 4:e.t0=e.sent;case 5:if(!e.t0){e.next=7;break}return e.abrupt("return",!0);case 7:if(e.t1=r.widevine,!e.t1){e.next=12;break}return e.next=11,_.$o();case 11:e.t1=e.sent;case 12:if(!e.t1){e.next=14;break}return e.abrupt("return",!0);case 14:if(e.t2=r.clearkey,!e.t2){e.next=19;break}return e.next=18,_.Zo();case 18:e.t2=e.sent;case 19:if(!e.t2){e.next=21;break}return e.abrupt("return",!0);case 21:return e.next=23,_.Yo();case 23:if(!e.sent){e.next=25;break}return e.abrupt("return",!0);case 25:return e.abrupt("return",!1);case 26:case"end":return e.stop()}},e)})),s.MK=function(e){return r.apply(this,arguments)},s}());function xB(e){return nz(e)}function xV(e,r){var s=nz(e);return r?""+s+r:""+s}var xX=function(){function e(e,r,s,o){this.xK=e,this.UK=r,this.FK=s,this.HK=o}var r,s,o=e.prototype;return r=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.xK.VK(r.map(xB));case 2:return s=e.sent,e.abrupt("return",s.shift());case 4:case"end":return e.stop()}},e,this)})),o.XK=function(e){return r.apply(this,arguments)},o.WK=function(e,r){var s=xV(e,r);return this.UK.Wh(s)},s=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=xV(r,s),e.next=3,this.FK.qh(u);case 3:if(e.t0=o=e.sent,null!=e.t0){e.next=8;break}e.t1=void 0,e.next=9;break;case 8:e.t1=o.data;case 9:return e.abrupt("return",e.t1);case 10:case"end":return e.stop()}},e,this)})),o.qK=function(e,r){return s.apply(this,arguments)},o.TU=function(e){return this.HK.qh(e)},e}(),xW=function(){function e(){}var r=e.prototype;return r.GK=function(e){return P.resolve(!1)},r.zK=function(e){return P.reject(xq)},r.jK=function(e){return P.reject(xq)},r.Wh=function(e){return P.resolve(!1)},r.qh=function(e,r){return P.resolve(void 0)},r.VK=function(e){return P.resolve([])},r.YK=function(){return P.resolve([])},r.QK=function(e,r){return P.resolve([])},r.Tc=function(e){return P.reject(xq)},r.ZK=function(e){return P.reject(xq)},r.KK=function(){return P.reject(xq)},e}(),xq="Storage disabled",xY=function(){function e(){this.JK=void 0,this.$K=void 0,this.tJ=void 0,this.nJ=void 0,this.iJ=void 0,this.JK=new xW,this.$K=new xW,this.tJ=new xW,this.nJ=new xW,this.iJ=new xW}return e.HZ=function(){return P.resolve(new e)},e.prototype.rJ=function(e){return P.reject(x$)},e}(),x$="Storage disabled",xJ=function(){function e(e){var r=this;this.ah=new sG,this.eJ=void 0,this.ah.uc(e),this.ah.ec.then(function(e){r.eJ=e})}var r,s,o,u,a,h,c,f,l,p,v,d=e.prototype;return r=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return s=e.t0,e.abrupt("return",s.GK(r));case 7:case"end":return e.stop()}},e,this)})),d.GK=function(e){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return o=e.t0,e.abrupt("return",o.zK(r,s));case 7:case"end":return e.stop()}},e,this)})),d.zK=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return o=e.t0,e.abrupt("return",o.jK(r,s));case 7:case"end":return e.stop()}},e,this)})),d.jK=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return s=e.t0,e.abrupt("return",s.Wh(r));case 7:case"end":return e.stop()}},e,this)})),d.Wh=function(e){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return o=e.t0,e.abrupt("return",o.qh(r,s));case 7:case"end":return e.stop()}},e,this)})),d.qh=function(e,r){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return s=e.t0,e.abrupt("return",s.VK(r));case 7:case"end":return e.stop()}},e,this)})),d.VK=function(e){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return r=e.t0,e.abrupt("return",r.YK());case 7:case"end":return e.stop()}},e,this)})),d.YK=function(){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return o=e.t0,e.abrupt("return",o.QK(r,s));case 7:case"end":return e.stop()}},e,this)})),d.QK=function(e,r){return f.apply(this,arguments)},l=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return s=e.t0,e.abrupt("return",s.Tc(r));case 7:case"end":return e.stop()}},e,this)})),d.Tc=function(e){return l.apply(this,arguments)},p=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return s=e.t0,e.abrupt("return",s.ZK(r));case 7:case"end":return e.stop()}},e,this)})),d.ZK=function(e){return p.apply(this,arguments)},v=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.eJ,e.t0){e.next=5;break}return e.next=4,this.uJ;case 4:e.t0=e.sent;case 5:return r=e.t0,e.abrupt("return",r.KK());case 7:case"end":return e.stop()}},e,this)})),d.KK=function(){return v.apply(this,arguments)},M(e,[{key:"uJ",get:function(){return this.ah.ec}}]),e}(),xQ=function(){var e;function r(e){var r=this;this.ah=new sG,this.sJ=void 0,this.$K=void 0,this.JK=void 0,this.tJ=void 0,this.nJ=void 0,this.iJ=void 0,this.ah.uc(e);var s=this.ah.ec;s.then(function(e){r.sJ=e}),this.$K=new xJ(s.then(function(e){return e.$K})),this.JK=new xJ(s.then(function(e){return e.JK})),this.tJ=new xJ(s.then(function(e){return e.tJ})),this.nJ=new xJ(s.then(function(e){return e.nJ})),this.iJ=new xJ(s.then(function(e){return e.iJ}))}return r.prototype.rJ=(e=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.sJ,e.t0){e.next=5;break}return e.next=4,this.oJ;case 4:e.t0=e.sent;case 5:return s=e.t0,e.next=8,s.rJ(r);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e,this)})),function(r){return e.apply(this,arguments)}),M(r,[{key:"oJ",get:function(){return this.ah.ec}}]),r}();function xG(e){return void 0!==e}var xK=function(){function e(){this.aJ=[]}var r,s,o,u,a=e.prototype;return a.GK=function(e){return P.resolve("temporary"===e)}
1,r=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Tc(r.key);case 2:this.aJ.push(r);case 3:case"end":return e.stop()}},e,this)})),a.zK=function(e){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r){var s,o=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=r.map(function(e){return o.zK(e)}),e.next=3,P.all(s);case 3:case"end":return e.stop()}},e)})),a.jK=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",P.resolve(!!this.hJ(r)));case 1:case"end":return e.stop()}},e,this)})),a.Wh=function(e){return o.apply(this,arguments)},a.qh=function(e,r){return P.resolve(this.hJ(e,r))},a.VK=function(e){var r=this,s=e?e.map(function(e){return r.hJ(e)}):this.aJ;return P.resolve(s.filter(xG))},a.YK=function(){return P.resolve([].concat(this.aJ))},a.QK=function(e,r){var s=r||"key",o=this.aJ.filter(function(r){return r[s]===e});return P.resolve(o)},a.Tc=function(e){var r=this.hJ(e);return r&&rc(this.aJ,r),P.resolve()},u=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=0;case 1:if(!(s<r.length)){e.next=8;break}return o=r[s],e.next=5,this.Tc(o);case 5:s++,e.next=1;break;case 8:case"end":return e.stop()}},e,this)})),a.ZK=function(e){return u.apply(this,arguments)},a.KK=function(){return rv(this.aJ),P.resolve()},a.hJ=function(e,r){r=r||"key";for(var s=0,o=this.aJ;s<o.length;s++){var u=o[s];if(u[r]===e)return u}},e}(),xz=function(){function e(){this.JK=void 0,this.$K=void 0,this.tJ=void 0,this.nJ=void 0,this.iJ=void 0,this.JK=new xK,this.$K=new xK,this.tJ=new xK,this.nJ=new xK,this.iJ=new xK}return e.HZ=function(){return P.resolve(new e)},e.prototype.rJ=function(e){return e(this)},e}(),xZ=function(){function e(e){this.cJ=e}var r,s,o,u,a,h,c,f,l,p,v,d=e.prototype;return r=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=0,o=this.cJ;case 1:if(!(s<o.length)){e.next=10;break}return u=o[s],e.next=5,u.GK(r);case 5:if(!e.sent){e.next=7;break}return e.abrupt("return",!0);case 7:s++,e.next=1;break;case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}},e,this)})),d.GK=function(e){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r,s){var o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=0,u=this.cJ;case 1:if(!(o<u.length)){e.next=10;break}return a=u[o],e.next=5,a.GK(s);case 5:if(!e.sent){e.next=7;break}return e.abrupt("return",a.zK(r));case 7:o++,e.next=1;break;case 10:throw new y("No collection found that can handle storage persistency type "+s);case 11:case"end":return e.stop()}},e,this)})),d.zK=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){var o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=0,u=this.cJ;case 1:if(!(o<u.length)){e.next=10;break}return a=u[o],e.next=5,a.GK(s);case 5:if(!e.sent){e.next=7;break}return e.abrupt("return",a.jK(r));case 7:o++,e.next=1;break;case 10:throw new y("No collection found that can handle storage persistency type "+s);case 11:case"end":return e.stop()}},e,this)})),d.jK=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=0,o=this.cJ;case 1:if(!(s<o.length)){e.next=10;break}return u=o[s],e.next=5,u.Wh(r);case 5:if(!e.sent){e.next=7;break}return e.abrupt("return",!0);case 7:s++,e.next=1;break;case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}},e,this)})),d.Wh=function(e){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=0,u=this.cJ;case 1:if(!(o<u.length)){e.next=11;break}return a=u[o],e.next=5,a.qh(r,s);case 5:if(!(h=e.sent)){e.next=8;break}return e.abrupt("return",h);case 8:o++,e.next=1;break;case 11:return e.abrupt("return",void 0);case 12:case"end":return e.stop()}},e,this)})),d.qh=function(e,r){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r){var s,o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=[],o=0,u=this.cJ;case 2:if(!(o<u.length)){e.next=13;break}return a=u[o],e.t0=s.push,e.t1=s,e.next=8,a.VK(r);case 8:e.t2=e.sent,e.t0.apply.call(e.t0,e.t1,e.t2);case 10:o++,e.next=2;break;case 13:return e.abrupt("return",s);case 14:case"end":return e.stop()}},e,this)})),d.VK=function(e){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(){var r,s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=[],s=0,o=this.cJ;case 2:if(!(s<o.length)){e.next=13;break}return u=o[s],e.t0=r.push,e.t1=r,e.next=8,u.YK();case 8:e.t2=e.sent,e.t0.apply.call(e.t0,e.t1,e.t2);case 10:s++,e.next=2;break;case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}},e,this)})),d.YK=function(){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=[],u=0,a=this.cJ;case 2:if(!(u<a.length)){e.next=13;break}return h=a[u],e.t0=o.push,e.t1=o,e.next=8,h.QK(r,s);case 8:e.t2=e.sent,e.t0.apply.call(e.t0,e.t1,e.t2);case 10:u++,e.next=2;break;case 13:return e.abrupt("return",o);case 14:case"end":return e.stop()}},e,this)})),d.QK=function(e,r){return f.apply(this,arguments)},l=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=0,o=this.cJ;case 1:if(!(s<o.length)){e.next=8;break}return u=o[s],e.next=5,u.Tc(r);case 5:s++,e.next=1;break;case 8:case"end":return e.stop()}},e,this)})),d.Tc=function(e){return l.apply(this,arguments)},p=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=0,o=this.cJ;case 1:if(!(s<o.length)){e.next=8;break}return u=o[s],e.next=5,u.ZK(r);case 5:s++,e.next=1;break;case 8:case"end":return e.stop()}},e,this)})),d.ZK=function(e){return p.apply(this,arguments)},v=P.coroutine(iO.mark(function e(){var r,s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=0,s=this.cJ;case 1:if(!(r<s.length)){e.next=8;break}return o=s[r],e.next=5,o.KK();case 5:r++,e.next=1;break;case 8:case"end":return e.stop()}},e,this)})),d.KK=function(){return v.apply(this,arguments)},e}();function x0(e){return P.coroutine(iO.mark(function r(){var s;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,P.all(e.map(function(e){return e()}));case 2:return s=r.sent,r.abrupt("return",x5.HZ(s));case 4:case"end":return r.stop()}},r)}))}var x1,x2,x3,x5=function(){function e(e){this.fJ=void 0,this.vJ=void 0,this.dJ=void 0,this.lJ=void 0,this._J=void 0,this.gJ=void 0,this.fJ=e,this.vJ=new xZ(e.map(function(e){return e.nJ})),this.dJ=new xZ(e.map(function(e){return e.iJ})),this.lJ=new xZ(e.map(function(e){return e.tJ})),this._J=new xZ(e.map(function(e){return e.JK})),this.gJ=new xZ(e.map(function(e){return e.$K}))}return e.HZ=function(r){return P.resolve(new e(r))},e.prototype.rJ=function(r){var s=this;if(0===this.fJ.length)return r(this);var o=[],u=0;return this.fJ[u].rJ(function a(h){return o.push(h),++u<s.fJ.length?s.fJ[u].rJ(a):r(new e(o))})},M(e,[{key:"nJ",get:function(){return this.vJ}},{key:"iJ",get:function(){return this.dJ}},{key:"tJ",get:function(){return this.lJ}},{key:"JK",get:function(){return this._J}},{key:"$K",get:function(){return this.gJ}}]),e}(),x4=function(){function e(e){this.wJ=void 0,this.yJ=[],this.kJ=!0,this.wJ=e}var r,s=e.prototype;return s.HZ=function(){return new xQ(this.mJ())},r=P.coroutine(iO.mark(function e(){var r,s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.kJ){e.next=4;break}return e.next=3,P.resolve();case 3:this.kJ=!1;case 4:r=0,s=this.yJ;case 5:if(!(r<s.length)){e.next=18;break}return o=s[r],e.prev=7,e.next=10,x0([xz.HZ,o])();case 10:return e.abrupt("return",e.sent);case 13:e.prev=13,e.t0=e.catch(7);case 15:r++,e.next=5;break;case 18:return e.next=20,x0([xz.HZ,this.wJ])();case 20:return e.abrupt("return",e.sent);case 21:case"end":return e.stop()}},e,this,[[7,13]])})),s.mJ=function(){return r.apply(this,arguments)},s.WF=function(e){if(!this.kJ)throw new y("Registration overdue");this.yJ.push(e)},e}(),x6=function(){function e(){}return e.WF=function(r){e.pJ.WF(r)},M(e,null,[{key:"ju",get:function(){return e.AJ||(e.AJ=e.pJ.HZ()),e.AJ}}]),e}();function x8(e){return void 0!==e.by}function x7(e,r){return x9.apply(this,arguments)}function x9(){return(x9=P.coroutine(iO.mark(function e(r,s,o,u,a){var h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:void 0===o&&(o=3),void 0===u&&(u=1e3),void 0===a&&(a=1/0),h=0;case 4:return e.prev=5,e.next=8,r(s);case 8:return e.abrupt("return",e.sent);case 11:if(e.prev=11,e.t0=e.catch(5),rC(e.t0),!(h<o)){e.next=20;break}return c=b.min(u*b.pow(2,h),a),h++,e.next=19,rU(c,s);case 19:return e.abrupt("continue",4);case 20:throw e.t0;case 21:e.next=4;break;case 23:case"end":return e.stop()}},e,null,[[5,11]])}))).apply(this,arguments)}x6.pJ=new x4(xY.HZ),x6.AJ=void 0,(Tt=x3||(x3={})).lN="static",Tt._N="dynamic";var Tt,Te,Tn=/^P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d*\.?\d*)S)?)?$/,Ti=function(){function e(e){this.bJ=void 0;var r=e.match(Tn);if(!r)throw new y("The given value could not be parsed as a valid DateTimeInterval");var s=Number(r[1])||0,o=Number(r[2])||0,u=Number(r[3])||0,a=Number(r[4])||0,h=Number(r[5])||0,c=Number(r[6])||0;this.bJ=31536e3*s+2592e3*o+86400*u+3600*a+60*h+c}var r=e.prototype;return r.TJ=function(){return this.bJ},r.EJ=function(){return 1e3*this.bJ},M(e,[{key:"SJ",get:function(){return lW.Wk(this.bJ,1e3)}}]),e}();(TU=Te||(Te={})).IJ="progressive",TU.RJ="interlaced",TU.Nl="unknown";var Tr=function(){function e(e,r){this.NJ=e,this.DJ=r}return e.prototype.Dy=function(){return this.NJ/this.DJ},e}(),Ts=/^(?:true|false)$/i,To=/^(-?)(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(?:Z|([+-])(\d{2}):(\d{2}))?$/;function Tu(e){if(void 0!==e)return new Ti(e)}function Ta(e){if(void 0!==e){var r=e.match(To);if(!r)throw new y("The given value could not be parsed as a valid Date");var s=r[1],o=r[2],u=r[3],a=r[4],h=r[5],c=r[6],f=r[7],l=r[8],p=r[9],v=r[10],d=r[11],g=("-"===s?-1:1)*Number(o),m=Number(u)-1,w=Number(a),k=Number(h),E=Number(c),x=Number(f),T=Number("0."+(l||"")),C=b.round(1e3*T);p&&(E-=("-"===p?-1:1)*(60*Number(v)+Number(d)));var S=new Date(Date.UTC(g,m,w,k,E,x,C));if(A(S.getTime()))throw new y("The given value could not be parsed as a valid Date");return S}}function Th(e){if(e){var r=/(\d+)-(\d+)/.exec(e);if(r)return[Tf(r[1]),Tf(r[2])]}}function Tc(e){if(void 0!==e){if(!A(Number(e)))try{return tx.fromString(e,!0)}catch(e){}throw new y("The given value could not be parsed as a valid unsigned long")}}function Tf(e){if(void 0!==e){var r=Number(e);if(!A(r))return r;throw new y("The given value could not be parsed as a valid Number")}}function Tl(e){if(void 0!==e){var r=e.split("/"),s=Number(r[0]),o=Number(r[1]||1);if(!A(s)&&!A(o))return new Tr(s,o);throw new y("The given value could not be parsed as a valid frame rate")}}function Tp(e){if(void 0!==e){if(Ts.test(e))return"true"===e.toLowerCase();if(!A(k(e)))return!!k(e);throw new y("The given value could not be parsed as a valid Boolean.")}}function Tv(e){return{Il:e.Us,CJ:Tp(e.Cs("availabilityTimeComplete")),PJ:Tf(e.Cs("availabilityTimeOffset"))}}function Td(e){return e.map(Tv)}function Ty(e){var r,s,o,u=TC(e),a=(r="default_KID",void 0===(s=e.Ps("urn:mpeg:cenc:2013",r))&&(s=e.Cs("cenc:"+r)),s),h=vx(e,"pssh","urn:mpeg:cenc:2013","cenc")[0];if(void 0!==h&&(o=sn(h.Us)),!o){var c,f,l,p,v,d,y,g,m=vx(e,"pro","urn:microsoft:playready","mspr")[0];void 0!==m&&(c=r3(m.Us),f=new x([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),l=c.length,d=new x(v=new ArrayBuffer(p=12+f.length+4+l)),sw(y=new DataView(v),g=new sJ,p),sw(y,g,0x70737368),sw(y,g,0),sv(y,g,f),sw(y,g,l),sv(y,g,c),o=d.buffer)}return{WI:a,BJ:o,OJ:u.OJ,gs:u.gs}}function Tg(e){return{LJ:e.Cs("sourceURL"),MJ:Th(e.Cs("range"))}}function Tm(e){return{UJ:e.Cs("index"),FJ:Th(e.Cs("indexRange")),fT:e.Cs("media"),HJ:Th(e.Cs("mediaRange"))}}function Tw(e){var r;return iD({},TE(e),{XJ:(r=e.Ts("SegmentURL").map(Tm)).length>0?r:void 0,VJ:e.Cs("xlink:href"),WJ:e.Cs("xlink:actuate")})}function Tb(e){var r=e.map(Tw);return r.length>0?r:void 0}function Tk(e){var r=Tp(e.Cs("availabilityTimeComplete")),s=Tf(e.Cs("availabilityTimeOffset")),o=Th(e.Cs("indexRange")),u=Tp(e.Cs("indexRangeExact")),a=e.Ts("Initialization");if(a.length>1)throw new y("The provided MPEG-DASH document's "+e.Ss+" element can not have more than one Initialization element.");var h=1===a.length?Tg(a[0]):void 0,c=Tc(e.Cs("presentationTimeOffset")),f=e.Ts("RepresentationIndex");if(f.length>1)throw new y("The provided MPEG-DASH document's "+e.Ss+" element can not have more than one RepresentationIndex element.");return{CJ:r,PJ:s,FJ:o,qJ:u,GJ:h,zJ:c,jJ:1===f.length?Tg(f[0]):void 0,YJ:Tu(e.Cs("timeShiftBufferDepth")),Pk:Tf(e.Cs("timescale"))}}function TE(e){var r=Tk(e),s=e.Ts("BitstreamSwitching"),o=s.length>0?Tg(s[0]):void 0,u=Tf(e.Cs("duration")),a=e.Ts("SegmentTimeline");if(a.length>1)throw new y("The provided MPEG-DASH document's "+e.Ss+" element can not have more than one SegmentTimeline element.");return iD({},r,{QJ:o,ly:u,ZJ:1===a.length?function(e){for(var r=[],s=e.Ts("S"),o=0;o<s.length;o++)!function(e,r){var s=e.Cs("d"),o=e.Cs("t"),u=Tf(e.Cs("r"));r.push({ly:s,xp:o,xJ:u})}(s[o],r);return r}(a[0]):void 0,KJ:Tf(e.Cs("startNumber")),JJ:Tf(e.Cs("endNumber"))})}function TA(e){return iD({},TE(e),{$J:e.Cs("bitstreamSwitching"),t$:e.Cs("index"),n$:e.Cs("initialization"),i$:e.Cs("media")})}function Tx(e){return{r$:function(e){if(e){var r=e.split(/\s/);return r.length>1?(r.length=2,r.map(Tf)):1===r.length?r.map(Tf)[0]:void 0}}(e.Cs("audioSamplingRate")),e$:e.Cs("codecs"),u$:Tp(e.Cs("codingDependency")),s$:function(e){if(0!==e.length)return e.map(Ty)}(e.Ts("ContentProtection")),o$:e.Ts("EssentialProperty").map(TS),a$:Tl(e.Cs("frameRate")),yT:Tf(e.Cs("height")),h$:Tf(e.Cs("maxPlayoutRate")),c$:Tf(e.Cs("maximumSAPPeriod")),FO:e.Cs("mimeType"),f$:e.Cs("profiles"),v$:e.Cs("sar"),d$:function(e){switch(e){case Te.IJ:case Te.RJ:case Te.Nl:return e;default:return}}(e.Cs("scanType")),l$:e.Cs("segmentProfiles"),_$:Tf(e.Cs("startWithSAP")),Lo:Tf(e.Cs("width"))}}function TT(e){var r=Tx(e),s=Tf(e.Cs("bandwidth")),o=Td(e.Ts("BaseURL")),u=e.Cs("dependencyId"),a=e.Cs("id"),h=e.Cs("mediaStreamStructureId"),c=Tf(e.Cs("qualityRanking")),f=e.Ts("SegmentBase");if(f.length>1)throw new y("The provided MPEG-DASH document's Representation element can not have more than one SegmentBase element.");var l=1===f.length?Tk(f[0]):void 0,p=Tb(e.Ts("SegmentList")),v=e.Ts("SegmentTemplate");if(v.length>1)throw new y("The provided MPEG-DASH document's Representation element can not have more than one SegmentTemplate element.");return iD({},r,{QN:s,g$:o,w$:u,hw:a,y$:h,k$:c,m$:l,p$:p,A$:1===v.length?TA(v[0]):void 0})}function TC(e){return{OJ:e.Cs("schemeIdUri"),gs:e.Cs("value")}}function TS(e){return TC(e)}function TR(e){return TC(e)}function TL(e){return TC(e)}function T_(e){var r=Tx(e),s=e.Ts("Accessibility").map(TL),o=Td(e.Ts("BaseURL")),u=Tp(e.Cs("bitstreamSwitching")),a=e.Cs("contentType"),h=Tf(e.Cs("group")),c=Tf(e.Cs("id")),f=e.Cs("lang"),l=Tf(e.Cs("maxBandwidth")),p=Tl(e.Cs("maxFrameRate")),v=Tf(e.Cs("maxHeight")),d=Tf(e.Cs("maxWidth")),g=Tf(e.Cs("minBandwidth")),m=Tl(e.Cs("minFrameRate")),w=Tf(e.Cs("minHeight")),b=Tf(e.Cs("minWidth")),k=e.Cs("par"),E=e.Ts("Representation").map(TT);if(0===E.length)throw new y("The provided MPEG-DASH document has an AdaptationSet with no valid Representation's");var A=e.Ts("Role").map(TR),x=Tp(e.Cs("segmentAlignment"))||!1,T=e.Ts("SegmentBase");if(T.length>1)throw new y("The provided MPEG-DASH document's AdaptationSet element can not have more than one SegmentBase element.");var C=1===T.length?Tk(T[0]):void 0,S=Tb(e.Ts("SegmentList")),R=e.Ts("SegmentTemplate");if(R.length>1)throw new y("The provided MPEG-DASH document's AdaptationSet element can not have more than one SegmentTemplate element.");var L=1===R.length?TA(R[0]):void 0,_=Tf(e.Cs("selectionPriority"));return iD({},r,{b$:s,g$:o,QJ:u,$d:a,T$:h,hw:c,dw:f,E$:l,S$:p,I$:v,R$:d
1,N$:g,D$:m,C$:w,P$:b,B$:k,O$:E,L$:A,M$:x,m$:C,p$:S,A$:L,zD:_||1,x$:Tp(e.Cs("subsegmentAlignment"))||!1,U$:Tf(e.Cs("subsegmentStartsWithSAP")),F$:e.Cs("xlink:actuate")||"onRequest",H$:e.Cs("xlink:href")})}function TP(e){var r=Tc(e.Cs("presentationTime"))||tx.ZERO,s=Tc(e.Cs("duration")),o=Tf(e.Cs("id")),u=function(e){for(var r=e.xs,s={},o=0;o<r.length;o++)s[r[o].ds]=r[o].gs;return s}(e),a=e.Us;return{FE:r,ly:s,hw:o,xs:u,Fs:""!==a.trim()?a:e.Cs("messageData")||""}}function TI(e){return{H$:e.Cs("xlink:href"),F$:e.Cs("xlink:actuate"),OJ:e.Cs("schemeIdUri"),gs:e.Cs("value"),Pk:Tf(e.Cs("timescale")),zJ:Tc(e.Cs("presentationTimeOffset")),HO:e.Ts("Event").map(TP)}}var TN=function(){function e(){}return e.prototype.s0=function(e,r){var s=_.rs(e).Hs;if(!s)throw new y("The provided MPEG-DASH document does not contain a valid MPD root element.");return function(e,r){var s=Ta(e.Cs("availabilityEndTime")),o=Ta(e.Cs("availabilityStartTime")),u=Td(e.Ts("BaseURL")),a=e.Cs("id"),h=e.Ts("Location").map(function(e){return""+e.Us}),c=Tu(e.Cs("maxSegmentDuration")),f=Tu(e.Cs("maxSubsegmentDuration")),l=Tu(e.Cs("mediaPresentationDuration")),p=(e.Ts("Metrics"),Tu(e.Cs("minBufferTime")));if(!p)throw new y("The provided MPEG-DASH document's MPD element does not have the required 'minimumBufferTime' attribute.");var v=Tu(e.Cs("minimumUpdatePeriod")),d=function(e){for(var r=[],s=0;s<e.length;s+=1)r.push(function(e,r){var s=e.Ts("AssetIdentifier");if(s.length>1)throw new y("The provided MPEG-DASH document's Period element can not have more than one AssetIdentifier element.");var o=1===s.length?TC(s[0]):void 0,u=e.Ts("AdaptationSet").map(T_),a=Td(e.Ts("BaseURL")),h=Tp(e.Cs("bitstreamSwitching")),c=Tu(e.Cs("duration")),f=e.Ts("EventStream").map(TI),l=e.Cs("id"),p=r&&Tu(r.Cs("start")),v=e.Ts("SegmentBase");if(v.length>1)throw new y("The provided MPEG-DASH document's Period element can not have more than one SegmentBase element.");var d=1===v.length?Tk(v[0]):void 0,g=Tb(e.Ts("SegmentBase")),m=e.Ts("SegmentTemplate");if(m.length>1)throw new y("The provided MPEG-DASH document's Period element can not have more than one SegmentTemplate element.");var w=1===m.length?TA(m[0]):void 0,b=Tu(e.Cs("start")),k=(e.Ts("Subset"),e.Cs("xlink:href"));return{X$:u,V$:o,g$:a,QJ:h,ly:c,W$:f,hw:l,q$:p,m$:d,p$:g,A$:w,bC:b,F$:e.Cs("xlink:actuate"),H$:k}}(e[s],e[s+1]));return r}(e.Ts("Period"));if(!d.length)throw new y("The provided MPEG-DASH document's MPD element does not have the required 'Period' element.");var g=e.Cs("profiles");if(!g)throw new y("The provided MPEG-DASH document's MPD element does not have the required 'profiles' attribute.");return{G$:s,z$:o,g$:u,hw:a,j$:h,Y$:r,Q$:c,Z$:f,K$:l,J$:p,n0:v,i0:d,f$:g,r0:Ta(e.Cs("publishTime")),e0:Tu(e.Cs("suggestedPresentationDelay")),YJ:Tu(e.Cs("timeShiftBufferDepth")),Ua:function(e){switch(e){case x3.lN:case x3._N:return e;default:return}}(e.Cs("type")),u0:function(e){for(var r=[],s=0;s<e.length;s++){var o=function(e){var r=e.Cs("schemeIdUri");if(r)return{OJ:r,gs:e.Cs("value")}}(e[s]);o&&r.push(o)}return r}(e.Ts("UTCTiming"))}}(s,r)},e}();function TO(e){return{get bandwidth(){return e.QN},get codecs(){return e.e$},get id(){return e.hw},get uid(){return e.cw},get name(){return e.vw},get averageBandwidth(){return e.QN},get label(){return e.vw},set label(n){e.vw=fl(n)},get height(){return e.yT},get width(){return e.Lo},get frameRate(){return e.a$},get firstFrame(){return e.o0},get available(){return e.bK},addEventListener:function(r,s){e.kh(r,s)},removeEventListener:function(r,s){e.Eh(r,s)}}}function TD(e){return{get bandwidth(){return e.QN},get codecs(){return e.e$},get id(){return e.hw},get uid(){return e.cw},get name(){return e.vw},get averageBandwidth(){return e.QN},get label(){return e.vw},set label(n){if(!ti(n))throw new y("Unexpected - The provided label is not a string");e.vw=n},get audioSamplingRate(){return e.r$},get available(){return e.bK},addEventListener:function(r,s){e.kh(r,s)},removeEventListener:function(r,s){e.Eh(r,s)}}}var TU,TM,TF=function(e){function r(r){var s;return(s=e.call(this,"update")||this).quality=r,s}return j(r,e),r}(rX),Tj=0,TH=function(e){function r(r,s,o,u,a){var h;
1return(h=e.call(this)||this).cw=void 0,h.Ap=void 0,h.a0=void 0,h.hw=r,h.QN=s,h.e$=o,h.h0=a,h.cw=Tj++,h.Ap=u||"",h.a0=!0,h}return j(r,e),r.prototype._S=function(){this.a0=!1,this.yh(new TF(this.gg))},M(r,[{key:"vw",get:function(){return this.Ap},set:function(e){this.Ap!==e&&(this.Ap=e,this.yh(new TF(this.gg)))}},{key:"bK",get:function(){return this.a0}}]),r}(rB),TB=function(e){function r(r,s,o,u,a,h,c,f,l){var p;return void 0===l&&(l=0),(p=e.call(this,r,s,o,u,a)||this)._g=void 0,p.a$=h,p.Lo=c,p.yT=f,p.o0=l,p}return j(r,e),M(r,[{key:"gg",get:function(){return this._g||(this._g=TO(this)),this._g}}]),r}(TH),TV=function(e){function r(r,s,o,u,a,h){var c;return(c=e.call(this,r,s,o,u,a)||this)._g=void 0,c.r$=h,c}return j(r,e),M(r,[{key:"gg",get:function(){return this._g||(this._g=TD(this)),this._g}}]),r}(TH);(Cs=TM||(TM={})).c0="f0",Cs.v0="d0";var TX=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).l0=function(e){r.yh(e)},r}return j(r,e),M(r,[{key:"_0",get:function(){var e=this.g0();return null==e?void 0:e.bC}},{key:"w0",get:function(){var e=this.g0();return null==e?void 0:e.EC}}]),r}(rB);function TW(e){return to(e.y0)}function Tq(e){return TW(e)?e.y0:e.UJ}var TY=function(e){function r(r,s){var o;if((o=e.call(this)||this).k0=void 0,o._g=void 0,o.m0=void 0,o.p0=void 0,o.A0=void 0,o.k0=r,o.m0=s,o.m0.kh(TM.c0,o.l0),o.Ua===l4.Vl){var u,a,h=null!=(u=null==(a=o.a$)?void 0:a.Dy())?u:NaN;o.p0=new TB(o.hw,o.QN,o.Mo,"","",h,o.Lo,o.yT)}else o.Ua===l4.Xl?o.p0=new TV(o.hw,o.QN,o.Mo,"","",o.r$):o.p0=void 0;return o}j(r,e);var s=r.prototype;return s.b0=function(e){var r=TW(e)?this.m0.T0(e):this.m0.b0(e);return{Il:r.Il,MJ:r.MJ,Yl:this.E0.Yl}},s.S0=function(){return this.m0.S0()},s.g0=function(){return this.m0.g0()},s.I0=function(){return this.m0.I0()},s.R0=function(e,r,s){return this.m0.ZJ.R0(e,this.m0,this.E0.Yl,r,s)},s.N0=function(e){return TW(e)?this.ZJ.D0(e):this.ZJ.N0(e)},s.C0=function(e){return TW(e)?this.ZJ.P0(e):this.ZJ.C0(e)},s.Kl=function(){this.m0.Eh(TM.c0,this.l0)},M(r,[{key:"B0",get:function(){return this.k0}},{key:"r$",get:function(){var e;return null!=(e=this.m0.Fs.r$)?e:this.B0.r$}},{key:"QN",get:function(){return this.m0.Fs.QN||0}},{key:"e$",get:function(){var e=this.m0.Fs;return e.e$?[e.e$]:this.B0.e$}},{key:"O0",get:function(){var e=this.m0.Fs;return e.e$?[e.e$]:[]}},{key:"Mo",get:function(){return this.m0.Fs.e$||this.B0.Mo}},{key:"u$",get:function(){return this.m0.Fs.u$||this.B0.u$}},{key:"s$",get:function(){return this.m0.Fs.s$||this.B0.s$}},{key:"$d",get:function(){return this.FO+'; codecs="'+this.Mo+'"'}},{key:"o$",get:function(){var e=this.m0.Fs;return e.o$.length?e.o$:this.B0.o$}},{key:"gg",get:function(){var e;return this._g||(this._g=(e=this,{get id(){return e.hw},get type(){return e.Ua},get bandwidth(){return e.QN},get width(){return e.Lo},get height(){return e.yT},get frameRate(){var r,s;return null!=(r=null==(s=e.a$)?void 0:s.Dy())?r:NaN},get audioSamplingRate(){return e.r$}}))}},{key:"a$",get:function(){var e;return null!=(e=this.m0.Fs.a$)?e:this.B0.a$}},{key:"yT",get:function(){return this.m0.Fs.yT||this.B0.yT}},{key:"hw",get:function(){return this.m0.Fs.hw||""}},{key:"L0",get:function(){return this.A0},set:function(e){this.A0=e}},{key:"M0",get:function(){var e=this.m0.x0();if(e)return{Il:e.Il,MJ:e.MJ,Yl:this.E0.Yl}}},{key:"h$",get:function(){return this.m0.Fs.h$||this.B0.h$||1}},{key:"c$",get:function(){return this.m0.Fs.c$||this.B0.c$}},{key:"E0",get:function(){return this.U0.E0}},{key:"FO",get:function(){return this.m0.Fs.FO||this.B0.FO}},{key:"U0",get:function(){return this.B0.U0}},{key:"f$",get:function(){return this.m0.Fs.f$||this.B0.f$}},{key:"F0",get:function(){return this.p0}},{key:"v$",get:function(){return this.m0.Fs.v$||this.B0.v$}},{key:"d$",get:function(){return this.m0.Fs.d$||this.B0.d$}},{key:"H0",get:function(){return this.m0.H0}},{key:"l$",get:function(){return this.m0.Fs.l$||this.B0.l$}},{key:"ZJ",get:function(){return this.m0.ZJ}},{key:"_$",get:function(){return this.m0.Fs._$||this.B0._$}},{key:"Ua",get:function(){var e=this.FO.split("/")[0];return"application"===e||"text"===e||v2(this.FO,this.e$)?l4.Ku:"video"===e?l4.Vl:"audio"===e?l4.Xl:"image"===e?l4.Wl:l4.Nl}},{key:"Lo",get:function(){return this.m0.Fs.Lo||this.B0.Lo}}]),r}(TX),T$=function(e){function r(r,s){var o;return(o=e.call(this)||this).X0=[],o.m0=void 0,o.V0=void 0,o.W0=[],o.V0=r,o.m0=s,o.m0.kh(TM.c0,o.l0),o}j(r,e);var s,o,u=r.prototype;return s=P.coroutine(iO.mark(function e(r,s){var o,u=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.W0.length){e.next=6;break}return this.W0=[],o=this.m0.O$.map(function(e){return u.q0(e,r,s)}
1),e.next=5,P.all(o);case 5:this.W0=e.sent.filter(z);case 6:this.G0();case 7:case"end":return e.stop()}},e,this)})),u.Ec=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o){var u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=new TY(this,r),e.next=3,s(u);case 3:if(a=e.sent,rT(o),a){e.next=7;break}return e.abrupt("return",void 0);case 7:return e.abrupt("return",u);case 8:case"end":return e.stop()}},e,this)})),u.q0=function(e,r,s){return o.apply(this,arguments)},u.G0=function(){if(!this.W0.length)throw new y("Detected an AdaptationSet without any supported Representations.")},u.g0=function(){return this.m0.g0()},u.I0=function(){return this.m0.I0()},u.Kl=function(){this.m0.Eh(TM.c0,this.l0);for(var e=0,r=this.W0;e<r.length;e++)r[e].Kl();rv(this.W0)},M(r,[{key:"b$",get:function(){return this.m0.Fs.b$}},{key:"r$",get:function(){var e;return null!=(e=this.m0.Fs.r$)?e:-1}},{key:"e$",get:function(){if(this.m0.Fs.e$)return[this.m0.Fs.e$];for(var e=[],r=0,s=this.O$;r<s.length;r++){var o=s[r];o.O0.length&&-1===e.indexOf(o.Mo)&&e.push(o.Mo)}return e}},{key:"Mo",get:function(){return this.e$.join()}},{key:"u$",get:function(){return this.m0.Fs.u$}},{key:"s$",get:function(){return this.m0.Fs.s$}},{key:"$d",get:function(){return this.FO+'; codecs="'+this.Mo+'"'}},{key:"o$",get:function(){return this.X0}},{key:"a$",get:function(){return this.m0.Fs.a$}},{key:"T$",get:function(){return this.m0.Fs.T$}},{key:"yT",get:function(){return this.m0.Fs.yT||0}},{key:"hw",get:function(){return this.m0.Fs.hw}},{key:"h$",get:function(){return this.m0.Fs.h$}},{key:"c$",get:function(){return this.m0.Fs.c$}},{key:"E0",get:function(){return this.U0.E0}},{key:"FO",get:function(){return this.m0.Fs.FO||this.W0[0].FO}},{key:"U0",get:function(){return this.V0}},{key:"f$",get:function(){return this.m0.Fs.f$}},{key:"O$",get:function(){return this.W0}},{key:"L$",get:function(){return this.m0.Fs.L$||[]}},{key:"v$",get:function(){return this.m0.Fs.v$}},{key:"d$",get:function(){return this.m0.Fs.d$}},{key:"l$",get:function(){return this.m0.Fs.l$}},{key:"zD",get:function(){return this.m0.Fs.zD}},{key:"_$",get:function(){return this.m0.Fs._$}},{key:"Ua",get:function(){var e=(this.m0.Fs.$d||this.FO).split("/")[0];return"application"===e||"text"===e||"subtitle"===e||v2(this.FO,this.e$)?l4.Ku:"video"===e?l4.Vl:"audio"===e?l4.Xl:"image"===e?l4.Wl:l4.Nl}},{key:"Lo",get:function(){return this.m0.Fs.Lo||0}},{key:"z0",get:function(){return this.m0.Fs.dw||""}},{key:"j0",get:function(){return this._0}},{key:"Y0",get:function(){var e=this.j0,r=this.w0;if(void 0!==e&&void 0!==r){var s=b.min(r,this.E0.Q0);return b.max(e,s)}}}]),r}(TX);function TJ(e,r){for(var s=[],o=0;o<r.length;o++)for(var u=r[o],a=0;a<e.length;a++){var h=e[a];s.push(_._o(h,u))}return s}var TQ=function(){function e(e,r){this.V0=void 0,this.Z0=void 0,this.DZ=void 0,this.K0=void 0,this.J0=void 0,this.V0=e,this.Z0=r,this.DZ=r.Pk,this.K0=r.PJ,this.J0=r.zJ}var r=e.prototype;return r.$0=function(e){var r=e-this.V0.bC;if(!(r<0||r>=this.V0.ly)){var s=this.n1();return void 0!==s&&tQ(s,r,1e-5)?this.i1():this.e1(r)}},r.u1=function(e){var r=e-this.V0.bC;if(!(r<0))return this.s1(b.min(r,this.V0.ly))},r.i1=function(){return this.o1(0)},r.a1=function(){var e=this.V0.ly;if(isFinite(e))return this.s1(e)},r.S0=function(e){if(this.V0.h1.Ua===x3._N){var r=this.c1(e);if(!r)return;return{f1:e,v1:this.d1(e),l1:r}}var s=this.i1();if(s)return{f1:e,v1:s,l1:this.a1()}},r.I0=function(e,r){if(r){var s=this._1(r.v1),o=this.g1(r.l1);if(o){var u=this.w1(o);(!s||u.getTime()<s.getTime())&&(s=u)}return s}var a=this.i1();if(a){var h=this.w1(a);if(e.getTime()<h.getTime())return h}var c=this.V0.h1.z$;return e.getTime()<c.getTime()?c:void 0},r.c1=function(e){var r=(e.getTime()-this.V0.h1.z$.getTime())/1e3-this.V0.bC+this.K0,s=this.s1(tJ(r,0,this.V0.ly));if(s&&(s=this.m1(s,e))){for(var o=this.g1(s);o&&this.A1(o,e);)s=o,o=this.g1(s);return s}},r.d1=function(e){var r,s=this.Z0.YJ;if(s){var o=(e.getTime()-this.V0.h1.z$.getTime())/1e3-this.V0.bC-s.TJ();(r=this.s1(tJ(o,0,this.V0.ly)))||(r=this.i1())}else r=this.i1();if(r&&(r=this.m1(r,e))){for(var u=this.b1(r);u&&this.A1(u,e);)r=u,u=this.b1(r);return r}},r.m1=function(e,r){for(var s=e;s&&this.w1(s).getTime()>r.getTime();)s=this.b1(s);if(s){var o=this._1(s);if(o&&o.getTime()<=r.getTime()){var u=this.b1(s);for(u&&this.A1(u,r)&&(s=u);s;){if(this.w1(s).getTime()>r.getTime())return;if(this.A1(s,r))break;s=this.g1(s)}if(!s)return}return s}},r.A1=function(e,r){if(this.w1(e).getTime()>r.getTime())return!1;var s=this._1(e);return!(s&&r.getTime()>=s.getTime())},r.T1=function(e,r){if(this.E1(e).getTime()>r.getTime())return!1;var s=this._1(e);return!(s&&r.getTime()>=s.getTime())},r.S1=function(e,r,s){var o=t5(r,this.DZ)+this.V0.bC;return{UJ:e,I1:r,xp:o,ly:s,Up:o+s}},r.E1=function(e){return this.V0.h1.Ua===x3._N?new Date(this.V0.h1.z$.getTime()+1e3*(e.xp+e.ly)):this.V0.h1.z$},r.w1=function(e){var r=this.E1(e);return this.V0.h1.Ua===x3._N?new Date(r.getTime()-1e3*this.K0):r},r._1=function(e){var r=1/0;if(this.V0.h1.Ua===x3._N){var s=this.Z0.YJ;s&&(r=this.E1(e).getTime()+1e3*e.ly+s.EJ())}var o=this.V0.h1.G$;return o&&(r=b.min(r,o.getTime())),r===1/0?void 0:new Date(r)},r.R1=function(e,r){return e.UJ+r},r.N1=function(e){return!1},r.R0=function(e,r,s,o,u){var a=this.D1(e);if(!a)return P.reject(new y("Invalid segment"));var h=this.C1(a.UJ);return h?P.resolve(h):this.P1(a.UJ,r,s,o,u)},r.C1=function(e){},r.P1=function(e,r,s,o,u){return P.reject(new y("Not supported"))},r.b1=function(e){var r=this.D1(e);if(r)return this.o1(r.UJ-1)},r.g1=function(e){var r=this.D1(e);if(r)return this.o1(r.UJ+1)},r.D1=function(e){var r=this.o1(e.UJ);
1if(r&&r.xp===e.xp)return r;var s=this.$0(e.xp);return s&&s.xp===e.xp?s:void 0},r.B1=function(e){var r=this.O1(e);if(r&&this.N1(r.UJ)){var s=this.C1(r.UJ);if(s)return s.B1(e)}},r.O1=function(e){return this.o1(e.L1)},r.N0=function(e){var r=this.D1(e);return!!r&&0===r.UJ},r.D0=function(e){var r=this.B1(e);return!!r&&0===r.y0},r.C0=function(e){var r=this.D1(e);if(!r)return!1;var s=this.a1();return!!s&&r.UJ===s.UJ},r.P0=function(e){var r=this.B1(e);if(!r)return!1;var s=this.a1();if(!s||r.L1!==s.UJ)return!1;var o=this.C1(r.L1);return r.y0+1===o.Zg},M(e,[{key:"dA",get:function(){return t5(this.J0,this.DZ)-this.V0.bC}}]),e}(),TG=function(e){function r(r,s){(o=e.call(this,s,r)||this).M1=void 0,o.U1=void 0;var o,u=r.F1,a=r.ly;if(void 0===u||void 0===a)throw new y("MultipleSegmentBase does not have a segment duration specified.");return o.U1=u,o.M1=a,o}j(r,e);var s=r.prototype;return s.o1=function(e){if(!(e<0)){var r=this.U1.multiply(e),s=t5(r,this.DZ),o=this.V0.ly;if(!(s>=o)){var u=this.H1();if(void 0!==u){if(e>u)return;if(e===u)return this.S1(e,r,o-s)}return isFinite(o)&&s+this.M1>o?this.S1(e,r,o-s):this.S1(e,r,this.M1)}}},s.n1=function(){return 0},s.e1=function(e){var r=b.floor(e/this.M1),s=this.H1();return void 0!==s&&r>=s?this.o1(s):this.o1(r)},s.s1=function(e){if(e>=this.V0.ly){var r=b.ceil(this.V0.ly/this.M1)-1,s=this.H1();return void 0!==s&&r>=s?this.o1(s):this.o1(r)}return this.e1(e)},s.H1=function(){var e,r=this.Z0.JJ;if(void 0!==r)return r-(null!=(e=this.Z0.KJ)?e:1);if(isFinite(this.V0.ly)){var s=this.Z0.X1;if(void 0!==s&&s>0)return s-1}},s.V1=function(){if(isFinite(this.V0.ly))return this.a1()},s.W1=function(e,r){return this.U1.multiply(e.UJ+(r-1))},s.Ec=function(){},r}(TQ);function TK(e,r){var s=e.length;if(0===s)return -1;for(var o=0,u=s-1,a=e[o].xp,h=e[u].Up;o<=u&&a.lessThanOrEqual(r)&&r.lessThan(h);){var c=o+b.floor(r.subtract(a).toNumber()/h.subtract(a).toNumber()*(u-o)),f=e[c],l=f.xp,p=c+1<s?e[c+1].xp:f.Up;if(p.lessThanOrEqual(r))o=c+1,a=p;else{if(!r.lessThan(l))return c;u=c-1,h=l}}return -1}var Tz=function(e){function r(r,s){var o;return(o=e.call(this,s,r)||this).q1=[],o.G1=void 0,o.z1=tx.ZERO,o.Ec(),o}j(r,e);var s=r.prototype;return s.o1=function(e){if(!(e<0))return e<this.q1.length?this.q1[e].j1:this.Y1(e-this.q1.length)},s.n1=function(){if(this.q1.length>0)return t5(this.q1[0].xp,this.DZ)},s.e1=function(e){if(this.G1&&t5(this.G1.xp,this.DZ)<=e){var r=t5(this.G1.xp,this.DZ),s=t5(this.G1.ly,this.DZ),o=b.floor((e-r)/s);return this.Y1(o)}if(this.q1.length>0&&tQ(e,t5(this.q1[0].xp,this.DZ),1e-5))return this.q1[0].j1;var u=TK(this.q1,tx.fromNumber(e*this.DZ));return u<0?void 0:this.q1[u].j1},s.s1=function(e){if(!this.G1&&this.q1.length>0){var r=this.q1[this.q1.length-1];if(lI(e,t5(r.Up,this.DZ),1e-5)>=0)return r.j1}var s=this.n1();return s&&e<s?this.q1[0].j1:this.e1(e)},s.V1=function(){return isFinite(this.V0.ly)?this.a1():this.o1(this.q1.length-1)},s.W1=function(e){return this.Q1(e)},s.Y1=function(e){if(this.G1){var r=this.G1.xp,s=this.G1.ly,o=r.add(s.multiply(e)),u=t5(o,this.DZ),a=this.V0.ly;if(!(u>=a)){var h=this.q1.length+e,c=b.min(t5(s,this.DZ),u+a);return this.S1(h,o,c)}}},s.Q1=function(e){return e.I1.add(this.J0)},s.Ec=function(){var e=this.Z0.Fs.ZJ;if(!e)throw new y("MultipleSegmentBaseTO does not have a SegmentTimeline specified.");this.Z1(e)},s.Z1=function(e){var r=this.J0;this.K1(e,r);var s=this.J1(e);this.n2(e,r,s.i2,s.L1)},s.K1=function(e,r){var s=this.q1;if(0===e.length)rv(s);else{for(var o=e[0],u=o.xp?tx.fromString(o.xp,!1).subtract(r):tx.ZERO,a=0;a<s.length&&s[a].xp.lessThan(u);)a++;a>0&&s.splice(0,a)}},s.J1=function(e){for(var r=this.q1,s=this.z1,o=0,u=0;o<e.length&&u<r.length;){var a=e[o].xJ||0;if(a<0)break;var h=u+a;if(h>=r.length||r[h].xp.greaterThanOrEqual(s))break;if(r[u].j1.UJ===u)u=h+1;else for(;u<=h;)r[u].j1.UJ=u,u++;o++}return{i2:o,L1:u}},s.n2=function(e,r,s,o){for(var u,a=this.q1,h=s,c=o;h<e.length;){var f=e[h],l=tx.fromString(f.ly,!1),p=f.xJ||0,v=void 0;if(f.xp){if(v=tx.fromString(f.xp,!1).subtract(r),c>0){var d=a[c-1];d.Up.greaterThan(v)&&(d.ly=v.subtract(d.xp),d.Up=d.xp.add(d.ly))}}else v=c>0?a[c-1].Up:tx.ZERO;if(p<0){if(h+1===e.length){u={xp:v,ly:l};break}for(var y=tx.fromString(e[h+1].xp,!1).subtract(r);v.lessThan(y);){var g=v.add(l);this.e2(a,c,v,l,g),v=g,c++}}else for(var m=c+p;c<=m;){var w=v.add(l);this.e2(a,c,v,l,w),v=w,c++}h++}c<a.length&&a.splice(c),a.length>0&&(this.z1=a[a.length-1].xp),this.G1=u},s.e2=function(e,r,s,o,u){if(r<e.length){var a=e[r];a.ly.equals(o)?a.j1.UJ=r:e[r]={xp:s,ly:o,Up:u,j1:this.S1(r,s,t5(o,this.DZ))}}else e.push({xp:s,ly:o,Up:u,j1:this.S1(r,s,t5(o,this.DZ))})},r}(TQ),TZ=function(){function e(e,r,s){this.U0=void 0,this.u2=void 0,this.Wr=void 0,this.s2=void 0,this.o2=void 0,this.U0=e,this.u2=r,this.Wr=s}var r=e.prototype;return r.a2=function(){if(this.o2=this.h2(),this.o2)return this.o2;if(this.u2)return this.u2.ZJ;throw new y("Missing media segment information.")},r.x0=function(e){var r=this.GJ;
1if(r)return{Il:(void 0!==r.LJ?_._o(r.LJ,e.g$[0]):e.g$[0]).href,MJ:r.MJ};var s=this.FJ;return s?{Il:e.g$[0].href,MJ:[0,s[0]-1]}:void 0},r.Ec=function(e){this.Wr=e,this.o2&&this.o2.Ec()},M(e,[{key:"Fs",get:function(){return this.Wr}},{key:"PJ",get:function(){return this.Wr&&void 0!==this.Wr.PJ?this.Wr.PJ:this.u2?this.u2.PJ:0}},{key:"zJ",get:function(){return this.Wr&&void 0!==this.Wr.zJ?this.Wr.zJ:this.u2?this.u2.zJ:tx.ZERO}},{key:"YJ",get:function(){return this.Wr&&void 0!==this.Wr.YJ?this.Wr.YJ:this.u2?this.u2.YJ:this.U0.h1.YJ}},{key:"Pk",get:function(){return this.Wr&&void 0!==this.Wr.Pk?this.Wr.Pk:this.u2&&this.u2.Pk?this.u2.Pk:1}},{key:"FJ",get:function(){return this.Wr&&void 0!==this.Wr.FJ?this.Wr.FJ:this.u2?this.u2.FJ:void 0}},{key:"GJ",get:function(){return this.Wr&&void 0!==this.Wr.GJ?this.Wr.GJ:this.u2?this.u2.GJ:void 0}},{key:"ZJ",get:function(){return this.s2||(this.s2=this.a2()),this.s2}}]),e}(),T0=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.h2=function(){return this.Wr.ZJ?new Tz(this,this.U0):void 0!==this.Wr.ly?new TG(this,this.U0):void 0},M(r,[{key:"ly",get:function(){return void 0!==this.Wr.ly?this.Wr.ly/this.Pk:this.u2&&this.u2 instanceof r?this.u2.ly:void 0}},{key:"F1",get:function(){return void 0!==this.Wr.ly?tx.fromNumber(this.Wr.ly):this.u2&&this.u2 instanceof r?this.u2.F1:void 0}},{key:"KJ",get:function(){return void 0!==this.Wr.KJ?this.Wr.KJ:this.u2&&this.u2 instanceof r?this.u2.KJ:void 0}},{key:"JJ",get:function(){return void 0!==this.Wr.JJ?this.Wr.JJ:this.u2&&this.u2 instanceof r?this.u2.JJ:void 0}}]),r}(TZ),T1=function(){function e(e){this.c2=void 0,this.c2=e}return e.prototype.uc=function(e){return this.c2.replace(/\$\$|\$(RepresentationID|Number|Bandwidth|Time)(?:%0(\d+)([diuxXo]))?\$/g,function(r,s,o,u){if("$$"===r)return"$";var a=e[s];if(void 0===a)return r;if(void 0===o)return a.toString();var h=function(e,r){switch(r){case"d":case"i":case"u":return e.toString(10);case"x":return e.toString(16);case"X":return e.toString(16).toUpperCase();case"o":return e.toString(8);default:return}}(a,u);return void 0===h?r:h=nJ(h,Number(o),"0")})},e}(),T2=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).f2=void 0,u.v2=void 0,u.f2=o.n$?new T1(o.n$):void 0,u.v2=o.i$?new T1(o.i$):void 0,u}j(r,e);var s=r.prototype;return s.x0=function(r){var s=this.n$;if(!s)return e.prototype.x0.call(this,r);var o=s.uc({Bandwidth:r.Fs.QN,RepresentationID:r.Fs.hw});return{Il:_.do(o,r.g$[0])}},s.b0=function(e,r){var s,o=null!=(s=r.H0.KJ)?s:1,u=this.i$.uc({Bandwidth:r.Fs.QN,Number:r.ZJ.R1(e,o),RepresentationID:r.Fs.hw,Time:r.ZJ.W1(e,o)});return{Il:_.do(u,r.g$[0])}},s.T0=function(e,r){},M(r,[{key:"n$",get:function(){return this.f2?this.f2:this.u2&&this.u2 instanceof r?this.u2.n$:void 0}},{key:"i$",get:function(){return this.v2?this.v2:this.u2&&this.u2 instanceof r?this.u2.i$:void 0}},{key:"X1",get:function(){}}]),r}(T0),T3=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.b0=function(e,r){var s=this.Wr.XJ[e.UJ],o=r.g$[0];return{Il:(s.fT?_._o(s.fT,o):o).href,MJ:s.HJ}},s.T0=function(e,r){},M(r,[{key:"X1",get:function(){return void 0!==this.Wr.XJ?this.Wr.XJ.length:this.u2&&this.u2 instanceof T0?this.u2.X1:void 0}}]),r}(T0),T5=function(e){function r(r,s,o,u,a){var h;return(h=e.call(this)||this).L1=void 0,h.d2=void 0,h.Pk=void 0,h.l2=void 0,h.zJ=void 0,h._2=void 0,h.L1=r,h.d2=s,h.Pk=o.Pk,h.l2=u,h.zJ=a,h._2=h.g2(o),h}j(r,e);var s=r.prototype;return s.w2=function(e){if(e>=0&&e<this.Zg)return this.m2(this._2[e])},s.A2=function(e){var r=this.b2(e);if(this._2.length>0){var s=this._2[0];if(r<=t5(s.xp,this.Pk))return this.m2(s)}var o=TK(this._2,tx.fromNumber(r*this.Pk));if(!(o<0))return this.m2(this._2[o])},s.T2=function(e){var r=this.b2(e);if(this._2.length>0){var s=this._2[this._2.length-1];if(r>=t5(s.Up,this.Pk))return this.m2(s)}return this.A2(e)},s.m2=function(e){var r=t5(e.xp,this.Pk)-this.zJ,s=r+this.l2,o=t5(e.ly,this.Pk);return{L1:this.L1,y0:e.UJ,xp:s,I1:tx.fromNumber(r*this.Pk),ly:o,Up:s+o,E2:[this.d2+e.d2,this.d2+e.S2]}},s.g2=function(e){for(var r=[],s=e.tS,o=e.nS.toNumber(),u=0,a=0,h=e.rS;a<h.length;a++){var c=h[a],f=c.QE,l=tx.fromNumber(c.ly),p=s.add(l);
10===c.YE&&r.push({UJ:u++,xp:s,ly:l,Up:p,d2:o,S2:o+f-1}),o+=f,s=p}return r},s.b2=function(e){return e-this.l2+this.zJ},M(r,[{key:"Zg",get:function(){return this._2.length}}]),r}(function(){function e(){}return e.prototype.B1=function(e){var r=this.w2(e.y0);if(r&&r.xp===e.xp)return r;var s=this.A2(e.xp);return s&&s.xp===e.xp?s:void 0},e}()),T4=function(e){function r(r,s){var o;return(o=e.call(this,s,r)||this).I2=void 0,o.R2=void 0,o.N2=void 0,o.I2=r.FJ,o.R2=o.S1(0,tx.ZERO,o.V0.ly),o}j(r,e);var s,o=r.prototype;return o.o1=function(e){if(0===e)return this.R2},o.n1=function(){return 0},o.e1=function(e){return this.R2},o.s1=function(e){return this.e1(e)},o.V1=function(){return this.R2},o.W1=function(e,r){return tx.ZERO},o.S0=function(e){var r=this.D2(e);return r&&{f1:e,v1:r,l1:r}},o.D2=function(e){var r=this.R2;return this.A1(r,e)?r:void 0},o.c1=function(e){return this.D2(e)},o.d1=function(e){return this.D2(e)},o.Ec=function(){},o.N1=function(e){return 0===e&&void 0!==this.I2},o.C1=function(e){return this.N2},s=P.coroutine(iO.mark(function e(r,s,o,u,a){var h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return h=s.g$[0].href,c=this.I2,e.next=4,u.C2(h,c,o,a);case 4:return f=e.sent,this.N2=this.P2(r,f),e.abrupt("return",this.N2);case 7:case"end":return e.stop()}},e,this)})),o.P1=function(e,r,o,u,a){return s.apply(this,arguments)},o.P2=function(e,r){var s=this.I2,o=vv.Bb(new DataView(r),new sJ);if(o.Ua!==pG.ib)throw new y("Invalid segment index");var u=vw.Kb(o.Fs);return new T5(e,s[1]+1,u,this.V0.bC,t5(this.J0,this.DZ))},r}(TQ),T6=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.b0=function(e,r){return{Il:r.g$[0].href}},s.T0=function(e,r){return{Il:r.g$[0].href,MJ:e.E2}},s.h2=function(){return new T4(this,this.U0)},M(r,[{key:"KJ",get:function(){}}]),r}(TZ),T8=function(e){function r(){return e.call(this,TM.c0)||this}return j(r,e),r}(rX),T7=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).En=void 0,u.Wr=void 0,u.B2=void 0,u.Z0=void 0,u.O2=1/0,u.L2=void 0,u.En=s,u.M2(r,o),u}j(r,e);var s=r.prototype;return s.U2=function(){return this.Z0||this.En&&this.En.U2()},s.F2=function(e){var r=this.U0,s=this.En&&this.En.U2();this.Wr.A$?this.Z0=new T2(r,s,this.Wr.A$):this.Wr.p$?this.Z0=new T3(r,s,this.Wr.p$[0]):this.Wr.m$?this.Z0=new T6(r,s,this.Wr.m$):e&&!s&&(this.Z0=new T6(r,s,void 0))},s.M2=function(e,r){this.Wr=e,this.B2=e.g$&&e.g$.length>0?TJ(e.g$.map(function(e){return e.Il}),r):r.slice(),this.Z0&&(e.A$?this.Z0.Ec(e.A$):e.p$?this.Z0.Ec(e.p$[0]):e.m$&&this.Z0.Ec(e.m$))},s.g0=function(){var e;return null==(e=this.L2)?void 0:e.H2},s.I0=function(){var e;return null==(e=this.L2)?void 0:e.X2},s.V2=function(e){var r=this.O2,s=this.U0.ly,o=this.L2,u=this.W2(e);o&&tQ(s,r,1e-5)&&Ce(o,u)||(this.O2=s,this.L2=u,this.yh(new T8))},s.rh=function(){this.Th()},M(r,[{key:"Fs",get:function(){return this.Wr}},{key:"g$",get:function(){return this.B2}}]),r}(rB);function T9(e){if(0!==e.length){for(var r=0,s=1/0,o=0;o<e.length;o++){var u=e[o].g0();if(!u||(r=b.max(r,u.bC))>=(s=b.min(s,u.EC)))return}return{bC:r,EC:s}}}function Ct(e){for(var r,s=0;s<e.length;s++){var o=e[s].I0();o&&(!r||o.getTime()<r.getTime())&&(r=o)}return r}function Ce(e,r){var s,o,u,a;return s=e.X2,o=r.X2,(s&&o?s.getTime()===o.getTime():s===o)&&(u=e.H2,a=r.H2,u&&a?tQ(u.bC,a.bC,1e-5)&&tQ(u.EC,a.EC,1e-5):u===a)}var Cn=function(e){function r(r,s,o){var u;(u=e.call(this)||this).V0=void 0,u.pp=void 0,u.q2=void 0,u.V0=r,u.pp=s,u.q2=o.slice();for(var a=0;a<o.length;a++)o[a].kh(TM.c0,u.l0);return u}j(r,e);var s=r.prototype;return s.g0=function(){return T9(this.q2)},s.I0=function(){for(var e,r=0,s=this.q2;r<s.length;r++){var o=s[r].I0();o&&(!e||o.getTime()<e.getTime())&&(e=o)}return e},s.Kl=function(){this.Th();for(var e=0,r=this.q2;e<r.length;e++)r[e].Eh(TM.c0,this.l0)},M(r,[{key:"X$",get:function(){return this.q2}},{key:"e$",get:function(){return this.X$.reduce(function(e,r){for(var s=0,o=r.e$;s<o.length;s++){var u=o[s];rl(e,u)||e.push(u)}return e},[])}},{key:"Mo",get:function(){return this.e$.length>0?this.e$[0]:""}},{key:"Ua",get:function(){return this.q2[0].Ua}},{key:"hw",get:function(){return this.pp}},{key:"E0",get:function(){return this.V0.E0}},{key:"FO",get:function(){return this.q2[0].FO}},{key:"U0",get:function(){return this.V0}},{key:"O$",get:function(){return rg(this.X$,function(e){return e.O$})}}]),r}(TX),Ci=function(e){function r(){return e.call(this,TM.v0)||this}return j(r,e),r}(rX);function Cr(e){for(var r=[],s=0;s<e.length;s++)!function(s){var o=e[s],u=void 0,a=o.T$;void 0===a||(u=ra(r,function(e){return e.hw===a})),u||(u={hw:a,X$:[]},r.push(u)),u.X$.push(o)}(s);return r}var Cs,Co,Cu=function(e){function r(r,s){var o;return(o=e.call(this)||this).m0=void 0,o.q2=[],o.G2=[],o.z2=void 0,o.j2=!1,o.z2=r,o.m0=s,o.m0.kh(TM.c0,o.l0),o}j(r,e);var s,o,u,a=r.prototype;return a.Y2=function(e,r){if(0!==this.G2.length){for(var s=e,o=0,u=this.G2;o<u.length;o++){var a=u[o],h=a.Ua;if(h===l4.Xl||h===l4.Vl){var c=a.w0;if(void 0===c)return;s=r(s,c)}}return s}},a.Q2=function(){this.j2||(this.j2=!0,this.yh(new Ci),this.Kl())},s=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.q2.length){e.next=7;break}return e.next=3,this.Z2(this.m0.X$,r,s);case 3:this.K2(this.q2),rT(s),e.next=9;break;case 7:return e.next=9,this.J2(r,s);case 9:case"end":return e.stop()}},e,this)})),a.Ec=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o){var u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u=0;case 1:if(!(u<r.length)){e.next=17;break}return a=new T$(this,r[u]),e.prev=4,e.next=7,a.Ec(s,o);case 7:this.q2.push(a),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(4),rC(e.t0);case 14:u++,e.next=1;break;case 17:case"end":return e.stop()}},e,this,[[4,10]])})),a.Z2=function(e,r,s){return o.apply(this,arguments)},a.K2=function(e){for(var r=Cr(e),s=0;s<r.length;s++){var o=r[s],u=new Cn(this,o.hw,o.X$);this.G2.push(u)}},u=P.coroutine(iO.mark(function e(r,s){var o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=0,u=this.q2;case 1:if(!(o<u.length)){e.next=8;break}return a=u[o],e.next=5,a.Ec(r,s);case 5:o++,e.next=1;break;case 8:case"end":return e.stop()}},e,this)})),a.J2=function(e,r){return u.apply(this,arguments)},a.g0=function(){return this.m0.g0()},a.I0=function(){return this.m0.I0()},a.Kl=function(){this.Th(),this.m0.Eh(TM.c0,this.l0);for(var e=0,r=this.G2;e<r.length;e++)r[e].Kl();for(var s=0,o=this.q2;s<o.length;s++)o[s].Kl();rv(this.q2),rv(this.G2)},M(r,[{key:"X$",get:function(){return this.q2}},{key:"n3",get:function(){return this.G2}},{key:"V$",get:function(){return this.m0.Fs.V$}},{key:"ly",get:function(){return this.m0.ly}},{key:"EC",get:function(){return this.bC+this.ly}},{key:"W$",get:function(){return this.m0.Fs.W$||[]}},{key:"hw",get:function(){return this.m0.hw}},{key:"d0",get:function(){return this.j2}},{key:"E0",get:function(){return this.z2}},{key:"i3",get:function(){return this.z2.r3(this)}},{key:"U0",get:function(){return this}},{key:"e3",get:function(){return this.z2.u3(this)}},{key:"s3",get:function(){return this.Y2(1/0,b.min)}},{key:"o3",get:function(){return this.Y2(0,b.max)}},{key:"bC",get:function(){return this.m0.bC}},{key:"Yl",get:function(){return this.E0.Yl}}]),r}(TX),Ca=function(e){function r(){return e.call(this,ul.Qf)||this}return j(r,e),r}(rX);(Co||(Co={})).a3="h3";var Ch=function(e){function r(){return e.call(this,Co.a3)||this}return j(r,e),r}(rX),Cc=function(e){function r(r,s){var o;return(o=e.call(this,r,s,s.g$)||this).k0=void 0,o.c3=void 0,o.k0=s,o.F2(!0),o}j(r,e);var s=r.prototype;return s.x0=function(){return this.H0.x0(this)},s.b0=function(e){return this.H0.b0(e,this)},s.T0=function(e){return this.H0.T0(e,this)},s.S0=function(){return this.c3},s.W2=function(e){var r=this.ZJ,s=r.S0(e),o=s&&function(e,r){var s,o=e.v1,u=e.l1,a=e.f1,h=o.xp,c=r.E1(u);if(c.getTime()<=a.getTime())s=u.Up;else{var f=(c.getTime()-a.getTime())/1e3,l=b.max(u.ly-f,0);s=u.xp+l}return{bC:h,EC:s}}(s,r),u=this.ZJ.I0(e,s);return this.c3=s,{f1:e,H2:o,X2:u}},s.Ec=function(e){this.M2(e,this.k0.g$)},M(r,[{key:"B0",get:function(){return this.k0}},{key:"U0",get:function(){return this.k0.U0}},{key:"h1",get:function(){return this.k0.h1}},{key:"H0",get:function(){return this.U2()}},{key:"ZJ",get:function(){return this.H0.ZJ}}]),r}(T7),Cf=function(e){function r(r,s){var o;return(o=e.call(this,r,s,s.g$)||this).V0=void 0,o.W0=void 0,o.V0=s,o.F2(!1),o.W0=r.O$.map(function(e){return new Cc(e,t8(o))}),o}j(r,e);var s=r.prototype;return s.Ec=function(e){this.M2(e,this.V0.g$);var r=e.O$||[];if(this.W0.length!==r.length)throw new y("Expected "+this.W0.length+' representations in adaptation set "'+e.hw+'", found '+r.length);for(var s=0;s<r.length;s++)this.W0[s].Ec(r[s])},s.V2=function(r){for(var s=0,o=this.W0;s<o.length;s++)o[s].V2(r);e.prototype.V2.call(this,r)},s.W2=function(e){return{f1:e,H2:T9(this.W0),X2:Ct(this.W0)}},s.rh=function(){for(var r=0,s=this.W0;r<s.length;r++)s[r].rh();e.prototype.rh.call(this)},M(r,[{key:"O$",get:function(){return this.W0}},{key:"U0",get:function(){return this.V0}},{key:"h1",get:function(){return this.V0.h1}},{key:"T$",get:function(){return this.Wr.T$}}]),r}(T7),Cl=function(e){function r(r,s,o,u){var a;return(a=e.call(this,s,void 0,r.g$)||this).f3=void 0,a.hS=void 0,a.EV=void 0,a.q2=void 0,a.G2=[],a.f3=r,a.hS=o,a.EV=u,a.F2(!1),a.q2=(s.X$||[]).map(function(e){return new Cf(e,t8(a))}),a.G2=Cr(a.q2),a}j(r,e);var s=r.prototype;return s.Ec=function(e,r){this.M2(e,this.f3.g$),this.EV=r;var s=e.X$||[];if(this.q2.length!==s.length)throw new y("Expected "+this.q2.length+' adaptation sets in period "'+e.hw+'", found '+s.length);for(var o=0;o<s.length;o++)this.q2[o].Ec(s[o])},s.V2=function(r){for(var s=0,o=this.q2;s<o.length;s++)o[s].V2(r);e.prototype.V2.call(this,r)},s.W2=function(e){return{f1:e,H2:T9(this.q2),X2:Ct(this.q2)}},s.rh=function(){for(var r=0,s=this.q2;r<s.length;r++)s[r].rh();e.prototype.rh.call(this)},M(r,[{key:"X$",get:function(){return this.q2}},{key:"n3",get:function(){return this.G2}},{key:"U0",get:function(){return this}},{key:"h1",get:function(){return this.f3}},{key:"hw",get:function(){return this.Wr.hw}},{key:"bC",get:function(){return this.hS}},{key:"ly",get:function(){return this.EV}}]),r}(T7),Cp=new Date("2000-01-01"),Cv=function(e){function r(r,s,o,u){var a;if((a=e.call(this)||this).Wr=void 0,a.v3=void 0,a.d3=void 0,a.YW=void 0,a.l3=void 0,a.L2=void 0,a.B2=void 0,a._3=void 0,a.g3=void 0,a.w3=void 0,a.y3=[],a.v3=s,a.Ec(r,o,u),r.Ua===x3._N){var h=a.V1();h&&h.G$&&h.G$.getTime()<Cp.getTime()&&(a.w3=new Date(a.r0.getTime()-1e3*(h.j1.xp+h.j1.ly)),a.V2(u))}return a}j(r,e);var s=r.prototype;return s.g0=function(){var e;return null==(e=this.L2)?void 0:e.H2},s.I0=function(){var e;return null==(e=this.L2)?void 0:e.X2},s.Ec=function(e,r,s,o){this.Wr=e,this.d3=r,this.l3=null!=o?o:s,this.YW=s;var u,a=[_._o(".",r)];this.B2=e.g$&&e.g$.length>0?TJ(e.g$.map(function(e){return e.Il}),a):a,this._3=e.j$&&e.j$.length>0?TJ(e.j$,this.B2):[];var h=this._3.map(function(e){return e.href}),c=r.href;rl(h,c)||(this._3.push(r),h.push(c));var f=this.v3.href;rl(h,f)||(this._3.push(this.v3),h.push(f)),this.g3=null==(u=e.K$)?void 0:u.TJ();var l=e.Ua===x3._N,p=function(e,r,s){for(var o=[],u=0;u<e.length;u++){var a=e[u],h=void 0;if(a.bC)h=a.bC.TJ();else if(u>0&&e[u-1].ly)h=o[u-1]+e[u-1].ly.TJ();else{if(0!==u||r)break;h=0}o.push(h)}for(var c=[],f=0;f<o.length-1;f++)c.push({Fs:e[f],bC:o[f],ly:o[f+1]-o[f]});if(o.length>0){var l=o.length-1,p=e[l],v=o[l],d=1/0;r||(d=p.ly?p.ly.TJ():s-v),c.push({Fs:p,bC:v,ly:d})}return c}(e.i0,l,this.g3);this.m3(p),this.V2(s)},s.m3=function(e){var r=this.y3;if(0!==e.length){for(var s=e[0].Fs.hw,o=0;o<r.length&&r[o].hw!==s;)o++;for(var u=r.splice(0,o),a=0;a<u.length;a++)u[a].rh();for(var h=0;h<e.length;h++){var c=e[h];h<r.length?r[h].Ec(c.Fs,c.ly):r.push(new Cl(this,c.Fs,c.bC,c.ly))}}else rv(r)},s.V2=function(e){for(var r=0,s=this.y3;r<s.length;r++)s[r].V2(e);var o=this.L2,u=this.W2(e);o&&Ce(o,u)||(this.L2=u,this.yh(new T8))},s.W2=function(e){return{f1:e,H2:function(e){for(var r,s=0;s<e.length;s++){var o=e[s].g0();if(o){r=o.bC;break}}if(void 0!==r){for(var u,a=e.length-1;a>=0;a--){var h=e[a].g0();if(h){u=h.EC;break}}if(void 0!==u)return{bC:r,EC:u}}}(this.y3),X2:Ct(this.y3)}},s.V1=function(){if(0!==this.y3.length){var e=this.y3[this.y3.length-1];if(!isFinite(e.ly)&&0!==e.X$.length){var r=e.X$[0];if(0!==r.O$.length){var s=r.O$[0].ZJ,o=s.V1();if(o)return{j1:o,G$:s._1(o)}}}}},s.rh=function(){this.Th();for(var e=0,r=this.y3;e<r.length;e++)r[e].rh()},M(r,[{key:"Fs",get:function(){return this.Wr}},{key:"Ua",get:function(){return this.Wr.Ua||x3.lN}},{key:"z$",get:function(){return this.w3||this.Wr.z$||this.r0}},{key:"G$",get:function(){return this.Wr.G$}},{key:"K$",get:function(){return this.g3}},{key:"g$",get:function(){return this.B2}},{key:"j$",get:function(){return this._3}},{key:"i0",get:function(){return this.y3}},{key:"r0",get:function(){return this.Wr.r0||this.YW}}
1,{key:"YJ",get:function(){return this.Wr.YJ}},{key:"A3",get:function(){return this.l3}},{key:"b3",get:function(){return this.YW}}]),r}(rB),Cd=function(){function e(e,r,s){this.T3=0,this.ES=e,this.zd=r,this.E3=s}var r,s,o,u,a=e.prototype;return r=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.S3(r,this.ES,this.zd,this.E3).catch(rS);case 2:case"end":return e.stop()}},e,this)})),a.iI=function(e){return r.apply(this,arguments)},a.I3=function(){return new Date(t0()+this.T3)},s=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!u){e.next=4;break}return e.next=3,this.R3(s,u,o);case 3:a=e.sent;case 4:if(void 0!==a){e.next=17;break}rT(o),h=0;case 7:if(!(h<r.length)){e.next=17;break}return c=r[h],e.next=11,this.N3(s,c,o);case 11:if(void 0===(a=e.sent)){e.next=14;break}return e.abrupt("break",17);case 14:h++,e.next=7;break;case 17:this.T3=void 0===a?0:a-t0();case 18:case"end":return e.stop()}},e,this)})),a.S3=function(e,r,o,u){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o){var u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=s.OJ,e.next="urn:mpeg:dash:utc:http-xsdate:2012"===e.t0||"urn:mpeg:dash:utc:http-xsdate:2014"===e.t0||"urn:mpeg:dash:utc:http-iso:2012"===e.t0||"urn:mpeg:dash:utc:http-iso:2014"===e.t0?4:"urn:mpeg:dash:utc:direct:2012"===e.t0||"urn:mpeg:dash:utc:direct:2014"===e.t0?10:16;break;case 4:if(!(u=s.gs)){e.next=9;break}return e.next=8,this.R3(r,u,o);case 8:return e.abrupt("return",e.sent);case 9:case 15:return e.abrupt("break",17);case 10:if(!(a=s.gs)||A(h=new Date(a).getTime())){e.next=15;break}return e.abrupt("return",h);case 16:return e.abrupt("return");case 17:case"end":return e.stop()}},e,this)})),a.N3=function(e,r,s){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r,s,o){var u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.El({Il:s,ql:hk.GET,Al:up.Ku,dh:o});case 3:return u=e.sent,e.next=6,u.Qd();case 6:if(A(a=new Date(e.sent).getTime())){e.next=10;break}return e.abrupt("return",a);case 10:e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),rC(e.t0);case 16:case"end":return e.stop()}},e,null,[[0,12]])})),a.R3=function(e,r,s){return u.apply(this,arguments)},e}(),Cy=function(e){function r(r,s,o,u){var a;return(a=e.call(this)||this).D3=void 0,a.m0=void 0,a.C3=void 0,a.P3=!0,a.y3=[],a.B3=void 0,a.O3=void 0,a.L3=void 0,a.ES=void 0,a.M3=void 0,a.B3=r,a.C3=r.Sw,a.O3=s,a.ES=o,a.D3=u,a.M3=new Cd(a.ES,a.D3,a.B3.x3),a}j(r,e);var s,o=r.prototype;return o.U3=function(e){var r=this.lp;this.P3=e,r!==this.lp&&this.yh(new Ch)},s=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f,l,p,v,d,y,g,m,w;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=[],h=[],c=r.Y$?_._o(r.Y$,this.C3):this.C3,void 0!==this.m0){e.next=10;break}return e.next=6,this.M3.iI(r.u0);case 6:this.m0=new Cv(r,this.C3,c,this.I3()),this.m0.kh(TM.c0,this.wh),e.next=11;break;case 10:this.m0.Ec(r,c,this.I3(),s);case 11:if(0===(f=this.m0.i0).length)l=this.y3.slice(),rv(this.y3);else{for(p=f[0].hw,v=0;v<this.y3.length&&this.y3[v].hw!==p;)v++;for(l=this.y3.splice(0,v),d=0;d<f.length;d++)y=f[d],g=void 0,d<this.y3.length?g=this.y3[d]:(g=new Cu(this,y),a.push(g)),h.push(g.Ec(this.O3,o))}return e.next=15,P.all(h);case 15:for((u=this.y3).push.apply(u,a),m=0,w=l;m<w.length;m++)w[m].Q2();this.yh(new Ca);case 18:case"end":return e.stop()}},e,this)})),o.Ec=function(e,r,o){return s.apply(this,arguments)},o.I3=function(){return this.M3.I3()},o.u3=function(e){var r=this.y3.indexOf(e);if(r>0)return this.y3[r-1]},o.r3=function(e){var r=this.y3.indexOf(e);if(r>=0&&r+1<this.y3.length)return this.y3[r+1]},o.g0=function(){return this.m0?this.m0.g0():void 0},o.I0=function(){return this.m0&&this.m0.I0()},o.V2=function(e){this.m0&&this.m0.V2(e)},o.Kl=function(){this.Th(),this.L3=void 0,this.U3(!1);for(var e=0,r=this.y3;e<r.length;e++)r[e].Kl();rv(this.y3),this.m0&&this.m0.rh()},M(r,[{key:"G$",get:function(){return this.m0&&this.m0.G$}},{key:"z$",get:function(){return this.m0&&this.m0.z$}},{key:"hw",get:function(){return this.m0&&this.m0.Fs.hw}},{key:"A3",get:function(){var e;
1return null==(e=this.m0)?void 0:e.A3}},{key:"F3",get:function(){var e;return null==(e=this.m0)?void 0:e.b3}},{key:"j$",get:function(){return this.m0?this.m0.j$.map(function(e){return e.href}):[this.H3]}},{key:"H3",get:function(){return this.C3.href}},{key:"Q$",get:function(){return this.m0&&this.m0.Fs.Q$}},{key:"Z$",get:function(){return this.m0&&this.m0.Fs.Z$}},{key:"K$",get:function(){return this.m0&&this.m0.Fs.K$}},{key:"J$",get:function(){return this.m0&&this.m0.Fs.J$}},{key:"n0",get:function(){var e,r,s=(null==(e=this.m0)||null==(r=e.Fs.n0)?void 0:r.EJ())||0;return b.max(s,Cm)}},{key:"lp",get:function(){return this.P3}},{key:"i0",get:function(){return this.y3}},{key:"X3",get:function(){return this.Ua===x3._N?this.Q0:this.V3}},{key:"W3",get:function(){var e=this.X3;if(void 0!==e)for(var r=0,s=this.i0;r<s.length;r++){var o=s[r];if(o.bC<=e&&o.EC>e)return o}}},{key:"f$",get:function(){return this.m0&&this.m0.Fs.f$}},{key:"r0",get:function(){return this.m0&&this.m0.r0}},{key:"s3",get:function(){for(var e=this.y3.length-1;e>=0;e-=1){var r=this.y3[e].s3;if(r)return r}}},{key:"Q0",get:function(){var e=this.s3;if(void 0!==e){var r=e-this.q3;return b.max(r,this.V3)}}},{key:"V3",get:function(){for(var e=0,r=this.y3;e<r.length;e++){var s=r[e]._0;if(void 0!==s)return s}}},{key:"Yl",get:function(){return!!this.B3.Yl}},{key:"q3",get:function(){var e=this.m0&&this.m0.Fs.e0;return e?e.TJ():this.Ua===x3._N?this.G3:0}},{key:"G3",get:function(){return this.B3.G3?this.B3.G3:1.5*this.J$.TJ()}},{key:"YJ",get:function(){return this.m0&&this.m0.YJ}},{key:"Ua",get:function(){return this.m0?this.m0.Ua:void 0}}]),r}(rB),Cg=function(){function e(e,r,s,o){this.z2=void 0,this.z2=new Cy(e,r,s,o)}return M(e,[{key:"E0",get:function(){return this.z2}}]),e}(),Cm=1e3,Cw=b.pow(2,31)-1,Cb=function(){function e(e,r,s,o){var u,a=this;this.z3=void 0,this.m0=void 0,this.j3=void 0,this.Y3=void 0,this.Q3=void 0,this.Z3=new rE,this.K3=(u=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s=a.m0.E0.I3(),e.next=4,a.J3(a.m0.E0.j$,r);case 4:return o=e.sent,e.next=7,a.m0.E0.Ec(o,s,r);case 7:e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(0),vG(e.t0)&&a.m0.E0.U3(!1),e.t0;case 13:case"end":return e.stop()}},e,null,[[0,9]])})),function(e){return u.apply(this,arguments)}),this.z3=o,this.m0=new Cg(e,r,s,this.Z3.dh)}var r,s,o,u,a,h,c=e.prototype;return r=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.m0.E0.yh(new kA),e.prev=1,e.next=4,x7(this.K3,r);case 4:this.m0.E0.U3(!0),e.next=13;break;case 7:throw e.prev=7,e.t0=e.catch(1),rC(e.t0),this.Y3=void 0,this.m0.E0.U3(!1),new y("The provided MPEG-DASH document could not be loaded - "+e.t0.message);case 13:this.j3=this.n4(this.Z3.dh);case 14:case"end":return e.stop()}},e,this,[[1,7]])})),c.q_=function(e){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0;case 1:if(this.m0.E0.Ua!==x3._N){e.next=6;break}return e.next=4,rR(this.i4,r);case 4:e.next=1;break;case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}},e,this,[[0,8]])})),c.n4=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(r),!((s=this.e4())>0)){e.next=6;break}return o=b.min(s,Cw),e.next=6,rU(o,r);case 6:return e.prev=6,e.next=9,x7(this.K3,r,1/0,Cm,3e4);case 9:this.m0.E0.U3(!0);case 10:return e.prev=10,this.Q3=void 0,e.finish(10);case 13:case"end":return e.stop()}},e,this,[[6,,10,13]])})),c.r4=function(e){return o.apply(this,arguments)},c.e4=function(){var e=this.m0.E0.I3().getTime()-this.m0.E0.A3.getTime();return this.m0.E0.n0-e},c.u4=function(e){var r=this.m0.E0.I0();if(r){var s=r.getTime()-e.getTime();if(s>0)return s}this.m0.E0.V2(e);var o=this.m0.E0.I0();return o?o.getTime()-e.getTime():NaN},u=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Q3||(this.Q3=this.r4(r)),(s=new rE).fh(r),e.prev=3,e.next=6,P.race([this.Q3,this.o4(s.dh)].filter(z));case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(3),rS(e.t0);case 11:return e.prev=11,s.hh(),e.finish(11);case 14:case"end":return e.stop()}},e,this,[[3,8,11,14]])}
1)),c.s4=function(e){return u.apply(this,arguments)},c.o4=function(e){var r=this.m0.E0.I3(),s=this.u4(r);if(!A(s))return this.a4(s,e)},a=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rU(r,s);case 2:o=this.m0.E0.I3(),this.m0.E0.V2(o);case 4:case"end":return e.stop()}},e,this)})),c.a4=function(e,r){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.z3.h4(r,{},s,!1);case 2:return o=e.sent,u=new TN,e.abrupt("return",u.s0(o.c4,o.Sl));case 5:case"end":return e.stop()}},e,this)})),c.J3=function(e,r){return h.apply(this,arguments)},c.Kl=function(){return this.Z3.hh(),this.j3=void 0,this.Y3=void 0,this.Q3=void 0,this.m0.E0.Kl(),P.resolve()},M(e,[{key:"f4",get:function(){return this.m0}},{key:"v4",get:function(){return this.Y3||(this.Y3=this.q_(this.Z3.dh),rN(this.Y3)),this.Y3}},{key:"i4",get:function(){return this.m0.E0.F3&&this.m0.E0.Ua===x3._N?this.s4(this.Z3.dh):this.v4}}]),e}(),Ck=function(e){function r(r,s){var o;return(o=e.call(this,"l4")||this).d4=r,o._4=s,o}return j(r,e),r}(rX),CE=function(e){function r(r,s){var o;(o=e.call(this)||this).g4=void 0,o.Wg=void 0,o.Xs=void 0,o.Xs=r,o.Wg=s;for(var u=0,a=o.Wg;u<a.length;u++)a[u].T$=t8(o);return o}j(r,e);var s=r.prototype;return s.lS=function(e){e&&this.g4!==e&&this.w4(e)},s._S=function(e){this.g4===e&&this.w4(void 0)},s.w4=function(e){this.g4=e,this.yh(new Ck(this,this.g4))},s.Kl=function(){this.Th();for(var e=0,r=this.Wg;e<r.length;e++)r[e].T$=void 0;rv(this.Wg)},M(r,[{key:"_4",get:function(){return this.g4}},{key:"Ua",get:function(){return this.Xs}},{key:"iT",get:function(){return this.Wg.slice()}}]),r}(rB),CA=function(e){function r(r,s){var o;return(o=e.call(this,cZ.Xg)||this).lw=void 0,o.yg=void 0,o.lw=r||[],o.yg=s,o}return j(r,e),r.prototype.wg=function(){return new Cx(this.lw.map(function(e){return e.gg}))},r}(c0),Cx=function(e){function r(r){var s;return(s=e.call(this,"targetqualitychanged")||this).quality=void 0,s.qualities=r,s.quality=s.qualities.length>0?s.qualities[0]:void 0,s}return j(r,e),r}(rX),CT=function(e){function r(r){var s;return(s=e.call(this,cZ.QUALITY_UNAVAILABLE)||this).quality=r,s}return j(r,e),r.prototype.wg=function(){return new CC(this.quality.gg)},r}(c1),CC=function(e){function r(r){var s;return(s=e.call(this,"qualityunavailable")||this).quality=r,s}return j(r,e),r}(c2),CS=function(e){function r(){return e.call(this,cZ.NO_QUALITY)||this}return j(r,e),r}(rX);function CR(e){return{QN:e.QN,Mo:e.e$,yT:CL(e)?e.yT:0,Ua:CL(e)?l4.Vl:l4.Xl,Lo:CL(e)?e.Lo:0}}function CL(e){return void 0!==e.yT&&void 0!==e.Lo}var C_,CP,CI=0,CN=function(e){function r(r,s,o,u){var a;void 0===u&&(u="alternative"),(a=e.call(this)||this).y4=void 0,a.k0=void 0,a.m4=void 0,a.Tp=!1,a._g=void 0,a.A4=void 0,a.pp="",a.bp=void 0,a.GV=void 0,a.Ap=void 0,a.zV=void 0,a.b4=!1,a.yp=new l8,a.T4=void 0,a.E4=void 0,a.S4=function(){return a.yh(new l7(t8(a)))},a.k0=r,a.m4=s,a.pp=String(CI++),a.bp=pt++,a.GV=u,a.zV=r.z0,a.Ap="",a.E4=r.Ua;for(var h=0;h<o.length;h++){var c=o[h];c.kh("update",a.S4),a.lw.Wy(c)}return a}j(r,e);var s=r.prototype;return s.I4=function(e){if(this.yp.kp(e)){e._S();var r=this.R4();if(this.T4&&rl(this.T4,e)){var s=this.T4.filter(function(e){return e.bK});0===s.length&&r.length>0?this._w=r:this._w=s}else this._w=r;this.yh(new CT(e))}},s.R4=function(){for(var e=[],r=0,s=this.yp.Qg;r<s.length;r++){var o=s[r];o.bK&&e.push(o)}return e},s.N4=function(e){this.y4=e.F0,this.yh(e)},s.Sp=function(e){this.Tp=e,this.A4&&(e?this.A4.lS(this):this.A4._S(this))},s.D4=function(e){this.Tp=e,this.b4!==e&&(this.b4=e,this.yh(new c7(this)))},s.Kl=function(){for(var e=0,r=this.yp.Qg;e<r.length;e++)r[e].Eh("update",this.S4)},M(r,[{key:"ow",get:function(){return this.y4}},{key:"B0",get:function(){return this.k0}},{key:"C4",get:function(){return this.m4}},{key:"aw",get:function(){return this.Tp},set:function(e){this.Sp(e)}},{key:"gg",get:function(){return this._g||(this._g=fg(this)),this._g}},{key:"T$",get:function(){return this.A4},set:function(e){this.A4=e}},{key:"hw",get:function(){return this.pp}},{key:"cw",get:function(){return this.bp}},{key:"fw",get:function(){return this.GV}},{key:"dw",get:function(){return this.zV}},{key:"vw",get:function(){return this.Ap},set:function(e){e!==this.Ap&&(this.Ap=e,this.yh(new l7(this)))}},{key:"Aw",get:function(){return this.aw?"enabled":"disabled"}},{key:"_w",get:function(){return this.T4},set:function(e){var r=this,s=[];if(e){var o=(null!=e?e:[]).filter(function(e){var s=r.ow?CR(r.ow):void 0;return _.oa.Eo(s,CR(e))});if(0===o.length)return;s=o.filter(function(e){return e.bK})}else s=this.R4();0===s.length&&this.yh(new CS),this.T4=e&&this.yp.kp(e)?e:void 0,this.yh(new CA(e,this))}},{key:"lw",get:function(){return this.yp}},{key:"O$",get:function(){return this.B0&&this.B0.O$}},{key:"P4",get:function(){return this.E4}}]),r}(rB);(CO=CP||(CP={}))[CO.uB=0]="uB",CO[CO.B4=1]="B4",CO[CO.O4=10]="O4",CO[CO.L4=11]="L4",CO[CO.M4=12]="M4",CO[CO.x4=13]="x4",CO[CO.U4=14]="U4",CO[CO.F4=15]="F4",CO[CO.H4=20]="H4",CO[CO.X4=21]="X4",CO[CO.V4=22]="V4",CO[CO.W4=23]="W4",CO[CO.q4=30]="q4",CO[CO.G4=31]="G4",CO[CO.z4=32]="z4",CO[CO.j4=33]="j4",CO[CO.Y4=34]="Y4",CO[CO.Q4=35]="Q4",CO[CO.Z4=40]="Z4",CO[CO.K4=41]="K4",CO[CO.J4=42]="J4",CO[CO.n5=43]="n5",CO[CO.i5=44]="i5",CO[CO.r5=50]="r5",CO[CO.e5=51]="e5",CO[CO.u5=60]="u5",CO[CO.s5=61]="s5",CO[CO.o5=62]="o5",CO[CO.a5=63]="a5",CO[CO.h5=70]="h5",CO[CO.c5=71]="c5",CO[CO.f5=72]="f5",CO[CO.v5=73]="v5",CO[CO.d5=74]="d5",CO[CO.l5=75]="l5",CO[CO._5=76]="_5",CO[CO.g5=77]="g5",CO[CO.
1w5=90]="w5",CO[CO.y5=91]="y5",(C_={})[CP.uB]="Failed because",C_[CP.B4]="Created",C_[CP.O4]="Starting because unknown reason",C_[CP.L4]="Starting because new track loading",C_[CP.M4]="Starting because manifest changed",C_[CP.x4]="Starting because seek",C_[CP.U4]="Starting because timeupdate",C_[CP.F4]="Starting because buffering is being resumed",C_[CP.H4]="Interrupting because unknown reason",C_[CP.X4]="Interrupting because segment has a gap",C_[CP.V4]="Interrupting because segment is missing",C_[CP.W4]="Interrupting because seeking",C_[CP.q4]="Pausing because unknown reason",C_[CP.G4]="Pausing because target buffer reached",C_[CP.z4]="Pausing because no target time",C_[CP.j4]="Pausing because no segment selected",C_[CP.Y4]="Pausing because end of stream is reached",C_[CP.Q4]="Pausing because initialization segment is missing",C_[CP.Z4]="Stopping because unknown reason",C_[CP.K4]="Stopping because manifest went offline",C_[CP.J4]="Stopping because seeking",C_[CP.n5]="Stopping because buffering is being paused",C_[CP.i5]="Stopping because unload",C_[CP.r5]="Resetting because unknown reason",C_[CP.e5]="Resetting because player was reset",C_[CP.a5]="Marking gap at",C_[CP.u5]="Target time is",C_[CP.h5]="[Selection 1] Select nothing if the target time has already been appended.",C_[CP.c5]="[Selection 2] Select nothing if the time-based lookup failed.",C_[CP.f5]="[Selection 3] If the segment has not been appended, select time-based lookup.",C_[CP.v5]="[Selection 4A] Select the first unappended segment that occurs before the segment.",C_[CP.d5]="[Selection 4B] Notify gap if no previous segment is available.",C_[CP.l5]="[Selection 5A] Select the first unappended segment that occurs after the segment.",C_[CP._5]="[Selection 5B] Select nothing if no next segment is available.",C_[CP.g5]="[Selection 6] Unreachable",C_[CP.s5]="Selected segment is",C_[CP.o5]="Appended segment is",C_[CP.w5]="Test setup",C_[CP.y5]="Test";var CO,CD,CU,CM=function(e){function r(r,s,o){var u;return(u=e.call(this,ul.Mh)||this).currentTime=r,u.initDataType=s,u.initData=o,u}return j(r,e),r}(rX);function CF(e,r,s,o){for(var u,a,h,c,f,l,p,v=[],d=[],y=0;y<r.length;y++){var g=r[y];g.Ua===l4.Xl?v=v.concat(g.iT):g.Ua===l4.Vl&&(d=d.concat(g.iT))}return[(u=e,a=v,h=s,Cj(a,[CH(c=ra(o||[],function(e){return e.P4===l4.Xl&&e.aw}),h,u),function(e){var r=c?c.dw:"",s=e.some(function(e){return""!==e.dw})?e.filter(function(e){return""!==e.dw}):e;if(""===r)return s;var o=ra(s,function(e){return e.dw===r});return o?[o]:s},CB()])),(f=e,l=d,p=s,Cj(l,[CH(ra(o||[],function(e){return e.P4===l4.Vl&&e.aw}),p,f),CB()]))].filter(z)}function Cj(e,r){if(0!==e.length){for(var s=e,o=0;o<r.length;o++){var u=r[o];if(1===s.length)break;s=u(e)}return s[0]}}function CH(e,r,s){return function(o){var u=e?e.B0.hw:void 0;if(!z(u))return o;var a=null==r?void 0:r.V$,h=s.V$,c=a&&h&&a.gs===h.gs,f=ra(o,function(e){return e.B0.hw===u});return c&&f?[f]:o}}function CB(){return function(e){for(var r=[],s=-1/0,o=0;o<e.length;o++){var u=e[o],a=u.B0.zD;a>s?(s=a,r=[u]):a===s&&r.push(u)}return r}}(Se=CD||(CD={})).k5="api",Se.m5="start",(Sn=CU||(CU={})).p5="A5",Sn.b5="T5";var CV=function(e){function r(r){var s;return(s=e.call(this,ul.Zf)||this).error=r,s}return j(r,e),r}(rX);function CX(e,r){var s,o;return s=e.Lo&&r.Lo,o=e.yT&&r.yT,(s||o?s&&o?e.Lo*e.yT-r.Lo*r.yT:s?e.Lo-r.Lo:o?e.yT-r.yT:(e.Lo||1)*(e.yT||1)-(r.Lo||1)*(r.yT||1):0)||e.QN-r.QN}var CW=function(){function e(e,r,s){this.E5=void 0,this.S5=void 0,this.Ho=void 0,this.S5=e,this.E5=r,this.Ho=s}var r=e.prototype;return r.I5=function(r,s,o,u){var a=e.sortByQuality(r),h=this.R5(a,s,o,u);return h.length?h[h.length-1]:a[0]},r.R5=function(r,s,o,u){for(var a=e.sortByQuality(r),h={N5:void 0===u||this.E5.D5?this.E5.N5:u,py:void 0!==o.py&&o.py?o.py:1,C5:o.Lo,P5:o.yT},c=a,f=0,l=this.S5;f<l.length;f++)c=(0,l[f])(c,s,h,this.Ho);return c},e.B5=function(r){return e.sortByQuality(r)[0]},e.sortByQuality=function(e){var r=[].concat(e);return r.sort(CX),r},e}(),Cq=function(){function e(e,r,s){void 0===s&&(s=3),this.ES=e,this.O5=r,this.L5=s}var r,s=e.prototype;return s.M5=function(e,r,s){return this.x5(e,r,!0,s)},s.U5=function(e,r,s){return this.x5(e,r,!1,s)},r=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c,f,l,p,v,d;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:h=100,c=0;case 2:if(!(c<this.L5)){e.next=31;break}if(!(c>0)){e.next=7;break}return e.next=6,rU(h,u);case 6:h<1e4&&(h=b.min(2*h,1e4));case 7:f=0;case 8:if(!(f<r.length)){e.next=28;break}return l=r[f],e.prev=10,p=new hP({Il:l,Al:up.Ku,yl:s,Yl:this.O5,ql:hk.GET,Ua:hE.Dl,zl:hA.Nl,dh:u}),e.next=14,this.ES.El(p);case 14:return v=e.sent,e.next=17,v.Qd(u);case 17:return d=e.sent,e.abrupt("return",{c4:d,F5:l,Sl:v.Sl});case 22:e.prev=22,e.t0=e.catch(10),a=e.t0;case 25:f++,e.next=8;break;case 28:c++,e.next=2;break;case 31:throw a;case 32:case"end":return e.stop()}},e,this,[[10,22]])})),s.x5=function(e,s,o,u){return r.apply(this,arguments)},e}(),CY=function(){var e;function r(e){this.H5=void 0,this.H5=e}return r.prototype.h4=(e=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:void 0===u&&(u=!1),h=0,c=this.H5;case 2:if(!(h<c.length)){e.next=17;break}return f=c[h],e.prev=4,e.next=7,f.h4(r,s,o,u);case 7:return e.abrupt("return",e.sent);case 10:e.prev=10,e.t0=e.catch(4),rC(e.t0),a=e.t0;case 14:h++,e.next=2;break;case 17:throw a;case 18:case"end":return e.stop()}},e,this,[[4,10]])})),function(r,s,o){return e.apply(this,arguments)}),r}(),C$=function(){var e;function r(e){this.X5=e}return r.prototype.h4=(e=P.coroutine(iO.mark(function e(r,s,o,u){var a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.X5.XK(r);case 2:if(!(a=e.sent)){e.next=7;break}return e.abrupt("return",{c4:a.data,F5:a.locationURL,Sl:a.responseURL});case 7:throw new y("Manifest fetch from cache unsuccesful");case 8:case"end":return e.stop()}},e,this)})),function(r,s,o,u){return e.apply(this,arguments)}),r}(),CJ=function(){var e;function r(e){this.V5=e}return r.prototype.h4=(e=P.coroutine(iO.mark(function e(r,s,o,u){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===u&&(u=!1),!u){e.next=7;break}return e.next=4,this.V5.M5(r,s,o);case 4:case 9:return e.abrupt("return",e.sent);case 7:return e.next=9,this.V5.U5(r,s,o);case 10:case"end":return e.stop()}},e,this)})),function(r,s,o){return e.apply(this,arguments)}),r}();function CQ(e,r){return new CY([new C$(r),new CJ(e)])}var CG=function(e){function r(){return e.call(this,ul.Jf)||this}return j(r,e),r}(rX),CK=function(e){function r(){return e.call(this,ul.Kf)||this}return j(r,e),r}(rX),Cz=function(e){function r(){return e.call(this)||this}j(r,e);var s=r.prototype;return s.W5=function(e){return e.bw=ps.LOADED,this.Gg(e),e},s.q5=function(e){for(var r=0,s=this.iT.Qg;r<s.length;r++){var o=s[r];if(o.pw===e)return o}},r}(vW),CZ=function(e){function r(r,s,o,u,a){var h;
1return(h=e.call(this,r,s,o,!1,null==a?void 0:a.toString())||this).xs=void 0,h.G5=void 0,h.xs=u,h.G5=a,h}return j(r,e),r.prototype.xy=function(r){return this===r||fo(this,r)&&e.prototype.xy.call(this,r)&&this.Fp===r.Fp},M(r,[{key:"gg",get:function(){var e;return this._g||(this._g=fi(pT(e=this),{get attributes(){return e.xs},get eventID(){var r;return""+(null!=(r=e.G5)?r:"")}})),this._g}}]),r}(pL),C0=function(e){function r(r){var s;return(s=e.call(this)||this).TS=void 0,s.f3=void 0,s.z5=function(){var e,r,o=null!=(e=null==(r=s.f3.g0())?void 0:r.bC)?e:0;if(o>0)for(var u=0,a=s.iT.Qg;u<a.length;u++)v8(a[u],o);for(var h=0,c=s.f3.i0;h<c.length;h++){var f=c[h];if(f.EC>o)for(var l=0,p=f.W$;l<p.length;l++){var v=p[l];s.j5(v,f,o)}}},s.TS=r,s}j(r,e);var s,o,u=r.prototype;return u.Y5=function(e){var r=this.TS.RS(vV.cb,"","","",void 0,po.EVENT_STREAM);return r.pw=e,this.W5(r),r},u.j5=function(e,r,s){var o,u,a,h=e.OJ,c=null!=(o=e.gs)?o:"",f=null!=(u=e.Pk)?u:1,l=null!=(a=e.zJ)?a:tx.ZERO,p=h+" "+c,v=this.q5(p);v||(v=this.Y5(p));for(var d=0,y=e.HO;d<y.length;d++){var g=y[d];if(!function(e,r){var s=e.hw;return!!(void 0!==s&&ra(r.Tw.Qg,function(e){return e.G5===s}))}(g,v)){var m=function(e,r,s,o){var u=e.hw,a=e.FE.toSigned().subtract(s),h=e.ly,c=e.Fs,f=e.xs,l=a.toNumber()/r+o.bC,p=h?h.toNumber()/r:void 0,v=void 0!==p?l+p:o.o3;return new CZ(l,v,c,f,u)}(g,f,l,r);m.Up>s&&v.DS(m)}}},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Yg();case 2:this.f3=r,this.f3.kh(ul.Qf,this.z5),this.z5();case 5:case"end":return e.stop()}},e,this)})),u.bc=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function r(){var s,o,u;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(this.f3&&(this.f3.Eh(ul.Qf,this.z5),this.f3=void 0),s=0,o=this.iT.Qg;s<o.length;s++)u=o[s],this.TS.CS(u);return r.next=4,e.prototype.Yg.call(this);case 4:case"end":return r.stop()}},r,this)})),u.Yg=function(){return o.apply(this,arguments)},r}(Cz);function C1(e,r,s,o){var u=[],a=ra(s,function(e){return e.OJ===iY});if(void 0!==a){var h=a.gs?function(e){var r=e.split(":",1)[0];switch(r){case"cbcs":case"cenc":return r;default:return}}(a.gs.toLowerCase()):"cenc";if(void 0!==h){for(var c=0;c<s.length;c++){var f=s[c];if(f.OJ!==iY)for(var l=0,p=i7(f.OJ);l<p.length;l++){var v=p[l];u.push({Hc:v,aI:f.BJ?[f.BJ]:[],df:void 0})}}if(u.length)return{XI:e,aN:{hN:h,WI:a.WI},oI:u,vN:r===l4.Xl?o.slice():[],dN:r===l4.Vl?o.slice():[],uI:!1}}}}function C2(e,r){if(!e)return r;if(!r)return e;var s,o=[],u=iM();return C3(o,u,e.oI),C3(o,u,r.oI),{XI:e.XI,aN:{hN:e.aN.hN,WI:null!=(s=e.aN.WI)?s:r.aN.hN},oI:o,vN:C5(e.vN,r.vN,rl),dN:C5(e.dN,r.dN,rl),uI:e.uI||r.uI||!1}}function C3(e,r,s){for(var o=0;o<s.length;o++){var u=s[o],a=u.Hc.Va,h=void 0;r.has(a)?(h=r.get(a)).aI=C5(h.aI,u.aI,C4):(h=iD({},u),e.push(h),r.set(a,h))}}function C5(e,r,s){for(var o=e.slice(),u=0;u<r.length;u++){var a=r[u];s(o,a)||o.push(a)}return o}function C4(e,r){for(var s=0;s<e.length;s++)if(r8(e[s],r))return!0;return!1}var C6=function(e){function r(r){(s=e.call(this)||this).TS=void 0,s.W0=[],s.Q5=void 0,s.f3=void 0,s.Ec=function(){for(var e=[],r=0,o=s.f3.i0;r<o.length;r++)for(var u=0,a=o[r].X$;u<a.length;u++){var h=a[u];if(h.Ua===l4.Wl&&h.O$.length>0){var c=h.O$[0];e.push(c),s.Z5(c)||s.Y5(c),-1===s.W0.indexOf(c)&&(s.W0.push(c),c.kh(TM.c0,s.Q5)),s.K5(c)}}s.J5(e)},s.K5=function(e){var r=s.n6(e);r&&e&&r.Aw!==fk.gw&&(s.i6(),function(e,r){var s=e.ZJ,o=e.S0();if(o)for(var u=o.v1,a=o.l1,h=e.Lo,c=e.yT,f=function(e){for(var r=0;r<e.length;r++){var s=e[r];if(nY(s.OJ,C7)||nY(s.OJ,C9)){var o=s.gs.match(C8);if(o){var u=o[1],a=o[2];return[Number(u),Number(a)]}}}return[1,1]}(e.o$),l=f[0],p=f[1],v=u;v&&v.UJ<=a.UJ;){for(var d=e.H0.ly||v.ly,y=e.b0(v).Il,g=function(e,r,s,o,u,a,h,c){var f=[],l=r.xp,p=a*h,v=o/a,d=u/h,y=c/p;if(1===p){var g=l+y;return St(e,l,g,s)?f:[new pL(l,g,s,!1)]}for(var m=0;m<h;m++)for(var w=0;w<a;w++){var b=l+(m*a+w)*y,k=b+y,E=s+"#xywh="+w*v+","+m*d+","+v+","+d;if(St(e,b,k,E)||f.push(new pL(b,k,E,!1)),k>=r.Up)return f}return f}(r,v,y,h,c,l,p,d),m=0;m<g.length;m++){var w=g[m];r.DS(w)}v=s.g1(v)}}(e,r))},s.TS=r;var s,o=t8(s);return s.Q5=function(){o.K5(this)},s}j(r,e);var s,o,u=r.prototype;return u.Y5=function(e){var r=this.TS.RS(vV.cb,e.hw,"thumbnails","",!1,po.DEFAULT);return r.Aw=fk.yw,this.W5(r),r},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Yg();case 2:this.f3=r,this.f3.kh(ul.Qf,this.Ec),this.Ec();case 5:case"end":return e.stop()}},e,this)})),u.bc=function(e){return s.apply(this,arguments)},u.J5=function(e){this.r6(e),this.e6()}
1,u.e6=function(){for(var e=[],r=0,s=this.iT.Qg;r<s.length;r++){var o=s[r];this.u6(o)||e.push(o)}for(var u=0;u<e.length;u++){var a=e[u];this.zg(a)}},u.r6=function(e){for(var r=[],s=0,o=this.W0;s<o.length;s++){var u=o[s];-1===e.indexOf(u)&&r.push(u)}for(var a=0;a<r.length;a++){var h=r[a];rc(this.W0,h)}},o=P.coroutine(iO.mark(function r(){var s,o,u,a,h;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(this.f3&&(this.f3.Eh(ul.Qf,this.Ec),this.f3=void 0),s=0,o=this.W0;s<o.length;s++)o[s].Eh(TM.c0,this.Q5);for(this.W0.length=0,u=0,a=this.iT.Qg;u<a.length;u++)h=a[u],this.TS.CS(h);return r.next=6,e.prototype.Yg.call(this);case 6:case"end":return r.stop()}},r,this)})),u.Yg=function(){return o.apply(this,arguments)},u.Kl=function(){return this.Q5=void 0,e.prototype.Kl.call(this)},u.i6=function(){var e,r,s=null!=(e=null==(r=this.f3.g0())?void 0:r.bC)?e:0;if(s>0)for(var o=0,u=this.iT.Qg;o<u.length;o++)v8(u[o],s)},u.Z5=function(e){return this.iT.Qg.some(function(r){return r.hw===e.hw})},u.n6=function(e){return ra(this.iT.Qg,function(r){return r.hw===e.hw})},u.u6=function(e){return this.W0.some(function(r){return e.hw===r.hw})},r}(Cz),C8=/^(\d+)x(\d+)$/,C7="http://dashif.org/guidelines/thumbnail_tile",C9="http://dashif.org/thumbnail_tile";function St(e,r,s,o){return e.Tw.Qg.some(function(e){return e.xp===r&&e.Up===s&&e.Fp===o})}var Se,Sn,Si,Sr,Ss=function(e){function r(r,s,o,u,a,h){var c;return(c=e.call(this,r,s,h,!1)||this).s6=void 0,c.Qn=void 0,c.o6=void 0,c.s6=o,c.Qn=u,c.o6=a,c}return j(r,e),r.prototype.xy=function(r){return this===r||fo(this,r)&&e.prototype.xy.call(this,r)&&fs(this.Fp,r.Fp)},M(r,[{key:"UE",get:function(){return this.s6}},{key:"gs",get:function(){return this.Qn}},{key:"a6",get:function(){return this.o6}},{key:"gg",get:function(){var e;return this._g||(this._g=fi(pT(e=this),{get schemeIDURI(){return e.UE},get value(){return e.gs},get emsgID(){return e.a6}})),this._g}}]),r}(pL),So=function(e){function r(r){var s;return(s=e.call(this)||this).TS=void 0,s.f3=void 0,s.z5=function(){var e,r,o=null!=(e=null==(r=s.f3.g0())?void 0:r.bC)?e:0;if(o>0)for(var u=0,a=s.iT.Qg;u<a.length;u++)v8(a[u],o)},s.TS=r,s}j(r,e);var s,o,u=r.prototype;return u.h6=function(e,s,o){var u=vw.Wb(new DataView(e));if(u){var a=vl(u,pG.$A);if(a.length){var h=r.c6(u,s,o);this.f6(a,h,o)}}},u.f6=function(e,r,s){for(var o=0;o<e.length;o++){var u=e[o],a=this.q5(u.UE+" "+u.gs);a||(a=this.Y5(u.UE+" "+u.gs),this.W5(a));var h=void 0,c=(h=1===u.Xb?u.FE.toNumber()/u.Pk-s:r+u.VE/u.Pk)+u.HE/u.Pk;a.DS(new Ss(h,c,u.UE,u.gs,u.hw,u.XE))}},r.c6=function(e,r,s){var o=vf(e,pG.ib);return o?t5(o.tS,o.Pk)-s:r},u.Y5=function(e){var r=this.TS.RS(vV.cb,"","","",void 0,po.EMSG);return r.pw=e,r.Aw=fk.ww,r},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Yg();case 2:this.f3=r,this.f3.kh(ul.Qf,this.z5),this.z5();case 5:case"end":return e.stop()}},e,this)})),u.bc=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function r(){var s,o,u;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(this.f3&&(this.f3.Eh(ul.Qf,this.z5),this.f3=void 0),s=0,o=this.iT.Qg;s<o.length;s++)u=o[s],this.TS.CS(u);return r.next=4,e.prototype.Yg.call(this);case 4:case"end":return r.stop()}},r,this)})),u.Yg=function(){return o.apply(this,arguments)},r}(Cz),Su=[ul.rv,ul.uv,ul.vv,ul.Zf,ul._v],Sa=[ul.ev,ul.ov,ul.bv],Sh=function(r){function s(s,o,u,a,h,c,f){var l;return(l=r.call(this)||this).ES=void 0,l.pP=void 0,l.X5=void 0,l.JR=void 0,l.rD=void 0,l.v6=void 0,l.d6=void 0,l.l6=!1,l._6=NaN,l.JN=void 0,l.$N=void 0,l.rG=!1,l.g6=void 0,l.zq=void 0,l.w6=!1,l.y6=!1,l.SS=new rE,l.k6=new sG,l.m6=!1,l.m0=void 0,l.p6=void 0,l.P3=!0,l.A6=!0,l.b6=void 0,l.Jq=mo.aP(),l.tD=g7.cC,l.T6=void 0,l.wN=!0,l.E6=void 0,l.S6=void 0,l.gP=!1,l.gC=!0,l.I6=new rE,l.R6=P.resolve(),l.Zq=new rE,l.Qq=P.resolve(),l.N6=!1,l.D6=new rE,l.C6=P.resolve(),l.P6=void 0,l.Sm=void 0,l.Im=void 0,l.Rm=void 0,l.B6=void 0,l.O6=void 0,l.TS=void 0,l.L6=void 0,l.M6=void 0,l.x6=void 0,l.U6=void 0,l.F6=0,l.H6=0,l.X6=0,l.uD=new gz,l.V6=function(){l.I6.hh(),l.Zq.hh(),l.D6.hh(),l.D6=new rE,l.C6=l.W6(l.R6,l.Qq,l.C6,l.D6.dh).catch(l.q6)},l.oD=function(){l.yh(new lh(l.vy,l.ep))},l.nN=function(e){l.yh(new CM(l.vy,e.Ha,e.Xh))},l.G6=function(e){l.F6+=e.vp,l.yh(e)},l.z6=function(e){var r=e.segments.filter(function(e){return e.j6});e.track===l4.Xl?l.H6=r.length:e.track===l4.Vl&&(l.X6=r.length)},l.SG=function(){var e=l.ly;A(e)||e===l._6||(l._6=e,l.yh(new lu(l._6)))},l.Y6=function(){l.Q6()},l.DG=function(e){l._y&&l.yh(e)},l.Z6=function(e){l.wh(e),l.y6||(l.y6=!0,l.yh(new lo(l.vy,l.bw)))},l.K6=function(){l.m0.E0.Eh(ul.Yf,l.K6),l.yh(new kA)},l.rN=function(e){l.J6(e.errorObject),l.yh(e)},l.t8=function(e){l.J6(e.errorObject)},l.q6=function(r){rx(r)||l.J6(new om(e.ErrorCode.MEDIA_DECODE_ERROR,r.message,r))},l.n8=function(){if(l.i8&&!l.yy){var e=l.m0.E0.X3;l.$h(e)}},l.r8=function(e){l.w6=l.Ay,l.yh(e)},l.e8=function(e){var r=l.w6,s=l.Ay;l.w6=s,r&&!s&&l.yh(e)},l.u8=function(){l.rG||l.b6&&(l.b6.uc(),l.b6=void 0)},l.s8=function(e){l.rG||l.b6&&(l.b6.ac(e),l.b6=void 0)},l.o8=function(){var e,r,s=l.m0.E0.lp;(l.U3(s),s)?l.V6():(null==(e=l.v6)||e.a8(CP.K4),null==(r=l.d6)||r.a8(CP.K4),l.h8(),l.c8(),l.D6.hh())},l.ES=s,l.pP=u,l.X5=a,l.JR=h,l.rD=c,l.Sm=new fA,l.Im=new fA,l.U6=f,l.JR.kh(ul.Wf,l.SG),l.JR.kh(rH.Mh,l.nN),l.JR.kh(ul.Gf,l.DG),l.JR.kh(ul.fv,l.r8),l.JR.kh(ul.hv,l.e8),l.JR.kh(ul.Av,l.oD),l.JR.kh([ul.tv,ul.$f],l.Y6),l.JR.kh(Sa,l.wh),l.rD.kh(ul.Hf,l.wh),l.rD.kh(ul.Ff,l.rN),l.rD.kh(fE.mw,l.t8),l.B6=new fL,l.O6=new fL,l.TS=l.f8(),l.M6=new C0(l.TS),l.x6=new C6(l.TS),l.L6=new So(l.TS),l.Rm=new Ea([l.B6,l.M6.iT,l.x6.iT,l.L6.iT]),l}j(s,r);var o,u,a,h,c,f,l,p,v,d,g,m,w,k,E,x,T=s.prototype;return o=P.coroutine(iO.mark(function e(r,s,o,u){var a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.d8(this.ES,this.pP,this.X5,this.rD,this.E6,r,u);case 2:return(a=e.sent).kh(TM.v0,this.n8),a.kh(ul.Zf,this.wh),e.next=7,a.iI(s,o);case 7:return e.abrupt("return",a);case 8:case"end":return e.stop()}},e,this)})),T.v8=function(e,r,s,u){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r,s,o,u){return iO.wrap(function(e){for(;;
1)switch(e.prev=e.next){case 0:return e.prev=1,e.next=5,P.all([r,s,o]);case 5:return rT(u),e.next=9,rR(this.k6.ec,u);case 9:return e.next=12,this.v6.a8();case 12:return rT(u),e.next=15,this.v6.bc(u);case 15:return rT(u),e.next=18,this.v6.l8(CP.L4);case 18:rT(u),this.Ay?this.$h(this.vy):this._8(),e.next=28;break;case 22:if(e.prev=22,e.t0=e.catch(1),!rx(e.t0)){e.next=27;break}return e.abrupt("return");case 27:case 28:case"end":return e.stop()}},e,this,[[1,22]])})),T.W6=function(e,r,s,o){return u.apply(this,arguments)},T.g8=function(){var e,r,s=this.w8;return 0===s.Zg||(null!=(e=null==(r=this.OD)?void 0:r.EC)?e:this.y8)>=s.bC(0)},T.k8=function(e){this.Jq=this.Jq.qC(e)},T.m8=function(e){e.kh(Su,this.wh),e.kh(ul.yv,this.G6),e.kh(ul.xf,this.z6),e.kh(fE.mw,this.t8),e.kh(ul.Ff,this.rN),e.kh("l4",this.V6)},T.p8=function(e){e.Eh(Su,this.wh),e.Eh(ul.yv,this.G6),e.Eh(ul.xf,this.z6),e.Eh(fE.mw,this.t8),e.Eh(ul.Ff,this.rN),e.Eh("l4",this.V6)},T.A8=function(e){e.kh(ul.rv,this.wh)},T.b8=function(e){e.Eh(ul.rv,this.wh)},a=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f,l;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:rT(s),e.prev=1,o=this.m0.E0.W3,u=this.m0.E0.X3,e.next=9;break;case 6:throw e.prev=6,e.t0=e.catch(1),new y("Something went wrong determining the start of the provided MPEG-DASH stream");case 9:if(o){e.next=11;break}throw new y("Something went wrong determining the initial Period of the provided MPEG-DASH stream");case 11:if(void 0!==u){e.next=13;break}throw new y("Something went wrong determining the start time of the provided MPEG-DASH stream");case 13:return r.textTracks&&this.T8(r.textTracks),this.KG(),a=this.E8(o),h=CF(o,a,void 0,void 0),c=this.S8(o,h,o,h,!0),h.forEach(function(e){return e.aw=!0}),f=this.I8(h),e.next=22,this.iV(f);case 22:return this.P6=f,rT(s),e.next=26,this.v8(o,a,h,c);case 26:return l=e.sent,rT(s),this.R8(l),this.rz(),rT(s),e.next=33,l.l8();case 33:rT(s),this.N6||this.$h(u,CD.m5);case 35:case"end":return e.stop()}},e,this,[[1,6]])})),T.bc=function(e,r){return a.apply(this,arguments)},T._8=function(){this.I6.hh(),this.I6=new rE,this.R6=this.N8(this.R6,this.C6,this.I6.dh).catch(this.q6)},T.h8=function(){this.I6.hh()},h=P.coroutine(iO.mark(function e(r,s,o){var u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P.all([r,s]);case 2:rT(o);case 4:if(a=null==(u=this.v6)?void 0:u.uC){e.next=9;break}return e.abrupt("break",17);case 9:return e.next=11,this.D8(a,o);case 11:if(e.sent){e.next=15;break}return e.abrupt("break",17);case 15:e.next=4;break;case 17:case"end":return e.stop()}},e,this)})),T.N8=function(e,r,s){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:rT(s),o=this.v6;case 3:if(this.m0.E0.Ua!==x3._N||r.i3&&void 0!==r.i3._0){e.next=10;break}return e.next=6,rR(this.p6.i4,s);case 6:return e.next=8,this.C8();case 8:e.next=3;break;case 10:return rT(s),e.next=13,this.C8();case 13:rT(s);case 15:if(o.P8()){e.next=22;break}return e.next=18,o.Nh(CU.p5,s);case 18:return e.next=20,this.C8();case 20:e.next=15;break;case 22:return rT(s),e.next=25,this.C8();case 25:if(rT(s),u=r.i3){e.next=31;break}return this.bH(),e.abrupt("return",!1);case 31:if(!this.B8(u)){e.next=36;break}return e.next=34,this.O8(u,s);case 34:e.next=38;break;case 36:return e.next=38,this.L8(u,s);case 38:return e.abrupt("return",!0);case 39:case"end":return e.stop()}},e,this)})),T.D8=function(e,r){return c.apply(this,arguments)},T.B8=function(e){var r,s,o,u=null!=(r=null==(s=this.E6)||null==(o=s.dash)?void 0:o.useSeamlessPeriodSwitch)?r:m8.hC;if(u===m8.XB)return!0;if(u===m8.VB)return!1;var a=this.v6,h=null==a?void 0:a.uC,c=null==a?void 0:a.M8,f=CF(e,this.E8(e),h,c),l=this.I8(f);if(!this.x8(l))return!1;var p=this.S8(e,f,h,c);return!!this.U8(p)},T.U8=function(e){var r=this.rD.Hc;if(void 0===r){if(void 0!==e)return!1}else if(void 0===e){if(!this.F8())return!1}else if(e.oI.length>0&&!ra(e.oI,function(e){return e.Hc===r}))return!1;return!0},T.F8=function(){return!1},f=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f,l,p,v;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.v6,u=this.d6,a=this.P6,e.prev=3,rT(s),h=o.u
1C,c=o.M8,f=this.E8(r),l=CF(r,f,h,c),p=this.S8(r,l,h,c),l.forEach(function(e){return e.aw=!0}),v=this.I8(l),e.next=15,o.a8();case 15:if(rT(s),u&&u.uC===r){e.next=32;break}if(!u){e.next=20;break}return e.next=20,u.Kl(!0);case 20:if(!this.x8(v)){e.next=24;break}return e.next=24,this.H8(v);case 24:return this.P6=v,e.next=28,this.v8(r,f,l,p);case 28:u=e.sent,this.d6=u,this.A8(u),this.O6.ew=u.Om;case 32:return e.next=34,u.l8();case 34:rT(s);case 36:if(!(this.y8<r.bC)){e.next=41;break}return e.next=39,this.JR.Nh(ul.Av,s);case 39:e.next=36;break;case 41:rT(s),this.R8(u),e.next=58;break;case 46:if(e.prev=46,e.t0=e.catch(3),!rx(e.t0)){e.next=57;break}if(!u){e.next=52;break}return e.next=52,u.a8();case 52:if(!a||this.P6===a){e.next=57;break}if(!this.x8(a)){e.next=56;break}return e.next=56,this.H8(a);case 56:this.P6=a;case 57:throw e.t0;case 58:case"end":return e.stop()}},e,this,[[3,46]])})),T.O8=function(e,r){return f.apply(this,arguments)},l=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f,l,p,v;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(s),e.next=4,this.v6.a8();case 4:this.bH();case 6:if(this.JR._y||!(this.y8<r.bC)){e.next=11;break}return e.next=9,this.JR.Nh([ul.Av,ul.Gf],s);case 9:e.next=6;break;case 11:if(rT(s),o=this.v6.uC,u=this.v6.M8,a=this.E8(r),h=CF(r,a,o,u),c=this.S8(r,h,o,u),h.forEach(function(e){return e.aw=!0}),f=this.I8(h),!this.v6){e.next=23;break}return e.next=22,this.v6.Kl();case 22:this.v6=void 0;case 23:if(!this.d6){e.next=27;break}return e.next=26,this.d6.Kl();case 26:this.d6=void 0;case 27:return this.X8(),this.KG(),l=b.max(this.y8,r.bC),e.next=33,this.V8();case 33:return e.next=35,this.iV(f);case 35:return this.P6=f,e.next=39,this.v8(r,a,h,c);case 39:return p=e.sent,this.R8(p),e.prev=41,v=this.W8(l,s),e.next=45,p.l8();case 45:return e.next=47,v;case 47:return e.prev=47,this.rz(),this.q8(),e.finish(47);case 51:case"end":return e.stop()}},e,this,[[41,,47,51]])})),T.L8=function(e,r){return l.apply(this,arguments)},p=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.d6){e.next=3;break}return e.abrupt("return");case 3:if(!r.uC.d0){e.next=9;break}return e.next=7,r.Kl(!0);case 7:this.d6=void 0;case 9:case"end":return e.stop()}},e,this)})),T.C8=function(){return p.apply(this,arguments)},s.Y5=function(e,r,s){if(rl(e.X$,r)){var o=r.O$.map(function(e){return e.F0});return new CN(r,e,o,s)}},s.G8=function(e){for(var r=[],o=0,u=e.X$;o<u.length;o++){var a=u[o],h=0===r.length?"main":"alternative",c=s.Y5(e,a,h);c&&r.push(c)}if(0===r.length)throw new y("No valid tracks found in AdaptationSet group "+e.hw);return new CE(e.Ua,r)},T.E8=function(e){for(var r=[],o=0,u=e.n3;o<u.length;o++){var a=u[o];a.Ua!==l4.Xl&&a.Ua!==l4.Vl||(a.O$&&0!==a.O$.length?r.push(s.G8(a)):this.yh(new CV("No supported representation found in the AdaptationSet with mimetype : "+a.Ua)))}return r},T.I8=function(e){var r=e.map(function(e){return CW.B5(e.O$)}).map(function(e){return{$d:e.$d}});return{Ua:gp._N,gV:r,ED:[]}},s.z8=function(e,r){var s=function(e){var s=r.indexOf(e.Hc.Va);return s>=0?s:r.length};return rr(e,function(e,r){return s(e)-s(r)})},s.j8=function(e,r){if(e.length){for(var o,u=0;u<e.length;u++)o=C2(o,function(e,r){var s,o,u=e.s$;if(u){for(var a=e.FO,h=[],c=0,f=e.e$;c<f.length;c++){var l=f[c];h.push(a+'; codecs="'+l+'"')}o=C1(r||{},e.Ua,u,h)}for(var p=0,v=e.O$;p<v.length;p++){o=C2(o,(s=v[p],C1(r||{},s.Ua,s.s$||[],[s.$d])))}return o}(e[u].B0,r));return null!=r&&r.preferredKeySystems&&o&&(o.oI=s.z8(o.oI,r.preferredKeySystems)),o}},T.S8=function(e,r,o,u,a){var h,c,f,l=this.E6.contentProtection,p=s.j8(r,l);if(void 0!==p)return p;var v=null!=(h=null==(c=this.E6)||null==(f=c.dash)?void 0:f.useSeamlessPeriodSwitch)?h:m8.hC;if(v!==m8.VB&&(v!==m8.hC||a||this.F8()))for(var d=e.i3;void 0!==d;){var y=CF(d,this.E8(d),o,u),g=this.I8(y);if(p=s.j8(y,l),!(a||v!==m8.hC||this.x8(g)&&this.U8(p)))return;if(void 0!==p)return p.uI=!0,p;d=d.i3}},T.xm=function(){this.yy||(this.A6=!0,this.rG||(this.s8(new rA),this.Y8()),this.Q6())},T.Mm=function(){this.b6||(this.b6=new sG),this.Q8();var e=this.b6.ec;return rN(e),e},T.Q8=function(){if(this.A6=!1,this.l6=!0,this.Z8(),this._y){var e=this.w8;e.Zg>0&&this.$h(e.bC(0))}if(this.i8){var r=this.m0.E0.X3;this.$h(r)}if(!this.g8()){var s=this.m0.E0.X3;this.$h(s)}this.rG||this.zG().then(this.u8,this.s8),this.Q6()},T.KG=function(){this.rG||(this.A6=this.yy,this.rG=!0,this.Y8())},T.rz=function(){this.rG&&(this.rG=!1,this.A6||this.zG().then(this.u8,this.s8),this.Q6())},T.Q6=function(){var e=this.wN,r=this.yy;
1e!==r&&(this.wN=r,r?this.yh(new lt(this.vy)):this.yh(new le(this.vy)))},T.$h=function(e,r){return void 0===r&&(r=CD.k5),this.N6=!0,this.I6.hh(),this.Zq.hh(),this.gP=!0,this.zq=e,this.k8(this.K8),this.r8(new ll(this.vy)),this.Zq=new rE,this.Qq=this.ZG(e,this.R6,this.Qq,this.C6,this.Zq.dh,r).catch(this.q6),this.Qq},T.c8=function(){this.Zq.hh()},v=P.coroutine(iO.mark(function e(r,s,o,u,a,h){var c,f,l,p,v,d,y,g,m,w,b,k,E;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===h&&(h=CD.k5),e.prev=3,e.next=7,P.all([s,o,u]);case 7:return rT(a),e.next=11,rR(this.k6.ec,a);case 11:if(c=this.w8.LC(r),this.zq=c,f=this.J8(c),!(l=this.v6)||!l.wp.HD(c)&&h!==CD.m5&&l.uC!==f){e.next=28;break}if(!(p=this.d6)||p.t9){e.next=26;break}return e.next=21,p.a8();case 21:if(v=this.I8(l.n9),!this.x8(v)){e.next=25;break}return e.next=25,this.H8(v);case 25:this.P6=v;case 26:e.next=72;break;case 28:if(!f){e.next=72;break}if(d=this.d6,this.KG(),!l){e.next=35;break}return e.next=35,l.a8();case 35:if(d&&d.uC===f){e.next=67;break}if(!d){e.next=39;break}return e.next=39,d.Kl(!0);case 39:if(y=this.E8(f),g=null==l?void 0:l.uC,m=null==l?void 0:l.M8,w=CF(f,y,g,m),b=this.S8(f,w,g,m),w.forEach(function(e){return e.aw=!0}),k=this.I8(w),!this.B8(f)){e.next=52;break}if(!this.x8(k)){e.next=50;break}return e.next=50,this.H8(k);case 50:e.next=60;break;case 52:if(!l){e.next=56;break}return e.next=55,l.Kl();case 55:this.v6=void 0;case 56:return e.next=58,this.V8();case 58:return e.next=60,this.iV(k);case 60:return this.P6=k,e.next=63,this.v8(f,y,w,b);case 63:d=e.sent,this.d6=d,this.O6.ew=d.Om,this.A8(d);case 67:return e.next=69,d.l8(CP.x4);case 69:this.R8(d),e.next=72;break;case 72:return E=this.W8(r,a),this.zq=void 0,e.next=77,this.v6.l8(CP.x4);case 77:return rT(a),this._8(),e.next=81,E;case 81:rT(a),this.rz(),this.gP=!1,this.e8(new lp(this.vy)),e.next=94;break;case 88:if(e.prev=88,e.t0=e.catch(3),!rx(e.t0)){e.next=93;break}return e.abrupt("return");case 93:case 94:case"end":return e.stop()}},e,this,[[3,88]])})),T.ZG=function(e,r,s,o,u){return v.apply(this,arguments)},d=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f,l=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=!0,u=r;case 2:if((c=this.w8).Zg>0&&(f=c.LC(r),u!==f&&(c.HD(u)&&this.m0.E0.Ua===x3._N||(u=f,o=!0))),!o){e.next=13;break}o=!1,a&&(h.hh(),rN(a)),(h=new rE).fh(s),a=this.i9(u,h.dh),e.next=15;break;case 13:if(this.r9){e.next=15;break}return e.abrupt("break",19);case 15:return e.next=17,r_(function(e){return P.race([a,l.Nh([ul.vv,ul.Wf],e),l.m0.E0.Nh(TM.c0,e)])},s);case 17:e.next=2;break;case 19:case"end":return e.stop()}},e,this)})),T.W8=function(e,r){return d.apply(this,arguments)},T.X8=function(){void 0===this.g6&&(this.g6=this.y8,this.JR.Eh(ul.fv,this.r8),this.JR.Eh(ul.hv,this.e8))},T.q8=function(){if(void 0!==this.g6){var e=this.y8;this.g6=void 0,this.JR.kh(ul.fv,this.r8),this.JR.kh(ul.hv,this.e8),this.y8!==e&&this.oD()}},T.e9=function(e){this.Jq=this.Jq.qC(e)},T.J8=function(e){var r=this.m0.E0,s=r.i0;if(s.length){var o=s[0];if(e<=o.bC)return o;for(var u=0;u<s.length;u++){var a=s[u];if(a.EC>e)return a}return r.Ua!==x3._N?s[s.length-1]:void 0}},g=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.u9(),!this.E6||fW(this.E6)){e.next=4;break}return e.next=4,this.Yg();case 4:if(r&&!fW(r)){e.next=6;break}return e.abrupt("return");case 6:return this.SS=new rE,this.SS.fh(o),this.E6=r,this.S6=s,u=CQ(new Cq(this.ES,!!this.E6.useCredentials),this.X5),this.U3(!0),this.p6=new Cb({Sw:_._o(this.E6.src),G3:this.E6.liveOffset,x3:this.E6.timeServer,Yl:this.E6.useCredentials},this.U6,this.ES,u),this.m0=this.p6.f4,this.m0.E0.kh(ul.Yf,this.K6),this.m0.E0.kh(ul.Qf,this.Z6),this.m0.E0.kh(Co.a3,this.o8),e.next=20,this.M6.bc(this.m0.E0);case 20:return e.next=22,this.x6.bc(this.m0.E0);case 22:return e.next=24,this.L6.bc(this.m0.E0);case 24:this.Z8();case 25:case"end":return e.stop()}},e,this)})),T.Hm=function(e,r,s){return g.apply(this,arguments)},T.U3=function(e){this.P3!==e&&(this.P3=e,this.yh(e?new CG:new CK))},T.Z8=function(){return this.m0?(this.T6=this.s9(this.T6,this.SS.dh),this.T6.catch(this.q6)):P.resolve()},m=P.coroutine(iO.mark(function r(s,o){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!s){r.next=4;break}return r.next=3,s;case 3:rT(o);case 4:if(r.prev=4,this.gp!==g7.hC&&!this.l6){r.next=10;break}return r.next=8,this.o9(o);case 8:case 13:r.next=15;break;case 10:if(this.gp!==g7.cb){r.next=15;break}return r.next=13,this.a9(o);case 15:r.next=22;break;case 17:throw r.prev=17,r.t0=r.catch(4),rC(r.t0),this.J6(new om(e.ErrorCode.MANIFEST_LOAD_ERROR,r.t0.message,r.t0)),r.t0;case 22:case"end":return r.stop()}},r,this,[[4,17]])})),T.s9=function(e,r){return m.apply(this,arguments)},w=P.coroutine(iO.mark(function r(s){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.a9(s);case 2:return this.m6||(this.m6=!0,this.k6.uc(this.bc(this.S6,s))),r.prev=3,r.next=6,this.k6.ec;case 6:r.next=12;break;case 8:r.prev=8,r.t0=r.catch(3),rC(r.t0),this.J6(new om(e.ErrorCode.MEDIA_DECODE_ERROR,r.t0.message,r.t0));case 12:case"end":return r.stop()}},r,this,[[3,8]])})),T.o9=function(e){return w.apply(this,arguments)},k=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rR(this.p6.v4,r);case 2:case"end":return e.stop()}},e,this)})),T.a9=function(e){return k.apply(this,arguments)},T.R8=function(e){var r=this.v6;e!==r&&(this.v6&&this.p8(this.v6),this.d6&&this.b8(this.d6),r&&this.k8(this.K8),this.v6=e,this.d6=r,this.Sm.ew=e.Pm,this.Im.ew=e.Bm,s.h9(this.B6),this.B6.ew=e.Om,this.O6.ew=void 0,this.m8(this.v6),this.d6&&this.A8(this.d6))},s.h9=function(e){for(var r=0,s=e.Qg;r<s.length;r++)s[r].Aw=fk.gw},T.jm=function(){this.gC=!0},T.Ym=function(){this.gC=!1},T.J6=function(e){this.JN||(rN(this.Yg()),this.JN=l1(e),this.$N=e,this.yh(new lm(e)))},T.u9=function(){this.JN=void 0,this.$N=void 0},E=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.py=1,this.SS.hh(),this.c8(),this.h8(),this.D6.hh(),this.k6.hh(),this.N6=!1,this.xm(),this.l6=!1,this.Sm.ew=void 0,this.Im.ew=void 0,this.B6.ew=void 0,this.O6.ew=void 0,!this.T6){e.next=17;break}return e.next=16,this.T6.catch(I);case 16:this.T6=void 0;case 17:return e.next=19,P.all([this.R6,this.Qq,this.C6,this.k6.ec.catch(I)]);case 19:if(!this.v6){e.next=23;break}return e.next=22,this.v6.Kl();case 22:this.v6=void 0;case 23:if(!this.d6){e.next=27;break}return e.next=26,this.d6.Kl();case 26:this.d6=void 0;case 27:return e.next=29,this.V8();case 29:return this.P6=void 0,e.next=32,this.M6.Yg();case 32:return e.next=34,this.x6.Yg();case 34:return e.next=36,this.L6.Yg();
1case 36:if(this.TS.Yg(),!this.m0){e.next=44;break}return this.m0.E0.Eh(ul.Yf,this.K6),this.m0.E0.Eh(ul.Qf,this.Z6),this.m0.E0.Eh(Co.a3,this.o8),e.next=43,this.p6.Kl();case 43:this.m0=void 0;case 44:this.y6=!1,this._6=NaN,this.g6=void 0,this.rG=!1,this.Jq=mo.aP(),this.wN=!0,this.zq=void 0,this.w6=!1,this.gP=!1,this.m6=!1,this.k6=new sG,this.F6=0,this.H6=0,this.X6=0,this.E6=void 0,this.S6=void 0;case 60:case"end":return e.stop()}},e,this)})),T.Yg=function(){return E.apply(this,arguments)},x=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),this.u9(),e.next=4,this.Yg();case 4:if(this.Th(),this.Sm.Kl(),this.Im.Kl(),!this.v6){e.next=10;break}return e.next=10,this.v6.Kl();case 10:if(!this.d6){e.next=14;break}return this.b8(this.d6),e.next=14,this.d6.Kl();case 14:return this.B6.Kl(),this.O6.Kl(),this.Rm.Kl(),e.next=19,this.M6.Kl();case 19:return e.next=21,this.x6.Kl();case 21:return e.next=23,this.L6.Kl();case 23:return this.TS.Kl(),e.next=26,this.rD.Kl();case 26:this.JR.Eh(ul.Wf,this.SG),this.JR.Eh(rH.Mh,this.nN),this.JR.Eh(ul.Gf,this.DG),this.JR.Eh(ul.fv,this.r8),this.JR.Eh(ul.hv,this.e8),this.JR.Eh(ul.Av,this.oD),this.JR.Eh([ul.tv,ul.$f],this.Y6),this.JR.Eh(Sa,this.wh);case 34:case"end":return e.stop()}},e,this)})),T.Kl=function(){return x.apply(this,arguments)},T.Zm=function(){return mh},T.Xm=function(){return!1},T.Vm=function(){},T.Wm=function(){},T.ip=function(){},M(s,[{key:"Pm",get:function(){return this.Sm}},{key:"OD",get:function(){var e=this.y8,r=this.c9,s=r.jC(e);if(-1!==s)return{bC:r.bC(s),EC:r.EC(s)}}},{key:"c9",get:function(){var e,r,s,o,u=null!=(e=null==(r=this.v6)?void 0:r.rp)?e:mo.aP(),a=null!=(s=null==(o=this.d6)?void 0:o.rp)?s:mo.aP();return u.qC(a)}},{key:"rp",get:function(){return this.c9.XD()}},{key:"ep",get:function(){var e,r=null==(e=this.m0)?void 0:e.E0,s=null==r?void 0:r.z$;if(r&&s){var o=s.getTime();return new Date(1e3*this.vy+o)}},set:function(e){var r,s=null==(r=this.m0)?void 0:r.E0,o=null==s?void 0:s.z$;if(e&&s&&o){var u=o.getTime()/1e3,a=e.getTime()/1e3;this.$h(a-u)}}},{key:"y8",get:function(){return void 0!==this.zq?this.zq:void 0!==this.g6?this.g6:this.JR.vy}},{key:"vy",get:function(){return this.y8},set:function(e){this.$h(e)}},{key:"ly",get:function(){var e=NaN;return this.v6&&this.v6.f9?e=this.v6.EC:this.m0&&void 0!==this.m0.E0.Ua&&(e=this.m0.E0.K$?this.m0.E0.K$.TJ():1/0),e}},{key:"EC",get:function(){return this.ly}},{key:"_y",get:function(){return!(!this.v6||!this.v6.f9)&&(this.Ay?this.y8===this.v6.EC:this.JR._y)}},{key:"Lh",get:function(){return this.JN}},{key:"gy",get:function(){return this.$N}},{key:"Lm",get:function(){}},{key:"i8",get:function(){if(!this.m0||this.m0.E0.Ua!==x3._N)return!1;var e,r=null==(e=this.v6)?void 0:e.uC;if(r&&r.d0)return!0;for(var s=[],o=0,u=this.m0.E0.i0;o<u.length;o++){var a=u[o],h=a._0,c=a.o3;void 0!==h&&void 0!==c&&s.push(h,c)}var f=new mo(s).WC();return function(e,r,s){if(!r.Zg||!s.Zg)return mo.aP();var o=r.bC(0),u=r.EC(r.Zg-1),a=e.UC(s).FC().UC(e).qC(r);return new mo([a.bC(0),a.EC(a.Zg-1)]).GC(a).$C(function(e,r){return e<o&&r<=u&&r-e>t2})}(this.c9,this.w8,f).Zg>0}},{key:"ym",get:function(){return iD({},this.v9,{fp:8*fO.Uw(),vp:this.F6,dp:{amountOfBufferedAudioSegments:this.H6,amountOfBufferedVideoSegments:this.X6}})}},{key:"yy",get:function(){return this.rG?this.A6:this.v6&&this.v6.f9?this.d9:this.A6}},{key:"_p",get:function(){var e=this.Jq;return this.v6&&(e=e.qC(this.K8)),e.WC(.1).XD()}},{key:"gp",get:function(){return this.tD},set:function(e){switch(e){case g7.hC:case"":this.tD=g7.hC;break;case g7.cb:this.tD=g7.cb;break;case g7.cC:default:this.tD=g7.cC}this.Z8()}},{key:"w8",get:function(){var e,r=null==(e=this.m0)?void 0:e.E0;if(!r)return mo.aP();var s=r.V3,o=r.Q0;if(void 0===s||void 0===o)return mo.aP();var u=this.K8;u.Zg>0&&u.EC(u.Zg-1)>o&&(o=b.min(u.EC(u.Zg-1),r.s3));var a=this.ly;return isFinite(a)&&a>o&&(o=a),s>o?mo.aP():new mo([s,o]).BC()}},{key:"wp",get:function(){return this.w8.XD()}},{key:"Ay",get:function(){return this.gP||this.r9}},{key:"qD",get:function(){}},{key:"l9",get:function(){var e,r;
1return null!=(e=null==(r=this.m0)?void 0:r.E0.Ua)?e:x3.lN}},{key:"Om",get:function(){return this.Rm}},{key:"Bm",get:function(){return this.Im}},{key:"GD",get:function(){return this.uD}},{key:"lp",get:function(){return this.P3}},{key:"op",get:function(){return!1}}]),s}(rB),Sc=function(){function e(){}var r=e.prototype;return r._9=function(e,r,s){return P.resolve()},r.g9=function(e,r,s,o){var u=[];if(o){var a={fA:r.xp,vA:r.Up,dA:s.ZJ.dA};o.Ua===po.TTML?u=v_(e,o,a,s.FO):o.Ua===po.WEBVTT&&(u=p7(e,a).Tw)}return u},r.Yg=function(){},e}();(Sw=Si||(Si={})).XA="vttc",Sw.w9="vsid",Sw.y9="iden",Sw.k9="ctim",Sw.m9="sttg",Sw.p9="payl",Sw.A9="vtte",Sw.b9="vtta";var Sf=function(){function e(){}return e.T9=function(r){return!!e.E9[r]},e.Wb=function(r){for(var s=[],o=vv.Rb(new vc(r,new sJ)),u=0;u<o.length;u++){var a=o[u];e.T9(a.Ua)&&s.push(e.E9[a.Ua](a.Fs))}return s},e.S9=function(r){var s=vv.Rb(r),o=vy(s,Si.w9),u=vy(s,Si.y9),a=vy(s,Si.k9),h=vy(s,Si.m9),c=vy(s,Si.p9);return{Ua:Si.XA,I9:o?e.R9(o):void 0,N9:u?e.D9(u):void 0,C9:a?e.P9(a):void 0,B9:h?e.O9(h):void 0,L9:c?e.M9(c):void 0}},e.R9=function(e){return{Ua:Si.w9,x9:e.kb()}},e.D9=function(e){return{Ua:Si.y9,N9:e.Tb()}},e.P9=function(e){return{Ua:Si.k9,U9:e.Tb()}},e.O9=function(e){return{Ua:Si.m9,F9:e.Tb()}},e.M9=function(e){return{Ua:Si.p9,H9:e.Tb()}},e.X9=function(e){return{Ua:Si.A9}},e.V9=function(e){return{Ua:Si.b9,W9:e.Tb()}},e}();(Sr={})[Si.XA]=Sf.S9,Sr[Si.A9]=Sf.X9,Sr[Si.b9]=Sf.V9,Sf.E9=Sr;var Sl=function(){function e(){this.q9=NaN}var r=e.prototype;return r._9=function(e,r,s){var o=new DataView(e.G9),u=ra(vw.Wb(o),function(e){return e.Ua===pG.kA});return u&&(this.q9=u.iT[0].fT.Mb.Pk),P.resolve()},r.g9=function(e,r,s){if(A(this.q9))return[];var o=new DataView(e),u=vw.Wb(o),a=vf(u,pG.GA),h=vf(u,pG.KA);if(!a||0===a.iT.length||!h)return[];var c=function(e,r,s){for(var o=e.iT[0],u=o.DE?o.DE.DE.toNumber()/s:r.xp,a=[],h=0,c=o.NE;h<c.length;h++){var f=c[h];a.push.apply(a,f.ME)}return{z9:u,ME:a}}(a,r,this.q9),f=s.ZJ.dA;return function(e,r,s,o){for(var u=Sf.Wb(sB(r.Fs)),a=e.ME,h=e.z9-o,c=[],f=0,l=0;l<a.length;l++){var p,v=a[l],d=u[l],y=(null!=(p=v.ly)?p:0)/s,g=void 0;d.Ua===Si.XA&&(g=function(e,r,s,o){if(e.L9){var u=o+(e.C9?vs(e.C9.U9,new sJ(0)):r);return new pP(u,u+s,e.L9.H9,!1)}}(d,f,y,h)),g&&c.push(g),f+=y}return c}(c,h,this.q9,f)},r.Yg=function(){this.q9=NaN},e}(),Sp=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).g4=void 0,r.m4=void 0,r.j9=new iq,r}j(r,e);var s,o=r.prototype;return s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Yg();case 2:this.m4=r,this.E8(r);case 4:case"end":return e.stop()}},e,this)})),o.bc=function(e){return s.apply(this,arguments)},o.E8=function(e){for(var r=0,s=e.X$;r<s.length;r++){var o=s[r],u=this.Y9(o);this.Q9(u,o),u.bw=ps.LOADED,this.Gg(u)}},o.zg=function(r){this.Z9(r),e.prototype.zg.call(this,r)},o.lS=function(e){var r=this.K9(e);if(r&&this._4!==r){this._4=r;for(var s=0,o=this.iT.Qg;s<o.length;s++){var u=o[s];u!==r&&(u.Aw=fk.gw)}}},o._S=function(e){var r=this.K9(e);r&&this._4===r&&(this._4=void 0)},o.K9=function(e){return ra(this.iT.Qg,function(r){return e.cw===r.cw})},o.Q9=function(e,r){this.j9.set(e.cw,r)},o.J9=function(e){return this.j9.get(e.cw)},o.Z9=function(e){this.j9.delete(e.cw)},o.n7=function(){if(this._4){var e=this.J9(this._4);if(e)return r.i7(e)}},r.i7=function(e){return e.O$&&e.O$.length>0?e.O$[0]:void 0},M(r,[{key:"_4",get:function(){return this.g4},set:function(e){this.g4=e}},{key:"aw",get:function(){for(var e=0,r=this.iT.Qg;e<r.length;e++)if(r[e].Aw!==fk.gw)return!0;return!1}}]),r}(vW),Sv=lW.Jy,Sd=lW.zk,Sy=lW.Gk,Sg=new(function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.Py=function(e,r){return e.Uy(r)?lC.Ry:e.xy(r)?lC.Sy:lC.Iy},s.Wy=function(e,r){return e.Wy(r)},s.Vy=function(e,r){return e.Vy(r)},s.My=function(e,r){return e.My(r)},s.MC=function(){return Sv},s.xC=function(){return Sy},s.XC=function(){return Sd},r.uP=function(e){for(var s=[],o=0;o<e.length;o++)s.push(lW.Wk(e.start(o)),lW.Wk(e.end(o)));return new r(s)},r.VZ=function(e){for(var s=[],o=[],u=0;u<e.Zg;u++)s.push(lW.Wk(e.bC(u))),s.push(lW.Wk(e.EC(u))),o.push(e.TC(u)),o.push(e.SC(u));return new r(s,o)},r.sP=function(e){for(var s=[],o=[],u=0;u<e.Zg;u++)s.push(lW.jk(e.bC(u))),s.push(lW.jk(e.EC(u))),o.push(e.TC(u)),o.push(e.SC(u));return new r(s,o)},r.oP=function(e){return new r([e,e],[!0,!0])},s.OC=function(e,s){return new r(e,s)},s.DC=function(e){return e.Dy()},r.aP=function(){return Sg},r}(ms))([]);function Sm(e,r){for(var s=[],o=[],u=0;u<r.Zg;u++)e.ZC(r.bC(u),r.EC(u),!1,!1)&&(s.push(r.bC(u)),s.push(r.EC(u)),o.push(r.TC(u)),o.push(r.SC(u)));return e.qC(new mo(s,o))}var Sw,Sb,Sk=function(e){function r(){return e.call(this,"r7")||this}return j(r,e),r}(rX);(RR=Sb||(Sb={})).e7="u7",RR.s7="o7",RR.a7="h7",RR.uB="c7";var SE=[ul._v,ul.yv,ul.vv,ul.xf],SA=function(r){function s(e,s,o,u,a){var h;
1return(h=r.call(this)||this).f7=Sb.e7,h.JN=void 0,h.v7=new sG,h.d7=new rE,h.l7=new rE,h.cV=function(e){h._7||h.g7||!_.K_&&h.y7.w7(e.currentTime)||(h.d7.hh(),h.d7=new rE,h.k7(h.d7.dh).catch(rS))},h.m7=function(){h.p7&&h.bC(CP.U4)},h.A7=e,h.k0=s,h.b7=o,h.y7=u,h.wq=a,h.T7(),h}j(s,r);var o,u,a,h,c,f,l,p,v=s.prototype;return v.E7=function(e){this.f7!==e&&(this.f7=e,this.yh(new Sk))},o=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._7||this.p7){e.next=2;break}return e.abrupt("return");case 2:return s=this.Nh("r7"),this._7?(this.l7.hh(),this.l7=new rE,this.S7(this.l7.dh)):(this.v7.uc(void 0),this.v7=new sG),e.next=7,s;case 7:case"end":return e.stop()}},e,this)})),v.bC=function(e){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.I7||this.p7){e.next=2;break}return e.abrupt("return");case 2:this.l7.hh();case 4:if(this._7||this.g7){e.next=9;break}return e.next=7,this.Nh("r7");case 7:e.next=4;break;case 9:case"end":return e.stop()}},e,this)})),v.Um=function(e){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.g7){e.next=6;break}this.JN=void 0,this.E7(Sb.e7),e.next=8;break;case 6:return e.next=8,this.Um(r);case 8:this.y7.Yg(),this.b7.Yg();case 10:case"end":return e.stop()}},e,this)})),v.Yg=function(e){return a.apply(this,arguments)},v.J6=function(e){this.JN=e,this.E7(Sb.uB),this.yh(new lm(e))},v.T7=function(){this.wq.kh(ul.Av,this.m7),this.wq.kh(ul.fv,this.cV),this.y7.kh(SE,this.wh),this.k0.kh(TM.c0,this.m7)},v.R7=function(){this.wq.Eh(ul.Av,this.m7),this.wq.Eh(ul.fv,this.cV),this.y7.Eh(SE,this.wh),this.k0.Eh(TM.c0,this.m7)},h=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.R7(),this.d7.hh(),e.next=4,this.Um(null!=r?r:CP.n5);case 4:this.y7.Yg();case 5:case"end":return e.stop()}},e,this)})),v.a8=function(e){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.T7(),e.next=3,this.bC(null!=r?r:CP.F4);case 3:case"end":return e.stop()}},e,this)})),v.l8=function(e){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),this.R7(),this.d7.hh(),e.next=5,this.Um(CP.i5);case 5:this.y7.Kl();case 6:case"end":return e.stop()}},e,this)})),v.Kl=function(){return f.apply(this,arguments)},l=P.coroutine(iO.mark(function r(s){var o;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=1,rT(s),this.E7(Sb.a7),r.next=6,this.y7.N7(s);case 6:return rT(s),this.E7(Sb.s7),r.next=10,rR(this.v7.ec,s);case 10:r.next=16;break;case 12:return r.prev=12,r.t0=r.catch(1),rx(r.t0)?this.E7(Sb.e7):(o=r.t0 instanceof om?r.t0:new om(e.ErrorCode.MEDIA_LOAD_ERROR,r.t0.message,r.t0),this.J6(o)),r.abrupt("break",18);case 16:r.next=0;break;case 18:case"end":return r.stop()}},r,this,[[1,12]])})),v.S7=function(e){return l.apply(this,arguments)},p=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(r),e.next=3,this.Um(CP.J4);case 3:return this.y7.Yg(),rT(r),e.next=7,this.bC(CP.x4);case 7:case"end":return e.stop()}},e,this)})),v.k7=function(e){return p.apply(this,arguments)},M(s,[{key:"D7",get:function(){var e,r,s=null==(e=this.y7.C7)?void 0:e.F0,o=null==(r=this.y7.P7)?void 0:r.F0;return s||o}},{key:"B7",get:function(){var e;return null==(e=this.D7)?void 0:e.F0}},{key:"O7",get:function(){return this.b7}},{key:"L7",get:function(){return this.y7.L7},set:function(e){this.y7.L7=e}},{key:"wl",get:function(){return this.f7}},{key:"P4",get:function(){return this.b7.yg.P4}},{key:"Lh",get:function(){return this.JN}},{key:"_7",get:function(){return this.f7===Sb.e7}},{key:"p7",get:function(){return this.f7===Sb.s7}},{key:"I7",get:function(){return this.f7===Sb.a7}},{key:"g7",get:function(){return this.f7===Sb.uB}}]),s}(rB),Sx=function(){function e(e){this.ES=void 0,this.tN=new dr,this.ES=e}var r,s=e.prototype;return s.El=function(e){var r=this,s=new sG;return this.tN.xS(function(o){return r.M7(s,e,o)},e.dh).catch(I),s.ec},s.Zl=function(e){return this.ES.Zl(e)},r=P.coroutine(iO.mark(function e(r,s,o){var u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(o),u=new hP({Il:s.Il,dh:o},s),a=this.ES.El(u),r.uc(a),e.next=6,a;case 6:return h=e.sent,e.next=9,h.fl();case 9:case"end":return e.stop()}},e,this)})),s.M7=function(e,s,o){return r.apply(this,arguments)},s.Kl=function(){this.tN.Kl()},e}(),ST=function(){function e(e){this.x7=void 0,this.ES=e,this.x7=new Sx(this.ES)}var r,s=e.prototype;return s.U7=function(e,r,s){return this.F7(e,r,!0,!1,void 0,s)},s.H7=function(e,r,s,o){return this.F7(e,r,!1,!1,s,o)},s.X7=function(e,r,s,o){return this.F7(e,r,!1,!0,s,o)},r=P.coroutine(iO.mark(function r(s,o,u,a,h,c){var f;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return rT(c),r.next=3,this.V7(s,u,a,h,c);case 3:if(f=r.sent,!o){r.next=8;break}return r.abrupt("return",e.W7(f));case 8:return r.abrupt("return",this.q7(f));case 9:case"end":return r.stop()}},r,this)})),s.F7=function(e,s,o,u,a,h){return r.apply(this,arguments)},s.q7=function(e){return e},e.W7=function(e){return e},s.V7=function(e,r,s,o,u){var a=new hP({Il:e.Il,Al:up.Iv,yl:e.MJ?{Range:"bytes="+e.MJ[0]+"-"+e.MJ[1]}:void 0,Yl:e.Yl,ql:hk.GET,Ua:hE.Cl,zl:s?hA.Bl:hA.Nl,jl:this.G7,Gl:o,dh:u});return r?this.x7.El(a):this.ES.El(a)},M(e,[{key:"G7",get:function(){return hx.Nl}}]),e}(),SC=function(){function e(e){this.z7=void 0,this.bZ=0,this.j7=0,this.z7=b.exp(b.log(.5)/e)}var r=e.prototype;return r.Y7=function(e,r){var s=b.pow(this.z7,e),o=r*(1-s)+s*this.bZ;A(o)||(this.bZ=o,this.j7+=e)},r.Q7=function(){var e=1-b.pow(this.z7,this.j7);return this.bZ/e},e}(),SS=function(){function e(e,r,s){void 0===e&&(e=2),void 0===r&&(r=5),void 0===s&&(s=128e3),this.Z7=void 0,this.K7=void 0,this.J7=0,this.ttt=void 0,this.ntt=5e5,this.Z7=new SC(e),this.K7=new SC(r),this.ttt=s}var r=e.prototype;return r.Y7=function(e,r){var s=8e3*r/e,o=e/1e3;this.J7+=r,this.Z7.Y7(o,s),this.K7.Y7(o,s)},r.Q7=function(){return this.D5()?b.min(this.Z7.Q7(),this.K7.Q7()):this.ntt},r.D5=function(){return this.J7>=this.ttt},e}(),SR=function(){function e(){this.Z7=new SC(2),this.K7=new SC(5),this.itt=0,this.rtt=1,this.ntt=100}var r=e.prototype;return r.Y7=function(e){this.itt+=1,this.Z7.Y7(1,e),this.K7.Y7(1,e)},r.Q7=function(){return this.D5()?b.min(this.Z7.Q7(),this.K7.Q7()):this.ntt},r.D5=function(){return this.itt>=this.rtt},e}(),SL=function(){function e(e,r){this.ett=void 0,this.utt=void 0,this.stt=r,r&&(e===l4.Vl||e===l4.Xl)?e===l4.Vl?(this.utt=5e3,this.ett=new SS(.05,1,0)):(this.utt=0,this.ett=new SS(.005,.1,0)):(this.utt=16e3,this.ett=new SS)}return e.prototype.ott=function(e){var r=e.att,s=this.stt?e.htt-e.ctt:e.htt-e.ftt;r<this.utt||this.ett.Y7(s,r)},M(e,[{key:"N5",get:function(){return this.ett.Q7()}},{key:"D5",get:function(){return this.ett.D5()}}]),e}(),S_=["wv","mv"],SP=function(e){function r(r){var s;(s=e.call(this)||this).dtt=r;for(var o=0,u=s.dtt;o<u.length;o++)u[o].kh(S_,s.wh);return s}j(r,e);var s,o,u=r.prototype;return s=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u=0,a=this.dtt;case 1:if(!(u<a.length)){e.next=16;break}return h=a[u],e.prev=3,e.next=6,h.ltt(r,s);case 6:return e.abrupt("return",e.sent);case 9:e.prev=9,e.t0=e.catch(3),rC(e.t0),o=e.t0;case 13:u++,e.next=1;break;case 16:throw o;case 17:case"end":return e.stop()}},e,this,[[3,9]])})),u.ltt=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u=0,a=this.dtt;case 1:if(!(u<a.length)){e.next=16;break}return h=a[u],e.prev=3,e.next=6,h._tt(r,s);case 6:return e.abrupt("return",e.sent);case 9:e.prev=9,e.t0=e.catch(3),rC(e.t0),o=e.t0;case 13:u++,e.next=1;break;case 16:throw o;case 17:case"end":return e.stop()}},e,this,[[3,9]])})),u._tt=function(e,r){return o.apply(this,arguments)},u.Kl=function(){for(var e=0,r=this.dtt;e<r.length;e++){var s=r[e];s.Eh(S_,this.wh),s.Kl()}},r}(rB),SI=function(){function e(e){this.Jv=e}var r=e.prototype;
1return r.transform=function(e,r){this.Jv.write(e).catch(I),r.enqueue(e)},r.flush=function(){this.Jv.close().catch(I)},e}(),SN=function(){function e(e,r,s){this.G9=void 0,this.gtt=void 0,this.wtt=void 0,this.G9=e,this.gtt=r,this.wtt=s}return e.prototype.ytt=function(){return new SO(hn(this.G9),this.gtt,this.wtt)},e}(),SO=function(){function e(e,r,s){this.ktt=void 0,this.gtt=void 0,this.wtt=void 0,this.ktt=e,this.gtt=r,this.wtt=s}var r=e.prototype;return r.Kd=function(e){return hi(this.ktt,e)},r.tc=function(){var r=hs(this.ktt),s=r[0],o=r[1];return this.ktt=s,new e(o,this.gtt,this.wtt)},r.mtt=function(){var r,s,o,u,a=(r=this.ktt,o=(s=new aZ).writable.getWriter(),u=new aZ(new SI(o)),r.pipeTo(u.writable).catch(function(e){o.abort(e).catch(I)}),[u.readable,s.readable]),h=a[0],c=a[1];return this.ktt=h,new e(c,this.gtt,this.wtt)},r.ptt=function(e){var r=this;return this.Kd(e).then(function(e){return new SN(e,r.gtt,r.wtt)})},M(e,[{key:"Jd",get:function(){return this.ktt}}]),e}(),SD=function(e){function r(r,s,o){var u;return(u=e.call(this,s,o)||this).j1=void 0,u.j1=r,u}return j(r,e),r}(t9),SU=function(e){function r(r){var s;return(s=e.call(this)||this).X5=void 0,s.X5=r,s}j(r,e);var s,o,u=r.prototype;return s=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(s),e.next=3,this.X5.qK(r.Il.Il,r.Il.MJ);case 3:if(o=e.sent,rT(s),o){e.next=7;break}throw new SD(r,"Cache lookup failed.");case 7:return u=new SN(o.buffer,o.byteLength,o.reference),e.abrupt("return",{j1:r.j1,Att:u.ytt(),F0:r.F0,Il:r.Il});case 9:case"end":return e.stop()}},e,this)})),u.ltt=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(s),e.next=3,this.X5.qK(r.Il,r.MJ);case 3:if(o=e.sent,rT(s),o){e.next=7;break}throw new SD(r,"Cache lookup failed.");case 7:return u=new SN(o.buffer,o.byteLength,o.reference),e.abrupt("return",u.ytt());case 9:case"end":return e.stop()}},e,this)})),u._tt=function(e,r){return o.apply(this,arguments)},u.Kl=function(){this.Th()},r}(rB),SM=function(e){function r(r,s,o,u,a,h){var c;return(c=e.call(this,r)||this).btt=s,c.Ttt=o,c.EE=u,c._T=a,c.jl=h,c}return j(r,e),r}(rX),SF=function(e){function r(r,s,o,u,a){return e.call(this,ul._v,r,s,o,u,a)||this}return j(r,e),r}(SM),Sj=function(e,r){this.Ett=e,this.Stt=r},SH=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).Itt=0,r}j(r,e);var s=r.prototype;return s.start=function(){},s.transform=function(e,r){this.Itt+=e.byteLength,r.enqueue(e)},s.flush=function(){this.Ett(this.Stt,_.xo(),this.att)},M(r,[{key:"att",get:function(){return this.Itt}}]),r}(Sj),SB=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).Itt=0,r.Rtt=!1,r.Ntt=void 0,r.Dtt=void 0,r}j(r,e);var s=r.prototype;return s.start=function(){this.Stt=_.xo()},s.transform=function(e,r){if(this.Itt+=e.byteLength,!this.Rtt){var s=_.xo();this.Ctt(e)&&(this.Ett(this.Stt,s,this.att),this.Rtt=!0)}r.enqueue(e)},s.flush=function(){},s.Ctt=function(e){var r=this.Ptt(e);return!!ra(this.Btt(r),SV)},s.Ptt=function(e){return this.Ntt&&void 0!==this.Dtt?(this.Ntt=r9([this.Ntt,e]),new vc(sB(this.Ntt),new sJ(this.Dtt))):(this.Ntt=e,new vc(sB(e),new sJ))},s.Btt=function(e){var r=vv.Nb(e.Fs,e.vb,!0);return r.Db?(this.Ntt=void 0,this.Dtt=void 0):this.Dtt=e.vb.Zh,r.Ds},M(r,[{key:"att",get:function(){return this.Itt}}]),r}(Sj);function SV(e){return e.Ua===pG.KA}var SX=function(){function e(e){var r=this;this.Ott=new sG,this.Ltt=void 0,this.ott=function(e,s,o){var u={ftt:r.Ltt,ctt:e,htt:s,att:o};r.Mtt.ott(u),fO.Mw(r.Mtt.N5/8)},this.Mtt=e,this.Ott.ec.catch(I),this.Ltt=_.xo()}var r=e.prototype;return r.xtt=function(e){var r=e.Tl?this.Ltt:_.xo(),s=this.Utt(r),o=new aZ(s),u=e.Jd().pipeTo(o.writable).then(function(){return{ym:{att:s.att}}});return this.Ott.uc(u),o.readable},r.Ftt=function(e){var r=this,s=e.Tl?this.Ltt:_.xo(),o=e.Kd(),u=o.then(function(e){var o=_.xo();return r.ott(s,o,e.byteLength),{ym:{att:e.byteLength}}});return this.Ott.uc(u),o},M(e,[{key:"Htt",get:function(){return this.Ott.ec}}]),e}(),SW=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.Utt=function(e){return new SH(this.ott,e)},r}(SX),Sq=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.Utt=function(e){return new SB(this.ott,e)},r}(SX),SY=function(e){function r(r,s,o,u,a,h,c){var f;return(f=e.call(this,ul.yv,r,s,o,u,a)||this).Xtt=h,f.vp=c,f}return j(r,e),r}(SM),S$=function(e){function r(r,s,o){var u;return(u=e.call(this,"Error downloading segment "+Tq(s),r)||this).Vtt=void 0,u.Wtt=void 0,u.qtt=void 0,u.Vtt=s.xp,u.Wtt=s.Up,u.qtt=o,u}return j(r,e),r}(t9),SJ=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).Gtt=r,u.Mtt=s,u.stt=o,u}j(r,e);var s,o,u,a,h=r.prototype;return h.ztt=function(){return _.Z_},h.jtt=function(){return this.stt?new Sq(this.Mtt):new SW(this.Mtt)},s=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f,l,p;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(s),o=r.F0,u=r.Il,h=Tq(a=r.j1),c=o.F0?o.F0.cw:-1,this.yh(new SF(u,o.QN,h,c,o.Ua)),e.prev=7,f=this.jtt(),e.next=11,this.Gtt.H7(u,this.ztt(),1e3*b.max(a.ly,30),s);case 11:return l=e.sent,e.next=14,this.Ytt(l,this.ztt(),s,f);case 14:return p=e.sent,this.Qtt(f.Htt,o,u,h,c,l),e.abrupt("return",{Att:p,F0:o,j1:a,Il:u});case 19:throw e.prev=19,e.t0=e.catch(7),rC(e.t0),new S$(e.t0,a,o);case 23:case"end":return e.stop()}},e,this,[[7,19]])})),h.ltt=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(s),o=this.ztt(),e.next=4,this.Gtt.X7(r,o,3e4,s);case 4:return u=e.sent,e.next=7,this.Ytt(u,o,s);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}},e,this)})),h._tt=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r,s,o,u){var a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!s){e.next=4;break}return e.abrupt("return",new SO(u?u.xtt(r):r.Jd()));case 4:if(!u){e.next=10;break}return e.next=7,u.Ftt(r);case 7:e.t0=e.sent,e.next=13;break;case 10:return e.next=12,r.Kd(o);case 12:e.t0=e.sent;case 13:return a=e.t0,e.abrupt("return",new SN(a).ytt());case 15:case"end":return e.stop()}},e)})),h.Ytt=function(e,r,s,o){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r,s,o,u,a,h){var c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r;case 3:c=e.sent,this.yh(new SY(o,s.QN,u,a,s.Ua,h.wl,c.ym.att)),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}},e,this,[[0,7]])})),h.Qtt=function(e,r,s,o,u,h){return a.apply(this,arguments)},h.Kl=function(){this.Th()},r}(rB),SQ=function(){function e(){}var r=e.prototype;return r.Ztt=function(e,r,s,o,u){return new SP([new SU(u),this.Ktt(e,s,o)])},r.Ktt=function(e,r,s){return new SJ(e,r,s)},e}(),SG=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),M(r,[{key:"G7",get:function(){return hx.Ku}}]),r}(ST),SK=function(e){function r(r,s,o){var u;return(u=e.call(this,"Jtt")||this).bC=r,u.EC=s,u.F0=o,u}return j(r,e),r}(t9),Sz=function(){function e(e,r,s,o){this.$tt=e,this.wq=r,this.tnt=s,this.pP=o}return M(e,[{key:"rp",get:function(){return this.$tt.rp}},{key:"nnt",get:function(){return this.$tt.nnt}},{key:"kH",get:function(){return this.$tt.kH}},{key:"int",get:function(){if(this.tnt.bw<f1.Qw)return!1;if(this.$tt.EC<=this.rnt&&this.$tt.ent())return!0;var e=this.$tt.OD;if(!e||0===e.Zg)return!1;var r=new mo([this.wq.vy,1/0]);return e.UC(r).zC(this.$tt.kH).eP>=this.pP.VM}},{key:"rnt",get:function(){var e,r=this.$tt.OD;if(r&&r.Zg>0)e=r.EC(0);else{e=this.wq.vy;var s=this.$tt.kH,o=s.jC(e);o>=0&&(e=s.EC(o))}var u=this.$tt.wp.bC(0);if(u>e){if(this.$tt.bC<=e&&this.$tt.EC>=e&&u>e+.001)throw new SK(e,u);e=u}return this.$tt.unt.LC(e)}}]),e}(),SZ=function(){function e(e){this.Pa=void 0,this.Pa=function(e){for(var r=iM(),s=0;s<e.length;s++){var o=e[s];r.set(o.hw,mo.aP())}return r}(e)}var r=e.prototype;return r.snt=function(){var e=mo.aP();return this.Pa.forEach(function(r){e=e.qC(r)}),e},r.ont=function(e){var r=!1;return this.Pa.forEach(function(s){r=r||s.HD(e)}),r},r.ant=function(e,r){var s=this.Pa.get(r.hw);return!!s&&s.HD(e)},r.YC=function(e,r){var s=!1;return this.Pa.forEach(function(o){s=s||o.YC(e,r)}),s},r.hnt=function(e,r){var s=this.Pa.get(r.hw).qC(e);this.Pa.set(r.hw,s)},r.cnt=function(e){var r=this;this.Pa.forEach(function(s,o){var u=s.qC(e);r.Pa.set(o,u)})},r.fnt=function(e){var r=this;this.Pa.forEach(function(s,o){r.Pa.set(o,s.UC(e))})},r.Yg=function(){var e=this;this.Pa.forEach(function(r,s){e.Pa.set(s,mo.aP())})},M(e,[{key:"vnt",get:function(){if(0===this.Pa.size)return mo.aP();var e=new mo([0,1/0]);return this.Pa.forEach(function(r){e=e.UC(r)}),e}}]),e}(),S0=function(){function e(e){this.yg=void 0,this.dnt=void 0,this.gH=void 0,this.$K=[],this.yg=e,this.dnt=new SZ(e.O$),this.gH=new SZ(e.O$)}var r=e.prototype;return r.lnt=function(e){for(var r=0,s=this.$K;r<s.length;r++){var o=s[r];if(o._nt>e)break;if(o.gnt>e)return o}},r.wnt=function(e){for(var r=0,s=this.$K;r<s.length;r++){var o=s[r];if(o.ynt>e)break;if(o.knt>=e)return o}},r.mnt=function(e,r){for(var s=[],o=0,u=this.$K;o<u.length;o++){var a=u[o];if(a._nt>e)break;a.gnt>=r&&s.push(a)}return s},r.pnt=function(){return this.$K},r.Ant=function(e,r){this.dnt.hnt(new mo([e.ynt,e.knt]),r);for(var s=!1,o=0;o<this.$K.length;o++){var u=this.$K[o];if(e._nt<u._nt){this.$K.splice(o,0,e),s=!0;break}}s||this.$K.push(e)},r.wH=function(e,r){this.gH.hnt(e,r)},r.bnt=function(e){this.gH.cnt(e)},r.fnt=function(e){this.dnt.fnt(e),this.gH.fnt(e);var r=this.dnt.snt();this.$K=this.$K.filter(function(e){return r.ZC(e.ynt,e.knt)}).map(function(e){return e.j6&&!r.YC(e.ynt,e.knt)?{_nt:e._nt,gnt:e.gnt,ynt:e.ynt,knt:e.knt,j6:!1}
1:e})},r.Yg=function(){this.dnt.Yg(),this.gH.Yg(),this.$K=[]},r.Kl=function(){this.Yg()},M(e,[{key:"Tnt",get:function(){return this.dnt}},{key:"kH",get:function(){return this.gH}}]),e}(),S1=function(){function e(e,r,s){this.Ent=void 0,this.A7=e,this.b7=r,this.Ys=s}var r,s,o,u=e.prototype;return r=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f,l,p,v;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(o),u=(a=this.b7.wnt(r))&&tQ(a.knt,r,1e-5)?a.gnt:r,h=this.Int(u),c=(function(e,r,s,o){return S2.apply(this,arguments)}).bind(void 0,u),e.next=8,this.Ys.Rnt(c,h,s,o);case 8:f=e.sent,rT(o);case 10:if(!f||!this.Nnt(f.j1)){e.next=19;break}return l=S4(f.j1),p=f.F0,e.next=15,this.Ys.Rnt(l,[p],s,o);case 15:f=e.sent,rT(o),e.next=10;break;case 19:if(f){e.next=22;break}return e.abrupt("return",void 0);case 22:if(this.Dnt(f.j1)){e.next=25;break}return e.abrupt("return",f);case 25:if(!(r<(v=this.Cnt(f.j1)).bC)){e.next=30;break}return e.next=29,this.findFirstNonAppendedSegmentBeforeSegment(f,s,o,v);case 29:case 33:return e.abrupt("return",e.sent);case 30:if(!(r>=v.EC)){e.next=34;break}return e.next=33,this.findFirstNonAppendedSegmentAfterSegment(f,s,o);case 34:if(!f.F0.C0(f.j1)){e.next=36;break}return e.abrupt("return",void 0);case 36:throw new y("Fatal buffering error");case 38:case"end":return e.stop()}},e,this)})),u.Snt=function(e,s,o){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r,s,o){var u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u=r;case 1:return a=S4(u.j1),h=r.F0,e.next=5,this.Ys.Rnt(a,[h],s,o);case 5:u=e.sent,rT(o);case 7:if(u&&this.Dnt(u.j1)){e.next=1;break}case 8:if(u){e.next=11;break}return e.abrupt("return",void 0);case 11:return e.abrupt("return",u);case 13:case"end":return e.stop()}},e,this)})),u.findFirstNonAppendedSegmentAfterSegment=function(e,r,o){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=r;case 1:return h=(function(e,r,s,o){return S3.apply(this,arguments)}).bind(void 0,a.j1),c=r.F0,e.next=5,this.Ys.Rnt(h,[c],s,o);case 5:a=e.sent,rT(o);case 7:if(a&&this.Dnt(a.j1)){e.next=1;break}case 8:if(a){e.next=12;break}throw new SK(r.F0.U0.bC,u.bC,r.F0);case 12:return e.abrupt("return",a);case 14:case"end":return e.stop()}},e,this)})),u.findFirstNonAppendedSegmentBeforeSegment=function(e,r,s,u){return o.apply(this,arguments)},u.Pnt=function(e){return this.b7.Tnt.ont(e)},u.Bnt=function(e){return this.b7.mnt(e.xp,e.Up)},u.Dnt=function(e){var r=this.Bnt(e);return r.length>0&&(function(e){for(var r=mo.aP(),s=0;s<e.length;s++){var o=e[s];r=r.qC(new mo([o._nt,o.gnt]))}return r})(r).YC(e.xp,e.Up)&&r.every(S6)},u.Nnt=function(e){return this.b7.kH.YC(e.xp,e.Up)},u.Cnt=function(e){var r=this.Bnt(e);return{bC:r[0].ynt,EC:r[r.length-1].knt}},u.Int=function(e){var r=this;return(this.Ent?this.Ent:this.b7.yg.O$).filter(function(s){return!r.b7.kH.ant(e,s)})},M(e,[{key:"L7",get:function(){return this.Ent},set:function(e){this.Ent=e}},{key:"P4",get:function(){return this.b7.yg.P4}}]),e}();function S2(){return(S2=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h=(a=s.ZJ).u1(r)){e.next=4;break}return e.abrupt("return",void 0);case 4:if(!a.N1(h.UJ)){e.next=9;break}return e.next=7,s.R0(h,o,u);case 7:return c=e.sent,e.abrupt("return",c.T2(r));case 9:return e.abrupt("return",h);case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)}function S3(){return(S3=P.coroutine(iO.mark(function e(r,s,o,u){var a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!TW(r)){e.next=12;break}if(0!==r.y0){e.next=3;break}return e.abrupt("return",void 0);case 3:if(a=s.ZJ.O1(r)){e.next=6;break}return e.abrupt("return",void 0);case 6:return e.next=8,s.R0(a,o,u);case 8:return h=e.sent,e.abrupt("return",h.w2(r.y0-1));case 12:return e.abrupt("return",s.ZJ.b1(r));case 13:case"end":return e.stop()}},e)}))).apply(this,arguments)}function S5(){return(S5=P.coroutine(iO.mark(function e(r,s,o,u){var a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!TW(r)){e.next=12;break}if(a=s.ZJ.O1(r)){e.next=4;break}return e.abrupt("return",void 0);case 4:return e.next=6,s.R0(a,o,u);case 6:if(h=e.sent,r.y0+1!==h.Zg){e.next=9;break}return e.abrupt("return",void 0);case 9:return e.abrupt("return",h.w2(r.y0+1));case 12:return e.abrupt("return",s.ZJ.g1(r));case 13:case"end":return e.stop()}},e)}))).apply(this,arguments)}function S4(e){return(function(e,r,s,o){return S5.apply(this,arguments)}).bind(void 0,e)}function S6(e){return e.j6}var S8=function(){function e(e,r,s,o){this.Ont=!1,this.Lnt=e,this.$tt=r,this.pP=s,this.Mnt=o}var r,s=e.prototype;return r=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c;return iO.wrap(function(e){for(;;
1)switch(e.prev=e.next){case 0:if(rT(u),a=this.xnt(s,o)){e.next=4;break}return e.abrupt("return",void 0);case 4:return e.next=6,r(a,this.Mnt,u);case 6:if(h=e.sent){e.next=9;break}return e.abrupt("return",void 0);case 9:return c=a.b0(h),e.abrupt("return",{F0:a,j1:h,Il:c});case 11:case"end":return e.stop()}},e,this)})),s.Rnt=function(e,s,o,u){return r.apply(this,arguments)},s.xnt=function(e,r){if(0!==e.length){var s=this.Lnt.I5(e,this.Ont?r:void 0,this.$tt,this.pP.$M);return this.Ont||(this.Ont=!0),s}},e}(),S7=function(){var e;function r(e,r,s,o){this.Lnt=e,this.$tt=r,this.X5=s,this.Mnt=o}return r.prototype.Rnt=(e=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c,f,l,p;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(u),(a=this.Lnt.R5(s,o,this.$tt)).length){e.next=4;break}return e.abrupt("return",void 0);case 4:c=0;case 5:if(!(c<a.length)){e.next=27;break}return f=a[c],e.prev=7,rT(u),e.next=11,r(f,this.Mnt,u);case 11:if(!(l=e.sent)){e.next=18;break}return p=f.b0(l),e.next=16,this.X5.WK(p.Il,p.MJ);case 16:if(!e.sent){e.next=18;break}return e.abrupt("return",{j1:l,F0:f,Il:p});case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(7),rC(e.t0),h=e.t0;case 24:c++,e.next=5;break;case 27:if(!h){e.next=29;break}throw h;case 29:return e.abrupt("return",void 0);case 30:case"end":return e.stop()}},e,this,[[7,20]])})),function(r,s,o,u){return e.apply(this,arguments)}),r}(),S9=function(e,r,s,o){return e.filter(function(e){return o.Eo(r,e)})},Rt=function(e,r,s){return e.filter(function(e){var r;return!((r=s.N5)<=0)&&.8*r>e.QN*s.py})},Re=function(e,r,s,o){if(!o.pu||e.length>0&&e[0].Ua!==l4.Vl)return e;for(var u=e.length-1;u>=0;u--){var a=e[u];if(a.yT===s.P5&&a.Lo===s.C5)return e.slice(0,u);if(a.yT<s.P5||a.Lo<s.C5)return e.slice(0,u+1)}return[]},Rn=function(){var e;function r(e){this.Unt=void 0,this.Unt=e}return r.prototype.Rnt=(e=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c,f,l;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:h=0,c=this.Unt;case 1:if(!(h<c.length)){e.next=17;break}return f=c[h],e.prev=3,e.next=6,f.Rnt(r,s,o,u);case 6:if(!(l=e.sent)){e.next=9;break}return e.abrupt("return",l);case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),a=e.t0;case 14:h++,e.next=1;break;case 17:if(!a){e.next=19;break}throw a;case 19:return e.abrupt("return",void 0);case 20:case"end":return e.stop()}},e,this,[[3,11]])})),function(r,s,o,u){return e.apply(this,arguments)}),r}(),Ri=function(){var e;function r(e){this.Fnt=void 0,this.Fnt=e}return r.prototype.C2=(e=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:h=0,c=this.Fnt;case 1:if(!(h<c.length)){e.next=16;break}return f=c[h],e.prev=3,e.next=6,f.C2(r,s,o,u);case 6:return e.abrupt("return",e.sent);case 9:e.prev=9,e.t0=e.catch(3),rC(e.t0),a=e.t0;case 13:h++,e.next=1;break;case 16:throw a;case 17:case"end":return e.stop()}},e,this,[[3,9]])})),function(r,s,o,u){return e.apply(this,arguments)}),r}(),Rr=function(){var e;function r(e){this.ES=void 0,this.ES=e}return r.prototype.C2=(e=P.coroutine(iO.mark(function e(r,s,o,u){var a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ES.El({Il:r,Al:up.Iv,yl:{Range:"bytes="+s[0]+"-"+s[1]},Yl:o,ql:hk.GET,Ua:hE.Nl,dh:u});case 2:return a=e.sent,e.next=5,a.Kd();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)})),function(r,s,o,u){return e.apply(this,arguments)}),r}(),Rs=function(){var e;function r(e){this.X5=void 0,this.X5=e}return r.prototype.C2=(e=P.coroutine(iO.mark(function e(r,s,o,u){var a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.X5.qK(r,s);case 2:if(!(a=e.sent)){e.next=5;break}return e.abrupt("return",a.buffer);case 5:return e.next=7,this.X5.qK(r);case 7:if(!(h=e.sent)){e.next=10;break}return e.abrupt("return",sq(new x(h.buffer),s[0],s[1]));case 10:throw new SD({Il:r,MJ:s,Yl:!1});case 11:case"end":return e.stop()}},e,this)})),function(r,s,o,u){return e.apply(this,arguments)}),r}(),Ro=function(){function e(){}return e.HZ=function(e,r,s,o,u,a,h){var c=new Ri([new Rs(h),new Rr
1(a)]);return new S1(e,s,new Rn([new S7(new CW([S9],u,_.oa),r,h,c),new S8(new CW([Rt,S9,Re],u,_.oa),r,o,c)]))},e}(),Ru=function(){function e(e){this.$tt=e}var r=e.prototype;return r.h6=function(e,r,s,o){return this.$tt.h6(e,r,s,o)},r.Hnt=function(e,r,s){return this.$tt._9(e,r,s)},r.Xnt=function(e,r,s){return this.$tt.Xnt(e,r,s)},r.wH=function(e,r){this.$tt.wH(e,r)},r.yH=function(e,r){this.$tt.yH(e,r)},r.bH=function(){this.$tt.bH()},e}(),Ra=function(e){function r(r,s,o,u,a,h){var c;return void 0===h&&(h=0),(c=e.call(this,ul.vv)||this).segmentStartTime=r,c.error=s,c.trackType=o,c.track=u,c.quality=a,c.retryCount=h,c}return j(r,e),r}(rX),Rh=function(e){function r(r,s){var o;return(o=e.call(this,ul.xf)||this).track=r,o.segments=s,o}return j(r,e),r}(rX),Rc=function(e){function r(){return e.call(this,"interrupted")||this}return j(r,e),r}(t9),Rf=[ul._v,ul.yv],Rl=function(r){function s(e,s,o,u,a,h,c){var f;return(f=r.call(this)||this).Vnt=void 0,f.$H=void 0,f.Wnt=void 0,f.qnt=void 0,f.Gnt=0,f.znt=void 0,f.jnt=mo.aP(),f.A7=e,f.Ynt=s,f.b7=o,f.Qnt=u,f.Znt=a,f.Knt=h,f.Jnt=c,f.Knt.kh(Rf,f.wh),f}j(s,r);var o,u,a,h,c,f,l,p=s.prototype;return p.$nt=function(e){return!this.$H||!e||!r8(this.$H.G9,e.G9)},p.w7=function(e){if(!this.Vnt)return!1;var r=this.Vnt.j1,s=new mo([r.xp,r.Up]),o=this.Qnt.nnt,u=o.jC(e);return u<0?s.HD(e,.001):s.ZC(e,o.EC(u),!0,!0,.001)},o=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c;return iO.wrap(function(e){for(var f,l,p,v;;)switch(e.prev=e.next){case 0:if(e.prev=1,rT(r),this.tit(),!this.nit()){e.next=7;break}return e.abrupt("break",53);case 7:return s=this.iit(),e.next=10,this.Rnt(s,r);case 10:if(void 0!==(o=e.sent)){e.next=13;break}return e.abrupt("break",53);case 13:if(this.Vnt=o,f=this.Vnt,l=void 0,p=void 0,v=void 0,p=(l=f.F0).ZJ,v=TW(f.j1)?p.O1(f.j1):f.j1,p.A1(v,l.E0.I3())){e.next=18;break}return e.next=17,this.rit(this.Vnt,r);case 17:case 45:return e.abrupt("continue",0);case 18:return e.next=20,this.eit(s,this.Vnt.j1,r);case 20:return e.next=22,this.uit(this.Vnt.F0,r);case 22:return this.$H=e.sent,e.next=25,this.ltt(this.Vnt,r);case 25:return u=e.sent,a=this.Qnt.rp,h=this.Wnt,e.next=30,this.sit(u,r);case 30:this.Wnt=e.sent,c=this.Qnt.rp,this.oit(h,this.Vnt,a,c),e.next=48;break;case 35:if(e.prev=35,e.t0=e.catch(1),!(e.t0 instanceof SK)){e.next=42;break}return this.TH(e.t0.bC,e.t0.EC,e.t0.F0),e.abrupt("continue",0);case 42:if(!(e.t0 instanceof Rc)){e.next=46;break}return e.next=45,rU(this.Ynt.ait*b.pow(2,this.Gnt-1),r);case 46:throw this.jnt=mo.aP(),e.t0;case 48:return e.prev=48,this.Vnt=void 0,e.finish(48);case 51:e.next=0;break;case 53:case"end":return e.stop()}},e,this,[[1,35,48,51]])})),p.N7=function(e){return o.apply(this,arguments)},p.oit=function(e,r,s,o){var u,a=o.zC(s),h=r.F0.N0(r.j1),c=r.F0.C0(r.j1),f=r.j1.xp,l=r.j1.Up;h&&(f=b.min(f,r.F0.U0.bC-.05)),c&&(l=b.max(l,r.F0.U0.EC));var p=new mo([f,l]).zC(o);if(0===a.Zg)return 0===this.jnt.Zg&&this.jnt.qC(new mo([s.EC(s.Zg-1),f])),this.jnt=this.jnt.qC(p),void this.b7.bnt(this.jnt);if(h||this.jnt.Zg>0){var v=p.UC(new mo([f,a.bC(0)]));this.hit(v)}var d=a.FC().UC(new mo([a.bC(0),a.EC(a.Zg-1)]));if(this.hit(d),c){var y=p.UC(new mo([a.EC(a.Zg-1),l]));this.hit(y)}if(this.jnt.Zg>0){var g=this.jnt.zC(a);this.hit(g),this.jnt=mo.aP()}var m=r.F0.ZJ,w=TW(r.j1)?void 0:m.b1(r.j1),k=null!=(u=null==e?void 0:e.j1)?u:this.cit(w)?w:void 0;if(k){var E=this.b7.mnt(k.xp,k.Up);if(E.length>0){var A=new mo([E[E.length-1].knt,a.bC(0)]);this.hit(A)}}var x=TW(r.j1)?void 0:m.g1(r.j1);if(x&&this.cit(x)){var T=this.b7.mnt(x.xp,x.Up);if(T.length>0){var C=new mo([a.EC(a.Zg-1),T[0].ynt]);this.hit(C)}}},p.cit=function(e){return!!e&&this.b7.mnt(e.xp,e.Up).length>0},p.hit=function(e){for(var r=e.zC(this.Qnt.rp),s=0;s<r.Zg;s++)r.bC(s)!==r.EC(s)&&this.Jnt.wH(r.bC(s),r.EC(s))},p.fit=function(e){throw new Rc},p.tit=function(){var e;if(!(this.jnt.Zg>0)){var r=this.Qnt.nnt.qC(null!=(e=this.Qnt.kH.BC().rP(this.Qnt.rnt))?e:mo.aP());this.b7.fnt(r),this.qnt&&!this.vit(this.qnt)&&(this.qnt=void 0),this.yh(new Rh(this.b7.yg.P4,this.b7.pnt()))}},p.nit=function(){return this.Wnt&&this.Wnt.F0.C0(this.Wnt.j1)?(this.Jnt.bH(),!0):(this.qnt&&this.qnt.F0.C0(this.qnt.j1)&&this.vit(this.qnt)&&this.Jnt.bH(),!!this.Qnt.int)},p.vit=function(e){return this.b7.Tnt.YC(e.dit,e._it)},p.git=function(e,r,s){(!this.qnt||this.qnt.j1.Up<e.j1.Up)&&(this.qnt=iD({},e,{dit:r,_it:s}))},p.iit=function(){return this.Qnt.rnt},u=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return rT(s),o=this.Wnt?this.Wnt.F0:void 0,e.next=4,this.Znt.Snt(r,o,s);case 4:if(u=e.sent){e.next=8;break}return e.abrupt("return",void 0);case 8:return e.abrupt("return",u);case 10:case"end":return e.stop()}},e,this)})),p.Rnt=function(e,r){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=(o=r.F0).ZJ,a=TW(r.j1)?u.O1(r.j1):r.j1,h=o.E0.I3(),!((c=u._1(a))&&c.getTime()<=h.getTime())){e.next=7;break}return e.abrupt("return",this.fit(CP.V4));case 7:return f=u.w1(a).getTime()-h.getTime(),e.next=11,r_(function(e){return P.race([rU(f,e),o.Nh(TM.c0,e)])},s);case 11:case"end":return e.stop()}},e,this)})),p.rit=function(e,r){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function r(s,o){var u,a;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(rT(o),u=s.M0){r.next=4;break}return r.abrupt("return",this.$H);case 4:if(r.prev=4,s.L0){r.next=12;break}return r.next=8,this.Knt._tt(u,o);case 8:return a=r.sent,r.next=11,a.ptt(o);case 11:s.L0=r.sent;case 12:r.next=20;break;case 14:if(r.prev=14,r.t0=r.catch(4),rC(r.t0),!vG(r.t0)){r.next=19;break}return r.abrupt("return",this.fit(CP.Q4));case 19:throw new om(e.ErrorCode.MEDIA_LOAD_ERROR,r.t0.message,r.t0);case 20:if(rT(o),r.prev=21,!this.$nt(s.L0)){r.next=25;break}return r.next=25,this.Jnt.Hnt(s.L0,s,o);case 25:r.next=33;break;
1case 27:if(r.prev=27,r.t1=r.catch(21),rC(r.t1),!vG(r.t1)){r.next=32;break}return r.abrupt("return",this.fit(CP.Q4));case 32:throw new om(e.ErrorCode.MEDIA_DECODE_ERROR,r.t1.message,r.t1);case 33:return r.abrupt("return",s.L0);case 34:case"end":return r.stop()}},r,this,[[4,14],[21,27]])})),p.uit=function(e,r){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function r(s,o){var u;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,rT(o),r.next=4,this.Knt.ltt(s,o);case 4:return u=r.sent,this.znt=void 0,this.Gnt=0,r.abrupt("return",u);case 10:if(r.prev=10,r.t0=r.catch(0),rC(r.t0),!(r.t0 instanceof S$)){r.next=16;break}return this.wit(s,r.t0),r.abrupt("return",this.fit(CP.V4));case 16:throw new om(e.ErrorCode.MEDIA_LOAD_ERROR,r.t0.message,r.t0);case 17:case"end":return r.stop()}},r,this,[[0,10]])})),p.ltt=function(e,r){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f,l,p,v,d,y;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(u=this.b7.mnt(s.xp,s.Up),a=this.Qnt.nnt.rP(r),h=mo.aP(),c=0;c<u.length;c++)f=u[c],rT(o),l=f.ynt,p=f.knt,(v=a&&a.ZC(l,p)?b.max(l,a.EC(0)):l)<(d=p)&&(h=h.qC(new mo([v,d])));y=0;case 5:if(!(y<h.Zg)){e.next=11;break}return e.next=8,this.Jnt.Xnt(h.bC(y),h.EC(y),o);case 8:y++,e.next=5;break;case 11:this.tit();case 12:case"end":return e.stop()}},e,this)})),p.eit=function(e,r,s){return f.apply(this,arguments)},l=P.coroutine(iO.mark(function r(s,o){var u;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,rT(o),r.next=4,this.Jnt.h6(s.Att,s.j1,s.F0,o);case 4:return u=r.sent,this.yit(s,u.dit,u._it),this.git(s,u.dit,u._it),r.abrupt("return",s);case 11:if(r.prev=11,r.t0=r.catch(0),rC(r.t0),!vG(r.t0)){r.next=17;break}return this.kit(new S$(r.t0,s.j1,s.F0),0),r.abrupt("return",this.fit(CP.V4));case 17:throw new om(e.ErrorCode.MEDIA_DECODE_ERROR,r.t0.message,r.t0);case 18:case"end":return r.stop()}},r,this,[[0,11]])})),p.sit=function(e,r){return l.apply(this,arguments)},p.yit=function(e,r,s){var o=e.F0,u=e.j1;this.Ant(u,o,r,s)},p.Ant=function(e,r,s,o){this.b7.Ant({_nt:e.xp,gnt:e.Up,ynt:s,knt:o,j6:!0},r),this.Jnt.yH(s,o)},p.TH=function(e,r,s){var o=new mo([e,r]);s?this.b7.wH(o,s):this.b7.bnt(o),this.Jnt.wH(e,r)},p.wit=function(e,r){this.znt&&(s=this.znt).F0===e.F0&&s.j1.xp===e.j1.xp?this.Gnt++:(this.znt=e,this.Gnt=1);var s,o=this.Ynt.mit;this.Gnt===o&&(this.kit(r,o),this.pit(e,r))},p.pit=function(e,r){if(r&&r.cause){var s=r.cause;if(s instanceof hM||vK(s)&&s.c_.wl>=400&&s.c_.wl<500){var o=new mo([e.j1.xp,e.j1.Up]);e.F0?this.b7.wH(o,e.F0):this.b7.bnt(o);var u=this.Qnt.rp;this.oit(this.Wnt,e,u,u)}}},p.kit=function(e,r){var s=e.Vtt,o=this.b7.yg.P4,u=this.b7.yg.gg,a=e.qtt.F0&&e.qtt.F0.gg,h=new Ra(s,e.message,o,u,a,r);this.yh(h)},p.Yg=function(){this.$H=void 0,this.Wnt=void 0,this.znt=void 0,this.Gnt=0},p.Kl=function(){this.Yg(),this.qnt=void 0,this.Knt.Eh(Rf,this.wh),this.Knt.Kl()},M(s,[{key:"C7",get:function(){return this.Vnt}},{key:"P7",get:function(){return this.Wnt}},{key:"L7",get:function(){return this.Znt.L7},set:function(e){this.Znt.L7=e}},{key:"P4",get:function(){return this.b7.yg.P4}}]),s}(rB),Rp={ait:250,mit:4},Rv=0,Rd=function(){function e(e,r,s,o,u,a,h){this.$tt=e,this.wq=r,this.tnt=s,this.ES=o,this.pP=u,this.Ait=a,this.X5=h}return e.prototype.HZ=function(e){var r=Rv++,s=this.$tt.Tit,o=new S0(e),u=new SL(s,this.Ait),a=new Sz(this.$tt,this.wq,this.tnt,this.pP),h=Ro.HZ(r,this.$tt,o,this.pP,u,this.ES,this.X5),c=this.Eit(),f=new Rl(r,Rp,o,a,h,this.Ztt(c,u,this.Ait),new Ru(this.$tt));return new SA(r,e.B0,o,f,this.wq)},e}(),Ry=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.Eit=function(){return new ST(this.ES)},s.Ztt=function(e,r,s){return(new SQ).Ztt(e,this.$tt,r,s,this.X5)},r}(Rd),Rg=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.Sit=function(r,s){var o={P4:l4.Ku,B0:s,O$:s.O$,gg:r.gg};return e.prototype.HZ.call(this,o)},s.Eit=function(){return new SG(this.ES)},s.Ztt=function(e,r){return(new SQ).Ztt(e,this.$tt,r,!1,this.X5)},r}(Rd),Rm=function(e){function r(r,s,o,u,a,h){var c;return(c=e.call(this,r,s,o,u,a)||this).TS=void 0,c.TS=h,c}j(r,e);var s=r.prototype;return s.Iit=function(e,r,s,o,u,a){var h,c,f=a.O$.reduce(function(e,r){return e||r.hw},void 0),l=null!=(h=null!=f?f:null==(c=a.hw)?void 0:c.toString())?h:"";return this.TS.RS(e,l,r,s,o,u)},s.Kl=function(){for(var r=0,s=this.iT.Qg;r<s.length;r++){var o=s[r];this.TS.CS(o)}return e.prototype.Kl.call(this)},r}(function(e){function r(r,s,o,u,a){var h;
1return(h=e.call(this)||this).Rit=0,h._P=1,h.Nit=void 0,h.Dit={},h.Cit={},h.Pit=0,h.ES=void 0,h.X5=void 0,h.wq=void 0,h.pP=void 0,h.Bit=void 0,h.Oit=function(e){},h.wq=r,h.ES=s,h.pP=o,h.Bit=u,h.X5=a,h}j(r,e);var s,o,u=r.prototype;return u.bH=function(){},u.ent=function(){return this.nnt.HD(this.EC)},s=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c,f,l,p,v,d,y;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.Kd(u);case 2:for(a=e.sent,h=this.findTrackForRepresentation(o),c=this.Dit[h.cw],p=new mo([f=s.xp,l=s.Up]),c||(this.Dit[h.cw]=mo.aP(),this.Cit[h.cw]=mo.aP()),this.sX(u),v=this.g9(a,s,o,h),d=0;d<v.length;d++)y=v[d],h.DS(y);return this.Dit[h.cw]=this.Dit[h.cw].qC(p),e.abrupt("return",{dit:f,_it:l});case 14:case"end":return e.stop()}},e,this)})),u.h6=function(e,r,o,u){return s.apply(this,arguments)},u.sX=function(e){for(var r=bv(this.wq.vy,void 0,void 0,this.rp,this.pP.VM,this.pP.zM),s=0;s<r.length;s++){var o=r[s],u=o[0],a=o[1];rN(this.Xnt(u,a,e))}},u._9=function(e,r,s){return this.Bit._9(e,r,s)},u.g9=function(e,r,s,o){return this.Bit.g9(e,r,s,o)},u.Xnt=function(e,r,s){for(var o=new mo([e,r]),u=0,a=this.iT.Qg;u<a.length;u++){for(var h=a[u],c=[],f=0,l=h.Tw.Qg;f<l.length;f++){var p=l[f];p.xp>=e&&p.Up<=r?c.push(p):o=o.zC(new mo([p.xp,p.Up]))}for(var v=0;v<c.length;v++){var d=c[v];h.bS(d)}var y=this.Dit[h.cw];y&&(this.Dit[h.cw]=y.zC(o))}return P.resolve()},u.wH=function(e,r){},u.yH=function(e,r){},u.lS=function(r){if(e.prototype.lS.call(this,r),this.Bit.Yg(),this.Nit&&(this.Nit.Kl(),this.Nit=void 0),this._4){var s=this.J9(this._4);this.Nit=new Rg(this,this.wq,this.wq,this.ES,this.pP,!1,this.X5).Sit(this._4,s),this.Nit.kh(fE.mw,this.Oit),this.Nit.bC(CP.L4)}},u._S=function(r){this._4===r&&(e.prototype._S.call(this,r),this.Nit&&(this.Nit.Kl(),this.Nit=void 0))},u.Y9=function(e){var r,s,o,u,a=(s=(r=e.O$&&e.O$.length>0&&e.O$[0])&&vZ(r.e$),o=vZ(e.e$),u=e.FO===s4,s||o||u?po.TTML:e.FO===s8||v2(e.FO,e.e$)?po.WEBVTT:po.DEFAULT);if(!a)throw new y("Unknown TextTrack type for Representation");return this.Iit(rl(e.L$.filter(function(e){return"urn:mpeg:dash:role:2011"===e.OJ}).map(function(e){return e.gs}).filter(z),"caption")?vV.wS:vV.ob,"",e.z0,!1,a,e)},o=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype.Yg.call(this);case 2:if(!this.Nit){r.next=7;break}return r.next=5,this.Nit.Yg(CP.e5);case 5:this.Nit.Eh(fE.mw,this.Oit),this.Nit=void 0;case 7:this.m4=void 0,this.Dit={},this.Cit={};case 10:case"end":return r.stop()}},r,this)})),u.Yg=function(){return o.apply(this,arguments)},u.Lit=function(){this.Dit={},this.Cit={}},u.findTrackForRepresentation=function(e){for(var r=0,s=this.iT.Qg;r<s.length;r++){var o=s[r],u=this.J9(o);if(u&&Sp.i7(u)===e)return o}},M(r,[{key:"OD",get:function(){var e=this.wq.vy;return this.nnt.rP(e,.01)}},{key:"Mit",get:function(){return this._4&&this.Dit[this._4.cw]?this.Dit[this._4.cw]:mo.aP()}},{key:"xit",get:function(){return this._4&&this.Cit[this._4.cw]?this.Cit[this._4.cw]:mo.aP()}},{key:"unt",get:function(){return new mo([0,1/0])}},{key:"rp",get:function(){return this.Mit}},{key:"kH",get:function(){return this.Nit?this.Nit.O7.kH.vnt:mo.aP()}},{key:"nnt",get:function(){return Sm(this.rp,this.kH).WC(2*this.Uit)}},{key:"bC",get:function(){return this.m4?this.m4.U0.bC:NaN}},{key:"EC",get:function(){return this.m4?this.m4.U0.EC:NaN}},{key:"_y",get:function(){var e=this.EC;return!!e&&this.wq.vy>=e}},{key:"Uit",get:function(){var e,r,s=this.n7();return s?1/(null!=(e=this._4&&(null==s||null==(r=s.a$)?void 0:r.Dy()))?e:25):.04}},{key:"yT",get:function(){return this.Rit}},{key:"Tit",get:function(){return l4.Ku}},{key:"py",get:function(){return this._P},set:function(e){this._P=e}},{key:"_p",get:function(){return this.xit}},{key:"wp",get:function(){if(!this._4)return mo.oP(0);var e=this.J9(this._4),r=null==e?void 0:e.Y0,s=null==e?void 0:e.j0;return void 0===s||void 0===r?mo.oP(0):new mo([s,b.max(r,this.wq.vy)]).BC()}},{key:"Lo",get:function(){return this.Pit}}]),r}(Sp)),Rw=function(){function e(e,r,s,o,u){this.Fit=[],this.Rm=new Ea([]),this.TS=void 0,this.wq=void 0,this.ES=void 0,this.pP=void 0,this.X5=void 0,this.wq=e,this.ES=r,this.pP=s,this.X5=o,this.TS=u}var r,s,o,u=e.prototype;return r=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(var u,a;;)switch(e.prev=e.next){case 0:if(r.Ua===l4.Ku){e.next=2;break}return e.abrupt("return");case 2:if(u=r.FO,!(s=vZ(a=r.e$)||u===s4||u===s8?new Sc:v2(u,a)?new Sl:void 0)){e.next=9;break}return o=this.Hit(s),this.Xit(o),e.next=8,o.bc(r);case 8:return e.abrupt("return",o);case 9:case"end":return e.stop()}},e,this)})),u.NS=function(e){return r.apply(this,arguments)},u.Hit=function(e){return new Rm(this.wq,this.ES,this.pP,e,this.X5,this.TS)},u.Xit=function(e){this.Fit.push(e),this.Rm.aW(e.iT)},s=P.coroutine(iO.mark(function e(){var r,s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=0,s=this.Fit.slice();case 1:if(!(r<s.length)){e.next=8;break}return o=s[r],e.next=5,o.Yg();case 5:r++,e.next=1;break;case 8:rv(this.Fit),this.Rm.Yg();case 10:case"end":return e.stop()}},e,this)})),u.Yg=function(){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(){var r,s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=0,s=this.Fit;case 1:if(!(r<s.length)){e.next=8;break}return o=s[r],e.next=5,o.Kl();case 5:r++,e.next=1;break;case 8:rv(this.Fit),this.Rm.Kl();case 10:case"end":return e.stop()}},e,this)})),u.Kl=function(){return o.apply(this,arguments)},M(e,[{key:"Om",get:function(){return this.Rm}}]),e}(),Rb=function(e){function r(){return e.call(this,CU.b5)||this}return j(r,e),r}(rX),Rk=function(e){function r(){return e.call(this,CU.p5)||this}return j(r,e),r}(rX),RE=function(r){function s(s,o,u,a,h,c,f,l,p){var v;return(v=r.call(this)||this).bp=void 0,v.Sm=new l6,v.Im=new l6,v.Rm=void 0,v.TS=void 0,v.Vit=void 0,v.ES=void 0,v.pP=void 0,v.X5=void 0,v.JR=void 0,v.E6=void 0,v.V0=void 0,v.Wit=[],v.qit=[],v.Git=new rE,v.zit=!0,v.Fit=[],v.rD=void 0,v.nI=void 0,v.jit=void 0,v.Yit=O(function(){v.yh(new kE(v.vy))},350),v.Qit=function(r){var s=r.lI;if(s){for(var o=0,u=v.n9;o<u.length;o++)if((u[o].B0.s$||[]).some(function(e){return e.WI&&r7(sW(s),wN(e.WI))}))return void v.yh(new dc(new lz(e.ErrorCode.CONTENT_PROTECTION_OUTPUT_RESTRICTED,"Content unavailable due to DRM restrictions")))}},v.ES=s,v.pP=o,v.X5=u,v.JR=a,v.rD=h,v.E6=c,v.bp=pt++,v.Wit=[],v.qit=[],v.V0=f,v.nI=l,v.TS=p,v.Vit=new Rw(a,s,o,u,p),v.Rm=new Ea([v.Vit.Om]),v.rD.kh(ul.Tv,v.Qit),v.V0.kh(TM.v0,v.wh),v}j(s,r);var o,u,a,h,c,f,l,p,v,d,y=s.prototype;return o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Zit(r);case 2:this.rD.iI(this.nI);case 3:case"end":return e.stop()}},e,this)})),y.iI=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){var s,o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(s=0;s<r.length;s++)o=r[s],this.Kit(o);return e.next=3,this.bc();case 3:u=0,a=this.V0.n3;case 4:if(!(u<a.length)){e.next=16;break}if((h=a[u]).Ua!==l4.Ku){e.next=13;break}if(h.O$&&0!==h.O$.length){e.next=11;break}this.yh(new CV("No supported representation found in the AdaptationSet with mimetype : "+h.Ua)),e.next=13;break;case 11:return e.next=13,this.Vit.NS(h);case 13:u++,e.next=4;break;case 16:case"end":return e.stop()}},e,this)})),y.Zit=function(e){return u.apply(this,arguments)},y.I7=function(){return this.Fit.some(function(e){return e.I7()})},y.ent=function(){return 0!==this.Fit.length&&this.Fit.every(function(e){return e.ent()})},y.Jit=function(){this.P8()&&this.yh(new Rk)},y.$it=function(e){e.kh([fE.mw,ul.uv,ul.vv,ul._v,ul.yv,ul.xf],this.wh),e.kh(kw.aH,this.Yit)},a=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:rT(r),s=0,o=this.Fit;case 2:if(!(s<o.length)){e.next=10;break}return u=o[s],e.next=6,u.Kl();case 6:rT(r);case 7:s++,e.next=2;break;case 10:this.Fit.length=0;case 11:case"end":return e.stop()}},e,this)})),y.trt=function(e){return a.apply(this,arguments)},y.P8=function(){if(this.I7()||!this.ent())return!1;var e=this.rp;if(0===e.Zg)return!1;var r=this.vy;if(this.f9)return e.bC(e.Zg-1)<=r;var s=e.UC(this.unt);if(0===s.Zg)return!0;var o=s.bC(s.Zg-1),u=s.EC(s.Zg-1)+.1;return o<=r&&r<=u},h=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.zit){e.next=2;break}return e.abrupt("return");
1case 2:return this.zit=!0,e.next=5,P.all(this.Fit.map(function(e){return e.a8(r)}));case 5:case"end":return e.stop()}},e,this)})),y.a8=function(e){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.zit){e.next=2;break}return e.abrupt("return");case 2:return this.zit=!1,e.next=5,P.all(this.Fit.map(function(e){return e.l8(r)}));case 5:case"end":return e.stop()}},e,this)})),y.l8=function(e){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),this.rD.Eh(ul.Tv,this.Qit),this.V0.Eh(TM.v0,this.wh),this.Sm.Kl(),this.Im.Kl(),e.next=7,this.nrt();case 7:return e.next=9,this.Vit.Kl();case 9:return this.Rm.Kl(),null==(s=this.Git)||s.hh(),e.next=13,P.all(this.Fit.map(function(e){return e.Kl(r)}));case 13:if(rv(this.Fit),!this.jit){e.next=18;break}return e.next=17,this.jit.catch(I);case 17:this.jit=void 0;case 18:case"end":return e.stop()}},e,this)})),y.Kl=function(e){return f.apply(this,arguments)},y.Kit=function(e){this.Wit.push(e),e.kh("l4",this.wh);for(var r=e.Ua===l4.Xl?this.Sm:this.Im,s=0,o=e.iT;s<o.length;s++){var u=o[s];r.Gg(u)}},y.irt=function(e){for(var r=e.Ua===l4.Xl?this.Sm:this.Im,s=0,o=e.iT;s<o.length;s++){var u=o[s];r.zg(u),u.Kl()}e.Kl(),rc(this.Wit,e)},l=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=this.Wit.length-1;r>=0;r--)this.irt(this.Wit[r]);return e.next=3,this.bc();case 3:case"end":return e.stop()}},e,this)})),y.nrt=function(){return l.apply(this,arguments)},p=P.coroutine(iO.mark(function r(o){var u;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,0!==(u=s.rrt(this.Wit)).length){r.next=4;break}return r.abrupt("return");case 4:if(!rd(u,this.qit)){r.next=6;break}return r.abrupt("return");case 6:return this.qit=u,this.Git.hh(),this.Git=new rE,o&&this.Git.fh(o),this.jit=this.q_(u,this.jit,this.Git.dh),r.next=13,this.jit;case 13:this.yh(new Rb),r.next=19;break;case 16:r.prev=16,r.t0=r.catch(0),rx(r.t0)||this.yh(new lm(new om(e.ErrorCode.MEDIA_LOAD_ERROR,r.t0.message,r.t0)));case 19:return r.prev=19,this.Git.rh(),r.finish(19);case 22:case"end":return r.stop()}},r,this,[[0,16,19,22]])})),y.bc=function(e){return p.apply(this,arguments)},v=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!s){e.next=3;break}return e.next=3,s.catch(I);case 3:return e.prev=3,rT(o),e.next=7,this.ert(r,o);case 7:e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),rC(e.t0);case 13:case"end":return e.stop()}},e,this,[[3,9]])})),y.q_=function(e,r,s){return v.apply(this,arguments)},d=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f,l,p,v;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:rT(s),o=[],u=this.Fit.slice(),a=r.slice(),rv(this.Fit),h=0;case 6:if(!(h<u.length)){e.next=22;break}if(!(f=(c=u[h])._4)||!rl(a,f)){e.next=15;break}this.Fit.push(c),o.push(c.bc(f,s)),rc(a,f),e.next=19;break;case 15:return this.Rm.cW(c.Om),e.next=18,c.Kl();case 18:rT(s);case 19:h++,e.next=6;break;case 22:for(l=0;l<a.length;l++)p=a[l],v=this.urt(p.P4),this.Rm.aW(v.Om),this.Fit.push(v),this.$it(v),o.push(v.bc(p,s));return e.next=25,P.all(o);case 25:this.ort();case 26:case"end":return e.stop()}},e,this)})),y.ert=function(e,r){return d.apply(this,arguments)},s.rrt=function(e){for(var r=e.map(function(e){return e._4}).filter(z),s=[],o=0;o<r.length;o++)!function(e){var o=r[e];s.some(function(e){return e.P4===o.P4})||s.push(o)}(o);return s},M(s,[{key:"cw",get:function(){return this.bp}},{key:"aw",get:function(){return this.Fit.some(function(e){return e.aw})}},{key:"Pm",get:function(){return this.Sm}},{key:"rp",get:function(){if(0===this.Fit.length)return mo.aP();for(var e=this.Fit.map(function(e){return e.rp}),r=new mo([0,1/0]),s=0;s<e.length;s++){var o=e[s];r=r.UC(o)}if(0===r.Zg)return r;if(this.ent()){var u=r.UC(this.unt);if(0===u.Zg)return r;for(var a=u.EC(u.Zg-1),h=0,c=0,f=this.Fit;c<f.length;c++){var l=f[c];h=b.max(h,l.art)}a<=h&&(r=r.qC(new mo([a,h],[!0,!0])))}return r}},{key:"hrt",get:function(){return this.rD.Hc}},{key:"vy",get:function(){return this.JR.vy}},{key:"crt",get:function(){return this.nI}},{key:"EC",get:function(){if(this.f9){var e=this.ly;if(!A(e)&&0x1fffffffffffff!==e)return e}if(!this.Fit.length)return NaN;for(var r=0,s=0,o=this.Fit;s<o.length;s++){var u=o[s];r=b.max(r,u.EC)}return r}},{key:"f9",get:function(){var e=this.V0.E0;if(e.Ua===x3._N)return!1;var r=e.i0;return 0!==r.length&&this.V0===r[r.length-1]}},{key:"wp",get:function(){if(!this.Fit.length)return mo.aP();for(var e=new mo([0,1/0]),r=0,s=this.Fit;r<s.length;r++){var o=s[r];e=e.UC(o.wp)}if(e.Zg>0&&this.f9&&isFinite(this.ly)){var u=this.ly,a=e.EC(e.Zg-1);u>a&&(e=e.qC(new mo([a,u]).BC()))}return e}},{key:"uC",get:function(){return this.V0}},{key:"Om",get:function(){return this.Rm}},{key:"Bm",get:function(){return this.Im}},{key:"OD",get:function(){var e=this.vy,r=this.rp,s=r.jC(e);if(-1!==s)return{bC:r.bC(s),EC:r.EC(s)}}},{key:"unt",get:function(){return new mo([this.V0.bC,this.f9?1/0:this.V0.EC])}},{key:"t9",get:function(){return this.zit}},{key:"M8",get:function(){return this.Wit.map(function(e){return e._4}).filter(z)}},{key:"n9",get:function(){return this.Fit.map(function(e){return e._4}).filter(z)}}]),s}(rB),RA=[fE.mw,ul.vv,ul._v,ul.yv,ul.xf],Rx=0,RT=function(e){function r(r,s){var o;return(o=e.call(this,ul.uv)||this).representation=r,o.previousRepresentation=s,o}return j(r,e),r}(rX);function RC(e){return"function"==typeof e.qh}function RS(e,r,s){if(!(s&&r.byte>=s)){var o=RC(e)?e.qh(r.byte):e[r.byte];return r.byte+=1,o}}var RR,RL,R_=function(){function e(){this.frt=0,this.vrt=[],this.aS={}}var r=e.prototype;return r.drt=function(e){this.vrt=this.vrt.concat(e.vrt),this.frt+=e.Zg},r.lrt=function(e,r,s){var o=this.frt,u=s-r;u>0&&(this.vrt.push({_rt:r,grt:s,wrt:u,yrt:o,krt:e}),this.frt+=u)},r.qh=function(e){for(var r=0,s=this.vrt;r<s.length;r++){var o=s[r];if(o.yrt<=e&&e<o.yrt+o.wrt)return o.krt[e+o._rt-o.yrt]}},r.mrt=function(e,r){for(var s=r,o=0,u=this.vrt;o<u.length;o++)for(var a=u[o],h=a.grt,c=a._rt;c<h;c+=1,s+=1)e[s]=a.krt[c];return s},r.prt=function(){for(var e=new x(this.frt),r=0,s=0,o=this.vrt;s<o.length;s++)for(var u=o[s],a=u.grt,h=u._rt;h<a;h+=1,r+=1)e[r]=u.krt[h];return e},r.tc=function(r){for(var s=new e,o=0,u=this.vrt;o<u.length;o++){var a=u[o];s.lrt(a.krt,a._rt,a.grt)}return s.aS=r||iD({},this.aS),s},M(e,[{key:"Zg",get:function(){return this.frt},set:function(e){var r=this.vrt,s=this.frt-e;if(!(e>=this.frt))if(this.frt=e,0!==e)for(var o=r.length-1;o>=0;o-=1){var u=r[o];if(s<=u.wrt)return u.grt-=s,u.wrt-=s,void(r.length!==o+1&&(r.length=o+1));s-=u.wrt}else r.length=0}},{key:"Fs",get:function(){for(var e=Array(this.frt),r=0,s=0,o=this.vrt;s<o.length;s++)for(var u=o[s],a=u.grt,h=u._rt;h<a;h+=1,r+=1)e[r]=u.krt[h];return e}}]),e}();function RP(e){var r=e.brt,s={byte:e.Trt},o=e.Ert,u=RS(r,s,o);if(255===u&&(s.byte+=1),181===u){var a=function(e,r){for(var s=0,o=2;o>0;)o-=1,s=256*s+RS(e,r);return s}(r,s);if(a===RL.Srt||a===RL.Irt){if(a===RL.Irt&&"GA94"!==function(e,r){for(var s="",o=4;o>0;)o-=1,s+=function(e,r){var s=RS(e,r,void 0);if(!A(s))return String.fromCharCode(s)}(e,r);return s}(r,s))return;if(3===RS(r,s,o))return a===RL.Srt&&(s.byte+=1),e.Rrt=s.byte,e}}}function RI(e){return 4===e.Nrt}(RM=RL||(RL={}))[RM.Srt=47]="Srt",RM[RM.Irt=49]="Irt";var RN=function(e){function r(){return e.call(this)||this}return j(r,e),r.prototype.Crt=function(e){for(var r=0;r<e.length;r++){var s=e[r];this.hQ(s.kQ,s)}},r}(xv);function RO(e){if("und"!==e)for(var r=e.toLowerCase(),s=0;s<RD.length;s++){var o=RD[s];if(o[1]===r||o[2]===r||o["2T"]===r||o["2B"]===r||o[3]===r)return o}}var RD=[{ds:"Abkhaz",yA:"Аҧсуа",1:"ab",2:"abk","2T":"abk","2B":"abk",3:"abk"},{ds:"Afar",yA:"Afaraf",1:"aa",2:"aar","2T":"aar","2B":"aar",3:"aar"},{ds:"Afrikaans",yA:"Afrikaans",1:"af",2:"afr","2T":"afr","2B":"afr",3:"afr"},{ds:"Akan",yA:"Akan",1:"ak",2:"aka","2T":"aka","2B":"aka",3:"aka"},{ds:"Albanian",yA:"Shqip",1:"sq",2:"sqi","2T":"sqi","2B":"alb",3:"sqi"}
1,{ds:"Amharic",yA:"አማርኛ",1:"am",2:"amh","2T":"amh","2B":"amh",3:"amh"},{ds:"Arabic",yA:"العربية",1:"ar",2:"ara","2T":"ara","2B":"ara",3:"ara"},{ds:"Aragonese",yA:"Aragon\xe9s",1:"an",2:"arg","2T":"arg","2B":"arg",3:"arg"},{ds:"Armenian",yA:"Հայերեն",1:"hy",2:"hye","2T":"hye","2B":"arm",3:"hye"},{ds:"Assamese",yA:"অসমীয়া",1:"as",2:"asm","2T":"asm","2B":"asm",3:"asm"},{ds:"Avaric",yA:"Авар",1:"av",2:"ava","2T":"ava","2B":"ava",3:"ava"},{ds:"Avestan",yA:"avesta",1:"ae",2:"ave","2T":"ave","2B":"ave",3:"ave"},{ds:"Aymara",yA:"Aymar",1:"ay",2:"aym","2T":"aym","2B":"aym",3:"aym"},{ds:"Azerbaijani",yA:"Azərbaycanca",1:"az",2:"aze","2T":"aze","2B":"aze",3:"aze"},{ds:"Bambara",yA:"Bamanankan",1:"bm",2:"bam","2T":"bam","2B":"bam",3:"bam"},{ds:"Bashkir",yA:"Башҡортса",1:"ba",2:"bak","2T":"bak","2B":"bak",3:"bak"},{ds:"Basque",yA:"Euskara",1:"eu",2:"eus","2T":"eus","2B":"baq",3:"eus"},{ds:"Belarusian",yA:"Беларуская",1:"be",2:"bel","2T":"bel","2B":"bel",3:"bel"},{ds:"Bengali",yA:"বাংলা",1:"bn",2:"ben","2T":"ben","2B":"ben",3:"ben"},{ds:"Bihari",yA:"भोजपुरी",1:"bh",2:"bih","2T":"bih","2B":"bih",3:"bih"},{ds:"Bislama",yA:"Bislama",1:"bi",2:"bis","2T":"bis","2B":"bis",3:"bis"},{ds:"Bosnian",yA:"Bosanski",1:"bs",2:"bos","2T":"bos","2B":"bos",3:"bos"},{ds:"Breton",yA:"Brezhoneg",1:"br",2:"bre","2T":"bre","2B":"bre",3:"bre"},{ds:"Bulgarian",yA:"Български",1:"bg",2:"bul","2T":"bul","2B":"bul",3:"bul"},{ds:"Burmese",yA:"မြန်မာဘာသာ",1:"my",2:"mya","2T":"mya","2B":"bur",3:"mya"},{ds:"Catalan",yA:"Catal\xe0",1:"ca",2:"cat","2T":"cat","2B":"cat",3:"cat"},{ds:"Chamorro",yA:"Chamoru",1:"ch",2:"cha","2T":"cha","2B":"cha",3:"cha"}
1,{ds:"Chechen",yA:"Нохчийн",1:"ce",2:"che","2T":"che","2B":"che",3:"che"},{ds:"Chichewa",yA:"Chichewa",1:"ny",2:"nya","2T":"nya","2B":"nya",3:"nya"},{ds:"Chinese",yA:"中文",1:"zh",2:"zho","2T":"zho","2B":"chi",3:"zho"},{ds:"Chuvash",yA:"Чӑвашла",1:"cv",2:"chv","2T":"chv","2B":"chv",3:"chv"},{ds:"Cornish",yA:"Kernewek",1:"kw",2:"cor","2T":"cor","2B":"cor",3:"cor"},{ds:"Corsican",yA:"Corsu",1:"co",2:"cos","2T":"cos","2B":"cos",3:"cos"},{ds:"Cree",yA:"ᓀᐦᐃᔭᐍᐏᐣ",1:"cr",2:"cre","2T":"cre","2B":"cre",3:"cre"},{ds:"Croatian",yA:"Hrvatski",1:"hr",2:"hrv","2T":"hrv","2B":"hrv",3:"hrv"},{ds:"Czech",yA:"Čeština",1:"cs",2:"ces","2T":"ces","2B":"cze",3:"ces"},{ds:"Danish",yA:"Dansk",1:"da",2:"dan","2T":"dan","2B":"dan",3:"dan"},{ds:"Divehi",yA:"Divehi",1:"dv",2:"div","2T":"div","2B":"div",3:"div"},{ds:"Dutch",yA:"Nederlands",1:"nl",2:"nld","2T":"nld","2B":"dut",3:"nld"},{ds:"Dzongkha",yA:"རྫོང་ཁ",1:"dz",2:"dzo","2T":"dzo","2B":"dzo",3:"dzo"},{ds:"English",yA:"English",1:"en",2:"eng","2T":"eng","2B":"eng",3:"eng"},{ds:"Esperanto",yA:"Esperanto",1:"eo",2:"epo","2T":"epo","2B":"epo",3:"epo"},{ds:"Estonian",yA:"Eesti",1:"et",2:"est","2T":"est","2B":"est",3:"est"},{ds:"Ewe",yA:"Eʋegbe",1:"ee",2:"ewe","2T":"ewe","2B":"ewe",3:"ewe"},{ds:"Faroese",yA:"F\xf8royskt",1:"fo",2:"fao","2T":"fao","2B":"fao",3:"fao"},{ds:"Fijian",yA:"Na Vosa Vaka-Viti",1:"fj",2:"fij","2T":"fij","2B":"fij",3:"fij"},{ds:"Finnish",yA:"Suomi",1:"fi",2:"fin","2T":"fin","2B":"fin",3:"fin"},{ds:"French",yA:"Fran\xe7ais",1:"fr",2:"fra","2T":"fra","2B":"fre",3:"fra"},{ds:"Fula",yA:"Fulfulde",1:"ff",2:"ful","2T":"ful","2B":"ful",3:"ful"},{ds:"Galician",yA:"Galego",1:"gl",2:"glg","2T":"glg","2B":"glg",3:"glg"},{ds:"Georgian",yA:"ქართული",1:"ka",2:"kat","2T":"kat","2B":"geo",3:"kat"},{ds:"German",yA:"Deutsch",1:"de",2:"deu","2T":"deu","2B":"ger",3:"deu"},{ds:"Greek",yA:"Ελληνικά",1:"el",2:"ell","2T":"ell","2B":"gre",3:"ell"},{ds:"Guaran\xed",yA:"Ava\xf1e'ẽ",1:"gn",2:"grn","2T":"grn","2B":"grn",3:"grn"},{ds:"Gujarati",yA:"ગુજરાતી",1:"gu",2:"guj","2T":"guj","2B":"guj",3:"guj"},{ds:"Haitian",yA:"Krey\xf2l Ayisyen",1:"ht",2:"hat","2T":"hat","2B":"hat",3:"hat"},{ds:"Hausa",yA:"هَوُسَ",1:"ha",2:"hau","2T":"hau","2B":"hau",3:"hau"},{ds:"Hebrew",yA:"עברית",1:"he",2:"heb","2T":"heb","2B":"heb",3:"heb"},{ds:"Herero",yA:"Otjiherero",1:"hz",2:"her","2T":"her","2B":"her",3:"her"},{ds:"Hindi",yA:"हिन्दी",1:"hi",2:"hin","2T":"hin","2B":"hin",3:"hin"},{ds:"Hiri Motu",yA:"Hiri Motu",1:"ho",2:"hmo","2T":"hmo","2B":"hmo",3:"hmo"},{ds:"Hungarian",yA:"Magyar",1:"hu",2:"hun","2T":"hun","2B":"hun",3:"hun"},{ds:"Interlingua",yA:"Interlingua",1:"ia",2:"ina","2T":"ina","2B":"ina",3:"ina"},{ds:"Indonesian",yA:"Bahasa Indonesia",1:"id",2:"ind","2T":"ind","2B":"ind",3:"ind"},{ds:"Interlingue",yA:"Interlingue",1:"ie",2:"ile","2T":"ile","2B":"ile",3:"ile"},{ds:"Irish",yA:"Gaeilge",1:"ga",2:"gle","2T":"gle","2B":"gle",3:"gle"},{ds:"Igbo",yA:"Igbo",1:"ig",2:"ibo","2T":"ibo","2B":"ibo",3:"ibo"},{ds:"Inupiaq",yA:"I\xf1upiak",1:"ik",2:"ipk","2T":"ipk","2B":"ipk",3:"ipk"},{ds:"Ido",yA:"Ido",1:"io",2:"ido","2T":"ido","2B":"ido",3:"ido"},{ds:"Icelandic",yA:"\xcdslenska",1:"is",2:"isl","2T":"isl","2B":"ice",3:"isl"},{ds:"Italian",yA:"Italiano",1:"it",2:"ita","2T":"ita","2B":"ita",3:"ita"},{ds:"Inuktitut",yA:"ᐃᓄᒃᑎᑐᑦ",1:"iu",2:"iku","2T":"iku","2B":"iku",3:"iku"},{ds:"Japanese",yA:"日本語",1:"ja",2:"jpn","2T":"jpn","2B":"jpn",3:"jpn"},{ds:"Javanese",yA:"Basa Jawa",1:"jv",2:"jav","2T":"jav","2B":"jav",3:"jav"},{ds:"Kalaallisut",yA:"Kalaallisut",1:"kl",2:"kal","2T":"kal","2B":"kal",3:"kal"},{ds:"Kannada",yA:"ಕನ್ನಡ",1:"kn",2:"kan","2T":"kan","2B":"kan",3:"kan"},{ds:"Kanuri",yA:"Kanuri",1:"kr",2:"kau","2T":"kau","2B":"kau",3:"kau"},{ds:"Kashmiri",yA:"كشميري",1:"ks",2:"kas","2T":"kas","2B":"kas",3:"kas"},{ds:"Kazakh",yA:"Қазақша",1:"kk",2:"kaz","2T":"kaz","2B":"kaz",3:"kaz"},{ds:"Khmer",yA:"ភាសាខ្មែរ",1:"km",2:"khm","2T":"khm","2B":"khm",3:"khm"},{ds:"Kikuyu",yA:"Gĩkũyũ",1:"ki",2:"kik","2T":"kik","2B":"kik",3:"kik"},{ds:"Kinyarwanda",yA:"Kinyarwanda",1:"rw",2:"kin","2T":"kin","2B":"kin",3:"kin"},{ds:"Kyrgyz",yA:"Кыргызча",1:"ky",2:"kir","2T":"kir","2B":"kir",3:"kir"},{ds:"Komi",yA:"Коми",1:"kv",2:"kom","2T":"kom","2B":"kom",3:"kom"},{ds:"Kongo",yA:"Kongo",1:"kg",2:"kon","2T":"kon","2B":"kon",3:"kon"},{ds:"Korean",yA:"한국어",1:"ko",2:"kor","2T":"kor","2B":"kor",3:"k
1or"},{ds:"Kurdish",yA:"Kurd\xee",1:"ku",2:"kur","2T":"kur","2B":"kur",3:"kur"},{ds:"Kwanyama",yA:"Kuanyama",1:"kj",2:"kua","2T":"kua","2B":"kua",3:"kua"},{ds:"Latin",yA:"Latina",1:"la",2:"lat","2T":"lat","2B":"lat",3:"lat"},{ds:"Luxembourgish",yA:"L\xebtzebuergesch",1:"lb",2:"ltz","2T":"ltz","2B":"ltz",3:"ltz"},{ds:"Ganda",yA:"Luganda",1:"lg",2:"lug","2T":"lug","2B":"lug",3:"lug"},{ds:"Limburgish",yA:"Limburgs",1:"li",2:"lim","2T":"lim","2B":"lim",3:"lim"},{ds:"Lingala",yA:"Ling\xe1la",1:"ln",2:"lin","2T":"lin","2B":"lin",3:"lin"},{ds:"Lao",yA:"ພາສາລາວ",1:"lo",2:"lao","2T":"lao","2B":"lao",3:"lao"},{ds:"Lithuanian",yA:"Lietuvių",1:"lt",2:"lit","2T":"lit","2B":"lit",3:"lit"},{ds:"Luba-Katanga",yA:"Tshiluba",1:"lu",2:"lub","2T":"lub","2B":"lub",3:"lub"},{ds:"Latvian",yA:"Latviešu",1:"lv",2:"lav","2T":"lav","2B":"lav",3:"lav"},{ds:"Manx",yA:"Gaelg",1:"gv",2:"glv","2T":"glv","2B":"glv",3:"glv"},{ds:"Macedonian",yA:"Македонски",1:"mk",2:"mkd","2T":"mkd","2B":"mac",3:"mkd"},{ds:"Malagasy",yA:"Malagasy",1:"mg",2:"mlg","2T":"mlg","2B":"mlg",3:"mlg"},{ds:"Malay",yA:"Bahasa Melayu",1:"ms",2:"msa","2T":"msa","2B":"may",3:"msa"},{ds:"Malayalam",yA:"മലയാളം",1:"ml",2:"mal","2T":"mal","2B":"mal",3:"mal"},{ds:"Maltese",yA:"Malti",1:"mt",2:"mlt","2T":"mlt","2B":"mlt",3:"mlt"},{ds:"Māori",yA:"Māori",1:"mi",2:"mri","2T":"mri","2B":"mao",3:"mri"},{ds:"Marathi",yA:"मराठी",1:"mr",2:"mar","2T":"mar","2B":"mar",3:"mar"},{ds:"Marshallese",yA:"Kajin M̧ajeļ",1:"mh",2:"mah","2T":"mah","2B":"mah",3:"mah"},{ds:"Mongolian",yA:"Монгол",1:"mn",2:"mon","2T":"mon","2B":"mon",3:"mon"},{ds:"Nauru",yA:"Dorerin Naoero",1:"na",2:"nau","2T":"nau","2B":"nau",3:"nau"},{ds:"Navajo",yA:"Din\xe9 Bizaad",1:"nv",2:"nav","2T":"nav","2B":"nav",3:"nav"},{ds:"Northern Ndebele",yA:"isiNdebele",1:"nd",2:"nde","2T":"nde","2B":"nde",3:"nde"},{ds:"Nepali",yA:"नेपाली",1:"ne",2:"nep","2T":"nep","2B":"nep",3:"nep"},{ds:"Ndonga",yA:"Owambo",1:"ng",2:"ndo","2T":"ndo","2B":"ndo",3:"ndo"},{ds:"Norwegian Bokm\xe5l",yA:"Norsk (Bokm\xe5l)",1:"nb",2:"nob","2T":"nob","2B":"nob",3:"nob"},{ds:"Norwegian Nynorsk",yA:"Norsk (Nynorsk)",1:"nn",2:"nno","2T":"nno","2B":"nno",3:"nno"},{ds:"Norwegian",yA:"Norsk",1:"no",2:"nor","2T":"nor","2B":"nor",3:"nor"},{ds:"Nuosu",yA:"ꆈꌠ꒿ Nuosuhxop",1:"ii",2:"iii","2T":"iii","2B":"iii",3:"iii"},{ds:"Southern Ndebele",yA:"isiNdebele",1:"nr",2:"nbl","2T":"nbl","2B":"nbl",3:"nbl"},{ds:"Occitan",yA:"Occitan",1:"oc",2:"oci","2T":"oci","2B":"oci",3:"oci"},{ds:"Ojibwe",yA:"ᐊᓂᔑᓈᐯᒧᐎᓐ",1:"oj",2:"oji","2T":"oji","2B":"oji",3:"oji"},{ds:"Old Church Slavonic",yA:"Словѣ́ньскъ",1:"cu",2:"chu","2T":"chu","2B":"chu",3:"chu"},{ds:"Oromo",yA:"Afaan Oromoo",1:"om",2:"orm","2T":"orm","2B":"orm",3:"orm"},{ds:"Oriya",yA:"ଓଡି଼ଆ",1:"or",2:"ori","2T":"ori","2B":"ori",3:"ori"},{ds:"Ossetian",yA:"Ирон \xe6взаг",1:"os",2:"oss","2T":"oss","2B":"oss",3:"oss"},{ds:"Panjabi",yA:"ਪੰਜਾਬੀ",1:"pa",2:"pan","2T":"pan","2B":"pan",3:"pan"},{ds:"Pāli",yA:"पाऴि",1:"pi",2:"pli","2T":"pli","2B":"pli",3:"pli"},{ds:"Persian",yA:"فارسی",1:"fa",2:"fas","2T":"fas","2B":"per",3:"fas"},{ds:"Polish",yA:"Polski",1:"pl",2:"pol","2T":"pol","2B":"pol",3:"pol"},{ds:"Pashto",yA:"پښتو",1:"ps",2:"pus","2T":"pus","2B":"pus",3:"pus"},{ds:"Portuguese",yA:"Portugu\xeas",1:"pt",2:"por","2T":"por","2B":"por",3:"por"},{ds:"Quechua",yA:"Runa Simi",1:"qu",2:"que","2T":"que","2B":"que",3:"que"},{ds:"Romansh",yA:"Rumantsch",1:"rm",2:"roh","2T":"roh","2B":"roh",3:"roh"},{ds:"Kirundi",yA:"Kirundi",1:"rn",2:"run","2T":"run","2B":"run",3:"run"},{ds:"Romanian",yA:"Rom\xe2nă",1:"ro",2:"ron","2T":"ron","2B":"rum",3:"ron"},{ds:"Russian",yA:"Русский",1:"ru",2:"rus","2T":"rus","2B":"rus",3:"rus"},{ds:"Sanskrit",yA:"संस्कृतम्",1:"sa",2:"san","2T":"san","2B":"san",3:"san"},{ds:"Sardinian",yA:"Sardu",1:"sc",2:"srd","2T":"srd","2B":"srd",3:"srd"},{ds:"Sindhi",yA:"سنڌي‎",1:"sd",2:"snd","2T":"snd","2B":"snd",3:"snd"},{ds:"Northern Sami",yA:"S\xe1megiella",1:"se",2:"sme","2T":"sme","2B":"sme",3:"sme"},{ds:"Samoan",yA:"Gagana Sāmoa",1:"sm",2:"smo","2T":"smo","2B":"smo",3:"smo"},{ds:"Sango",yA:"S\xe4ng\xf6",1:"sg",2:"sag","2T":"sag","2B":"sag",3:"sag"}
1,{ds:"Serbian",yA:"Српски",1:"sr",2:"srp","2T":"srp","2B":"srp",3:"srp"},{ds:"Gaelic",yA:"G\xe0idhlig",1:"gd",2:"gla","2T":"gla","2B":"gla",3:"gla"},{ds:"Shona",yA:"ChiShona",1:"sn",2:"sna","2T":"sna","2B":"sna",3:"sna"},{ds:"Sinhala",yA:"සිංහල",1:"si",2:"sin","2T":"sin","2B":"sin",3:"sin"},{ds:"Slovak",yA:"Slovenčina",1:"sk",2:"slk","2T":"slk","2B":"slo",3:"slk"},{ds:"Slovene",yA:"Slovenščina",1:"sl",2:"slv","2T":"slv","2B":"slv",3:"slv"},{ds:"Somali",yA:"Soomaaliga",1:"so",2:"som","2T":"som","2B":"som",3:"som"},{ds:"Southern Sotho",yA:"Sesotho",1:"st",2:"sot","2T":"sot","2B":"sot",3:"sot"},{ds:"Spanish",yA:"Espa\xf1ol",1:"es",2:"spa","2T":"spa","2B":"spa",3:"spa"},{ds:"Sundanese",yA:"Basa Sunda",1:"su",2:"sun","2T":"sun","2B":"sun",3:"sun"},{ds:"Swahili",yA:"Kiswahili",1:"sw",2:"swa","2T":"swa","2B":"swa",3:"swa"},{ds:"Swati",yA:"SiSwati",1:"ss",2:"ssw","2T":"ssw","2B":"ssw",3:"ssw"},{ds:"Swedish",yA:"Svenska",1:"sv",2:"swe","2T":"swe","2B":"swe",3:"swe"},{ds:"Tamil",yA:"தமிழ்",1:"ta",2:"tam","2T":"tam","2B":"tam",3:"tam"},{ds:"Telugu",yA:"తెలుగు",1:"te",2:"tel","2T":"tel","2B":"tel",3:"tel"},{ds:"Tajik",yA:"Тоҷикӣ",1:"tg",2:"tgk","2T":"tgk","2B":"tgk",3:"tgk"},{ds:"Thai",yA:"ภาษาไทย",1:"th",2:"tha","2T":"tha","2B":"tha",3:"tha"},{ds:"Tigrinya",yA:"ትግርኛ",1:"ti",2:"tir","2T":"tir","2B":"tir",3:"tir"},{ds:"Tibetan Standard",yA:"བོད་ཡིག",1:"bo",2:"bod","2T":"bod","2B":"tib",3:"bod"},{ds:"Turkmen",yA:"T\xfcrkmen\xe7e",1:"tk",2:"tuk","2T":"tuk","2B":"tuk",3:"tuk"},{ds:"Tagalog",yA:"Tagalog",1:"tl",2:"tgl","2T":"tgl","2B":"tgl",3:"tgl"},{ds:"Tswana",yA:"Setswana",1:"tn",2:"tsn","2T":"tsn","2B":"tsn",3:"tsn"},{ds:"Tonga",yA:"faka Tonga",1:"to",2:"ton","2T":"ton","2B":"ton",3:"ton"},{ds:"Turkish",yA:"T\xfcrk\xe7e",1:"tr",2:"tur","2T":"tur","2B":"tur",3:"tur"},{ds:"Tsonga",yA:"Xitsonga",1:"ts",2:"tso","2T":"tso","2B":"tso",3:"tso"},{ds:"Tatar",yA:"Татарча",1:"tt",2:"tat","2T":"tat","2B":"tat",3:"tat"},{ds:"Twi",yA:"Twi",1:"tw",2:"twi","2T":"twi","2B":"twi",3:"twi"},{ds:"Tahitian",yA:"Reo Mā’ohi",1:"ty",2:"tah","2T":"tah","2B":"tah",3:"tah"},{ds:"Uyghur",yA:"ئۇيغۇرچه",1:"ug",2:"uig","2T":"uig","2B":"uig",3:"uig"},{ds:"Ukrainian",yA:"Українська",1:"uk",2:"ukr","2T":"ukr","2B":"ukr",3:"ukr"},{ds:"Urdu",yA:"اردو",1:"ur",2:"urd","2T":"urd","2B":"urd",3:"urd"},{ds:"Uzbek",yA:"O‘zbek",1:"uz",2:"uzb","2T":"uzb","2B":"uzb",3:"uzb"},{ds:"Venda",yA:"Tshivenḓa",1:"ve",2:"ven","2T":"ven","2B":"ven",3:"ven"},{ds:"Vietnamese",yA:"Tiếng Việt",1:"vi",2:"vie","2T":"vie","2B":"vie",3:"vie"},{ds:"Volap\xfck",yA:"Volap\xfck",1:"vo",2:"vol","2T":"vol","2B":"vol",3:"vol"},{ds:"Walloon",yA:"Walon",1:"wa",2:"wln","2T":"wln","2B":"wln",3:"wln"},{ds:"Welsh",yA:"Cymraeg",1:"cy",2:"cym","2T":"cym","2B":"wel",3:"cym"},{ds:"Wolof",yA:"Wolof",1:"wo",2:"wol","2T":"wol","2B":"wol",3:"wol"},{ds:"Western Frisian",yA:"Frysk",1:"fy",2:"fry","2T":"fry","2B":"fry",3:"fry"},{ds:"Xhosa",yA:"isiXhosa",1:"xh",2:"xho","2T":"xho","2B":"xho",3:"xho"},{ds:"Yiddish",yA:"ייִדיש",1:"yi",2:"yid","2T":"yid","2B":"yid",3:"yid"},{ds:"Yoruba",yA:"Yor\xf9b\xe1",1:"yo",2:"yor","2T":"yor","2B":"yor",3:"yor"},{ds:"Zhuang",yA:"Cuengh",1:"za",2:"zha","2T":"zha","2B":"zha",3:"zha"},{ds:"Zulu",yA:"isiZulu",1:"zu",2:"zul","2T":"zul","2B":"zul",3:"zul"}];function RU(e,r){for(var s=sl(e,r),o=sl(e,r),u=sl(e,r),a=sl(e,r),h=3&sl(e,r),c=31&sl(e,r),f=[],l=0;l<c;l++){var p=sg(e,r);f.push(sp(e,r,p))}for(var v=sl(e,r),d=[],y=0;y<v;y++){var g=sg(e,r);d.push(sp(e,r,g))}return{Prt:s,Brt:o,Ort:u,Lrt:a,Mrt:h,xrt:f,Urt:d}}var RM,RF,Rj=[128,64,32,16,8,4,2,1];function RH(e,r){var s=b.floor(r.bit/8),o=+(0!=((RC(e)?e.qh(s):e[s])&Rj[r.bit%8]));return r.bit+=1,o}function RB(e,r,s){for(var o=0,u=s;u>0;)u-=1,o=2*o+RH(e,r);return o}function RV(e,r){for(var s=0;0===RH(e,r)&&s<32;)s+=1;return RB(e,r,s)+b.pow(2,s)-1}function RX(e,r){var s=RV(e,r);return 1&s?b.floor((s+1)/2):-b.floor(s/2)}function RW(e,r){var s,o=0;do o+=s=RS(e,r);while(255===s);return o}(RK=RF||(RF={}))[RK.Hrt=1]="Hrt",RK[RK.Xrt=2]="Xrt",RK[RK.Vrt=3]="Vrt",RK[RK.Wrt=4]="Wrt",RK[RK.qrt=5]="qrt",RK[RK.Grt=6]="Grt",RK[RK.zrt=7]="zrt",RK[RK.jrt=8]="jrt",RK[RK.Yrt=9]="Yrt";var Rq=[void 0,[1,1],[12,11],[10,11],[16,11],[40,33],[24,11],[20,11],[32,11],[80,33],[18,11],[15,11],[64,33],[160,99],[4,3],[3,2],[2,1]],RY=function(){function e(e){this.Qrt=void 0,this.Zrt=[],this.Krt=0,this.Qrt=e}var r=e.prototype;return r.Jrt=function(){for(var e=this.Zrt,r=b.max(0,this.Krt+e.length-2),s=this.Qrt,o=s.Zg,u=0;r<o;r+=1){var a=s.qh(r);0===a?u+=1:(3===a&&u>=2&&e.push(r),u=0)}this.Krt=r-e.length},r.$rt=function(e){for(var r=this.Zrt,s=e,o=0;o<r.length&&r[o]<=s;o++)s+=1;return s},r.qh=function(e){if(!(e>this.Qrt.Zg))return e>this.Krt&&this.Jrt(),this.Qrt.qh(this.$rt(e))},e}();function R$(e){var r,s,o=(r=e.xrt,(s=new R_).lrt(sV(r),0,r.length),function(e){var r,s,o,u,a,h,c=new RY(e),f=0,l=0,p=0,v=0,d=c.qh(1),y={bit:32};if(RV(c,y),100===d||110===d||122===d||144===d){var g=RV(c,y);
1if(3===g&&(r=RH(c,y)),RV(c,y),RV(c,y),RH(c,y),1===RH(c,y))for(var m=0;m<(3!==g?8:12);m+=1)1===RH(c,y)&&function(e,r,s){for(var o=8,u=8,a=0;a<s;a+=1)0!==u&&(u=(o+RX(e,r)+256)%256),o=0===u?o:u}(c,y,m<6?16:64)}var w=RV(c,y),k=RV(c,y);if(0===k)RV(c,y);else if(1===k){RH(c,y),RX(c,y),RX(c,y);for(var E=RV(c,y),A=0;A<E;A+=1)RX(c,y)}RV(c,y),RH(c,y);var x=RV(c,y),T=RV(c,y),C=RH(c,y);if(0===C&&RH(c,y),RH(c,y),1===RH(c,y)&&(f=RV(c,y),l=RV(c,y),p=RV(c,y),v=RV(c,y)),1===RH(c,y)){if(1===RH(c,y)){var S=RB(c,y,8);if(255===S)s=RB(c,y,16),o=RB(c,y,16);else{var R=Rq[S];R&&(s=R[0],o=R[1])}}1===RH(c,y)&&RH(c,y),1===RH(c,y)&&(RB(c,y,3),RH(c,y),1===RH(c,y)&&(RB(c,y,8),RB(c,y,8),RB(c,y,8))),1===RH(c,y)&&(RV(c,y),RV(c,y)),1===(u=RH(c,y))&&(a=RB(c,y,32),h=RB(c,y,32),RH(c,y))}return{width:b.floor(16*(x+1)-2*f-2*l),height:b.floor((2-C)*(T+1)*16-2*p-2*v),_E:s,gE:o,tet:!!u&&h/(2*a),net:r,iet:w}}(s).tet||24);return e.ret/o}function RJ(e){return e.Ua===pG.GA}function RQ(e,r,s,o,u){for(var a,h,c,f,l=(a=s.ret,h=tx.fromNumber(e.xE||0),c=o.Wy(lW.Qy(h,a)),{SJ:o.Dy(),eet:o,uet:c,oet:o}),p=lW.Zy(e.ly||0,s.ret),v=e.Vb||0,d=!(65536&v)&&(v>>24&3)!==Rz.SAMPLE_DEPENDS_ON_OTHERS,y=sB(u),g=new sJ;g.Zh<y.byteLength;){var m=sm(y,g);if((31&sy(y,g,1))===RF.Grt){var w,b=new R_;b.lrt(u,g.Zh-1,g.Zh+m-1);var k=function(e,r){var s,o=[],u={byte:1};do o.push(function(e,r,s){var o=RW(r,s),u=RW(r,s),a=s.byte,h=a+u;return s.byte=h,{Drt:e,Nrt:o,Frt:u,Trt:a,Ert:h,brt:r}}(e,r,u)),s=r.qh(u.byte);while(void 0!==s&&128!==s);return o}(l.uet,b);(w=f=f||[]).push.apply(w,function(e){for(var r=e.filter(RI).map(RP).filter(z),s=[],o=0;o<r.length;o++){var u=r[o];s.push.apply(s,function(e,r,s,o){var u={byte:s},a=Aq.Dj,h=[],c=31&RS(r,u,o);u.byte+=1;for(var f=0;f<c;f+=1){var l,p,v=RS(r,u,o),d=4&v,y=3&v;l=!!d,a=(p=a)===Aq.Nj?p:y!==AY.Lj&&y!==AY.Mj||p!==Aq.Dj&&p!==Aq.Cj?l?y===AY.xj?Aq.Bj:y===AY.Uj?Aq.Pj:Aq.Nj:Aq.Oj:Aq.Cj;var g=RS(r,u,o),m=RS(r,u,o);h.push({kQ:e,EE:-1,fQ:!f,cQ:!!d,Ua:y,Art:a,vQ:g,dQ:m})}return h}(u.Drt,u.brt,u.Rrt,u.Ert))}return s}(k))}g.Kh(m-1)}return iD({},l,{ly:p.Dy(),aet:p,het:l.uet.Dy(),cet:l.SJ,fet:d,vet:f,det:!1,let:!1})}function RG(e){return e.Ua===pG.kA}(RZ=Rz||(Rz={}))[RZ.SAMPLE_DEPENDS_ON_UNKNOWN=0]="SAMPLE_DEPENDS_ON_UNKNOWN",RZ[RZ.SAMPLE_DEPENDS_ON_OTHERS=1]="SAMPLE_DEPENDS_ON_OTHERS",RZ[RZ.SAMPLE_DEPENDS_ON_NO_OTHER=2]="SAMPLE_DEPENDS_ON_NO_OTHER",RZ[RZ.SAMPLE_DEPENDS_ON_RESERVED=3]="SAMPLE_DEPENDS_ON_RESERVED";var RK,Rz,RZ,R0,R1=function(e){function r(){var r;return(r=e.call(this)||this)._et=void 0,r.wet=void 0,r.yet=void 0,r.ket=void 0,r.met=function(e){r._et&&r._et.DS(e.cue)},r.wet=new RN,r.wet.kh("PY",r.met),r}j(r,e),r.pet=function(e){return"urn:scte:dash:cc:cea-608:2015"===e.OJ};var s=r.prototype;return s.iI=function(e){var r=function(e){if(!e)return{};var r=e.trim().split(";");if(r.some(function(e){return e.match(A1)})){var s=ra(r.map(function(e){return e.match(A2)}),z);return s?{Aet:s[1]}:{}}return r.length>0?{Aet:r[0]}:{}}(e.gs),s=r.Aet&&RO(r.Aet),o=s?s.ds:"";this._et=this.bet(""===o?"CC":"CC "+o,o,!1),this.Gg(this._et)},s._9=function(e){this.wet.Yg();var r=vw.Wb(new DataView(e));this.yet=function(e){var r={ret:e.iT[0].fT.Mb.Pk},s=ra(e.iT[0].fT.bT.ST.RT.DT,function(e){return e.Ua===pG.PA});if(s){var o=RU(sB(s.rE.Fs),new sJ),u=s.uE;return iD({},r,{rE:s$(s.rE.Fs),Lo:s.Lo,yT:s.yT,gE:u&&u.gE,_E:u&&u._E,Tet:o.Brt,Eet:o.Ort,Iet:o.Lrt,xrt:o.xrt[0],Urt:o.Urt[0]})}}(r.filter(RG)[0]),this.ket=void 0},s.h6=function(e,r){if(this.yet&&(!this.ket||this.ket.xp!==r.xp)){this.ket&&r.xp!==this.ket.Up&&this.wet.Yg();var s=vw.Wb(new DataView(e)),o=function(e){for(var r=[],s=0;s<e.length;s++){var o=e[s];o.aS.vet&&r.push.apply(r,o.aS.vet),delete o.aS.vet}for(var u=0;u<r.length;u+=1)r[u].EE=u;return r.sort(xd)}(function(e,r,s,o,u){for(var a=[],h=r.filter(RJ),c=o(s),f=0;f<h.length;f++)for(var l,p=h[f],v=p.iT[0],d=v.Mb.kE||0,y=v.Mb.mE||0,g=v.DE?v.DE.DE:tx.ZERO,m=p.TE+(null!=(l=v.Mb.CE)?l:tx.ZERO).toNumber(),w=0,b=v.NE;w<b.length;w++)for(var k=b[w],E=m+(k.TE||0),A=0,x=k.ME;A<x.length;A++){var T=x[A],C=T.Qh||y,S=new R_;S.lrt(e,E,E+C);var R=lW.Qy(g,s.ret);S.aS=u(T,p,s,R,sq(e,E,E+C)),a.push(S),E+=C,g=g.add(T.ly||d||c)}return a}(new x(e),s,this.yet,R$,RQ));this.wet.Crt(o),this.ket=r}},s.Kl=function(){return this.wet.Eh("PY",this.met),this.wet.Kl(),this._et&&(this.zg(this._et),this._et.Kl()),this.yet=void 0,this.ket=void 0,e.prototype.Kl.call(this)},r}(vW),R2=function(e){function r(r,s,o){var u;return(u=e.call(this,cZ.Fg)||this).F0=r,u.qtt=s,u.Ret=o,u}return j(r,e),r.prototype.wg=function(){return new R3(this.F0&&this.F0.gg)},r}(c0),R3=function(e){function r(r){var s;
1return(s=e.call(this,"activequalitychanged")||this).quality=r,s}return j(r,e),r}(rX),R5=[ul.tv,f7.Og,ul.Av],R4=function(e){function r(r,s){var o;return(o=e.call(this)||this).JR=void 0,o.Nit=void 0,o.Net=void 0,o.Det=function(e){var r=o.Cet(e.currentTime)||o.Nit.D7;if(r&&o.Net!==r){var s=o.Net;o.Net=r,r.F0&&o.yh(new R2(r.F0,null==r?void 0:r.gg,null==s?void 0:s.gg))}},o.JR=r,o.JR.kh(R5,o.Det),o.Nit=s,o}j(r,e);var s=r.prototype;return s.Cet=function(e){for(var r=this.Nit.O7,s=0,o=r.yg.O$;s<o.length;s++){var u=o[s];if(r.Tnt.ant(e,u))return u}},s.Kl=function(){this.Th(),this.JR.Eh(R5,this.Det)},r}(rB),R6=function(e){function r(r){var s;return(s=e.call(this)||this).TS=void 0,s.TS=r,s}return j(r,e),r.prototype.bet=function(e,r,s){return this.TS.RS(vV.wS,e,e,r,s,po.CEA608)},r}(R1),R8=function(e){function r(r,s,o,u,a,h,c,f){var l,p;return(l=e.call(this)||this).pp=void 0,l.bX=void 0,l.m4=void 0,l.g4=void 0,l.Nit=void 0,l.Pet=!1,l.SS=new rE,l.jit=void 0,l.Bet=void 0,l.Oet=void 0,l.Let=void 0,l.JR=void 0,l.ES=void 0,l.pP=void 0,l.L6=void 0,l.Met=void 0,l.xet=new Ea([]),l.TS=void 0,l.X5=void 0,l.Jit=function(){!l.I7()&&l.ent()&&l.Let.Jit()},l.N4=function(e){l.g4.N4(e),l.yh(new RT(e.qtt,e.Ret))},l.Uet=function(e){l.Nit&&l.g4&&l.g4===e.yg&&(l.Nit.L7=l.Fet(e.lw))},p=Rx,Rx+=1,l.pp=p,l.bX=r,l.ES=u,l.pP=a,l.Let=s,l.JR=o,l.X5=h,l.TS=c,l.L6=f,l}j(r,e);var s,o,u,a,h,c,f,l,p,v,d=r.prototype;return d.Het=function(){var e;return null==(e=this.m4)?void 0:e.U0.EC},d.I7=function(){return void 0!==this.Nit&&this.Nit.I7},d.ent=function(){if(void 0===this.Oet)return!1;var e=this.Xet().BC(),r=e.jC(this.Oet);return!(r<0)&&e.bC(r)!==this.Oet},d.bH=function(){var e=this.Let.unt,r=this.Xet().UC(e);this.Oet=r.Zg>0?r.EC(r.Zg-1):0;var s=e.EC(0);isFinite(s)&&this.Oet<s&&this.wH(this.Oet,s),this.Jit()},s=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.ZJ.dA,h=this.Vet(r,s,o,a,u),c=this.Wet(r,s,a,u),e.next=5,rO([c,h]);case 5:return f=e.sent[0],e.abrupt("return",f);case 8:case"end":return e.stop()}},e,this)})),d.h6=function(e,r,o,u){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o,u,a){var h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.L6||this.Met){e.next=2;break}return e.abrupt("return");case 2:if(s7(o.FO)){e.next=4;break}return e.abrupt("return");case 4:return h=r.mtt(),e.next=7,h.Kd(a);case 7:c=e.sent,this.L6&&this.L6.h6(c,s.xp,u),this.Met&&this.Met.h6(c,s);case 10:case"end":return e.stop()}},e,this)})),d.Vet=function(e,r,s,u,a){return o.apply(this,arguments)},d._9=function(e,r,s){return rT(s),this.Met&&this.Met._9(e.G9),P.resolve()},d.bc=function(e,r){var s=new rE;r&&s.fh(r),this.SS.hh(),this.SS=s;var o=this.qet(e,this.jit,s.dh);return this.jit=o,o},d.Get=function(e){var r=ra(e.B0.b$,function(e){return R1.pet(e)});r&&(this.Met=new R6(this.TS),this.Met.iI(r),this.xet.aW(this.Met.iT))},u=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(o),!s){e.next=4;break}return e.next=4,s.catch(I);case 4:if(this.g4!==r||!this.Pet){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,this.zet();case 8:return rT(o),e.next=11,this.jet();case 11:if(rT(o),!r){e.next=15;break}return e.next=15,this.NS(r);case 15:case"end":return e.stop()}},e,this)})),d.qet=function(e,r,s){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.g4,this.g4=void 0,this.Pet=!1,this.Oet=void 0,this.m4=void 0,r&&(r.Eh(cZ.Xg,this.Uet),r.D4(!1),r.Eh(cZ.NO_QUALITY,this.wh)),this.Bet&&(this.Bet.Kl(),this.Bet=void 0),!this.Nit){e.next=11;break}return e.next=10,this.Nit.Kl();case 10:this.Nit=void 0;case 11:if(!this.Met){e.next=15;break}return this.xet.cW(this.Met.iT),e.next=15,this.Met.Kl();case 15:case"end":return e.stop()}},e,this)})),d.zet=function(){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.g4=r,this.m4=r.C4,this.Get(r),r.kh(cZ.Xg,this.Uet),r.kh(cZ.NO_QUALITY,this.wh),e.next=7,this.Yet(r);case 7:this.Nit=this.Qet(r),this.Nit.kh(RA,this.wh),this.Nit.kh("r7",this.Jit),this.Nit.L7=this.Fet(r._w),this.Bet=new R4(this.JR,this.Nit),this.Bet.kh(cZ.Fg,this.N4),r.D4(!0),this.Pet=!0;case 15:case"end":return e.stop()}},e,this)})),d.NS=function(e){return h.apply(this,arguments)},d.Fet=function(e){if(e&&0!==e.length&&this.g4){for(var r=[],s=0,o=this.g4.O$;s<o.length;s++)for(var u=o[s],a=0;a<e.length;a++){var h=e[a];h===u.F0&&h.bK&&r.push(u)}return r}},c=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.SS.hh(),!this.jit){e.next=5;break}return e.next=4,this.jit.catch(I);case 4:this.jit=void 0;case 5:return e.next=7,this.zet();case 7:if(r){e.next=10;break}return e.next=10,this.jet();case 10:return e.next=12,this.Zet();case 12:case"end":return e.stop()}},e,this)})),d.Yg=function(e){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.zet();case 2:case"end":return e.stop()}},e,this)})),d.Ket=function(){return f.apply(this,arguments)},l=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.Nit){e.next=3;break}return e.next=3,this.Nit.a8(r);case 3:case"end":return e.stop()}},e,this)})),d.a8=function(e){return l.apply(this,arguments)},p=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.Nit){e.next=3;break}return e.next=3,this.Nit.l8(r);case 3:case"end":return e.stop()}},e,this)})),d.l8=function(e){return p.apply(this,arguments)},v=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),e.prev=1,e.next=4,this.Yg(r);case 4:return e.next=6,this.Ket();case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:case"end":return e.stop()}},e,this,[[1,8]])})),d.Kl=function(e){return v.apply(this,arguments)},M(r,[{key:"_4",get:function(){return this.g4}},{key:"hw",get:function(){return this.pp}},{key:"Tit",get:function(){return this.bX}},{key:"Om",get:function(){return this.xet}},{key:"a$",get:function(){return this.bX===l4.Xl?44100/1024:29.97}},{key:"Uit",get:function(){return 1/this.a$}},{key:"aw",get:function(){return!!(this.g4&&this.g4.aw)}},{key:"kH",get:function(){var e=this.Nit?this.Nit.O7.kH.vnt:mo.aP();return this.Jet().qC(e)}},{key:"rp",get:function(){var e=this.Xet(),r=this.Oet;return void 0!==r&&e.BC().HD(r)&&(e=e.qC(mo.oP(r))),e}}
1,{key:"nnt",get:function(){return Sm(this.Xet(),this.kH.qC(this.$et)).WC(2*this.Uit)}},{key:"$et",get:function(){var e=this.Oet;if(e&&isFinite(e)){var r=this.Let.EC;if(isFinite(r)&&e<r)return new mo([e,r],[!1,!0])}return mo.aP()}},{key:"wp",get:function(){var e=this.g4;if(!e)return mo.oP(0);var r=e.B0.Y0,s=e.B0.j0;if(void 0===s||void 0===r)return mo.oP(0);var o=r>=e.B0.U0.EC?b.max(r,this.EC):r;return o=b.max(s,o),new mo([s,o]).BC()}},{key:"OD",get:function(){return this.nnt.rP(this.vy)}},{key:"unt",get:function(){return this.Let.unt}},{key:"vy",get:function(){return this.JR.vy}},{key:"bC",get:function(){return this.m4?this.m4.U0.bC:NaN}},{key:"EC",get:function(){var e=this.Het(),r=this.Oet;return void 0===e?NaN:void 0!==r?r:e}},{key:"yT",get:function(){return this.Let.yT}},{key:"Lo",get:function(){return this.Let.Lo}},{key:"art",get:function(){return this.Oet}}]),r}(rB),R7=function(){function e(){this.tut=[],this.Qh=0}var r=e.prototype;return r.bF=function(e){this.tut.push(e),this.Qh+=e.byteLength},r.nut=function(e){if(this.Qh<=e)return this.iut();for(var r=this.tut,s=0,o=0;o<r.length&&s+r[o].byteLength<=e;)s+=r[o].byteLength,o++;var u=r.slice(0,o);if(o<r.length&&s<e){var a=e-s;u.push(sj(r[o],0,a)),s+=a}return{tut:u,Qh:s}},r.rut=function(e){var r=this.nut(e);return 1===r.tut.length?r.tut[0]:st(r.tut,r.Qh)},r.iut=function(){return{tut:this.tut,Qh:this.Qh}},r.eut=function(e){if(this.Qh<=e)return this.uut();for(var r=this.tut,s=0,o=0;o<r.length&&s+r[o].byteLength<=e;)s+=r[o].byteLength,o++;var u=r.splice(0,o);if(r.length>0&&s<e){var a=e-s;u.push(sj(r[0],0,a)),r[0]=sj(r[0],a),s+=a}return this.Qh-=s,{tut:u,Qh:s}},r.sut=function(e){var r=this.eut(e);return 1===r.tut.length?r.tut[0]:st(r.tut,r.Qh)},r.uut=function(){var e=this.iut();return this.tut=[],this.Qh=0,e},r.out=function(){var e=1===this.tut.length?this.tut[0]:st(this.tut,this.Qh);return this.tut=[],this.Qh=0,e},e}();(Ln=R0||(R0={}))[Ln.aut=0]="aut",Ln[Ln.hut=1]="hut",Ln[Ln.cut=2]="cut";var R9=function(){var e=r.prototype;function r(){this.ri=new R7,this.Xv=R0.aut,this.fut=0,this.vut=0,this.lut()}return e._ut=function(e,r){},e.gut=function(){},e.wut=function(e){this.ri.bF(e),this.yut(!1)},e.kut=function(){this.yut(!0)},e.mut=function(){return this.Xv!==R0.aut||0!==this.ri.Qh},e.yut=function(e){for(;0!==this.ri.Qh;){if(!e&&this.fut>this.ri.Qh)return;switch(this.Xv){case R0.aut:this.Aut(e);break;case R0.hut:this.but(e);break;case R0.cut:this.Tut(e)}}},e.lut=function(){this.Xv=R0.aut,this.fut=8},e.Aut=function(e){var r=sB(this.ri.rut(this.fut)),s=new sJ,o=vv.Lb(r,s);if(!o.Db)return this.fut=o.xb,void(e&&this.fut>this.ri.Qh&&this.Eut(this.ri.Qh));var u=o.Mb.Ua,a=o.Mb.Qh;0===a&&(a=1/0),this._ut(u,a),this.Sut(u)?this.Iut(a):this.Eut(a)},e.Iut=function(e){this.Xv=R0.hut,this.fut=e},e.but=function(e){var r=sB(this.ri.sut(this.fut)),s=new sJ,o=vv.Cb(r,s,!e);if(!o.Db)throw new vp(s.Zh);this.gut(),this.Rut(o.Pb),this.lut()},e.Eut=function(e){this.Xv=R0.cut,this.fut=0,this.vut=e},e.Tut=function(e){var r=this.ri.eut(this.vut);this.vut-=r.Qh;for(var s=0,o=r.tut;s<o.length;s++){var u=o[s];this.Nut(u)}(0===this.vut||e&&this.vut===1/0)&&(this.gut(),this.lut())},r}();function Lt(e,r){var s=r.Fs.Fs.byteOffset;return sH(e,s,s+r.Fs.Fs.byteLength)}function Le(e,r){var s=new sJ,o=sm(e,s);if(0===o);else if(1===o){s.Kh(4);var u=sb(e,s.tc());sk(e,s,u.add(r))}else s.$h(0),sw(e,s,o+r)}var Ln,Li,Lr,Ls,Lo=function(e){function r(r){var s;return(s=e.call(this)||this).qr=void 0,s.DU=void 0,s.Lut=[],s.qr=r,s}j(r,e);var s=r.prototype;return s.start=function(e){this.DU=e},s.transform=function(e){this.wut(e),this.Mut()},s.flush=function(){this.kut(),this.Mut()},s.Sut=function(e){return e===pG.GA},s.Rut=function(e){var r=sY(sV(e.Fs.Fs)),s=vv.Bb(sB(r),new sJ);r=function(e,r,s){for(var o=e,u=vv.Rb(r.Fs),a=u.length-1;a>=0;a--){var h=u[a];h.Ua===pG.jA&&(o=function(e,r,s,o){var u=Lt(sB(e),r),a=vv.Bb(u,new sJ),h=vv.Rb(a.Fs),c=ra(h,function(e){return e.Ua===pG.YA});if(!c)return e;var f=c.Fs,l=f.vb.tc(),p=f.yb(),v=vm(p).flags;f.Eb(4),v.ic(pz.BASE_DATA_OFFSET_PRESENT)&&f.Eb(8);var d=f.vb.tc();if(v.ic(pz.SAMPLE_DESCRIPTION_INDEX_PRESENT)){var y=sm(f.Fs,d);return sw(f.Fs,f.vb,y+o.Out),e}sw(f.Fs,l,p|pz.SAMPLE_DESCRIPTION_INDEX_PRESENT);var g=new x(4);sB(g).setUint32(0,o.yE+o.Out);for(var m=f.Fs.byteOffset+d.Zh,w=0,b=h.filter(function(e){return e.Ua===pG.QA});w<b.length;w++)!function(e,r){var s=e.Fs,o=vm(s.yb()).flags;if(s.Eb(4),o.ic(pZ.DATA_OFFSET_PRESENT)){var u=s.tc().yb();sw(s.Fs,s.vb,u+r)}}(b[w],g.byteLength);for(var k=0,E=[c,r,s];k<E.length;k++){var A=E[k];Le(Lt(sB(e),A),g.byteLength)}return se(e,g,m)}(o,h,r,s))}return o}(r,s,this.qr),this.Lut.push(r)},s.Nut=function(e){this.Lut.push(e)},s.Mut=function(){for(var e=0,r=function(e){if(e.length<2)return e;for(var r=[],s=e[0],o=s.buffer,u=s.byteOffset,a=s.byteLength,h=1;h<e.length;h++){var c=e[h];o===c.buffer&&u+a===c.byteOffset?a+=c.byteLength:(r.push(new x(o,u,a)),o=c.buffer,u=c.byteOffset,a=c.byteLength)}return r.push(new x(o,u,a)),r}(this.Lut);e<r.length;e++){var s=r[e];this.DU.enqueue(s)}rv(this.Lut)},r}
1(R9),Lu=(Lr=function(){return new x([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])},function(){return void 0!==Lr&&(Ls=Lr(),Lr=void 0),Ls}),La=function(e){function r(r,s,o,u,a,h,c,f,l){var p;return(p=e.call(this,r,s,o,u,a,c,f,l)||this).Ait=void 0,p.xut=void 0,p.Uut=void 0,p.Ait=h,p}j(r,e);var s,o,u,a=r.prototype;return a.Xet=function(){return this.xut?this.xut.rp:mo.aP()},a.Jet=function(){return this.xut?this.xut.PH:mo.aP()},s=P.coroutine(iO.mark(function e(r,s,o,u){var a,h,c,f,l;return iO.wrap(function(e){for(var p,v;;)switch(e.prev=e.next){case 0:return rT(u),a=r.Jd,this.Uut&&(p=a,v=this.Uut,a=p.pipeThrough(new aZ(new Lo(v)))),h={Ua:kx.Nv,Fs:a},c={oX:s.xp,ly:s.ly,dA:-o},f=this.xut.rp,e.next=8,this.Fut();case 8:return e.next=10,this.xut.mH(h,c,u);case 10:return l=this.xut.rp,e.abrupt("return",function(e,r,s){var o,u,a=e.GC(r).UC(r);return 0===a.Zg?u=o=s.Up:(o=a.bC(0),u=a.EC(0)),{dit:o,_it:u}}(f,l,s));case 12:case"end":return e.stop()}},e,this)})),a.Wet=function(e,r,o,u){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function r(s,o,u){var a,h,c,f,l,p;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype._9.call(this,s,o,u);case 2:return a=new x(s.G9),this.Hut(o)&&(h=this.Let.crt,c=[],h&&(c=rg(h.oI,function(e){return e.aI}),f=h.aN.WI?wN(h.aN.WI):void 0),(l=function(e,r,s){var o=new vc(sB(e),new sJ),u=vv.Ob(o,pG.kA);if(u){var a=vv.Rb(u.Fs),h=ra(a,function(e){return e.Ua===pG.pA}),c=ra(a,function(e){return e.Ua===pG.JA});if(h){var f=vv.Ob(h.Fs,pG.bA);if(f){var l=vv.Ob(f.Fs,pG.SA);if(l){var p=vv.Ob(l.Fs,pG.IA);if(p){var v=vv.Rb(p.Fs),d=ra(v,function(e){return e.Ua===pG.RA});if(d){var y=new vc(sB(vv.Hb(d.Fs,pG.RA,!1).Fs),new sJ);y.Eb(4);for(var g=vv.Rb(y),m=[],w=0;w<g.length;w++){var b=g[w];if(b.Ua===pG.WA||b.Ua===pG.qA)return;b.Ua===pG.PA?m.push({Dut:b,Cut:pG.qA}):b.Ua===pG.UA&&m.push({Dut:b,Cut:pG.WA})}if(void 0===c&&void 0!==r&&r.length>0||0!==m.length){var k,E,A,T=sY(e),C=ra(a,function(e){return e.Ua===pG.DA}),S=C?vv.Ob(C.Fs,pG.CA):void 0,R=S?((k=S.Fs.tc()).Eb(4),k.Eb(4),k.yb()):1,L=ra(v,function(e){return e.Ua===pG.NA});L&&function(e,r,s){var o=Lt(sB(e),r),u=vv.Bb(o,new sJ).Fs;u.Eb(4);for(var a=u.yb(),h=0;h<a;h++){u.Eb(4),u.Eb(4);var c=u.vb.tc(),f=u.yb();sw(u.Fs,c,f+s)}}(T,L,m.length),S&&(E=Lt(sB(T),S),(A=vv.Bb(E,new sJ).Fs).Eb(4),A.Eb(4),sw(A.Fs,A.vb,1)),T=function(e,r,s,o){if(s||!o)return e;for(var u=e,a=0;a<o.length;a++)u=function(e,r,s){var o=se(e,s,r.Fs.Fs.byteOffset+r.Fs.Fs.byteLength);return Le(Lt(sB(o),r),s.byteLength),o}(u,r,new x(o[a]));return u}(T,u,c,r);for(var _=[u,h,f,l,p,d],P=m.length-1;P>=0;P--){var I=m[P];T=function(e,r,s,o,u,a){var h,c,f,l,p,v,d,y,g=(h=r.Fs.Fs,c=Lu(),l=sB(f=new x(h.byteLength+c.byteLength)),f.set(sV(h),0),Le(l,c.byteLength),sT(l,new sJ(4),u),f.set(c,h.byteLength),sT(l,new sJ(h.byteLength+16),r.Ua),a&&sv(l,new sJ(h.byteLength+64),a),f),m=se(e,g,r.Fs.Fs.byteOffset),w=sB(m);p=Lt(w,s),v=vv.Bb(p,new sJ),y=(d=sB(vv.Hb(v.Fs,pG.RA,!1).Fs)).getUint32(0),d.setUint32(0,y+1);for(var b=0;b<o.length;b++)Le(Lt(w,o[b]),g.byteLength);return m}(T,I.Dut,d,_,I.Cut,s)}return{Put:T,But:{Out:m.length,yE:R}}}}}}}}}}(a,c,f))?(this.Uut=l.But,a=l.Put):this.Uut=void 0),p={Ua:kx.fH,Fs:a},r.next=7,this.Fut();case 7:return r.next=9,this.xut.AH(p,u);case 9:case"end":return r.stop()}},r,this)})),a._9=function(e,r,s){return o.apply(this,arguments)},a.Xnt=function(e,r,s){return this.xut.Tc(e,r,s)},a.wH=function(e,r){this.xut.TH(e,r)},a.yH=function(e,r){this.xut.EH(e,r)},u=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=CW.B5(r.O$).FO,this.xut){e.next=7;break}return e.next=5,this.Let.Xut(s);case 5:this.xut=e.sent,this.xut.kh(kw.aH,this.wh);case 7:return e.next=9,this.Fut();case 9:case"end":return e.stop()}},e,this)})),a.Yet=function(e){return u.apply(this,arguments)},a.Zet=function(){return this.xut&&(this.xut.Eh(kw.aH,this.wh),this.xut=void 0),P.resolve()}
1,a.jet=function(){return this.xut?this.xut.Tc(0,1/0):P.resolve()},a.Qet=function(e){return new Ry(this,this.JR,this.JR,this.ES,this.pP,this.Ait,this.X5).HZ(e)},a.Fut=function(){var e=this.Let.unt,r=b.max(0,e.bC(0)-.1),s=e.EC(0)+.01;return this.xut.SH(r,s)},a.Hut=function(e){return!!s7(e.FO)&&(!!this.Let.hrt||void 0!==this.Let.crt)},M(r,[{key:"O$",get:function(){return this.m4?this.m4.O$:[]}},{key:"Lo",get:function(){return this.Let.Lo}}]),r}(R8),Lh=function(e){function r(r,s,o,u,a,h,c,f,l,p,v,d){var y;return(y=e.call(this,o,u,a,r,h,c,f,l,v)||this).zH=void 0,y.G2=[],y.Ait=void 0,y.Vut=void 0,y.L6=void 0,y.Vut=p,y.zH=s,y.Ait=c.lowLatency,y.L6=d,y}j(r,e);var s,o=r.prototype;return o.iI=function(r,s){for(var o=0;o<s.length;o++){var u=s[o].C4;rl(this.G2,u)||this.G2.push(u)}return e.prototype.iI.call(this,r,s)},o.urt=function(e){return new La(e,this,this.JR,this.ES,this.pP,this.Ait,this.X5,this.TS,this.L6)},o.ort=function(){},s=P.coroutine(iO.mark(function r(s,o){var u,a;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(u=s.some(function(e){return e.P4===l4.Xl}),!this.zH.YX){r.next=5;break}return rT(o),r.next=5,this.zH.YX.Sp(u,o);case 5:if(a=s.some(function(e){return e.P4===l4.Vl}),!this.zH.QX){r.next=10;break}return rT(o),r.next=10,this.zH.QX.Sp(a,o);case 10:return r.next=12,e.prototype.ert.call(this,s,o);case 12:rT(o);case 13:case"end":return r.stop()}},r,this)})),o.ert=function(e,r){return s.apply(this,arguments)},o.Xut=function(e){if(nW(e,"audio")){if(this.zH.YX)return P.resolve(this.zH.YX)}else if(nW(e,"video")&&this.zH.QX)return P.resolve(this.zH.QX);throw new y("Cannot allocate source buffer for mime type "+e)},o.Kl=function(r){return rv(this.G2),e.prototype.Kl.call(this,r)},M(r,[{key:"Lo",get:function(){return this.Vut.Lo}},{key:"yT",get:function(){return this.Vut.yT}},{key:"ly",get:function(){return this.JR.ly}}]),r}(RE),Lc=function(e){function r(r,s,o,u,a,h,c){var f;return(f=e.call(this,r,s,o,u,a,new gm(a,r),h)||this).$R=void 0,f.nD=void 0,f.Wut=void 0,f.qut={ap:0,hp:0,cp:0},f.iD=void 0,f.Gut=function(e){f.J6(l2(e.Lh))},f.zut=function(){f.jut()},f.Yut=function(){f.Qut()},f.JR.kh(fE.mw,f.Gut),f.nD=new gX(f.JR,!0),f.nD.kh(ls,f.wh),f.pP.kh("WM",f.zut),f.pP.kh("jM",f.Yut),f.Wut=c,f.iD=new v9(f.JR,f.ES),f.Rm.aW(f.iD.iT),f}j(r,e);var s,o,u,a,h,c,f=r.prototype;return s=P.coroutine(iO.mark(function e(r,s,o,u,a,h,c){var f,l;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f=this.JR,l=this.Zut,e.abrupt("return",new Lh(f,l,r,s,o,u,a,h,c,this.Wut,f,this.L6));case 3:case"end":return e.stop()}},e,this)})),f.d8=function(e,r,o,u,a,h,c){return s.apply(this,arguments)},f.x8=function(e){return!!this.$R&&this.$R.IX(e)},o=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.JR.bc(r);case 2:this.$R=e.sent,this.rD.Oc(this.$R),this.jut(),this.Qut(),this.$R.dV(this.ly);case 7:case"end":return e.stop()}},e,this)})),f.iV=function(e){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.qut=this.v9,!this.$R){e.next=7;break}return e.next=4,this.rD.Yg();case 4:return e.next=6,this.JR.Yg();case 6:this.$R=void 0;case 7:case"end":return e.stop()}},e,this)})),f.V8=function(){return u.apply(this,arguments)},f.bH=function(){this.$R.bH()},f.H8=function(e){return this.$R.RX(e)},f.F8=function(){return!0},f.zG=function(){return this.JR.Mm()},f.Y8=function(){this.JR.xm()},f.jm=function(){e.prototype.jm.call(this),this.JR.jm()},f.Ym=function(){e.prototype.Ym.call(this),this.JR.Ym()},f.T8=function(e){for(var r=0;r<e.length;r++){var s=e[r];s.src&&this.iD.IS(s)}dn(this.iD.iT)},a=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.JR.Nh(ul.hv,s),this.JR.$h(r),e.next=4,o;case 4:case"end":return e.stop()}},e,this)})),f.i9=function(e,r){return a.apply(this,arguments)},f.jut=function(){var e=this.$R;e&&(e.QX&&(e.QX.VM=this.pP.VM),e.YX&&(e.YX.VM=this.pP.VM))},f.Qut=function(){var e=this.$R;e&&(e.QX&&(e.QX.zM=this.pP.zM),e.YX&&(e.YX.zM=this.pP.zM))},h=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype.Yg.call(this);case 2:return this.nD.Yg(),this.qut={ap:0,hp:0,cp:0},r.next=6,this.iD.Yg();case 6:this.JR.MD();case 7:case"end":return r.stop()}},r,this)})),f.Yg=function(){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype.Kl.call(this);case 2:return r.next=4,this.iD.Kl();case 4:this.Rm.Kl(),this.nD.Kl(),this.pP.Eh("WM",this.zut),this.pP.Eh("jM",this.Yut),this.JR.Eh(fE.mw,this.Gut);case 9:case"end":return r.stop()}},r,this)})),f.Kl=function(){return c.apply(this,arguments)},M(r,[{key:"Zut",get:function(){return this.$R}},{key:"d9",get:function(){return this.JR.yy}},{key:"py",get:function(){return this.JR.py}
1,set:function(e){this.JR.py=e}},{key:"K8",get:function(){return this.JR._p}},{key:"bw",get:function(){return this.JR.bw}},{key:"Om",get:function(){return this.Rm}},{key:"wy",get:function(){return this.JR.wy},set:function(e){this.JR.wy=e}},{key:"Ey",get:function(){return this.JR.Ey},set:function(e){this.JR.Ey=tJ(e,0,1)}},{key:"r9",get:function(){return this.JR.Ay}},{key:"v9",get:function(){var e,r;return e=this.qut,r=this.JR.WD(),{ap:e.ap+r.ap,hp:e.hp+r.hp,cp:e.cp+r.cp}}}]),r}(Sh),Lf=(Li=P.coroutine(iO.mark(function e(r){var s,o,u,a;return iO.wrap(function(e){for(var h,c;;)switch(e.prev=e.next){case 0:if(s=r.$d,MediaSource.isTypeSupported(s)||(h=r.FO,c=r.e$,h&&(s7(h)?vZ(c)||c.some(v1):nX(h,s4)||nX(h,s8)||nX(h,"image/jpeg")))){e.next=3;break}return e.abrupt("return",!1);case 3:if(!r.s$){e.next=17;break}o=rg(r.s$,function(e){return i7(e.OJ)}).filter(z),u=0;case 7:if(!(u<o.length)){e.next=16;break}return a=o[u],e.next=11,_.ra(a,s);case 11:if(!e.sent){e.next=13;break}return e.abrupt("return",!0);case 13:u++,e.next=7;break;case 16:return e.abrupt("return",!1);case 17:return e.abrupt("return",!0);case 18:case"end":return e.stop()}},e)})),function(e){return Li.apply(this,arguments)}),Ll=function(){function e(e){this.Kut=void 0,this.Kut=e}return M(e,[{key:"yT",get:function(){return this.Kut.offsetHeight*_.oa.Ro}},{key:"Lo",get:function(){return this.Kut.offsetWidth*_.oa.Ro}}]),e}(),Lp=function(){function e(e,r){this.Rm=void 0,this.Gq=void 0,this.Rm=new vX,this.Gq=new EK(e,r)}var r=e.prototype;return r.RS=function(e,r,s,o,u,a){var h=new Eu(e,r,s,o,u,a);return this.Rm.Gg(h),this.Gq.Gg(h),h},r.CS=function(e){this.Rm.zg(e),this.Gq.zg(e)},r.Yg=function(){this.Rm.Yg(),this.Gq.Yg()},r.Kl=function(){this.Rm.Kl(),this.Gq.Kl()},M(e,[{key:"Om",get:function(){return this.Rm}}]),e}(),Lv=function(e){function r(r,s,o,u,a,h,c){var f;return(f=e.call(this,r,s,o,u,a,Lf,new Ll(c))||this).Kut=void 0,f.KN=void 0,f.Kut=c,f.KN=h,f}j(r,e);var s,o=r.prototype;return o.Qm=function(){if(x8(this.JR))return this.JR.Qm()},s=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype.Kl.call(this);case 2:return r.next=4,this.KN.FD(this.JR);case 4:case"end":return r.stop()}},r,this)})),o.Kl=function(){return s.apply(this,arguments)},o.B8=function(r){var s,o,u;return((null!=(s=null==(o=this.E6)||null==(u=o.dash)?void 0:u.useSeamlessPeriodSwitch)?s:m8.hC)!==m8.hC||!Q.Uu)&&e.prototype.B8.call(this,r)},o.F8=function(){return!(Q.Eu&&Q.Su<3)&&e.prototype.F8.call(this)},o.f8=function(){return new Lp(this,new Ez)},M(r,[{key:"by",get:function(){return x8(this.JR)?this.JR.by:0}},{key:"Ty",get:function(){return x8(this.JR)?this.JR.Ty:0}}]),r}(Lc),Ld=function(){function e(e){this.$R=void 0,this.$R=e}var r=e.prototype;return r.Ox=function(){return this.$R.wp},r.cN=function(e,r){return this.$R.cN(e,r)},r.rh=function(){return P.resolve()},M(e,[{key:"iE",get:function(){return this.$R.iE}},{key:"wp",get:function(){return this.Ox()}},{key:"Bm",get:function(){return this.$R.Bm}}]),e}(),Ly=function(e){function r(r){return e.call(this,r)||this}return j(r,e),M(r,[{key:"iE",get:function(){return this.$R.iE}},{key:"gp",get:function(){return this.$R.gp},set:function(e){this.$R.gp=e}}]),r}(Ld),Lg=function(e){function r(r){var s;return(s=e.call(this)||this).xut=void 0,s.Jut=function(e){return s.Jm(e)},s.xut=r,s.xut.kh(kC,s.Jut),s}j(r,e);var s=r.prototype;return s.ax=function(){return this.xut.rp},s.$ut=function(){return this.xut.PH},s.mH=function(e,r,s){return this.xut.mH(e,r,s)},s.pH=function(){return this.xut.pH()},s.AH=function(e,r){return this.xut.AH(e,r)},s.uH=function(){return this.xut.uH()},s.bH=function(){this.xut.bH()},s.TH=function(e,r){this.xut.TH(e,r)},s.EH=function(e,r){this.xut.EH(e,r)},s.Tc=function(e,r,s){return this.xut.Tc(e,r,s)},s.SH=function(e,r){return this.xut.SH(e,r)},s.Sp=function(e,r){return this.xut.Sp(e,r)},s.IX=function(e){return this.xut.IX(e)},s.RX=function(e){return this.xut.RX(e)},s.Jm=function(e){this.yh(e)},s.rh=function(){this.Th(),this.xut.Eh(kC,this.Jut)},s.tst=function(e){this.xut.Eh(kC,this.Jut),this.xut=e,this.xut.kh(kC,this.Jut)},M(r,[{key:"zM",get:function(){return this.xut.zM}
1,set:function(e){this.xut.zM=e}},{key:"rp",get:function(){return this.ax()}},{key:"iE",get:function(){return this.xut.iE}},{key:"PH",get:function(){return this.$ut()}},{key:"CH",get:function(){return this.xut.CH}},{key:"VM",get:function(){return this.xut.VM},set:function(e){this.xut.VM=e}}]),r}(rB),Lm=function(e){function r(r){(s=e.call(this,r)||this).eV=void 0,s.uV=void 0;var s,o=r.YX,u=r.QX;return s.eV=o?s.nst(o):void 0,s.uV=u?s.nst(u):void 0,s}j(r,e);var s=r.prototype;return s.ax=function(){return this.$R.rp},s.wx=function(){return this.$R.ly},s.dV=function(e){this.$R.dV(e)},s._V=function(e,r,s,o){this.$R._V(e,r,s,o)},s.bH=function(){this.$R.bH()},s.IX=function(e){return this.$R.IX(e)},s.RX=function(e){return this.$R.RX(e)},s.rh=function(){return this.eV&&this.eV.rh(),this.uV&&this.uV.rh(),e.prototype.rh.call(this)},s.ist=function(e){this.$R=e,this.eV&&this.eV.tst(e.YX),this.uV&&this.uV.tst(e.QX)},s.nst=function(e){return new Lg(e)},M(r,[{key:"iE",get:function(){return this.$R.iE}},{key:"YX",get:function(){return this.eV}},{key:"QX",get:function(){return this.uV}},{key:"rp",get:function(){return this.ax()}},{key:"ly",get:function(){return this.wx()}},{key:"uH",get:function(){return this.$R.uH}}]),r}(Ld),Lw=function(e){function r(r){return e.call(this,r)||this}j(r,e);var s=r.prototype;return s.lz=function(e){this.JR.lz(e)},s.WG=function(){this.JR.WG()},s.Qm=function(){return this.JR.Qm()},M(r,[{key:"pD",get:function(){return this.JR.pD}},{key:"Ty",get:function(){return this.JR.Ty}},{key:"by",get:function(){return this.JR.by}}]),r}(function(e){function r(r){var s;return(s=e.call(this)||this).JR=void 0,s.$R=void 0,s.rst=function(e){return s.Jm(e)},s.JR=r,s.JR.kh(ky,s.rst),s}j(r,e);var s,o,u,a=r.prototype;return a.ax=function(){return this.JR.rp},a.vx=function(){return this.JR.ep},a._x=function(){return this.JR.vy},a.wx=function(){return this.JR.ly},a.ust=function(){return this.JR.qD},a.sst=function(){return this.JR._y},a.Dx=function(){return this.JR._p},a.Ox=function(){return this.JR.wp},a.Mx=function(){return this.JR.Om},a.WD=function(){return this.JR.WD()},a.Mm=function(){return this.JR.Mm()},a.xm=function(){this.JR.xm()},a.$h=function(e,r){this.JR.$h(e,r)},a.VD=function(e){this.JR.VD(e)},a.jm=function(){this.JR.jm()},a.Ym=function(){this.JR.Ym()},a.RS=function(e,r,s,o,u,a){return this.JR.RS(e,r,s,o,u,a)},a.CD=function(){return this.JR.CD()},a.BD=function(e,r,s,o){return this.JR.BD(e,r,s,o)},a.CS=function(e){this.JR.CS(e)},a.MD=function(){this.JR.MD()},a.eH=function(e){return this.JR.eH(e)},s=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.JR.bc(r);case 2:return s=e.sent,o=r.Ua===gp.lN?this.ost(s):this.ast(s),this.$R=o,e.abrupt("return",o);case 6:case"end":return e.stop()}},e,this)})),a.bc=function(e){return s.apply(this,arguments)},a.ost=function(e){return new Ly(e)},a.ast=function(e){return new Lm(e)},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.$R){e.next=4;break}return e.next=3,this.$R.rh();case 3:this.$R=void 0;case 4:return e.next=6,this.JR.Yg();case 6:case"end":return e.stop()}},e,this)})),a.Yg=function(){return o.apply(this,arguments)},a.bV=function(){this.JR.bV()},a.TV=function(){this.JR.TV()},u=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.Th(),this.JR.Eh(ky,this.rst),!this.$R){e.next=6;break}return e.next=5,this.$R.rh();case 5:this.$R=void 0;case 6:case"end":return e.stop()}},e,this)})),a.rh=function(){return u.apply(this,arguments)},a.fz=function(){this.JR.fz()},a.Jm=function(e){this.yh(e)},M(r,[{key:"rp",get:function(){return this.ax()}},{key:"ep",get:function(){return this.vx()}},{key:"vy",get:function(){return this._x()}},{key:"cF",get:function(){return this.JR.cF}},{key:"ly",get:function(){return this.wx()}},{key:"qD",get:function(){return this.ust()}},{key:"_y",get:function(){return this.sst()}},{key:"Lh",get:function(){return this.JR.Lh}},{key:"yT",get:function(){return this.JR.yT}},{key:"Lo",get:function(){return this.JR.Lo}},{key:"LD",get:function(){return this.JR.LD}},{key:"wy",get:function(){return this.JR.wy},set:function(e){this.JR.wy=e}},{key:"yy",get:function(){return this.JR.yy}},{key:"py",get:function(){return this.JR.py}
1,set:function(e){this.JR.py=e}},{key:"_p",get:function(){return this.Dx()}},{key:"bw",get:function(){return this.JR.bw}},{key:"wp",get:function(){return this.Ox()}},{key:"Ay",get:function(){return this.JR.Ay}},{key:"Om",get:function(){return this.Mx()}},{key:"_z",get:function(){return this.JR._z}},{key:"Ey",get:function(){return this.JR.Ey},set:function(e){this.JR.Ey=e}},{key:"vz",get:function(){return this.JR.vz}},{key:"op",get:function(){return this.JR.op}},{key:"gz",get:function(){return this.JR.gz}}]),r}(rB)),Lb=function(e){function r(r,s){var o;return(o=e.call(this,s)||this).En=void 0,o.En=r,o}j(r,e);var s=r.prototype;return s.ax=function(){return e.prototype.ax.call(this).Kh(this.hst)},s.$ut=function(){return e.prototype.$ut.call(this).Kh(this.hst)},s.mH=function(r,s,o){var u=this.hst;return e.prototype.mH.call(this,r,{oX:s.oX-u,ly:s.ly,dA:s.dA-u},o)},s.SH=function(r,s){var o=this.hst;return e.prototype.SH.call(this,b.max(0,r-o),b.max(0,s-o))},s.Tc=function(r,s,o){var u=this.hst;return e.prototype.Tc.call(this,b.max(0,r-u),b.max(0,s-u),o)},s.TH=function(r,s){var o=this.hst;e.prototype.TH.call(this,b.max(0,r-o),b.max(0,s-o))},s.EH=function(r,s){var o=this.hst;e.prototype.EH.call(this,b.max(0,r-o),b.max(0,s-o))},M(r,[{key:"hst",get:function(){return this.En.hst}}]),r}(Lg),Lk=function(e){function r(r,s){var o;return(o=e.call(this,s)||this).En=void 0,o.En=r,o}j(r,e);var s=r.prototype;return s.wx=function(){return e.prototype.wx.call(this)+this.hst},s.dV=function(r){e.prototype.dV.call(this,r-this.hst)},s.Ox=function(){return e.prototype.Ox.call(this).Kh(this.hst)},s._V=function(r,s,o,u){var a=this.hst;e.prototype._V.call(this,r-a,s-a,o,u)},s.nst=function(e){return new Lb(this,e)},M(r,[{key:"hst",get:function(){return this.En.hst}}]),r}(Lm),LE=function(e){function r(r){var s;return(s=e.call(this,r)||this).cst=0,s.TS=void 0,s.TS=new Lp(t8(s),new Ez),s}j(r,e);var s=r.prototype;return s.ax=function(){return e.prototype.ax.call(this).Kh(this.cst)},s.vx=function(){return LA(e.prototype.vx.call(this),this.cst)},s._x=function(){return e.prototype._x.call(this)+this.cst},s.wx=function(){return e.prototype.wx.call(this)+this.cst},s.Dx=function(){return e.prototype.Dx.call(this).Kh(this.cst)},s.Ox=function(){return e.prototype.Ox.call(this).Kh(this.cst)},s.Mx=function(){return this.TS.Om},s.$h=function(r,s){var o=b.max(0,r-this.cst);e.prototype.$h.call(this,o,s)},s.VD=function(r){e.prototype.VD.call(this,LA(r,-this.cst))},s.RS=function(e,r,s,o,u,a){return this.TS.RS(e,r,s,o,u,a)},s.CD=function(){return!1},s.BD=function(e,r,s,o){throw new y("Not supported")},s.CS=function(e){this.TS.CS(e)},s.MD=function(){this.TS.Yg()},s.rh=function(){return this.TS.Kl(),e.prototype.rh.call(this)},s.ast=function(e){return new Lk(this,e)},s.Jm=function(r){var s;switch(r.type){case ul.tv:s=new le(r.currentTime+this.cst);break;case ul.$f:s=new lt(r.currentTime+this.cst);break;case f7.oy:s=new gV(r.currentTime+this.cst);break;case ul.Av:s=new lh(r.currentTime+this.cst,LA(r.currentProgramDateTime,this.cst));break;case ul.rv:s=new kE(r.currentTime+this.cst);break;case ul.fv:s=new ll(r.currentTime+this.cst);break;case ul.hv:s=new lp(r.currentTime+this.cst);break;case ul.Gf:s=new lc(r.currentTime+this.cst);break;case ul.ev:s=new la(r.currentTime+this.cst,r.playbackRate);break;case ul.bv:s=new lv(r.currentTime+this.cst,r.volume);break;case ul.Wf:s=new lu(r.duration+this.cst);break;case f7.Og:s=new lg(r.currentTime+this.cst,r.readyState);break;default:s=r}e.prototype.Jm.call(this,s)},M(r,[{key:"hst",get:function(){return this.cst},set:function(e){this.cst=e}}]),r}(Lw);function LA(e,r){return e?new Date(e.getTime()+1e3*r):void 0}var Lx,LT=function(e){function r(r,s,o,u,a,h,c){var f,l=new LE(a);return(f=e.call(this,r,s,o,u,l,h,c)||this).fst=void 0,f.vst=void 0,f.dst=void 0,f.fst=l,f.vst=a,f.dst=void 0,f}j(r,e);var s,o,u,a=r.prototype;return s=P.coroutine(iO.mark(function r(s){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype.iV.call(this,s);case 2:void 0===this.dst&&(this.dst=this.lst(),this.fst.hst=this.dst);case 3:case"end":return r.stop()}},r,this)})),a.iV=function(e){return s.apply(this,arguments)},a.lst=function(){if(this.ly===1/0){var e=this.w8;if(e.Zg>0)return b.max(0,e.bC(0)-300)}return 0},o=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype.Yg.call(this);case 2:this.dst=void 0,this.fst.hst=0;case 4:case"end":return r.stop()}},r,this)})),a.Yg=function(){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype.Kl.call(this);case 2:return r.next=4,this.fst.rh();case 4:return r.next=6,this.KN.FD(this.vst);case 6:case"end":return r.stop()}},r,this)})),a.Kl=function(){return u.apply(this,arguments)},r}(Lv);g6(new(function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).zD=gY.WN,r}j(r,e);var s=r.prototype;return s.zS=function(e,r,s,o,u,a){var h=r.mD(l4.Vl),c=new xX(x6.ju.tJ,x6.ju.JK,x6.ju.$K,x6.ju.iJ);return new(Q.Eu&&Q.Su<3?LT:Lv)(s,o,u,c,h,r,e)},s.YD=function(){return!0},r}(xH))),(LC=Lx||(Lx={}))._st="FATAL",LC.mw="ERROR",LC.gst="WARNING",LC.wst="INFO",LC.yst="DEBUG";var LC,LS,LR,LL,L_,LP=new(function(){function e(){this.aw=function(){return!1}}var r=e.prototype;return r.kst=function(e){if(this.aw()){for(var r=arguments.length,s=Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];switch(e){case Lx._st:case Lx.mw:_.qo.apply(_,[e.toString()].concat(s));break;case Lx.gst:_.Wo.apply(_,[e.toString()].concat(s));break;case Lx.wst:case Lx.yst:_.Vo.apply(_,[e.toString()].concat(s))}}},r.mst=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return this.kst.apply(this,[Lx.yst].concat(r))},r.bT=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return this.kst.apply(this,[Lx.wst].concat(r))},r.pst=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return this.kst.apply(this,[Lx.gst].concat(r))},r.Lh=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return this.kst.apply(this,[Lx.mw].concat(r))},r.Ast=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return this.kst.apply(this,[Lx._st].concat(r))},e}()),LI=function(e){function r(){return e.call(this,_9.bst)||this}return j(r,e),r}(rX),LN=function(e){function r(){return e.call(this,_9.Tst)||this}return j(r,e),r}(rX),LO=function(e){function r(){return e.call(this,_9.Est)||this}return j(r,e),r}(rX);function LD(e,r,s){return LU.apply(this,arguments)}function LU(){return(LU=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u=0;case 1:return e.prev=2,e.next=5,rR(o.El(r),r.dh);case 5:return e.abrupt("return",e.sent);case 8:if(e.prev=8,e.t0=e.catch(2),!(rx(e.t0)||u>=s)){e.next=12;break}throw e.t0;
1case 12:LP.pst("HttpUtils - Download failed ("+u+") for "+r.Il+" with headers "+JSON.stringify(r.yl)+", retrying",e.t0),u++;case 14:e.next=1;break;case 16:case"end":return e.stop()}},e,null,[[2,8]])}))).apply(this,arguments)}function LM(e){return!!e.Sst}function LF(e){return e.E2?"{uri: "+e.gs+", range_start: "+e.E2.bC+", range_length: "+e.E2.Zg+"}":"{uri: "+e.gs+"}"}function Lj(e,r){if(r===e)return!0;if(r.gs!==e.gs)return!1;if(!e.E2)return!0;if(r.E2){var s=e.E2.bC+e.E2.Zg,o=r.E2.bC+r.E2.Zg;return e.E2.bC<=r.E2.bC&&s>=o}return!1}function LH(e){var r=!!e.Ist||void 0;return{hw:e.hw,Rst:e.Rst,qD:e.qD,Nst:e.Nst,ly:e.ly,Dst:e.Dst,Ist:r,Cst:e.Pst,Bst:e.Ost,Lst:e.Lst,Mst:e.Mst}}function LB(){return(LB=P.coroutine(iO.mark(function e(r,s,o,u,a){var h,c,f,l,p,v,d,y,g,m;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return",void 0);case 2:if(d=rb([].concat((v=s.xst.map(function(e){return e.e$})).map(function(e){return e.Ust?'audio/mp4; codecs="'+e.Ust+'"':void 0}),[null==(h=u.YX)?void 0:h.$d]).filter(z)),y=rb([].concat(v.map(function(e){return e.Fst?'video/mp4; codecs="'+e.Fst+'"':void 0}),[null==(c=u.QX)?void 0:c.$d]).filter(z)),null==(p=(g=s.Hst.concat(null!=(f=null==(l=o.$K[0])?void 0:l.Xst)?f:[]))[0])?void 0:p.Vst){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,P.all(g.map(function(e){return function(e,r){return LV.apply(this,arguments)}(e,a)}));case 12:return m=e.sent.filter(z),e.abrupt("return",{XI:r,aN:{hN:"cbcs"},oI:function(e,r){var s=function(e){var s=r.indexOf(e.Hc.Va);return s>=0?s:r.length};return rr(e,function(e,r){return s(e)-s(r)})}(m,r.preferredKeySystems),vN:d,dN:y});case 14:case"end":return e.stop()}},e)}))).apply(this,arguments)}function LV(){return(LV=P.coroutine(iO.mark(function e(r,s){var o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.h0){e.next=2;break}return e.abrupt("return");case 2:if(r.Vst){e.next=4;break}return e.abrupt("return");case 4:if(r.ql===LL.Wst){e.next=6;break}return e.abrupt("return");case 6:if(o=LX(r.Vst)){e.next=9;break}return e.abrupt("return");case 9:if(o.Va!==i0){e.next=13;break}return e.abrupt("return",{Hc:o,aI:[],df:r.h0});case 13:return LP.bT("HLSDrmUtils - Fetching key uri "+r.h0+"."),e.next=16,s.El({Il:r.h0});case 16:return u=e.sent,e.next=19,u.Kd();case 19:return a=e.sent,e.abrupt("return",{Hc:o,aI:[a],df:void 0});case 21:case"end":return e.stop()}},e)}))).apply(this,arguments)}function LX(e){return e===iz?i3:e===iG?i2:"com.apple.streamingkeydelivery"===e?i4:void 0}function LW(e){return"#"!==e[0]?e:e.split(":",1)[0]}function Lq(e){var r=e.indexOf(":");if(-1===r||e.length<r+1)throw new y("HLSPlaylistParser - Could not extract M3U8 parameter: "+e);return e.substring(r+1)}function LY(e){var r=LQ(Lq(e));if(void 0===r)throw new y("HLSPlaylistParser - Could not extract M3U8 float parameter: "+e);return r}function L$(e){for(var r={},s=/[:,] ?([A-Z0-9-]+)=([^",]+|"([^"]*)")/gi,o=s.exec(e);null!==o;){var u=o[1],a=void 0;a=void 0!==o[3]?o[3]:o[2],null!==u?r[u]=a:LP.pst("HLSPlaylistParser - Ignoring unparsable M3U8 attribute name: "+e+"."),o=s.exec(e)}return r}function LJ(e,r,s){var o=L$(e),u=L0(function(){var e;return _._o(null!=(e=s||o.URI)?e:"",r).href}),a=LQ(o.BANDWIDTH),h=LQ(o["AVERAGE-BANDWIDTH"]),c=LQ(o.SCORE),f=function(e){var r,s,o;if(!e)return{Ust:r,Fst:s,tot:o};for(var u=e.toLowerCase().split(","),a=0;a<u.length;a++){var h=u[a],c=h.trim();"mp4a.40.5"===c||"mp4a.40.05"===c?r="mp4a.40.5":"mp4a.40.2"===c||"mp4a.40.02"===c?r="mp4a.40.2":"mp4a.40.29"===c?r="mp4a.40.29":0===c.indexOf("mp4a.40.3")||"ec-3"===c?r=c:0===c.indexOf("avc")||0===c.indexOf("hvc1")||0===c.indexOf("hev1")||0===c.indexOf("dvh")?s=h:o=o?o+","+c:c}return{Ust:r,Fst:s,tot:o}}(o.CODECS),l=L0(function(){return function(e){if(void 0!==e){var r=e.split("x"),s=Number(r[0]),o=Number(r[1]);if(A(s)||A(o))throw new y("HLSPlaylistParser - Could not parse RESOLUTION attribute: "+e+".");return{Lo:s,yT:o}}}(o.RESOLUTION)}),p=LQ(o["FRAME-RATE"]),v=o["HDCP-LEVEL"],d=[];if(void 0!==o["ALLOWED-CPC"]){var g=o["ALLOWED-CPC"].split(",");d.push.apply(d,g.map(function(e){var r=e.split(":");return{keysystem:r[0],label:r[1]}}))}var m=o["VIDEO-RANGE"],w=o.AUDIO,b=o.VIDEO,k=o.SUBTITLES,E=o["CLOSED-CAPTIONS"];if(u.zst&&LP.pst("HLSPlaylistParser - #EXT-X-STREAM-INF tag has no valid URI: "+e+"."),void 0===a?LP.pst("HLSPlaylistParser - #EXT-X-STREAM-INF tag has no valid BANDWIDTH attribute: "+e+"."):void 0!==h&&h>a&&LP.pst("HLSPlaylistParser - #EXT-X-STREAM-INF tag must have BANDWIDTH attribute higher or equal to AVERAGE-BANDWIDTH attribute: "+e+"."),f.Ust||f.Fst||f.tot||LP.bT("HLSPlaylistParser - #EXT-X-STREAM-INF tag should have a CODECS attribute: "+e+"."),void 0!==f.Fst&&l.zst&&LP.bT("HLSPlaylistParser - #EXT-X-STREAM-INF tag should have a valid RESOLUTION attribute if it contains video codecs: "+e+"."),void 0===v||rl(["TYPE-0","TYPE-1","NONE"],v)||LP.pst("HLSPlaylistParser - #EXT-X-STREAM-INF tag has an invali
1d HDCP-LEVEL attribute: "+e+"."),void 0===m||rl(["SDR","PQ","HLG"],m)||LP.pst("HLSPlaylistParser - #EXT-X-STREAM-INF tag has an invalid VIDEO-RANGE attribute: "+e+"."),void 0===a||u.zst||l.zst)throw new y("HLSPlaylistParser - Could not parse #EXT-X-STREAM-INF tag: "+e+".");var x=u.Gst;return{iot:d,rot:w,eot:h,QN:a,uot:E,e$:f,a$:p,oot:v,aot:l.Gst,hot:c,cot:k,h0:x,fot:b,vot:m}}function LQ(e){var r=Number(e);return A(r)?void 0:r}function LG(e,r){var s,o,u,a,h=L$(e),c=L0(function(){var e=h.METHOD;switch(e){case"NONE":return LL.cC;case"AES-128":return LL.dot;case"SAMPLE-AES":return LL.Wst;case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return e}throw new y("LLHLSPlaylistParser - Could not parse M3U8 key method: "+e+".")}),f=L0(function(){var e;return _._o(null!=(e=h.URI)?e:"",r).href}),l=h.KEYFORMAT,p=h.IV,v=h.KEYFORMATVERSIONS;if(!c.zst&&(c.Gst!==LL.cC?((s=l||"identity","SAMPLE-AES-CENC"===c.Gst||"SAMPLE-AES-CTR"===c.Gst)?LX(s)!==i3?LP.pst("HLSPlaylistParser - #EXT-X-KEY tag with METHOD="+c.Gst+" is only compatible with Widevine."):o=LL.Wst:o=c.Gst,u=p?sQ(p):void 0,a=v?v.split("/").map(function(e){return Number(e)}):[1]):(o=LL.cC,(void 0!==h.URI||l||v||p)&&LP.pst("HLSPlaylistParser - #EXT-X-KEY tag with METHOD=NONE must not have additional attributes: "+e+"."))),c.zst||f.zst||void 0===o)throw new y("HLSPlaylistParser - Could not parse #EXT-X-KEY tag: "+e+".");return{ql:o,h0:f.Gst,lot:u,Vst:s,_ot:a}}function LK(e){var r=e.split("@"),s=LQ(r[0]),o=LQ(r[1]);if(void 0===s||void 0===o)throw new y("HLSPlaylistParser - Could not parse #EXT-X-BYTERANGE tag: "+e+".");return{bC:o,Zg:s}}function Lz(e){if(void 0!==e)return LK(e)}function LZ(e,r){if(void 0===e)throw new y("HLSPlaylistParser - Unable to parse URL from string: "+e+".");return _._o(e,r).href}function L0(e){var r;try{r=e()}catch(e){return LP.pst(e.message),{Gst:void 0,zst:!0}}return{Gst:r,zst:!1}}(L5=LS||(LS={}))[L5.Xl=0]="Xl",L5[L5.Vl=1]="Vl",L5[L5.ob=2]="ob",L5[L5.qst=3]="qst",(L4=LR||(LR={}))[L4.bot=0]="bot",L4[L4.Tot=1]="Tot",(L6=LL||(LL={}))[L6.cC=0]="cC",L6[L6.dot=1]="dot",L6[L6.Wst=2]="Wst",(L8=L_||(L_={}))[L8.Nl=0]="Nl",L8[L8.pot=1]="pot",L8[L8.Aot=2]="Aot";var L1=function(){function e(r){this.Eot=0,this.Sot=void 0,this.Sot=e.Iot(r)}var r=e.prototype;return r.Rot=function(){var e=this.Sot[this.Eot];return this.Eot+=1,e},r.Not=function(){return this.Sot[this.Eot]},r.tc=function(){return new e(this.Sot.slice(this.Eot).join("\n"))},e.Iot=function(e){return e?e.split(/[\r\n]+/).map(function(e){return e.trim()}).filter(function(e){return e}):[]},e}();function L2(e,r,s){var o,u=e.h0,a=e.Xb,h=e.Dot,c=e.bC;switch(s){case"#EXT-X-VERSION":a=A(o=LY(r))?(LP.pst("HLSPlaylistParser - Playlist version is NaN: "+r+"."),1):o;break;case"#EXT-X-INDEPENDENT-SEGMENTS":h=!0;break;case"#EXT-X-START":c=function(e){var r=L$(e),s=LQ(r["TIME-OFFSET"]);if(void 0===s)throw new y("HLSPlaylistParser - #EXT-X-START is missing a TIME-OFFSET: "+e+".");return{Cot:s,Pot:"YES"===r.PRECISE}}(r);break;case"#EXT-X-DEFINE":LP.pst("HLSPlaylistParser - Ignoring unsupported #EXT-X-DEFINE: "+r+".");break;default:LP.bT("HLSPlaylistParser - Ignoring unrecognized line or comment: "+r+".")}return{h0:u,Xb:a,Dot:h,bC:c}}function L3(e,r){return e.map(function(e){var s,o,u;return e.ql===LL.cC||e.lot?e:iD({},e,{lot:(s=r,o=new DataView(new ArrayBuffer(16)),(u=new sJ).Kh(8),sk(o,u,tx.fromNumber(s)),new x(o.buffer))})})}var L5,L4,L6,L8,L7,L9=function(){function e(e,r,s,o){this.nat=void 0,this.ly=void 0,this.h0=void 0,this.got=void 0,this.wot=void 0,this.iat=void 0,this.Yp=void 0,this.rat=void 0,this.nat=e,this.Yp=r,this.iat=s,this.ly=o.ly,this.h0=o.h0,this.got=o.got,this.wot=o.wot}return M(e,[{key:"xp",get:function(){var e;return this.Yp+(null!=(e=this.rat)?e:0)}}]),e}(),_t=function(){function e(e,r,s,o){this.ly=void 0,this.Uot=void 0,this.h0=void 0,this.xot=void 0,this.wot=void 0,this.iat=void 0,this.Hot=void 0,this.Xot=void 0,this.Xst=void 0,this.Yp=void 0,this.eat=[],this.uat=void 0,this.Yp=e,this.xot=r,this.iat=s,this.ly=o.ly,this.Uot=o.Uot,this.h0=o.h0,this.wot=o.wot,this.Hot=o.Hot,this.Xot=o.Xot,this.Xst=o.Xst,this.sat(o)}var r=e.prototype;return r.oat=function(e){for(var r=0,s=this.eat;r<s.length;r++){var o=s[r];if(o.nat===e)return o}},r.aat=function(e){for(var r=0,s=this.Sst;r<s.length;r++){var o=s[r];if(new mo([o.xp,o.xp+o.ly]).HD(e))return o}},r.fat=function(e){for(var r=this.aat(e);r&&!r.got&&r.nat>0;)r=this.oat(r.nat-1);return r},r.sat=function(e){if(e.Sst.length)for(var r=this.Yp,s=0;s<e.Sst.length;s++){var o=e.Sst[s],u=!!this.iat&&s===e.Sst.length-1,a=o.ly,h=new L9(s,r,u,o);this.eat.push(h),r+=a}},M(e,[{key:"xp",get:function(){var e;return this.Yp+(null!=(e=this.uat)?e:0)}},{key:"vat",get:function(){return this.Yp}},{key:"Sst",get:function(){return this.eat}},{key:"rat",get:function(){return this.uat},set:function(e){this.uat=e;for(var r=0,s=this.eat;r<s.length;r++)s[r].rat=e}}]),e}();function _e(e){return e.reduce(function(e,r){return e+r},0)}(_a=L7||(L7={}))[_a.WB=0]="WB",_a[_a.dat=1]="dat";var _n=function(){function e(e,r){this.cw=void 0,this.Ua=void 0,this.uC=void 0,this.Kst=void 0,this.Zst=void 0,this.Jst=void 0,this.ds=void 0,this.dw=void 0,this._at=void 0,this.gat=void 0,this.wat=void 0,this.yat=void 0,this.mat=void 0,this.pat=void 0,this.Aat=void 0,this.q1=[],this.uat=void 0,this.bat=!1,this.sV=mo.aP(),this.cw=pn++,this.Ua=r.Ua,this.uC={h0:e,Ua:L7.WB},this.Kst=r.Kst,this.Zst=r.Zst,this.Jst=r.Jst,this.ds=r.ds,this.dw=r.dw}var r=e.prototype;return r.Tat=function(e,r){var s=_._o(this.uC.h0);return void 0!==e&&s.searchParams.append("_HLS_msn",String(e)),void 0!==r&&s.searchParams.append("_HLS_part",String(r)),s.href},r.F7=function(e){return ra(this.q1,function(r){return r.Hot===e})},r.Eat=function(e){for(var r=0,s=this.$K;r<s.length;r++){var o,u=s[r];
1if(new mo([u.xp,u.xp+(null!=(o=u.ly)?o:_e(u.Sst.map(function(e){return e.ly})))]).HD(e))return u}},r.Sat=function(e){switch(e){case LR.bot:return this.gat;case LR.Tot:return this.wat;default:return}},r.Iat=function(e){void 0!==this.yat||A(e.$ot)||(this.yat=e.$ot),void 0===this.yat&&(this.yat=this.Rat(e)),void 0===this.pat&&void 0!==e.zot&&(this.pat=e.zot),void 0===this.mat&&void 0!==e.Qot&&(this.mat=e.Qot),void 0===this.Aat&&void 0!==e.Yot&&(this.Aat=e.Yot),this.bat=e.Vot;var r=this.Nat(e),s=r[0],o=r[1],u=s;this.q1.splice(0);for(var a=o;a<e.$K.length;a++){var h=e.$K[a];if(LM(h)){var c=!!e.Got&&a===e.$K.length-1,f=h.ly,l=new _t(u,h.xot,c,h);this.q1.push(l),void 0!==f&&(u+=f)}else u+=this.yat*h.mot}this.rat=this.uat;for(var p=0,v=e.Kot;p<v.length;p++){var d=v[p];switch(d.Ua){case LR.bot:this.gat={h0:d.h0,Ua:d.Ua,Xot:e.Xot};break;case LR.Tot:this.wat={h0:d.h0,Ua:d.Ua,Xot:e.Xot}}}this._at=_.xo()/1e3,this.sV=this.Dat()},r.Dat=function(){var e,r,s,o=this.$K;if(0===o.length)return mo.aP();var u=o[0].xp,a=o[o.length-1],h=a.xp+(null!=(e=a.ly)?e:_e(a.Sst.map(function(e){return e.ly})))-(null!=(r=null!=(s=this.Yot)?s:this.zot)?r:0);return h<u?mo.aP():new mo([u,h])},r.Rat=function(e){for(var r=0,s=e.$K;r<s.length;r++){var o=s[r];if(LM(o)&&void 0!==o.ly)return o.ly}throw new y("HLSModel - Could not determine required segment target duration.")},r.Nat=function(e){for(var r=0,s=0,o=0,u=e.$K;o<u.length;o++){var a=u[o];if(LM(a)){if(!this.q1.length)return this.rat=void 0,[r,s];for(var h=0;h<this.q1.length;h++)if(this.q1[h].Hot===a.Hot)return[r=this.q1[h].vat,s];break}s++}return this.rat=void 0,[r,s]},M(e,[{key:"Cat",get:function(){return this.gat}},{key:"Pat",get:function(){return this.wat}},{key:"Got",get:function(){return!!ra(this.q1,function(e){return e.iat})}},{key:"ly",get:function(){if(0===this.q1.length)return 0;var e,r=_e(this.q1.slice(0,this.q1.length-1).map(function(e){var r;return null!=(r=e.ly)?r:0})),s=this.q1[this.q1.length-1];return r+(null!=(e=s.ly)?e:_e(s.Sst.map(function(e){return e.ly})))}},{key:"wp",get:function(){return this.sV}},{key:"Bat",get:function(){return this.yat}},{key:"Qot",get:function(){return this.mat}},{key:"zot",get:function(){return this.Got?0:this.pat?this.pat:this.yat?3*this.yat:void 0}},{key:"Yot",get:function(){var e;return null!=(e=this.Aat)?e:this.mat?3*this.mat:void 0}},{key:"Oat",get:function(){var e;if(!this.Got&&this.q1.length){var r=this.q1[this.q1.length-1],s=null!=(e=this.Yot)?e:0;return void 0===r.ly?r.Sst.length?r.xp+r.Sst[0].ly*r.Sst.length-s:r.xp-s:r.xp+r.ly-s}}},{key:"Vot",get:function(){return this.bat}},{key:"Lat",get:function(){return void 0!==this.Qot}},{key:"Mat",get:function(){if(this.Got)return!0;var e=_.xo()/1e3,r=this.xat,s=this.Uat;return void 0!==r&&e-r<s}},{key:"xat",get:function(){return this._at}},{key:"rat",get:function(){return this.uat},set:function(e){this.uat=e;for(var r=0,s=this.q1;r<s.length;r++)s[r].rat=this.uat}},{key:"Uat",get:function(){var e;return null!=(e=this.yat)?e:1}},{key:"$K",get:function(){return this.q1}}]),e}();function _i(e,r){return e.Ua===r.Ua&&e.ds===r.ds}function _r(e,r){for(var s=0;s<e.length;s++)if(e[s].uC.h0===r.uC.h0)return!0;return!1}var _s=function(){function e(e,r){var s,o,u,a;this.hw=_o++,this.h0=void 0,this.QN=void 0,this.hot=void 0,this.e$=void 0,this.aot=void 0,this.rot=void 0,this.fot=void 0,this.cot=void 0,this.uot=void 0,this.Fat=void 0,this.Hat=[],this.h0=e.h0,this.QN=e.QN,this.Fat=e.eot,this.hot=e.hot,this.e$=e.e$,this.aot=e.aot,this.rot=null!=(s=e.rot)?s:"Xat"+this.hw,this.fot=null!=(o=e.fot)?o:"Vat"+this.hw,this.cot=null!=(u=e.cot)?u:"Wat"+this.hw,this.uot=null!=(a=e.uot)?a:"qat"+this.hw,r.fT?(this.Gat(r),this.zat()):this.jat(r)}var r=e.prototype;return r.Yat=function(e){if(this.Hat.length){var r=this.Hat[0].$K;if(r.length)for(var s=r.length-1;s>=0;s--){var o=r[s];if(void 0!==o.Uot)return new Date(1e3*e+(o.Uot.getTime()-1e3*o.xp))}}},r.Gat=function(e){for(var r=0,s=e.fT;r<s.length;r++){var o=s[r];if(void 0===o.h0)_u(o,this)&&this.Hat.push(new _n(this.h0,o));else{var u=new _n(o.h0,o);_u(o,this)&&this.Hat.push(u)}}},r.zat=function(){void 0!==this.e$.Fst?this.Qat.length||this.Hat.push(new _n(this.h0,{Ua:LS.Vl,h0:this.h0,Qst:"",dw:void 0,jst:void 0,ds:_p,Kst:!1,Zst:!1,Jst:!1,Yst:void 0,$st:void 0,uQ:void 0})):void 0!==this.e$.Ust&&(this.Zat.length||this.Hat.push(new _n(this.h0,{Ua:LS.Xl,h0:this.h0,Qst:"",dw:void 0,jst:void 0,ds:_p,Kst:!1,Zst:!1,Jst:!1,Yst:void 0,$st:void 0,uQ:void 0}))),this.e$.tot,void 0===this.e$.Fst&&void 0===this.e$.Ust&&void 0===this.e$.tot&&(this.Qat.length||this.Hat.push(new _n(this.h0,{Ua:LS.Vl,h0:this.h0,Qst:"",dw:void 0,jst:void 0,ds:_p,Kst:!1,Zst:!1,Jst:!1,Yst:void 0,$st:void 0,uQ:void 0})))},r.jat=function(e){var r=new _n(this.h0,{Ua:LS.Vl,h0:this.h0,Qst:"",dw:void 0,jst:void 0,ds:_p,Kst:!1,Zst:!1,Jst:!1,Yst:void 0,$st:void 0,uQ:void 0});r.Iat(e),this.Hat.push(r)},M(e,[{key:"eot",get:function(){return this.Fat||this.QN}},{key:"Kat",get:function(){if(!this.Hat.length)return mo.aP();var e,r,s=null!=(e=rw(this.Hat,function(e,r){var s,o;return(null!=(s=e.xat)?s:0)-(null!=(o=r.xat)?o:0)}))?e:this.Jat[0],o=s.$K;if(!o.length||o.length<2)return mo.aP();var u=s.Got?o[0].xp:o[1].xp,a=o[o.length-1],h=a.xp+(null!=(r=a.ly)?r:_e(a.Sst.map(function(e){return e.ly})))-this.Jat.reduce(function(e,r){var s,o;return b.max(null!=(s=null!=(o=r.Yot)?o:r.zot)?s:0,e)},0);return h<u?mo.aP():new mo([u,h])}},{key:"Jat",get:function(){return this.Hat}},{key:"Zat",get:function(){return this.Hat.filter(function(e){return e.Ua===LS.Xl})}},{key:"Qat",get:function(){return this.Hat.filter(function(e){return e.Ua===LS.Vl})}},{key:"$at",get:function(){return this.Hat.filter(function(e){return e.Ua===LS.ob})}}]),e}(),_o=0;function _u(e,r){switch(e.Ua){case LS.Xl:return r.rot===e.Qst;case LS.Vl:return r.fot===e.Qst;case LS.ob:return r.cot===e.Qst;case LS.qst:return r.uot===e.Qst}return!1}var _a,_h,_c,_f,_l,_p="Default",_v=function(){function e(e){this.tht=[],this.nht=[],this.iht=e}var r=e.prototype;return r.Iat=function(e,r){e.$K?r?r.Iat(e):0!==this.tht.length?LP.pst("HLSModel - No rendition was provided to update the playlist. Ignoring the update."):this.rht(e):this.eht(e)},r.rht=function(e){this.nht.length=0,this.tht.length=0;var r=new _s({h0:e.h0,QN:0,eot:0,hot:NaN,e$:{Fst:void 0,Ust:void 0,tot:void 0},aot:{Lo:1920,yT:1080},a$:0,iot:[],oot:void 0,vot:void 0,rot:void 0,fot:void 0,cot:void 0,uot:void 0},e);this.tht.push(r)},r.eht=function(e){var r;this.nht.length=0,(r=this.nht).push.apply(r,e.Xst),this.tht.length=0;for(var s=0,o=e.Oot;s<o.length;s++){var u=new _s(o[s],e);this.tht.push(u)}},M(e,[{key:"Hst",get:function(){return this.nht}},{key:"xst",get:function(){return this.tht}}]),e}(),_d=function(e){function r(r,s){var o;return(o=e.call(this,"uht")||this).rendition=r,o.dateRanges=s,o}return j(r,e),r}(rX),_y=function(e){function r(r,s){var o;return(o=e.call(this)||this).m0=void 0,o.sht=void 0,o.ES=r,o.rootURI=s,o.m0=new _v(s),o}j(r,e);var s,o,u,a,h=r.prototype;return s=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this.m0.iht){e.next=3;break}throw new y("HLSModelUpdater - Could not load HLS playlist: The provided source is empty.");case 3:return e.next=5,this.aht(s,r);case 5:if((o=e.sent).fT||o.$K){e.next=8;break}throw new y("HLSModelUpdater - Could not load HLS playlist: The playlist is invali
1d.");case 8:o.fT||LP.bT("HLSModelUpdater - Detected media playlist only HLS stream."),this.hht(o);case 10:case"end":return e.stop()}},e,this)})),h.oht=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o,u){var a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this.fht(r)){e.next=3;break}throw new y("HLSModelUpdater - Could not load HLS playlist for rendition: the rendition does not exist on the internal model.");case 3:return h=a.Tat(s,o),e.next=6,this.vht(a,h,u,void 0);case 6:case"end":return e.stop()}},e,this)})),h.cht=function(e,r,s,u){return o.apply(this,arguments)},h.dht=function(e,r){var s=this.fht(e);if(!s)throw new y("HLSModelUpdater - Could not load HLS playlist for rendition: the rendition does not exist on the internal model.");var o=e.Tat(void 0,void 0),u=1e3*b.max(1,3*e.Uat);return this.vht(s,o,r,u)},u=P.coroutine(iO.mark(function e(r,s,o,u){var a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.aht(s,o,u);case 2:if((a=e.sent).$K){e.next=5;break}throw new y("HLSModelUpdater - Could not load HLS playlist for rendition: the playlist is not a media playlist.");case 5:if(this.hht(a,r),r!==this.sht){e.next=8;break}return e.abrupt("return");case 8:if(void 0===r.rat){e.next=10;break}return e.abrupt("return");case 10:if(this.sht){e.next=14;break}this.sht=r,e.next=18;break;case 14:if(this.sht.Mat){e.next=17;break}return e.next=17,this.dht(this.sht,o);case 17:this.lht(r);case 18:case"end":return e.stop()}},e,this)})),h.vht=function(e,r,s,o){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r,s,o){var u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return LP.bT("HLSModelUpdater - Loading HLS playlist at "+r+"."),u={Il:r,Al:up.Ku,ql:hk.GET,Ua:hE.Dl,dh:s,Gl:o},e.next=4,LD(u,2,this.ES);case 4:return a=e.sent,e.next=7,a.Qd(s);case 7:return h=e.sent,e.abrupt("return",function(e,r){LP.bT("HLSPlaylistParser - Parsing M3U8 playlist "+r+" at "+e+".");var s=new L1(r);if("#EXTM3U"!==s.Rot())throw new y("HLSPlaylistParser - Could not parse M3U8 playlist. Playlist does not start with #EXTM3U.");return/^#EXT-X-(MEDIA|STREAM-INF|I-FRAME-STREAM-INF|SESSION-DATA|SESSION-KEY):/m.test(r)?function(e,r){for(var s={h0:e,Dot:void 0,bC:void 0,Xb:void 0},o=[],u=[],a=[],h=[];;){var c=r.Rot();if(!c)break;try{var f=function(e){if("#"!==e[0])throw new y("HLSPlaylistParser - Could not extract M3U8 tag or comment: "+e);return e.split(":",1)[0]}(c);switch(f){case"#EXT-X-MEDIA":var l=function(e,r){var s=L$(e),o=L0(function(){return s.URI?_._o(s.URI,r).href:void 0}),u=s["GROUP-ID"],a=s.LANGUAGE,h=s["ASSOC-LANGUAGE"],c=s.NAME,f="YES"===s.DEFAULT,l="YES"===s.AUTOSELECT,p="YES"===s.FORCED,v=s["INSTREAM-ID"],d=s.CHARACTERISTICS,g=s.CHANNELS,m=L0(function(){var e=s.TYPE;switch(e){case"AUDIO":return LS.Xl;case"VIDEO":return LS.Vl;case"SUBTITLES":return LS.ob;case"CLOSED-CAPTIONS":return LS.qst}throw new y("HLSPlaylistParser - Could not parse M3U8 media type: "+e+".")});if(u||LP.pst("HLSPlaylistParser - #EXT-X-MEDIA tag has no GROUP-ID attribute: "+e+"."),a||LP.pst("HLSPlaylistParser - #EXT-X-MEDIA tag has no LANGUAGE attribute: "+e+"."),c||LP.pst("HLSPlaylistParser - #EXT-X-MEDIA tag has no NAME attribute: "+e+"."),m.Gst===LS.qst?(o&&LP.pst("HLSPlaylistParser - #EXT-X-MEDIA tag of type CAPTIONS must not have a URI: "+e+"."),v?/^(CC[0-4])|(SERVICE([1-9]|[1-5][0-9]|6[0-3]))$/.test(v)||LP.pst("HLSPlaylistParser - #EXT-X-MEDIA's INSTREAM-ID is invalid: "+e+"."):LP.pst("HLSPlaylistParser - #EXT-X-MEDIA tag of type CAPTIONS must have an INSTREAM-ID attribute: "+e+".")):v&&LP.pst("HLSPlaylistParser - #EXT-X-MEDIA tag must not have an INSTREAM-ID attribute if the TYPE is not CAPTIONS: "+e+"."),f&&!l&&(l=!0,s.AUTOSELECT&&LP.pst("HLSPlaylistParser - #EXT-X-MEDIA tag with DEFAULT=YES attribute must have AUTOSELECT=YES attribute: "+e+".")),m.Gst===LS.ob&&s.FORCED&&LP.pst("HLSPlaylistParser - #EXT-X-MEDIA tag must not have a FORCED attribute if the TYPE is not SUBTITLES: "+e+"."),void 0===u||void 0===c||o.zst||m.zst)throw new y("HLSPlaylistParser - Could not parse #EXT-X-MEDIA tag: "+e+".");var w=o.Gst;return{jst:h,uQ:g,Yst:d,Qst:u,Zst:l,Kst:f,Jst:p,$st:v,dw:a,ds:c,Ua:m.Gst,h0:w}}(c,e);o.push(l);break;case"#EXT-X-STREAM-INF":var p=LJ(c,e,r.Rot());u.push(p);break;case"#EXT-X-I-FRAME-STREAM-INF":var v=LJ(c,e);a.push(v);break;case"#EXT-X-SESSION-DATA":LP.pst("HLSPlaylistParser - Ignoring unsupported #EXT-X-SESSION-DATA: "+c+".");break;case"#EXT-X-SESSION-KEY":var d=LG(c,e);h.push(d);break;default:s=L2(s,c,f)}}catch(e){LP.pst(e),LP.pst("HLSPlaylistParser - Ignoring unparsable line: "+c)}}var g=s.h0,m=s.Xb,w=s.Dot,b=s.bC;if(void 0===g?LP.pst("HLSPlaylistParser - The master playlist has no valid base URI: "+g+"."):g=_._o(g).href,void 0===w&&(LP.pst("HLSPlaylistParser - The playlist has no #EXT-X-INDEPENDENT-SEGMENT, assuming segments are not independent."),w=!1),void 0===m&&(LP.pst("HLSPlaylistParser - The playlist has no #EXT-X-VERSION, assuming version is 2."),m=2),m>=8&&(u.some(function(e){return void 0!==e.hot})||a.some(function(e){return void 0!==e.hot}))&&(u.some(function(e){return void 0===e.hot})||a.some(function(e){return void 0===e.hot}))&&LP.pst("HLSPlaylistParser - If one master playlist variant stream has a SCORE, all variants should have it."),void 0===g)throw new y("HLSPlaylistParser - Could not parse HLS master playlist: "+g);return{h0:g,Xb:m,Dot:w,bC:b,Bot:a,Xst:h,fT:o,Oot:u}}(e,s):function(e,r){for(var s,o,u,a,h,c,f,l,p,v,d,g,m,b,k,E,A,x,T={h0:e,Dot:void 0,bC:void 0,Xb:void 0},C=[],S=!1,R=[],L=iM(),P=[],I=[],N=!1,O=!1,D=[],U=[],M=!1,F=L_.Nl,j=!1,H=r.tc();;){var B=H.Rot();if(!B||void 0!==A&&void 0!==x)break;try{switch(LW(B)){case"#EXT-X-MEDIA-SEQUENCE":A=LY(B);break;case"#EXT-X-DISCONTINUITY-SEQUENCE":x=LY(B)}}catch(e){LP.pst(e),LP.pst("HLSPlaylistParser - Ignoring unparsable line: "+B)}}for(void 0===A&&(LP.bT("HLSPlaylistParser - #EXT-X-MEDIA-SEQUENCE tag is missing, assuming first segment media sequence number is 0."),A=0),void 0===x&&(LP.bT("HLSPlaylistParser - #EXT-X-DISCONTINUITY-SEQUENCE tag is missing, assuming first segment discontinuity sequence number is 0."),x=0);;){var V=r.Rot();if(!V)break;var X=!1;try{var W=LW(V);switch(W){case"#EXTINF":X=!0;var q=function(e){var r=Lq(e);if(!r)return[void 0,""];var s=r.split(","),o=s[0],u=s[1];return[LQ(o),u]}(V);h=q[0],c=q[1];break;case"#EXT-X-BYTERANGE":X=!0,f=LK(Lq(V));break;case"#EXT-X-DISCONTINUITY":X=!0,N=!0;break;case"#EXT-X-KEY":X=!0;var Y,$,J=LG(V,e);if(J.ql===LL.cC){L.clear(),k=void 0;break}var Q=null!=(Y=null==($=J.Vst)?void 0:$.toString())?Y:"identity";L.set(Q,J),J.ql===LL.dot&&(k=J);break;case"#EXT-X-MAP":X=!0,p=function(e,r){var s=L$(e),o=L0(function(){return LZ(s.URI,r)}),u=L0(function(){return Lz(s.BYTERANGE)});if(o.zst||u.zst)throw new y("HLSPlaylistParser - Could not parse #EXT-X-MAP tag: "+e+".");return{gs:o.Gst,E2:u.Gst}}(V,e),v=k;break;case"#EXT-X-PROGRAM-DATE-TIME":X=!0,d=function(e){var r=Lq(e);if(!r)throw new y("HLSPlaylistParser - Could not parse #EXT-X-PROGRAM-DATE-TIME tag: "+e+".");var s=new Date(r);if(!tZ(s))throw new y("HLSPlaylistParser - Could not parse #EXT-X-PROGRAM-DATE-TIME tag: "+e+".");return s}(V);break;case"#EXT-X-GAP":X=!0,O=!0;break;case"#EXT-X-BITRATE":X=!0,g=LY(V);break;case"#EXT-X-TARGETDURATION":s=LY(V);break;case"#EXT-X-DATERANGE":var G=function(e){var r,s,o,u=L$(e),a=u["START-DATE"],h=u["END-DATE"],c=LQ(u["PLANNED-DURATION"]),f=LQ(u.DURATION);void 0!==u["SCTE35-CMD"]&&(r=sQ(u["SCTE35-CMD"]).buffer),u["SCTE35-IN"]&&(s=sQ(u["SCTE35-IN"]).buffer),u["SCTE35-OUT"]&&(o=sQ(u["SCTE35-OUT"]).buffer);var l,p,v="YES"===u["END-ON-NEXT"],d=function(e){for(var r={},s=0,o=w.keys(e);s<o.length;s++){var u=o[s],a=e[u];void 0!==a&&nW(u,"X-")&&(r[u]=a)}return r}(u),g=u.ID,m=u.CLASS;if(void 0===a)LP.pst("HLSPlaylistParser - Could not parse #EXT-X-DATERANGE tag without START-DATE attribute: "+a+".");else if(l=new Date(a),p=void 0!==h?new Date(h):void 0,tZ(l)||LP.pst("HLSPlaylistParser - Could not parse EXT-X-DATERANGE tag with invali
1d START-DATE attribute: "+l+"."),void 0!==f){var b=new Date(l.getTime()+1e3*f);p?p.getTime()!==b.getTime()&&(LP.pst("HLSPlaylistParser - DURATION and END-DATE attributes of #EXT-X-DATERANGE tag are not aligned, updating the END-DATE: "+e+"."),p=b):p=b}else p&&(f=(l.getTime()-p.getTime())/1e3);if(v&&(u.CLASS||LP.pst("HLSPlaylistParser - Could not parse #EXT-X-DATERANGE tag with END-ON-NEXT attribute without CLASS attribute: "+e+"."),u.DURATION&&LP.pst("HLSPlaylistParser - Could not parse #EXT-X-DATERANGE tag with END-ON-NEXT attribute with DURATION attribute: "+e+"."),p&&LP.pst("HLSPlaylistParser - Could not parse #EXT-X-DATERANGE tag with END-ON-NEXT attribute with END-DATE attribute: "+e+".")),void 0===g&&LP.pst("HLSPlaylistParser - Could not parse #EXT-X-DATERANGE tag without valid ID attribute: "+e+"."),void 0===g||void 0===l)throw new y("HLSPlaylistParser - Could not parse #EXT-X-DATERANGE tag: "+e+".");return{hw:g,Rst:m,qD:l,Nst:p,ly:f,Dst:c,Ost:r,Mst:s,Lst:o,Ist:v,Pst:d}}(V);C.push(G);break;case"#EXT-X-PART":X=!0;var K=function(e,r){var s=L$(e),o=LQ(s.DURATION),u=L0(function(){return LZ(s.URI,r)}),a=L0(function(){return Lz(s.BYTERANGE)}),h="YES"===s.INDEPENDENT,c="YES"===s.GAP;if(!o||u.zst)throw new y("HLSPlaylistParser - Unable to parse #EXT-X-PART without valid DURATION: "+e);return{ly:o,h0:{gs:u.Gst,E2:a.Gst},got:h,wot:c}}(V,e);I.push(K);break;case"#EXT-X-PRELOAD-HINT":var z=function(e,r){var s,o=L$(e),u=L0(function(){var e=o.TYPE;if(void 0===e)throw new y("HLSPlaylistParser - Could not parse PRELOAD-HINT type: "+e+".");if("MAP"===e)return LR.bot;if("PART"===e)return LR.Tot;throw new y("HLSPlaylistParser - Could not parse PRELOAD-HINT type: "+e+".")}),a=L0(function(){return LZ(o.URI,r)}),h=LQ(o["BYTERANGE-START"]),c=LQ(o["BYTERANGE-LENGTH"]);if(void 0!==h&&void 0!==c&&(s={bC:h,Zg:c}),u.zst||a.zst)throw new y("HLSPlaylistParser - Could not parse #EXT-X-PRELOAD-HINT tag: "+e+".");return{Ua:u.Gst,h0:{gs:a.Gst,E2:s}}}(V,e);D.push(z);break;case"#EXT-X-SKIP":X=!0;var Z=function(e){var r=LQ(L$(e)["SKIPPED-SEGMENTS"]);if(!r)throw new y("HLSPlaylistParser - Could not parse #EXT-X-SKIP tag without valid SKIPPED-SEGMENTS attribute: "+e+".");return{mot:r}}(V);R.push(Z);break;case"#EXT-X-SERVER-CONTROL":var tt=function(e){var r=L$(e);return["YES"===r["CAN-BLOCK-RELOAD"],LQ(r["CAN-SKIP-UNTIL"]),LQ(r["HOLD-BACK"]),LQ(r["PART-HOLD-BACK"])]}(V);S=tt[0],o=tt[1],u=tt[2],a=tt[3];break;case"#EXT-X-RENDITION-REPORT":var te=function(e,r){var s=L$(e),o=L0(function(){var e;return LZ(null!=(e=s.URI)?e:"",r)}),u=LQ(s["LAST-MSN"]),a=LQ(s["LAST-PART"]);if(void 0===s.URI&&LP.bT("HLSPlaylistParser - Assuming #EXT-X-RENDITION-REPORT tag without URI attribute refers to the current media playlist: "+e+"."),void 0===s["LAST-MSN"]&&LP.bT("HLSPlaylistParser - Assuming #EXT-X-RENDITION-REPORT tag without LAST-MSN attribute refers to the current media playlist: "+e+"."),void 0===s["LAST-PART"]&&LP.bT("HLSPlaylistParser - Assuming #EXT-X-RENDITION-REPORT tag without LAST-PART attribute refers to the current media playlist: "+e+"."),o.zst)throw new y("HLSPlaylistParser - Could not parse #EXT-X-RENDITION-REPORT: "+e+".");return{h0:o.Gst,yot:u,kot:a}}(V,e);U.push(te);break;case"#EXT-X-PART-INF":E=function(e){var r=LQ(L$(e)["PART-TARGET"]);if(void 0===r)throw new y("HLSPlaylistParser - Could not parse #EXT-X-PART-TARGET-DURATION tag: "+e+".");return r}(V);break;case"#EXT-X-MEDIA-SEQUENCE":X&&LP.pst("HLSPlaylistParser - #EXT-X-MEDIA-SEQUENCE must appear before any media segment tags.");break;case"#EXT-X-DISCONTINUITY-SEQUENCE":X&&LP.pst("HLSPlaylistParser - #EXT-X-DISCONTINUITY-SEQUENCE must appear before any media segment tags.");break;case"#EXT-X-ENDLIST":M=!0;break;case"#EXT-X-PLAYLIST-TYPE":F=function(e){switch(Lq(e)){case"VOD":return L_.pot;case"EVENT":return L_.Aot;default:return LP.pst("HLSPlaylistParser - Found #EXT-X-PLAYLIST-TYPE tag with invalid value: "+e+"."),L_.Nl}}(V);break;case"#EXT-X-I-FRAMES-ONLY":j=!0;break;default:if(nW(W,"#"))T=L2(T,V,W);else{l=_._o(V,e).href;var tn=p?{h0:p,Lot:v}:void 0;void 0===m&&(m=A),void 0===b&&(b=x),N&&b++;var ti={Xst:L3(ij(L),m),aS:P,Sst:I,ly:h,RD:c,Mot:N,h0:{E2:f,gs:l},xot:tn,Uot:d,wot:O,Fot:g,Hot:m,Xot:b};R.push(ti),m++,P=[],I=[],h=void 0,h=void 0,c=void 0,N=!1,f=void 0,l=void 0,d=void 0,O=!1,g=void 0}}}catch(e){LP.pst(e),LP.pst("HLSPlaylistParser - Ignoring unparsable line: "+V)}}if(I.length){var tr=p?{h0:p,Lot:k}:void 0;void 0===m&&(m=A),void 0===b&&(b=x),N&&b++;var ts={Xst:L3(ij(L),m),aS:P,Sst:I,ly:h,RD:c,Mot:N,h0:{gs:"",E2:void 0},xot:tr,Uot:d,wot:O,Fot:g,Hot:m,Xot:b};R.push(ts)}var to=e,tu=T.Xb,ta=T.Dot,th=T.bC;try{to=_._o(to).href}catch(r){LP.pst(r),LP.pst("HLSPlaylistParser - The media playlist has no valid base URI: "+e+"."),to=void 0}void 0===ta&&(LP.pst("HLSPlaylistParser - The media playlist has no #EXT-X-INDEPENDENT-SEGMENT tag, assuming segments are not independent."),ta=!1),void 0===tu&&(LP.pst("HLSPlaylistParser - The media playlist has no #EXT-X-VERSION tag, assuming version is 2."),tu=2),void 0===s&&LP.pst("HLSPlaylistParser - Could not parse the HLS media playlist: no #EXT-X-TARGET-DURATION tag was found.");var tc=R.filter(LM),tf=tc.length,tl=!!tf;tl||LP.pst("HLSPlaylistParser - The HLS media playlist contains 
1no segments.");var tp=tl&&tc[tf-1].Sst.length>0;tp&&void 0===E&&LP.pst("HLSPlaylistParser - Could not parse the HLS media playlist: no #EXT-X-PART-TARGET-DURATION tag was found, but it is required when some or all segments contain parts."),tp&&void 0===a&&LP.pst("HLSPlaylistParser - Could not parse the HLS media playlist: The #EXT-X-SERVER-CONTROL tag has no PART-HOLDBACK attribute, but it is required when some or all segments contain parts.");for(var tv=[],td=0;td<U.length;td++){var ty=U[td],tg=ty.h0,tm=ty.yot,tw=ty.kot;if(void 0===tg||void 0===tm||void 0===tw){LP.pst("HLSPlaylistParser - detected #EXT-X-RENDITION-REPORT tag with missing required attributes, assuming it refers to the containing HLS media playlist."),tg=e,tm=A+R.length;var tb=R[R.length-1];tw=LM(tb)?tb.Sst.length-1:0}tv.push({h0:tg,yot:tm,kot:tw})}if(void 0===to||void 0===s)throw new y("HLSPlaylistParser - Could not parse HLS media playlist.");return{Vot:S,Wot:o,qot:C,Xot:x,Got:M,Dot:ta,zot:u,jot:j,Hot:A,Yot:a,Qot:E,Zot:F,Kot:D,Jot:tv,$ot:s,$K:R,bC:th,h0:to,Xb:tu}}(e,s)}(a.Sl,h));case 9:case"end":return e.stop()}},e,this)})),h.aht=function(e,r,s){return a.apply(this,arguments)},h.lht=function(e){if(e.$K.length&&this.sht){if(e.$K.length&&e.Got)return e.rat=0,void LP.bT("HLSModelUpdater - Assuming global timeline offset of "+e.rat+"s for rendition "+e.uC.h0+".");for(var r,s,o=e.$K.length-1;o>=0;o--)if(void 0!==(r=null==(a=e.$K[o].Uot)?void 0:a.getTime())){s=1e3*e.$K[o].xp;break}if(void 0!==r&&void 0!==s)for(var u=this.sht.$K.length-1;u>=0;u--){var a,h,c=null==(h=this.sht.$K[u].Uot)?void 0:h.getTime();if(void 0!==c)return e.rat=(1e3*this.sht.$K[u].xp-s-(c-r))/1e3,void LP.bT("HLSModelUpdater - Assuming global timeline offset of "+e.rat+"s for rendition "+e.uC.h0+".")}e.rat=this.sht.$K[0].xp-e.$K[0].xp,LP.bT("HLSModelUpdater - Assuming global timeline offset of "+e.rat+"s for rendition "+e.uC.h0+".")}},h.hht=function(e,r){this.m0.Iat(e,r),e.$K&&r&&this.yh(new _d(r,e.qot))},h.fht=function(e){for(var r=0,s=this.m0.xst;r<s.length;r++)for(var o=0,u=s[r].Jat;o<u.length;o++){var a=u[o];if(a===e)return a}},M(r,[{key:"f4",get:function(){return this.m0}}]),r}(rB),_g=function(e,r,s){return P.resolve(e.filter(function(e){return 1.1*e.QN<=s.QN}))},_m=function(e,r,s){return P.resolve(rr(e,function(e,r){return r.QN-e.QN}))},_w=function(e,r,s){return P.resolve(e.every(function(e){return e.hot&&!A(e.hot)})?rr(e,function(e,r){return r.hot-e.hot}):e)},_b=function(e,r,s){return P.resolve(e.filter(function(e){return e.e$.Fst?!!r.e$.Fst&&e.e$.Fst.split(".")[0]===r.e$.Fst.split(".")[0]&&(e.e$.Ust?!!r.e$.Ust&&e.e$.Ust.split(".")[0]===r.e$.Ust.split(".")[0]&&e.e$.tot===r.e$.tot:!r.e$.Ust):!r.e$.Fst}))},_k=function(){function e(e){this.S5=[_b,_g,_m,_w],this.pP=e}var r,s=e.prototype;return s._ht=function(e){this.S5=e},r=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}throw new y("AbrEvaluator - Unable to select optimal variant stream from and empty list.");case 2:LP.mst("AbrEvaluator - Performing optimal variant stream selection."),o=this.wht,u=r,a=0,h=this.S5;case 6:if(!(a<h.length)){e.next=14;break}return c=h[a],e.next=10,c(u,s,o);case 10:u=e.sent;case 11:a++,e.next=6;break;case 14:if(u.length){e.next=17;break}return LP.pst("AbrEvaluator - No possible variant stream remains after ABR rule evaluation. Selecting the lowest bandwidth variant stream."),e.abrupt("return",rm(r,function(e){return e.QN}));case 17:return e.abrupt("return",u[0]);case 18:case"end":return e.stop()}},e,this)})),s.ght=function(e,s){return r.apply(this,arguments)},M(e,[{key:"wht",get:function(){return this.pP.xM}}]),e}(),_E=function(){var e;function r(e){this.TK=e}return r.prototype.eH=(e=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s={Ua:gp._N,ED:[],gV:[{$d:r}]},e.t0=Boolean,e.next=4,this.TK.eH([s]);case 4:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 6:case"end":return e.stop()}},e,this)})),function(r){return e.apply(this,arguments)}),r}
1(),_A=function(r){function s(e,s){var o;return(o=r.call(this)||this).nf=void 0,o.xut=void 0,o.yht=new sG,o.Tp=!0,o.QM=20,o.kht=!1,o.ZM=30,o.AX=new kR,o.Ua=e,o.mht=s,o}j(s,r);var o,u,a,h,c,f,l,p,v=s.prototype;return v.uH=function(){return this.xut?this.xut.uH():this.kht},v.TH=function(e,r){LP.mst("LazyMediaBuffer - Marking gap from "+e+" to "+r+"."),this.AX.wH(e,r),this.xut&&this.xut.TH(e,r)},v.EH=function(e,r){LP.mst("LazyMediaBuffer - Removing gap from "+e+" to "+r+"."),this.AX.yH(e,r),this.xut&&this.xut.EH(e,r)},v.pht=function(e){var r;this.xut=e,this.xut.zM=this.ZM,this.xut.VM=this.QM;for(var s,o=this.AX.kH,u=0;u<o.Zg;u++)this.xut.TH(o.bC(u),o.EC(u));null==(r=this.xut)||r.Sp(this.Tp),this.kht&&(LP.mst("LazyMediaBuffer - end of stream"),null==(s=this.xut)||s.bH()),this.xut.kh(kw.aH,this.wh),this.yht.uc(e)},v.Aht=function(e){return rR(this.yht.ec,e)},o=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Aht(o);case 2:return u=e.sent,e.next=5,u.mH(r,s,o);case 5:case"end":return e.stop()}},e,this)})),v.mH=function(e,r,s){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Aht();case 2:return r=e.sent,e.next=5,r.pH();case 5:case"end":return e.stop()}},e,this)})),v.pH=function(){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Aht(s);case 2:return o=e.sent,e.next=5,o.AH(r,s);case 5:case"end":return e.stop()}},e,this)})),v.AH=function(e,r){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Aht(o);case 2:return u=e.sent,e.next=5,u.Tc(r,s,o);case 5:case"end":return e.stop()}},e,this)})),v.Tc=function(e,r,s){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Aht();case 2:return o=e.sent,e.next=5,o.SH(r,s);case 5:case"end":return e.stop()}},e,this)})),v.SH=function(e,r){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.Tp===r||(this.Tp=r,!this.xut)){e.next=6;break}return e.next=5,this.xut.Sp(r);case 5:r?this.yh(new rX("aw")):this.yh(new rX("cH"));case 6:case"end":return e.stop()}},e,this)})),v.Sp=function(e,r){return f.apply(this,arguments)},v.bH=function(){this.kht=!0,this.xut&&this.xut.bH()},v.IX=function(e){return!!this.xut&&this.xut.IX(e)},l=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Aht();case 2:return s=e.sent,e.next=5,s.RX(r);case 5:case"end":return e.stop()}},e,this)})),v.RX=function(e){return l.apply(this,arguments)},p=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.Th(),null==(r=this.xut)||r.Eh(kw.aH,this.wh);case 2:case"end":return e.stop()}},e,this)})),v.Kl=function(){return p.apply(this,arguments)},M(s,[{key:"$d",get:function(){return this.nf}},{key:"iE",get:function(){if(!this.xut)throw new om(e.ErrorCode.MEDIA_LOAD_ERROR,"Cannot get the configuration of an uninitialized MediaBuffer.");return this.xut.iE}},{key:"CH",get:function(){return this.Tp}},{key:"VM",get:function(){return this.QM},set:function(e){this.QM=e,this.xut&&(this.xut.VM=e)}},{key:"rp",get:function(){return this.xut?this.xut.rp:mo.aP()}},{key:"PH",get:function(){return this.xut?this.xut.PH:this.AX.kH}},{key:"zM",get:function(){return this.ZM},set:function(e){this.ZM=e,this.xut&&(this.xut.zM=e)}}]),s}(rB),_x=function(){function r(e,r,s){this.bht=void 0,this.Tht=void 0,this.Eht=new sG,this.$R=void 0,this.Sht=!1,this.EV=NaN,this.BZ=!1,this.Iht=0,this.Rht=1/0,this.Nht=!1,this.Dht=!1,this.JR=e,r&&(LP.mst("LazyMediaSource - Created lazy media buffer for audio."),this.bht=new _A(l4.Xl,this)),s&&(LP.mst("LazyMediaSource - Created lazy media buffer for video."),this.Tht=new _A(l4.Vl,this))}var s,o,u,a=r.prototype;return a.dV=function(e){this.EV=e,this.$R&&this.$R.dV(e)},a.bH=function(){this.BZ=!0,this.$R&&this.$R.bH()},a._V=function(e,r,s,o){this.Iht=e,this.Rht=r,this.Nht=!!s,this.Dht=!!o,this.$R&&this.$R._V(e,r,s,o)},s=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Eht.ec;case 2:return o=e.sent,e.next=5,o.cN(r,s);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)})),a.cN=function(e,r){return s.apply(this,arguments)},a.IX=function(e){return!this.$R||this.$R.IX(e)},o=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.IX(r)){e.next=2;break}
1throw new y("LazyMediaSource - Unable to reconfigure MediaSource.");case 2:if(this.$R){e.next=19;break}return this.JR.bV(),e.next=6,this.JR.bc(r);case 6:u=e.sent,A(this.EV)||u.dV(this.EV),this.BZ&&u.bH(),u._V(this.Iht,this.Rht,this.Nht,this.Dht),LP.mst("LazyMediaSource - The MediaSource has been loaded."),this.Sht=!0,this.$R=u,null==(s=this.bht)||s.pht(this.$R.YX),null==(o=this.Tht)||o.pht(this.$R.QX),this.Eht.uc(u),this.JR.TV(),e.next=21;break;case 19:return e.next=21,this.$R.RX(r);case 21:case"end":return e.stop()}},e,this)})),a.RX=function(e){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.$R){e.next=3;break}return e.next=3,this.$R.rh();case 3:case"end":return e.stop()}},e,this)})),a.rh=function(){return u.apply(this,arguments)},M(r,[{key:"iE",get:function(){if(!this.$R)throw new om(e.ErrorCode.MEDIA_LOAD_ERROR,"Cannot get the configuration of an uninitialized MediaSource.");return this.$R.iE}},{key:"Bm",get:function(){throw new y("Not implemented")}},{key:"YX",get:function(){return this.bht}},{key:"QX",get:function(){return this.Tht}},{key:"rp",get:function(){return this.$R?this.$R.rp:mo.aP()}},{key:"ly",get:function(){return this.$R?this.$R.ly:this.EV}},{key:"uH",get:function(){return!!this.$R&&this.$R.uH}},{key:"wp",get:function(){return this.$R?this.$R.wp:new mo([0,1/0])}}]),r}(),_T=function(){function e(e,r,s,o){var u=this;this.xut=void 0,this.Cht=void 0,this.b7=void 0,this.Xs=void 0,this.Pht=void 0,this.V_=new rE,this.Bht=function(e){u.Pht&&(e&&!rx(e)?u.Pht.ac(e):(u.Pht.uc(),u.Pht=void 0))},this.Xs=e,this.xut=r,this.Cht=s,this.b7=o}var r,s,o=e.prototype;return o.Oht=function(){return this.Pht?this.Pht.ec:P.resolve()},o.Lht=function(e){return this.b7.Lht(e)},o.Mht=function(e){return this.b7.xht(e)},o.hh=function(){this.V_.hh(),this.V_=new rE,this.Cht.Yh()},o.AH=function(e,r){if(this.Uht)throw new y("Cannot perform new operation while BufferAppender is still busy");this.Pht=new sG,this.rX(e,r,this.V_.dh).then(this.Bht,this.Bht)},r=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.xut.AH(r,s,o);case 2:this.b7.Hnt(r.Fht);case 3:case"end":return e.stop()}},e,this)})),o.rX=function(e,s,o){return r.apply(this,arguments)},o.sit=function(e,r){if(this.Uht)throw new y("Cannot perform new operation while BufferAppender is still busy");this.Pht=new sG,this.Hht(e,r,this.V_.dh).then(this.Bht,this.Bht)},s=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==s.Fht.ly){e.next=2;break}throw new y("MediaBufferWrapper - Cannot append HLSPartAsset or HLSSegmentAsset to "+this.Xs+" MediaBuffer with an undefined duration.");case 2:if(void 0!==r.Bat){e.next=4;break}throw new y("MediaBufferWrapper - Cannot append HLSAsset to "+this.Xs+" MediaBuffer for a HLSRendition with an undefined targetDuration.");case 4:return e.next=6,this.xut.mH(r,s,o);case 6:h=(a=s.Fht.xp)+s.Fht.ly,c=s.Fht,this.b7.h6(r,a,h,c.xp,c.xp+(null!=(u=c.ly)?u:0)),s.Fht.iat&&this.b7.bH();case 11:case"end":return e.stop()}},e,this)})),o.Hht=function(e,r,o){return s.apply(this,arguments)},M(e,[{key:"Ua",get:function(){return this.Xs}},{key:"Uht",get:function(){return void 0!==this.Pht}}]),e}(),_C=function(){function e(e,r){this.Xht=void 0,this.Vht=e,this.ES=r}var r,s,o,u=e.prototype;return r=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.qht(s);case 2:return u=e.sent,e.next=5,this.Vht.Wht(r,u,o);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)})),u.Wht=function(e,s,o){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.qht(s);case 2:return u=e.sent,e.next=5,this.Vht.Ght(r,u,o);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)})),u.Ght=function(e,r,o){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r){var s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((null==(s=this.Xht)?void 0:s.Il)===r){e.next=10;break}return LP.mst("HLSDecryptor - Fetching new AES-128 decryption key from "+r+"."),e.next=4,this.ES.El({Il:r});case 4:return o=e.sent,e.next=7,o.Kd();case 7:u=new x(e.sent),this.Xht={Il:r,Fs:u};case 10:return e.abrupt("return",this.Xht.Fs);case 11:case"end":return e.stop()}},e,this)})),u.qht=function(e){return o.apply(this,arguments)},e}(),_S=function(){var e;function r(e,r,s){void 0===s&&(s=2),this.ES=e,this.O5=r,this.zht=s}return r.prototype.El=(e=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=r.E2?r.E2.bC+r.E2.Zg-1:0x1fffffffffffff,u=r.E2&&(0!==r.E2.bC||0x1fffffffffffff!==o)?{Range:"bytes="+r.E2.bC+"-"+o}:void 0,a={Il:r.gs,Al:up.Nv,yl:u,Yl:this.O5,ql:hk.GET,Ua:hE.Cl,dh:s},e.next=6,LD(a,this.zht,this.ES);case 6:return h=e.sent,e.abrupt("return",h.Jd(s));case 8:case"end":return e.stop()}},e,this)})),function(r,s){return e.apply(this,arguments)}),r}(),_R=function(){function e(e,r){this.p6=void 0,this.jht=void 0,this.Yht=void 0,this.Qht=new rE,this.Zht=new sG,this.YW=-1/0,this.p6=e,this.jht=r,this.Kht()}var r,s,o,u,a=e.prototype;return a.Jht=function(){return this.jht.Vot},r=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.Jht()){e.next=2;break}throw new y("Could not perform blocking playlist update.");case 2:return e.prev=2,e.next=5,this.tct();case 5:return rT(o),e.next=8,this.p6.cht(this.jht,r,s,o);case 8:this.YW=_.xo();case 9:return e.prev=9,this.Kht(),e.finish(9);case 12:case"end":return e.stop()}},e,this,[[2,,9,12]])})),a.$ht=function(e,s,o){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rR(this.Zht.ec,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),a.nct=function(e){return s.apply(this,arguments)},a.Kht=function(){var e=this;if(!this.Yht){var r=function(){e.Yht=void 0};this.Yht=this.ict(this.Qht.dh).then(r,r)}},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.Yht){e.next=8;break}return this.Qht.hh(),this.Qht=new rE,e.next=5,this.Yht.catch(I);case 5:this.Yht=void 0,this.Zht.uc(),this.Zht=new sG;case 8:case"end":return e.stop()}},e,this)})),a.tct=function(){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.jht.Got||!this.jht.Mat){e.next=3;break}return e.abrupt("return");
1case 3:if(!((s=_.xo()-this.YW)<(o=1e3*this.jht.Uat))){e.next=8;break}return e.next=8,rU(o-s,r);case 8:return e.next=10,this.p6.dht(this.jht,r);case 10:this.YW=_.xo(),this.Zht.uc(),this.Zht=new sG,e.next=0;break;case 15:case"end":return e.stop()}},e,this)})),a.ict=function(e){return u.apply(this,arguments)},a.rh=function(){rN(this.tct())},e}();function _L(e,r,s){var o=sl(e,r);if(o!==s)throw new g("Expected descriptor with tag "+s+", but found "+o)}function __(e,r){for(var s=0,o=0;o<4;o++){var u=sl(e,r);if(s=s<<7|127&u,!(128&u))break}return s}function _P(e,r){return nJ(e.toString(16),r,"0")}(_4=_h||(_h={}))[_4.rct=3]="rct",_4[_4.ect=4]="ect",_4[_4.uct=5]="uct",(_6=_c||(_c={}))[_6.Wct=64]="Wct",_6[_6.Yct=103]="Yct",_6[_6.Qct=107]="Qct",(_8=_f||(_f={}))[_8.Zct=0]="Zct",_8[_8.Kct=1]="Kct",_8[_8.Yct=2]="Yct",_8[_8.Jct=5]="Jct",_8[_8.$ct=34]="$ct",(_7=_l||(_l={}))[_7.bot=0]="bot",_7[_7.Tot=1]="Tot",_7[_7.Cl=2]="Cl",_7[_7.tft=3]="tft";var _I=function(){function e(){this.nft=[]}var r=e.prototype;return r.ift=function(e,r,s){for(var o=r,u=0,a=this.nft;u<a.length;u++){var h=a[u];if(o>=e)return!0;if(o<h.bC)return!1;if(o<h.EC){if(s<=h.EC)return!0;o=h.EC}}return o>=e},r.rft=function(e,r){for(var s=[],o=0;o<this.nft.length;o+=1){var u=this.nft[o],a=e-u.bC,h=u.Fs.length,c=b.min(h,b.max(a,0)),f=b.max(0,r+a),l=u.Fs.slice(c,f);l.length&&(o=this.eft(o,u,e,c,f),s.push(l))}return s},r.uft=function(e,r){this.nft.push({bC:e,EC:e+r.length,Fs:r})},r.eft=function(e,r,s,o,u){var a=e;this.nft.splice(a,1),a-=1,r.bC<s&&(a+=1,this.nft.splice(a,0,{bC:r.bC,EC:s,Fs:r.Fs.slice(0,o)}));var h=s+u-o;return h<r.EC&&(a+=1,this.nft.splice(a,0,{bC:h,EC:r.EC,Fs:r.Fs.slice(u)})),a},e}(),_N=function(){function e(e,r){this.Hv=void 0,this.sft=r,this.Hv=e.getReader()}var r,s,o=e.prototype;return r=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Hv.read();case 2:if(!(r=e.sent).done){e.next=6;break}throw this.sft=1/0,new y("No more data can be read from the given stream.");case 6:return this.sft+=r.value.length,e.abrupt("return",r.value);case 8:case"end":return e.stop()}},e,this)})),o.oft=function(){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Hv.cancel(r);case 2:case"end":return e.stop()}},e,this)})),o.aft=function(e){return s.apply(this,arguments)},M(e,[{key:"hft",get:function(){return this.sft}}]),e}(),_O=function(){function e(e,r,s,o){this.cft=void 0,this.Hv=void 0,this.fft=void 0,this.vft=void 0,this.dft=void 0,this.lft=void 0,this._ft=new sG,this.cft=e,this.Hv=r,this.fft=s,this.vft=o,this.dft=new sG,this.lft=new sG}var r,s=e.prototype;return s.gft=function(){this.lft.uc(),this.lft=new sG},s.wft=function(e){var r=_U(this.cft.E2),s=r.d2,o=r.S2,u=this.fft.rft(s,o-s);LP.mst("AssetExtractor -  Collected "+u.length+" chunks.");for(var a=0;a<u.length;a++){var h=u[a];e.enqueue(h)}},r=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c,f,l,p,v,d,y;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.dft.ec;case 2:o=(s=_U(this.cft.E2)).d2,u=s.S2,e.prev=3;case 4:return a=this.Hv.hft,e.next=8,this.Hv.oft();case 8:if(c=(h=e.sent).length,LP.mst("AssetExtractor - Read "+c+" at "+a+" for extraction of "+LF(this.cft)),!((f=b.min(a+c,o)-a)>0)){e.next=25;break}if(l=h.slice(0,f),p=h.slice(f),LP.mst("AssetExtractor - Of the read "+c+" bytes, the first "+f+" will be stored locally for extraction of "+LF(this.cft)),this.fft.uft(a,l),!(p.length>0)){e.next=23;break}return LP.mst("AssetExtractor - Extracting "+p.length+" bytes for extraction of "+LF(this.cft)),r.enqueue(p),this.gft(),e.abrupt("return",rN(this.readAndSliceOutAssetBytes(r)));case 23:e.next=46;break;case 25:if(!(a+c<=u)){e.next=33;break}return LP.mst("AssetExtractor - Extracting the read data range for extraction of "+LF(this.cft)),r.enqueue(h),this.gft(),e.abrupt("return",rN(this.readAndSliceOutAssetBytes(r)));case 33:if(v=u-a,d=h.slice(0,v),y=h.slice(v),d.length>0&&(LP.mst("AssetExtractor - Extracting "+d.length+" bytes for extraction of "+LF(this.cft)),r.enqueue(d)),LP.mst("AssetExtractor - Of the read "+c+" bytes, the last "+y.length+" will be stored locally for extraction of "+LF(this.cft)),this.fft.uft(a+v,y),LP.mst("AssetExtractor - Extraction of "+LF(this.cft)+" completed as the entire request has been fulfilled."),this.yft(r),!this.vft){e.next=45;break}return LP.mst("AssetExtractor - Aborting stream upstream as no more bytes are needed from "+LF(this.cft)+"."),e.next=45,this.Hv.aft("AssetExtraction - AbortOnEnd");case 45:return e.abrupt("return");case 46:e.next=4;break;case 48:e.next=54;break;case 50:e.prev=50,e.t0=e.catch(3),LP.mst("AssetExtractor - Extraction of "+LF(this.cft)+" completed as the entire source stream has been read."),this.yft(r);case 54:case"end":return e.stop()}},e,this,[[3,50]])})),s.readAndSliceOutAssetBytes=function(e){return r.apply(this,arguments)},s.yft=function(e){e.close(),this.gft(),this._ft.uc()},s.start=function(e){LP.mst("AssetExtractor - Preparing to push all collected data to controller for extraction of "+LF(this.cft)),this.wft(e),LP.mst("AssetExtractor - Collected data pushed to controller for extraction of "+LF(this.cft));var r=_U(this.cft.E2).S2;this.Hv.hft>=r?(LP.mst("AssetExtractor - Extraction of "+LF(this.cft)+" completed as the entire request has been fulfilled."),this.yft(e)):(LP.mst("AssetExtractor - Continuing read from original stream for extraction of "+LF(this.cft)),rN(this.readAndSliceOutAssetBytes(e)))},s.pull=function(){return this.dft.uc(),this.dft=new sG,this.lft.ec},M(e,[{key:"kft",get:function(){return this._ft.ec}}]),e}(),_D=function(){function e(e,r){this.fft=void 0,this.mft=void 0,this.pft=void 0,this.cft=r;var s=_U(this.cft.E2).d2;this.mft=new _N(e,s),this.fft=new _I}var r,s=e.prototype;return s.kp=function(e){if(!Lj(this.cft,e))return!1;var r=_U(e.E2),s=r.d2,o=r.S2;return this.fft.ift(this.mft.hft,s,o)},r=P.coroutine(iO.mark(function e(r,s){var o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===s&&(s=!1),o=this.mft,u=this.fft,LP.bT("AssetExtractor - Extracting data from "+LF(r)+" out of "+LF(this.cft)),!this.pft){e.next=8;break}return LP.mst("AssetExtractor - Awaiting previous extraction before extracting "+LF(r)+" out of "+LF(this.cft)),e.next=8,this.pft;case 8:if(this.kp(r)){e.next=10;break}throw new y("The extractor does not contain the data requested");case 10:return a=new _O(r,o,u,s),this.pft=a.kft,e.abrupt("return",new aV(a));case 13:case"end":return e.stop()}},e,this)})),s.Aft=function(e){return r.apply(this,arguments)},e}();function _U(e){var r=(null==e?void 0:e.bC)||0;return{d2:r,S2:r+((null==e?void 0:e.Zg)||0x1fffffffffffff)}}var _M=function(){function e(e,r){this.V_=new rE,this.jit=void 0,this.cft=e,this.bft=r,this.jit=this.bc()}var r,s,o=e.prototype;return r=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.bft.El(this.cft,this.V_.dh);case 2:return r=e.sent,e.abrupt("return",new _D(r,this.cft));case 4:case"end":return e.stop()}},e,this)})),o.bc=function(){return r.apply(this,arguments)},o.kp=function(e){return Lj(this.cft,e)},s=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===s&&(s=!1),e.next=3,this.jit;case 3:return o=e.sent,e.next=6,rR(o.Aft(r,s),this.V_.dh);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)}
1)),o.Aft=function(e){return s.apply(this,arguments)},o.hh=function(){this.jit.catch(I),this.V_.hh()},e}(),_F=function(){function e(e,r,s,o,u,a,h){var c=this;this.Xs=void 0,this.p6=void 0,this.Cht=void 0,this.b7=void 0,this.bft=void 0,this.Tft=void 0,this.jht=void 0,this.Eft=void 0,this.Sft=void 0,this.Ift=void 0,this.Rft=new rE,this.Nft=void 0,this.Dft=void 0,this.Cft=void 0,this.Pft=void 0,this.Bft=function(e){c.Sft&&(c.jht=c.Sft,c.Sft=void 0,c.Nft=void 0,c.Dft=void 0),c.Ift&&(e&&!rx(e)?c.Ift.ac(e):(c.Ift.uc(),c.Ift=void 0))},this.Xs=e,this.p6=s,this.Cht=o,this.b7=u,this.jht=r,this.Eft=new _R(s,r),this.Tft=new _C(h,a),this.bft=new _S(a,!1)}var r,s,o,u,a,h,c,f,l=e.prototype;return l.Oft=function(e){this.Eft.rh(),this.Eft=new _R(this.p6,e),this.Uht?this.Sft=e:(this.jht=e,this.Nft=void 0,this.Dft=void 0)},l.Oht=function(){return this.Ift?this.Ift.ec:P.resolve()},l.Lft=function(){return this.Cht.Lft()},l.Mft=function(e){this.Cht.Mft(e)},l.hh=function(){var e,r;this.Rft.hh(),this.Rft=new rE,null==(e=this.Pft)||e.hh(),null==(r=this.Cft)||r.hh(),this.Nft=void 0,this.Dft=void 0},l.xft=function(e){var r=this.b7.rp.qC(this.Cht.Uft).rP(e);if(null!=r&&r.HD(e))return!0;var s=this.jht.Eat(e);if(!s)return!1;if(void 0!==this.Nft){var o=s.Hot===this.Nft;return void 0!==this.Dft?s.aat(e)===s.oat(this.Dft)&&o:o}return!1},l.iit=function(e){for(var r=this.Cht.Uft.BC(),s=this.b7.rp,o=this.b7.$K,u=0;u<o.length;u++)for(var a=o[u],h=a.Fft.zC(a.Hft),c=0;c<h.Zg;c++)r.ZC(h.bC(c),h.EC(c),!0,!0)&&(s=s.qC(h.iP(c)));var f=(s=s.qC(r)).rP(e);return f?f.EC(f.Zg-1):e},l.Xft=function(e,r){var s=this.iit(e),o=this.b7.art;return!(void 0!==o&&s>=o)&&s-e<r},l.Vft=function(e){var r,s,o,u,a=this.iit(e);if(void 0===this.Nft){var h,c=this.jht.$K;if(c.length>0){var f,l=c[c.length-1];l.xp+(null!=(f=l.ly)?f:_e(l.Sst.map(function(e){return e.ly})))<a?(o=l,u=l.oat(l.Sst.length-1)):c[0].xp>a&&(u=(o=c[0]).oat(0))}if(!o)for(u=null==(h=o=this.jht.Eat(a))?void 0:h.aat(a);u&&!u.got&&u.nat>0;)u=o.oat(u.nat-1)}else o=this.jht.F7(this.Nft),u=void 0!==this.Dft?null==(r=o)?void 0:r.oat(this.Dft+1):void 0,(void 0===o||void 0===u)&&(u=null==(s=o=this.jht.F7(this.Nft+1))?void 0:s.oat(0));if(o)return[o,u]},l.Wft=function(e){if(this.Uht)throw new y("Cannot perform new operation while PlaylistDownloader is still busy");var r=this.iit(e);this.Ift=new sG,this.qft(r,this.Rft.dh).then(this.Bft,this.Bft)},r=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((o=this.Vft(r))||!this.Eft.Jht()||void 0===this.Nft){e.next=5;break}return e.next=4,this.Eft.$ht(void 0===this.Dft?this.Nft+1:this.Nft,void 0!==this.Dft?this.Dft+1:void 0,s);case 4:o=this.Vft(r);case 5:if(o||!this.Eft.Jht()||void 0===this.Nft){e.next=9;break}return e.next=8,this.Eft.$ht(this.Nft+1,0,s);case 8:o=this.Vft(r);case 9:if(o){e.next=16;break}return LP.bT("HlsPlaylistDownloader - No next segment / part available, need to update playlist before continuing."),e.next=13,this.Eft.nct(s);case 13:o=this.Vft(r),e.next=9;break;case 16:case"end":return e.stop()}},e,this)})),l.qft=function(e,s){return r.apply(this,arguments)},l.Gft=function(){return this.Cht.zft()},l.jft=function(){if(this.Uht)throw new y("Cannot perform new operation while PlaylistDownloader is still busy");var e=this.jht.Sat(LR.bot);e&&this.Yft(e);var r=this.jht.Sat(LR.Tot);r&&this.Qft(r)},l.Yft=function(e){this.Cft&&!this.Cft.kp(e.h0)&&(this.Cft.hh(),this.Cft=void 0),this.Cft||(this.Cft=new _M(e.h0,this.bft))},l.Qft=function(e){this.Pft&&!this.Pft.kp(e.h0)&&(this.Pft.hh(),this.Pft=void 0),this.Pft||(this.Pft=new _M(e.h0,this.bft))},l.H7=function(e,r){if(this.Uht)throw new y("Cannot perform new operation while PlaylistDownloader is still busy");LP.bT("PlaylistDownloader - starting download of segment "+e+" and part "+r),this.Ift=new sG,this.Zft(e,r,this.Rft.dh).then(this.Bft,this.Bft)},s=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f,l,p,v;return iO.wrap(function(e){for(var d,y;;)switch(e.prev=e.next){case 0:if(!r.xot||(c=null!=(h=this.Cht.Kft)?h:this.b7.Kft)&&((d=c.h0)===(y=r.xot.h0)||d.gs===y.gs&&!!d.E2==!!y.E2&&(!d.E2||!y.E2||d.E2.bC===y.E2.bC&&d.E2.Zg===y.E2.Zg))){e.next=6;break}return e.next=5,this.Jft(r.xot,r,o);case 5:a=e.sent;case 6:if(a){e.next=10;break}return e.next=9,this.$ft(r,s,o);case 9:a=e.sent;case 10:if("j1"!==a.Ua){e.next=20;break}if((f=a.j1.Fs).Ua!==kx.Nv){e.next=18;break}return p=(l=function(e,r,s){var o,u=new aZ({},{},r),a=e.pipeTo(u.writable,{signal:(o=s)?new hu(o):void 0});return[u.readable,a]}(f.Fs,{highWaterMark:1/0},o))[0],v=l[1],f.Fs=p,this.Cht.tvt(a),e.next=18,v;case 18:e.next=21;break;case 20:this.Cht.tvt(a);case 21:LP.bT("PlaylistDownloader - Segment / part / map at "+LF(null!=(u=null==s?void 0:s.h0)?u:r.h0)+" was downloaded successfully.");case 22:case"end":return e.stop()}},e,this)})),l.Zft=function(e,r,o){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o){var u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.Nft=r.Hot,this.Dft=null==s?void 0:s.nat,!s){e.next=23;break}if(!this.Pft){e.next=16;break}if(!this.Pft.kp(s.h0)){e.next=14;break}return e.next=7,this.Pft.Aft(s.h0);case 7:return a=e.sent,e.next=10,this.Wht(a,r.Xst);case 10:u=_V(s,r,e.sent),e.next=16;break;case 14:this.Pft.hh(),this.Pft=void 0;case 16:if(u){e.next=20;break}return e.next=19,this.nvt(s,r,o);case 19:u=e.sent;case 20:return e.abrupt("return",{Ua:"j1",j1:u,ivt:this.jht,Xot:r.Xot});case 23:return LP.bT("PlaylistDownloader - Starting download of segment at "+LF(r.h0)+"."),e.next=26,this.V7(r,o);case 26:return h=e.sent,e.abrupt("return",{Ua:"j1",j1:h,ivt:this.jht,Xot:r.Xot});case 28:case"end":return e.stop()}},e,this)})),l.$ft=function(e,r,s){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.Cft){e.next=14;break}
1if(!this.Cft.kp(r.h0)){e.next=11;break}return e.next=4,rR(this.Cft.Aft(r.h0),o);case 4:return h=e.sent,e.next=7,this.Wht(h,r.Lot?[r.Lot]:[]);case 7:return c=e.sent,e.next=10,_H(r,s,c);case 10:u=e.sent;case 11:LP.bT("HLSRenditionEngine - MAP is required for segment, downloading MAP data."),null==(a=this.Cft)||a.hh(),this.Cft=void 0;case 14:if(u){e.next=18;break}return e.next=17,this.rvt(r,s,o);case 17:u=e.sent;case 18:return e.next=20,function(e,r){return _j.apply(this,arguments)}(u.Fs,o);case 20:if(f=function(e,r){if(r&&r!==pK.fb&&r!==pK.hb&&r!==pK.cb&&e){var s=vf(vw.Wb(e),pG.kA);if(s){for(var o,u,a,h=s.Mb.Pk,c=0,f=s.iT;c<f.length;c++){var l=f[c];if(l.fT.AT.TT===r){o=l.Mb._T,h=l.fT.Mb.Pk;for(var p=0,v=l.fT.bT.ST.RT.DT;p<v.length;p++){var d,y,g=function e(r){if(r.Ua===pG.PA)s="avc1."+_P((u=RU(sB(r.rE.Fs),new sJ)).Brt,2)+_P(u.Ort,2)+_P(u.Lrt,2);else if(r.Ua===pG.OA||r.Ua===pG.LA){var s,o,u,a,h,c,f,l,p,v,d,y,g,m=function(e,r){for(var s=r.rc(),o=si(e,s,8),u=si(e,s,2),a=si(e,s,1),h=si(e,s,5),c=si(e,s,32),f=[],l=0;l<6;l++)f.push(si(e,s,8));var p=si(e,s,8);s.Kh(4);var v=si(e,s,12);s.Kh(6);var d=si(e,s,2);s.Kh(6);var y=si(e,s,2);s.Kh(5);var g=si(e,s,3);s.Kh(5);for(var m=si(e,s,3),w=si(e,s,16),b=si(e,s,2),k=si(e,s,3),E=si(e,s,1),A=si(e,s,2),x=si(e,s,8),T=[],C=0;C<x;C++){var S=si(e,s,1);s.Kh(1);for(var R=si(e,s,6),L=si(e,s,16),_=[],P=0;P<L;P++){var I=si(e,s,16),N=sp(e,new sJ(s.Zh>>3),I);s.Kh(8*I),_.push({mct:I,pct:N})}T.push({Act:S,bct:R,Tct:L,Ect:_})}return{Prt:o,Sct:u,Ict:a,Rct:h,Nct:f,Dct:p,Cct:v,Pct:d,Bct:c,Oct:y,Lct:g,Mct:m,xct:w,Uct:k,Fct:E,Hct:b,Mrt:A,Xct:x,Vct:T}}(sB(r.oE.Fs),new sJ);s=function(e,r){var s,o=e.toString()+".";switch(r.Sct){case 0:break;case 1:o+="A";break;case 2:o+="B";break;case 3:o+="C";break;default:return}switch(o+=r.Rct.toString()+".",o+=(s=(s=(s=(s=(s=(s=r.Bct)>>>1&0x55555555|(0x55555555&s)<<1)>>>2&0x33333333|(0x33333333&s)<<2)>>>4&0xf0f0f0f|(0xf0f0f0f&s)<<4)>>>8&0xff00ff|(0xff00ff&s)<<8)>>>16|s<<16).toString(16)+".",r.Ict){case 0:o+="L";break;case 1:o+="H";break;default:return}o+=r.Dct.toString();for(var u=r.Nct.reduce(function(e,r){return 0===e?r:r+1},0),a=0;a<u;a++)o+="."+r.Nct[a].toString(16).toUpperCase();return o}(r.Ua,m)}else{if(r.Ua!==pG.UA)return(r.Ua===pG.qA||r.Ua===pG.WA)&&r.cE?e(r.cE):void 0;o=function(e){var r=e.kct;switch(r.hct){case _c.Wct:return function(e){var r,s,o,u,a,h;return null!=(r=e._ct)&&r.act?"mp4a.40."+(31===(u=si(s=sB(e._ct.act),o=new sr,5))&&(u=32+si(s,o,6)),15===(h=si(s,o,4))&&(a=si(s,o,24)),{qct:u,Gct:h,zct:a,jct:si(s,o,4)}).qct:"mp4a.40"}(r);case _c.Yct:return"mp4a.40.2";case _c.Qct:return"mp4a.40.34"}}((_L(a=sB(r.ZT.Fs),h=new sJ,_h.rct),p=__(a,h),v=h.Zh+p,d=sg(a,h),0!=(128&(y=sl(a,h)))&&(c=sg(a,h)),0!=(64&y)&&(f=sE(a,h,sl(a,h))),0!=(32&y)&&(l=sE(a,h,2)),g=function(e,r){_L(e,r,_h.ect);var s,o,u,a=__(e,r),h=r.Zh+a,c=sl(e,r),f=sl(e,r),l=sy(e,r,3),p=sm(e,r),v=sm(e,r);return r.Zh<h&&e.getUint8(r.Zh)===_h.uct&&(_L(e,r,_h.uct),s=__(e,r),o=sp(e,r,s),u={sct:_h.uct,act:o}),r.$h(h),{sct:_h.ect,hct:c,cct:f>>2,fct:0!=(2&f),vct:l,dct:p,lct:v,_ct:u}}(a,h),h.$h(v),{sct:_h.rct,hw:d,gct:c,Il:f,wct:31&y,yct:l,kct:g}))}return{Fst:s,Ust:o,tot:void 0}}(v[p]);g&&(u=null!=(d=g.Fst)?d:u,a=null!=(y=g.Ust)?y:a)}break}}return{_T:o,Pk:h,e$:{Fst:u,Ust:a,tot:void 0}}}}}(new DataView(e.sent.Fs.buffer),function(e){switch(e){case LS.Vl:return pK.Vl;case LS.Xl:return pK.Xl;case LS.ob:return pK.ob;default:return}}(this.jht.Ua))){e.next=24;break}throw new y("MediaBufferWrapper - Unable to parse "+this.Xs+" MP4 initializer.");case 24:return e.abrupt("return",{Ua:"xot",xot:u,Xot:s.Xot,e$:function(e,r){if(e===LS.Xl){var s='audio/mp4; codecs="'+r.e$.Ust+'"';return LP.mst("MediaBufferWrapper - Extracted audio codec from initializer data: "+s+" for track "+r._T+"."),s}var o='video/mp4; codecs="'+(r.e$.Ust?r.e$.Fst+","+r.e$.Ust:r.e$.Fst)+'"';return LP.mst("MediaBufferWrapper - Extracted video codec from initializer data: "+o+" for track "+r._T+"."),o}(this.jht.Ua,f),evt:f});case 25:case"end":return e.stop()}},e,this)})),l.Jft=function(e,r,s){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r,s,o){var u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.bft.El(r.h0,o);case 2:return u=e.sent,a=r.Lot?[r.Lot]:[],e.next=6,this.Wht(u,a);case 6:return h=e.sent,e.next=9,_H(r,s,h);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}},e,this)})),l.rvt=function(e,r,s){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.bft.El(r.h0,s);
1case 2:return o=e.sent,e.next=5,this.Wht(o,r.Xst);case 5:return u=e.sent,e.abrupt("return",{Fs:{Fs:u,Ua:kx.Nv},Ua:_l.Cl,Fht:r,Xot:r.Xot});case 7:case"end":return e.stop()}},e,this)})),l.V7=function(e,r){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(r,s,o){var u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.bft.El(r.h0,o);case 2:return u=e.sent,e.next=5,this.Wht(u,s.Xst);case 5:return a=e.sent,e.abrupt("return",_V(r,s,a));case 7:case"end":return e.stop()}},e,this)})),l.nvt=function(e,r,s){return c.apply(this,arguments)},f=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=ra(s,function(e){return e.ql===LL.dot})){e.next=3;break}return e.abrupt("return",r);case 3:if(o.h0&&o.lot){e.next=6;break}return LP.Lh("AssetDownloader - Encountered an AES-128 encrypted segment for which no initialization vector could be determined."),e.abrupt("return",r);case 6:return e.next=8,this.Tft.Wht(r,o.h0,o.lot);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e,this)})),l.Wht=function(e,r){return f.apply(this,arguments)},M(e,[{key:"Uht",get:function(){return void 0!==this.Ift}},{key:"ivt",get:function(){var e;return null!=(e=this.Sft)?e:this.jht}},{key:"uvt",get:function(){if(!this.jht.Got||void 0===this.Nft)return!1;var e=this.jht.$K[this.jht.$K.length-1];return e.Hot===this.Nft&&(!this.Dft||this.Dft===e.Sst.length-1)}}]),e}();function _j(){return(_j=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=r.Ua,e.next=e.t0===kx.fH?3:e.t0===kx.Nv?4:e.t0===kx.vH?9:10;break;case 3:return e.abrupt("return",r);case 4:return e.next=6,hi(r.Fs,s);case 6:return o=e.sent,rT(s),e.abrupt("return",{Ua:kx.fH,Fs:new x(o)});case 9:throw new y("MediaBufferWrapper - Cannot convert opaque SegmentData to ArraySegmentData.");case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _H(e,r,s){return _B.apply(this,arguments)}function _B(){return(_B=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=x,e.next=3,hi(o);case 3:return e.t1=e.sent,e.t2=new e.t0(e.t1),e.t3=kx.fH,e.t4={Fs:e.t2,Ua:e.t3},e.t5=_l.bot,e.t6=r,e.t7=s.Xot,e.abrupt("return",{Fs:e.t4,Ua:e.t5,Fht:e.t6,Xot:e.t7});case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _V(e,r,s){return{Fs:{Fs:s,Ua:kx.Nv},Ua:_l.Tot,Fht:e,Xot:r.Xot}}var _X=function(){function e(){this.svt=[],this.ovt=void 0,this.avt=void 0}var r=e.prototype;return r.tvt=function(e){"xot"===e.Ua&&(this.avt=e.xot.Fht),this.svt.push(e),this.ovt&&(this.ovt.uc(),this.ovt=void 0)},r.Lft=function(){return this.svt[0]},r.Mft=function(e){rc(this.svt,e)},r.zft=function(){return this.ovt||(this.ovt=new sG),this.ovt.ec},r.Yh=function(){this.avt=void 0,rv(this.svt)},M(e,[{key:"Kft",get:function(){return this.avt}},{key:"Uft",get:function(){for(var e=mo.aP(),r=0,s=this.svt;r<s.length;r++){var o,u=s[r];if("xot"!==u.Ua){var a=u.j1.Fht;e=e.qC(new mo([a.xp,a.xp+(null!=(o=a.ly)?o:0)]))}}return e}}]),e}(),_W=function(){function e(e){this.q1=[],this.$H=void 0,this.Oet=void 0,this.xut=e}var r=e.prototype;return r.xht=function(e){var r;return null==(r=this.hvt(e))?void 0:r.ivt},r.Hnt=function(e){this.$H=e,this.cvt()},r.h6=function(e,r,s,o,u){this.q1.push({ivt:e,Fft:new mo([o,u]),Hft:new mo([r,s])}),this.cvt()},r.hvt=function(e){for(var r=0,s=this.q1;r<s.length;r++){var o=s[r];if(o.Hft.HD(e))return o}},r.bH=function(){var e=this.rp;e.Zg>0&&(this.Oet=e.EC(e.Zg-1))},r.Lht=function(e){if(void 0===this.Oet)return!1;var r,s,o=b.min(e,this.Oet);return null!=(r=null==(s=this.rp.BC().rP(o))?void 0:s.HD(this.Oet))&&r},r.cvt=function(){for(var e=this.xut.rp,r=[],s=0,o=this.q1;s<o.length;s++){var u=o[s];0!==e.UC(u.Hft).Zg&&r.push(u)}this.q1=r},M(e,[{key:"Kft",get:function(){return this.$H}},{key:"rp",get:function(){return Sm(this.xut.rp,this.xut.PH)}},{key:"$K",get:function(){return this.q1}},{key:"art",get:function(){return this.Oet}}]),e}(),_q=function(){function e(e){this.fvt=P.resolve(new x(0)),this.Hv=void 0,this.vvt=new x(0),this.Hv=e.getReader()}var r,s,o,u,a,h,c=e.prototype;return c.oft=function(e,r){return this.fvt=this.dvt(e,this.fvt,r),this.fvt},r=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s;case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),rS(e.t0);case 8:if(rT(o),0!==r){e.next=11;break}return e.abrupt("return",new x(0));case 11:if(u=r,a=[],!(this.vvt.length>=u)){e.next=19;break}return h=this.vvt.slice(0,u),this.vvt=this.vvt.slice(u),e.abrupt("return",h);case 19:this.vvt.length>0&&(a.push(this.vvt),u=r-this.vvt.length,this.vvt=new x(0));case 20:return e.next=23,this.Hv.read();case 23:if(c=e.sent,rT(o),!c.done){e.next=27;break}throw new y("StreamingByteReader - End of stream.");case 27:if(!((f=c.value).length>=u)){e.next=34;break}return a.push(f.slice(0,u)),this.vvt=f.slice(u),e.abrupt("return",r9(a));case 34:a.push(f);case 35:e.next=20;break;case 37:case"end":return e.stop()}},e,this,[[0,5]])})),c.dvt=function(e,s,o){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.oft(1,r);case 2:return s=e.sent,e.abrupt("return",s[0]);case 4:case"end":return e.stop()}},e,this)})),c.lvt=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.gvt(4,r);case 2:return s=e.sent,e.abrupt("return",s.getUint32(0));case 4:case"end":return e.stop()}},e,this)})),c._vt=function(e){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.oft(r,s);case 2:return o=e.sent,e.abrupt("return",new DataView(o.buffer));case 4:case"end":return e.stop()}},e,this)})),c.gvt=function(e,r){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.oft(r,s);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}
1)),c.wvt=function(e,r){return a.apply(this,arguments)},c.yvt=function(e){return this.kvt(1,e)},h=P.coroutine(iO.mark(function e(r,s){var o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.wvt(r,s);case 2:for(o=e.sent,u="",a=0;a<r;a+=1)u+=String.fromCharCode(o[a]);return e.abrupt("return",u);case 6:case"end":return e.stop()}},e,this)})),c.kvt=function(e,r){return h.apply(this,arguments)},c.aft=function(e){return this.Hv.cancel(e)},e}(),_Y=function(){function e(e,r){this.Xs=void 0,this.xut=void 0,this.mvt=void 0,this.pvt=void 0,this.Avt=void 0,this.Xs=e,this.xut=r}var r,s,o,u=e.prototype;return r=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.mvt=s.Pk,this.pvt=s._T,e.next=4,this.xut.AH(r.Fs,o);case 4:case"end":return e.stop()}},e,this)})),u.AH=function(e,s,o){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(o),LP.bT("MediaBufferWrapper - got media data, appending to "+this.Xs+" MediaBuffer: "+LF(s.Fht.h0)),void 0!==this.Avt){e.next=7;break}return e.next=5,this.bvt(s,o);case 5:this.Avt=e.sent,LP.mst("MediaBufferWrapper - Determined offset in "+this.Xs+" MediaBuffer between playlist and media time: "+this.Avt+"s.");case 7:return h=(a=s.Fht.xp)+s.Fht.ly,c={oX:s.Fht.xp,ly:null!=(u=s.Fht.ly)?u:0,dA:this.Avt},e.next=12,this.xut.mH(s.Fs,c,o);case 12:this.Tvt(a,h);case 13:case"end":return e.stop()}},e,this)})),u.mH=function(e,r,o){return s.apply(this,arguments)},u.Tvt=function(e,r){for(var s=this.xut.rp,o=new mo([e,r]).zC(s),u=0;u<o.Zg;u++)this.xut.TH(o.bC(u),o.EC(u));for(var a=0;a<s.Zg;a++)this.xut.EH(s.bC(a),s.EC(a))},o=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,function(e,r){return _$.apply(this,arguments)}(r,s);case 2:if(o=e.sent,rT(s),void 0!==(u=function(e,r,s){if(void 0===s&&(s=1),e){var o=vf(vw.Wb(e),pG.GA);if(o&&0!==o.iT.length){var u=void 0!==r?ra(o.iT,function(e){return e.Mb._T===r}):o.iT[0];if(null!=u&&u.DE)return t5(u.DE.DE,s)}}}(o,this.pvt,this.mvt))){e.next=7;break}throw new y("MediaBufferWrapper - Unable to parse "+this.Xs+" segment or part.");case 7:return e.abrupt("return",r.Fht.xp-u);case 8:case"end":return e.stop()}},e,this)})),u.bvt=function(e,r){return o.apply(this,arguments)},u.TH=function(e,r){this.xut.TH(e,r)},u.EH=function(e,r){this.xut.EH(e,r)},M(e,[{key:"rp",get:function(){return this.xut.rp}},{key:"PH",get:function(){return this.xut.PH}}]),e}();function _$(){return(_$=P.coroutine(iO.mark(function e(r,s){var o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=r.Fs.Ua,e.next=e.t0===kx.fH?3:e.t0===kx.Nv?4:e.t0===kx.vH?9:10;break;case 3:return e.abrupt("return",new DataView(r.Fs.Fs.buffer));case 4:return u=(o=hs(r.Fs.Fs))[0],a=o[1],r.Fs.Fs=a,e.next=8,function(e,r){return _J.apply(this,arguments)}(u,s);case 8:return e.abrupt("return",e.sent);case 9:return e.abrupt("return",void 0);case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _J(){return(_J=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=new _q(r),e.prev=1;case 2:return e.next=5,o.gvt(4,s);case 5:return a=(u=e.sent).getUint32(0),e.next=9,o.gvt(4,s);case 9:return c=sE(h=e.sent,new sJ,4),e.next=13,o.wvt(a-8,s);case 13:if(f=e.sent,c!==pG.GA){e.next=17;break}return rN(o.aft()),e.abrupt("return",new DataView(r9([new x(u.buffer),new x(h.buffer),f]).buffer));case 17:e.next=2;break;case 19:e.next=26;break;case 21:throw e.prev=21,e.t0=e.catch(1),rC(e.t0),LP.Ast("MediaBufferWrapper - Could not read first MOOF from stream.",e.t0),new y("MediaBufferWrapper - Could not read first MOOF from stream.");case 26:case"end":return e.stop()}},e,null,[[1,21]])}))).apply(this,arguments)}var _Q=function(){function e(e,r){this.Evt=void 0,this.Svt=void 0,this.Ivt=mo.aP(),this.Evt=e,this.Svt=nX(null==r?void 0:r.toLowerCase(),"stpp.ttml.im1t"),this.Evt.Ua=this.Svt?po.TTML:po.WEBVTT}var r,s=e.prototype;return r=P.coroutine(iO.mark(function e(r,s,o){var u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u=s.Fht,this.Ivt=this.Ivt.qC(new mo([u.xp,u.xp+u.ly])),e.t0=(a=s.Fs).Ua,e.next=e.t0===kx.vH?6:e.t0===kx.fH?7:e.t0===kx.Nv?9:14;break;case 6:return e.abrupt("break",14);case 7:return this.iX(a.Fs.buffer),e.abrupt("break",14);case 9:return e.next=11,hi(a.Fs,o);case 11:return h=e.sent,this.iX(h),e.abrupt("break",14);case 14:case"end":return e.stop()}},e,this)})),s.mH=function(e,s,o){return r.apply(this,arguments)},s.iX=function(e){var r=this;
1this.Svt?v_(e,this.Evt,p0,s6).forEach(function(e){return r.Evt.DS(e)}):p7(e).Tw.forEach(function(e){return r.Evt.DS(e)})},s.AH=function(e,r,s){return this.Svt&&this.iX(e.Fs.Fs.buffer),P.resolve(void 0)},s.TH=function(e,r){},s.EH=function(e,r){},M(e,[{key:"rp",get:function(){return this.Ivt}},{key:"PH",get:function(){return mo.aP()}}]),e}(),_G=function(){function e(e,r,s,o){this.Rvt=e,this.Cht=r,this.Jnt=s,this.b7=o}return e.prototype.Oft=function(e){this.Rvt.Oft(e)},M(e,[{key:"Nvt",get:function(){return this.Jnt}},{key:"Dvt",get:function(){return this.Rvt}},{key:"Cvt",get:function(){return this.b7}}]),e}(),_K=function(){function e(){}var r=e.prototype;return r.Pvt=function(e,r,s,o,u,a){var h=new _Y(l4.Vl,r),c=new _X,f=new _W(h),l=new _T(l4.Vl,h,c,f);return new _G(new _F(l4.Vl,e,o,c,f,u,a),c,l,f)},r.Bvt=function(e,r,s,o,u,a){var h=new _Y(l4.Xl,r),c=new _X,f=new _W(h),l=new _T(l4.Xl,h,c,f);return new _G(new _F(l4.Xl,e,o,c,f,u,a),c,l,f)},r.Ovt=function(e,r,s,o,u,a){var h=new _Q(r,a),c=new _X,f=new _W(h),l=new _T(l4.Xl,h,c,f);return new _G(new _F(l4.Xl,e,s,c,f,o,u),c,l,f)},e}();_K.$S=new _K;var _z=function(e){function r(r){var s;return(s=e.call(this,_9.Lvt)||this).Lh=r,s}return j(r,e),r}(rX),_Z=function(e){function r(r){return e.call(this,pg.Ug,r)||this}return j(r,e),r.prototype.wg=function(){return new _0(this.Mp.gg)},r}(pA),_0=function(e){function r(r){return e.call(this,pm.Ug,r)||this}return j(r,e),r}(px),_1=function(e){function r(r,s){var o,u=_2(s,r.ly,r.qD,r.Nst);return(o=e.call(this,s,u,void 0,!1,r.hw)||this).Mvt=void 0,o.xvt=void 0,o.Uvt=void 0,o.EV=void 0,o.Fvt=void 0,o.Hvt=void 0,o.Xvt=void 0,o.Vvt=void 0,o.Wvt=void 0,o.qvt=void 0,o.Mvt=r.Rst,o.xvt=r.qD,o.Uvt=r.Nst,o.EV=r.ly,o.Fvt=r.Dst,o.Hvt=!!r.Ist,o.Xvt=r.Cst||{},o.Vvt=r.Bst,o.Wvt=r.Lst,o.qvt=r.Mst,o.Gvt(),o.zvt(),o}j(r,e);var s=r.prototype;return s.Ec=function(e){var r=!1;void 0===this.Mvt&&void 0!==e.Rst&&(r=!0,this.Mvt=e.Rst),void 0===this.Uvt&&void 0!==e.Nst&&(r=!0,this.Uvt=e.Nst),void 0===this.EV&&void 0!==e.ly&&(r=!0,this.EV=e.ly),void 0===this.Fvt&&void 0!==e.Dst&&(r=!0,this.Fvt=e.Dst),!this.Hvt&&e.Ist&&(r=!0,this.Hvt=e.Ist),r=this.updateCustomAttributes(e,r),void 0===this.Vvt&&void 0!==e.Bst&&(r=!0,this.Vvt=e.Bst),void 0===this.Wvt&&void 0!==e.Lst&&(r=!0,this.Wvt=e.Lst),void 0===this.qvt&&void 0!==e.Mst&&(r=!0,this.qvt=e.Mst),this.Gvt(),this.zvt(),this.jvt(),r&&this.yh(new _Z(this))},s.updateCustomAttributes=function(e,r){var s=r;if(e.Cst)for(var o=0,u=w.keys(e.Cst);o<u.length;o++){var a=u[o];void 0===this.Xvt[a]&&(s=!0,this.Xvt[a]=e.Cst[a])}return s},s.Gvt=function(){this.EV&&!this.Uvt&&(this.Uvt=new Date(this.xvt.getTime()+1e3*this.EV))},s.zvt=function(){this.Uvt&&!this.EV&&(this.EV=(this.Uvt.getTime()-this.xvt.getTime())/1e3)},s.jvt=function(){this.Qp===1/0&&(this.Uvt||this.EV)&&(this.Qp=_2(this.Yp,this.EV,this.xvt,this.Uvt))},M(r,[{key:"gg",get:function(){var e;return this._g||(this._g=fi(pT(e=this),{get content(){return e.Fp},get class(){return e.Rst},get startDate(){return e.qD},get endDate(){return e.Nst},get duration(){return e.ly},get plannedDuration(){return e.Dst},get endOnNext(){return e.Ist},get scte35Cmd(){return e.Bst},get scte35Out(){return e.Lst},get scte35In(){return e.Mst},get customAttributes(){return e.Cst}})),this._g}},{key:"Rst",get:function(){return this.Mvt}},{key:"qD",get:function(){return this.xvt}},{key:"Nst",get:function(){return this.Uvt}},{key:"ly",get:function(){return this.EV}},{key:"Dst",get:function(){return this.Fvt}},{key:"Ist",get:function(){return this.Hvt}},{key:"Bst",get:function(){return this.Vvt}},{key:"Lst",get:function(){return this.Wvt}},{key:"Mst",get:function(){return this.qvt}},{key:"Cst",get:function(){return this.Xvt}}]),r}(pL);function _2(e,r,s,o){return z(r)?e+r:o?e+(o.getTime()/1e3-s.getTime()/1e3):1/0}var _3=function(e){function r(){return e.call(this,void 0,void 0,po.DATE_RANGE)||this}j(r,e);var s=r.prototype;return s.Ec=function(e,r){for(var s=this,o=_5(e),u=this.Tw.Qg,a=u.length-1;a>=0;a--)!function(e){var r=u[e],a=ra(o,function(e){return e.hw===r.hw});a?r.Ec(a):s.bS(r)}(a);for(var h=0;h<o.length;h++){var c=o[h],f=c.qD;if(void 0!==f&&!this.tW(c.hw)){var l=r(f);this.DS(new _1(c,l))}}},s.DS=function(r){this.Yvt(r),e.prototype.DS.call(this,r)},s.Yvt=function(e){var r=this.VV.filter(function(r){return r.Rst===e.Rst}).pop();r&&r.Ist&&r.Ec({hw:r.hw,Nst:e.qD}
1)},r}(E2);function _5(e){for(var r=iM(),s=[],o=0;o<e.length;o++){var u=e[o];if(r.has(u.hw)){var a=r.get(u.hw),h=iD({},a,fu(u),{Cst:iD({},a.Cst,u.Cst)});r.set(u.hw,h)}else r.set(u.hw,u),s.push(u.hw)}return s.map(function(e){return r.get(e)})}var _4,_6,_8,_7,_9,Pt=function(){function e(e,r,s){var o=this;this.p6=void 0,this.Qvt=void 0,this.JR=void 0,this.xet=void 0,this.Zvt=void 0,this.Kvt=function(e){o.Qvt.hlsDateRange&&o.Jvt(e.rendition,e.dateRanges)},this.Qvt=e,this.p6=r,this.JR=s,this.xet=new vX,this.p6.kh("uht",this.Kvt)}var r=e.prototype;return r.Jvt=function(e,r){if(0!==r.length){this.Zvt||(this.Zvt=this.JR.RS(vV.cb,void 0,void 0,void 0,void 0,po.DATE_RANGE),this.xet.Gg(this.Zvt));var s=r.map(LH);this.$vt(s,function(r){var s=e.$K;if(!s.length)return NaN;for(var o=s.length-1;o>=0;o--){var u=s[o];if(void 0!==u.Uot){var a=(r.getTime()-u.Uot.getTime())/1e3;return u.xp+a}}return NaN})}},r.$vt=function(e,r){for(var s=this,o=_5(e),u=this.Zvt.Tw.Qg,a=u.length-1;a>=0;a--)!function(e){var r=u[e],a=ra(o,function(e){return e.hw===r.hw});a?r.Ec(a):s.Zvt.bS(r)}(a);for(var h=0;h<o.length;h++)!function(e){var a=o[e],h=a.qD,c=ra(u,function(e){return e.hw===a.hw});if(void 0!==h&&!c){var f=new _1(a,r(h));s.Yvt(u,f),s.Zvt.DS(f)}}(h)},r.Yvt=function(e,r){var s=e.filter(function(e){return e.Rst===r.Rst}).pop();s&&s.Ist&&s.Ec({hw:s.hw,Nst:r.qD})},M(e,[{key:"Om",get:function(){return this.xet}}]),e}();(Pe=_9||(_9={})).Est="currentbufferingrenditionchange",Pe.Tst="tdt",Pe.bst="ndt",Pe.Lvt="idt";var Pe,Pn,Pi,Pr=function(e){function r(r,s,o,u,a,h){var c;return(c=e.call(this)||this).p6=void 0,c.rdt=void 0,c.edt=void 0,c.$R=void 0,c.udt=void 0,c.sdt=void 0,c.odt=void 0,c.adt=void 0,c.hdt=void 0,c.cdt=void 0,c.fdt=void 0,c.vdt=-1,c.ddt=void 0,c.ldt=void 0,c._dt=void 0,c.gdt=void 0,c.jit=void 0,c.wdt=!1,c.SS=new rE,c.ydt=new rE,c.kdt=void 0,c.Zq=new rE,c.Qq=void 0,c.mdt=void 0,c.pdt=[],c.sV=mo.aP(),c.Adt=!1,c.Rm=void 0,c.bdt=void 0,c.Tdt=new iq,c.Kvt=function(){c.Edt()},c.onTextTrackChange=function(e){if(c.udt){var r=e.yg,s=ra(c.udt.$at,function(e){return r===c.Tdt.get(e.cw)});s&&(r.Aw===fk.ww||r.Aw===fk.yw?(rN(c.Sdt(s)),c.Tdt.forEach(function(e){e!==r&&(e.Aw=fk.gw)})):c.adt&&Po(c.adt,s)&&rN(c.Idt(c.sdt,c.odt,void 0)))}},c.iq=function(){var e=c.Rdt;rp(c.pdt,e)&&rp(e,c.pdt)||(c.yh(new LO),c.pdt=e)},c.Ndt=function(){rN(c.ght())},c.Ddt=D(function(){c.kdt||(c.Zq.hh(),c.Zq=new rE,c.Qq=c.Cdt(c.Qq,c.Zq.dh).catch(c.Pdt))},50),c.Pdt=function(e){rx(e)||(rN(c.Bdt()),c.yh(new _z(e)))},c.Qvt=r,c.rD=s,c.JR=o,c.ES=u,c.Vht=a,c.pP=h,c.p6=new _y(c.ES,c.Qvt.src),c.rdt=new _k(c.pP),c.edt=new _E(c.JR),c.p6.kh("uht",c.Kvt),c.bdt=new Pt(c.Qvt,c.p6,c.JR),c.Rm=new Ea([c.bdt.Om,c.JR.Om]),c}j(r,e);var s,o,u,a,h,c,f,l,p,v,d,g,m,w,b,k,E=r.prototype;return E.Edt=function(){var e=Pu([this.sdt,this.odt].filter(z));if(0!==e.Zg){if(this.$R){var r=e.EC(e.Zg-1);this.$R.uH&&this.$R.ly>r&&(e=e.qC(new mo([r,this.$R.ly])))}this.sV=e}},E.Odt=function(e){for(var r=0;r<e.length;r++){var s=e[r];if(!this.Ldt(s))throw new y("HLSEngine - Could not set an allowed variant stream that does not exists in the internal HLS model.")}this.mdt=e},E.Ldt=function(e){return rl(this.p6.f4.xst,e)},E.Mdt=function(e){if(this.udt)return ra(this.udt.Jat,function(r){return Po(r,e)})},E.bc=function(){return this.jit||(this.jit=this.q_(this.SS.dh)),this.jit},s=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c,f,l=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return LP.bT("HLSEngine - Loading the HLSEngine."),e.next=3,this.p6.oht(r);case 3:if(this.mdt=this.p6.f4.xst,this.mdt.length){e.next=6;break}throw new y("HLSEngine - Could not select initial variant stream: the HLS stream contains no variant streams.");case 6:return e.next=8,this.xdt(this.mdt);case 8:if(s=e.sent){e.next=11;break}throw new y("HLSEngine - Could not select initial variant stream: the HLS stream contains no variant stream with a supported codec.");case 11:return LP.bT("HLSEngine - Selecting initial active variant stream."),(u=Ps((o=s[0]).Zat))&&LP.bT("HLSEngine - Detected initial audio rendition."),(a=Ps(o.Qat))&&LP.bT("HLSEngine - Detected initial video rendition."),(h=Ps(o.$at))&&LP.bT("HLSEngine - Detected initial subtitle rendition."),this.Udt(o),c=[u,a,h].filter(z),e.next=23,P.all(c.filter(function(e){return!e.Mat}).map(function(e){return l.p6.dht(e,r)}));case 23:return c.every(function(e){return!e.Got}
1)&&(f=Pu(c),this.JR.$h(f.LC(1/0))),e.next=26,this.Idt(u,a,h);case 26:this.JR.kh(ul.Av,this.iq),this.JR.kh(ul.rv,this.Ndt),this.JR.kh(ul.fv,this.Ddt),this.wdt=!0;case 30:case"end":return e.stop()}},e,this)})),E.q_=function(e){return s.apply(this,arguments)},E.Udt=function(e){var r,s=this;if(LP.bT("HLSEngine - Setting active variant stream."),this.udt!==e){if((null==(r=this.udt)?void 0:r.cot)!==(null==e?void 0:e.cot)){if(this.udt)for(var o=0,u=this.udt.$at;o<u.length;o++){var a=u[o];this.CS(a)}if(e)for(var h=0,c=e.$at;h<c.length;h++){var f=c[h];this.Fdt(f)}}else if(this.udt&&e)for(var l=0,p=this.udt.$at;l<p.length;l++)!function(r,o){var u=o[r],a=ra(e.$at,function(e){return Po(u,e)});s.Tdt.set(a.cw,s.Tdt.get(u.cw)),s.Tdt.delete(u.cw)}(l,p);this.udt=e,this.yh(new LI)}},E.Fdt=function(e){var r=this.JR.RS(vV.ob,void 0,e.ds,e.dw,e.Kst);this.Tdt.set(e.cw,r),r.kh(cZ.Pg,this.onTextTrackChange)},E.CS=function(e){var r=this.Tdt.get(e.cw);r&&(r.Eh(cZ.Pg,this.onTextTrackChange),this.Tdt.delete(e.cw),this.JR.CS(r))},o=P.coroutine(iO.mark(function e(){var r,s,o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(s=null!=(r=this.mdt)?r:this.p6.f4.xst).length||this.mdt){e.next=4;break}return LP.bT("HLSEngine - The HLS stream does not contain any variant streams, skipping ABR selection."),e.abrupt("return");case 4:if(1!==s.length||this.mdt){e.next=7;break}return LP.bT("HLSEngine - The HLS stream contains only a single variant stream, skipping ABR selection."),e.abrupt("return");case 7:return e.next=9,this.xdt(s);case 9:if((o=e.sent).length){e.next=13;break}return LP.pst("HLSEngine - No variant streams with supported codecs available to perform ABR selection on."),e.abrupt("return");case 13:return e.next=15,this.rdt.ght(o,this.udt);case 15:return u=e.sent,a=!!this.udt&&u.QN<this.udt.QN,e.next=19,this.Hdt(u,a);case 19:case"end":return e.stop()}},e,this)})),E.ght=function(){return o.apply(this,arguments)},E.xdt=function(e){var r,s,o=this;return r=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t1=!r.e$.Ust,e.t1){e.next=5;break}return e.next=4,o.edt.eH('audio/mp4; codecs="'+r.e$.Ust+'"');case 4:e.t1=e.sent;case 5:if(e.t0=e.t1,!e.t0){e.next=13;break}if(e.t2=!r.e$.Fst,e.t2){e.next=12;break}return e.next=11,o.edt.eH('video/mp4; codecs="'+r.e$.Fst+'"');case 11:e.t2=e.sent;case 12:e.t0=e.t2;case 13:return e.abrupt("return",e.t0);case 14:case"end":return e.stop()}},e)})),s=function(e){return r.apply(this,arguments)},P.all(e.map(s)).then(function(r){return e.filter(function(e,s){return r[s]})})},u=P.coroutine(iO.mark(function e(r,s){var o,u,a,h=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.wdt){e.next=2;break}throw new y("HLSEngine - The HLSEngine is not loaded.");case 2:if(r){e.next=4;break}throw new y("HLSEngine - Cannot explicitly set the active variant stream to undefined.");case 4:if(this.Ldt(r)){e.next=6;break}throw new y("HLSEngine - Trying to set an active variant stream that does not exists on the internal model.");case 6:if(r!==this.udt){e.next=9;break}return LP.bT("HLSEngine - Trying to set the already active variant stream, ignoring."),e.abrupt("return");case 9:return o=this.sdt?ra(r.Zat,function(e){return _i(e,h.sdt)}):void 0,u=this.odt?ra(r.Qat,function(e){return _i(e,h.odt)}):void 0,a=this.adt?ra(r.$at,function(e){return _i(e,h.adt)}):void 0,e.next=14,P.all([u,o,a].filter(z).filter(function(e){return!e.Mat}).map(function(e){return h.p6.dht(e)}));case 14:return this.Udt(r),e.next=17,this.Idt(o,u,a,s);case 17:case"end":return e.stop()}},e,this)})),E.Hdt=function(e,r){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.wdt){e.next=2;break}throw new y("HLSEngine - The HLSEngine is not loaded");case 2:if(this.udt){e.next=4;break}throw new y("HLSEngine - Cannot set the active audio rendition when there is no active variant stream.");case 4:if(r){e.next=6;break}throw new y("HLSEngine - Cannot explicitly set the active audio rendition to undefined.");case 6:if(s=this.Mdt(r)){e.next=9;break}
1throw new y("HLSEngine - Trying to set an invalid rendition as the active audio rendition.");case 9:if(!this.$R||!this.$R.YX){e.next=12;break}return e.next=12,this.$R.YX.Tc(0,1/0);case 12:if(s.Mat){e.next=15;break}return e.next=15,this.p6.dht(s);case 15:return LP.bT("HLSEngine - Switching audio rendition"),e.next=18,this.Idt(s,this.odt,this.adt);case 18:case"end":return e.stop()}},e,this)})),E.Xdt=function(e){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.wdt){e.next=2;break}throw new y("HLSEngine - The HLSEngine is not loaded");case 2:if(this.udt){e.next=4;break}throw new y("HLSEngine - Cannot set the active video rendition when there is no active variant stream.");case 4:if(r){e.next=6;break}throw new y("HLSEngine - Cannot explicitly set the active video rendition to undefined.");case 6:if(s=this.Mdt(r)){e.next=9;break}throw new y("HLSEngine - Trying to set an invalid rendition as the active video rendition.");case 9:if(!this.$R||!this.$R.QX){e.next=12;break}return e.next=12,this.$R.QX.Tc(0,1/0);case 12:if(s.Mat){e.next=15;break}return e.next=15,this.p6.dht(s);case 15:return LP.bT("HLSEngine - Switching video rendition"),e.next=18,this.Idt(this.sdt,s,this.adt);case 18:case"end":return e.stop()}},e,this)})),E.Vdt=function(e){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.wdt){e.next=2;break}throw new y("HLSEngine - The HLSEngine is not loaded");case 2:if(this.udt){e.next=4;break}throw new y("HLSEngine - Cannot set the active subtitle rendition when there is no active variant stream.");case 4:if(r){e.next=6;break}throw new y("HLSEngine - Cannot explicitly set the active video rendition to undefined.");case 6:if(s=this.Mdt(r)){e.next=9;break}throw new y("HLSEngine - Trying to set an invalid rendition as the active subtitle rendition.");case 9:if(s.Mat){e.next=12;break}return e.next=12,this.p6.dht(s);case 12:return LP.bT("HLSEngine - Switching subtitle rendition"),e.next=15,this.Idt(this.sdt,this.odt,s);case 15:case"end":return e.stop()}},e,this)})),E.Sdt=function(e){return c.apply(this,arguments)},E.Idt=function(e,r,s,o){var u=this;if(void 0===o&&(o=!1),this.sdt===e&&this.odt===r&&this.adt===s)return P.resolve();if(void 0===e&&void 0===r)return P.reject(new y("Trying to buffer no media renditions."));this.sdt=e,this.odt=r,this.adt=s,this.Edt(),this.yh(new LN),this.Zq.hh(),this.Zq=new rE,this.ydt.hh(),this.ydt=new rE;var a=this.Wdt([this.kdt,this.Qq].filter(z),e,r,s,o,this.ydt.dh).catch(this.Pdt);this.kdt=a;var h=function(){u.kdt===a&&(u.kdt=void 0)};
1return a.then(h,h),this.kdt},f=P.coroutine(iO.mark(function e(r,s,o,u,a,h){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P.all(r);case 2:return e.next=4,this.Bdt();case 4:return rT(h),e.next=7,this.qdt(s,o,h);case 7:this.Gdt(u),rT(h),this.hdt&&(Po(this.hdt.Dvt.ivt,s)||(a&&this.hdt.Dvt.hh(),this.hdt.Oft(s))),this.cdt&&(Po(this.cdt.Dvt.ivt,o)||(a&&this.cdt.Dvt.hh(),this.cdt.Oft(o))),this.fdt&&(Po(this.fdt.Dvt.ivt,u)||(a&&this.fdt.Dvt.hh(),this.fdt.Oft(u))),this.JR.Ay&&this.zdt(this.JR.vy),this.jdt();case 14:case"end":return e.stop()}},e,this)})),E.Wdt=function(e,r,s,o,u,a){return f.apply(this,arguments)},l=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=void 0!==r&&r!==s,a=void 0!==s,this.$R){e.next=8;break}return e.next=5,this.Ydt(u,a,this.udt,r,s,o);case 5:this.$R=e.sent,e.next=23;break;case 8:if(h=void 0!==this.$R.YX,c=void 0!==this.$R.QX,u===h&&a===c){e.next=23;break}return e.next=13,this.JR.bV();case 13:return e.prev=13,e.next=16,this.JR.Yg();case 16:return e.next=18,this.Ydt(u,a,this.udt,r,s,o);case 18:this.$R=e.sent;case 19:return e.prev=19,e.next=22,this.JR.TV();case 22:return e.finish(19);case 23:case"end":return e.stop()}},e,this,[[13,,19,23]])})),E.qdt=function(e,r,s){return l.apply(this,arguments)},p=P.coroutine(iO.mark(function e(r,s,o,u,a,h){var c,f,l,p,v,d,y,g,m;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(rT(h),c=0,f=this.Qdt;c<f.length;c++)f[c].Nvt.hh();return e.next=4,this.rD.Yg();case 4:if(rT(h),l=o.e$,p=new _x(this.JR,r,s),v=[],l.Ust&&r&&(d='audio/mp4; codecs="'+l.Ust+'"',LP.bT("HLSEngine - Configuring MediaSource for initial audio rendition with codec: "+d+"."),v.push(d)),l.Fst&&(y='video/mp4; codecs="'+(l.Ust&&!p.YX?l.Fst+","+l.Ust:l.Fst)+'"',LP.bT("HLSEngine - Configuring MediaSource for initial audio rendition with codec: "+y+"."),v.push(y)),!(v.length>0)){e.next=16;break}return g={Ua:gp._N,gV:v.map(function(e){return{$d:e}}),ED:[]},e.next=14,p.RX(g);case 14:e.next=17;break;case 16:LP.pst("HLSEngine - No codecs found on the active variant stream.");case 17:return A(p.ly)&&(m=null!=u?u:a,p.dV(m.Got?m.ly:1/0)),p.YX&&(this.hdt=_K.$S.Bvt(u,p.YX,this.JR,this.p6,this.ES,this.Vht)),p.QX&&(this.cdt=_K.$S.Pvt(a,p.QX,this.JR,this.p6,this.ES,this.Vht)),this.rD.Oc(p),e.next=23,this.Zdt(p,null!=a?a:u,h);case 23:return this.Edt(),e.abrupt("return",p);case 25:case"end":return e.stop()}},e,this)})),E.Ydt=function(e,r,s,o,u,a){return p.apply(this,arguments)},v=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(o),!this.Adt){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,function(e,r,s,o,u){return LB.apply(this,arguments)}(this.Qvt.contentProtection,this.p6.f4,s,r,this.ES);case 5:if(u=e.sent){e.next=8;break}return e.abrupt("return");case 8:this.rD.iI(u),this.Adt=!0;case 10:case"end":return e.stop()}},e,this)})),E.Zdt=function(e,r,s){return v.apply(this,arguments)},E.Gdt=function(e){if(this.fdt){var r=this.fdt.Dvt.ivt;e&&Po(r,e)||(this.fdt.Nvt.hh(),this.fdt.Dvt.hh(),this.fdt=void 0)}if(!this.fdt&&e){var s,o=this.Tdt.get(e.cw);o.Aw=fk.yw;var u=null==(s=this.udt)?void 0:s.e$.tot;this.fdt=_K.$S.Ovt(e,o,this.p6,this.ES,this.Vht,u)}},d=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=3;break}return e.next=3,r.catch(I);case 3:return e.next=5,this.Bdt();case 5:rT(s),this.zdt(this.JR.vy),this.jdt();case 8:case"end":return e.stop()}},e,this)})),E.Cdt=function(e,r){return d.apply(this,arguments)},E.zdt=function(e){for(var r=0,s=this.Qdt;r<s.length;r++){var o=s[r];o.Dvt.xft(e)||(o.Dvt.hh(),o.Nvt.hh())}},g=P.coroutine(iO.mark(function e(){var r,s,o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null==(r=this.ddt)||r.hh(),null==(s=this.ldt)||s.hh(),o=this._dt,u=this.gdt,!o){e.next=8;break}return e.next=7,o;case 7:this._dt=void 0;case 8:if(!u){e.next=12;break}return e.next=11,u;case 11:this.gdt=void 0;case 12:case"end":return e.stop()}},e,this)})),E.Bdt=function(){return g.apply(this,arguments)},E.jdt=function(){this.Kdt(),this.Jdt()},E.Kdt=function(){var e=this;if(!this._dt){var r=function(){e._dt=void 0};
1this.ddt=new rE,this._dt=this.$dt(this.ddt.dh).catch(this.Pdt).then(r,r)}},m=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c,f,l;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:rT(r),s=this.Qdt;case 2:for(o=[],u=0;u<s.length;u++)a=s[u].Dvt,h=this.JR.vy,a.Uht?o.push(a.Oht()):a.Xft(h,this.pP.VM)&&((c=a.Vft(h))?(f=c[0],l=c[1],a.H7(f,l)):(a.jft(),a.Wft(h)),o.push(a.Oht()));if(0!==o.length){e.next=12;break}if(!s.every(function(e){return e.Dvt.uvt})){e.next=8;break}return e.abrupt("break",16);case 8:return e.next=10,this.JR.Nh(ul.Av,r);case 10:e.next=14;break;case 12:return e.next=14,rR(P.race(o),r);case 14:e.next=2;break;case 16:case"end":return e.stop()}},e,this)})),E.$dt=function(e){return m.apply(this,arguments)},E.Jdt=function(){var e=this;if(!this.gdt){this.ldt=new rE;var r=function(){e.gdt=void 0};this.gdt=this.tlt(this.ldt.dh).catch(this.Pdt).then(r,r)}},w=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c,f,l,p=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=this.Qdt;case 1:for(s.forEach(function(e){return e.Cvt.cvt()}),o=[],u=0;u<s.length;u++)h=(a=s[u]).Nvt,c=a.Dvt,h.Uht?o.push(h.Oht()):h.Lht(this.JR.vy)||((f=c.Lft())?"j1"===f.Ua&&f.Xot===this.vdt?(c.Mft(f),h.sit(f.ivt,f.j1),o.push(h.Oht())):"xot"===f.Ua&&f.Xot===this.vdt&&(c.Mft(f),h.AH(f.xot,f.evt),o.push(h.Oht())):o.push(c.Gft()));if(0!==o.length){e.next=16;break}if(!(l=s.map(function(e){return e.Dvt.Lft()})).every(function(e){return e&&e.Xot!==p.vdt})){e.next=12;break}return e.delegateYield(iO.mark(function e(){var r,o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=rw(r=l,function(e){return e.Xot}).Xot,!r.every(function(e){return e.Xot===o})){e.next=8;break}return e.next=6,p.nlt(r);case 6:e.next=9;break;case 8:for(u=0;u<s.length;u++)a=s[u],(h=r[u]).Xot!==o&&a.Dvt.Mft(h);case 9:return e.abrupt("return","continue");case 10:case"end":return e.stop()}},e)})(),"t0",9);case 9:if("continue"!==e.t0){e.next=12;break}return e.abrupt("continue",1);case 12:return s.every(function(e){return e.Nvt.Lht(p.JR.vy)})&&this.$R.bH(),e.abrupt("break",20);case 16:return e.next=18,rR(P.race(o),r);case 18:e.next=1;break;case 20:case"end":return e.stop()}},e,this)})),E.tlt=function(e){return w.apply(this,arguments)},b=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=r.filter(function(e){return e.e$}).map(function(e){return e.e$}),o={Ua:gp._N,gV:s.map(function(e){return{$d:e}}),ED:[]},!this.$R.IX(o)){e.next=7;break}return e.next=5,this.$R.RX(o);case 5:e.next=8;break;case 7:throw new y("Discontinuities are not yet fully supported.");case 8:this.vdt=r[0].Xot;case 9:case"end":return e.stop()}},e,this)})),E.nlt=function(e){return b.apply(this,arguments)},k=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(LP.bT("HLSEngine - Destroy the HLSEngine."),!this.jit){e.next=6;break}return this.SS.hh(),this.SS=new rE,e.next=6,this.jit.catch(I);case 6:return this.JR.Eh(ul.Av,this.iq),this.JR.Eh(ul.rv,this.Ndt),this.JR.Eh(ul.fv,this.Ddt),this.mdt=void 0,this.jit=void 0,this.wdt=!1,this.Adt=!1,this.Udt(void 0),e.next=16,this.rD.Yg();case 16:return e.next=18,this.Bdt();case 18:this.hdt=void 0,this.cdt=void 0,this.$R=void 0;case 21:case"end":return e.stop()}},e,this)})),E.rh=function(){return k.apply(this,arguments)},M(r,[{key:"wp",get:function(){return this.sV}},{key:"Om",get:function(){return this.Rm}},{key:"Qdt",get:function(){return[this.hdt,this.cdt,this.fdt].filter(z)}},{key:"f4",get:function(){return this.p6.f4}},{key:"ilt",get:function(){return this.wdt}},{key:"rlt",get:function(){return this.udt}},{key:"elt",get:function(){return this.sdt}},{key:"ult",get:function(){return this.odt}},{key:"ep",get:function(){if(this.rlt){var e=this.JR.vy;return this.rlt.Yat(e)}}},{key:"Rdt",get:function(){var e=[];if(this.rlt)for(var r=this.JR.vy,s=0,o=this.Qdt;s<o.length;s++){var u=o[s].Nvt.Mht(r);u&&e.push(u)}return e}}]),r}(rB);function Ps(e){var r,s;return null!=(r=null!=(s=ra(e,function(e){return e.Kst}))?s:ra(e,function(e){return e.Zst}))?r:e[0]}function Po(e,r){return e.Tat(void 0,void 0)===r.Tat(void 0,void 0)}function Pu(e){return e.reduce(function(e,r){return e.UC(r.wp)},new mo([0,1/0]))}(PM=Pn||(Pn={})).slt="alternative",PM.olt="main",PM.hlt="commentary",PM.clt="",PM.yS="descriptions",PM.flt="main-desc",PM.vlt="translation",(PF=Pi||(Pi={})).slt="alternative",PF.olt="main",PF.hlt="commentary",PF.clt="",PF.wS="captions",PF.dlt="sign",PF.ob="subtitles";var Pa=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).Ap="",u.Ent=void 0,u.llt=void 0,u._lt=void 0,u._g=void 0,u.bp=void 0,u.glt=function(){var e=u.ow;e&&u.llt!==e&&(u.llt=e,u.yh(new R2(e)))},u.wlt=function(){var e=u.aw;u._lt!==e&&(u._lt=e,u.ylt.yh(new c7(t8(u))),u.yh(new c7(t8(u))))},u.klt=r,u.ylt=s,u.lw=o,u.llt=u.ow,u._lt=u.aw,u.bp=pt++,u.klt.kh(_9.Est,u.glt),u.klt.kh(_9.Tst,u.wlt),u}j(r,e);var s=r.prototype;return s.Sp=function(e){this.aw=e},s.Kl=function(){this.klt.Eh(_9.Est,this.glt),this.klt.Eh(_9.Tst,this.wlt)},M(r,[{key:"aw",get:function(){var e=this.plt();if(!e)return!1;for(var r=0,s=this.lw.Qg;r<s.length;r++)if(s[r].ivt===e)return!0;return!1},set:function(e){if(e!==this.aw&&e){for(var r=this.lw.qg(0).ivt,s=this.klt.rlt,o=0;o<this.lw.Zg;o++){var u=this.lw.qg(o);if(u.Alt===s){r=u.ivt;break}}this.blt(r)}}},{key:"ow",get:function(){if(this.aw)for(var e=this.klt.Rdt,r=0;r<this.lw.Zg;r++){var s=this.lw.qg(r);if(_r(e,s.ivt))return s}}},{key:"gg",get:function(){return this._g||(this._g=fg(this)),this._g}},{key:"hw",get:function(){return this.bp.toString()}},{key:"cw",get:function(){return this.bp}},{key:"vw",get:function(){return this.Ap},set:function(e){e!==this.Ap&&(this.Ap=e,this.yh(new l7(this)))}},{key:"dw",get:function(){return""}},{key:"Aw",get:function(){return this.aw?"enabled":"disabled"}},{key:"_w",get:function(){return this.Ent},set:function(e){var r=this,s=[];0!==(s=e?e.filter(function(e){var s=r.ow?CR(r.ow):void 0;return _.oa.Eo(s,CR(e))}).filter(function(s){return r.lw.kp(e)&&s.bK}):this.lw.Qg.filter(function(e){return e.bK})).length?e!==this.Ent&&(this.Ent&&rp(this.Ent,s)&&rp(s,this.Ent)||(this.Ent=e?s:void 0,1===s.length?(rN(this.klt.Hdt(s[0].Alt,!1)),this.klt.Odt([])):this.klt.Odt(s.map(function(e){return e.Alt})),this.yh(new CA(s,this)))):this.yh(new CS)}}]),r}(rB),Ph=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.plt=function(){return this.klt.elt},s.blt=function(e){rN(this.klt.Xdt(e))},M(r,[{key:"fw",get:function(){return Pn.olt}}]),r}(Pa),Pc=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.plt=function(){return this.klt.ult},s.blt=function(e){rN(this.klt.Vdt(e))},M(r,[{key:"fw",get:function(){return Pi.olt}}]),r}(Pa),Pf=function(e){function r(r,s){var o;return(o=e.call(this)||this).bK=!0,o.Alt=r,o.ivt=s,o}return j(r,e),r.prototype._S=function(){},M(r,[{key:"hw",get:function(){return String(this.Alt.hw)}},{key:"cw",get:function(){return this.Alt.hw}},{key:"QN",get:function(){return this.Alt.QN}},{key:"e$",get:function(){return JSON.stringify(this.Alt.e$)}},{key:"vw",get:function(){return this.ivt.ds===_p?"":this.ivt.ds}},{key:"h0",get:function(){return this.ivt.Tat()}}]),r}(rB),Pl=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this)._g=void 0,o}return j(r,e),r.prototype.wg=function(){return TD(this)},M(r,[{key:"r$",get:function(){return 0}},{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}}]),r}(Pf),Pp=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this)._g=void 0,o}return j(r,e),r.prototype.wg=function(){return TO(this)},M(r,[{key:"o0",get:function(){return 0}},{key:"a$",get:function(){return 0}},{key:"yT",get:function(){var e,r;return null!=(e=null==(r=this.Alt.aot)?void 0:r.yT)?e:0}},{key:"Lo",get:function(){var e,r;return null!=(e=null==(r=this.Alt.aot)?void 0:r.Lo)?e:0}},{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}}]),r}(Pf),Pv=function(){function e(e,r,s){this.Tlt=e,this.Elt=r,this.Slt=s}return e.prototype.Ilt=function(){LP.bT("LLHLSTrackConfigurator - Configuring text tracks.");var e,r=this.Tlt.f4.xst;if(r&&r.length){for(var s=null!=(e=ra(r,function(e){return 0!==e.Zat.length&&0!==e.Qat.length}))?e:r[0],o=r.filter(function(e){return e!==s}),u=0,a=s.Zat;u<a.length;u++){var h=a[u],c=new l8,f=[];c.Wy(new Pl(s,h)),f.push(h);for(var l=0;l<o.length;l++)for(var p=o[l],v=0,d=p.Zat;v<d.length;v++){var y=d[v];
1if(_i(y,h)&&!_r(f,y)){c.Wy(new Pl(p,y)),f.push(y);break}}this.Elt.Gg(new Ph(this.Tlt,this.Elt,c))}for(var g=0,m=s.Qat;g<m.length;g++){var w=m[g],b=new l8,k=[];b.Wy(new Pp(s,w)),k.push(w);for(var E=0;E<o.length;E++)for(var A=o[E],x=0,T=A.Qat;x<T.length;x++){var C=T[x];if(_i(C,w)&&!_r(k,C)){b.Wy(new Pp(A,C)),k.push(C);break}}this.Slt.Gg(new Pc(this.Tlt,this.Slt,b))}}else LP.pst("LLHLSTrackConfigurator - The HLSModel contains no variant streams.")},e}(),Pd=function(e){var r;function s(r,s){var o;return(o=e.call(this,r)||this).pP=void 0,o.pP=s,o}return j(s,e),s.prototype.El=(r=P.coroutine(iO.mark(function e(r){var s,o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=new hP(r),o=this.pP.xM.YN(s)){e.next=4;break}return e.abrupt("return",this.ES.El(s));case 4:return o.UM(_.xo()/1e3),e.next=7,this.ES.El(r);case 7:return u=e.sent,o.FM(_.xo()/1e3),a={Fs:u.Jd().pipeThrough(new aZ(new Py(o))),El:u.El},e.abrupt("return",new hT(a,u));case 12:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)}),s}(function(){function e(e){this.ES=void 0,this.ES=e}var r=e.prototype;return r.El=function(e){return this.ES.El(e)},r.Zl=function(e){this.ES.Zl(e)},r.Kl=function(){this.ES.Kl()},e}()),Py=function(){function e(e){this.DU=void 0,this.Rlt=e}var r=e.prototype;return r.start=function(e){this.DU=e},r.transform=function(e){this.Rlt.HM(_.xo()/1e3,e),this.DU.enqueue(e)},r.flush=function(){this.Rlt.XM(_.xo()/1e3)},e}(),Pg=function(){function e(e){this.Nlt=void 0,this.Dlt=0,this.Clt=0,this.Nlt=b.exp(b.log(.5)/e)}var r=e.prototype;return r.Y7=function(e,r){var s=b.pow(this.Nlt,e),o=r*(1-s)+s*this.Dlt;A(o)||(this.Dlt=o,this.Clt+=e)},r.RX=function(e){var r=b.exp(b.log(.5)/e);if(r!==this.Nlt)if(0!==this.Clt){var s=this.bZ,o=1-b.pow(r,this.Clt);this.Dlt=s*o,this.Nlt=r}else this.Nlt=r},M(e,[{key:"bZ",get:function(){var e=1-b.pow(this.Nlt,this.Clt);return this.Dlt/e}}]),e}(),Pm=function(){function e(r,s,o,u){void 0===r&&(r=e.Plt),void 0===s&&(s=e.Blt),void 0===o&&(o=e.Olt),void 0===u&&(u=e.ntt),this.Llt=void 0,this.Mlt=void 0,this.xlt=0,this.Ult=void 0,this.Flt=void 0,this.Flt=o,this.Llt=new Pg(r),this.Mlt=new Pg(s),this.Ult=u}var r=e.prototype;return r.Y7=function(e,r){var s=8*r/e;this.Llt.Y7(e,s),this.Mlt.Y7(e,s),this.xlt+=r},r.D5=function(){return this.xlt>=this.Flt},M(e,[{key:"bZ",get:function(){return this.D5()?b.min(this.Llt.bZ,this.Mlt.bZ):this.Ult}}]),e}();Pm.Plt=.5,Pm.Blt=5,Pm.Olt=128e3,Pm.ntt=5e5;var Pw=function(){function e(r,s,o,u){void 0===r&&(r=e.Plt),void 0===s&&(s=e.Blt),void 0===o&&(o=e.ntt),void 0===u&&(u=!1),this.Llt=void 0,this.Mlt=void 0,this.Hlt=0,this.Xlt=[],this.Vlt=void 0,this.Wlt=6e4,this.qlt=10,this.Glt=void 0,this.zlt=void 0,this.Ult=void 0,this.jlt=void 0,this.Glt=r,this.zlt=s,this.Ult=o,this.jlt=u,this.Llt=new Pg(r),this.Mlt=new Pg(s)}var r=e.prototype;return r.Y7=function(e){var r=_.xo();this.jlt&&void 0!==this.Vlt&&r-this.Vlt>=this.Wlt&&this.Yg(),this.Hlt+=1,this.Llt.Y7(1,e),this.Mlt.Y7(1,e),this.Xlt.push(e),this.Xlt.length>this.qlt&&this.Xlt.shift(),this.Vlt=r},r.D5=function(){return void 0!==this.Vlt&&_.xo()-this.Vlt<=this.Wlt},r.Yg=function(){this.Llt=new Pg(this.Glt),this.Mlt=new Pg(this.zlt),this.Hlt=0,this.Xlt=[],this.Vlt=void 0},M(e,[{key:"bZ",get:function(){return this.D5()?b.min(this.Llt.bZ,this.Mlt.bZ):this.Ult}}]),e}();Pw.Plt=2,Pw.Blt=5,Pw.ntt=.1;var Pb=function(){function e(e){this.Ylt=e}var r=e.prototype;return r.UM=function(e){for(var r=0,s=this.Ylt;r<s.length;r++)s[r].UM(e)},r.FM=function(e){for(var r=0,s=this.Ylt;r<s.length;r++)s[r].FM(e)},r.HM=function(e,r){for(var s=0,o=this.Ylt;s<o.length;s++)o[s].HM(e,r)},r.XM=function(e){for(var r=0,s=this.Ylt;r<s.length;r++)s[r].XM(e)},e}(),Pk=function(){function e(e){this.Qlt=void 0,this.Zlt=void 0,this.Qlt=e}var r=e.prototype;return r.UM=function(e){this.Zlt=e},r.FM=function(e){this.Qlt.Y7(e-this.Zlt)},r.HM=function(e){},r.XM=function(e){},e}(),PE=function(){function e(e){this.ett=void 0,this.Klt=void 0,this.Jlt=[],this.ett=e}var r=e.prototype;return r.HM=function(e,r){if(void 0!==this.Klt){var s=e-this.Klt,o=this.Jlt.length>0?this.Jlt.reduce(function(e,r){return r+e}
1,0)/this.Jlt.length:0;s>o/2&&s<o+o/2&&this.ett.Y7(s,r.length),this.Jlt.push(s),this.Jlt.length>100&&this.Jlt.shift(),this.Klt=e}else this.Klt=e},r.UM=function(e){},r.FM=function(e){},r.XM=function(e){},e}(),PA=function(){function e(e,r){void 0===r&&(r=0),this.ett=void 0,this.$lt=void 0,this.t_t=new Px,this.YW=0,this.n_t=!0,this.ett=e,this.$lt=r}var r=e.prototype;return r.UM=function(e){},r.HM=function(e,r){var s=e-this.YW;this.YW=e;var o=this.t_t.mut();this.t_t.wut(r);var u=r.byteLength,a=8*u/s>15e5,h=u>=this.$lt;(this.n_t||a&&o&&h)&&this.ett.Y7(s,u),this.n_t=!1},r.FM=function(e){this.YW=e},r.XM=function(e){},e}(),Px=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).i_t="",r.r_t=0,r}j(r,e);var s=r.prototype;return s.wut=function(r){this.r_t=0,e.prototype.wut.call(this,r)},s._ut=function(r,s){e.prototype._ut.call(this,r,s),this.i_t=r},s.gut=function(){e.prototype.gut.call(this),this.i_t===pG.KA&&(this.r_t+=1)},s.Sut=function(e){return!1},s.Rut=function(e){},s.Nut=function(e){},M(r,[{key:"e_t",get:function(){return this.r_t}}]),r}(R9),PT=function(){function e(e){this.ett=void 0,this.u_t=void 0;var r=e.QN>0?e.QN:Pm.ntt,s=e.ZN>0?e.ZN:Pw.ntt;this.ett=new Pm(Pm.Plt,Pm.Blt,0,r),this.u_t=new Pw(Pw.Plt,Pw.Blt,s)}return e.prototype.YN=function(e){if("segment"===e.Ua)return new Pb([new Pk(this.u_t),new PE(this.ett),new Pb([new PE(this.ett),new PA(this.ett,1e3)])])},M(e,[{key:"QN",get:function(){return this.ett.bZ}},{key:"ZN",get:function(){return this.u_t.bZ}}]),e}(),PC=[ul.Wf,ul.Gf,ul.Yf,ul.$f,ul.rv,ul.ev,ul.ov,ul.hv,ul.fv,ul.Av,ul.bv,f7.Og,f7.oy],PS=function(r){function s(s,o,u,a){var h;return(h=r.call(this)||this)._P=1,h.s_t=!1,h.tD=g7.cC,h.JN=void 0,h.$N=void 0,h.Tlt=void 0,h.o_t=void 0,h.a_t=void 0,h.jit=void 0,h.E6=void 0,h.JR=void 0,h.rD=void 0,h.Sm=void 0,h.Im=void 0,h.Rm=void 0,h.h_t=void 0,h.c_t=void 0,h.ES=void 0,h.uD=void 0,h.handleContentProtectionErrorEvent=function(e){h.JN=l1(e.errorObject),h.$N=e.errorObject,h.wh(e)},h.handleBufferingErrorEvent=function(r){var s=new om(e.ErrorCode.MEDIA_LOAD_ERROR,r.Lh.message,r.Lh);h.JN=l1(s),h.$N=s,h.yh(new lm(s))},h.pP=u,h.Vht=a,h.JR=s,h.ES=new Pd(o,h.pP),h.uD=new PT(h.pP.xM),h.Sm=new l6,h.Im=new l6,h.h_t=new fL,h.Rm=new Ea([h.h_t]),h.rD=new gm(h.JR,h.ES),h.c_t=new gX(h.JR,!0),h.f_t(),h}j(s,r);var o,u,a,h,c,f=s.prototype;return f.Xm=function(){return!1},f.Zm=function(){return mh},f.Ym=function(){LP.bT("LLHLSPlayer - Hiding the player."),this.JR.Ym()},f.xm=function(){LP.bT("LLHLSPlayer - Pausing the player."),this.JR.xm()},f.Mm=function(){var e=this;this.a_t||(this.a_t=new sG),rN(this.Q8().then(function(){var r;null==(r=e.a_t)||r.uc(),e.a_t=void 0},function(r){var s;null==(s=e.a_t)||s.ac(r),e.a_t=void 0}));var r=this.a_t.ec;return rN(r),r},o=P.coroutine(iO.mark(function e(){var r,s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(LP.bT("LLHLSPlayer - Playing the player."),!this.Tlt){e.next=11;break}if(r=this.JR.vy,this.yh(new le(r)),s=this.JR.Mm(),this.Tlt.ilt){e.next=8;break}return e.next=8,this.bc();case 8:return e.next=10,s;case 10:this.s_t=!0;case 11:case"end":return e.stop()}},e,this)})),f.Q8=function(){return o.apply(this,arguments)},f.jm=function(){LP.bT("LLHLSPlayer - Showing the player."),this.JR.jm()},f.Vm=function(){throw new y("Not implemented")},f.Wm=function(){throw new y("Not implemented")},f.ip=function(){},u=P.coroutine(iO.mark(function e(r,s,o){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(LP.bT("LLHLSPlayer - Setting the player source to "+r.src+"."),!this.E6||fW(this.E6)){e.next=5;break}return e.next=4,this.Yg();case 4:rT(o);case 5:if(r.src&&!fW(r)){e.next=7;break}return e.abrupt("return");case 7:this.Tlt=new Pr(r,this.rD,this.JR,this.ES,this.Vht,this.pP),this.Tlt.kh(_9.Lvt,this.handleBufferingErrorEvent),this.h_t.ew=this.Tlt.Om,this.o_t=new Pv(this.Tlt,this.Sm,this.Im);case 11:case"end":return e.stop()}},e,this)})),f.Hm=function(e,r,s){return u.apply(this,arguments)},f.bc=function(){return this.jit||(this.jit=this.q_()),this.jit},a=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return LP.bT("LLHLSPlayer - Loading the player."),e.next=3,this.Tlt.bc();case 3:this.o_t.Ilt();case 4:case"end":return e.stop()}},e,this)})),f.q_=function(){return a.apply(this,arguments)},h=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return LP.bT("LLHLSPlayer - Unloading the player."),this.v_t(),e.next=4,this.Yg();case 4:return e.next=6,this.rD.Kl();case 6:this.Sm.Kl(),this.Im.Kl(),this.h_t.Kl(),this.Rm.Kl(),this.c_t.Kl();case 11:case"end":return e.stop()}},e,this)})),f.Kl=function(){return h.apply(this,arguments)},c=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(LP.bT("LLHLSPlayer - Resetting the player."),!this.Tlt){e.next=7;break}return this.Tlt.Eh(_9.Lvt,this.handleBufferingErrorEvent),e.next=5,this.Tlt.rh();case 5:this.Tlt=void 0,this.h_t.ew=void 0;case 7:return e.next=9,this.JR.Yg();case 9:this.jit=void 0,this.E6=void 0,this.s_t=!1,this.o_t=void 0,this._P=1,this.JN=void 0,this.$N=void 0,this.c_t.Yg(),this.d_t(),this.yh(new f9(this.vy,this.bw));case 19:case"end":return e.stop()}},e,this)})),f.Yg=function(){return c.apply(this,arguments)},f.d_t=function(){for(var e=0,r=this.Sm.Qg;e<r.length;e++)r[e].Kl();for(var s=0,o=this.Im.Qg;s<o.length;s++)o[s].Kl();for(var u=0,a=this.Rm.Qg;u<a.length;u++)a[u].Kl();this.Sm.Yg(),this.Im.Yg(),this.Rm.Yg()},f.f_t=function(){this.rD.kh(ul.Hf,this.wh),this.rD.kh(ul.Ff,this.handleContentProtectionErrorEvent),this.c_t.kh(ls,this.wh),this.JR.kh(PC,this.wh)},f.v_t=function(){this.rD.Eh(ul.Hf,this.wh),this.rD.Eh(ul.Ff,this.handleContentProtectionErrorEvent),this.c_t.Eh(ls,this.wh),this.JR.Eh(PC,this.wh)},M(s,[{key:"Pm",get:function(){return this.Sm}},{key:"rp",get:function(){return this.JR.rp.XD()}},{key:"ep",get:function(){var e;return null==(e=this.Tlt)?void 0:e.ep}
1,set:function(e){throw new y("Not implemented")}},{key:"vy",get:function(){return this.JR.vy},set:function(e){LP.bT("LLHLSPlayer - Seeking to "+e+" s."),this.JR.$h(e)}},{key:"ly",get:function(){return this.JR.ly}},{key:"_y",get:function(){return this.JR._y}},{key:"Lh",get:function(){return this.JN}},{key:"gy",get:function(){return this.$N}},{key:"Lm",get:function(){}},{key:"op",get:function(){return!1}},{key:"ym",get:function(){return iD({},{ap:0,hp:0,cp:0,fp:0,vp:0,dp:{amountOfBufferedAudioSegments:0,amountOfBufferedVideoSegments:0}},this.JR.WD())}},{key:"wy",get:function(){return this.JR.wy},set:function(e){this.JR.wy=e}},{key:"lp",get:function(){return!0}},{key:"yy",get:function(){return this.JR.yy}},{key:"py",get:function(){return this.JR.py},set:function(e){LP.bT("LLHLSPlayer - Setting playback rate to "+e+"."),this.JR.py=e}},{key:"_p",get:function(){return this.JR._p.XD()}},{key:"gp",get:function(){return this.tD},set:function(e){this.tD=e}},{key:"bw",get:function(){return this.JR.bw}},{key:"wp",get:function(){return this.Tlt?this.Tlt.wp.XD():mo.aP().XD()}},{key:"Ay",get:function(){return this.JR.Ay}},{key:"qD",get:function(){}},{key:"Om",get:function(){return this.Rm}},{key:"Bm",get:function(){return this.Im}},{key:"by",get:function(){return this.JR.by}},{key:"Ty",get:function(){return this.JR.Ty}},{key:"Ey",get:function(){return this.JR.Ey},set:function(e){LP.bT("LLHLSPlayer - Setting volume to "+e+"."),this.JR.Ey=e}},{key:"GD",get:function(){return this.uD}}]),s}(rB),PR=function(){function e(){this.zD=gY.qN}return e.prototype.jD=function(e,r){return fF(e.type)},e}(),PL=function(){function r(){}var s,o,u=r.prototype;return s=P.coroutine(iO.mark(function r(s,o,u){var a,h;return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,crypto.subtle.importKey("raw",o,{name:"AES-CBC"},!1,["decrypt"]);case 3:return a=r.sent,r.next=6,crypto.subtle.decrypt({name:"AES-CBC",iv:u},a,s);case 6:return h=r.sent,r.abrupt("return",new x(h));case 10:throw r.prev=10,r.t0=r.catch(0),new om(e.ErrorCode.CONTENT_PROTECTION_INTERNAL_ERROR,"Error during AES128 decrypt.");case 13:case"end":return r.stop()}},r,null,[[0,10]])})),u.Ght=function(e,r,o){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o){var u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.importKey("raw",s,{name:"AES-CBC"},!1,["encrypt","decrypt"]);case 2:return u=e.sent,a=kI(r,new aK({highWaterMark:1048576})),e.abrupt("return",a.pipeThrough(new aZ(new P_(u,o))));case 5:case"end":return e.stop()}},e)})),u.Wht=function(e,r,s){return o.apply(this,arguments)},r}(),P_=function(){function e(e,r){if(this.l_t=void 0,this.__t=void 0,this.ri=new R7,16!==r.byteLength)throw new g("Initialization vector must be 16 bytes long");this.l_t=e,this.__t=r}var r,s,o=e.prototype;return r=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f,l,p,v,d,y,g,m,w;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(o=0;o<r.length;o++)u=r[o],this.ri.bF(u);if(!(this.ri.Qh<32)){e.next=3;break}return e.abrupt("return");case 3:for(c=new x((h=(a=this.ri.Qh)-(16+(a-16)%16))+16),f=this.ri.eut(h),l=0,p=0,v=f.tut;p<v.length;p++)d=v[p],c.set(d,l),l+=d.byteLength;return y=c.slice(h-16,h),e.next=16,crypto.subtle.encrypt({name:"AES-CBC",iv:y},this.l_t,new x(1));case 16:return g=e.sent,c.set(new x(g),h),e.next=21,crypto.subtle.decrypt({name:"AES-CBC",iv:this.__t},this.l_t,c);case 21:m=e.sent,this.__t=y,w=new x(m,0,h),s.enqueue(w);case 26:case"end":return e.stop()}},e,this)})),o.transform=function(e,s){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.ri.Qh){e.next=2;break}return e.abrupt("return");case 2:return s=this.ri.out(),e.next=5,crypto.subtle.decrypt({name:"AES-CBC",iv:this.__t},this.l_t,s);case 5:o=e.sent,r.enqueue(new x(o));case 7:case"end":return e.stop()}},e,this)})),o.flush=function(e){return s.apply(this,arguments)},e}(),PP=function(e){function r(r,s,o,u,a){var h;return(h=e.call(this,s,o,u,a)||this).KN=void 0,h.KN=r,h}j(r,e);var s,o=r.prototype;return o.Qm=function(){if(x8(this.JR))return this.JR.Qm()},s=P.coroutine(iO.mark(function r(){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype.Kl.call(this);case 2:return r.next=4,this.KN.FD(this.JR);case 4:case"end":return r.stop()}},r,this)})),o.Kl=function(){return s.apply(this,arguments)},r}(PS);g6(new(function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.zS=function(e,r,s,o,u,a){var h=new PL,c=r.mD(l4.Vl);return new PP(r,c,s,u,h)},s.jD=function(r,s){return!!a.MediaSource&&!!r.lowLatency&&e.prototype.jD.call(this,r,s)},s.YD=function(){return!0},r}(PR))),LP.aw=function(){return!(!a||!a.THEOplayerDebugLogsEnabled)};var PI=[];function PN(){PI.shift()()}
1function PO(e){PI.push(e),l(PN,0)}var PD=function(){function e(e){this.g_t=void 0,this.w_t=void 0,this.y_t=void 0,this.y_t=e}var r=e.prototype;return r.k_t=function(e){return this.g_t=this.g_t||{},void 0===this.g_t[e]&&(this.g_t[e]=[]),this.g_t[e]},r.addEventListener=function(e,r){var s=this.k_t(e);-1===s.indexOf(r)&&s.push(r)},r.Ah=function(e){(this.w_t||(this.w_t=[])).push(e)},r.removeEventListener=function(e,r){var s=this.k_t(e);r?rc(s,r):s.length=0},r.Rh=function(e){var r=this.w_t;r&&rc(r,e)},r.Th=function(){this.g_t=void 0},r.dispatchEvent=function(e,r){if(r)return PO(this.dispatchEvent.bind(this,e));"string"==typeof e&&(e={type:e});for(var s=this.k_t(e.type).slice(),o=this.w_t&&this.w_t.slice(),u=0;u<s.length;u++)s[u].call(this.y_t||this,e);if(o)for(var a=0;a<o.length;a++)o[a].call(this.y_t||this,e)},r.m_t=function(e){return!!(this.g_t&&this.g_t[e]&&this.g_t[e].length)},r.p_t=function(){return this.g_t?w.keys(this.g_t):[]},e}(),PU=function(){function e(){this.A_t=[]}var r=e.prototype;return r.HZ=function(e,r){var s=this.A_t[e];return s?new s(r):null},r.WF=function(e,r){this.A_t[e]=r},e}();PU.ju=new PU;var PM,PF,Pj,PH=function(e){function r(r,s){var o,u=PV[r];return(o=e.call(this,u?u.Ph:"")||this).code=void 0,o.info=void 0,o.helpLink=void 0,o.helpLinkText=void 0,o.code=r,o.info=s,o.helpLink=u&&u.b_t,o.helpLinkText=u&&u.T_t,o}return j(r,e),M(r,[{key:"name",get:function(){return"THEOplayerError"}}]),r}(t9);(Iz=Pj||(Pj={})).E_t="LICENSE_INVALID",Iz.S_t="MANIFEST_NOT_FOUND",Iz.I_t="MANIFEST_CORS_ERROR",Iz.R_t="INVALID_HLS_MANIFEST",Iz.N_t="PLAYBACK_ISSUE",Iz.D_t="AUDIO_ISSUE",Iz.C_t="BROWSER_SUPPORT_ISSUE",Iz.P_t="INVALID_KEY",Iz.B_t="DECRYPTION_ERROR",Iz.O_t="AD_BLOCK_DETECTED",Iz.L_t="THEOPLAYER_NOT_INITIALIZED",Iz.mw="ERROR",Iz.M_t="MANIFEST_SEQUENCE_RESET_ERROR",Iz.x_t="PLAYER_INCORRECTLY_CONFIGURED",Iz.U_t="UNSUPPORTED";for(var PB=[{hc:Pj.E_t,Ph:"The license for this player is invalid. Please contact your service provider for additional information."},{hc:Pj.S_t,Ph:"Could not load the manifest file."},{hc:Pj.I_t,Ph:"Could not load the manifest file. Make sure the source is set correctly and that CORS support is enabled.",b_t:"https://www.theoplayer.com/documentation/cors.html",F_t:!1},{hc:Pj.R_t,Ph:"The source of the player is an invalid HLS manifest.",b_t:"https://developer.apple.com/library/ios/technotes/tn2288/_index.html"},{hc:Pj.N_t,Ph:"There appears to be a playback issue."},{hc:Pj.D_t,Ph:"There is an audio issue. Please contact your service provider with the code below for additional information."},{hc:Pj.C_t,Ph:"Your browser doesn't support a feature. Try upgrading your browser or please contact your service provider referring to the code below."},{hc:Pj.P_t,Ph:"There is an invalid key being decrypted. Please contact your service provider with the code below for additional information."},{hc:Pj.B_t,Ph:"There is a decryption error. Please contact your service provider with the code below for additional information."},{hc:Pj.O_t,Ph:"An ad blocker was detected. Please turn it off and refresh the page in order to watch this video."},{hc:Pj.L_t,Ph:"THEOplayer hasn't been initialized yet. Please check your configuration or wait."},{hc:Pj.mw,Ph:"THEOplayer encountered an error. If this issue holds, please contact your service provider."},{hc:Pj.M_t,Ph:"The video stream has been reset. THEOplayer will attempt to reload the source."},{hc:Pj.x_t,Ph:"The player is incorrectly configured.",b_t:"https://support.theoplayer.com/hc/en-us/articles/214343065-Player-API"},{hc:Pj.U_t,Ph:"This browser does not allow you to watch this video. Try to update your browser or use a different browser."}],PV={},PX=0;PX<PB.length;PX++){var PW=PB[PX];PV[PW.hc]=PW}function Pq(e){return e.nat}var PY=function(){function e(){this.Lv=[],this.H_t={},this.X_t=0}var r=e.prototype;return r.V_t=function(e){var r=this.H_t[e];return void 0===r?-1:r-this.X_t},r.W_t=function(e){return this.Lv[e]},r.q_t=function(e){return this.W_t(this.V_t(e))},r.G_t=function(e){return!!this.W_t(e)},r.z_t=function(e){return!!this.q_t(e)},r.j_t=function(){return this.Lv},r.Wy=function(e){var r,s=this.Lv,o=s.length?s[s.length-1]:null;if(this.V_t(e.nat)>=0)return!1;if(o&&e.nat>o.nat)r=s.length;else{var u=k2(this.Lv,e.nat,Pq,l_);if(u>=0)return!1;r=-(u+1)}return this.Y_t(e,r),!0},r.Tc=function(e){var r=this.Lv,s=this.H_t,o=this.V_t(e.nat);return!(o<0)&&(r.splice(o,0,e),delete s[e.nat],this.Q_t(o),!0)},r.Z_t=function(e){var r=this.Lv,s=this.H_t;e=b.min(e,r.length);for(var o=0;o<e;o++)delete s[r[o].nat];r.splice(0,e),this.X_t+=e},r.Y_t=function(e,r){var s=this.Lv;r>=s.length?s.push(e):s.splice(r,0,e),this.Q_t(r)},r.Q_t=function(e){for(var r=this.Lv,s=this.H_t,o=this.X_t,u=r.length,a=e;a<u;a++)s[r[a].nat]=a+o},M(e,[{key:"Zg",get:function(){return this.Lv.length}}]),e}(),P$=function(){function e(e,r,s){this.K_t=void 0,this.jht=void 0,this.J_t=void 0,this.K_t=e,this.jht=r,this.J_t=s}var r=e.prototype;return r.compute=function(){return this.K_t.live?this.K_t.$_t?this.K_t.tgt:this.estimateDiscontinuitySequenceNumber():0},r.estimateDiscontinuitySequenceNumber=function(){var e=0;return this.J_t&&(e+=this.ngt()),this.igt()&&(e+=this.rgt(e)),e},r.igt=function(){return void 0!==this.jht.egt.q_t(this.K_t.fragments[0].nat)},r.rgt=function(e){var r=this.K_t.fragments[0];return this.jht.egt.q_t(r.nat).Xot-(r.Xot+e)||0},r.ngt=function(){var e=PJ(this.K_t),r=PJ(this.J_t.ugt),s=this.estimateMinimalOffset(r,e);return this.getOldDiscontinuitySequenceNumber(this.J_t)+s},r.estimateMinimalOffset=function(e,r){for(var s=0,o=1/0,u=0;u<e.length;u+=1){for(var a=0,h=0;h<r.length+e.length;h+=1){var c=e[h]||0,f=r[h-u]||0;a+=b.abs(c-f)}a<o&&(s=u,o=a)}return s},r.getOldDiscontinuitySequenceNumber=function(e){return e.ugt.fragments.length?this.J_t.sgt(e.ugt.fragments[0].nat).Xot:0},e}();function PJ(e){for(var r=[],s=0,o=0,u=e.fragments;o<u.length;o++){var a=u[o];a.ogt&&(r.push(s),s=0),s+=a.duration}return r.push(s),r}function PQ(e){return PG(e)?{Il:e.h0,MJ:[e.MJ.bC,e.MJ.EC],Yl:!0}:{Il:e.toString(),Yl:!0}}function PG(e){return void 0!==e.MJ}function PK(e){return e&&e.agt&&pB(e.agt)||!1}function Pz(e){if(!e)return lW.Jy;if(!PK(e))return lW.Wk(e.duration);var r=e.hgt||lW.Jy,s=e.cgt||lW.Jy,o=lW.Wk(e.duration);return r.hk()||s.hk()?r.hk()?s.hk()?o.hk()?lW.Jy:o:s:r:lW.Mk(r,s)}function PZ(e){for(var r=0;r<e.length;r++){var s=e[r];if(s.PS)return s}return null}function P0(e){return PZ(e)||e.filter(function(e){return e.fgt})[0]||e[0]}function P1(e){switch(e){case I5.Vl:case I5.vgt:return l4.Vl;case I5.Xl:return l4.Xl}}(IZ=I3||(I3={})).Vl="video",IZ.Xl="audio",IZ.dgt="closedCaption",IZ.lgt="variant",(I0=I5||(I5={}))[I0.Nl=-1]="Nl",I0[I0.Xl=0]="Xl",I0[I0.Vl=1]="Vl",I0[I0.vgt=2]="vgt",(I1=I4||(I4={}))[I1.Nl=-1]="Nl",I1[I1.pot=1]="pot",I1[I1.Aot=2]="Aot",I1[I1._gt=3]="_gt",I1[I1.ggt=4]="ggt",(I2=I4||(I4={})).dm=function(e){return e>=I4.Aot},I2.wgt=function(e){return e===I4.Aot||e===I4._gt};var P2=function(e){function r(){var r;return(r=e.call(this)||this).Hat=[],r.ygt=function(){return r.dispatchEvent("kgt")},r.mgt=function(){return r.dispatchEvent("pgt")},r}j(r,e);var s=r.prototype;return s.Wy=function(e){this.Hat.push(e),e.addEventListener("pgt",this.mgt),e.addEventListener("Agt",this.ygt),this.dispatchEvent("bgt"),e.disabled||this.dispatchEvent("kgt")},s.Tc=function(e){var r=this.Hat.indexOf(e);r<0||(rf(this.Hat,r),e.removeEventListener("pgt",this.mgt),e.removeEventListener("Agt",this.ygt),this.dispatchEvent("bgt"),e.disabled||this.dispatchEvent("kgt"))},s.Yh=function(){for(var e=!!this.Tgt.length,r=!!this.Egt.length,s=0,o=this.Hat;s<o.length;s++)o[s].removeEventListener("Agt",this.ygt);this.Hat.length=0,e&&this.dispatchEvent("bgt"),r&&this.dispatchEvent("kgt")},s.Kl=function(){this.Th(),this.Yh()},M(r,[{key:"Tgt",get:function(){return this.Hat}},{key:"Egt",get:function(){return this.Hat.filter(function(e){return!e.disabled})}}]),r}(PD);function P3(e){if(!e)return null;for(var r={Ust:"",Fst:"",tot:""},s=e.toLowerCase().split(","),o=0;o<s.length;o++){var u=s[o],a=u.trim();"mp4a.40.5"===a||"mp4a.40.05"===a?r.Ust="mp4a.40.5":"mp4a.40.2"===a||"mp4a.40.02"===a?r.Ust="mp4a.40.2":"mp4a.40.29"===a?r.Ust="mp4a.40.29":0===a.indexOf("mp4a.40.3")||"ec-3"===a?r.Ust=a:0===a.indexOf("avc")?r.Fst=u:r.tot+=","+a}return r}var P5=function(e){function r(r,s,o,u,a,h,c){var f;return(f=e.call(this)||this).ktt=void 0,f.UR=void 0,f.pp=void 0,f.Sgt=new PY,f.Igt=NaN,f.Rgt=void 0,f.cft=void 0,f.zV=void 0,f.Ngt=void 0,f.Dgt=void 0,f.P3=!0,f.Cgt=!0,f.Pgt=!0,f.Bgt=!1,f.Ogt=null,f.Lgt=!1,f.ktt=r,f.UR=s,f.pp=o||0===o?o:-1,f.cft=u,f.Ngt=!!a,f.Dgt=!!h,f.zV=c,f}j(r,e);var s=r.prototype;return s.Mgt=function(e,r){var s=wD(),o=new P$(e,this,r).compute(),u=this.xgt(e.fragments),a=u.oldFragments,h=u.newFragments;this.Ugt(a,s),this.Fgt(h,s,o),this.Rgt!==e&&this.Hgt(!0),this.Rgt=e,this.dispatchEvent({type:"Xgt",ivt:this}),this.dispatchEvent("renditionUpdated")},s.sgt=function(e){return this.Sgt.q_t(e)},s.Vgt=function(){var e=this.P3;this.P3=this.Cgt&&this.Pgt,e!==this.P3&&this.dispatchEvent("pgt")},s.Hgt=function(e){this.Cgt=e,this.Vgt()},s.Wgt=function(e){this.Pgt=e,this.Vgt()},s.qgt=function(e){this.UR=e,this.dispatchEvent("renditionUpdated")},s.Ggt=function(){null!==this.Ogt&&p(this.Ogt),this.dispatchEvent("Agt"),this.dispatchEvent("renditionUpdated")},s.zgt=function(e){this.Lgt=e,this.Ggt()},s.jgt=function(){this.Ygt(3e4)},s.Ygt=function(e){var r=this;this.Bgt=!0,this.Ggt(),this.Ogt=l(function(){r.Bgt=!1,r.Ggt()},e)},s.xgt=function(e){void 0===e&&(e=[]);for(var r=[],s=[],o=0,u=e;o<u.length;o++){var a=u[o];this.Sgt.z_t(a.nat)?r.push(a):s.push(a)}return{oldFragments:r,newFragments:s}},s.Ugt=function(e,r){for(var s=0;s<e.length;s++){var o=e[s],u=this.Sgt.q_t(o.nat);u.Qgt=function(e,r){for(var s=0;s<r.length;s++){var o=r[s];rl(e,o)||e.push(o)}return e}(u.Qgt,o.Qgt),u.Uot=o.Uot||u.Uot,u.Zgt=r}},s.Fgt=function(e,r,s){var o=this.Kgt(e);!function(e,r){for(var s=0,o=e.length-1;o>=0;o--){var u=e[o];u.eT=r-s,s+=1e3*u.duration}}(o,r),function(e,r){for(var s=0;s<e.length;s++){var o=e[s];o.Xot+=r}}(o,s),this.Jgt(o)},s.Kgt=function(e){for(var r=[],s=0;s<e.length;s++){var o=e[s];o.ivt=this;var u=iD({},o);
1r.push(u)}return r},s.Jgt=function(e){for(var r=0;r<e.length;r++){var s=e[r];this.Sgt.Wy(s),A(this.Igt)&&(this.Igt=s.nat)}},s.Kl=function(){this.Th(),null!==this.Ogt&&p(this.Ogt)},M(r,[{key:"disabled",get:function(){return this.Bgt||this.Lgt},set:function(e){this.Bgt=e,this.Ggt()}},{key:"hw",get:function(){return this.pp}},{key:"lp",get:function(){return this.P3}},{key:"uri",get:function(){return this.cft||this.Rgt&&this.Rgt.uri},set:function(e){this.cft=e,this.dispatchEvent("renditionUpdated")}},{key:"ugt",get:function(){return this.Rgt}},{key:"egt",get:function(){return this.Sgt}},{key:"Zot",get:function(){return this.Rgt?this.Rgt.live?this.Rgt.duration<-60?I4._gt:I4.ggt:I4.pot:I4.Nl}},{key:"ds",get:function(){return this.UR},set:function(e){this.qgt(e)}},{key:"dw",get:function(){return this.zV}},{key:"PS",get:function(){return this.Ngt}},{key:"fgt",get:function(){return this.Dgt||this.Ngt}},{key:"$gt",get:function(){return this.Igt}},{key:"twt",get:function(){return!!this.ugt}},{key:"Jd",get:function(){return this.ktt}}]),r}(PD),P4=function(e){function r(r,s,o,u,a,h,c,f,l,p,v,d,y,g,m,w){var b;return void 0===m&&(m=Pn.olt),(b=e.call(this,r,s,o,a,h,c,y)||this).nwt=void 0,b.iwt=void 0,b.rwt=void 0,b.ewt=void 0,b.Fat=void 0,b.uwt=void 0,b.swt=void 0,b.owt=void 0,b.awt=void 0,b.GV=void 0,b.hwt=void 0,b.cwt=void 0,b.fwt=void 0,b.vwt=void 0,b.dwt=void 0,b.lwt=void 0,b._wt=null,b.gwt=void 0,b.nwt=!!g,b.Fat=u,b.iwt=P3(f),b.rwt=w,b.swt=l,b.owt=p,b.uwt=v,b.ewt=d,b.GV=m,b}j(r,e),r.createFromPlaylistStream=function(e,s,o){return new r(e,s.name||s.media&&s.media.name||void 0,s.id,s["average-bandwidth"],s.uri,void 0,void 0,s.codecs,s.nat,s.audio,s.resolution,s.bandwidth,s.media?s.media.language:void 0,o,e.Zat[0]?e.Zat[0].fw:Pn.olt)},r.createFromPlaylistMedia=function(e,s,o,u){return new r(e,s.name,s.id,void 0,s.uri,!!s.default&&"yes"===s.default.toLowerCase(),s.autoselect?"yes"===s.autoselect.toLowerCase():void 0,void 0,void 0,void 0,void 0,void 0,s.language,o,s.default&&"yes"===s.default.toLowerCase()?s.characteristics&&nX(s.characteristics,"public.accessibility.describes-video")?Pn.flt:Pn.olt:s.characteristics&&nX(s.characteristics,"public.accessibility.describes-video")?Pn.yS:Pn.slt,u)},r.createFromUri=function(e,s,o){return new r(e,void 0,void 0,void 0,s,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,o)};var s=r.prototype;return s.wwt=function(e){this.iwt="string"==typeof e?P3(e):e,this.dispatchEvent("renditionUpdated")},s.ywt=function(e,r){return e?!r&&e.Ust&&e.Fst?I5.vgt:e.Fst?I5.Vl:e.Ust?I5.Xl:I5.Nl:I5.Nl},M(r,[{key:"kwt",set:function(e){this.nwt=e}},{key:"e$",get:function(){return this.iwt}},{key:"bandwidth",get:function(){return this.ewt},set:function(e){this.ewt=e,this.dispatchEvent("renditionUpdated")}},{key:"fw",get:function(){return this.GV}},{key:"resolution",get:function(){return this.uwt},set:function(e){this.uwt=e,this.dispatchEvent("renditionUpdated")}},{key:"mwt",get:function(){return void 0!==this.rwt?this.rwt:this.ywt(this.iwt,this.nwt)}},{key:"nat",get:function(){return this.swt}},{key:"Ust",get:function(){return this.owt}},{key:"eot",get:function(){return this.Fat}},{key:"pwt",get:function(){return this.awt},set:function(e){var r=this.awt;this.awt=e,r!==e&&this.dispatchEvent("renditionUpdated")}}]),r}(P5),P6=function(e){function r(r,s,o,u,a,h,c,f,l){var p;return(p=e.call(this,r,s,o,u,a,h,c)||this).Xs=void 0,p.Awt=null,p.Evt=void 0,p.bwt=function(){return p.Twt()},p.Xs=f,p.Evt=new Eu(l,String(o),p.ds,p.dw,void 0,po.WEBVTT),p.PS&&(p.Evt.Aw=fk.yw),p}j(r,e),r.createFromPlaylistMedia=function(e,s,o,u){return new r(e,s.name,s.id||0===s.id?s.id:-1,s.uri,!!s.default&&"yes"===s.default.toLowerCase(),!!s.autoselect&&"yes"===s.autoselect.toLowerCase(),s.language,s.type,nX(s.characteristics,"public.accessibility.describes-music-and-sound")?vV.wS:vV.ob)};var s=r.prototype;return s.Mgt=function(r){e.prototype.Mgt.call(this,r),this.Twt()},s.Kl=function(){e.prototype.Kl.call(this),this.rS=null},s.qgt=function(r){e.prototype.qgt.call(this,r),this.Evt.vw=r},s.Twt=function(){this.Awt&&this.Awt.Ewt(this,this.egt)},M(r,[{key:"Swt",get:function(){return this.Evt}},{key:"rS",get:function(){return this.Awt},set:function(e){this.Awt&&this.Awt.removeEventListener("Iwt",this.bwt),this.Awt=e,this.Twt(),this.Awt&&this.Awt.addEventListener("Iwt",this.bwt)}},{key:"h0",get:function(){return this.uri}},{key:"Ua",get:function(){return this.Xs}}]),r}(P5),P8=function(e){function r(r,s){(o=e.call(this)||this).ef=void 0,o.Rwt=void 0,o.Nwt=["renditionUpdated","Xgt","Dwt"],o.Cwt=null,o.sdt=null,o.udt=null,o.Pwt=null,o.Bwt=new P2,o.tht=new P2,o.Owt=new P2,o.Rm={},o._et=void 0,o.Zvt=void 0,o.Lwt=null,o.EV=NaN,o.Mwt=void 0,o.xwt=void 0,o.wh=function(e){return o.dispatchEvent(e)},o.ef=r,o.Rwt=s;var o,u=t8(o);return o.Mwt=function(){u.Uwt(this)},o.xwt=function(e){u.Fwt(this,e)},o}j(r,e);var s=r.prototype;return s.Hwt=function(e,r){var s=new E3(r);return s.Aw=fk.ww,this.Rm[s.hw]=s,this.dispatchEvent({type:"Xwt",yg:s}),s},s.Vwt=function(e,r,s){var o=new E2(s,"manifest");return o.Aw=fk.ww,this.Rm[o.hw]=o,this.dispatchEvent({type:"Xwt",yg:o}),o},s.Wwt=function(e,r){if(e){var s=e.Tw,o=e.qwt,u=e&&this.Rm[o];u||(u=new E3(e.pw),this.Rm[o]=u,u.Aw=fk.ww,this.dispatchEvent({type:"Xwt",yg:u}));for(var a=0;a<s.length;a++){var h=s[a];u.DS(h)}}},s.Gwt=function(e){e&&(this._et||(this._et=new Eu(vV.wS,void 0,"CC1","en",!0,po.CEA608),this.Rm.CC1=this._et,this.dispatchEvent({type:"Xwt",yg:this._et})),this._et.DS(e))},s.zwt=function(e,r,s){var o=this.Rm[e];
1if(o){for(var u=[],a=0,h=o.Tw.Qg;a<h.length;a++){var c=h[a];if(c.xp>=s)break;r<c.Up&&u.push(c)}for(var f=0;f<u.length;f++){var l=u[f];o.bS(l)}}},s.Hdt=function(e,r){return this.Vdt(e,r)},s.jwt=function(e){var r;return(r=this.Ywt(e,this.Bwt))||(r=this.Ywt(e,this.tht))?r:r=this.Ywt(e,this.Owt)},s.Kl=function(){this.Ih(this.Bwt),this.Bwt.Kl(),this.Ih(this.tht),this.tht.Kl(),this.Ih(this.Owt),this.Owt.Kl(),this.Rm={},this._et=void 0,this.Zvt&&(this.Zvt.Kl(),this.Zvt=void 0),this.Lwt=null,this.EV=NaN,this.Cwt=null,this.sdt=null,this.udt=null,this.Pwt=null,this.dispatchEvent("Kl")},s.Qwt=function(e){var r=P4.createFromUri(this,e.uri);this.Ih(this.tht),this.tht.Wy(r),r.addEventListener("renditionUpdated",this.Mwt)},s.Uwt=function(e){var r=e.ugt,s=e.Zot;if(A(this.EV)||I4.dm(s)){if(I4.Nl===s||!r)return;this.EV=r.duration,this.dispatchEvent("Zwt")}A(this.EV)||I4.pot!==s||e.removeEventListener("renditionUpdated",this.Mwt)},s.Kwt=function(e){var r=this;this.Ih(this.Bwt),this.Bwt.Yh(),this.Ih(this.tht),this.tht.Yh(),this.Owt.Yh(),this.Lwt=e;for(var s=e.streams.map(function(e){return P4.createFromPlaylistStream(r,e)}).filter(function(e){var r;return!(r=e.e$)||(!r.Ust||!!nX(r.Ust,"mp4a")||!!nX(r.Ust,"mp3"))&&(!r.Fst||!!nX(r.Fst,"avc1"))}),o=s.some(function(e){return e.e$&&e.e$.Ust}),u=s.some(function(e){return e.e$&&e.e$.Fst}),a=0;a<s.length;a++){var h=s[a],c=!!(h.e$&&h.e$.Ust),f=!!(h.e$&&h.e$.Fst);o&&!c||u&&!f||(this.tht.Wy(h),h.addEventListener("renditionUpdated",this.Mwt))}for(var l=0,p=e.media;l<p.length;l++)!function(e,s){var o=s[e];switch(o.type.toLowerCase()){case"subtitles":if(!r.Rwt){var u=P6.createFromPlaylistMedia(r,o);r.Owt.Wy(u),r.dispatchEvent({type:"Xwt",yg:u.Swt})}break;case"closed-captions":break;case"audio":var a=r.tht.Tgt.filter(function(e){return e.Ust===o["group-id"]});if(0===a.length)return;o.uri&&a.forEach(function(e){return e.kwt=!0});var h=o.uri?I5.Xl:I5.vgt,c=P4.createFromPlaylistMedia(r,o,!1,h);r.Bwt.Wy(c)}}(l,p);this.elt=P0(this.Zat.Egt)||null,this.dispatchEvent("Jwt")},s.Ywt=function(e,r){for(var s=0,o=r.Tgt;s<o.length;s++){var u=o[s];if(u.uri===e)return u}return null},s.Fwt=function(e,r){this.dispatchEvent(iD({},r,{ivt:e}))},s.$wt=function(e){for(var r=0,s=e.Tgt;r<s.length;r++)for(var o=s[r],u=0,a=this.Nwt;u<a.length;u++){var h=a[u];o.addEventListener(h,this.xwt)}},s.Ih=function(e){for(var r=0,s=e.Tgt;r<s.length;r++)s[r].Kl()},s.tyt=function(e,r){0!==e.length&&this.ef.hlsDateRange&&(this.Zvt||(this.Zvt=new _3,this.dispatchEvent({type:"Xwt",yg:this.Zvt})),this.Zvt.Ec(e,r))},s.Xdt=function(e,r){if(this.sdt!==e){var s=this.sdt;this.sdt=e,this.dispatchEvent({type:"nyt",mwt:"Ust",ivt:this.sdt,iyt:s,ryt:r})}},s.Vdt=function(e,r){if(this.udt!==e){var s=this.udt;this.udt=e,e&&this.dispatchEvent({type:"nyt",mwt:"Fst",ivt:this.udt,iyt:s,ryt:r})}},s.eyt=function(e){for(var r=0,s=e.Tgt;r<s.length;r++){var o=s[r];if(o.Zot!==I4.Nl)return o.Zot}return null},M(r,[{key:"wm",get:function(){return this.Cwt},set:function(e){e&&(0===e.streams.length?this.Qwt(e):this.Kwt(e),this.Cwt=e,this.$wt(this.tht),this.$wt(this.Bwt),this.dispatchEvent("uyt"))}},{key:"syt",get:function(){return this.Lwt}},{key:"ly",get:function(){return this.EV}},{key:"Om",get:function(){var e=this,r=this.Owt.Tgt.map(function(e){return e.Swt}),s=w.keys(this.Rm).map(function(r){return e.Rm[r]});return this._et&&s.push(this._et),this.Zvt&&s.push(this.Zvt),r.concat(s)}},{key:"elt",get:function(){return this.sdt},set:function(e){this.Xdt(e,!0)}},{key:"rlt",get:function(){return this.udt},set:function(e){this.Vdt(e,!1)}},{key:"Zat",get:function(){return this.Bwt}},{key:"xst",get:function(){return this.tht}},{key:"$at",get:function(){return this.Owt.Tgt}},{key:"Zot",get:function(){var e;return null!==(e=this.sdt&&this.sdt.Zot)&&e!==I4.Nl||null!==(e=this.udt&&this.udt.Zot)&&e!==I4.Nl||null!==(e=this.eyt(this.Bwt))||null!==(e=this.eyt(this.tht))?e:I4.Nl}}]),r}(PD),P7=function(e){function r(r,s,o){var u,a,h,c,f;return(u=e.call(this)||this).iT=[],u.oyt={},u.ayt=void 0,u.hyt=void 0,u.cyt=void 0,u.gg=void 0,u.wh=function(e){return u.dispatchEvent(e)},u.fyt=function(e){u.vyt(e)},u.dyt=function(e){u.handleRenditionUpdated(e)},u.lyt=function(e){for(var r=0,s=u.iT;r<s.length;r++)s[r]._yt.lyt(e)},u.ayt=r,u.hyt=s,u.cyt=o,u.hyt&&u.hyt.addEventListener("nyt",u.fyt),u.cyt&&(u.cyt.addEventListener("renditionUpdated",u.dyt),u.cyt.addEventListener("gyt",u.lyt)),a=t8(u),h=new PD,c={get length(){return a.iT.length},enable:function(e){a.lS(a.wyt(e&&e.id)||e)},disable:function(e){a._S(a.wyt(e&&e.id)||e)},item:function(e){return a.iT[e]&&a.iT[e].gg},getTrackByID:function(e){var r=a.wyt(e);return r&&r.gg},addEventListener:function(e,r){h.addEventListener(e,r)},removeEventListener:function(e,r){h.removeEventListener(e,r)}},f=function(e){return h.dispatchEvent(e,!0)},a.addEventListener("addtrack",f),a.addEventListener("enabledtrack",f),a.addEventListener("disabledtrack",f),u.gg=c,u}j(r,e);var s=r.prototype;return s.wyt=function(e){return this.oyt[e]},s.Gg=function(e){for(var r=0,s=e._yt.lw;r<s.length;r++){var o=s[r];o.hw===this.yyt()&&(o.iA=!0)}e.addEventListener("enabledtrack",this.wh),e.addEventListener("disabledtrack",this.wh),this.iT.push(e),this.oyt[e.hw]=e,this.dispatchEvent({type:"addtrack",track:e.gg})},s.lS=function(e){if(e){var r=this.oyt[e.hw];if(r&&!r.aw){for(var s=this.iT.length-1;s>=0;s--)this.iT[s].zm();r.Gm()}}},s._S=function(e){},M(r,[{key:"kyt",get:function(){return this.yyt()}}]),r}(PD),P9=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).myt=void 0,u.myt=NaN,u}j(r,e);var s=r.prototype;return s.yyt=function(){return this.myt},s.vyt=function(e){e.pyt?this.Ayt(e.byt):e.Tyt&&this.Ayt(e.Tyt)},s.Ayt=function(e){e&&(this.myt=e.hw),this.iT.forEach(function(r){return r.Eyt(e)})},s.handleRenditionUpdated=function(e){if(e.ivt&&e.ivt.mwt===I5.Xl)for(var r=0,s=this.iT;r<s.length;r++)s[r].Syt(e)},s.lS=function(r){var s=r;if(!s){var o=this.iT.filter(function(e){return e.PS});o.length>0&&(s=o[0])}e.prototype.lS.call(this,s)},M(r,[{key:"Ua",get:function(){return"audio"}}]),r}(P7),It=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).Iyt=void 0,u.Iyt=NaN,u}j(r,e);var s=r.prototype;return s.yyt=function(){return this.Iyt},s.vyt=function(e){(e.Ryt||e.byt)&&(e.byt&&(this.Iyt=e.byt.hw),this.iT.forEach(function(r){return r.Eyt(e.byt)}))},s.handleRenditionUpdated=function(e){if(e.ivt&&(e.ivt.mwt===I5.Vl||e.ivt.mwt===I5.vgt))for(var r=0,s=this.iT;r<s.length;r++)s[r].Syt(e)},M(r,[{key:"Ua",get:function(){return"video"}}]),r}(P7);function Ie(e,r){for(var s,o=r-(s=e?tt(e)?Array.prototype.map.call(e,function(e){return("0"+e.toString(16)).substr(-2)}).join(""):(+e).toString(16):"").length;o>0;)s="0"+s,o-=1;return s}function In(e,r){return void 0===r&&(r=0),E(e.toFixed(r))}var Ii=function(e){function r(r){var s,o,u,a;return(s=e.call(this)||this).ivt=void 0,s.iA=!1,s.Nyt=!0,s.gg=void 0,s.ivt=r,s.iA=!1,o=t8(s),u=new PD,a={get bandwidth(){return o.ivt&&o.ivt.bandwidth},get averageBandwidth(){return o.ivt&&o.ivt.averageBandwidth},get codecs(){return o.e$},get resolution(){return o.aot},get frameRate(){return In(o.a$,2)},get id(){return o.hw},get uri(){return o.ivt&&o.ivt.uri},get name(){return o.ds},set name(t){o.ds=t},get enabled(){return o.aw},set enabled(t){o.aw=!!t},addEventListener:function(e,r){u.addEventListener(e,r)},removeEventListener:function(e,r){u.removeEventListener(e,r)}},o.addEventListener("qualityupdated",function(e){return u.dispatchEvent(e,!0)}),s.gg=a,s}j(r,e);var s=r.prototype;return s.Dyt=function(e){var r=!!e&&this.hw===e.hw;
1this.iA!==r&&(this.iA=r,this.dispatchEvent({type:"activequalitychanged",quality:this.gg}))},s.Syt=function(e){return this.ivt.hw===e.ivt.hw&&(this.ivt=e.ivt,this.dispatchEvent({type:"qualityupdated",quality:this.gg}),!0)},M(r,[{key:"aw",get:function(){return this.Nyt},set:function(e){this.Nyt=e,this.ivt.zgt(!e)}},{key:"fw",get:function(){return this.ivt.fw}},{key:"aot",get:function(){return this.ivt.resolution?{width:this.ivt.resolution.width,height:this.ivt.resolution.height}:{width:NaN,height:NaN}}},{key:"ds",get:function(){return this.ivt.ds},set:function(e){this.ivt.ds=e,this.dispatchEvent({type:"qualityupdated",quality:this.gg})}},{key:"hw",get:function(){return this.ivt.hw}}]),r}(PD),Ir=function(e){function r(r){return e.call(this,r)||this}return j(r,e),M(r,[{key:"e$",get:function(){return this.ivt.e$&&this.ivt.e$.Fst||""}},{key:"a$",get:function(){return In(Number(this.ivt.pwt),2)}}]),r}(Ii),Is=function(e){function r(r){return e.call(this,r)||this}return j(r,e),M(r,[{key:"e$",get:function(){return this.ivt.e$&&this.ivt.e$.Ust||""}},{key:"a$",get:function(){return In(Number(this.ivt.gwt),2)}}]),r}(Ii),Io=function(e){function r(r,s){var o,u,a,h,c;(o=e.call(this)||this).lw=void 0,o.Ent=null,o.Cyt={},o.cyt=void 0,o.gg=void 0,o.wh=function(e){return o.dispatchEvent(e)},o.lw=r,o.cyt=s;for(var f=o.lw.length-1;f>=0;f--){var l=o.lw[f];o.Cyt[l.hw]=l}return o.lw.forEach(function(e){return e.addEventListener("activequalitychanged",o.wh)}),u=t8(o),a=new PD,h={item:function(e){var r=u.qg(e);return r&&r.gg},getQualitiesByIDs:function(e){return u.Pyt(e).map(function(e){return e.gg})},get length(){return u.lw.length},get activeQuality(){return u.ow&&u.ow.gg},get targetQuality(){return u._w?1===u._w.length?u._w[0].gg:u._w.map(function(e){return e.gg}):null},set targetQuality(t){if(t){var p=Z(t)?t:[t];u._w=u.Pyt(p.map(function(e){return e.id}))}else u._w=null},addEventListener:function(e,r){a.addEventListener(e,r)},removeEventListener:function(e,r){a.removeEventListener(e,r)}},c=function(e){return a.dispatchEvent(e,!0)},u.addEventListener("activequalitychanged",c),u.addEventListener("targetqualitychanged",c),o.gg=h,o}j(r,e);var s=r.prototype;return s.Byt=function(e){return!!e&&this.lw.some(function(r){return r.hw===e.hw})},s.Oyt=function(e,r){for(var s=0,o=this.lw;s<o.length;s++)o[s].Dyt(e)},s.Pyt=function(e){var r=this;return e&&e.map(function(e){return r.Cyt[e]}).filter(function(e){return e})},s.Lyt=function(){for(var e=this.lw.length-1;e>=0;e--)this.lw[e].iA=!1},s.lyt=function(e){var r=this.cyt.Myt,s=this.Pyt(r);r&&r.length>0&&s&&s.length>0?this.dispatchEvent({type:"targetqualitychanged",quality:s[0].gg}):r&&0!==r.length||this.dispatchEvent({type:"targetqualitychanged",quality:null})},s.qg=function(e){return this.lw[e]},M(r,[{key:"ow",get:function(){for(var e=0,r=this.lw;e<r.length;e++){var s=r[e];if(s.iA)return s}return null}},{key:"_w",get:function(){return this.Ent},set:function(e){this.Ent=this.xyt(e)}}]),r}(PD),Iu=function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.Gm=function(){this.cyt&&(this.cyt.myt=this.lw[0].hw)},s.zm=function(e){this.cyt&&(this.cyt.myt=null)},s.xyt=function(e){},r}(Io),Ia=function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.Gm=function(){if(this.xyt(this._w),this.cyt){var e=this.cyt.ayt;if(e){var r=ra(e.Uyt.Zat.Tgt,function(e){return!e.uri});this.cyt.myt=r?r.hw:null}}},s.Oyt=function(r,s){"video"===s&&e.prototype.Oyt.call(this,r,s)},s.zm=function(e){"video"===e&&this.Lyt()},s.xyt=function(e){if(!this.cyt)return this._w;var r=e?this.Pyt(e.map(function(e){return e.hw})):null;if(r&&r.length>0){var s=r.map(function(e){return e.hw});return this.cyt.Myt=s,r}return e?this._w:(this.cyt.Myt=null,null)},r}(Io),Ih=function(e){function r(r,s){var o,u,a;return(o=e.call(this)||this).Ua=void 0,o._yt=void 0,o.hw=void 0,o.Tp=void 0,o.ds=void 0,o.gg=void 0,o.Ua=r,o._yt=s,o.hw=s.qg(0).hw,o.Tp=o._yt.lw.some(function(e){return e.iA}),o.ds=s.qg(0).ivt.ds,u=t8(o),a=new PD,o.gg={get id(){return u.hw},get enabled(){return u.aw},get qualities(){return u._yt&&u._yt.gg},get language(){return u.dw},get default(){return u.PS},get name(){return u.ds},set name(t){u.ds=t},addEventListener:function(e,r){a.addEventListener(e,r)},removeEventListener:function(e,r){a.removeEventListener(e,r)}},o}j(r,e);var s=r.prototype;return s.Eyt=function(e){var r=this._yt.Byt(e);this.Sp(r),this._yt.Oyt(e,this.Ua)},s.Sp=function(e){this.Tp!==e&&(e?(this.Tp=!0,this.dispatchEvent({type:"enabledtrack",track:this.gg})):(this.Tp=!1,this.dispatchEvent({type:"disabledtrack",track:this.gg})))},s.Gm=function(){this.Tp||this._yt.Gm()},s.zm=function(){this.Tp&&this._yt.zm(this.Ua)},s.Syt=function(e){e.ivt.hw===this.hw&&(this.ds=e.ivt.ds);for(var r=0,s=this._yt.lw;r<s.length;r++)s[r].Syt(e)},M(r,[{key:"aw",get:function(){return this.Tp}},{key:"dw",get:function(){return this.Fyt()}},{key:"fw",get:function(){return this.Hyt()}},{key:"PS",get:function(){var e="video"===this.Ua,r=this._yt.lw&&this._yt.lw[0].ivt.PS;return e||r}}]),r}(PD),Ic=function(e){function r(r){return e.call(this,"video",r)||this}j(r,e);var s=r.prototype;return s.Hyt=function(){return Pi.olt},s.Fyt=function(){return""},r}(Ih),If=function(e){function r(r){return e.call(this,"audio",r)||this}j(r,e);var s=r.prototype;
1return s.Hyt=function(){return this._yt.lw[0].ivt.fw},s.Fyt=function(){return this._yt.lw[0].ivt.dw||""},r}(Ih),Il=function(){function e(e,r,s){var o=this;this.Xyt=void 0,this.Vyt=void 0,this.Elt=void 0,this.Slt=void 0,this.Wyt=function(){var e=o.Xyt;e.removeEventListener("qyt",o.Wyt);var r=e.Uyt.xst.Tgt,s=e.Uyt.Zat.Tgt,u=r.map(function(e){return new Ir(e)});if(u.length>0){var a=new Ia(u,o.Vyt);o.Slt.Gg(new Ic(a));var h=ra(s,function(e){return!e.uri}),c=0===s.length;if(r.length>0&&(h||c)){var f=new If(a);h&&(f.ds=h.ds),o.Elt.Gg(f)}}for(var l=0;l<s.length;l++){var p=s[l];if(p.uri){var v=new Iu([new Is(p)],o.Vyt);o.Elt.Gg(new If(v))}}},this.Xyt=e,this.Vyt=s,this.Elt=new P9(e,r,s),this.Slt=new It(e,r,s),e&&(e.qyt?this.Wyt():e.addEventListener("qyt",this.Wyt))}return M(e,[{key:"Pm",get:function(){return this.Elt}},{key:"Bm",get:function(){return this.Slt}}]),e}(),Ip=["loadedmetadata","durationchange","Lh","r_","lp","Gyt"],Iv=["zyt","nyt","jyt","Lh"],Id=function(e){function r(r,s,o,u,a,h,c){(f=e.call(this)||this).Yyt=null,f.uC=void 0,f.Qyt=void 0,f.Zyt=void 0,f.Kyt=void 0,f.hyt=void 0,f.Jyt=void 0,f.ayt=void 0,f.Bm=void 0,f.Pm=void 0,f.$yt=[],f.tkt=[],f.nkt=function(e){return f.dispatchEvent(e)},f.ikt=function(e){return f.rkt(e)},f.ekt=function(e){return f.ukt(e)},f.uC=r.src,f.Qyt=r.type,f.Zyt=s,f.Kyt=o,f.Jyt=u,f.ayt=a,f.hyt=h,f.ayt&&(f.ayt.addEventListener("skt",f.nkt),f.ayt.addEventListener("okt",f.nkt));var f,l=new Il(f.ayt,f.hyt,c);return f.Bm=l.Bm,f.Pm=l.Pm,f.sC=null,f.uC&&(f.hyt&&f.hyt.Yg(),f.ayt&&(f.ayt.akt=f.uC)),f}j(r,e);var s=r.prototype;return s.hkt=function(e){this.hyt&&this.hyt.bc(e),this.ayt&&this.ayt.ckt(),this.sC&&this.fkt()},s.vkt=function(){this.hyt&&this.hyt.vkt(),this.ayt&&this.ayt.dkt()},s.T7=function(){if(this.ayt)for(var e=0;e<Ip.length;e++){var r=Ip[e];this.ayt.addEventListener(r,this.ikt)}if(this.hyt)for(var s=0;s<Iv.length;s++){var o=Iv[s];this.hyt.addEventListener(o,this.ekt)}},s.R7=function(){if(this.ayt)for(var e=0;e<Ip.length;e++){var r=Ip[e];this.ayt.removeEventListener(r,this.ikt)}if(this.hyt)for(var s=0;s<Iv.length;s++){var o=Iv[s];this.hyt.removeEventListener(o,this.ekt)}},s.fkt=function(){if(this.ayt&&this.$yt.length){var e=this.$yt.slice();rv(this.$yt);for(var r=0;r<e.length;r++){var s=e[r];this.ayt.dispatchEvent(s)}}if(this.hyt&&this.tkt.length){var o=this.tkt.slice();rv(this.tkt);for(var u=0;u<o.length;u++){var a=o[u];this.hyt.dispatchEvent(a)}}},s.rkt=function(e){this.$yt.push(e)},s.ukt=function(e){this.tkt.push(e)},s.Kl=function(){this.dispatchEvent("Kl"),this.Th(),this.hyt&&this.hyt.Kl(),this.Jyt&&this.Jyt.Kl(),this.ayt&&this.ayt.Kl(),this.Yyt=null,rv(this.$yt),rv(this.tkt)},M(r,[{key:"sC",get:function(){return this.Yyt},set:function(e){this.R7(),this.Yyt=e,this.sC?this.dispatchEvent("Oc"):this.T7()}}]),r}(PD),Iy=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).Xyt=null,r.wh=function(e){r.dispatchEvent(e,!0)},r}return j(r,e),M(r,[{key:"myt",get:function(){var e=this.Xyt&&this.Xyt.Uyt.elt;return e?e.hw:null},set:function(e){var r;this.Xyt&&(r=null===e?P0(this.Xyt.Uyt.Zat.Tgt):this.Xyt.Uyt.Zat.Tgt.filter(function(r){return e===r.hw}).shift(),this.Xyt.Uyt.elt=r||null)}},{key:"Myt",get:function(){return this.Xyt&&this.Xyt.lkt||null},set:function(e){this.Xyt&&(this.Xyt._kt(e),this.dispatchEvent("gyt"))}},{key:"ayt",get:function(){return this.Xyt},set:function(e){this.Xyt&&(this.Xyt.Uyt.removeEventListener("uyt",this.wh),this.Xyt.Uyt.removeEventListener("renditionUpdated",this.wh),this.Xyt.Uyt.removeEventListener("Jwt",this.wh)),this.Xyt=e,this.Xyt&&(this.Xyt.Uyt.addEventListener("uyt",this.wh),this.Xyt.Uyt.addEventListener("renditionUpdated",this.wh),this.Xyt.Uyt.addEventListener("Jwt",this.wh))}}]),r}(PD);function Ig(e,r,s,o,u,a){var h=new oM;return r&&h.set("Range","bytes="+r[0]+"-"+r[1]),new hP({Il:e,Al:s,yl:h,Yl:o,ql:hk.GET,Ua:hE.Cl,dh:u,Ql:a})}var Im=function(e){function r(r,s,o,u,a,h){var c;return(c=e.call(this)||this)._T=void 0,c.h0=void 0,c.Al=void 0,c.gkt=void 0,c.ES=void 0,c.wkt=void 0,c.ykt=void 0,c.lL=void 0,c.kkt=void 0,c.c_=null,c.mkt=void 0,c.ul=new rE,c.pkt=function(e,r){return c.Ql(e,r)},c._T=r,c.h0=s,c.Al=o,c.gkt=u,c.lL=a,c.kkt=new Ib,c.ES=h,c.wkt=x6.ju.JK,c.ykt=x6.ju.$K,c}j(r,e);var s,o,u=r.prototype;return u.bC=function(){return this.Akt(this.ul.dh)},s=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return PG(s=this.h0)?(o=s.h0,u=[s.MJ.bC,s.MJ.EC]):(o=s,u=void 0),this.kkt.bkt(),e.prev=3,e.next=6,this.Tkt(o,u);case 6:if(a=e.sent,rT(r),a){e.next=12;break}return e.next=11,this.Ekt(o,u,r);case 11:a=e.sent;case 12:return e.next=14,a.Fs();case 14:h=e.sent,rT(r),this.Skt(h,a.wl),e.next=28;break;case 19:if(e.prev=19,e.t0=e.catch(3),!rx(e.t0)){e.next=25;break}return e.abrupt("return");case 25:f=e.t0 instanceof hU?e.t0.c_.wl:0,c=new y('Could not load fragment: "'+this.h0+'", HTTP status '+f);case 27:return e.abrupt("return",this.Ikt(c));case 28:case"end":return e.stop()}},e,this,[[3,19]])})),u.Akt=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o=xV(r,s),e.next=4,this.wkt.Wh(o);case 4:if(!e.sent){e.next=11;break}return e.next=7,this.ykt.qh(o);case 7:return u=e.sent,a=Ig(r,s,this.Al,this.gkt),h=u.data.buffer,e.abrupt("return",new hT({Fs:h,yl:{},El:a,Sl:r,Al:this.Al,wl:200,bl:""}));case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}},e,this,[[0,13]])})),u.Tkt=function(e,r){return o.apply(this,arguments)},u.Ekt=function(e,r,s){var o=Ig(e,r,this.Al,this.gkt,s,this.pkt);return this.ES.El(o)},u.Ql=function(e,r){var s={type:"Gyt",El:this,v4:e,Rkt:r=void 0===r?NaN:r};this.kkt.Nkt(e,r),this.dispatchEvent(s)},u.Skt=function(e,r){var s=this.Al===up.Iv?e.byteLength:0;this.kkt.Dkt(s),this.Al===up.Ku?this.c_=e:this.c_=new x(e),this.mkt=r,e=null,this.Ikt(),this.c_=null},u.hh=function(e){return this.ul.hh(),e||((e=new y('Aborted fragment load: "'+this.h0+'"')).aborted=!0),this.Ikt(e)},u.Ikt=function(e){return this.kkt.Ckt(),this.dispatchEvent({type:"Um",El:this}),this.lL(e||null,this)},r}(PD);function Iw(){return wD()/1e3}var Ib=function(e){function r(){var r;return(r=e.call(this)||this).ftt=NaN,r.ctt=NaN,r.Pkt=NaN,r.htt=NaN,r.Bkt=0,r.Okt=NaN,r.ftt=Iw(),r}j(r,e);var s=r.prototype;return s.bkt=function(){this.ftt=Iw(),this.dispatchEvent("Ec")},s.Nkt=function(e,r){this.Pkt=Iw(),this.skt||(this.ctt=this.Pkt),this.Bkt=e,this.Okt=r||this.Okt||NaN,this.dispatchEvent("Ec")},s.Dkt=function(e){this.Nkt(e,e)}
1,s.Ckt=function(){this.htt=Iw(),this.dispatchEvent("Ec")},M(r,[{key:"skt",get:function(){return!A(this.ctt)}},{key:"Lkt",get:function(){return!A(this.htt)}},{key:"gm",get:function(){return(this.ctt||Iw())-this.ftt}},{key:"Mkt",get:function(){return(this.htt||this.Pkt)-this.ctt}},{key:"xkt",get:function(){return(this.htt||this.Pkt)-this.ftt}}]),r}(PD),Ik=function(e){function r(r,s){var o;return(o=e.call(this)||this).gkt=void 0,o.Ukt=[],o.Fkt=null,o.Hkt=function(e){return o.Xkt(e)},o.ES=void 0,o.gkt=!(!s||s.crossOrigin!==fK.Ww),o.ES=r,o}j(r,e);var s=r.prototype;return s.bc=function(e,r,s,o){var u=new Im(e,r,s,this.gkt,o,this.ES);return u.addEventListener("Um",this.Hkt),this.Ukt.push(u),this.Vkt(),u},s.Yh=function(e,r){var s=function(e){return!r||e._T===r},o=this.Ukt.filter(s);!e&&this.Fkt&&s(this.Fkt)&&o.push(this.Fkt);for(var u=0;u<o.length;u++)o[u].hh();return o},s.Vkt=function(){if(!this.Fkt){var e=this.Ukt.shift();e&&(this.Fkt=e,e.bC())}},s.Xkt=function(e){var r=e.El,s=this.Ukt.indexOf(r);-1!==s&&rf(this.Ukt,s),this.Fkt===r&&(this.Fkt=null,this.Vkt())},r}(PD);function IE(e){return o.URL&&o.URL.createObjectURL?o.URL.createObjectURL(e):o.webkitURL&&o.webkitURL.createObjectURL?o.webkitURL.createObjectURL(e):o.createObjectURL?o.createObjectURL(e):null}function IA(e){return o.URL&&o.URL.revokeObjectURL?o.URL.revokeObjectURL(e):o.webkitURL&&o.webkitURL.revokeObjectURL?o.webkitURL.revokeObjectURL(e):o.revokeObjectURL?o.revokeObjectURL(e):void 0}function Ix(e,r){return oD([e],{type:r})}var IT=0,IC=T&&(T.bind&&T.bind(T)||T),IS=function(e){function r(r){var s;return(s=e.call(this)||this).Wkt=void 0,s.qkt=[],s.Gkt=!1,s.wh=function(e){return s.dispatchEvent(e)},r&&s.Oc(r),s}j(r,e);var s=r.prototype;return s.postMessage=function(e){this.Gkt||(this.Wkt?this.Wkt.postMessage(e):this.qkt.push(e))},s.Oc=function(e){if(this.Gkt)e.terminate();else{this.Wkt=e,this.Wkt.addEventListener("message",this.wh,!1),this.Wkt.addEventListener("error",this.wh,!1);for(var r=0,s=this.qkt;r<s.length;r++){var o=s[r];this.Wkt.postMessage(o)}this.qkt.length=0}},s.terminate=function(){this.Th(),this.Gkt=!0,this.qkt.length=0,this.Wkt&&(this.Wkt.removeEventListener("message",this.wh,!1),this.Wkt.removeEventListener("error",this.wh,!1),this.Wkt.terminate(),this.Wkt=void 0)},r}(PD),IR=function(e){function r(r,s,u){var a,c,f;return(a=e.call(this)||this).hw=void 0,a.zkt=void 0,a.jkt=void 0,a.Ykt=void 0,a.Qkt=void 0,a.Zkt=function(){return a.Kkt()},a.Jkt=function(e){return a.$kt(e)},a.hw=r,a.zkt=s,c=u+"iframe.html",(f=h.createElement("iframe")).width="0",f.height="0",f.style.display="none",f.src=c,h.body.appendChild(f),a.jkt=f,a.Ykt=a.jkt.contentWindow,a.Qkt=n8(u),a.jkt.addEventListener("load",a.Zkt),o.addEventListener("message",a.Jkt),a}j(r,e);var s=r.prototype;return s.Kkt=function(){this.jkt.removeEventListener("load",this.Zkt),this.Ykt.postMessage({type:"initialize",id:this.hw,script:this.zkt},"*")},s.$kt=function(e){n8(e.origin)===this.Qkt&&e.data.id===this.hw&&("initialized"===e.data.type?this.dispatchEvent("initialized"):"error"===e.data.type?this.dispatchEvent({type:"error",message:e.data.data.message,filename:e.data.data.filename,lineno:e.data.data.lineno}):this.dispatchEvent({type:"message",data:e.data.data}))},s.postMessage=function(e){this.Ykt.postMessage({type:"message",data:e},"*")},s.terminate=function(){this.jkt.removeEventListener("load",this.Zkt),o.removeEventListener("message",this.Jkt),this.Ykt.postMessage({type:"terminate"},"*"),this.jkt.parentNode.removeChild(this.jkt)},r}(PD);function IL(){return(IL=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=_.hg,e.prev=1,u=new hP({Il:r,ql:hk.GET,Al:up.Ku}),e.next=5,o.El(u);case 5:return a=e.sent,e.next=8,a.Fs();case 8:s(void 0,e.sent),e.next=17;break;case 12:e.prev=12,e.t0=e.catch(1),h=new y("PLAYER_INCORRECTLY_CONFIGURED"),s({hc:e.t0 instanceof hU?e.t0.c_.wl:-1,Lh:h});case 17:case"end":return e.stop()}},e,null,[[1,12]])}))).apply(this,arguments)}function I_(e,r){function s(s){var o;return u(),tn(o=s.data)&&"2.87.0"===o.tmt?r(void 0,e):r(new y("PLAYER_INCORRECTLY_CONFIGURED"))}function o(s){s.preventDefault&&s.preventDefault(),u(),e.terminate(),r({message:s.message,filename:s.filename,lineno:s.lineno})}function u(){e.removeEventListener("message",s),e.removeEventListener("error",o)}e.addEventListener("message",s),e.addEventListener("error",o)}function IP(e,r){var s;if(void 0===e)return r({message:"Worker could not be loaded."});try{s=new IC(e)}catch(e){return r({message:e.message})}return I_(s,r)}var II=!0;function IN(e,r){var s=IT++,o=e+r,u=new IS;function a(){!function(e,r,s,o){var u;function a(){f(),I_(u,o)}function c(e){e.preventDefault&&e.preventDefault(),f(),u.terminate(),o({message:e.message,filename:e.filename,lineno:e.lineno})}function f(){u.removeEventListener("initialized",a),u.removeEventListener("error",c)}if(!h)return o({message:"Could not create Worker.",filename:"workershim.js",lineno:223});(u=new IR(e,r,s)).addEventListener("initialized",a),u.addEventListener("error",c)}(s,o,e,c)}function c(e,r,s){e?u.dispatchEvent({type:"error",message:e.message,filename:e.filename,lineno:e.lineno}):(u.Oc(r),s&&u.dispatchEvent(s))}return IP(o,function(e,r,s){e?function(e,r){IL.apply(this,arguments)}(o,function(e,r){e?e.hc>=400?c(e.Lh):a():r&&function(e,r){if(!II)return r({message:"Could not create Worker.",filename:"workershim.js",lineno:196});IP(IE(Ix(e,"application/javascript")),function(e,s,o){return e&&(II=!1),r(e,s,o)})}(r,function(e,r,s){e?a():c(e,r,s)})}):c(e,r,s)}),u}function IO(e,r){if(r<0)throw new y("The index provided ("+r+") must be non-negative");if(r>=e.length)throw new y("The index provided ("+r+") is greater than the maximum bound ("+e.length+")")}function ID(e){return{get length(){return e.length},start:function(r){return IO(e,r|=0),e.start(r)},end:function(r){return IO(e,r|=0),e.end(r)}}}function IU(e,r){return e.bC-r.bC}var IM=function(){function e(e){this.vrt=void 0,this.vrt=e}var r=e.prototype;return r.start=function(e){return this.vrt[e].bC},r.end=function(e){return this.vrt[e].EC},r.nmt=function(){return this.vrt},M(e,[{key:"length",get:function(){return this.vrt.length}}]),e}(),IF=new IM([]),Ij=new IM([{bC:-1/0,EC:1/0}]);function IH(e,r){var s;return function(e,r){var s=e.length;if(r=+r||0,s<2)return e;for(var o=[],u=e.start(0),a=e.end(0),h=1;h<s;h++){var c=e.start(h),f=e.end(h);u<=c&&a>=f||(a+r>=c||(o.push({bC:u,EC:a}),u=c),a=f)}return o.push({bC:u,EC:a}),new IM(o)}(((s=Iq(e)).sort(IU),new IM(s)),r)}function IB(e,r){for(var s=[],o=0,u=0;o<e.length&&u<r.length;){var a=b.max(e.start(o),r.start(u)),h=b.min(e.end(o),r.end(u));a<h&&s.push({bC:a,EC:h}),e.end(o)<r.end(u)?o+=1:u+=1}return new IM(s)}function IV(e){var r=e.length;if(!r)return Ij;var s=[],o=e.start(0);o!==-1/0&&s.push({bC:-1/0,EC:o});for(var u=0;u<r-1;u+=1)s.push({bC:e.end(u),EC:e.start(u+1)});var a=e.end(r-1);return a!==1/0&&s.push({bC:a,EC:1/0}),new IM(s)}function IX(e,r){return -1!==IW(e,r)}function IW(e,r){var s,o=r,u=r;o+=s=+s||0,u-=s;for(var a=0;a<e.length;a+=1)if(e.start(a)<=o&&u<=e.end(a))return a;return -1}function Iq(e){if(e instanceof IM)return e.nmt();var r=[];if(!e)return r;for(var s=0;s<e.length;s++)r.push({bC:e.start(s),EC:e.end(s)});return r}function IY(e,r){var s,o;return s=[e,r],IH(new IM((o=[]).concat.apply(o,s.map(Iq))))}function I$(e,r,s){return s=+s||0,e.bC-s<=r.EC&&r.bC<=e.EC+s}function IJ(e){var r={bC:NaN,EC:NaN,egt:e};return IQ(r),r}function IQ(e){var r=e.egt;r.length?(r.sort(IU),e.bC=r[0].bC,e.EC=r[r.length-1].EC):(e.bC=NaN,e.
1EC=NaN)}function IG(e,r,s){for(var o=[],u=0;u<e.length;u++){var a=e[u],h=b.max(a.bC,r),c=b.min(a.EC,s);if(h<c){var f=void 0;f=a.bC===h&&a.EC===c?a:{bC:h,EC:c,bT:a.bT},o.push(f)}}return o}function IK(e,r){var s,o=b.min(e.bC,r.bC),u=b.max(e.EC,r.EC),a=e.egt,h=r.egt,c=a.concat(h),f=a.length?a[a.length-1]:null,l=h.length?h[0]:null;return f&&l&&f.bT===l.bT&&I$(f,l,.001)&&c.splice(a.length-1,2,(s=f.bT||l.bT,{bC:b.min(f.bC,l.bC),EC:b.max(f.EC,l.EC),bT:s})),IJ(c=IG(c,o,u))}var Iz,IZ,I0,I1,I2,I3,I5,I4,I6,I8,I7,I9,Nt,Ne,Nn,Ni=function(){function e(e,r){this.vrt=void 0,this.vrt=function(e){for(var r=[],s=0;s<e.length;s+=1){var o=e[s],u=void 0;void 0!==o.egt?IQ(u=o):u=IJ([o]),u.egt.length&&u.bC<u.EC&&r.push(u)}return r}(e),r||this.imt()}var r=e.prototype;return r.start=function(e){return this.vrt[e]&&this.vrt[e].bC},r.end=function(e){return this.vrt[e]&&this.vrt[e].EC},r.egt=function(e){return this.vrt[e]&&this.vrt[e].egt},r.rmt=function(e,r){return this.emt(e,e,r)},r.emt=function(e,r,s){e+=s=+s||0,r-=s;for(var o=0;o<this.length;o+=1)if(this.start(o)<=e&&r<=this.end(o))return o;return -1},r.umt=function(e,r,s){e-=s=+s||0,r+=s;for(var o=0;o<this.length;o+=1)if(this.start(o)<r&&e<this.end(o))return o;return -1},r.smt=function(e,r){e+=r=+r||0;for(var s=this.length-1;s>=0;s-=1)if(this.start(s)<=e)return s;return -1},r.omt=function(e,r){e-=r=+r||0;for(var s=0;s<this.length;s+=1)if(e<=this.end(s))return s;return -1},r.kp=function(e){return -1!==this.rmt(e)},r.YC=function(e,r,s){return -1!==this.emt(e,r,s)},r.ZC=function(e,r,s){return -1!==this.umt(e,r,s)},r.UC=function(e){for(var r=[],s=0,o=0;s<this.length&&o<e.length;){var u=b.max(this.start(s),e.start(o)),a=b.min(this.end(s),e.end(o));if(u<a){var h=IG(this.egt(s),u,a);r.push(IJ(h))}this.end(s)<e.end(o)?s+=1:o+=1}return this.HZ(r,!0)},r.Vy=function(e){return this.length&&e.length?this.UC(IV(e)):this},r.qC=function(e){return this.length?e.length?this.HZ(this.vrt.concat(e.vrt)):this:e},r.xot=function(e){for(var r=[],s=0,o=this.vrt;s<o.length;s++)for(var u=0,a=o[s].egt;u<a.length;u++){var h=e(a[u]);h&&r.push(h)}return this.HZ(r)},r.$C=function(e){return this.xot(function(r){return e(r)?r:null})},r.amt=function(){if(!this.length)return this;for(var e=this.vrt.slice(),r=0;r<e.length-1;r+=1){var s=e[r],o=e[r+1];o&&this.hmt(s,o)&&(e.splice(r,2,IK(s,o)),r-=1)}return this.HZ(e,!0)},r.hmt=function(e,r){var s=e.egt,o=r.egt,u=s.length?s[s.length-1]:null,a=o.length?o[0]:null;return u&&a&&this.cmt(u,a)},r.imt=function(){var e=this.vrt;e.sort(IU);for(var r=0;r<e.length-1;r+=1){var s=e[r],o=e[r+1];o&&I$(s,o,.001)&&(e.splice(r,2,IK(s,o)),r-=1)}},M(e,[{key:"length",get:function(){return this.vrt.length}}]),e}(),Nr=function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.HZ=function(e,s){return new r(e,s)},s.cmt=function(e,r){return r.bT.ivt===e.bT.ivt&&r.bT.nat===e.bT.nat+1},r}(Ni);function Ns(e,r){for(var s=[],o=0;o<r.length;o++){var u=r[o],a=e.fmt(u),h=e.vmt(u,a);s.push({bC:a.Dy(),EC:h.Dy(),bT:u})}return new Nr(s).amt()}function No(e,r){var s,o,u;return{audio:e.audio?function(e,r){switch(e.bmt){case I7.Yct:case I7.Mmt:return iD({},Np(e),{bmt:e.bmt,IW:e.IW.map(function(e){var s,o;return s=e.aS,o=iD({},iD({},Ng(s)),{xmt:s.xmt,Umt:s.Umt,Fmt:s.Fmt}),Nd(e.tc(o),r)}),_wt:e._wt,Hmt:e.Hmt});case I7.Qct:return iD({},Np(e),{bmt:e.bmt,IW:e.IW.map(function(e){var s,o;return s=e.aS,o=iD({},iD({},Ng(s)),{Xb:s.Xb,gT:s.gT,Xmt:s.Xmt,zct:s.zct,Vmt:s.Vmt}),Nd(e.tc(o),r)})})}}(e.audio,r):void 0,video:e.video?(o=e.video,u=r,iD({},Nf(o),{bmt:o.bmt,IW:o.IW.map(function(e){var r,s;return r=e.aS,s=iD({},Ng(r),{ly:r.ly,aet:r.aet.nm(),het:r.het,cet:r.cet,Zmt:r.Zmt&&r.Zmt.nm(),Kmt:r.Kmt&&r.Kmt.nm(),fet:r.fet,let:r.let,vet:r.vet,det:r.det}),Nd(e.tc(s),u)}),Jmt:o.Jmt,$mt:o.$mt,rE:o.rE,width:o.width,height:o.height,Tet:o.Tet,tpt:o.tpt,Iet:o.Iet,hwt:o.hwt,cwt:o.cwt,_E:o._E,gE:o.gE})):void 0,wmt:e.wmt?{ymt:(s=e.wmt).ymt,qwt:s.qwt,pw:s.pw,cct:s.cct,kmt:s.kmt,mmt:s.mmt,pmt:s.pmt.map(Nu),Tw:[]}:void 0,vet:e.vet?e.vet.map(Nh):e.vet,Amt:e.Amt.nm()}}function Nu(e){return{Mb:e.Mb,aS:{SJ:e.aS.SJ,eet:e.aS.kQ.nm()},IW:e.IW}}function Na(e){return{Mb:e.Mb,aS:{SJ:e.aS.SJ,kQ:lq(e.aS.eet)},IW:e.IW}}function Nh(e){return{kQ:e.kQ.nm(),EE:e.EE,fQ:e.fQ,cQ:e.cQ,Ua:e.Ua,Art:e.Art,vQ:e.vQ,dQ:e.dQ}}function Nc(e){return{kQ:lq(e.kQ),EE:e.EE,fQ:e.fQ,cQ:e.cQ,Ua:e.Ua,Art:e.Art,vQ:e.vQ,dQ:e.dQ}}function Nf(e){return{ymt:e.ymt,IW:[],bmt:e.bmt,Tmt:e.Tmt,duration:e.duration,Emt:e.Emt,Smt:e.Smt.nm(),tet:e.tet,Imt:e.Imt.nm(),Rmt:e.Rmt,Nmt:e.Nmt.nm(),Dmt:e.Dmt.nm(),Cmt:e.Cmt.nm(),Pmt:e.Pmt.nm(),Bmt:e.Bmt.nm(),Omt:e.Omt.nm(),Lmt:e.Lmt.nm()}}function Nl(e){return{ymt:e.ymt,IW:[],bmt:e.bmt,Tmt:e.Tmt,duration:e.duration,Emt:e.Emt,Smt:lq(e.Smt),tet:e.tet,Imt:lq(e.Imt),Rmt:e.Rmt,Nmt:lq(e.Nmt),Dmt:lq(e.Dmt),Cmt:lq(e.Cmt),Pmt:lq(e.Pmt),Bmt:lq(e.Bmt),Omt:lq(e.Omt),Lmt:lq(e.Lmt)}}function Np(e){return iD({},Nf(e),{IW:[],bmt:e.bmt,Wmt:e.Wmt,qmt:e.qmt,Gmt:e.Gmt,zmt:e.zmt})}function Nv(e){return iD({},Nl(e),{IW:[],bmt:e.bmt,Wmt:e.Wmt,qmt:e.qmt,Gmt:e.Gmt,zmt:e.zmt})}function Nd(e,r){var s=e.prt();return r.push(s.buffer),{jmt:s,Ymt:e.Zg,Qmt:e.aS}}function Ny(e){var r=new R_;return r.lrt(e.jmt,0,e.Ymt),r.aS=e.Qmt,r}function Ng(e){return iD({},{SJ:e.SJ,eet:e.eet.nm()},{uet:e.uet.nm(),oet:e.oet.nm()})}function Nm(e){return iD({},{SJ:e.SJ,eet:lq(e.eet)},{uet:lq(e.uet),oet:lq(e.oet)})}function Nw(e){var r=e.video,s=r&&r.IW;if(!r)return 0;if(!s)return NaN;for(var o=0;o<s.length;o+=1)if(s[o].aS.fet)return o;return NaN}function Nb(e){if(!e)return null;switch(e.bmt){case I7.ipt:return e.rE?"avc1."+(e.Tet<16?"0":"")+((e.Tet<<16)+(e.tpt<<8)+e.Iet).toString(16):null;case I7.Qct:return"mp4a.40.34";case I7.Yct:return e.Hmt?"mp4a.40.5":"mp4a.40.2";case I7.Mmt:return"mp4a.40.5";default:return null}}function Nk(e,r){var s=e.info,o=s.ivt,u=e.npt,a=o.sgt(e.info.nat-1),h=u.audio||void 0,c=u.video||void 0,f=h&&Nb(h),l=c&&Nb(c),p=(!h||f)&&(!c||l)?{Ust:f,Fst:l}:null,v=h&&!A(h.Rmt)?h.Rmt:null,d=c&&!A(c.Rmt)?c.Rmt:null,y=pY(h&&h.Dmt,c&&c.Dmt),g=pY(h&&h.Cmt,c&&c.Cmt),m=p$(h&&h.Omt,c&&c.Omt),w=p$(h&&h.Lmt,c&&c.Lmt),k=c&&c.Smt.Wy(lW.Wk(c.duration)),E=h&&h.Smt.Wy(lW.Wk(h.duration)),x=PK(a),T=x&&a.width||o.resolution&&o.resolution.width,C=x&&a.width||o.resolution&&o.resolution.height;e.metadata={start:b.max(null===v?d||0:null===d?v:b.min(v,d),0),rpt:s,duration:k&&E?lW.Mk(k,E).Dy():(k||E||lW.Jy).Dy(),ept:y,upt:g,spt:m,opt:w,audio:{start:b.max(0,v||0),duration:h&&h.Emt||0,bmt:f,a$:h&&h.tet,ept:h&&h.Dmt,upt:h&&h.Cmt,spt:h&&h.Omt,opt:h&&h.Lmt},video:{start:b.max(0,d||0),duration:c&&c.Emt||0,bmt:l,a$:c&&c.tet,ept:c&&c.Dmt,upt:c&&c.Cmt,spt:c&&c.Omt,opt:c&&c.Lmt},cF:c?{width:c.width||T,height:c.height||C}:null,nat:s.nat,size:r,quality:o,e$:p,apt:s.apt,hpt:s.hpt}}function NE(e,r){var s,o,u,a,h={start:0,duration:0,bmt:null,a$:null,ept:null,upt:null,spt:null,opt:null};return"Ust"===r?(o=h,u=s=iD({},h,e.video),a=e.cF):(o=s=iD({},h,e.audio),u=h,a=null),{start:s.start,rpt:e.rpt,duration:s.duration,ept:s.ept,upt:s.upt,
1spt:s.spt,opt:s.opt,audio:o,video:u,cF:a,nat:e.nat,size:e.size,quality:e.quality,e$:e.e$,apt:e.apt,hpt:e.hpt}}function NA(e,r){return e+"cpt"+r.nat+"fpt"+r.uri}(I8=I6||(I6={})).lmt=-1,I8.vpt=-2,(NM=I7||(I7={})).ipt="h.264",NM.Qct="mp3",NM.Yct="aac-lc",NM.Mmt="he-aac",(NF=I9||(I9={})).dpt="Ght",NF.lpt="aft",(Nj=Nt||(Nt={}))._pt="gpt",Nj.B_t="wpt",(NH=Ne||(Ne={})).ypt="Aft",NH.lpt="aft",(NB=Nn||(Nn={})).kpt="mpt",NB.ppt="Apt";var Nx=function(e){function r(r){var s;return(s=e.call(this)||this).ef=void 0,s.bpt=iM(),s.Tpt=void 0,s.Ept=void 0,s.Spt=function(e){var r=e.data,o=r.Ipt;if(s.bpt.get(o))switch(r.Rpt){case Nt._pt:var u=r.Npt;s.Dpt(o,u);break;case Nt.B_t:var a=r.Cpt;s.Ppt(o,new PH(Pj.N_t,{code:a}))}},s.Bpt=function(e){var r,o,u,a=e.data,h=a.Opt;if(s.bpt.get(h))switch(a.Lpt){case Nn.kpt:var c=a.Mpt;s.xpt(h,{audio:c.audio?function(e){switch(e.bmt){case I7.Yct:case I7.Mmt:return iD({},Nv(e),{bmt:e.bmt,IW:e.IW.map(function(e){var r,s,o;return r=(s=Ny(e)).aS,o=iD({},iD({},Nm(r)),{xmt:r.xmt,Umt:r.Umt,Fmt:r.Fmt}),s.tc(o)}),_wt:e._wt,Hmt:e.Hmt});case I7.Qct:return iD({},Nv(e),{bmt:e.bmt,IW:e.IW.map(function(e){var r,s,o;return r=(s=Ny(e)).aS,o=iD({},iD({},Nm(r)),{Xb:r.Xb,gT:r.gT,Xmt:r.Xmt,zct:r.zct,Vmt:r.Vmt}),s.tc(o)})})}}(c.audio):void 0,video:c.video?(u=Nl(o=c.video),iD({},u,{bmt:o.bmt,IW:o.IW.map(function(e){var r,s,o;return s=Ny(e),o=iD({},Nm(r=s.aS),{ly:r.ly,aet:lq(r.aet),het:r.het,cet:r.cet,Zmt:r.Zmt&&lq(r.Zmt),Kmt:r.Kmt&&lq(r.Kmt),fet:r.fet,let:r.let,vet:r.vet,det:r.det}),s.tc(o)}),Jmt:o.Jmt,$mt:o.$mt,rE:o.rE,width:o.width,height:o.height,Tet:o.Tet,tpt:o.tpt,Iet:o.Iet,hwt:o.hwt,cwt:o.cwt,_E:o._E,gE:o.gE})):void 0,wmt:c.wmt?{ymt:(r=c.wmt).ymt,qwt:r.qwt,pw:r.pw,cct:r.cct,kmt:r.kmt,mmt:r.mmt,pmt:r.pmt.map(Na),Tw:[]}:void 0,vet:c.vet?c.vet.map(Nc):c.vet,Amt:lq(c.Amt)});break;case Nn.ppt:var f=a.Upt;s.Ppt(h,new PH(Pj.N_t,{code:f}))}},s.Fpt=function(e){if("PLAYER_INCORRECTLY_CONFIGURED"===e.message){var r={type:"Lh",Lh:new PH(Pj.x_t,{code:"THEOplayer workers could not be loaded. Please check the configuration of the libraryLocation"})};tk(r.Lh.info.code),s.dispatchEvent(r)}},s.ef=r,s.Ept=s.Hpt(),s}j(r,e);var s=r.prototype;return s.hh=function(e){var r=[];this.bpt.forEach(function(s,o){e&&s._T!==e||r.push(o)}),this.Xpt(r)},s.Xpt=function(e){for(var r=0;r<e.length;r++){var s=e[r];this.bpt.delete(s)}if(e.length){if(this.Tpt){var o={Vpt:I9.lpt,Wpt:e};this.Tpt.postMessage(o)}if(this.Ept){var u={qpt:Ne.lpt,Gpt:e};this.Ept.postMessage(u)}}},s.Ppt=function(e,r){var s=this.bpt.get(e);if(s){var o=s.lL;this.bpt.delete(e),o(r)}},s.zpt=function(e,r,s,o){this.Tpt||(this.Tpt=this.jpt());var u={Vpt:I9.dpt,Ypt:e,Qpt:r,Zpt:s,Kpt:o};this.Tpt.postMessage(u)},s.Jpt=function(e,r){this.Ept||(this.Ept=this.Hpt());var s={qpt:Ne.ypt,$pt:e,tAt:r,nAt:this.bpt.get(e).iAt};this.Ept.postMessage(s)},s.Dpt=function(e,r){this.Jpt(e,r)},s.jpt=function(){var e=IN(this.ef.libraryLocation,"theoplayer.d.js");return e.addEventListener("message",this.Spt),e.addEventListener("error",this.Fpt),e},s.rAt=function(e){var r=e.npt.video,s=r&&r.IW&&r.IW[0];s&&s.aS.fet},s.xpt=function(e,r){var s,o,u=this.bpt.get(e),a=u.lL,h=u.eAt,c={npt:r,info:u.uAt,metadata:null};this.rAt(c),s=c.info.ivt.sgt(c.info.nat-1),o=c.npt,c.info.hpt=c.info.ogt,s&&(o.audio||o.video?o.video&&!o.video.$mt&&!o.video.Jmt&&o.video.tet&&s.pwt&&o.video.tet!==s.pwt?c.info.hpt=!0:o.video&&(o.video.height&&s.height&&o.video.height!==s.height||o.video.width&&s.width&&o.video.width!==s.width)&&(c.info.hpt=!0):c.info.hpt=!0),Nk(c,h),function(e){var r=e.info,s=r.ivt,o=e.metadata,u=e.npt;if(r.sAt=lW.Wk(o.duration),r.hgt=u.audio&&u.audio.Smt.Wy(lW.Wk(u.audio.duration))||lW.Jy,r.cgt=u.video&&u.video.Smt.Wy(lW.Wk(u.video.duration))||lW.Jy,r.oAt=u.audio&&u.audio.Smt||lW.Jy,r.aAt=u.video&&u.video.Smt||lW.Jy,r.hAt=o.audio.ept,r.cAt=o.audio.upt,r.fAt=o.video.ept,r.vAt=o.video.upt,r.agt=o.ept,r.dAt=o.upt,r.lAt=o.audio.spt,r._At=o.audio.opt,r.gAt=o.video.spt,r.wAt=o.video.opt,r.spt=o.spt,r.opt=o.opt,u.video){var a=Nw(e.npt),h=u.video.IW&&u.video.IW[a];h?(r.dmt=a,r.gmt=h.aS.uet,r.yAt=h.aS.oet):r.dmt=I6.vpt}else r.dmt=I6.lmt;r.pwt=u.video&&u.video.tet||0,r.width=u.video&&u.video.width||0,r.height=u.video&&u.video.height||0,s.dispatchEvent({type:"Dwt",uAt:e.info}),!s.resolution&&o.cF&&(s.resolution=o.cF),s.bandwidth||(s.bandwidth=8*o.size/o.duration),!o.e$||s.e$&&!s.e$.Ust==!o.e$.Ust&&!s.e$.Fst==!o.e$.Fst||s.wwt(o.e$),u.audio&&void 0!==u.audio._wt&&(s._wt=u.audio._wt),s.hwt=u.video&&u.video.hwt||s.hwt,s.cwt=u.video&&u.video.cwt||s.cwt,s.fwt=u.audio&&u.audio.ymt||void 0,s.vwt=u.video&&u.video.ymt||void 0,s.dwt=u.audio&&u.audio.bmt||void 0,s.lwt=u.video&&u.video.bmt||void 0,s.gwt=u.audio&&u.audio.tet||void 0,s.pwt=u.video&&u.video.tet||void 0}(c),this.bpt.delete(e),a(null,c)},s.Hpt=function(){var e=IN(this.ef.libraryLocation,"theoplayer.e.js");return e.addEventListener("message",this.Bpt),e.addEventListener("error",this.Fpt),e},s.kAt=function(e,r,s,o){var u=this;e.getKey(o).then(function(e){var a=s;s=void 0,u.bpt.has(r)&&u.zpt(r,a,e,o.iv)}).catch(function(e){s=void 0,u.bpt.has(r)&&u.Ppt(r,e)})},s.mAt=function(e,r,s,o,u,a){var h=NA(e,o),c=o.ivt;this.bpt.set(h,{_T:e,uAt:o,iAt:{pAt:o.duration,e$:c.e$,hwt:c.hwt,cwt:c.cwt,fwt:c.fwt,vwt:c.vwt,dwt:c.dwt,lwt:c.lwt,_wt:!this.ef.skipImplicitHEAACDetection&&c._wt,L0:u},eAt:s.length,lL:a}),o.key?this.kAt(r,h,s,o.key):this.Jpt(h,s)},s.AAt=function(e){var r=[];return this.bpt.forEach(function(s){s._T===e&&r.push(s.uAt)}),r},s.bAt=function(e,r){var s=NA(e,r);return this.bpt.has(s)},s.Kl=function(){this.hh(),this.Tpt&&(this.Tpt.terminate(),this.Tpt=void 0),this.Ept&&(this.Ept.terminate(),this.Ept=void 0)},r}(PD);
1function NT(e){return e.ivt.hw+"TAt"+e.nat}function NC(e){return!(!e||!e.npt)}var NS=function(){function e(e,r,s){this.EAt=void 0,this.rS=void 0,this.SAt=[],this.IAt=iM(),this.RAt=1,this.NAt=void 0,this.rS=e,this.EAt=r,this.NAt=s}var r=e.prototype;return r.DAt=function(e){var r=NT(e.info);if(this.IAt.has(r))this.CAt(e.info,e);else{this.SAt.push(r),this.IAt.set(r,e);for(var s=this.EAt.PAt+10;this.SAt.length>8*this.BAt&&this.OAt>s*this.BAt;){var o=this.IAt.get(this.SAt[0]),u=this.NAt.LAt,a=null==o?void 0:o.info;if(a){var h=a.start,c=h+a.duration,f=new mo([h,c]),l=u+this.EAt.PAt;if(new mo([u,l]).UC(f).Zg>0)break}this.IAt.delete(this.SAt.shift())}}},r.MAt=function(e,r){var s=e+"TAt"+r,o=this.IAt.get(s),u=this.SAt.indexOf(s);return!(!o||-1===u)&&(rf(this.SAt,u),this.IAt.delete(s),!0)},r.Yh=function(){this.SAt.length=0,this.IAt.clear()},r.xAt=function(){for(var e={},r=0,s=this.SAt;r<s.length;r++){var o=s[r],u=this.IAt.get(o);NC(u)&&(e[u.info.ivt.hw]=(e[u.info.ivt.hw]||0)+1)}return e},r.UAt=function(e,r){var s=[],o=this.FAt(e,r);if(!NC(o))return s;do s.push(o),r+=1,o=this.FAt(e,r);while(NC(o));return s},r.HAt=function(e,r){return!!this.FAt(e,r)},r.XAt=function(e,r){return NC(this.FAt(e,r))},r.FAt=function(e,r){return this.IAt.get(e+"TAt"+r)},r.CAt=function(e,r){var s=NT(e),o=this.SAt.indexOf(s);return -1!==o&&(rf(this.SAt,o),this.SAt.push(s),r&&this.IAt.set(s,r),!0)},r.VAt=function(){for(var e=[],r=0,s=this.SAt;r<s.length;r++){var o=s[r],u=this.IAt.get(o);e.push(u.info)}return e},r.WAt=function(){for(var e=[],r=0,s=this.SAt;r<s.length;r++){var o=s[r],u=this.IAt.get(o);u&&NC(u)&&e.push(u.info)}return e},M(e,[{key:"OAt",get:function(){for(var e=Ns(this.rS,this.VAt()),r=0,s=0;s<e.length;s++)r+=e.end(s)-e.start(s);return r}},{key:"BAt",get:function(){return this.RAt},set:function(e){e>0&&(this.RAt=b.max(e,1))}}]),e}(),NR=Q.Ou?function(e,r){return pq(e.uet,r.uet)}:function(e,r){return pq(e.oet,r.oet)};function NL(e,r,s){var o=r[0].aS.eet,u=e[e.length-1].aS.eet,a=o.Vy(u),h=pq(o,u).Vy(a);if(!h.hk())for(var c=0;c<r.length;c++)s(r[c].aS,h)}function N_(e,r){e.oet=e.oet.Wy(r),e.uet=e.uet.Wy(r),e.eet=e.eet.Wy(r)}function NP(e,r){N_(e,r),e.aet=e.aet.Wy(r),e.Kmt=NI(e.Kmt,r),e.Zmt=NI(e.Zmt,r)}function NI(e,r){if(e)return e.Wy(r)}function NN(e,r){return r.Wy(pq(e,r))}function NO(e,r){var s={audio:void 0,video:void 0,Amt:e.Amt};if("video"===r){if(!e.audio)return s;s.audio={bmt:e.audio.bmt,tet:e.audio.tet,Imt:e.audio.Imt,duration:e.audio.duration,Emt:e.audio.Emt,Smt:lW.Jy,Rmt:e.audio.Rmt,Nmt:e.audio.Nmt,Dmt:e.audio.Dmt,Cmt:e.audio.Cmt,Pmt:e.audio.Pmt,Bmt:e.audio.Bmt,Omt:e.audio.Omt,Lmt:e.audio.Lmt,IW:e.audio.IW,zmt:e.audio.zmt,Gmt:e.audio.Gmt,Tmt:e.audio.Tmt,Wmt:e.audio.Wmt,qmt:e.audio.qmt}}if("audio"===r){if(!e.video)return s;s.video={bmt:e.video.bmt,Tet:e.video.Tet,Iet:e.video.Iet,tpt:e.video.tpt,tet:e.video.tet,Imt:e.video.Imt,Jmt:e.video.Jmt,$mt:e.video.$mt,width:e.video.width,height:e.video.height,hwt:e.video.hwt,cwt:e.video.cwt,_E:e.video._E,gE:e.video.gE,rE:e.video.rE,duration:e.video.duration,Emt:e.video.Emt,Smt:lW.Jy,Rmt:e.video.Rmt,Nmt:e.video.Nmt,Dmt:e.video.Dmt,Cmt:e.video.Cmt,Pmt:e.video.Pmt,Bmt:e.video.Bmt,Omt:e.video.Omt,Lmt:e.video.Lmt,IW:e.video.IW,Tmt:e.video.Tmt}}return s}function ND(e){return NO(e,"audio")}function NU(e){return NO(e,"video")}var NM,NF,Nj,NH,NB,NV,NX,NW,Nq=function(){function e(e,r){var s=this;this.qAt=void 0,this.El=void 0,this.kkt=void 0,this.GAt=!1,this.zAt=0,this.jAt=0,this.YAt=function(){return s.QAt()},this.qAt=e,this.El=r,this.kkt=r.kkt,this.kkt.addEventListener("Ec",this.YAt)}return e.prototype.QAt=function(){var e=this.kkt.Bkt,r=1e3*this.kkt.Mkt,s=1e3*this.kkt.gm;this.kkt.skt&&(this.GAt||(this.qAt.ZAt(s),this.GAt=!0),r>this.jAt&&(this.qAt.KAt(r-this.jAt,e-this.zAt),this.zAt=e,this.jAt=r))},e}(),NY=function(){function e(){this.JAt=void 0,this.$At=void 0,this.JAt=new SS,this.$At=new SR}var r=e.prototype;return r.tbt=function(e){new Nq(this,e)},r.KAt=function(e,r){this.JAt.Y7(e,r)},r.ZAt=function(e){this.$At.Y7(e)},r.Kl=function(){},M(e,[{key:"nbt",get:function(){return this.$At.Q7()/1e3}},{key:"N5",get:function(){return this.JAt.Q7()}}]),e}(),N$=function(){function e(){this.ibt=iM()}
1var r=e.prototype;return r.rbt=function(e,r){var s,o=this.ibt.get(e);return!!(o&&(ti(s=o.h0)?s===r:s.h0===r.h0&&s.MJ.bC===r.MJ.bC&&s.MJ.EC===r.MJ.EC))},r.ebt=function(e,r){if(this.rbt(e,r))return this.ibt.get(e).Fs},r.ubt=function(e,r,s){this.ibt.set(e,{h0:r,Fs:s})},r.Yh=function(){this.ibt.clear()},e}();(Os=NV||(NV={}))[Os.sbt=0]="sbt",Os[Os.obt=5]="obt",Os[Os.abt=13]="abt",Os[Os.hbt=14]="hbt",Os[Os.cbt=15]="cbt",(Oo=NX||(NX={}))[Oo.fbt=0]="fbt",Oo[Oo.vbt=1]="vbt",Oo[Oo.dbt=2]="dbt",Oo[Oo.lbt=11]="lbt",Oo[Oo._bt=13]="_bt",Oo[Oo.gbt=14]="gbt",(Ou=NW||(NW={}))[Ou.wbt=0]="wbt",Ou[Ou.ybt=1]="ybt",Ou[Ou.kbt=2]="kbt",Ou[Ou.mbt=3]="mbt",Ou[Ou.pbt=4]="pbt",Ou[Ou.Abt=5]="Abt",Ou[Ou.bbt=6]="bbt",Ou[Ou.Tbt=7]="Tbt";var NJ=lW.Wk(.04),NQ=function(e){function r(r,s,o,u){var a;return(a=e.call(this)||this).EAt=void 0,a.ef=void 0,a.Sbt=void 0,a.ES=void 0,a.Ibt=void 0,a.Rbt=void 0,a.Nbt=void 0,a.Dbt=iM(),a.Cbt=void 0,a.Pbt=iM(),a.Bbt=1,a.ef=r,a.Sbt=s,a.ES=o,a.Ibt=new N$,a.EAt=u,a.Rbt=new Ik(o,r),a.Nbt=new NY,a.Cbt=new Nx(r),a.Cbt.addEventListener("Lh",function(e){a.dispatchEvent(e)}),a}j(r,e);var s,o=r.prototype;return o.Obt=function(e){this.Cbt.hh(e),this.Rbt.Yh(!1,e)},o.Yh=function(e){this.Obt(e),e?this.Dbt.get(e).Yh():this.Dbt.forEach(function(e){return e.Yh()})},o.Kl=function(){this.Th(),this.Rbt.Yh(),this.Dbt.forEach(function(e){return e.Yh()}),this.Dbt.clear(),this.Cbt.Kl()},o.Gg=function(e,r,s){if(!this.Dbt.has(e)){var o=new NS(r,this.EAt,s);o.BAt=this.BAt,this.Dbt.set(e,o)}},s=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.Ibt.rbt(s,o)){e.next=2;break}return e.abrupt("return",this.Ibt.ebt(s,o));case 2:return e.next=4,this.Mbt(r,o);case 4:return u=e.sent,this.Ibt.ubt(s,o,u),e.abrupt("return",u);case 7:case"end":return e.stop()}},e,this)})),o.Lbt=function(e,r,o){return s.apply(this,arguments)},o.Mbt=function(e,r){var s=this;return new P(function(o,u){s.Rbt.bc(e,r,up.Iv,function(e,r){e&&u(e),o(new x(r.c_))})})},o.xbt=function(e,r,s,o){var u=this.Dbt.get(e),a=u.FAt(r.ivt.hw,r.nat);if(u.XAt(r.ivt.hw,r.nat))u.CAt(r),this.dispatchEvent({type:"Ubt",_T:e,Fbt:a});else{if(!a)return this.Hbt(e,r,s,o);u.CAt(r),this.Xbt(e,r,s,a.Vbt)}return o&&o(),null},o.Hbt=function(e,r,s,o){var u=this,a=this.Dbt.get(e),h=e+"Wbt"+r.nat+"fpt"+r.uri;if(this.Pbt.has(h))return null;this.Pbt.set(h,!0);var c=this.Rbt.bc(e,r.uri,up.Iv,function(f,l){return u.Pbt.delete(h),f?o&&o(f):(u.dispatchEvent({type:"qbt",_T:e}),a.XAt(r.ivt.hw,r.nat)||a.DAt({info:r,Vbt:c.c_}),u.xbt(e,r,s),o&&o(f,l))});return this.Nbt.tbt(c),c},o.Xbt=function(e,r,s,o){var u=this,a=this.Dbt.get(e);this.Cbt.bAt(e,r)||(r&&r.key&&this.Sbt.getKey(r.key).catch(I),this.Cbt.mAt(e,this.Sbt,o,r,s,function(r,s){if(r)return u.dispatchEvent({type:"Lh",Lh:r});a.DAt(s),u.dispatchEvent({type:"Ubt",_T:e,Fbt:s})}))},o.Gbt=function(e,r,s){var o=s.length,u="Ust"===e?NK:Nz;if(!NG(r,s))return null;if(o<=1)return s;for(var a=1;a<o;a+=1){var h=s[a],c=s[a-1];if(h.metadata.hpt&&("zbt"===this.ef.jbt||u(h,c))){var f=s.splice(0,a);return NG(r,f)?f:this.Gbt(e,r,s)}}return s},o.Ybt=function(e,r,s,o){for(var u=this.Dbt.get(e).WAt(),a=o.Qbt,h=0;h<s.length;h++){var c=function(e){var o=s[e],h=Ns(r,u.filter(function(e){return e.ivt===o})),c=h.rmt(a.Dy(),NJ.Dy());if(c>=0&&lW.Wk(h.end(c)).Vy(a).By(NJ))return{v:!0}}(h);if("object"==typeof c)return c.v}return!1},o.Zbt=function(e,r,s,o,u){if(!Q.Du||u.Kbt||this.Ybt(e,r,s,u))return!0;var a=lW.Lk(o,u.Jbt);return u.Qbt.Vy(a).By(lW.Wk(2))},o.$bt=function(e,r,s,o,u,a,h,c){var f,l,p,v,d,y=r.UAt(u.hw,a),g=this.Gbt(e,a,y);if(!g||0===g.length)return null;var m,w=g[0],b=o.fmt(w.info),k=N9(e,o,w);if("Fst"!==e||(f=k,s&&s.bT.ivt===u&&f.By(lW.Wk(s.EC))&&f.Ly(lW.Wk(s.EC).Wy(NJ)))||(w.npt.video&&(w=(g=N3(g,function(e,r,s,o){for(var u=0,a=0,h=0;h<e.length;h+=1)for(var c=e[h],f=function(e){if(!e.npt.video)return[];for(var r=[],s=0;s<e.npt.video.IW.length;s++){var o=e.npt.video.IW[s].aS;o.fet&&r.push({UJ:s,Ebt:o.uet})}return r}(c),l=0;l<f.length;l++){var p=f[l];if(r._mt(c.info,p.Ebt).Cy(s.Vy(o)))return{nTt:u,iTt:a};u=h,a=p.UJ}return{nTt:u,iTt:a}}(g,o,h,c)))[0]),k=N9(e,o,w),d=(v=(p=(l=w.npt.video)&&l.IW)&&p[0])&&v.aS.fet,!l||d))return{egt:g,tTt:lW.Mk(b,k)};var E=function(e){for(var r=0;r<e.length;r++){var s=Nw(e[r].npt);if(!A(s))return{nTt:r,iTt:s}}return null}(g),x=lW.Lk(h,N8(e,o,u.sgt(a)));
1if(w.info.nat===a){if(E&&(k=N9(e,o,(m=N3(g,E))[0]),x.Vy(k).By(c)))return{egt:m,tTt:lW.Mk(b,k)};for(var T=a-1;r.XAt(u.hw,T);){var C=r.UAt(u.hw,T);if((w=(m=this.Gbt(e,a,C))&&m[0]&&N2(m[0],function(e){var r=e.npt.video,s=r&&r.IW;if(!r)return 0;if(!s)return NaN;for(var o=s.length-1;o>=0;o-=1)if(s[o].aS.fet)return o;return NaN}(m[0])))&&(k=N9(e,o,w),x.Vy(k).By(c)))return m[0]=w,{egt:m,tTt:lW.Mk(b,k)};T-=1}}return!function(e){if(e.ogt)return!1;var r=e.ivt;return(!r.ugt||!r.ugt.live)&&!!r.sgt(e.nat-1)}(g[0].info)&&E?{egt:g=N3(g,E),tTt:b}:null},o.rTt=function(e,r,s,o,u,a,h,c,f,l,p){var v=a.eTt(c,f,r),d=v&&v.bT;if(!d)return null;var y=d.nat;do{var g=y,m=c.sgt(g),w=N8(r,a,m);if(!(function(e,r,s){if(PK(s)){var o="Ust"===e?s.lAt:s.gAt;return pB(o)||(o=s.agt),r._mt(s,o)}return s&&r.fmt(s).Wy("Ust"===e?PK(s)?s.hgt||lW.Jy:s&&lW.Wk(s.duration)||lW.Jy:PK(s)?s.cgt||lW.Jy:s&&lW.Wk(s.duration)||lW.Jy)})(r,a,m).Uy(f)||m.apt){if(w.Wy(NJ).Cy(l))break;lW.Lk(lW.Jy,f.Vy(w)).Uy(p)&&s.XAt(c.hw,g-1)&&s.XAt(c.hw,g)&&(s.FAt(c.hw,g).metadata.hpt||(g-=1));var b=this.uTt(e,r,s,o,u,a,h,c,g,f,p);if(b&&(function(e,r,s){var o=lW.Lk(r,e.Jbt),u=lW.Mk(s,e.Qbt),a=NJ;return Q.bu&&(o.Ly(e.Jbt)?a=a.Wy(e.Jbt).Vy(e.sTt):u.By(e.Qbt)&&(a=a.Wy(e.Qbt).Vy(e.oTt))),u.Vy(o).By(a)}(b,f,l)||b.Kbt))return b}}while(s.XAt(c.hw,++y));return null},o.uTt=function(e,r,s,o,u,a,h,c,f,l,p){var v,d,y,g,m,w=c.sgt(f),k=this.$bt(r,s,o,a,c,f,l,p),E=k&&k.egt,A=k&&k.tTt,x=E&&E[E.length-1],T=x&&x.metadata.apt;if(!(E=(v=E)&&v.length?v.map("Ust"===r?NZ:N0).filter(N1):v)||!E.length){if(T){var C=[],S=a.fmt(x.info);return C.oX=S,C.sTt=S,C.Jbt=S,C.oTt=S,C.Qbt=S,C.Kbt=T,C}return null}var R=E="Fst"===r?(y=(d=E)[0].npt.video,d[0].info.ogt?function(e,r,s,o){var u=rh(o.IW,function(e){return e.aS.fet});if(u<0)return s;var a=o.IW[u].aS,h=r._mt(s[0].info,a.uet),c=Ot(e,h);if(c.qy())return s;var f=h.Vy(c).xk(9e4,lH.tm);if(f.Ly(lW.Jy))return s;var l=Oi(o.IW.slice(u),f);return s[0]=N4(s[0],l),s}(u,a,d,y):function(e,r,s,o){var u=o.Imt.Ek(5),a=o.IW[0].aS,h=r._mt(s[0].info,a.oet),c=Oe(e,h,u);if(c.qy())return s;var f=h.Vy(c).xk(9e4,lH.tm);if(f.Ly(lW.Jy)||f.Cy(u))return s;var l=Oi(o.IW,f);return s[0]=N4(s[0],l),s}(u,a,d,y)):function(e,r,s){if((null==(o=s[0].npt.audio)?void 0:o.bmt)===I7.Qct)return s;var o,u=s[0].npt.audio,a=u.IW[0].aS;return s[0].info.ogt?function(e,r,s,o,u){var a=r._mt(s[0].info,u.uet),h=Ot(e,a);if(h.qy())return s;var c=a.Vy(h).Dy(),f=b.floor(c/o.Imt.Dy());if(f<=0)return s;var l=On(o,f);return s[0]=N5(s[0],l),s}(e,r,s,u,a):function(e,r,s,o,u){var a=r._mt(s[0].info,u.oet),h=Oe(e,a,o.Imt.Ek(5));if(h.qy())return s;var c=a.Vy(h).Dy(),f=b.round(c/o.Imt.Dy());if(0===f||b.abs(f)>5)return s;var l=On(o,f);return s[0]=N5(s[0],l),s}(e,r,s,u,a)}(u,a,E),L=R[0];if(w.nat<L.info.nat&&(A=a.fmt(w)),R.oX=A,R.sTt=a._mt(L.info,N7(r,L).upt),R.Jbt=N9(r,a,L),g=R[R.length-1],R.oTt=a._mt(g.info,N7(r,g).opt),m=R[R.length-1],R.Qbt=a._mt(m.info,N7(r,m).spt),R.Kbt=T,!this.Zbt(e,a,h,l,R))return null;var _=L.npt.video;return!_||(_.hwt=_.hwt||c.hwt,_.cwt=_.cwt||c.cwt,_.hwt&&_.cwt)?R:null},o.aTt=function(e,r,s,o,u,a,h,c,f,l){for(var p=null,v=h.length-1;v>=0;v-=1){var d=h[v],y=this.rTt(e,r,s,o,u,a,h,d,c,f,l);y&&(p&&!y.Jbt.Uy(p.Jbt)||(p=y))}return p},o.hTt=function(e,r,s,o,u,a,h,c,f){for(var l=lW.Wk(h),p=lW.Wk(c),v=lW.Wk(f),d=this.Dbt.get(e),y=new IM([{bC:l.Dy(),EC:l.Wy(p).Dy()}]),g=u.UC(y),m=function(e){if(0===e.length)return null;var r=e.egt(e.length-1),s=r[r.length-1];return s.bT.C0?s:null}(u),w=IB(IV(g),y),b=0;b<w.length;b++){var k=lW.Wk(w.start(b)),E=lW.Wk(w.end(b)),A=function(e,r,s){for(var o=0;o<e.length-1;o++){var u=e.egt(o),a=e.egt(o+1);if(u.length&&a.length&&lW.Wk(u[0].bC).Ly(r)&&lW.Wk(a[a.length-1].EC).By(s)&&a[0].bT.egt[0].nc.rpt.ogt)return NJ.Ek(5)}return e.kp(r.Dy())?NJ:lW.Jy}(g,k,E),x=k.Wy(A).xk(9e4,lH.tm),T=E.xk(9e4,lH.tm);if(x.Uy(T)){if(m&&x.By(lW.Wk(m.EC)))continue;var C=this.aTt(e,r,d,a,u,s,o,x,T,v);if(C)return C}}return null},o.WAt=function(e){return this.Dbt.get(e).WAt()},o.AAt=function(e){return this.Cbt.AAt(e)},M(r,[{key:"BAt",get:function(){return this.Bbt},set:function(e){e>0&&(this.Bbt=e,this.Dbt.forEach(function(r){return r.BAt=e}))}},{key:"nbt",get:function(){return this.Nbt.nbt}},{key:"N5",get:function(){return this.Nbt.N5}}]),r}(PD);function NG(e,r){for(var s=0;s<r.length;s++)if(r[s].info.nat===e)return!0;return!1}function NK(e,r){return e.metadata.audio.bmt!==r.metadata.audio.bmt||e.metadata.audio.a$!==r.metadata.audio.a$||!(!e.npt.audio||!r.npt.audio||e.npt.audio.Gmt===r.npt.audio.Gmt)||!pX(e.metadata.audio.ept,e.metadata.audio.upt).xy(pX(r.metadata.audio.spt,r.metadata.audio.opt))}function Nz(e,r){return e.metadata.video.bmt!==r.metadata.video.bmt||!(!e.metadata.cF||!r.metadata.cF||e.metadata.cF.height===r.metadata.cF.height&&e.metadata.cF.width===r.metadata.cF.width)||!(!r.npt.video||r.npt.video.$mt||e.metadata.video.a$===r.metadata.video.a$)||pX(e.metadata.video.ept,e.metadata.video.upt)!==pX(r.metadata.video.spt,r.metadata.video.opt)}function NZ(e){return e.npt.video&&(e={npt:NU(e.npt),info:e.info,metadata:NE(e.metadata,"Fst")}),e}function N0(e){return e.npt.audio&&(e={npt:ND(e.npt),info:e.info,metadata:NE(e.metadata,"Ust")}),e}function N1(e){return!!(e&&(e.npt.audio||e.npt.video))}function N2(e,r){return A(r)?null:0===r?e:N4(e,e.npt.video.IW.slice(r))}function N3(e,r){return(e=e.slice(r.nTt))[0]=N2(e[0],r.iTt),e}function N5(e,r){var s={info:e.info,npt:{audio:NU(e.npt).audio,video:null,Amt:e.npt.Amt},metadata:null},o=s.npt.audio;return o.IW=r,o.Nmt=r[0].aS.eet,o.Rmt=o.Nmt.Dy(),N6(o,s.npt.Amt,o.Imt),Nk(s,e.metadata.size),s.metadata=NE(s.metadata,"Fst"),s}function N4(e,r){var s={info:e.info,npt:{audio:null,video:ND(e.npt).video,Amt:e.npt.Amt},metadata:null},o=s.npt.video;o.IW=r,o.Nmt=r[0].aS.eet,o.Rmt=o.Nmt.Dy();var u=r[r.length-1].aS.aet;return N6(o,s.npt.Amt,u),Nk(s,e.metadata.size),s.metadata=NE(s.metadata,"Ust"),s}function N6(e,r,s){for(var o=lW.Gk,u=lW.Gk,a=lW.zk,h=lW.zk,c=0,f=e.IW;c<f.length;c++){var l=f[c].aS;o=lW.Mk(l.oet,o),u=lW.Mk(l.uet,u),a=lW.Lk(l.oet,a),h=lW.Lk(l.uet,h)}
1e.Dmt=u,e.Cmt=o,e.Pmt=h,e.Bmt=a,e.Smt=lW.Lk(pq(e.Nmt,r),lW.Jy),e.Omt=pW(e.Pmt,s),e.Lmt=pW(e.Bmt,s),e.Emt=pX(e.Omt,e.Dmt).Dy(),e.duration=e.Emt}function N8(e,r,s){if(PK(s)){var o="Ust"===e?s.hAt:s.fAt;return pB(o)||(o=s.agt),r._mt(s,o)}return s&&r.fmt(s)}function N7(e,r){return"Ust"===e?r.metadata.audio:r.metadata.video}function N9(e,r,s){return r._mt(s.info,N7(e,s).ept)}function Ot(e,r){var s=e.smt(r.Dy());if(-1!==s){var o=lW.Wk(e.end(s));if(r.Vy(o).Ly(lW.Wk(.5)))return o}return lW.qk}function Oe(e,r,s){var o=e.rmt(r.Dy(),s.Dy());if(-1!==o)for(var u=e.egt(o),a=u.length-1;a>=0;a--)for(var h=u[a],c=h.bT.egt.length-1;c>=0;c--){var f=h.bT.egt[c];if(r.Vy(lW.Wk(f.EC)).Fy().Ly(s))return lW.Wk(f.EC);if(r.Vy(lW.Wk(f.bC)).Fy().Ly(s))return lW.Wk(f.bC)}return lW.qk}function On(e,r){var s;if(r<0)s=e.IW.slice(-r);else{var o=new R_,u=function(e,r){if(e)switch(r){case 1:return new x([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);case 2:case 3:return new x([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}else switch(r){case 1:return new x([0,200,0,128,35,128]);case 2:return new x([33,0,73,144,2,25,0,35,128]);case 3:return new x([0,200,0,128,32,132,1,38,64,8,100,0,142]);case 4:return new x([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);case 5:return new x([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);case 6:return new x([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}return null}(e.Hmt,e.Gmt);o.lrt(u,0,u.length),s=e.IW.slice();for(var a=0;a<r;a++){var h=s[0].aS,c=o.tc(iD({},o.aS,{eet:pX(h.eet,e.Imt),SJ:h.SJ-e.Imt.Dy(),oet:pX(h.oet,e.Imt),uet:pX(h.uet,e.Imt)}));s.unshift(c)}}return s}function Oi(e,r){var s=e[0].aS,o=e.slice();return o[0]=e[0].tc(iD({},s,{eet:pX(s.eet,r),SJ:s.SJ-r.Dy(),oet:pX(s.oet,r),cet:s.cet-r.Dy(),uet:pX(s.uet,r),het:s.het-r.Dy(),aet:lW.Lk(lW.Jy,s.aet.Wy(r)),ly:b.max(0,s.ly+r.Dy())})),o}function Or(e){return new Ov(e.$d,e.Fs)}var Os,Oo,Ou,Oa,Oh,Oc,Of,Ol,Op,Ov=function(){function e(e,r){this.$d=void 0,this.cTt=void 0,this.cTt=r,this.$d=e}return e.prototype.fTt=function(e){IA(e)},M(e,[{key:"Fs",get:function(){return this.cTt}},{key:"vTt",get:function(){return IE(Ix(this.cTt,this.$d))}}]),e}(),Od=function(){function e(e,r,s){this.h0=void 0,this.h0="data:"+e+";"+r+","+s}return e.prototype.fTt=function(e){},M(e,[{key:"vTt",get:function(){return this.h0}}]),e}();(Oy=Oa||(Oa={})).Qct="dTt",Oy.Fw="lTt",Oy._Tt="gTt",Oy.wTt="yTt",Oy.kTt="mTt",(Og=Oh||(Oh={})).pTt="ATt",Og.bTt="TTt",(Om=Oc||(Oc={})).ETt="audio/mp4",Om.STt="audio/mpeg",Om.ITt="video/mp4",(Ow=Of||(Of={}))[Ow.RTt=0]="RTt",Ow[Ow.NTt=1]="NTt",Ow[Ow.mw=2]="mw",Ow[Ow.DTt=3]="DTt",(Ob=Ol||(Ol={})).CTt="PTt",Ob.BTt="OTt",(Ok=Op||(Op={})).LTt="zbt",Ok.BTt="MTt";var Oy,Og,Om,Ow,Ob,Ok,OE,OA=function(){function e(e,r,s,o,u,a,h,c,f,l){this.xTt=void 0,this.UTt=void 0,this._T=void 0,this.$d=void 0,this.Fbt=void 0,this.FTt=void 0,this.tS=void 0,this.HTt=void 0,this.XTt=void 0,this.lL=void 0,this.VTt=Of.RTt,this.UTt=e,this.xTt=r,this._T=s,this.$d=o,this.Fbt=u,this.FTt=a,this.tS=h,this.HTt=c,this.XTt=f,this.lL=l}return e.WTt=function(e,r,s,o,u,a,h,c,f,l){switch(r){case Ol.CTt:return new Ox(e,s,o,u,a,h,c,f,l);case Ol.BTt:return new OT(e,s,o,u,a,h,c,f,l)}},e}(),Ox=function(e){function r(r,s,o,u,a,h,c,f,l){return e.call(this,Ol.CTt,r,s,o,u,a,h,c,f,l)||this}return j(r,e),r.prototype.qTt=function(){return{GTt:"zTt",jTt:this.xTt,YTt:Oa.kTt,QTt:Oh.pTt,ZTt:this.$d,KTt:No(this.Fbt,[]),JTt:this.XTt,$Tt:this.HTt.nm(),tEt:this.FTt.nm(),nEt:this.tS.nm()}},r}(OA),OT=function(e){function r(r,s,o,u,a,h,c,f,l){return e.call(this,Ol.BTt,r,s,o,u,a,h,c,f,l)||this}return j(r,e),r.prototype.qTt=function(){return{GTt:"zTt",jTt:this.xTt,YTt:this.$d===Oc.STt?Oa.Qct:Oa.Fw,QTt:gD?Oh.bTt:Oh.pTt,ZTt:this.$d,KTt:No(this.Fbt,[])}},r}(OA),OC=function(){function e(){this.iEt=void 0,this.rEt=void 0,this.iEt=iM(),this.rEt=1}var r=e.prototype;return r.eEt=function(){return(this.rEt++).toString()},r.WTt=function(e,r,s,o,u,a,h,c,f){var l=this.eEt(),p=OA.WTt(l,r,e,s,o,u,a,h,c,f);return this.uEt(p),p},r.sEt=function(e){return this.iEt.get(e)},r.uEt=function(e){this.iEt.set(e.xTt,e)},r.oEt=function(e){this.iEt.delete(e)},r.aEt=function(e){this.sEt(e).VTt=Of.NTt,this.oEt(e)},r.hEt=function(e,r){var s=this.sEt(e).lL;this.sEt(e).VTt=Of.mw,this.oEt(e),s(r)},r.cEt=function(e,r){var s=this.sEt(e).lL;this.sEt(e).VTt=Of.DTt,this.oEt(e),s(null,r)},r.Yh=function(e){var r=[];this.iEt.forEach(function(s,o){e&&s._T!==e||r.push(o)});for(var s=0;s<r.length;s++){var o=r[s];this.aEt(o)}},e}(),OS=function(){function e(r){var s=this;this.iEt=void 0,this.fEt=void 0,this.ef=void 0,this.vEt=void 0,this.dEt=function(e){var r=e.data.lEt,o=e.data._Et,u=e.data.gEt,a=e.data.wEt,h=s.iEt.sEt(o);if(h&&h.VTt!==Of.NTt)switch(r){case"yEt":s.kEt(h,u);break;case"mEt":s.iEt.hEt(o,new PH(Pj.N_t,{code:a}))}},this.pEt=function(e){},this.iEt=new OC,this.ef=r,this.vEt=e.AEt(r.jbt),this.bEt()}e.AEt=function(e){switch(e){case Op.LTt:return Ol.CTt;case Op.BTt:return Ol.BTt}};var r=e.prototype;return r.zTt=function(e,r,s,o,u,a,h){var c={metadata:null,Ust:null,Fst:null,Lh:null};s&&s.length||h(new PH(Pj.N_t,{code:"SP154"}));var f=s[0],l=s[s.length-1],p=f.info.nat+1,v=f.info.ivt,d=f.metadata,y=d.audio.bmt?d.audio:void 0,g=d.video.bmt?d.video:void 0,m=l.metadata,w=m.audio.bmt?m.audio:void 0,k=m.video.bmt?m.video:void 0,E=o.Wy(pq(d.upt,d.ept)),x=o.Wy(pq(d.ept,d.ept)),T=o.Wy(y?pq(y.upt,d.ept):lW.Jy),C=o.Wy(y?pq(y.ept,d.ept):lW.Jy),S=o.Wy(g?pq(g.upt,d.ept):lW.Jy),R=o.Wy(g?pq(g.ept,d.ept):lW.Jy),L=o.Wy(pq(m.opt,d.ept)),_=o.Wy(pq(m.spt,d.ept)),P=o.Wy(w?pq(w.opt,d.ept):lW.Jy),I=o.Wy(w?pq(w.spt,d.ept):lW.Jy),N=o.Wy(k?pq(k.opt,d.ept):lW.Jy),O=o.Wy(k?pq(k.spt,d.ept):lW.Jy);T=lW.Lk(lW.Jy,T),S=lW.Lk(lW.Jy,S);var D,U,M,F,j,H=I4.dm(r.Zot)?lW.Wk(0x174d3b7ba7):lW.Wk(r.ly),B=function(e){for(var r=e[0].npt,s=r,o=1;o<e.length&&(r=function(e,r,s,o){var u,a,h,c=(u=e.audio?e.audio:void 0,a=s.audio?s.audio:void 0,u?a?(u.bmt===a.bmt||!u.bmt||!a.bmt)&&u.tet===a.tet&&u.Imt.xy(a.Imt)&&u.Gmt===a.Gmt?(u.IW?a.IW?(h=u.IW.concat(a.IW),NL(u.IW,a.IW,N_)):h=u.IW:h=a.IW,{bmt:u.bmt,tet:u.tet,Imt:u.Imt,duration:u.duration+a.duration,Emt:u.Emt+a.Emt,Smt:u.Smt,Rmt:u.Rmt,Nmt:u.Nmt,Dmt:u.Dmt,Cmt:u.Cmt,Pmt:NN(a.Pmt,u.Pmt),Bmt:NN(a.Bmt,u.Bmt),Omt:NN(a.Omt,u.Omt),Lmt:NN(a.Lmt,u.Lmt),IW:h,Gmt:u.Gmt,zmt:u.zmt,Tmt:u.Tmt||a.Tmt,Wmt:u.Wmt,qmt:u.qmt}):void 0:u:a);if(!e.audio&&!s.audio||c){var f=function(e,r,s,o){if(!e)return s;if(!s)return e;if(e.bmt===s.bmt){var u,a,h=e.Jmt||s.Jmt;if(h)a=1/(u=e.Imt.Wy(s.Imt).Nk(2)).Dy();else{if(e.tet!==s.tet||!e.Imt.xy(s.Imt))return;u=e.Imt,a=e.tet}if(e.width===s.width&&e.height===s.height){var c,f=e.$mt||s.$mt||!e.Imt.xy(s.Imt);return e.IW?s.IW?(o||!function(e,r,s){var o=e.length,u=lW.Jy;e=rr(e,function(e,r){return NR(e.aS,r.aS).Py(lW.Jy)});for(var a=1;a<o;a+=1){var h=e[a-1].aS,c=NR(e[a].aS,h);c.Ly(lW.Jy)&&(c=r),u=u.Wy(c),h.aet=c,h.ly=c.Dy()}if(o>0){var f=e[o-1].aS,l=lW.Lk(lW.Wk(b.round(s-u.Dy())),r);f.aet=l,f.ly=l.Dy()}}(r.IW.concat(s.IW),u,r.duration+s.duration),c=e.IW.concat(s.IW),NL(e.IW,s.IW,NP)):c=e.IW:c=s.IW,{bmt:e.bmt,Tet:e.Tet,Iet:e.Iet,tpt:e.tpt,tet:a,Imt:u,Jmt:h,$mt:f,width:e.width,height:e.height,hwt:e.hwt,cwt:e.cwt,rE:e.rE,duration:e.duration+s.duration,Emt:e.Emt+s.Emt,Smt:e.Smt,Rmt:e.Rmt,Nmt:e.Nmt,Dmt:e.Dmt,Cmt:e.Cmt,Pmt:NN(s.Pmt,e.Pmt),Bmt:NN(s.Bmt,e.Bmt),Omt:NN(s.Omt,e.Omt),Lmt:NN(s.Lmt,e.Lmt),IW:c,Tmt:e.Tmt||s.Tmt,_E:e._E,gE:e.gE}}}}(e.video?e.video:void 0,r.video,s.video,o);if(!e.video&&!s.video||f)return{audio:c,video:f,Amt:e.Amt}}}(s,e[o-1].npt,e[o].npt,e[o].info.hpt));o++)s=r;return s}(s);B.audio?(U=(D=NU(B)).audio.duration,M=this.iEt.WTt(e,this.vEt,"mp3"===D.audio.bmt?Oc.STt:Oc.ETt,D,T,C,H,p,function(e,r){if(c.Lh=c.Lh||e,c.Ust=r,D=!0,F)return h(c.Lh,c)}
1),this.TEt(M),D=null):D=!0,B.video?(j=(F=ND(B)).video.duration,M=this.iEt.WTt(e,this.vEt,Oc.ITt,F,S,R,H,p,function(e,r){if(c.Lh=c.Lh||e,c.Fst=r,F=!0,D)return h(c.Lh,c)}),this.TEt(M),F=null):F=!0;var V,X,W,q=s.map(function(e){return e.metadata}),Y=lW.Wk(U),$=lW.Wk(j),J=f.npt.audio&&f.npt.video?lW.Mk(f.npt.audio.Smt.Wy(Y),f.npt.video.Smt.Wy($)):f.npt.audio?f.npt.audio.Smt.Wy(Y):f.npt.video?f.npt.video.Smt.Wy($):lW.Jy;if(J.hk()&&tb("Segment with no valid audio or video track detected",f.info.uri),B.video){var Q=Nw(B);if(A(Q))tb("Segment without keyframes detected",f.info.uri),V=lW.qk,X=lW.qk,W=J.Ek(1.5);else{var G=B.video.IW[Q].aS;V=o.Wy(pq(G.oet,d.ept)),X=o.Wy(pq(G.uet,d.ept)),W=lW.Wk(G.het-f.metadata.start)}}else V=T,X=C,W=lW.Jy;var K=lW.Lk(W,lW.Lk(f.npt.audio&&f.npt.audio.Smt||lW.Jy,f.npt.video&&f.npt.video.Smt||lW.Jy));c.metadata={nat:p,bC:o.Dy(),EEt:E.Dy(),oX:x.Dy(),oTt:L.Dy(),Qbt:_.Dy(),yAt:V.Dy(),gmt:X.Dy(),tTt:lW.Mk(o,u).Dy(),ly:J.Dy(),egt:q,Zh:K.Dy(),Ust:y&&{bC:C.Dy(),EEt:T.Dy(),EC:I.Dy(),oTt:P.Dy(),ly:U,bmt:y.bmt},Fst:g&&{bC:R.Dy(),EEt:S.Dy(),EC:O.Dy(),oTt:N.Dy(),ly:j,bmt:g.bmt,Lo:d.cF.width,yT:d.cF.height},e$:d.e$,hpt:d.hpt,ivt:v,apt:a},s=null,B=null},r.Kl=function(){this.iEt.Yh(),this.fEt&&(this.fEt.terminate(),this.fEt=null)},r.hh=function(e){this.iEt.Yh(e)},r.kEt=function(e,r){switch(e.UTt){case Ol.CTt:this.iEt.cEt(e.xTt,{initializer:Or(r.SEt),m4s:Or(r.IEt)});break;case Ol.BTt:this.iEt.cEt(e.xTt,gD?new Od(r.$d,"base64",r.Fs):new Ov(r.$d,r.Fs))}},r.bEt=function(){this.fEt||(this.fEt=IN(this.ef.libraryLocation,"theoplayer.p.js"),this.fEt.addEventListener("message",this.dEt),this.fEt.addEventListener("error",this.pEt))},r.TEt=function(e){this.fEt||this.bEt(),this.fEt.postMessage(e.qTt())},e}();function OR(e,r){return/^https?:\/\//.exec(e)||/^:\/\//.exec(e)?e:0===e.indexOf("/")?r.substr(0,r.indexOf("/",8))+e:r+e}function OL(e,r){return e.length>=r.length&&0===e.lastIndexOf(r,0)}function O_(e){var r=e.indexOf(":");return -1!==r&&e.length>r+1?e.substring(r+1):null}function OP(e){for(var r={},s=/(:|,) ?([A-Z0-9\-]+)=((0(X|x)([0-9a-fA-F]+))|(([0-9]+(\.[0-9]+)?)x([0-9]+(\.[0-9]+)?))|([0-9]+(\.[0-9]+)?)|([A-Za-z\-]+[A-Za-z\-0-9]*)|("(([^"]*\\")*[^"]*)"))/g,o=s.exec(e);null!==o;){var u=o[2],a=void 0;a=void 0!==o[6]?sQ(o[6]):void 0!==o[7]?{width:E(o[8]),height:E(o[10])}:void 0!==o[12]?E(o[12]):void 0!==o[14]?o[14]:void 0!==o[16]?o[16]:null,r[u.toLowerCase()]=a,o=s.exec(e)}return r}function OI(e,r,s,o){var u=e.split("@"),a=OR(r,s),h=k(u[0],10),c=u[1]?k(u[1],10):o;return{h0:a,toString:function(){return a},indexOf:function(e){return a.indexOf(e)},MJ:{bC:c,EC:c+h-1}}}(O3=O2||(O2={})).NO_EXTM3U="HMP2670",O3[O3.DATERANGE_INVALID_1=101]="DATERANGE_INVALID_1",O3[O3.DATERANGE_INVALID_2=102]="DATERANGE_INVALID_2",O3[O3.DATERANGE_INVALID_3=103]="DATERANGE_INVALID_3",O3[O3.DATERANGE_INVALID_4=104]="DATERANGE_INVALID_4",O3[O3.DATERANGE_INVALID_5=105]="DATERANGE_INVALID_5",O3[O3.DATERANGE_INVALID_6=106]="DATERANGE_INVALID_6",(OE={})[O2.NO_EXTM3U]="The manifest does not contain a EXTM3U tag.",OE[O2.DATERANGE_INVALID_1]="An EXT-X-DATERANGE tag with an END-ON-NEXT=YES attribute MUST have a CLASS attribute.",OE[O2.DATERANGE_INVALID_2]="Other EXT-X-DATERANGE tags with the same CLASS attribute MUST NOT specify Date Ranges that overlap.",OE[O2.DATERANGE_INVALID_3]="An EXT-X-DATERANGE tag with an END-ON-NEXT=YES attribute MUST NOT contain DURATION or END-DATE attributes.",OE[O2.DATERANGE_INVALID_4]="If a Playlist contains an EXT-X-DATERANGE tag, it MUST also contain at least one EXT-X-PROGRAM-DATE-TIME tag.",OE[O2.DATERANGE_INVALID_5]="If a Playlist contains two EXT-X-DATERANGE tags with the same ID attribute value, then any AttributeName that appears in both tags MUST have the same AttributeValue.",OE[O2.DATERANGE_INVALID_6]="If a Date Range contains a START-DATE attribute and a DURATION attribute and an END-DATE attribute, the value of the END-DATE attribute MUST be equal to the value of the START-DATE attribute plus the value of the DURATION attribute.";var ON=function(){function e(){}return e.prototype.Wb=function(e,r,s){return function(e,r,s){var o,u,a,h,c,f=0,l=0,p=0,v=null,d=0,y=!1,g=[],m=null,A=0,T=e.match(/[^\r\n]+/g);if(!T||"#EXTM3U"!==T[0].trim())throw new PH(Pj.R_t,{code:"HMP2670",uri:r});for(var C={live:!0,hasEnd:!1,isEvent:!1,streams:[],fragments:[],media:[],dateRanges:[],isMasterPlaylist:!1,uri:r,metadata:null,duration:NaN,estimateDuration:NaN},S=1;S<T.length;S+=1){var R=T[S].trim();if(g.push(R+""),OL(R,"#EXT")){if(OL(R,"#EXTINF"))p=(p=E(O_(R)))||.5;else if(OL(R,"#EXT-X-BYTERANGE"))v=O_(R);else if(OL(R,"#EXT-X-KEY"))(a=OP(R)).method&&"NONE"===a.method?a=null:a.absoluteURI=OR(a.uri,s);else if(OL(R,"#EXT-X-DISCONTINUITY")&&!OL(R,"#EXT-X-DISCONTINUITY-"))y=!0,d+=1;else if(OL(R,"#EXT-X-STREAM-INF"))(u=OP(R)).nat=l++,(S+=1)<T.length&&(u.uri=OR(T[S].trim(),s),C.streams.push(u));else if(OL(R,"#EXT-X-MEDIA")&&!OL(R,"#EXT-X-MEDIA-"))(h=OP(R)).uri&&(h.uri=OR(h.uri,s)),C.media.push(h);else if(OL(R,"#EXT-X-PROGRAM-DATE-TIME"))m=new Date(O_(R));else if(OL(R,"#EXT-X-DISCONTINUITY-SEQUENCE"))C.$_t=!0,C.tgt=k(O_(R),10);else if(OL(R,"#EXT-X-MEDIA-SEQUENCE"))f=k(O_(R),10),C.REt=!0,C.NEt=f;else if(OL(R,"#EXT-X-TARGETDURATION"))C.targetDuration=k(O_(R),10),C.hasTargetDuration=!0;else if(OL(R,"#EXT-X-PLAYLIST-TYPE:EVENT"))C.isEvent=!0;else if(OL(R,"#EXT-X-ENDLIST"))C.live=!1,C.hasEnd=!0;else if(OL(R,"#EXT-X-MAP")){var L=OP(R),_=L.uri,P=L.byterange;c=P?OI(P,_,s,0):OR(_,s)}else if(OL(R,"#EXT-X-VERSION"))C.version=k(O_(R),10);else if(OL(R,"#EXT-X-DATERANGE")){var I=function(e){var r=OP(e),s=function(e){for(var r={},s=0,o=w.keys(e);s<o.length;s++){var u=o[s];nW(u,"x-")&&(r[u.substr(2)]=e[u])}return r}
1(r),o=r["start-date"]?new Date(r["start-date"]):void 0,u=r["end-date"]?new Date(r["end-date"]):void 0,a="YES"===r["end-on-next"]||void 0,h=r["scte35-cmd"]?r["scte35-cmd"].buffer:void 0,c=r["scte35-out"]?r["scte35-out"].buffer:void 0,f=r["scte35-in"]?r["scte35-in"].buffer:void 0;return{hw:r.id,Rst:r.class,qD:o,Nst:u,ly:r.duration,Dst:r["planned-duration"],Ist:a,Cst:s,Bst:h,Lst:c,Mst:f}}(R);C.dateRanges.push(I)}}else if(OL(R,"#"));else if(0!==R.length){v?A=(o=OI(v,R,s,A)).MJ.EC+1:o=OR(R,s);var N,O=a&&iD({},a);a&&void 0===a.iv&&(O.iv=new x([0,0,0,0,0,0,0,0,0,0,0,0,(N=f%0xffffffff)>>24,N>>16,N>>8,255&N])),C.fragments.push({start:0,duration:p,uri:o,nat:f,ogt:y,Xot:d,key:O,Uot:m,Qgt:g,apt:!1,M0:c}),f+=1,p=0,v=null,y=!1,m=null,g=[]}}return C.hasEnd&&C.fragments.length&&(C.fragments[C.fragments.length-1].apt=!0),C.isMasterPlaylist=0!==C.streams.length,C.metadata=function(e){var r=e&&e.fragments&&e.fragments.length,s=e.targetDuration,o=0,u=0;if(!r)return null;for(var a=0,h=e.fragments;a<h.length;a++){var c=h[a];u+=c.duration,s=b.min(s,c.duration),o=b.max(o,c.duration)}return{DEt:s,CEt:o,PEt:r?e.fragments[r-1].duration:0,BEt:u/r,OEt:u}}(C),function(e){if(!e.isMasterPlaylist){e.duration=0;for(var r=0,s=e.fragments;r<s.length;r++){var o=s[r];e.duration+=o.duration}e.estimateDuration=e.duration/e.fragments.length,e.targetDuration||(e.targetDuration=e.estimateDuration),e.live&&(e.fragments.length<10?e.duration=-.001:e.duration=-(e.duration-3*e.targetDuration))}}(C),function(e){for(var r=0,s=0,o=e.fragments;s<o.length;s++){var u=o[s];u.start=r,r+=u.duration}}(C),C.streams.sort(function(e,r){return e.bandwidth&&r.bandwidth&&e.bandwidth!==r.bandwidth?e.bandwidth-r.bandwidth:e.resolution&&r.resolution&&e.resolution.width!==r.resolution.width&&e.resolution.height!==r.resolution.height?e.resolution.height*e.resolution.width-r.resolution.height*r.resolution.width:e.nat-r.nat}),function(e,r){for(var s={},o=0;o<e.media.length;o+=1){var u=e.media[o];u.type===r&&u.uri&&(s[u["group-id"]]=(s[u["group-id"]]||0)+1)}for(var a=e.media.length-1;a>=0;a-=1){var h=e.media[a];h.type!==r||s[h["group-id"]]||rf(e.media,a)}}(C,"VIDEO"),function(e){for(var r=0,s=0,o=e.streams;s<o.length;s++)o[s].id=r,r+=1;for(var u=0,a=e.media;u<a.length;u++)a[u].id=r,r+=1}(C),function(e){for(var r=0,s=e.streams;r<s.length;r++)!function(r,s){var o=s[r];"video"in o&&(o.media=function(e,r){for(var s,o=e.length>>>0,u=arguments[1],a=0;a<o;a++)if(r.call(u,s=e[a],a,e))return s}(e.media,function(e){return e["group-id"]==o.video}))}(r,s)}(C),C}(e,r,s)},e}(),OO=function(){function e(e,r,s){this.ef=void 0,this.ES=void 0,this.z3=void 0,this.LEt=void 0,this.LEt=new ON,this.ef=e,this.ES=s;var o=new Cq(s,this.ef&&this.ef.crossOrigin===fK.Ww,1);this.z3=CQ(o,new xX(x6.ju.tJ,x6.ju.JK,x6.ju.$K,x6.ju.iJ))}var r,s=e.prototype;return s.bc=function(e,r,s){var o=this.q_(e,r);return s&&o.then(function(e){return s(null,e)},function(e){return s(e)}),o},r=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.z3.h4([r],s);case 3:var a;return r=(o=e.sent).Sl,u=this.LEt.Wb(o.c4,r,-1===(a=(a=r).split("#")[0].split("?")[0]).indexOf("/")?a:a.substring(0,a.lastIndexOf("/")+1)),e.abrupt("return",{wm:u,MEt:o.c4});case 10:if(e.prev=10,e.t0=e.catch(0),!(e.t0 instanceof hD)){e.next=16;break}throw new PH(Pj.S_t,{code:"MFL8600",uri:r});case 16:if(!(e.t0 instanceof hU)){e.next=24;break}if(0!==e.t0.c_.wl){e.next=21;break}throw new PH(Pj.I_t,{code:"MFL3900",uri:r,status:e.t0.c_.wl});case 21:throw new PH(Pj.S_t,{code:"MFL4100",uri:r,status:e.t0.c_.wl});case 22:e.next=25;break;case 24:throw new PH(Pj.mw,{error:e.t0,uri:r});case 25:case"end":return e.stop()}},e,this,[[0,10]])})),s.q_=function(e,s){return r.apply(this,arguments)},e}(),OD=function(e){function r(r,s){var o;return(o=e.call(this)||this).xEt=void 0,o.UEt=void 0,o.FEt=void 0,o.HEt=void 0,o.XEt=void 0,o.Lwt=void 0,o.Cwt=void 0,o.JN=void 0,o.xEt=new OO(s||{},x6.ju.tJ,r),o}j(r,e);var s=r.prototype;return s.Um=function(){void 0!==this.HEt&&(p(this.HEt),this.HEt=void 0),this.FEt&&this.FEt.El&&(this.FEt=void 0)},s.VEt=function(e){if(this.Cwt)for(var r=0,s=this.Cwt.fragments;r<s.length;r++){var o=s[r];if(o.uri===e)return o}},r.WEt=function(e,r,s,o){var u,a=e.targetDuration,h=e.metadata;return u=e.fragments.length&&h&&(!a||h.OEt<3*a)?1e3*h.DEt:a?1e3*a:1e4,s===r&&(u/=2),u=b.max(u-o,1e3)},s.qEt=function(e){if(e.fragments.length>0)for(var r=this.VEt(e.fragments[0].uri),s=r&&r.nat||0,o=0,u=e.fragments;o<u.length;o++)u[o].nat+=s},s.GEt=function(e,s,o,u,a,h){var c=this;if(this.FEt&&o===this.FEt.El){var f=wD()-s;if(u)return this.FEt=void 0,this.JN=u,this.dispatchEvent({type:"Lh",Lh:u}),a&&a(u);this.FEt=void 0;var p=h.wm,v=h.MEt;p.REt||this.qEt(p),e===this.UEt&&(this.Lwt=p),this.Cwt=p;var d=r.WEt(p,v,this.XEt,f);p.live?p.isMasterPlaylist||(this.HEt=l(function(){return c.q_(e)},d)):this.Um(),a&&a(u,h),this.dispatchEvent({type:"zEt",manifest:p,manifestText:v}),this.XEt=v}},s.q_=function(e,r){var s=this,o=wD();p(this.HEt),this.HEt=void 0;var u=this.xEt.bc(e,{},function(a,h){return s.GEt(e,o,u,a,r,h)});this.FEt={El:u,Il:e}},s.bC=function(e,r){var s,o,u,a=this,h=!1;(u=e||(this.Cwt?this.Cwt.uri:this.UEt))&&(this.FEt&&this.FEt.Il===e?r&&(s=function(e){a.removeEventListener("Lh",o),a.removeEventListener("zEt",s),r(null,{wm:e.manifest,MEt:e.manifestText})},o=function(e){a.removeEventListener("Lh",o),a.removeEventListener("zEt",s),r(e.Lh)},this.addEventListener("Lh",o),this.addEventListener("zEt",s)):(this.Um(),this.q_(u,function(e,s){if(!h)return h=!0,r&&r(e,s)})))},s.jEt=function(e){e&&(this.XEt=void 0,this.Lwt&&this.Lwt.isMasterPlaylist?this.bC(e.uri):this.Cwt&&!this.YEt()&&this.bC(this.Cwt.uri))},s.Kl=function(){this.Um(),this.Th()},s.YEt=function(){return!!this.FEt||!!this.HEt||!(!this.Cwt||this.Cwt.live)},M(r,[{key:"wm",get:function(){return this.Cwt}},{key:"syt",get:function(){return this.Lwt}},{key:"akt",get:function(){return this.UEt},set:function(e){this.Um(),this.XEt=void 0,this.Lwt=void 0,this.Cwt=void 0,this.UEt=e}}]),r}(PD),OU=function(e){function r(r,s){var o;return(o=e.call(this)||this).ef=void 0,o.Wg=void 0,o.UEt=void 0,o.QEt=void 0,o.ES=void 0,o.ef=s,o.Wg=iM(),o.UEt=null,o.QEt=null,o.ES=r,o}j(r,e);var s=r.prototype;return s.bC=function(){var e=this,r=this.akt;if(r&&!this.QEt){var s=new OD(this.ES,this.ef);s.addEventListener("Lh",function(s){var o=s.Lh;e.dispatchEvent({type:"ZEt",Lh:o}),e.Wg.has(r)&&e.dispatchEvent({type:"Lh",Lh:o,KEt:r})}),s.addEventListener("zEt",function r(o){s.removeEventListener("zEt",r),s===e.QEt&&e.dispatchEvent({type:"JEt",wm:o.manifest})}),s.addEventListener("zEt",function(s){e.Wg.has(r)&&e.dispatchEvent({type:r,wm:s.manifest})}),this.QEt=s,s.bC(r)}},s.$Et=function(e,r){this.tSt(e),this.nSt(r)},s.nSt=function(e){var r,s=this;this.Wg.has(e)||(e===this.akt?(this.bC(),(r=this.QEt).wm&&this.dispatchEvent({type:e,wm:r.wm},!0)):((r=new OD(this.ES,this.ef)).addEventListener("Lh",function(r){s.dispatchEvent({type:r.type,Lh:r.Lh,KEt:e})}),r.addEventListener("zEt",function(r){s.dispatchEvent({type:e,wm:r.manifest})})),this.Wg.set(e,r))},s.tSt=function(e){if(this.Wg.has(e)){var r=this.Wg.get(e);r!==this.QEt&&r.Kl(),this.Wg.delete(e),this.removeEventListener(e)}},s.iSt=function(e){if(this.Wg.has(e)){var r=this.Wg.get(e);r.YEt()||r.bC(e)}},s.rSt=function(){var e=this;this.Wg.forEach(function(r,s){return e.iSt(s)})},s.Yg=function(){this.Wg.forEach(function(e){return e.Kl()}),this.Wg.clear(),this.QEt&&(this.QEt.Kl(),this.QEt=null),this.UEt=null},M(r,[{key:"akt",get:function(){return this.QEt&&this.QEt.wm?this.QEt.wm.uri:this.UEt},set:function(e){this.Yg(),this.UEt=e}}]),r}(PD),OM=function(e){function r(){var r;return(r=e.call(this)||this).eSt=NaN,r}j(r,e);var s=r.prototype;return s.uSt=function(e,r){for(var s=e.length?b.min.apply(b,e):0,o=0;o<e.length;o++)e[o]-=s;for(var u=0;u<r.length;u++)r[u].Zh=lW.Wk(e[u]||0);var a=e.length?b.max.apply(b,e):0;this.eSt=a,this.dispatchEvent({type:"sSt",oSt:a})},s.aSt=function(e,r){var s=[];if(r.length<2)return this.uSt(s,r),!0;for(var o=r[0],u=0;u<r.length;u++){var a=r[u];if(!a.hSt(e))return!1;s[u]=a.Zh.Wy(a.cSt(o,e)).Dy()}return this.uSt(s,r),!0},s.fSt=function(e,r){return this.aSt(e.Xot,r)},s.vSt=function(e,r){if(r.length<2)return this.uSt([],r),!0;var s=r[0].dSt(e);if(A(s))return!1;for(var o=0;o<r.length;o++)if(r[o].dSt(e)!==s)return!1;return this.aSt(s,r)},s.Yg=function(){this.eSt=NaN},s.Kl=function(){this.Th()},M(r,[{key:"oSt",get:function(){return this.eSt}}]),r}(PD),OF=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.HZ=function(e,s){return new r(e,s)},s.cmt=function(e,r){return!1},r}(Ni);function Oj(e,r){var s=new OF([r]);return e.Vy(s).qC(s)}function OH(e,r){var s,o,u=(s=e.oX,!A(o=e.gmt)&&o===s||!e.hpt&&!!r&&r.bT.ivt===e.ivt&&s>=r.EC&&s<=r.EC+.001);return u||!A(e.gmt)?{bC:u?e.oX:e.gmt,EC:e.Qbt,bT:e}:null}var OB=function(e){function r(r,s){var o;return(o=e.call(this)||this).wSt=void 0,o.rS=void 0,o.ySt=null,o.kSt=function(){return o.mSt()},o.h7=[],o.rp=[],o.pSt=new OF([]),o.ASt=null,o.wSt=r,o.rS=s,o}j(r,e);var s=r.prototype;return s.h6=function(e){var r=e.metadata,s=r&&r.egt;if(!s||!s.length)return P.resolve();for(var o=[],u=r.bC,a=0;a<s.length;a++){var h=s[a],c=u+h.duration;o.push({bC:u,ly:h.duration,EC:c,nat:h.nat,nc:h}),u=c}var f={hw:e.metadata.ivt.hw+"lSt"+e.metadata.nat+"_St"+e.metadata.bC+"gSt"+e.metadata.ly,bC:e.metadata.bC,EEt:r.EEt,oX:r.oX,bSt:s[0].rpt.Uot?new Date(s[0].rpt.Uot.getTime()):null,ly:e.metadata.ly,EC:e.metadata.bC+e.metadata.ly,oTt:r.oTt,Qbt:r.Qbt,yAt:r.yAt,gmt:r.gmt,egt:o,ivt
1:e.metadata.ivt,C0:e.metadata.apt,hpt:r.hpt};return this.h7.push(f),this.TSt(this.wSt.h6(e),f)},s.TSt=function(e,r){var s=this;return e.then(function(){if(rc(s.h7,r)){s.rp.push(r);var e=OH(r,s.ASt);e&&(s.pSt=Oj(s.pSt,e)),s.ASt=e}s.mSt(),s.ESt(r)}).catch(function(){rc(s.h7,r)})},s.ESt=function(e){var r=e.egt[0],s=e.egt[e.egt.length-1],o=e.ivt,u=o.sgt(r.nat-1),a=I4.dm(o.Zot);if(!u||a){var h=o.sgt(r.nat),c=this.rS.fmt(h).Dy(),f=e.EEt,l=b.min(c,f);l<r.bC&&this.wSt.TH(l,r.bC)}for(var p=0,v=this.rp;p<v.length;p++){var d=v[p];if(d.ivt===e.ivt){var y=d.egt[0],g=d.egt[d.egt.length-1];g.nat+1===r.nat&&g.EC!==r.bC?this.wSt.TH(g.EC,r.bC):y.nat-1===s.nat&&s.EC!==y.bC&&this.wSt.TH(s.EC,y.bC)}}},s.Yh=function(){this.h7.length=0,this.rp.length=0,this.pSt=new OF([]),this.ASt=null},s.mSt=function(){if(this.SSt&&!this.SSt.KL){var e=this.SSt.rp||IF;e=function(e,r){for(var s=Iq(e),o=0;o<s.length;o++){var u=s[o],a=r.smt(u.EC,.001);if(a>=0){var h=r.egt(a),c=h[h.length-1],f=c.bT.oTt,l=c.bT.Qbt;f-.001<u.EC&&u.EC<l&&(u.EC=l)}}return new IM(s)}(e,this.pSt),this.rp=this.rp.filter(function(r){return function(e,r,s,o){r-=o=+o||0,s+=o;for(var u=0;u<e.length;u+=1)if(e.start(u)<s&&r<e.end(u))return u;return -1}(e,r.bC,r.EC)>=0}),this.pSt=this.pSt.UC(e)}},s.Kl=function(){this.Th(),this.Yh(),this.SSt=null},s.ISt=function(e){var r=this.RSt(e);if(r)for(var s=0,o=r.egt;s<o.length;s++){var u=o[s];if(u.bC<=e&&u.EC>e)return u}return null},s.RSt=function(e){for(var r=0,s=this.rp;r<s.length;r++){var o=s[r];if(o.bC<=e&&o.EC>e)return o}return null},s.NSt=function(e){for(var r=0,s=this.rp;r<s.length;r++){var o=s[r];if(o.ivt.hw===e.ivt.hw){for(var u=0,a=o.egt;u<a.length;u++)if(a[u].nat===e.nat)return!0}}return!1},s.DSt=function(){return this.CSt()[0]}
1,s.CSt=function(){for(var e=this.pSt,r=this.ASt,s=0,o=this.h7;s<o.length;s++){var u=OH(o[s],r);u&&(e=Oj(e,u)),r=u}return[e,r]},M(r,[{key:"Zg",get:function(){return this.h7.length+this.rp.length}},{key:"SSt",get:function(){return this.ySt},set:function(e){this.ySt&&this.ySt.removeEventListener("updateend",this.kSt),this.ySt=e,this.ySt&&(this.ySt.addEventListener("updateend",this.kSt),this.mSt())}}]),r}(PD);function OV(e,r){return e&&r?1>=b.abs(e.nat-r.nat)?lW.Jy:lW.Zy(r.eT-e.eT,1e3):lW.Jy}var OX=function(){function e(e,r,s,o,u){this.ogt=void 0,this.nTt=void 0,this.PSt=void 0,this.BSt=void 0,this.Ua=void 0,this.UJ=void 0,this.Zh=lW.Jy,this.OSt=!1,this.Gst=null,this.ogt=e,this.nTt=e.ivt.egt.V_t(r.nat),this.UJ=this.nTt,this.PSt=s,this.BSt=o,this.Ua=u||null}var r=e.prototype;return r.LSt=function(){if(this.Gst)return this.Gst;var e=this.MSt();return(e.xSt||e.Lh)&&(this.Gst=e),e},r.USt=function(){return{xSt:!1,Lh:!1,OSt:this.OSt,xp:lW.qk}},r.xSt=function(e){return e.qy()?{xSt:!1,Lh:!0,OSt:this.OSt,xp:lW.qk}:{xSt:!0,Lh:!1,OSt:this.OSt,xp:e}},e}();function OW(e,r){switch(r){case"Ust":return pB(e.hAt)?e.hAt:e.agt;case"Fst":return pB(e.fAt)?e.fAt:e.agt;default:return e.agt}}var Oq=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.MSt=function(){var e=this.ogt,r=e.ivt.egt,s=r.W_t(this.UJ);if(e.kp(s)){if(this.BSt&&e.FSt&&PK(s)){var o=OW(s,this.Ua),u=e.HSt(o,s.XSt);return this.xSt(u.Vy(this.Zh))}if(this.PSt&&s===e.VSt){var a=e.Up.Vy(Pz(s));return this.xSt(a.Vy(this.Zh))}this.UJ+=1;var h=OV(s,r.W_t(this.UJ));return this.OSt=this.OSt||h.Cy(lW.Jy),this.Zh=this.Zh.Wy(h).Wy(Pz(s)),this.USt()}return this.xSt(lW.qk)},r}(OX),OY=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.MSt=function(){var e=this.ogt,r=e.ivt.egt,s=r.W_t(this.UJ);if(e.kp(s)){if(this.BSt&&e.FSt&&PK(s)){var o=OW(s,this.Ua),u=e.HSt(o,s.XSt);return this.xSt(u.Wy(this.Zh))}if(this.PSt&&s===e.WSt){var a=e.xp;return this.xSt(a.Wy(this.Zh))}this.UJ-=1;var h=r.W_t(this.UJ),c=OV(h,s);return this.OSt=this.OSt||c.Cy(lW.Jy),this.Zh=this.Zh.Wy(c).Wy(Pz(h)),this.USt()}return this.xSt(lW.qk)},r}(OX),O$=function(){function e(e,r,s){this.nat=void 0,this.ivt=void 0,this.xp=lW.Jy,this.Up=lW.Jy,this.WSt=null,this.VSt=null,this.iat=!1,this.qSt=lW.qk,this.GSt=lW.qk,this.zSt=!1,this.jSt=void 0,this.nat=e,this.ivt=r,this.jSt=s}var r=e.prototype;return r.kp=function(e){return e&&e.Xot===this.nat},r.HSt=function(e,r){var s=e.Vy(this.qSt).Wy(this.GSt);if(void 0!==r){var o=s.Vy(r);if(o.Fy().Cy(pH)){var u=b.round(o.Dy()/pj.Dy());s=s.Vy(pj.Ek(u))}}return s},r.YSt=function(e,r){return this.QSt(e),this.ZSt(r),this.KSt()||e===this.VSt&&this.JSt()},r.QSt=function(e){var r,s;if(this.FSt&&(r=e.dAt,s=this.qSt,r.Py(s)>=0))return!1;if(o=this.FSt?this.$St(e,!0,!1):this.tIt(e,!0,!1),this.qSt.qy())this.qSt=e.dAt;else{var o,u=pq(e.dAt,this.qSt);this.qSt=this.qSt.Wy(u)}return this.GSt=o,!0},r.ZSt=function(e){if(!e||this.jSt||!this.nIt())return!1;var r=this.ivt.egt,s=this.WSt,o=r.q_t(s.nat-1);if(PK(s)&&PK(o)){var u=function(e,r,s){var o=e._mt(r,r.spt);if(!pB(s.vAt)||!pB(s.fAt))return o;var u,a=pB(s.hAt),h=pX(s.fAt,s.vAt);if(a){var c=pV(pX(s.fAt,s.hAt),lW.Jy);u=pV(pX(h,c),lW.Jy)}else u=h;return pX(o,u)}(e,o,s);return this.zSt=!0,this.iIt(u)}return!1},r.iIt=function(e){if(e.xy(this.xp))return!1;var r=e.Vy(this.xp);return this.xp=e,this.Up=this.Up.Wy(r),this.GSt=this.GSt.Wy(r),!0},r.KSt=function(){if(this.jSt)return!1;var e=this.VSt;if(!e)return!1;var r,s=new OY(this,e,!1,!0);do r=s.LSt();while(!r.xSt&&!r.Lh&&!r.OSt);if(r.xSt&&!r.OSt){var o=r.xp.Wy(Pz(e));if(!o.xy(this.Up))return this.Up=o,!0}return!1},r.rIt=function(e){var r=!1;return r=this.ZSt(e)||r,r=this.eIt(e)||r},r.eIt=function(e){if(!e||this.zSt)return!1;var r=e.Up.Wy(OV(e.VSt,this.WSt));return this.iIt(r)},r.uIt=function(e){var r=!1;return(!this.WSt||this.WSt.nat>e.nat)&&(this.xp=this.xp.Vy(OV(e,this.WSt)),this.WSt=e,r=!0),(!this.VSt||this.VSt.nat<e.nat)&&(this.Up=this.Up.Wy(OV(this.VSt,e)).Wy(Pz(e)),this.VSt=e,r=!0),r},r.sIt=function(e){if(!this.FSt||!e.FSt)return lW.qk;if(this.qSt.Ly(e.qSt)){var r=this.HSt(e.qSt,e.GSt);return e.GSt.Vy(r)}return e.HSt(this.qSt,this.GSt).Vy(this.GSt)},r.nIt=function(){var e,r=this.WSt;return!!r&&(e=this.nat,r.Xot===e&&r.ogt)},r.JSt=function(){var e,r=this.VSt;if(!r)return!1;var s=this.ivt.egt.q_t(r.nat+1);return e=this.nat,r.Xot===e&&(!s||s.ogt)},r.oIt=function(e,r){return this.$St(e,!0,!0,r)},r.tIt=function(e,r,s){if(!this.kp(e))return lW.qk;var o,u=new OY(this,e,r,s);do o=u.LSt();while(!o.xSt&&!o.Lh);if(!o.xSt)return lW.qk;var a=o.xp;return a.Uy(this.xp)?this.xp:a},r.$St=function(e,r,s,o){if(!this.kp(e))return lW.qk;var u,a,h,c,f,l=new Oq(this,e,r,s,o),p=new OY(this,e,r,s,o);do u=l.LSt(),a=p.LSt();while(!(u.xSt||a.xSt||u.Lh&&a.Lh));if(a.xSt)h=a,c=u,f=l;else{if(!u.xSt)return lW.qk;h=u,c=a,f=p}if(h.xp.Uy(this.xp)){for(;!c.xSt&&!c.Lh;)c=f.LSt();return c.xSt?lW.Lk(this.xp,c.xp):this.xp}if(h.OSt){for(;!c.OSt&&!c.xSt&&!c.Lh;)c=f.LSt();if(c.xSt&&!c.OSt&&this.xp.Ly(c.xp))return c.xp}return h.xp},r._mt=function(e,r){return this.kp(e)&&this.FSt?this.HSt(r,e.XSt):lW.qk},r.CSt=function(){},M(e,[{key:"FSt",get:function(){return!this.qSt.qy()}}]),e}();function OJ(e,r){return r.Uy(e.xp)?lC.Iy:r.By(e.Up)?lC.Ry:lC.Sy}var OQ=function(){function e(){this.aIt=new PY}var r=e.prototype;return r.q_t=function(e){return this.aIt.q_t(e)},r.W_t=function(e){return this.aIt.W_t(e)},r.hIt=function(e){var r=this.aIt.V_t(e);return r<0?null:this.aIt.W_t(r-1)},r.LSt=function(e){var r=this.aIt.V_t(e);
1return r<0?null:this.aIt.W_t(r+1)},r.cIt=function(){return this.aIt.W_t(0)},r.fIt=function(){var e=this.aIt.Zg;return 0===e?null:this.aIt.W_t(e-1)},r.vIt=function(e){var r=this.aIt,s=this.fIt();if(s&&s.xp.Ly(e)&&e.Uy(s.Up))return s;var o=k2(this.aIt.j_t(),e,N,OJ);return r.W_t(o)},r.Wy=function(e){var r=this.aIt.Wy(e);if(r&&!this.LSt(e.nat)){e.iat=!0;var s=this.hIt(e.nat);s&&(s.iat=!1)}return r},r.Tc=function(e){var r=this.aIt.Tc(e);if(r&&e.iat){e.iat=!1;var s=this.hIt(e.nat);s&&(s.iat=!0)}return r},r.Z_t=function(e){this.aIt.Z_t(e)},r.CSt=function(){},M(e,[{key:"Zg",get:function(){return this.aIt.Zg}}]),e}(),OG=lW.Wk(10),OK=function(){function e(e,r,s){this.ivt=void 0,this.dIt=!1,this.lIt=!1,this._It=new OQ,this.gIt=lW.Jy,this.wIt=void 0,this.yIt=null,this.kIt=null,this.jSt=void 0,this.ivt=e,this.wIt=r.liveOffset,this.jSt=s}var r=e.prototype;return r.mIt=function(e){var r=this.ivt,s=e?e.fragments:null,o=r.egt;if(!e||!s||!s.length)return!1;this.dIt=!0;var u,a=!1;if(!this._It.Zg){var h=new O$(o.q_t(s[0].nat).Xot,r,this.jSt);h.iIt(this.Zh),this._It.Wy(h),a=!0}if(this.kIt){var c=o.V_t(this.kIt.nat);u=c<0?0:c+1}else u=0;for(var f=u,l=o.W_t(f),p=null,v=!1;l;){var d=l.Xot;if(p&&p.nat===d||(p&&v&&this.pIt(p),p=this._It.q_t(d),a=a||v,v=!1),!p){p=new O$(d,r,this.jSt),this._It.Wy(p);var y=this._It.hIt(d);p.rIt(y||void 0)}v=p.uIt(l)||v,l=o.W_t(++f)}return p&&v&&this.pIt(p),(a=a||v)&&this.AIt(),this._It.fIt()&&this.Ewt(r.egt),this.yIt=o.q_t(s[0].nat),this.kIt=o.q_t(s[s.length-1].nat),a},r.YSt=function(e){var r=this._It.q_t(e.Xot);if(!r)return!1;this.lIt=!0;var s=this._It.hIt(r.nat),o=r.YSt(e,s);return o&&this.pIt(r),o},r.pIt=function(e){for(var r=e,s=this._It.LSt(e.nat),o=!0;o&&s;)o=s.rIt(r),r=s,s=this._It.LSt(s.nat)},r.AIt=function(){for(var e=!1,r=this._It.cIt(),s=r&&this._It.LSt(r.nat);r&&s;)r.Up.Cy(s.xp)&&(s.iIt(r.Up),e=!0),r=s,s=this._It.LSt(r.nat);return e},r.bIt=function(e){var r=this._It.fIt(),s=e._It.fIt();return!!(!this.jSt&&(r&&this.TIt(e,r.nat)||s&&this.TIt(e,s.nat)))||(this.EIt?!(!r||!this.SIt(e,r.nat))||!(!s||!this.SIt(e,s.nat))||!(!r||!this.IIt(e,r.nat))||!(!s||!this.IIt(e,s.nat))||this.RIt(e):this.NIt(e))},r.NIt=function(e){var r=this._It.cIt(),s=e._It.cIt();return!(!r||!s)&&(this.Kh(s.xp.Vy(r.xp)),!0)},r.TIt=function(e,r){var s=this._It.q_t(r);if(!s||!s.FSt)return!1;var o=e._It.q_t(r);return!(!o||!o.FSt)&&(this.Kh(s.sIt(o)),!0)},r.SIt=function(e,r){var s=this._It.q_t(r);if(!s||!s.nIt())return!1;var o=e._It.q_t(r);return!(!o||!o.nIt())&&(this.Kh(o.xp.Vy(s.xp)),!0)},r.IIt=function(e,r){var s=this._It.q_t(r);if(!s)return!1;var o=this.DIt(s.VSt.nat);if(!o)return!1;var u=e._It.q_t(r);if(!u)return!1;var a=e.DIt(u.VSt.nat);if(!a)return!1;var h=s.oIt(s.VSt),c=u.oIt(u.VSt),f=lW.Yk(o).Vy(lW.Yk(a)),l=h.Vy(c);return this.Kh(f.Vy(l)),!0},r.RIt=function(e){if(!this.lIt&&!e.lIt)return!1;var r=this._It.fIt(),s=e._It.fIt();if(r&&r.VSt&&s&&s.VSt){var o=lW.Zy(r.VSt.eT-s.VSt.eT,1e3),u=r.Up.Vy(s.Up);return this.Kh(o.Vy(u)),!0}return!1},r.Ewt=function(e){var r=this._It.fIt();if(r)for(var s=r.Up,o=e.Zg-1;o>=0;o--){var u=e.W_t(o);if(s=s.Vy(lW.Wk(u.duration)),void 0!==u.XSt)break;u.XSt=s}},r.dSt=function(e){var r=this._It.vIt(e);return r?r.nat:NaN},r.fmt=function(e,r){var s=this._It.q_t(e.Xot);return s?s.oIt(e,r):lW.qk},r.vmt=function(e,r){var s=this.ivt.egt.q_t(e.nat+1);return s?this.fmt(s):r.Wy(function(e){if(!e)return lW.Jy;if(!PK(e))return lW.Wk(e.duration);var r=e.hgt||lW.Jy,s=e.cgt||lW.Jy,o=lW.Wk(e.duration);return r.hk()||s.hk()?r.hk()?s.hk()?o.hk()?o:lW.Jy:s:r:lW.Lk(r,s)}(e))},r._mt=function(e,r){var s=this._It.q_t(e.Xot);return s&&s.FSt?s._mt(e,r):lW.qk},r.eTt=function(e,r){var s=this.ivt.egt;return s.Zg?function(e,r,s,o){var u,a,h=e.ivt.egt,c={},f=function(r){var s=c[r];return void 0!==s?s:c[r]=e.fmt(h.W_t(r),o)},l=0,p=f(0),v=s,d=f(v);if(r.Uy(p))return{bT:u=h.W_t(l),CIt:p};if(r.By(d)&&(u=h.W_t(v)).apt)return{bT:u,CIt:d};for(;p.Ly(r)&&r.Ly(d);){var y=void 0,g=void 0,m=void 0;if(l===v?(y=l,g=p):g=f(y=l+b.round(r.Vy(p).Dy()*(v-l)/d.Vy(p).Dy())||0),g.Cy(r))d=f(v=y-1);else{if(u=h.W_t(y),!(m=(a=y)===s?f(a).Wy(Pz(h.W_t(a))):f(a+1)).Ly(r))return u&&r.Ly(g.Wy(Pz(u)))?{bT:u,CIt:g}:(u=h.W_t(y+1))&&{bT:u,CIt:m};l=y+1,p=m}}return d.Ly(r)&&((u=h.W_t(v))&&r.Ly(d.Wy(Pz(u)))||v<s&&(u=h.W_t(v+1),d=f(v+1),u&&r.Uy(d)))?{bT:u,CIt:d}:null}(this,e,s.Zg-1,r):null},r.DIt=function(e){var r=this.ivt.egt,s=r.V_t(e),o=r.W_t(s),u=o,a=lW.Jy;if(o.Uot)return o.Uot;for(var h=s-1;h>=0;h--){var c=r.W_t(h);if(a=a.Wy(Pz(c)).Wy(OV(c,u)),c.Uot)return new Date(c.Uot.getTime()+1e3*a.Dy());u=c}return null},r.PIt=function(e){for(var r=this.ivt.egt,s=void 0,o=0;o<r.Zg;o++){var u=r.W_t(o);if(u.Uot){if(!(u.Uot.getTime()<=e.getTime())){s=s||u;break}s=u}}if(!s)return lW.qk;var a=lW.Yk(e).Vy(lW.Yk(s.Uot));return this.fmt(s).Wy(a)},r.Kh=function(e){if(!e.xy(lW.Jy))for(var r=this._It.Zg,s=0;s<r;s++){var o=this._It.W_t(s);o.iIt(o.xp.Wy(e))}},r.hSt=function(e){var r=this._It.q_t(e);return r&&r.FSt},r.cSt=function(e,r){if(this===e)return lW.Jy;var s=this._It.q_t(r),o=e._It.q_t(r);return s&&o?s.sIt(o):lW.qk},r.CSt=function(){},M(e,[{key:"EIt",get:function(){var e=this.ivt.ugt;return!!e&&e.live}},{key:"BIt",get:function(){var e=this.ivt.ugt;return!!e&&e.isEvent}},{key:"OIt",get:function(){var e=this.yIt;return e?this.fmt(e):lW.Jy}},{key:"LIt",get:function(){var e=this._It.fIt();return e?e.Up:lW.Jy}},{key:"MIt",get:function(){if(!this.EIt)return lW.Jy;var e=this.LIt.Vy(this.G3);return lW.Lk(this.OIt,e)}},{key:"G3",get:function(){return this.wIt&&lW.Wk(this.wIt)||this.Bat.Ek(3)}},{key:"xIt",get:function(){return this.EIt&&this.kIt?lW.Zy(wD()-this.kIt.eT,1e3):lW.Jy}},{key:"Bat",get:function(){var e=this.ivt.ugt;return e&&e.targetDuration?lW.Wk(e.targetDuration):OG}},{key:"Zh",get:function(){return this.gIt},set:function(e){var r=e.Vy(this.gIt);this.gIt=e,this.Kh(r)}}]),e}(),Oz=function(e){function r(r){var s;return(s=e.call(this)||this).UIt=[],s.FIt={},s.HIt=null,s.XIt=null,s.gIt=lW.Jy,s.jSt=void 0,s.VIt=void 0,s.VIt=r,s}j(r,e);var s=r.prototype;return s.WIt=function(e){return e&&this.FIt[e.hw]||null},s.qIt=function(e){var r=this.WIt(e);return r||((r=new OK(e,this.VIt,!!this.jSt)).Zh=this.gIt,this.UIt.push(r),this.FIt[e.hw]=r),r},s.GIt=function(e){var r;switch(null==(r=this.VIt.hls)?void 0:r.discontinuityAlignment){case m7.WB:return!0;case m7.qB:return!1;default:return e.isEvent||e.hasEnd}},s.mIt=function(e,r){void 0===this.jSt&&(this.jSt=this.GIt(r));var s=this.WIt(this.HIt),o=s?s.OIt:lW.Jy,u=s?s.LIt:lW.Jy,a=this.qIt(e),h=a.dIt,c=a.mIt(r);
1if(!h&&a.dIt&&(a.Kh(this.zIt(e)),c=!0),c=this.jIt(a)||c,this.YIt(a,o,u)){var f=new PH(Pj.M_t,{code:"MFU0166"});this.dispatchEvent({type:"Lh",Lh:f})}else this.HIt=e,c&&this.dispatchEvent("Iwt")},s.YSt=function(e,r){if(PK(r)){var s=this.qIt(e),o=s.YSt(r);o=this.jIt(s)||o,this.XIt=e,o&&this.dispatchEvent("Iwt")}},s.jIt=function(e){var r=!1,s=!1,o=this.WIt(this.XIt);o&&(o===e?r=!0:s=(r=e.bIt(o))||s);var u=this.WIt(this.HIt);return u&&u!==e&&(s=r?u.bIt(e)||s:e.bIt(u)||s),s},s.zIt=function(e){var r=this.WIt(e),s=!r.EIt,o=e.ugt&&e.ugt.isEvent;return s||o?lW.Jy:r.Bat.Ek(3)},s.YIt=function(e,r,s){if(!e.EIt)return!1;var o=e.OIt,u=e.LIt,a=lW.Mk(u,s).Vy(lW.Lk(o,r)),h=lW.Lk(e.Bat.Ek(3),a.Nk(2));return o.Wy(h).Uy(r)},s.Ewt=function(e,r){var s=this.WIt(e)||this.WIt(this.HIt);return s&&s.Ewt(r)},s.dSt=function(e){var r=this.HIt&&this.WIt(this.HIt);return r?r.dSt(e):NaN},s.QIt=function(e,r){var s=e.sgt(r);return this.fmt(s)},s.fmt=function(e){if(!e)return lW.qk;var r=this.WIt(e.ivt)||this.WIt(this.HIt);return r?r.fmt(e):lW.qk},s.vmt=function(e,r){if(!e)return lW.qk;var s=this.WIt(e.ivt)||this.WIt(this.HIt);return s?s.vmt(e,r):lW.qk},s._mt=function(e,r){if(!e||!r)return lW.qk;var s=this.WIt(e.ivt)||this.WIt(this.HIt);return s?s._mt(e,r):lW.qk},s.eTt=function(e,r,s){var o=this.WIt(e);if(!o)return null;var u=o.eTt(r,s);return u?{bT:u.bT,CIt:u.CIt}:null},s.DIt=function(e,r){var s=this.WIt(e)||this.WIt(this.HIt);return s?s.DIt(r):null},s.PIt=function(e,r){var s=this.WIt(e)||this.WIt(this.HIt);return s?s.PIt(r):lW.qk},s.hSt=function(e){return void 0!==this.ZIt(e)},s.cSt=function(e,r){if(this===e)return lW.Jy;var s=this.ZIt(r),o=e.ZIt(r);return s&&o?s.cSt(o,r):lW.qk},s.ZIt=function(e){return ra(this.UIt,function(r){return r.hSt(e)})},s.Kl=function(){this.Th(),this.UIt.length=0,this.FIt={},this.HIt=null,this.XIt=null,this.gIt=lW.Jy},s.CSt=function(){},M(r,[{key:"KIt",get:function(){return this.OIt.Vy(this.Bat.Ek(3))}},{key:"G3",get:function(){var e=this.VIt.liveOffset;return lW.Wk(e||3*this.Bat.Dy())}},{key:"EIt",get:function(){var e=this.WIt(this.HIt);return!!e&&e.EIt}},{key:"wp",get:function(){return this.HIt?new IM([{bC:this.OIt.Dy(),EC:this.LIt.Dy()}]):IF}},{key:"OIt",get:function(){if(!this.HIt)return lW.Jy;var e=this.WIt(this.HIt);return e.BIt?e.OIt:e.OIt.Wy(e.xIt)}},{key:"LIt",get:function(){if(!this.HIt)return lW.Jy;var e=this.WIt(this.HIt);return e.LIt.Wy(e.xIt)}},{key:"MIt",get:function(){if(!this.HIt)return lW.Jy;var e=this.WIt(this.HIt);return e.MIt.Wy(e.xIt)}},{key:"Bat",get:function(){return this.HIt?this.WIt(this.HIt).Bat:OG}},{key:"Zh",get:function(){return this.gIt},set:function(e){if(!this.gIt.xy(e)){this.gIt=e;for(var r=0,s=this.UIt;r<s.length;r++)s[r].Zh=e;this.dispatchEvent("Iwt")}}}]),r}(PD),OZ=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.zIt=function(e){return lW.Jy},r}(Oz),O0=1/60;function O1(e,r){return lI(e,r,O0)}var O2,O3,O5,O4=function(e,r,s){this.ivt=void 0,this.xp=void 0,this.ly=void 0,this.Up=void 0,this.bT=void 0,this.JIt=NaN,this.$It=NaN,this.tRt=0,this.ivt=e.ivt,this.xp=r,this.Up=s,this.ly=s-r,this.bT=e},O6=function(e,r,s){this.ivt=void 0,this.xp=void 0,this.ly=void 0,this.Up=void 0,this.JIt=NaN,this.$It=NaN,this.tRt=0,this.ivt=e,this.xp=r,this.Up=s,this.ly=s-r};function O8(e){return!(!e||!e.bT)}function O7(e,r){return 0>=O1(e.xp,r)?e.Up:e.xp}function O9(e,r){var s=b.min(O0,e.ly/2);return r.YC(e.xp,e.Up,s)}function Dt(e,r){var s=r.rmt(e);return -1===s?e:r.end(s)}function De(e){return e.$It<=e.JIt}function Dn(e,r){if(!De(r))return!1;for(var s=0;s<e.length;s++){var o=e[s];if(o.tRt+r.$It>o.JIt)return!1}return!0}function Di(e,r){for(var s=0;s<e.length;s++)e[s].tRt+=r.$It;r.tRt=r.$It,e.push(r)}(DM=O5||(O5={}))[DM.nRt=0]="nRt",DM[DM.iRt=1]="iRt",DM[DM.rRt=2]="rRt",DM[DM.DTt=3]="DTt";var Dr=function(){function e(e,r,s,o){this._T=void 0,this.rS=void 0,this.Jat=void 0,this.eRt=void 0,this.uRt=void 0,this.ykt=void 0,this._T=e,this.rS=r,this.Jat=s,this.eRt=o,this.uRt=x6.ju.tJ,this.ykt=x6.ju.$K}var r,s=e.prototype;return s.sRt=function(){return this.Jat.Tgt.reduce(function(e,r){return b.max(e,r.ugt&&r.ugt.targetDuration||0)},0)},s.oRt=function(e,r){void 0===r&&(r=this.rS.fmt(e).Dy());var s=this.rS.vmt(e,lW.Wk(r));return new O4(e,r,s.Dy())},s.aRt=function(e,r){var s=e.egt.W_t(r);return s&&this.oRt(s)||null},s.hRt=function(e){var r=e.ivt,s=r.egt.V_t(e.nat);return s>=0&&this.aRt(r,s-1)||null},s.cRt=function(e){var r=e.ivt,s=r.egt.V_t(e.nat);return s>=0&&this.aRt(r,s+1)||null},s.fRt=function(e,r){var s=this.rS.eTt(e,lW.Wk(r));return s&&this.oRt(s.bT,s.CIt.Dy())||null},s.vRt=function(e){var r=e.egt.Zg-1;return r>=0&&this.aRt(e,r)||null},s.dRt=function(e,r,s){var o,u,a,h=e.ugt&&e.ugt.targetDuration||this.sRt()||10,c=b.max(0,r-h),f=c+h;return s&&(o=c,u=f,a=s.xp,0>=O1(o,s.Up)&&0>=O1(a,u))&&(f=(c=s.Up)+h),new O6(e,c,f)},s.lRt=function(e,r,s){var o=this.eRt.nbt,u=.8*this.eRt.N5,a=(r.bandwidth||0)*e.ly;return s&&s.skt?((a=8*s.Okt||a)-8*s.Bkt)/u:o+a/u},s._Rt=function(){for(var e=this.eRt.WAt(this._T),r=this.eRt.AAt(this._T),s=0;s<r.length;s++){var o=r[s];-1===e.indexOf(o)&&e.push(o)}return e},s.gRt=function(e,r){var s=r.filter(function(r){return r.ivt===e});return Ns(this.rS,s).amt()},s.wRt=function(e){return"audio"===this._T&&e?[e]:this.Jat.Tgt},s.yRt=function(e){for(var r=new Nr([]),s=new Nr([]),o=this._Rt(),u={G9:{},kRt:{},mRt:{},pRt:{}},a=e.length-1;a>=0;a-=1){var h,c,f=e[a],l=this.gRt(f,o),p=function(e,r){for(var s=[],o=0;o<r.length;o++)for(var u=!1,a=0,h=r.egt(o);a<h.length;a++){var c=h[a];if(!u){var f=c.bT;if(PK(f)&&f.dmt!==I6.lmt){if((u=f.dmt>=0)&&0!==f.dmt){var l=e._mt(f,f.gmt).Dy();c={bC:b.max(c.bC,l),EC:c.EC,bT:f}}}else u=!0}u&&s.push(c)}return new Nr(s)}(this.rS,l);u.G9[f.hw]=l,u.kRt[f.hw]=p,u.mRt[f.hw]=(h=r,r=l.Vy(h).qC(h)),u.pRt[f.hw]=(c=s,s=p.Vy(c).qC(c))}return u},s.ARt=function(e,r,s,o,u){for(var a,h,c,f=[],l=0;l<o.length;l++)for(var p=u[o[l].hw],v=0;v<p.length;v+=1){var d=p.start(v),y=p.end(v)-s;d<y&&f.push({bC:d,EC:y})}return 0===(a=IB(a=IH(new IM(f)),new IM([{bC:e,EC:r}]))).length||O1(a.start(0),e)>0?e:1===a.length&&(h=a.start(0),c=a.end(0),0>=O1(h,e)&&0>=O1(r,c))?NaN:a.end(0)},s.bRt=function(e,r,s){var o=null,u=s.G9[e.hw],a=s.mRt[e.hw],h=s.pRt[e.hw],c=a.rmt(r);if(-1!==c){for(var f=b.max(r,a.start(c)),l=a.end(c),p=new IM([{bC:f,EC:l}]),v=a.UC(p).Vy(h),d=0;d<v.length;d++){var y=v.start(d),g=v.egt(d)[0];if(g.bT.ivt===e){if(o=this.hRt(g.bT))return o}else{for(o=this.fRt(e,y);o&&O9(o,u);)o=this.hRt(o.bT);if(o)return o}}var m=a.egt(c),w=m[m.length-1];if(w.bT.ivt===e&&(o=this.cRt(w.bT)))return o}var k=this.vRt(e);if(!k||0>=O1(k.Up,r)){if(!k||!k.bT.apt)return this.dRt(e,r,k);o=k}for(o||(o=this.fRt(e,r));o&&O9(o,a);)o=this.cRt(o.bT);return o},s.TRt=function(e,r){var s=this.vRt(e);return s&&s.bT.apt&&0>=O1(s.Up,r)?s:this.fRt(e,r)},s.ERt=function(e,r,s,o,u,a,h,c){var f=e.ivt,l=h.mRt[f.hw],p=!O9(e,l),v=p?r:O7(e,o);e.JIt=(v-o)/a-.25,e.$It=this.lRt(e,f);var d=c&&this.oRt(c);if(d&&!O9(d,l)){var y,g=O7(d,o);if(d.JIt=(g-o)/a-.25,d.$It=this.lRt(d,f,s&&s.kkt),De(d)&&(!p||Dn(y=[],d)&&(Di(y,d),!(!O8(e)||!O8(d)||e.bT!==d.bT)||Dn(y,e))))return d}if(p&&!De(e))return null;var m=this.SRt(e,o,u,a,l);return m.length&&m[m.length-1]||null},s.SRt=function(e,r,s,o,u){for(var a=[],h=e.ivt,c=e;c&&r<c.Up&&s<=c.xp;){if(!O9(c,u)){if(A(c.JIt)){var f=O7(c,r);c.JIt=(f-r)/o-.25,c.$It=this.lRt(c,h)}Dn(a,c)&&Di(a,c)}c=O8(c)&&this.hRt(c.bT)}return a},s.IRt=function(e,r){return e.xp<r?{fw:O5.rRt}:O8(e)?{fw:O5.nRt,bT:e.bT,xp:e.xp}:{fw:O5.iRt,ivt:e.ivt}},s.HAt=function(e){if(PG(e.uri)){var r=e.uri,s=xV(r.h0,[r.MJ.bC,r.MJ.EC]);return this.ykt.Wh(s)}var o=xV(e.uri);return this.ykt.Wh(o)}
1,s.RRt=function(e){return this.uRt.Wh(e.uri)},r=P.coroutine(iO.mark(function e(r,s,o,u,a,h,c,f,l){var p,v,d,y,g,m,w,b,k,E,x,T,C;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(p=this.wRt(u),v=this.yRt(p),d=this.rS.KIt.Dy(),y=this.ARt(r,s,a,p,v.kRt),w=null,k=!1,!A(y)){e.next=3;break}return e.abrupt("return",{fw:O5.DTt});case 3:if(!(y<d)){e.next=5;break}return e.abrupt("return",{fw:O5.rRt});case 5:E=f.length-1;case 6:if(!(E>=0)){e.next=27;break}if(g=f[E],m=Dt(y,v.kRt[g.hw]),!(w=this.bRt(g,m,v))){e.next=24;break}if(x=!1,!O8(w)){e.next=18;break}return e.next=15,this.HAt(w.bT);case 15:x=e.sent,e.next=22;break;case 18:if(g.twt){e.next=22;break}return e.next=21,this.RRt(g);case 21:x=e.sent;case 22:if(!x){e.next=24;break}return e.abrupt("return",this.IRt(w,d));case 24:E-=1,e.next=6;break;case 27:if(!(y<=r+.25&&l.length)||(g=l[0],m=Dt(y,v.kRt[g.hw]),!(w=this.bRt(g,m,v)))){e.next=33;break}return e.abrupt("return",this.IRt(w,d));case 33:T=l.length-1;case 34:if(!(T>=0)){e.next=48;break}if(g=l[T],m=Dt(y,v.kRt[g.hw]),(w=this.bRt(g,m,v))?b=w:(k=!0,b=this.TRt(g,m)),!b||!(C=this.ERt(b,m,h,r,d,o,v,c))){e.next=45;break}return e.abrupt("return",this.IRt(C,d));case 45:T-=1,e.next=34;break;case 48:if(!k){e.next=50;break}return e.abrupt("return",{fw:O5.DTt});case 50:if(!w){e.next=52;break}return e.abrupt("return",this.IRt(w,d));case 52:if(f.length){e.next=54;break}return e.abrupt("return",{fw:O5.DTt});case 54:if(g=f[0],m=Dt(y,v.kRt[g.hw]),!(w=this.bRt(g,m,v))){e.next=61;break}return e.abrupt("return",this.IRt(w,d));case 61:return e.abrupt("return",{fw:O5.DTt});case 62:case"end":return e.stop()}},e,this)})),s.NRt=function(e,s,o,u,a,h,c,f,l){return r.apply(this,arguments)},e}(),Ds=lW.Wk(.1),Do=function(e){function r(r){var s;return(s=e.call(this)||this).Awt=void 0,s.DRt=[],s.Awt=r,s}j(r,e);var s=r.prototype;return s.Crt=function(e,r,s){var o=this.CRt(e),u=this.PRt(o);this.BRt(u,r,s)},s.CRt=function(e){if(0===e.length)return[];for(var r=e[0].Fbt,s=this.ORt(e[0]),o=[],u=0;u<e.length;u++){var a=e[u];r!==a.Fbt&&(r=a.Fbt,s=this.ORt(a)),o.push(iD({},a,{LRt:a.kQ.Wy(s)}))}return o},s.ORt=function(e){var r=this.Awt._mt(e.Fbt,e.kQ),s=r.Vy(e.kQ);return pq(r,e.kQ).Vy(s)},s.PRt=function(e){var r,s,o,u,a,h=e.slice().sort(Du),c=this.DRt;if(c.length)if(h.length){var f=1/h[0].Fbt.pwt,l=h[0].LRt,p=c[0].LRt,v=c[c.length-1].LRt,d=(u=c[0].Fbt,a=h[0].Fbt,u.ivt===a.ivt);if(v.Vy(l).Uy(lW.Wk(2.5*f))&&d)r=c.concat(h).sort(Du);else if(l.By(p)){for(var y=0;y<c.length&&c[y].LRt.Uy(l);)y++;for(var g=!1,m=!1,w=y,b=0;w<c.length&&b<h.length;w++,b++)s=c[w],o=h[b],s.kQ.xy(o.kQ)&&s.Ua===o.Ua&&s.vQ===o.dQ?g=!0:m=!0;var k=g&&!m,E=g&&m;!g&&m?r=c.concat(h).sort(Du):k?r=c.slice(0,y).concat(h):(r=h,E&&this.Yg())}else r=h,this.Yg()}else r=c;else r=h;return r},s.BRt=function(e,r,s){if(0!==e.length){for(var o=e[0],u=r.Vy(o.LRt),a=pq(r,o.LRt).Vy(u),h=r.Wy(a),c=Ds.xk(h.Pk),f=0;f<e.length;f+=1){var l=e[f];if(!s&&h.Vy(l.LRt).Uy(c))return void(this.DRt=e.slice(f));var p=this.Awt._mt(l.Fbt,l.kQ);this.hQ(p,l)}this.DRt=[]}},r}(xv);function Du(e,r){var s,o,u,a;return(e.Fbt===r.Fbt?(s=e.kQ,o=r.kQ,s.Py(o)):(u=e.LRt,a=r.LRt,u.Py(a)))||l_(e.EE,r.EE)}var Da=function(e){function r(r,s,o,u,a,h,c,f,l,p){var v;return(v=e.call(this)||this).MRt=!1,v.xRt=!1,v.EAt=void 0,v.Uyt=void 0,v.URt=void 0,v.eRt=void 0,v.FRt=void 0,v.wSt=void 0,v.iE=void 0,v.rS=void 0,v.HRt=void 0,v.XRt=!1,v.VRt=void 0,v.WRt=void 0,v.qRt=!1,v.GRt=!1,v.zRt=null,v.pP=void 0,v.sdt=void 0,v.odt=void 0,v.jRt=null,v.Up=-1,v.YRt=null,v.QRt=!1,v.ZRt=!1,v.KRt=1/0,v.JRt=void 0,v.$Rt=null,v.tNt=0,v.nNt=void 0,v.wh=function(e){v.dispatchEvent(e)},v.iNt=function(){!v.XRt&&!v.qRt&&v.rNt&&v.MRt&&(v.qRt=v.F7("Ust",v.VRt,function(){v.qRt=!1}))},v.eNt=function(){!v.XRt&&!v.GRt&&v.uNt&&v.xRt&&(v.GRt=v.F7("Fst",v.WRt,function(){v.GRt=!1}))},v.sNt=function(e){return v.oNt()},v.aNt=function(e){if(e._T===v._T){var r=e.Fbt,s=r.npt;s.wmt&&v.hNt(s.wmt,r.info),s.vet&&v.cNt(s.vet,r.info),v.oNt(v.EAt.PAt,!0)}},v.fyt=function(e){v.fNt(e.mwt,e.ivt)},v.met=function(e){if(v.jRt)for(var r=0;r<v.jRt.VT;r++){var s="CC"+(r+1);v.Uyt.zwt(s,e.cue.xp,e.cue.Up)}v.Uyt.Gwt(e.cue)},v.pP=l,v.Uyt=s,v.URt=o,v.eRt=u,v.FRt=a,v.wSt=h,v.iE=c,v.EAt=p,v.rS=new Oz(c),v.HRt=v.vNt(s),u.Gg(r,v.rS,v.wSt),v.VRt=new OB(h,v.rS),v.WRt=new OB(h,v.rS),v.jRt=v.dNt(v.rS),v.nNt=new Dr(r,v.rS,v.HRt,u),u.addEventListener("Ubt",v.aNt),v.rS.addEventListener("Lh",v.wh),s.addEventListener("nyt",v.fyt),v}j(r,e);var s,o,u,a,h=r.prototype;return h.F7=function(e,r,s){var o=this,u=this.wSt.LAt,a=5*this.wSt.py,h=this.lNt(),c="audio"===this._T?[this._Nt]:this.HRt.Tgt,f=r.CSt(),l=f[0],p=f[1],v=this.eRt.hTt(this._T,e,this.rS,c,l,p||void 0,u,a,h);return v&&!v.length&&v.Kbt?(this.wSt.gNt("Ust"===e,"Fst"===e),!1):!(!v||!v.length)&&(this.FRt.zTt(this._T,this.Uyt,v,v.Jbt,v.oX,v.Kbt,function(e,u){(s(),e)?o.dispatchEvent({type:"Lh",Lh:e}):r.h6(u).then(function(){return o.dispatchEvent("Gyt")}).catch(function(e){})}),!0)},h.wNt=function(){this.FRt.hh(this._T),this.qRt=!1,this.GRt=!1},h.yNt=function(){var e=this.wSt.LAt,r=this.VRt.ISt(e)||this.WRt.ISt(e);!r||this.zRt&&this.zRt.nat===r.nat||(this.oNt(this.EAt.PAt),this.zRt=r,this.dispatchEvent({type:"kNt",aS:this.zRt.nc.rpt}))},h.mNt=function(){this.pNt()},h.ANt=function(){this.mNt()},h.bNt=function(){this.oNt(this.EAt.PAt)},h.TNt=function(e,r){this.VRt.ISt(e)||this.WRt.ISt(e)||(this.zRt=null)},h.ENt=function(e){var r=!1;
1this.VRt.DSt().kp(e)||(this.iNt(),r=!0),this.WRt.DSt().kp(e)||(this.eNt(),r=!0),r&&this.oNt(this.EAt.PAt,!0)},h.SNt=function(){this.VRt.Yh()},h.INt=function(){this.WRt.Yh()},h.lNt=function(){return 0===this.VRt.Zg+this.WRt.Zg||"zbt"===this.iE.jbt?0:+this.eRt.BAt},h.pNt=function(){this.iNt(),this.eNt()},h.Byt=function(e){return -1!==this.HRt.Tgt.indexOf(e)},h.RNt=function(e){e&&this.Byt(e)&&(this.Twt(e),this.tyt(e))},h.Twt=function(e){this.rS.mIt(e,e.ugt)},h.tyt=function(e){var r=this;e&&e.ugt&&this.iE.hlsDateRange&&this.Uyt.tyt(e.ugt.dateRanges,function(s){return r.rS.PIt(e,s).Dy()})},h.NNt=function(e){this.Byt(e.ivt)&&this.rS.YSt(e.ivt,e)},h.DNt=function(e){var r,s,o,u=this.VRt.ISt(e)||this.WRt.ISt(e);if(u)s=u.nc.quality,o=u.nat,r=u.bC;else{var a=this._Nt;if(!a)return null;var h=this.rS.eTt(a,lW.Wk(e));if(!h)return null;s=a,o=h.bT.nat,r=h.CIt.Dy()}var c=this.rS.DIt(s,o);if(!c)return null;var f=e-r;return new Date(c.getTime()+1e3*f)},h.PIt=function(e){var r=this._Nt;return this.rS.PIt(r,e).Dy()},h.oNt=function(e,r){var s=this,o=this.CNt(),u=this.wSt.LAt;e&&(this.Up=u+e,r&&(this.$Rt=null,this.tNt=0)),this.CNt()||u>=this.Up?this.PNt(o):this.YRt||this.QRt||!this.aw||(this.BNt(),this.ONt(function(e){return s.LNt(u,s.wSt.py,e)}))},h.MNt=function(e){e&&this.URt.removeEventListener(e.uri,this.sNt)},h.xNt=function(e){e&&this.URt.addEventListener(e.uri,this.sNt)},h.CNt=function(){return -1===this.Up},r.UNt=function(e){return I4.dm(e.ivt.Zot)&&wD()-e.eT>2e3*e.ivt.ugt.metadata.OEt},s=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=!1,this.YRt=new rE,o=this.YRt,e.prev=3,e.next=6,r(o.dh);case 6:s=e.sent,rT(o.dh),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),rS(e.t0);case 13:return e.prev=13,this.YRt===o&&(this.YRt=null),e.finish(13);case 16:s&&this.oNt();case 17:case"end":return e.stop()}},e,this,[[3,10,13,16]])})),h.ONt=function(e){return s.apply(this,arguments)},h.BNt=function(){this.YRt&&(this.YRt.hh(),this.YRt=null)},o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}},e)})),h.FNt=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Dl.UNt(r)){e.next=2;break}return e.abrupt("return",this.dispatchEvent("XNt"));case 2:if(s=b.min(16e3,1e3*b.pow(2,this.tNt)),this.tNt+=1,this.BNt(),!(this.tNt>2)){e.next=8;break}return r.ivt.Wgt(!1),e.abrupt("return",r.ivt.jgt());case 8:this.ONt(function(e){return rU(s,e).then(function(){return!0})});case 9:case"end":return e.stop()}},e,this)})),h.HNt=function(e){return u.apply(this,arguments)},h.hNt=function(e,r){var s,o,u,a;s=Ie(e.ymt,4),e.qwt="0000.0000.0000."+s,o=Ie(e.cct,4),u=Ie(e.kmt,3),a=Ie(e.mmt,2*e.kmt),e.pw=(o+u+a).toUpperCase(),function(e,r,s){for(var o=s.pmt,u=[],a=0;a<o.length;a++)for(var h=o[a],c=r._mt(e,h.aS.kQ).Dy(),f=0,l=h.IW;f<l.length;f++){var p=l[f];u.push(new E1(c,p))}s.Tw=u}(r,this.rS,e),this.Uyt.Wwt(e,this.rS)},h.cNt=function(e,r){for(var s=[],o=0;o<e.length;o++){var u=e[o];s.push(iD({},u,{Fbt:r}))}this.jRt&&this.jRt.Crt(s,r.gAt,r.apt)},h.VNt=function(e){this.JRt&&this.JRt.Fbt===e&&this.oNt()},h.WNt=function(e,r){if(r){if(r.aborted)return;if(this.$Rt===e)return this.HNt(e)}else e.ivt.Wgt(!0);return this.oNt()},h.qNt=function(e){var r=P1(e.ivt.mwt);r&&this.dispatchEvent(new SF(PQ(e.uri),e.ivt.bandwidth||0,e.nat,e.ivt.nat,r))},h.GNt=function(e,r){var s=this.JRt&&this.JRt.El.mkt||200,o=P1(e.ivt.mwt);o&&this.dispatchEvent(new SY(PQ(e.uri),e.ivt.bandwidth||0,e.nat,e.ivt.nat,o,s,r&&r.kkt.Bkt||0))},h.PNt=function(e){this.Up=-1,e||this.dispatchEvent("zNt")},h.jNt=function(e){this.ZRt=!0,this.PNt(e),this.dispatchEvent("okt")},a=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f,l,p=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(o),u=this._Nt,a=this.CNt(),this.MNt(u||void 0),!(r>=this.Up)){e.next=7;break}return this.PNt(a),e.abrupt("return",!1);case 7:return e.next=9,this.nNt.NRt(r,this.Up,s,u||void 0,this.lNt(),this.JRt&&this.JRt.El,this.JRt&&this.JRt.Fbt,this.YNt,this.QNt);case 9:if(h=e.sent,fO.Mw(this.eRt.N5/8),rT(o),h.fw!==O5.rRt){e.next=18;break}return this.BNt(),this.dispatchEvent("XNt"),e.abrupt("return",!1);case 18:if(h.fw!==O5.iRt){e.next=29;break}if(h.ivt!==u){e.next=24;break}return this.xNt(u),e.abrupt("return",!1);case 24:return e.next=26,this.FNt(h.ivt,null);case 26:case 39:return e.abrupt("return",e.sent);case 27:e.next=33;break;case 29:if(h.fw!==O5.DTt){e.next=33;break}return this.xNt(u||void 0),!I4.dm(u.Zot)&&u.ugt&&this.jNt(a),e.abrupt("return",!1);case 33:if(c=h.bT,!this.JRt||this.JRt.Fbt!==c){e.next=36;break}return e.abrupt("return",!1);case 36:if(c.ivt===u){e.next=40;break}return e.next=39,this.FNt(c.ivt,c);case 40:if(this.JRt&&(this.JRt.El.hh(),this.JRt=void 0),!(h.xp>this.KRt)){e.next=46;break}return this.jNt(a),e.abrupt("return",!1);case 46:if(!(h.xp>this.Up)){e.next=49;break}return this.PNt(a),e.abrupt("return",!1);case 49:if(this.ZRt=!1,this.JRt=void 0,c!==this.$Rt&&(this.tNt=0),this.$Rt=c,this.dispatchEvent("skt"),this.qNt(c),!c.M0){e.next=59;break}return e.next=58,this.eRt.Lbt(this._T,String(c.ivt.hw),c.M0);case 58:f=e.sent;case 59:return(l=this.eRt.xbt(this._T,c,f,function(e,r){p.BNt(),p.GNt(c,r),p.JRt=void 0,o&&o.Ka||p.WNt(c,e)}))&&(this.JRt={Fbt:c,El:l},l.addEventListener("Gyt",function(){o&&o.Ka||p.VNt(c)})),e.abrupt("return",!1);case 62:case"end":return e.stop()}},e,this)})),h.LNt=function(e,r,s){return a.apply(this,arguments)},h.ZNt=function(e){this.oNt(e||this.EAt.PAt,!0)},h.KNt=function(){var e=this.CNt();this.Up=-1,this.JRt&&this.JRt.El.hh(),this.JRt=void 0,this.MNt(),this.ZRt=!1,this.$Rt=null,this.tNt=0,this.BNt(),this.PNt(e),this.jRt=this.dNt(this.rS)},h.JNt=function(){this.QRt=!0,this.MNt(),this.BNt()},h.$Nt=function(){this.QRt=!1,this.oNt()},h.tDt=function(){this.XRt=!0},h.nDt=function(){this.XRt=!1,this.pNt()},h.Kl=function(){this.Th(),this.KNt(),this.wNt(),this.rNt=null,this.uNt=null,this.VRt.Kl(),this.WRt.Kl(),this.FRt.hh(this._T),this.rS.Kl(),this.Uyt.removeEventListener("nyt",this.fyt),this.eRt.removeEventListener("Ubt",this.aNt),this.HRt=null,this.iDt()},h.Yg=function(){this.zRt=null,this.sdt=void 0,this.odt=void 0,this.iDt(),this.jRt=this.dNt(this.rS)},h.dNt=function(e){var r=new Do(e);return r.kh("PY",this.met),r},h.iDt=function(){this.jRt&&(this.jRt.Eh("PY",this.met),this.jRt.Kl(),this.jRt=null)},M(r,[{key:"vy",get:function(){return this.wSt.LAt}},{key:"rDt",get:function(){return this.MRt}},{key:"_T",get:function(){return this.eDt()}},{key:"twt",get:function(){return this.uDt()}},{key:"YNt",get:function(){return this.sDt()}},{key:"QNt",get:function(){return this.oDt()}},{key:"rNt",get:function(){return this.VRt.SSt},set:function(e){var r=this.VRt.SSt;r&&r.removeEventListener("updateend",this.iNt),this.VRt.SSt=e,e&&(e.addEventListener("updateend",this.iNt),this.iNt())}},{key:"uNt",get:function(){return this.WRt.SSt},set:function(e){var r=this.WRt.SSt;r&&r.removeEventListener("updateend",this.eNt),this.WRt.SSt=e,e&&(e.addEventListener("updateend",this.eNt),this.eNt())}},{key:"zNt",get:function(){return this.CNt()}},{key:"okt",get:function(){return this.ZRt}},{key:"aDt",get:function(){return this.KRt},set:function(e){this.KRt=e}},{key:"_Nt",get:function(){return this.plt()}},{key:"hDt",get:function(){return this.cDt()},set:function(e){this.fDt(e)}},{key:"aw",get:function(){return this.CH()}},{key:"lp",get:function(){return this.vDt()}}]),r}(PD);function Dh(e){for(var r=[],s=0;s<e.length;s++){for(var o=e[s],u=!1,a=0;a<r.length;a++)(function(e,r){if(e.bandwidth!==r.bandwidth)return!1;if(e.resolution){if(!r.resolution||e.resolution.width!==r.resolution.width||e.resolution.height!==r.resolution.height)return!1}else if(r.resolution)return!1;return!0})(o,r[a])&&(u=!0);u||r.push(o)}return r}var Dc=function(e){function r(r,s,o,u,a,h){var c;return(c=e.call(this)||this).Uyt=void 0,c.rS=void 0,c.eRt=void 0,c.iE=void 0,c.dDt=void 0,c.lDt=void 0,c._Dt=null,c.gDt=null,c.wDt=null,c.yDt=null,c.kDt=null,c.mDt=null,c.pDt=null,c.Ont=!1,c.Tp=!0,c.P3=!0,c.ADt=null,c.pP=void 0,c.bDt=function(){c.ADt&&c.ADt.disabled&&c.TDt(c.iE.initialRendition||"default"),c.EDt(!0)},c.SDt=function(){var e=c.Uyt.xst.Egt.some(function(e){return e.lp});c.U3(e)},c.IDt=function(e){"variant"===e._T&&(c.eRt.removeEventListener("qbt",c.IDt),c.ADt&&(c.ADt=null,c.EDt(!1)))}
1,c.pP=h,c.Uyt=r,c.rS=s,c.eRt=o,c.iE=u,c.dDt=u.RDt||[],c.lDt=new OO(u,x6.ju.tJ,a),c._Dt=null,c.eRt.addEventListener("qbt",c.IDt),c.NDt(),c.DDt(),c.TDt(u.initialRendition||"default"),c}j(r,e);var s,o,u,a,h,c=r.prototype;return c.CDt=function(e,r){var s=PZ(e);if(s&&!s.disabled)return s;var o=this.PDt(e,null);switch(o.length?"first"!==r&&(r="high"):o=e,r){case"first":return o.reduce(function(e,r){return e.nat<=r.nat?e:r});case"high":var u=Dh(o);return u[u.length-1];default:return Dh(e)[0]}},c.BDt=function(e,r){var s=this.ODt||this.ADt&&[this.ADt],o=s&&s.filter(function(r){return rl(e,r)});return o&&o.length>0?Dh(o):Dh(this.PDt(e,r))},c.PDt=function(e,r){var s=this.iE,o=this.dDt,u=this.LDt();return e.filter(function(e){for(var a=0;a<o.length;a++)if(!o[a].MDt(e,r,u,s))return!1;return!0})},c.xDt=function(e,r){var s=this.BDt(e,r);return s.length?s[s.length-1]:e[0]},c.UDt=function(e,r){var s=this.ODt;return s&&s.length>0?s.filter(function(r){return rl(e,r)}):e},s=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.yDt,u=this.kDt,!o||r!==this.mDt||s!==this.pDt){e.next=4;break}return e.abrupt("return",o);case 4:return a=new rE,h=this.HDt(r,s,a.dh),o&&u&&u.hh(),this.yDt=h,this.kDt=a,this.pDt=s,e.prev=10,e.next=13,h;case 13:return e.abrupt("return",e.sent);case 14:return e.prev=14,h===this.yDt&&(this.yDt=null,this.kDt=null,this.pDt=null),e.finish(14);case 17:case"end":return e.stop()}},e,this,[[10,,14,17]])})),c.FDt=function(e,r){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s,o){var u,a,h,c,f;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=this.Uyt,a=this.rS,h=u.rlt,e.next=5,this.XDt(r,o);case 5:if(e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!s||(c=a.QIt(h,s.nat),f=a.eTt(r,c),I4.dm(h.Zot)||f)){e.next=14;break}return r.disabled="isUnsynced",e.abrupt("return",!1);case 14:return e.abrupt("return",!0);case 15:case"end":return e.stop()}},e,this)})),c.HDt=function(e,r,s){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.gDt,u=this.wDt,!o||r!==this.mDt){e.next=4;break}return e.abrupt("return",o);case 4:return(a=new rE).fh(s),h=this.VDt(r,a.dh),o&&u&&u.hh(),this.gDt=h,this.wDt=a,this.mDt=r,e.prev=11,e.next=14,h;case 14:return e.abrupt("return",e.sent);case 15:return e.prev=15,h===this.gDt&&(this.gDt=null,this.wDt=null,this.mDt=null),e.finish(15);case 18:case"end":return e.stop()}},e,this,[[11,,15,18]])})),c.XDt=function(e,r){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(r,s){var o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.Uyt.rlt,!this.aw||o!==r){e.next=4;break}return e.abrupt("return",!1);case 4:if(this.WDt(r)){e.next=8;break}u=r.ugt,e.next=22;break;case 8:return e.prev=8,e.next=11,this.lDt.bc(r.uri,{});case 11:a=e.sent,rT(s),u=a.wm,e.next=21;break;case 16:return e.prev=16,e.t0=e.catch(8),r.Hgt(!1),r.jgt(),e.abrupt("return",!1);case 21:r.Mgt(u,o);case 22:if(!function(e){var r=e&&e.uri||"",s=r.indexOf("?"),o=r.indexOf("#"),u=r.length;-1!==o&&(u=o),-1!==s&&(u=s);var a=r.indexOf(".aac",u-4);return 0<=a&&a<u}(u.fragments[0])){e.next=25;break}return r.disabled="isAAC",e.abrupt("return",!1);case 25:return e.abrupt("return",!0);case 26:case"end":return e.stop()}},e,this,[[8,16]])})),c.VDt=function(e,r){return a.apply(this,arguments)},c.WDt=function(e){var r=e.ugt;return!r||!!r.live&&(!e.egt.Zg||e.egt.W_t(e.egt.Zg-1).eT+1e3*r.targetDuration<wD())},c.Sp=function(e){e?this.Tp||(this.Tp=!0,this.dispatchEvent("aw")):this.Tp&&(this.Tp=!1)},c.U3=function(e){e&&!this.P3?(this.P3=!0,this.dispatchEvent("lp")):!e&&this.P3&&(this.P3=!1,this.dispatchEvent("r_"))},c.EDt=function(e){var r=this,s=this.Uyt,o=s.rlt,u=s.xst.Egt,a=this.UDt(u,o),h=this.xDt(a,o);h?this.FDt(h,null).then(function(o){o&&(s.Hdt(h,e),r.Sp(!0))}):this.Sp(!1)},c.qDt=function(){this.ADt=null,this.EDt(!0)},c.DDt=function(){this.Uyt.xst.addEventListener("pgt",this.SDt)},c.GDt=function(){this.Uyt.xst.removeEventListener("pgt",this.SDt)},c.NDt=function(){this.Uyt.xst.addEventListener("kgt",this.bDt)},c.zDt=function(){this.Uyt.xst.removeEventListener("kgt",this.bDt)},c.TDt=function(e){var r,s=this.Uyt,o=s.xst.Egt;if(s.rlt&&!s.rlt.disabled)this.ADt=null;else{if(o&&o.length){switch(this.pP.qM.type){case bu.PERFORMANCE:r="low";break;case bu.QUALITY:r="high";break;case bu.BANDWIDTH:r=e}this.ADt=this.CDt(o,r),this.Ont=!0}var u=this.UDt(o,null),a=this.xDt(u,null);a&&(s.rlt=a)}},c.LDt=function(){return this.Ont?{N5:this.eRt.N5}:{N5:this.pP.$M}},c.hh=function(){this.yDt&&this.kDt&&(this.kDt.hh(),this.yDt=null,this.kDt=null,this.pDt=null),this.gDt&&this.wDt&&(this.wDt.hh(),this.gDt=null,this.wDt=null,this.mDt=null)},c.Kl=function(){this.eRt.removeEventListener("qbt",this.IDt),this.zDt(),this.GDt(),this.hh(),this._Dt=null,this.ADt=null},h=P.coroutine(iO.mark(function e(r,s){var o,u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.Uyt,r){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,this.FDt(r,s);case 5:return(u=e.sent)&&(o.rlt=r),e.abrupt("return",u);case 8:case"end":return e.stop()}},e,this)})),c.jDt=function(e,r){return h.apply(this,arguments)},M(r,[{key:"aw",get:function(){return this.Tp}},{key:"lp",get:function(){return this.P3}},{key:"QNt",get:function(){var e=this.Uyt,r=e.rlt,s=this.UDt(e.xst.Egt,r);return this.BDt(s,r)}},{key:"YNt",get:function(){return this.UDt(this.Uyt.xst.Egt,this.Uyt.rlt)}},{key:"ODt",get:function(){return this._Dt},set:function(e){this._Dt=e,this.qDt()}}]),r}(PD),Df=function(){function e(e,r){this.yg=void 0,this.rS=void 0,this.YDt=-1,this.yg=e,this.rS=r}return e.prototype.Ec=function(e){for(var r=e.egt,s=r.V_t(this.YDt),o=s<0?0:s+1;o<r.Zg;o++){var u=r.W_t(o);if(u.nat>this.YDt){var a=this.rS.fmt(u),h=this.rS.vmt(u,a),c=new pL(a.Dy(),h.Dy(),[].concat(u.Qgt),!1,u.nat.toString());this.yg.DS(c),this.YDt=u.nat}}},e}(),Dl=function(e){function r(r,s,o,u,a,h,c,f,l){var p;return(p=e.call(this,I3.lgt,r,s,o,u,a,h,c,f,l)||this).QDt=void 0,p.ZDt=null,p.KDt=null,p.QDt=ne
1w Dc(r,p.rS,o,h,c,f),p.QDt.addEventListener("aw",p.wh),p.QDt.addEventListener("lp",p.wh),p.QDt.addEventListener("r_",p.wh),h.manifestMetadataTrack&&(p.ZDt=r.Vwt("",p.rS,""),p.KDt=new Df(p.ZDt,p.rS)),p.MRt=!p.Uyt.elt||!p.Uyt.elt.uri,p.xRt=!!p.Uyt.rlt,p}j(r,e);var s,o=r.prototype;return o.fNt=function(e,r){if("Ust"===e){var s=r?r.uri:void 0;this.MRt=!s}},o.eDt=function(){return I3.lgt},o.uDt=function(){return this._Nt&&this._Nt.twt||!1},o.plt=function(){return this.Uyt.rlt},o.sDt=function(){return this.QDt.YNt},o.oDt=function(){return this.QDt.QNt},o.cDt=function(){var e=this.QDt.ODt;return e&&e.map(function(e){return e.hw})},o.fDt=function(e){if(e&&e.length>0){var r=this.HRt.Tgt.filter(function(r){return -1!==e.indexOf(r.hw)});r.length>0&&(this.QDt.ODt=r)}else this.QDt.ODt=null},o.CH=function(){return this.QDt.aw},o.vDt=function(){return this.QDt.lp},s=P.coroutine(iO.mark(function r(s,o){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.QDt.jDt(s,o);case 2:return r.abrupt("return",e.prototype.FNt.call(this,s,o));case 3:case"end":return r.stop()}},r,this)})),o.FNt=function(e,r){return s.apply(this,arguments)},o.KNt=function(){e.prototype.KNt.call(this),this.QDt.hh()},o.Twt=function(r){e.prototype.Twt.call(this,r),this.KDt&&this.KDt.Ec(r)},o.Kl=function(){e.prototype.Kl.call(this),this.QDt.Kl(),this.QDt.removeEventListener("lp",this.wh),this.QDt.removeEventListener("r_",this.wh)},o.vNt=function(e){return e.xst},o.JDt=function(){var e=this.vy,r=this.rDt?this.VRt.RSt(e):void 0,s=r?r.ivt:void 0,o=this.WRt.RSt(e),u=o?o.ivt:void 0,a=this.sdt;this.sdt=s;var h=this.odt;return this.odt=u,!a&&s?{iyt:a,$Dt:s}:!h&&u||h&&u&&h.hw!==u.hw?{iyt:h,$Dt:u}:void 0},r}(Da),Dp=function(e){function r(r,s,o,u,a,h,c,f,l){var p;return(p=e.call(this,I3.Xl,r,s,o,u,a,h,c,f,l)||this).MRt=!!p.Uyt.elt&&!!p.Uyt.elt.uri,p.xRt=!1,p}j(r,e);var s=r.prototype;return s.fNt=function(e,r){if("Ust"===e){var s=r?r.uri:void 0;this.MRt=!!s}},s.eDt=function(){return I3.Xl},s.uDt=function(){return this._Nt&&this._Nt.twt||!1},s.plt=function(){return this.Uyt.elt},s.sDt=function(){var e=this.plt();return e?[e]:[]},s.oDt=function(){return this.sDt()},s.vNt=function(e){return e.Zat},s.cDt=function(){return null},s.fDt=function(e){},s.CH=function(){return!0},s.vDt=function(){return!0},s.JDt=function(){var e=this.rDt?this.VRt.RSt(this.vy):void 0,r=e?e.ivt:void 0,s=this.sdt;return this.sdt=r||void 0,!s&&r||s&&r&&s.hw!==r.hw?{iyt:s,$Dt:r}:void 0},r}(Da),Dv=function(){function e(e,r,s,o,u,a){var h=this;this.tCt=!1,this.jht=void 0,this.nCt=void 0,this.NAt=void 0,this.iCt=void 0,this.EAt=void 0,this.rCt=mo.aP(),this.eCt=[],this.Rft=void 0,this.uCt=[],this.bwt=function(){return h.sCt()},this.oCt=function(e){e.wm.live||h.nCt.removeEventListener(h.jht.h0,h.oCt),h.jht.Mgt(e.wm)},this.aCt=function(){h.jht.Swt.Aw===fk.gw?h.tCt&&h.hCt():h.tCt||h.cCt()},this.jht=e,this.nCt=r,this.NAt=s,this.EAt=a,this.iCt=new Ik(o,u),this.Rft=new rE,e.Swt.kh(cZ.Pg,this.aCt),e.rS&&e.rS.addEventListener("Iwt",this.bwt),this.aCt()}var r,s=e.prototype;return s.cCt=function(){this.tCt||this.jht.Swt.Aw===fk.gw||(this.nCt.removeEventListener(this.jht.h0,this.oCt),this.nCt.addEventListener(this.jht.h0,this.oCt),this.nCt.nSt(this.jht.h0),this.nCt.iSt(this.jht.h0),this.tCt=!0,rN(this.fCt(this.Rft.dh)))},r=P.coroutine(iO.mark(function e(r){var s,o,u,a,h,c,f,l,p=this;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((o=new mo([s=this.NAt.LAt,s+this.EAt.PAt]).UC(this.rCt.FC())).Zg){e.next=16;break}return e.prev=6,e.next=9,rU(1e3,r);case 9:e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(6),rS(e.t0),e.abrupt("return");case 15:case 29:return e.abrupt("return",this.fCt(r));case 16:if(u=o.bC(0),a=this.vCt(u)){e.next=30;break}return h=this.jht,e.prev=20,e.next=23,cJ(h,"Xgt",r);case 23:e.next=29;break;case 25:return e.prev=25,e.t1=e.catch(20),rS(e.t1),e.abrupt("return");case 30:c=a.bT,l=(f=a.CIt.Dy())+c.duration,this.iCt.bc("Swt",c.uri,up.Ku,function(){var e=P.coroutine(iO.mark(function e(s,o){var u,a,h,v,d,y;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!s){e.next=3;break}throw rU(1e3,r).then(function(){return p.fCt(r)}),s;case 3:for(p.rCt=p.rCt.qC(new mo([f,l])),p.eCt.push(c.nat),a=(u=p9(o.c_)).gA||{wA:lW.Jy,yA:lW.Jy},h=p.jht.egt.q_t(c.nat),v=0,d=u.Tw;v<d.length;v++){var g,m,w,b;y=d[v],p.uCt.push({Fbt:h,CIt:(g=lW.Wk(y.xp),m=a.yA,pW(a.wA,g.Vy(m))),dCt:(w=lW.Wk(y.Up),b=a.yA,pW(a.wA,w.Vy(b))),Mp:y})}return p.sCt(),e.next=12,p.fCt(r);case 12:case"end":return e.stop()}},e)}));return function(r,s){return e.apply(this,arguments)}}());case 34:case"end":return e.stop()}},e,this,[[6,11],[20,25]])})),s.fCt=function(e){return r.apply(this,arguments)},s.sCt=function(){var e=this.jht.rS;if(this.uCt.length&&e){for(var r=[],s=0,o=this.uCt;s<o.length;s++){var u=o[s],a=e._mt(u.Fbt,u.CIt);if(a.qy())r.push(u);else{var h=e._mt(u.Fbt,u.dCt),c=new pP(a.Dy(),h.Dy(),u.Mp.Fp,!1,u.Mp.hw);this.jht.Swt.DS(c)}}this.uCt=r,this.jht.Swt.iW(this.NAt.LAt,!0)}},s.vCt=function(e){var r=this.jht.rS,s=this.jht.egt;if(r.EIt)for(var o=r.LIt.Dy(),u=s.Zg-1;u>=0;u-=1){var a=s.W_t(u),h=o-a.duration;if(new mo([h,o]).HD(e,.5)){var c={bT:a,CIt:lW.Wk(h)};return this.lCt(s,c,u)}o=h}else for(var f=0,l=0;l<s.Zg;l+=1){var p=s.W_t(l),v=f+p.duration;if(new mo([f,v]).HD(e,.5)){var d={bT:p,CIt:lW.Wk(f)};return this.lCt(s,d,l)}f=v}},s.lCt=function(e,r,s){var o=r.bT;if(-1===this.eCt.indexOf(o.nat))return r;for(var u=r.CIt.Dy()+o.duration,a=s+1;a<e.Zg;a+=1){var h=e.W_t(a);if(-1===this.eCt.indexOf(h.nat))return{bT:h,CIt:lW.Wk(u)};u+=h.duration}},s.hCt=function(){this.tCt=!1,this.nCt.tSt(this.jht.h0),this.Rft.hh(),this.Rft=new rE},s.Yg=function(){this.hCt(),this.rCt=mo.aP(),this.eCt.length=0,this.jht.Swt.Eh(cZ.Pg,this.aCt),this.jht.rS&&this.jht.rS.removeEventListener("Iwt",this.bwt),this.nCt.removeEventListener(this.jht.h0,this.oCt)},e}(),Dd=function(e){function r(r,s,o,u){var a;return(a=e.call(this)||this).iE=void 0,a.Jyt=void 0,a.eRt=void 0,a.FRt=void 0,a.Uyt=void 0,a.URt=void 0,a._Ct=void 0,a.gCt=NaN,a.wCt=!1,a.yCt=1/0,a.kCt=1/0,a.mCt=null,a.pCt=!0,a.ACt=!0,a.wSt=null,a.ES=void 0,a.pP=void 0,a.bCt=void 0,a.TCt=void 0,a.ECt=[],a.Uwt=function(){var e=a.Uyt.ly;A(e)||a.gCt===e||(a.gCt=e,a.dispatchEvent("durationchange"))},a.SCt=function(){a.qyt&&(a.Uyt.removeEventListener("renditionUpdated",a.SCt),a.dispatchEvent("qyt"))}
1,a.ICt=function(){a.zNt&&a.dispatchEvent("zNt")},a.RCt=function(){a.okt&&a.dispatchEvent("okt")},a.wh=function(e){a.dispatchEvent(e)},a.NCt=function(e){var r=a.Uyt.jwt(e.KEt);r?r instanceof P4&&(r.Hgt(!1),r.jgt()):a.dispatchEvent(e)},a.DCt=function(e){a.Uyt.wm||(e.Lh.code===Pj.S_t?(a.mCt||(a.mCt=l(a.CCt,1e4)),a.ACt=!1,a.Vgt()):a.dispatchEvent({type:"Lh",Lh:e.Lh}))},a.PCt=function(e){a.BCt(),a.OCt(e.wm),a.LCt(),a.Uyt.removeEventListener("Zwt",a.Uwt),a.Uyt.addEventListener("Zwt",a.Uwt),a.Uwt(),a.wCt||(a.wCt=!0,a.dispatchEvent("loadedmetadata")),a.SCt(),a.ACt=!0,a.Vgt()},a.CCt=function(){a.BCt();var e=a.akt;e&&(a.URt.Yg(),a.URt.akt=e,a.URt.bC())},a.MCt=function(){a.URt.rSt()},a.xCt=function(){a.UCt.forEach(function(e){return e.nDt()})},a.FCt=function(e){a.HCt.forEach(function(r){return r.RNt(e.ivt)})},a.XCt=function(e){a.UCt.forEach(function(r){return r.NNt(e.uAt)}),a._Ct.fSt(e.uAt,a.UCt.map(function(e){return e.rS}))},a.Vgt=function(){var e=a.pCt,r=a.vDt();a.pCt=r,r&&!e?a.dispatchEvent("lp"):!r&&e&&a.dispatchEvent("r_")},a.pP=u,a.iE=r,a.Jyt=s,a.ES=o,a.eRt=new NQ(r,s,o,t8(a)),a.FRt=new OS(r),a.Uyt=new P8(r),a.URt=new OU(o,r),a._Ct=new OM,a.URt.addEventListener("Lh",a.NCt),a.URt.addEventListener("ZEt",a.DCt),a.URt.addEventListener("JEt",a.PCt),a.eRt.addEventListener("Ubt",a.wh),a.eRt.addEventListener("Lh",a.wh),a.Uyt.addEventListener("nyt",a.wh),a.Uyt.addEventListener("Xgt",a.FCt),a.Uyt.addEventListener("Dwt",a.XCt),a.Uyt.addEventListener("ryt",a.wh),a._Ct.addEventListener("sSt",a.wh),a._Ct.addEventListener("sSt",a.xCt),a.addEventListener("lp",a.MCt),a}j(r,e);var s=r.prototype;return s.VCt=function(e){e.aDt=this.aDt,e.addEventListener("kNt",this.wh),e.addEventListener("WCt",this.wh),e.addEventListener("Lh",this.wh),e.addEventListener("XNt",this.wh),e.addEventListener("skt",this.wh),e.addEventListener("zNt",this.ICt),e.addEventListener("okt",this.RCt),e.addEventListener("r_",this.Vgt),e.addEventListener("lp",this.Vgt),e.addEventListener("aw",this.wh),e.addEventListener("Gyt",this.wh),e.addEventListener(ul._v,this.wh),e.addEventListener(ul.yv,this.wh)},s.LCt=function(){this.qCt(),this.Uyt.xst.Tgt;var e=this.Uyt.Zat.Tgt;this.bCt=new Dl(this.Uyt,this.URt,this.eRt,this.FRt,this.wSt,this.iE,this.ES,this.pP,this),this.VCt(this.bCt),e.length&&(this.TCt=new Dp(this.Uyt,this.URt,this.eRt,this.FRt,this.wSt,this.iE,this.ES,this.pP,this),this.VCt(this.TCt));for(var r=this.Uyt.$at,s=this.bCt.rS,o=0;o<r.length;o++){var u=r[o];u.rS=s,this.ECt.push(new Dv(u,this.URt,this.wSt,this.ES,this.iE,this))}},s.qCt=function(){this.bCt&&(this.bCt.Kl(),this.bCt=void 0),this.TCt&&(this.TCt.Kl(),this.TCt=void 0),this.ECt.forEach(function(e){return e.Yg()}),this.ECt.length=0,this._Ct.Yg()},s.GCt=function(e){this.UCt.forEach(function(r){return r.ZNt(e)})},s.OCt=function(e){this.Uyt.wm=e},s.zCt=function(){this.URt.bC()},s.jCt=function(e){this._Ct.vSt(e,this.UCt.map(function(e){return e.rS}))||this.UCt.forEach(function(e){e.wNt(),e.tDt()})},s.hCt=function(){this.eRt.Obt(),this.UCt.forEach(function(e){return e.KNt()})},s.dkt=function(){this.eRt.Obt(),this.UCt.forEach(function(e){return e.JNt()})},s.ckt=function(){this.UCt.forEach(function(e){return e.$Nt()})},s.Kl=function(){this.Th(),this.BCt(),this.qCt(),this.eRt.Kl(),this.FRt.Kl(),this.Uyt.Kl(),this.URt.Yg(),this._Ct.Kl()},s.YCt=function(e,r,s,o){var u=this.bCt,a=this.TCt;e&&(u.KNt(),this.eRt.Yh(u._T),u.ZNt(o)),r&&a&&(a.KNt(),this.eRt.Yh(a._T),s&&a.ZNt(o))},s.QCt=function(){if(!this.bCt)return IF;var e=this.bCt;return Ns(e.rS,this.eRt.WAt(e._T))},s.$Et=function(e,r,s){var o=this,u=r?r.uri:void 0,a=s?s.uri:void 0,h=function e(r){r.wm.live||o.URt.removeEventListener(a,e),s&&s.Mgt(r.wm)};a&&(this.URt.removeEventListener(a,h),this.URt.addEventListener(a,h)),this.URt.$Et(u,a),this.URt.iSt(a)},s.BCt=function(){null!==this.mCt&&p(this.mCt),this.mCt=null},s.vDt=function(){return!!this.ACt&&(!this.bCt||this.bCt.lp)},s._kt=function(e){this.bCt&&(this.bCt.hDt=e)},s.Yg=function(){this.HCt.forEach(function(e){return e.Yg()}),this.ECt.forEach(function(e){return e.Yg()})},M(r,[{key:"ZCt",get:function(){return this.bCt}},{key:"KCt",get:function(){return this.TCt}},{key:"UCt",get:function(){var e=[];return this.bCt&&e.push(this.bCt),this.TCt&&this.TCt.rDt&&e.push(this.TCt),e}},{key:"HCt",get:function(){return[this.bCt,this.TCt].filter(z)}},{key:"PAt",get:function(){return tJ(this.pP.VM*this.eRt.BAt,1,this.JCt)}},{key:"akt",get:function(){return this.URt.akt},set:function(e){this.gCt=NaN,this.yCt=1/0,this.wCt=!1,this.pCt=!0,this.ACt=!0,this.Uyt.removeEventListener("renditionUpdated",this.SCt),this.Uyt.removeEventListener("Zwt",this.Uwt),this.BCt(),this.qCt(),this.eRt.Yh(),this.FRt.hh(),this.Uyt.Kl(),this.Uyt.addEventListener("renditionUpdated",this.SCt),this.URt.akt=e,this.Vgt()}},{key:"ly",get:function(){return this.gCt}},{key:"EIt",get:function(){return this.Uyt&&I4.dm(this.Uyt.Zot)}},{key:"lp",get:function(){return this.pCt}},{key:"qyt",get:function(){var e=this.UCt;return e.length>0&&e.every(function(e){return e.twt})}},{key:"BAt",get:function(){return this.eRt.BAt},set:function(e){e>0&&(this.eRt.BAt=e)}},{key:"zNt",get:function(){return this.UCt.every(function(e){return e.zNt})}},{key:"okt",get:function(){return this.UCt.length>0&&this.UCt.every(function(e){return e.okt})}},{key:"JCt",get:function(){return this.kCt},set:function(e){this.kCt=e}},{key:"aDt",get:function(){return this.yCt},set:function(e){var r=this;this.yCt=e,this.HCt.forEach(function(e){return e.aDt=r.yCt})}},{key:"wp",get:function(){return this.qyt?new IM([{bC:this.OIt,EC:this.LIt}]):IF}},{key:"OIt",get:function(){if(!this.qyt)return 0;for(var e=-1/0,r=0,s=this.UCt;r<s.length;r++){var o=s[r];e=b.max(e,o.rS.OIt.Dy())}return e}},{key:"LIt",get:function(){if(!this.qyt)return 0;for(var e=1/0,r=0,s=this.UCt;r<s.length;r++){var o=s[r];e=b.min(e,o.rS.LIt.Dy())}return e}},{key:"MIt",get:function(){if(!this.qyt)return 0;for(var e=1/0,r=0,s=this.UCt;r<s.length;r++){var o=s[r];e=b.min(e,o.rS.MIt.Dy())}return b.max(e,this.OIt)}},{key:"lkt",get:function(){return this.bCt&&this.bCt.hDt||void 0}}]),r}(PD),Dy=function(e){function r(r,s){var o;return(o=e.call(this)||this).iE=void 0,o.gCt=NaN,o.wCt=!1,o.Uyt=void 0,o.rS=void 0,o.$Ct=void 0,o.mCt=null,o.pCt=!0,o.ZDt=null,o.KDt=null,o.wh=function(e){o.dispatchEvent(e)},o.OCt=function(e){if(o.Uyt.wm||(o.Uyt.wm=o.$Ct.syt||null),!o.Uyt.rlt){var r=o.Uyt.xst.Tgt[0];r&&(o.Uyt.rlt=r,o.$Ct.jEt(r),o.dispatchEvent({type:"tPt",ivt:r}))}e.manifest.isMasterPlaylist||o.Uyt.rlt.Mgt(e.manifest),void 0!==e.manifest.duration&&o.gCt!==e.manifest.duration&&(o.gCt=e.manifest.duration,o.dispatchEvent("durationchange")),o.wCt||(o.wCt=!0,o.dispatchEvent("loadedmetadata")),o.U3(!0),o.dispatchEvent({type:"zEt",manifest:e.manifest})},o.DCt=function(e){e.Lh.code===Pj.S_t?(o.mCt||(o.mCt=l(o.CCt,1e4)),o.U3(!1)):o.dispatchEvent({type:"Lh",Lh:e.Lh})},o.CCt=function(){o.BCt();var e=o.akt;e&&o.$Ct.bC(e)},o.BCt=function(){p(o.mCt),o.mCt=null},o.FCt=function(e){var r=e.ivt;o.rS.mIt(r,r.ugt),o.iE.manifestMetadataTrack&&(o.KDt||(o.ZDt=o.Uyt.Vwt("",o.rS,""),o.KDt=new Df(o.ZDt,o.rS)),o.KDt.Ec(r))},o.iE=r,o.Uyt=new P8(r,!0),o.rS=new OZ(r),o.$Ct=new OD(s,o.iE),o.rS.addEventListener("Lh",o.wh),o.$Ct.addEventListener("zEt",o.OCt),o.$Ct.addEventListener("Lh",function(e){o.Uyt.wm?(o.m
1Ct||(o.mCt=l(o.CCt,1e4)),o.U3(!1)):o.DCt(e)}),o.Uyt.addEventListener("Xgt",o.FCt),o}j(r,e);var s=r.prototype;return s.zCt=function(){this.Uyt.wm||this.$Ct.bC()},s.QCt=function(){return IF},s.U3=function(e){var r=this.pCt;this.pCt=e,e&&!r?this.dispatchEvent("lp"):!e&&r&&this.dispatchEvent("r_")},s.Kl=function(){this.Th(),this.BCt(),this.Uyt.Kl(),this.$Ct.Kl(),this.KDt=null,this.rS.Kl()},s.dkt=function(){},s.ckt=function(){},s.GCt=function(e){},s._kt=function(e){},M(r,[{key:"akt",get:function(){return this.$Ct.akt},set:function(e){this.gCt=NaN,this.wCt=!1,this.BCt(),this.Uyt.Kl(),this.KDt=null,this.$Ct.akt=e,this.U3(!0)}},{key:"ly",get:function(){return this.gCt}},{key:"EIt",get:function(){return this.Uyt&&I4.dm(this.Uyt.Zot)}},{key:"lp",get:function(){return this.pCt}},{key:"okt",get:function(){return!1}},{key:"zNt",get:function(){return!1}},{key:"lkt",get:function(){return[]}}]),r}(PD),Dg=function(e){function r(r){var s;return(s=e.call(this,"nPt")||this).ptsOffset=r,s}return j(r,e),r}(rX),Dm=function(e){function r(r){var s;return(s=e.call(this)||this).ayt=void 0,s.iPt=null,s.rPt=0,s.ePt="start",s.uPt=1,s.sPt=!1,s.oPt=!1,s.aPt=0,s.hPt=null,s.cPt=null,s.fPt=null,s.vPt=null,s.oSt=0,s.dPt=0,s.lPt=new rE,s._Pt=new sG,s.gPt=void 0,s.wPt={},s.yPt=!1,s.kPt=null,s.mPt=NaN,s.yNt=function(){s.ayt.UCt.map(function(e){e.yNt()})},s.JDt=function(){for(var e,r,o,u=0,a=s.ayt.HCt;u<a.length;u++){var h=a[u],c=h.JDt();if(c){var f=c.$Dt;f&&f.mwt!==I5.Xl&&(s.kPt=f)}h._T===I3.Xl?e=c:h._T===I3.lgt&&(r=c,o=h)}(e||r)&&s.dispatchEvent({type:"nyt",pPt:e&&e.iyt,Tyt:e&&e.$Dt,Ryt:r&&r.iyt,byt:r&&r.$Dt,pyt:!!o&&o.rDt})},s.mNt=function(){null!==s.hPt&&p(s.hPt),s.hPt=l(s.mNt,1e3),s.ayt.UCt.forEach(function(e){return e.mNt()})},s.bNt=function(){null!==s.cPt&&p(s.cPt),s.sPt&&(s.cPt=l(s.bNt,1e3),s.ayt.UCt.forEach(function(e){return e.bNt()}))},s.ANt=function(){s.ayt.UCt.forEach(function(e){return e.ANt()})},s.APt=function(){if(s.ayt.EIt&&s.py>1){var e=s.ayt.MIt;s.bPt>e&&(s.py=1,s.bPt>=e+1&&(s.bPt="start"))}},s.TPt=function(){s.iPt&&(0===s.iPt.EPt()?s.bPt="start":s.bPt=s.SPt(s.LAt))},s.IPt=function(){s.aPt=s.LAt},s.RPt=function(e){s.NPt(),s.iPt.error&&("VEE3"===e.error.info.code&&s.dPt<3?(s.dPt+=1,s.DPt()):s.dispatchEvent({type:"Lh",error:e.error}))},s.CPt=function(){s.dPt=0},s.PPt=function(){s.removeEventListener("BPt",s.OPt),s.sPt?s.OPt():s.addEventListener("BPt",s.OPt)},s.OPt=function(){var e=s.LAt;s.ayt.removeEventListener("qyt",s.PPt),s.ayt.qyt?s.ayt.UCt.forEach(function(r){return r.ENt(e)}):(s.ayt.addEventListener("qyt",s.PPt),s.ayt.zCt())},s.LPt=function(){var e=s.LAt;s.ayt.HCt.forEach(function(r){return r.TNt(e,s.ayt.EIt)})},s.MPt=function(){null!==s.hPt&&p(s.hPt),s.hPt=null,null!==s.cPt&&p(s.cPt),s.cPt=null},s.xPt=function(){s.UPt(),s.ayt.qyt?s.hkt():(s.ayt.addEventListener("qyt",s.xPt),s.ayt.zCt())},s.UPt=function(){s.ayt.removeEventListener("qyt",s.xPt)},s.vyt=function(e){s.ayt.$Et(e.mwt,e.iyt||void 0,e.ivt||void 0),e.ryt&&s.FPt(e.mwt,e.iyt,e.ivt)},s.HPt=function(e){var r=e.oSt-s.oSt;b.abs(r)>.001&&(s.oSt=e.oSt,s.LAt=s.LAt+r)},s.XPt=function(e){var r=e.Fbt.metadata;r.e$&&(s.wPt[e._T]=r.e$,s.VPt())},s.VPt=function(){if(s.ayt.qyt){var e=w.keys(s.wPt).length===s.ayt.UCt.length;s.iPt&&!s.iPt.WPt&&!s.gPt&&e&&s.Zit(),s.iPt&&s.oSt&&(s.iPt.oSt=s.oSt)}},s.qPt=function(){if(A(s.GPt))if(s.ayt.EIt)s.GPt=0;else{var e=s.kPt,r=e&&e.$gt,o=e&&z(r)&&!A(r)&&e.sgt(r)||void 0;s.GPt=PK(o)?o.aAt.Dy():NaN}s.zyt&&(s.removeEventListener("nyt",s.qPt),s.ayt.removeEventListener("Ubt",s.qPt),s.dispatchEvent("zyt",!0))},s.ayt=r,r.wSt=t8(s),s}j(r,e);var s,o,u,a=r.prototype;return a.DPt=function(){this.ayt.EIt?this.bPt="start":(this.aPt+=.5,this.ayt.UCt.map(function(e){e.wNt(),e.SNt(),e.INt()}),this.bPt=this.aPt),this.VPt(),this.iPt.play()},a.zPt=function(e){var r=this;this.fPt&&(this.ayt.removeEventListener("qyt",this.fPt),this.fPt=null),this.ayt.qyt?(this.oPt=!0,this.yPt=!0,this.ayt.jCt(e),this.yPt=!1):(this.fPt=function(){return r.zPt(e)},this.ayt.zCt())},a.jPt=function(e){this.YPt(),this.ayt.EIt&&(e="none"),"auto"===e&&this.xPt()},a.QPt=function(e){var r=this;this.YPt(),"none"!==e&&(this.ayt.qyt?this.jPt(e):(this.vPt=function(){return r.jPt(e)},this.ayt.addEventListener("qyt",this.vPt),this.ayt.zCt()))},a.YPt=function(){this.UPt(),this.vPt&&(this.ayt.removeEventListener("qyt",this.vPt),this.vPt=null)},a.hkt=function(){this.oPt?this.ayt.GCt():(this.bPt=this.ePt,this.ayt.GCt(22)),this.sPt||(this.sPt=!0,this.dispatchEvent("BPt"))},a.ZPt=function(){this.iPt&&(this.iPt.addEventListener("KPt",this.LPt),this.iPt.addEventListener("seeking",this.PPt),this.iPt.addEventListener("error",this.RPt),this.iPt.addEventListener("playing",this.CPt)),this.ayt.addEventListener("nyt",this.vyt),this.ayt.addEventListener("XNt",this.TPt),this.ayt.addEventListener("qyt",this.VPt),this.ayt.addEventListener("sSt",this.HPt),this.ayt.addEventListener("aw",this.PPt),this.T7()},a.JPt=function(){this.iPt&&(this.iPt.removeEventListener("KPt",this.LPt),this.iPt.removeEventListener("seeking",this.PPt),this.iPt.removeEventListener("error",this.RPt),this.iPt.removeEventListener("playing",this.CPt)),this.ayt.removeEventListener("nyt",this.vyt),this.ayt.removeEventListener("XNt",this.TPt),this.ayt.removeEventListener("qyt",this.VPt),this.ayt.removeEventListener("sSt",this.HPt),this.ayt.removeEventListener("aw",this.PPt),this.R7()},a.T7=function(){this.iPt&&(this.iPt.addEventListener("loadstart",this.xPt),this.iPt.addEventListener("timeupdate",this.yNt),this.iPt.addEventListener("playing",this.JDt),this.iPt.addEventListener("timeupdate",this.JDt),this.iPt.addEventListener("timeupdate",this.b
1Nt),this.iPt.addEventListener("timeupdate",this.mNt),this.iPt.addEventListener("timeupdate",this.IPt),this.iPt.addEventListener("timeupdate",this.APt),this.iPt.addEventListener("ended",this.MPt)),this.ayt.addEventListener("Ubt",this.XPt),this.ayt.addEventListener("Ubt",this.ANt)},a.R7=function(){null!==this.hPt&&p(this.hPt),null!==this.cPt&&p(this.cPt),this.iPt&&(this.iPt.removeEventListener("loadstart",this.xPt),this.iPt.removeEventListener("timeupdate",this.yNt),this.iPt.removeEventListener("playing",this.JDt),this.iPt.removeEventListener("timeupdate",this.JDt),this.iPt.removeEventListener("timeupdate",this.bNt),this.iPt.removeEventListener("timeupdate",this.mNt),this.iPt.removeEventListener("timeupdate",this.IPt),this.iPt.removeEventListener("timeupdate",this.APt),this.iPt.removeEventListener("ended",this.MPt)),this.ayt.removeEventListener("Ubt",this.XPt),this.ayt.removeEventListener("Ubt",this.ANt)},s=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._Pt.ec;case 2:return s=this.iPt.h6(r),this.iPt.loading&&(this.iPt.loaded=!0,this.iPt.loading=!1),e.next=6,s;case 6:case"end":return e.stop()}},e,this)})),a.h6=function(e){return s.apply(this,arguments)},a.TH=function(e,r){this.$Pt.TH(e,r)},o=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._Pt.ec;case 3:return e.next=5,this.iPt.gNt(r,s);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),rx(e.t0)||this.dispatchEvent({type:"Lh",error:e.t0});case 10:case"end":return e.stop()}},e,this,[[0,7]])})),a.gNt=function(e,r){return o.apply(this,arguments)},a.Zit=function(){var e=this,r=this._Pt,s=this.tBt(this.gPt,this.lPt.dh);this.gPt=s,s.then(function(){e.gPt===s&&(e.gPt=void 0,r.uc())},function(o){e.gPt===s&&(e.gPt=void 0,r.ac(o))})},u=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=3;break}return e.next=3,r.catch(I);case 3:return rT(s),e.next=6,this.iPt.Zit(this.wPt,this.ayt.ly,s);case 6:if(o=e.sent){e.next=9;break}return e.abrupt("return");case 9:for(u=0,a=this.ayt.HCt;u<a.length;u++)h=a[u],o.Ust&&(h.rNt=o.Ust),o.Fst&&(h.uNt=o.Fst);case 10:case"end":return e.stop()}},e,this)})),a.tBt=function(e,r){return u.apply(this,arguments)},a.NPt=function(){this.lPt.hh(),this.lPt=new rE,this.gPt=void 0,this._Pt=new sG},a.SPt=function(e){var r=this.wp;return r.length?tJ(e,r.start(0),r.end(r.length-1)):0},a.DNt=function(e){var r=this.ayt.ZCt;return r?r.DNt(e):null},a.PIt=function(e){var r=this.ayt.ZCt;return r?r.PIt(e):NaN},a.bc=function(e){this.JPt(),this.ZPt(),this.QPt(e||"none")},a.vkt=function(){this.YPt()},a.Kl=function(){this.Th(),this.wPt={},this.$Pt=null},a.Yg=function(){this.NPt(),this.nBt(),this.wPt={},this.rPt=0,this.aPt=0,this.ePt="start",this.oSt=0,this.uPt=1,this.sPt=!1,this.oPt=!1,this.kPt=null,this.ayt.Yg()},a.FPt=function(e,r,s){if(r){this.dispatchEvent("jyt"),this.R7();var o=!1,u=!1,a=!1;if("Fst"===e){u=!0;var h=this.ayt.ZCt;h&&h.rDt&&(o=!0)}else o=!0,a=!(!s||!s.uri);o&&this.iPt.ryt("audio"),u&&this.iPt.ryt("video"),this.ayt.HCt.forEach(function(e){e.wNt(),o&&e.SNt(),u&&e.INt()}),this.ayt.YCt(u,o,a,22),this.ayt.HCt.forEach(function(e){return e.pNt()}),this.T7()}},a.xm=function(){this.R7(),this.ayt.EIt&&this.ayt.hCt()},a.Mm=function(){this.R7(),this.T7(),this.ayt.ckt()},a.iBt=function(e){var r=this.GPt||0;return this.pwt?e-r<0?0:b.round((e-r)*this.pwt-.5)||0:NaN},a.rBt=function(e){var r=this.GPt||0;return this.pwt?r+(e+.5)/this.pwt:NaN},a.nBt=function(){this.GPt=NaN,this.removeEventListener("nyt",this.qPt),this.addEventListener("nyt",this.qPt),this.ayt.removeEventListener("Ubt",this.qPt),this.ayt.addEventListener("Ubt",this.qPt)},M(r,[{key:"$Pt",get:function(){return this.iPt},set:function(e){this.JPt(),this.NPt(),this.CPt(),this.iPt=e,this.VPt()}},{key:"LAt",get:function(){return this.iPt&&!this.yPt?this.iPt.EPt():this.rPt},set:function(e){e=this.SPt(e),this.aPt=this.rPt=e,this.iPt?this.iPt.eBt(e):(this.LPt(),this.PPt())}},{key:"bPt",get:function(){return this.iPt&&!this.yPt?this.LAt:this.ePt},set:function(e){"start"===e&&(e=this.ayt.EIt?1/0:0),e=this.SPt(e),this.ePt=e,this.aPt=this.rPt=e,this.zPt(lW.Wk(this.rPt)),this.LAt=e}},{key:"Up",get:function(){return this.ayt.aDt},set:function(e){this.ayt.aDt=e}},{key:"py",get:function(){return this.iPt?this.iPt.py:this.uPt},set:function(e){var r=this.uPt;e>0&&(this.uPt=e,this.iPt&&(this.iPt.py=e),this.ayt.BAt=e,this.uPt!==r&&this.dispatchEvent("uBt"))}},{key:"wp",get:function(){var e=this.ayt.wp;if(!e.length||!this.ayt.EIt)return e;var r=e.start(0),s=this.ayt.MIt;return new IM([{bC:r,EC:s=b.max(this.LAt,s)}])}},{key:"ep",get:function(){return this.DNt(this.LAt)}},{key:"pwt",get:function(){var e=this.kPt;return e&&e.pwt||NaN}},{key:"GPt",get:function(){return this.mPt},set:function(e){this.mPt!==e&&(this.dispatchEvent(new Dg(e)),this.mPt=e)}},{key:"zyt",get:function(){return!!this.pwt&&!A(this.GPt)}}]),r}(PD),Dw=function(e){function r(r){var s;
1return(s=e.call(this)||this).sBt=null,s.Uyt=void 0,s.M8=[],s.oBt=function(e){return s.aBt(e)},s.hBt=function(){return s.cBt()},s.Uyt=r,s.M8=[],s}j(r,e);var s=r.prototype;return s.RS=function(e){var r,s;"metadata"===e.kind&&(e.mode=fk.ww,r=this.Uyt.Hwt(e.id,e.inBandMetadataTrackDispatchType),s=this.fBt.bind(this,r),this.M8.push({vBt:e,dBt:s,Swt:r}),e.addEventListener("cuechange",s))},s.iI=function(){for(var e=this.sBt.Om,r=e&&e.length,s=0;s<r;s+=1)this.RS(e[s]);e&&e.addEventListener&&(e.addEventListener("addtrack",this.oBt),e.addEventListener("change",this.hBt))},s.fBt=function(e,r){for(var s=r.target.activeCues,o=s.length,u=o?s[0].startTime:0,a=0;a<o;a++){var h=new E1(u,E$(s[a].value));e.DS(h)}},s.cBt=function(){for(var e=0,r=this.M8;e<r.length;e++){var s=r[e].vBt;s.mode!==fk.ww&&(s.mode=fk.ww)}},s.aBt=function(e){this.RS(e.track)},s.lBt=function(){for(var e=this.sBt,r=e&&e.Om,s=0,o=this.M8;s<o.length;s++){var u=o[s];u.vBt.removeEventListener("cuechange",u.dBt)}this.M8.length=0,r&&r.removeEventListener&&(r.removeEventListener("addtrack",this.oBt),r.removeEventListener("change",this.hBt))},s.Kl=function(){this.lBt(),this.sBt=null,this.Uyt=null,this.oBt=null,this.hBt=null},s.Yg=function(){this.lBt(),this.sBt&&this.iI()},r}(PD),Db=function(e){function r(r){var s;return(s=e.call(this)||this).ayt=void 0,s._Bt=void 0,s.iPt=null,s.ePt="start",s.uPt=1,s.r_=!1,s.gBt=null,s.wBt=null,s.yBt=NaN,s.kBt=NaN,s.mBt=null,s.pBt=function(){s.iPt.removeEventListener("loadstart",s.pBt),s.iPt.removeEventListener("play",s.pBt),s.ayt.zCt()},s.yNt=function(){var e=s.ayt.Uyt.rlt;if(e&&(!s.gBt||s.gBt.bC>s.LAt||s.gBt.EC<s.LAt)){var r=s.ayt.rS.eTt(e,lW.Wk(s.LAt));if(!r)return void s.iPt.addEventListener("timeupdate",s.yNt);s.gBt={bC:r.CIt.Dy(),EC:r.CIt.Wy(lW.Wk(r.bT.duration)).Dy(),nat:r.bT.nat,Uot:null},s.dispatchEvent({type:"kNt",aS:r.bT})}},s.JDt=function(){var e=s.ayt.Uyt,r=e.xst.Tgt.length?e.xst.Tgt:e.Zat.Tgt,o=s.iPt.Ty,u=s.iPt.by,a=r&&r.filter(function(e){var r=e.resolution;return r&&r.width===o&&r.height===u}),h=a&&a.length?a[0]:null;h!==s.wBt&&(s.wBt=h,s.dispatchEvent({type:"nyt",ivt:h}))},s.ABt=function(e){s.dispatchEvent({type:"nyt",ivt:e.ivt})},s.bBt=function(){if(s.iPt){var e=s.iPt.wp,r=e.length?e.end(e.length-1):NaN;isFinite(r)&&r!==s.kBt&&(s.kBt=r,s.yBt=wD())}},s.TBt=function(){s.r_=!0},s.EBt=function(){s.r_&&(s.r_=!1,s.SBt())},s.ayt=r,s._Bt=new Dw(r.Uyt),r.addEventListener("r_",s.TBt),r.addEventListener("lp",s.EBt),s}j(r,e);var s=r.prototype;return s.SPt=function(e){var r=this.iPt.wp;return r.length?tJ(e,r.start(0),r.end(r.length-1)):0},s.SBt=function(){if(this.iPt){var e=this.iPt.currentTime,r=this.iPt.paused;this.iPt.load(),this.iPt.currentTime=e,r||this.iPt.play()}},s.IBt=function(){this.iPt&&(this.iPt.addEventListener("loadstart",this.pBt),this.iPt.addEventListener("play",this.pBt),this.iPt.addEventListener("timeupdate",this.yNt),this.iPt.addEventListener("timeupdate",this.JDt),d(this.mBt),this.mBt=v(this.bBt,250))},s.RBt=function(){d(this.mBt),this.iPt&&(this.iPt.removeEventListener("loadstart",this.pBt),this.iPt.removeEventListener("play",this.pBt),this.iPt.removeEventListener("timeupdate",this.yNt),this.iPt.removeEventListener("timeupdate",this.JDt))},s.bc=function(e){e=e||"none",this.RBt(),this.IBt(),this.ayt.removeEventListener("tPt",this.ABt),this.ayt.addEventListener("tPt",this.ABt),"none"!==e&&this.pBt()},s.Kl=function(){this.Th(),this._Bt.Kl(),this.$Pt=null,this.ayt.removeEventListener("tPt",this.ABt)},s.Yg=function(){this.ePt="start",this.uPt=1,this.r_=!1,this.gBt=null,this.wBt=null,this.yBt=NaN,this.kBt=NaN,d(this.mBt),this._Bt.Yg()},s.Mm=function(){},s.xm=function(){},s.vkt=function(){},s.FPt=function(){},s.PIt=function(e){var r=this.ayt.Uyt.rlt;return this.ayt.rS.PIt(r,e).Dy()},s.DNt=function(e){var r,s,o=this.ayt.Uyt.rlt,u=this.ayt.rS,a=this.gBt;if(a)a.Uot||(a.Uot=u.DIt(o,a.nat)),r=a.bC,s=a.Uot;else{var h=u.eTt(o,lW.Wk(e));if(!h)return null;r=h.CIt.Dy(),s=u.DIt(o,h.bT.nat)}if(!s)return null;var c=e-r;return new Date(s.getTime()+1e3*c)},s.iBt=function(e){return NaN},s.rBt=function(e){return NaN},M(r,[{key:"NBt",get:function(){return null}},{key:"ep",get:function(){return this.DNt(this.LAt)}},{key:"$Pt",get:function(){return this.iPt},set:function(e){this.RBt(),this.iPt=e,this.iPt&&(this._Bt.sBt=this.iPt,this._Bt.iI())}},{key:"bPt",get:function(){return this.iPt?this.iPt.EPt():this.ePt},set:function(e){"start"===e&&(e=this.ayt.EIt?1/0:0),e=this.SPt(e),this.ePt=e,this.iPt&&this.iPt.eBt(e)}},{key:"LAt",get:function(){return this.bPt},set:function(e){e=this.SPt(e),this.bPt=e}},{key:"Up",get:function(){return 1/0},set:function(e){}},{key:"py",get:function(){return this.iPt?this.iPt.py:this.uPt},set:function(e){e>0&&(this.uPt=e,this.iPt&&(this.iPt.py=e))}},{key:"wp",get:function(){var e,r,s,o=this.iPt?this.iPt.wp:null,u=this.ayt.rS.wp;if(o&&o.length&&u.length)e=o.start(0),r=(s=this.kBt||o.end(o.length-1))+this.ayt.rS.G3.Dy(),isFinite(this.yBt)&&(s+=(wD()-this.yBt)/1e3);else{if(o&&o.length)return o;if(!u.length)return u;e=o.start(0),r=u.end(u.length-1),s=this.ayt.rS.MIt.Dy()}return s=b.min(r,s),new IM([{bC:e,EC:s=b.max(this.LAt,s)}])}},{key:"pwt",get:function(){return NaN}},{key:"GPt",get:function(){return NaN}},{key:"zyt",get:function(){return!1}}]),r}(PD),Dk=function(r){function s(e,s,o,u,a,h){var c;return(c=r.call(this,e,s,o,u)||this).DBt=new rE,c.CBt=void 0,c.ES=void 0,c.PBt=function(){return c.BBt()}
1,c.Ua=po.WEBVTT,c.bw=ps.NONE,c.Sw=nz(a),c.kh(cZ.Pg,c.PBt),c.ES=h,c}j(s,r);var o,u=s.prototype;return u.bc=function(){this.Sw&&!this.CBt&&(this.CBt=this.q_(this.DBt.dh),this.CBt.catch(rS))},o=P.coroutine(iO.mark(function e(r){var s,o,u,a;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=this.Sw,e.prev=1,this.bw=ps.LOADING,o=new hP({Il:s,ql:hk.GET,Al:up.Ku,dh:r}),e.next=6,this.ES.El(o);case 6:return u=e.sent,e.next=9,u.Fs();case 9:a=e.sent,this.Dkt(u,a),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(1),rC(e.t0),this.J6(v4(e.t0,this.Sw));case 17:case"end":return e.stop()}},e,this,[[1,13]])})),u.q_=function(e){return o.apply(this,arguments)},u.vkt=function(){this.bw!==ps.LOADED&&(this.bw=ps.NONE,this.DBt.hh(),this.DBt=new rE,this.CBt=void 0)},u.J6=function(e){this.bw=ps.ERROR,this.yh(new lm(e))},u.Kl=function(){this.vkt(),this.DBt.rh(),r.prototype.Kl.call(this)},u.BBt=function(){switch(this.Aw){case fk.yw:case fk.ww:this.bc();break;case fk.gw:this.vkt()}},u.Dkt=function(r,s){try{for(var o=p9(s).Tw,u=0;u<o.length;u++){var a=o[u];this.DS(a)}this.bw=ps.LOADED}catch(s){this.J6(new vQ(e.ErrorCode.SUBTITLE_PARSE_ERROR,"Could not parse the "+v6(this.Ua)+" subtitle file.",this.Sw,r.wl,s))}},s}(Eu),DE=function(){function e(e,r,s,o){this.OBt=void 0,this.Om=void 0,this.LBt=void 0,this.ES=void 0,this.OBt=e,this.Om=s,this.LBt=r,this.ES=o,this.Yg()}var r=e.prototype;return r.MBt=function(e){if(this.xBt(),e)if(this.LBt)for(var r=0;r<e.length;r++){var s=e[r];this.BD(s)}else for(var o=0;o<e.length;o++){var u=e[o];this.UBt(u)}},r.BD=function(e){var r=vY(e.kind);if(v3(r,e.label||""));else{var s=h.createElement("track");s.kind=r,s.label=e.label,s.src=e.src,s.srclang=e.srclang,s.default=!!e.default,this.OBt.appendChild(s)}},r.UBt=function(e){var r=new Dk(vY(e.kind),e.id,e.label,e.srclang,e.src,this.ES);e.default&&(r.Aw=fk.yw),this.Om.Gg(r)},r.xBt=function(){for(var e=this.Om.Qg,r=e.length-1;r>=0;r--){var s=e[r];"static"===s.FBt&&this.Om.zg(s)}},r.HBt=function(){this.xBt()},r.Yg=function(){this.xBt()},e}(),DA=function(){function e(e){this.Zyt=void 0,this.Zyt=e}var r=e.prototype;return r.kh=function(e,r){this.Zyt.addEventListener(e,r)},r.Eh=function(e,r){this.Zyt.removeEventListener(e,r)},M(e,[{key:"vy",get:function(){return this.Zyt.currentTime}},{key:"yy",get:function(){return this.Zyt.paused}},{key:"Ay",get:function(){return this.Zyt.seeking}}]),e}(),Dx=function(e){function r(r,s){var o;(o=e.call(this)||this).XBt=void 0,o.Om=void 0,o.VBt=void 0,o.WBt=void 0,o.iPt=void 0,o.qBt=!0,o.GBt=function(e){return o.zBt(e)},o.jBt=function(){return o.YBt()},o.QBt=function(){return o.ZBt()},o.KBt=function(){return o.JBt()},o.oBt=function(e){return o.aBt(e.yg)},o.$Bt=function(e){return o.tOt(e.yg)},o.nOt=function(){return o.iOt()},o.XBt=r,o.Om=s,o.XBt.addEventListener("seeking",o.nOt),o.XBt.addEventListener("seeked",o.nOt),o.VBt=new E0(new DA(r));for(var u=0,a=o.Om.Qg;u<a.length;u++){var h=a[u];o.aBt(h)}return o.Om.kh(cG.cg,o.oBt),o.Om.kh(cG.vg,o.$Bt),o}j(r,e);var s=r.prototype;return s.zBt=function(e){this.Om.Gg(e.yg)},s.YBt=function(){for(var e=this.Om.Qg,r=e.length-1;r>=0;r--){var s=e[r];"static"!==s.FBt&&this.Om.zg(s)}},s.ZBt=function(){var e=this.$Pt,r=[],s=e&&e.Om;if(s)for(var o=0;o<s.length;o++){var u=s[o]||s.item(o);if("metadata"!==u.kind){var a=u.THEOplayerTextTrack;if(!a){var h=this.hG(u);a=new EJ(u,h,this.FW),u.THEOplayerTextTrack=a,this.Om.Gg(a)}r.push(a)}}for(var c=0,f=this.Om.Qg;c<f.length;c++){var l=f[c];EQ(l)&&-1===r.indexOf(l)&&this.Om.zg(l)}},s.hG=function(e){for(var r=this.$Pt.sp.getElementsByTagName("track"),s=0;s<r.length;s++){var o=r[s]||r.item(s);if(o.track===e)return o}},s.JBt=function(){for(var e=0,r=this.Om.Qg;e<r.length;e++){var s=r[e];EQ(s)&&s.HW()}},s.iOt=function(){this.rOt()},s.aBt=function(e){e instanceof Eu&&this.VBt.Gg(e)},s.tOt=function(e){e instanceof Eu&&this.VBt.zg(e)},s.rOt=function(){var e=this.Om.Qg;if(e.length)for(var r=this.XBt.seekable,s=r.length?r.start(0):0,o=0;o<e.length;o++){var u=e[o];if(u instanceof Eu){for(var a=[],h=0,c=u.Tw.Qg;h<c.length;h++){var f=c[h];if(!(f.Up<s))break;a.push(f)}for(var l=0;l<a.length;l++){var p=a[l];u.bS(p)}}}},s.Kl=function(){this.XBt.removeEventListener("seeking",this.nOt),this.XBt.removeEventListener("seeked",this.nOt);for(var e=0,r=this.Om.Qg;e<r.length;e++){var s=r[e];this.tOt(s)}this.Om.Eh(cG.cg,this.oBt),this.Om.Eh(cG.vg,this.$Bt),this.VBt.Kl(),this.Uyt=null,this.$Pt=null},M(r,[{key:"Uyt",get:function(){return this.WBt},set:function(e){var r=this.WBt;if(r){for(var s=0,o=r.Om;s<o.length;s++){var u=o[s];this.Om.zg(u)}r.removeEventListener("Xwt",this.GBt),r.removeEventListener("Kl",this.jBt)}if(this.WBt=e,e){for(var a=0,h=e.Om;a<h.length;a++){var c=h[a];this.Om.Gg(c)}e.addEventListener("Xwt",this.GBt),e.addEventListener("Kl",this.jBt)}}},{key:"$Pt",get:function(){return this.iPt},set:function(e){var r=this.iPt;r&&r.Om&&r.Om.removeEventListener&&(r.Om.removeEventListener("addtrack",this.QBt),r.Om.removeEventListener("removetrack",this.QBt),r.Om.removeEventListener("change",this.KBt)),this.iPt=e,e&&e.Om&&e.Om.addEventListener&&(e.Om.addEventListener("addtrack",this.QBt),e.Om.addEventListener("removetrack",this.QBt),e.Om.addEventListener("change",this.KBt)),this.ZBt(),this.JBt()}},{key:"FW",get:function(){return this.qBt},set:function(e){if(this.qBt!==e){this.qBt=e;for(var r=0,s=this.Om.Qg;r<s.length;r++){var o=s[r];EQ(o)&&(o.FW=e)}}}}]),r}(PD),DT=function(){function e(e,r){this.Yl=void 0,this.hg=void 0,this.eOt=[],this.uOt=new oM,this.sOt=iM(),this.oOt=new rE,this.Yl=!(!e||e.crossOrigin!==fK.Ww&&!e.aOt),this.hg=r}var r,s=e.prototype;return r=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f,l,p;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(o=_._o(r),u=0,a=this.eOt;u<a.length;u++)null===(h=a[u]).gs||void 0===h.gs?o.searchParams.delete(h.cOt):o.searchParams.set(h.cOt,h.gs);return e.prev=2,c=new hP({Il:o.href,Al:up.Iv,yl:this.uOt,Yl:this.Yl,ql:hk.GET,dh:s,Ua:hE.Pl,zl:hA.Hl}),e.next=6,this.hg.El(c);case 6:return f=e.sent,e.next=9,f.Fs();case 9:return l=new x(e.sent),p=new x(16),16!==l.length&&tb("AES-128 decryption key length must be 16 bytes, but was "+l.length+" b
1ytes. URL: ",o.href),l.length>16&&(l=sq(l,0,16)),p.set(l,16-l.length),e.abrupt("return",p);case 19:throw e.prev=19,e.t0=e.catch(2),rC(e.t0),new y('Playback has been stalled due to failure to retrieve encryption key from "'+o.href);case 23:case"end":return e.stop()}},e,this,[[2,19]])})),s.hOt=function(e,s){return r.apply(this,arguments)},s.getKey=function(e){var r=e.absoluteURI;if(!r)return P.reject(new PH(Pj.P_t,{code:"CAD1603"}));var s=this.sOt.get(r);return s||(s=this.hOt(r,this.oOt.dh),this.sOt.set(r,s)),s},s.Kl=function(){this.oOt.hh(),this.sOt.clear()},s.fOt=function(e,r){this.eOt.push({cOt:e,gs:r})},s.vOt=function(e,r){this.uOt.append(e,r)},e}(),DC=function(e){this.XBt=void 0,this.XBt=e},DS=h.createElement("video"),DR=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.MDt=function(e){return!!DS.canPlayType('video/mp4;codecs="'+e.codecs+'"')||(e.disabled="AvoidUnsupportedCodecsRule",!1)},r}(DC);PU.ju.WF("AvoidUnsupportedCodecsRule",DR);var DL=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.MDt=function(e,r,s,o){return"MTt"!==o.jbt||e.bandwidth<2e6},r}(DC);PU.ju.WF("AvoidHighBitrateStreamsRule",DL);var D_=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.dOt=function(e){if(!e.resolution)return!0;var r=this.XBt.element.getBoundingClientRect(),s=a.innerWidth||h.documentElement.clientWidth,o=a.innerHeight||h.documentElement.clientHeight,u=b.max(0,b.min(r.right,s)-b.max(0,r.left)),c=b.max(0,b.min(r.bottom,o)-b.max(0,r.top)),f=_.oa.Ro;return e.resolution.width<=u*f&&e.resolution.height<=c*f},s.MDt=function(e){return this.dOt(e)},r}(DC);PU.ju.WF("AvoidVideoResolutionGreaterThanDisplaySizeRule",D_);var DP=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.MDt=function(e,r,s){if(s.N5<=0)return!1;var o=s&&.8*s.N5;return!(o&&!A(o)&&e.bandwidth)||o>e.bandwidth*this.XBt.playbackRate},r}(DC);PU.ju.WF("DownloadMetricRule",DP);var DI=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.MDt=function(e){return!0},r}(DC);PU.ju.WF("LimitVideoQualityToDisplaySizeRule",DI);var DN=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.MDt=function(e,r){return!r||r.mwt===I5.Nl||e.mwt===I5.Nl||r.mwt===I5.vgt||e.mwt===I5.vgt||r.mwt===e.mwt},r}(DC);function DO(e){return!!e&&"object"==typeof e&&"src"in e&&"type"in e}function DD(e,r){for(var s in e)tn(e[s])?(r[s]=r[s]||{},DD(e[s],r[s])):G.call(r,s)||(r[s]=e[s]);return r}function DU(e){ts(e)&&e.then(I,I)}PU.ju.WF("OnlyAllowSameTrackTypeRenditionsRule",DN);var DM,DF,Dj=["abort","durationchange","ended","loadstart","pause","play","progress","ratechange","seeked","seeking","suspend","timeupdate","volumechange","webkitpresentationmodechanged"],DH=function(e){function r(r,s){var o;return(o=e.call(this)||this).lOt=void 0,o.JR=void 0,o._Ot=void 0,o.JN=void 0,o.loading=!1,o.loaded=!1,o.configuration={useNativeVideoPlayback:!0},o.kI=function(){var e=o.JR.pD.error&&o.JR.pD.error.code;e&&o.J6(new PH(Pj.N_t,{code:"VEE"+e}))},o.gOt=function(e){o.dispatchEvent({type:e.type,error:o.JR.pD.error})},o.wOt=function(){p(o._Ot),o._Ot=void 0,o.JR.pD.removeEventListener("timeupdate",o.wOt),o.JR.Eh(f7.oy,o.wOt)},o.yOt=function(){void 0!==o._Ot&&o.wOt(),o._Ot=l(function(){o.JR.pD.currentTime+=.1,o.wOt()},500),o.JR.pD.addEventListener("timeupdate",o.wOt),o.JR.kh(f7.oy,o.wOt)},o.kOt=function(){switch(o.JR.pD.readyState){case f1.Zw:case f1.Kw:case f1.Jw:o.yOt();case f1.Qw:case f1.Yw:}},o.lOt=r,o.JR=s,o}j(r,e);var s=r.prototype;return s.setup=function(){this.Fwt(),this.JR.pD.parentNode!==this.lOt&&this.lOt.appendChild(this.JR.pD),this.loaded=!1,this.JR.pD.preload="metadata",this.JR.pD.addEventListener("play",this.kOt),this.JR.pD.addEventListener("loadeddata",this.kOt),this.dispatchEvent("mOt")},s.Fwt=function(){for(var e=0;e<Dj.length;e++){var r=Dj[e];this.JR.pD.addEventListener(r,this.gOt,!0)}this.JR.pD.addEventListener("error",this.kI,!0),this.JR.kh(f7.Og,this.gOt),this.JR.kh(f7.oy,this.gOt)},s.pOt=function(){for(var e=0;e<Dj.length;e++){var r=Dj[e];this.JR.pD.removeEventListener(r,this.gOt,!0)}this.JR.pD.removeEventListener("error",this.kI,!0),this.JR.Eh(f7.Og,this.gOt),this.JR.Eh(f7.oy,this.gOt)},s.J6=function(e){this.JN=e,this.dispatchEvent({type:"error",error:e})},s.h6=function(){return P.resolve()},s.load=function(){this.JR.pD.load(),this.loaded=!0},s.unload=function(){return this.wOt(),this.Th(),this.pOt(),this.JR.pD.removeEventListener("play",this.kOt),this.JR.pD.removeEventListener("loadeddata",this.kOt),ip(this.JR.pD),this.JR.pD},s.play=function(){var e=this.py;DU(this.JR.pD.play()),this.py=e},s.pause=function(){this.JR.pD.pause()},s.Um=function(){this.pause()},s.reset=function(){this.loading=!1,this.loaded=!1;try{this.eBt(0)}catch(e){}this.dispatchEvent("reset")},s.Qm=function(){return this.JR.pD},s.EPt=function(){return this.JR.pD.currentTime},s.eBt=function(e){this.JR.pD.currentTime=e},s.canPlayCodecs=function(e){return this.JR.pD.canPlayType('video/mp4; codecs="'+e+'"')},M(r,[{key:"WPt",get:function(){return!0}},{key:"sp",get:function(){return this.JR.pD}},{key:"rp",get:function(){return this.JR.pD.buffered}},{key:"Ey",get:function(){return this.JR.pD.volume},set:function(e){this.JR.pD.volume=e}},{key:"duration",get:function(){return this.JR.pD.duration}},{key:"muted",get:function(){return this.JR.pD.muted},set:function(e){this.JR.pD.muted=e}},{key:"paused",get:function(){return this.JR.pD.paused}},{key:"played",get:function(){return this.JR.pD.played}},{key:"poster",get:function(){return this.JR.pD.poster},set:function(e){e?this.JR.pD.poster=e:this.JR.pD.removeAttribute("poster")}},{key:"controls",get:function(){return this.JR.pD.controls},set:function(e){e?this.JR.pD.controls=e:this.JR.pD.removeAttribute("controls")}},{key:"ended",get:function(){return this.JR.pD.ended}},{key:"seeking",get:function(){return this.JR.pD.seeking}},{key:"error",get:function(){return this.JR.pD.error}},{key:"width",get:function(){return this.JR.pD.offsetWidth}},{key:"height",get:function(){return this.JR.pD.offsetHeight}},{key:"src",get:function(){return this.JR.pD.src},set:function(e){this.JR.pD.src=e}},{key:"Ty",get:function(){return this.JR.pD.videoWidth}},{key:"by",get:function(){return this.JR.pD.videoHeight}},{key:"Om",get:function(){return this.JR.pD.textTracks}},{key:"EIt",get:function(){return this.JR.pD.duration===1/0}},{key:"wp",get:function(){var e=this.JR.pD.seekable,r=e.length&&e.start(0)||0,s=e.length&&e.end(e.length-1)||0;return s===1/0&&(s=this.EPt()||0),new IM([{bC:r,EC:s}])}},{key:"py",get:function(){return this.JR.pD.playbackRate},set:function(e){e>0&&(this.JR.pD.playbackRate=e)}},{key:"bw",get:function(){return this.JR.bw}},{key:"AOt",get:function(){return void 0!==this.JR.pD.webkitSupportsPresentationMode&&this.JR.pD.webkitSupportsPresentationMode("picture-in-picture")}},{key:"bOt",get:function(){return"picture-in-picture"===this.JR.pD.webkitPresentationMode}},{key:"TOt",get:function(){return this.JR.pD.webkitPresentationMode},set:function(e){["inline","picture-in-picture","fullscreen"].indexOf(e)>-1&&this.JR.pD.webkitSetPresentationMode(e)}}]),r}(PD);(D9=DF||(DF={}))[D9.EOt=0]="EOt",D9[D9.SOt=1]="SOt",D9[D9.gZ=2]="gZ",D9[D9.IOt=3]="IOt",D9[D9.ROt=4]="ROt";var DB=function(){function e(){this.NOt=!1,this.DOt=null,this.COt=null,this.POt=null,this.xS=[],this.BOt=null}var r,s,o,u,a,h,c=e.prototype;return c.OOt=function(){if(!this.NOt)return!1;for(var e=this.DOt,r=this.COt,s=0;s<e.sourceBuffers.length;s++)if(e.sourceBuffers[s]===r)return!0;return!1},c.LOt=function(e){switch(e.Ua){case DF.EOt:return this.MOt(e.Fs,e.CIt,e.lL);case DF.SOt:return this.xOt(e.UOt);case DF.gZ:return this.FOt(e.HOt,e.XOt);case DF.IOt:return this.US();case DF.ROt:return this.VOt(e.lL)}},r=P.coroutine(iO.mark(function e(r,s,o){var u;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u=this.COt,A(s)||(u.timestampOffset=s),u.appendBuffer(r),e.next=6,this.WOt();case 6:o(),e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(0),o(e.t0),e.t0;case 13:case"end":return e.stop()}},e,this,[[0,9]])})),c.MOt=function(e,s,o){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r){var s,o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((o=(s=this.COt).buffered).length>0)||(u=o.start(0),!((h=(a=b.min(o.end(0),r))-u)>.5||a<=r&&h>0))){e.next=11;break}return s.remove(u,a),e.next=11,this.WOt();case 11:case"end":return e.stop()}},e,this)})),c.xOt=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.DOt,!((a=(u=(o=this.COt).buffered).length)>0)||(h=b.max(u.start(0),r),!((c=b.min(u.end(a-1),s))-h>0))){e.next=12;break}return o.remove(h,c),e.next=12,this.WOt();case 12:case"end":return e.stop()}},e,this)})),c.FOt=function(e,r){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(){var r,s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.DOt,s=this.COt,r.open&&"open"===r.readyState){e.next=4;break}return e.abrupt("return");case 4:if(e.prev=4,o=s.updating,s.abort(),!o){e.next=10;break}return e.next=10,cJ(s,"updateend");case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4);case 15:case"end":return e.stop()}},e,this,[[4,12]])})),c.US=function(){return u.apply(this,arguments)},c.VOt=function(e){return P.resolve(e())},a=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.fV(r)){e.next=5;break}return e.next=3,rU(100);case 3:e.next=0;break;case 5:case"end":return e.stop()}},e,this)})),c.qOt=function(e){return a.apply(this,arguments)},c.fV=function(e){var r=this.DOt;if(!r.open||"open"!==r.readyState||!this.OOt())return!0;for(var s=0;s<r.sourceBuffers.length;s++)if(r.sourceBuffers[s].updating)return!1;return e?r.endOfStream(e):r.endOfStream(),!0},c.WOt=function(){var e=this;return new P(function(r,s){var o,u=e.COt,a=!1,h=function(){a=!0},c=function(){a=!1,o="error"},f=function(){a=!1,o="aborted"},l=function(){p(),a&&!o?r():s(new y(o))},p=function(){u.removeEventListener("update",h),u.removeEventListener("error",c),u.removeEventListener("abort",f),u.removeEventListener("updateend",l)};u.addEventListener("update",h),u.addEventListener("error",c),u.addEventListener("abort",f),u.addEventListener("updateend",l)})},c.GOt=function(){var e=this;this.POt||(0!==this.xS.length||this.BOt)&&this.OOt()&&(this.POt=this.zOt().then(function(){e.POt=null}))},h=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0;case 1:if(!(this.xS.length>0)){e.next=9;break}if(this.OOt()){e.next=4;break}return e.abrupt("return");case 4:return r=this.xS.shift(),e.next=7,this.LOt(r);case 7:e.next=1;break;case 9:e.next=16;break;case 11:return e.prev=11,e.t0=e.catch(0),e.next=16,this.qOt("decode").catch(I);case 16:if(!this.BOt){e.next=26;break}return e.prev=17,e.next=20,this.qOt(this.BOt.Lh);case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(17);case 25:this.BOt=null;case 26:case"end":return e.stop()}},e,this,[[0,11],[17,22]])})),c.zOt=function(){return h.apply(this,arguments)}
1,c.iI=function(e,r){this.NOt||(this.NOt=!0,this.DOt=e,this.COt=r,this.GOt())},c.Wy=function(e,r,s){this.xS.push({Ua:DF.EOt,Fs:e,CIt:r,lL:s}),this.GOt()},c.jOt=function(e,r){this.xS.push({Ua:DF.gZ,HOt:e,XOt:r}),this.GOt()},c.YOt=function(e){this.xS.push({Ua:DF.SOt,UOt:e}),this.GOt()},c.hh=function(){this.xS.push({Ua:DF.IOt}),this.GOt()},c.QOt=function(e){this.xS.push({Ua:DF.ROt,lL:e}),this.GOt()},c.gNt=function(e){this.BOt={Lh:e},this.GOt()},c.Yh=function(){this.xS.length=0,this.BOt=null},e}(),DV=function(e){function r(r){var s;return(s=e.call(this)||this).DOt=void 0,s.COt=null,s.ZOt=new DB,s.Up=NaN,s.KOt=null,s.wh=function(e){return s.dispatchEvent(e)},s.JOt=function(){return s.Obt()},s.DOt=r,s.Yg(),s}j(r,e);var s=r.prototype;return s.$Ot=function(e){if(e)return this.dispatchEvent({type:"error",error:e})},s.h6=function(e,r,s,o){var u=this;if(!this.COt||!r)return P.resolve();var a=r.initializer.Fs,h=function(e,r){if(!e)return!0;var s=e.length;if(s!==r.length)return!0;for(var o=0;o<s;o+=1)if(e[o]!==r[o])return!0;return!1}(this.KOt,a);if(o&&(Q.Ou||this.ZOt.hh()),o)if(Q.Ou);else{var c=e&&e.bC,f=e&&e.bC+e.ly-.5;this.ZOt.jOt(c,f)}return h&&(this.ZOt.Wy(a,s,this.$Ot.bind(this)),this.KOt=a),new P(function(e,o){u.ZOt.Wy(r.m4s.Fs,s,function(r){r?o(r):e()})})},s.bH=function(){var e=this;return new P(function(r){e.ZOt.QOt(function(){var s=e.rp;s&&s.length&&(e.Up=s.end(s.length-1)),r()})})},s.yV=function(e){if(!this.COt){try{this.COt=this.DOt.addSourceBuffer(e),this.COt.addEventListener("updatestart",this.wh),this.COt.addEventListener("updateend",this.wh)}catch(e){return this.dispatchEvent({type:"error",error:e}),!1}this.DOt.addEventListener("sourceclose",this.JOt),this.ZOt.iI(this.DOt,this.COt)}return!0},s.OOt=function(){for(var e=0;e<this.DOt.sourceBuffers.length;e++)if(this.DOt.sourceBuffers[e]===this.COt)return!0;return!1},s.Tc=function(e){var r=this,s=this.rp;if(!(this.COt&&s&&s.length))return e&&e();this.COt.remove(0,s.end(s.length-1)),e&&this.COt.addEventListener("updateend",function s(o){r.COt.removeEventListener("updateend",s),e()})},s.Yg=function(e){this.KOt=null,this.Up=NaN,this.Obt(),this.Tc(e)},s.YOt=function(e){this.COt&&this.ZOt.YOt(e)},s.gNt=function(e){this.COt&&this.ZOt.gNt(e)},s.Obt=function(){this.ZOt.Yh(),"open"===this.DOt.readyState&&this.COt&&this.COt.updating&&this.COt.abort()},M(r,[{key:"rp",get:function(){return this.COt&&this.OOt()?new IM(Iq(this.COt.buffered)):null}},{key:"KL",get:function(){return this.COt&&this.COt.updating}},{key:"_y",get:function(){var e=this.rp;return!e||!A(this.Up)&&IX(e,this.Up)}}]),r}(PD),DX="mp4a.40.34",DW=function(e){function r(r){var s;return(s=e.call(this)||this).mediasource=void 0,s.audioTrackBuffer=void 0,s.videoTrackBuffer=void 0,s.tLt=!1,s.zP=function(){var e=s.tLt;s.tLt=s.KL,!e&&s.tLt?s.dispatchEvent("updatestart"):e&&!s.tLt&&s.dispatchEvent("updateend")},s.mediasource=r,s.audioTrackBuffer=new DV(r),s.videoTrackBuffer=new DV(r),s.audioTrackBuffer.addEventListener("updatestart",s.zP),s.videoTrackBuffer.addEventListener("updatestart",s.zP),s.audioTrackBuffer.addEventListener("updateend",s.zP),s.videoTrackBuffer.addEventListener("updateend",s.zP),s.Yg(),s}j(r,e);var s,o,u=r.prototype;return s=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediasource.open){e.next=2;break}return e.abrupt("return");case 2:return s=[],r.Ust&&s.push(this.audioTrackBuffer.h6(r.metadata.Ust,r.Ust,r.metadata.Ust&&r.metadata.Ust.bmt===DX?r.metadata.Ust.bC:NaN,r.metadata.hpt)),r.Fst&&s.push(this.videoTrackBuffer.h6(r.metadata.Fst,r.Fst,NaN,r.metadata.hpt)),e.next=7,P.all(s);case 7:this._y&&(this.audioTrackBuffer.gNt(),this.videoTrackBuffer.gNt());case 8:case"end":return e.stop()}},e,this)})),u.h6=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(r,s){var o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=[],r&&o.push(this.audioTrackBuffer.bH()),s&&o.push(this.videoTrackBuffer.bH()),e.next=5,P.all(o);case 5:this._y&&(this.audioTrackBuffer.gNt(),this.videoTrackBuffer.gNt());case 6:case"end":return e.stop()}},e,this)})),u.gNt=function(e,r){return o.apply(this,arguments)},u.iI=function(e){var r,s={};for(var o in e)if(G.call(e,o)){var u=e[o];if(u.Fst){var a='video/mp4; codecs="'+u.Fst+'"';this.videoTrackBuffer.yV(a),s.Fst=this.videoTrackBuffer}if(u.Ust){var h=(r=u.Ust)!==DX||gP?'audio/mp4; codecs="'+r+'"':"audio/mpeg";this.audioTrackBuffer.yV(h),s.Ust=this.audioTrackBuffer}}return s},u.Yg=function(e){var r=!1,s=!1;this.tLt=!1,this.audioTrackBuffer.Yg(function(){if(r=!0,s&&e)return e()}),this.videoTrackBuffer.Yg(function(){if(s=!0,r&&e)return e()})},u.YOt=function(e){this.audioTrackBuffer.YOt(e),this.videoTrackBuffer.YOt(e)},u.Obt=function(e){e&&-1===e.indexOf("audio")||this.audioTrackBuffer.Obt(),e&&-1===e.indexOf("video")||this.videoTrackBuffer.Obt()},M(r,[{key:"rp",get:function(){var e=this.audioTrackBuffer.rp,r=this.videoTrackBuffer.rp;return e&&r?IB(e,r):e||r||IF}},{key:"sH",get:function(){return this.audioTrackBuffer.rp||IF}},{key:"oH",get:function(){return this.videoTrackBuffer.rp||IF}},{key:"KL",get:function(){return this.audioTrackBuffer.KL||this.videoTrackBuffer.KL}},{key:"_y",get:function(){return this.audioTrackBuffer._y&&this.videoTrackBuffer._y}}]),r}(PD);function Dq(e,r,s,o){var u,a,h=IW(r,e),c=e;if(!(!o&&h>=0&&e<r.end(h)-.05)){do{if((u=function(e,r){for(var s=r.length,o=0;o<s;o+=1)if(r.start(o)>e)return o;return -1}(e,r))<0)return;e=(a=r.start(u)+.01)+.05}while(r.end(u)-a<.05);for(var f=a-c,l=IB(new IM([{bC:c,EC:a}]),s),p=0;p<l.length;p++)f-=l.end(p)-l.start(p);return o&&h>=0&&(f-=r.end(h)-c),f<1?a:void 0}}var DY=Q.bu,D$=["resize","volumechange"],DJ=function(e){function r(r,s){var o;return(o=e.call(this)||this).nLt=void 0,o.JR=void 0,o.iLt=!0,o._y=!1,o.rLt=!1,o.eLt=!1,o.uLt=null,o.Lh=!1,o.DOt=null,o.COt=null,o.sLt=null,o.NOt=!1,o.oLt=0,o.aLt=mo.aP(),o.uPt=1,o.hLt=!1,o.CV=!1,o.Ay=!1,o.cLt=new rE,o.fLt=!1,o.vLt=!1,o.dLt=void 0,o.lLt=null,o._Lt=null,o.gLt=f1.Yw,o.wLt=!1,o.configuration={},o.loading=!1,o.loaded=!1,o.yLt=function(){o.wLt=!1,o.kLt(),o.mLt(),o.pLt()}
1,o.ALt=function(){o.bLt(),o.pLt(),o.TLt()},o.hD=function(){o.ELt(),o.bLt(),o.MV()?o.dispatchEvent("playing"):o.wLt=!0},o.SLt=function(){o.wLt=!1,o.kLt(),o.Um()},o.cV=function(){o.ILt()},o.aD=function(){o.RLt(),o.TLt()},o.FX=function(){var e=o.gLt,r=o.bw;e!==r&&(o.gLt=r,o.dispatchEvent(new lg(o.EPt(),r))),o.TLt()},o.mLt=function(){o.oLt&&(d(o.oLt),o.oLt=0,DY&&(o.JR.pD.removeEventListener("timeupdate",o.lG),o.removeEventListener(f7.Og,o.yG)))},o.NLt=function(){o.oLt||(o.oLt=v(o.DLt,500)),DY&&(o.JR.pD.addEventListener("timeupdate",o.lG),o.addEventListener(f7.Og,o.yG),o.lG()),o.DLt()},o.CLt=function(){var e=o.EPt(),r=IX(o.PLt,e);o.JR.yy||o.Ay&&!r||o.BLt()||o.NLt()},o.DLt=function(e){if(!(o.lLt||void 0===e&&o.vLt)){var r,s=o.EPt(),u=o.rp;if(void 0===e){if(void 0===(r=Dq(s,u,o.PLt,o.rLt)))return}else{if(!IX(u,e))return;r=e}var a=function(){o.JR.pD.currentTime=r,o.OLt(r),o.mLt(),o.vLt=!0};tG(r,s)?o.lLt=l(function(){o.lLt=null,s=o.EPt(),tG(r,s)&&(r+=5e5,a())},500):a()}},o.ZG=function(){var e=o.sLt;(o.LLt(),o.JR.pD.readyState===f1.Yw)?(o.sLt=e,o.JR.pD.addEventListener("loadedmetadata",o.ZG)):(1e-4>b.abs(o.JR.pD.currentTime-e)?o.aD():(o.JR.pD.currentTime=e,o.vLt=!1,o.cV()),o.sLt=null,o.Nx(o.uPt),o.JR.WG(),o.MLt(e)&&o.Um())},o.xLt=function(){if(!o.rLt){var e=o.JR.pD,r=o.rp,s=e.currentTime;o.ULt(r,s)&&(o.rLt=!0,o.bLt(),s=e.currentTime,o.ULt(r,s)?o.rLt=!0:o.rLt=!1,o.FX()),o._Lt=s}},o.ELt=function(){o.kLt(),o.uLt=v(o.xLt,100)},o.kLt=function(){o.rLt=!1,d(o.uLt)},o.FLt=function(){o.rLt&&(o.rLt=!1,o.FX())},o.lG=function(){var e=o.COt;if(e)if(e._y)o._G();else{var r=e.sH,s=e.oH;if(0!==r.length&&0!==s.length){var u=o.EPt();u<r.start(0)||u<s.start(0)?o._G():IX(r,u)!==IX(s,u)?o.gG():o._G()}else o._G()}},o.yG=function(){if(!(o.Ay||o.vLt||o.JR.pD.seeking||o.bw>=f1.Kw)){var e=o.COt;if(e){var r=o.EPt(),s=mo.uP(e.sH),u=mo.uP(e.oH);s.HD(r)&&u.HD(r)&&s.GC(u).ZC(r-5,r)&&(o.JR.pD.currentTime=r,o.vLt=!0)}}},o.HLt=function(){o.DOt.open=!0,o.DOt.removeEventListener("sourceopen",o.HLt),o.DOt.removeEventListener("webkitsourceopen",o.HLt)},o.kI=function(e){var r=o.JR.pD.error&&o.JR.pD.error.code;r&&o.J6(new PH(Pj.N_t,{code:"VEE"+r}))},o.wh=function(e){o.dispatchEvent({type:e.type})},o.XLt=function(){o.COt&&o.COt._y&&o.dispatchEvent("durationchange")},o.VLt=function(){o.removeEventListener("WLt",o.VLt),o.fLt=!1,o.qLt(o.uPt)},o.nLt=r,o.JR=s,o}j(r,e);var s,u=r.prototype;return u.qLt=function(e){this.CV&&(e=0),this.JR.py=e,0!==e||gU?this.hLt&&(this.hLt=!1,DU(this.JR.Mm())):(this.hLt=!this.JR.yy||this.hLt,this.JR.xm()),this.pLt()},u.Nx=function(e){this.uPt=e,this.fLt||this.qLt(e)},u.GLt=function(e){var r=IW(this.PLt,e);return -1===r?null:this.PLt.end(r)},u.ILt=function(){this.vLt||this.Ay||(this.Ay=!0,this.dispatchEvent("seeking"))},u.RLt=function(){this.vLt=!1,this.zLt(),this.Ay&&(this.Ay=!1,this.dispatchEvent("seeked")),this.CLt()},u.bLt=function(){this.vLt||this.CLt()},u.zLt=function(){this.dLt&&(p(this.dLt),this.dLt=void 0)},u.OLt=function(e){var r=this;this.dLt=l(function(){r.DLt(e+2)},750)},u.TLt=function(){this.wLt&&this.MV()&&(this.wLt=!1,this.dispatchEvent("playing"))},u.pLt=function(){var e=this.iLt,r=this.paused;this.iLt=r,e&&!r?this.dispatchEvent("play"):!e&&r&&this.dispatchEvent("pause")},u.TH=function(e,r){if(!(e+.001>r)){var s=new mo([e,r]);this.aLt=this.aLt.qC(s).zC(mo.uP(this.rp)),this.aLt.HD(this.EPt())&&this.CLt()}},u.MLt=function(e){return e>=this.JR.pD.duration-.5*!this.paused},u.jLt=function(e){return A(this.JR.pD.duration)||(e=b.min(e,this.JR.pD.duration)),b.max(0,e)},u.LLt=function(){this.sLt=null,this.JR.pD.removeEventListener("loadedmetadata",this.ZG)},u.UV=function(){return this.bw<f1.Kw},u.MV=function(){return!(this.paused||this.ended||this.error||this.UV())},u.ULt=function(e,r){var s=function(e,r){for(var s=r.length,o=0;o<s;o+=1)if(r.start(o)>e||e<r.end(o)-.05)return o;return -1}(r,e),o=s<0?0:e.end(s),u=s<0?0:e.start(s);if(this._Lt&&this._Lt===r){if(this.MLt(r))return!1;if(u>r||o-r<1/6)return!0}return!1},u.gG=function(){this.CV||(this.CV=!0,this.qLt(0),this.FX())},u._G=function(){this.CV&&(this.CV=!1,this.Nx(this.uPt),this.JR.pD.currentTime=this.JR.pD.currentTime,this.FX())},u.YLt=function(){var e=this.JR.pD;e.addEventListener("timeupdate",this.FLt),this.JR.kh(ul.$f,this.yLt),this.JR.kh(ul.tv,this.ALt),this.JR.kh(ul.Gf,this.SLt),e.addEventListener("seeking",this.cV),e.addEventListener("seeked",this.aD);for(var r=0;r<D$.length;r++){var s=D$[r];e.addEventListener(s,this.wh)}e.addEventListener("error",this.kI),e.addEventListener("durationchange",this.XLt),this.JR.kh(ul.Av,this.wh),this.JR.kh(f7.Og,this.FX),this.JR.kh(f7.oy,this.hD)},u.QLt=function(){var e=this.JR.pD;e.removeEventListener("timeupdate",this.FLt),this.JR.Eh(ul.$f,this.yLt),this.JR.Eh(ul.tv,this.ALt),this.JR.Eh(ul.Gf,this.SLt),e.removeEventListener("seeking",this.cV),e.removeEventListener("seeked",this.aD);for(var r=0;r<D$.length;r++){var s=D$[r];e.removeEventListener(s,this.wh)}e.removeEventListener("error",this.kI),e.removeEventListener("durationchange",this.XLt),this.JR.Eh(ul.Av,this.wh),this.JR.Eh(f7.Og,this.FX),this.JR.Eh(f7.oy,this.hD)},u.ZLt=function(){var e=this.JR.pD,r=a.MediaSource||a.WebKitMediaSource||null;null!==r?o.URL&&o.URL.createObjectURL||o.webkitURL&&o.webkitURL.createObjectURL||o.createObjectURL?(this.V8(),this.DOt=new r,this.DOt.addEventListener("sourceopen",this.HLt),this.DOt.addEventListener("webkitsourceopen",this.HLt),e.src=IE(this.DOt),e.load()):this.J6(new PH(Pj.C_t,{code:"MVE2720"})):this.J6(new PH(Pj.C_t,{code:"MVE2650"}))},u.V8=function(){if(this.NOt=!1,this.COt&&(this.COt.Yg(),this.COt=null),this.DOt){this.cLt.hh();var e=this.JR.pD;e.src&&(IA(e.src),ip(e)),this.DOt=null}},u.setup=function(){this.ZLt(),this.YLt(),this.JR.pD.parentNode!==this.nLt&&this.nLt.appendChild(this.JR.pD)},u.J6=function(e){this.Lh=e,this.dispatchEvent({type:"error",error:e})},u.BLt=function(){return this.COt&&this.COt.KL},u.KLt=function(e){var r=this.EPt()-b.max(30,3*e.ivt.ugt.targetDuration);this.dispatchEvent("WLt"),this.COt&&!e.apt&&this.COt.YOt(r),this.CLt()},u.h6=function(e){if(!this.DOt.open||"closed"===this.DOt.readyState)return P.reject("JLt");
1if(!this.COt)return P.reject("$Lt");var r=this.tMt(e);return this.eLt||(this.eLt=!0,this.dispatchEvent({type:"canplay"},!0)),r},s=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=r.metadata,(o=[]).push(this.COt.h6(r)),s.apt&&o.push(this.gNt(!!r.Ust,!!r.Fst)),r=null,e.next=7,P.all(o);case 7:this.KLt(s);case 8:case"end":return e.stop()}},e,this)})),u.tMt=function(e){return s.apply(this,arguments)},u.gNt=function(e,r){return this.DOt.open&&"closed"!==this.DOt.readyState?this.COt?this.COt.gNt(e,r):P.reject("$Lt"):P.reject("JLt")},u.play=function(){var e=this.JR.py;this._y=!1,0!==this.JR.py||gU?(DU(this.JR.Mm()),this.JR.WG(),this.JR.py=e):this.hLt=!0,this.pLt()},u.pause=function(){0!==this.JR.py||gU?this.JR.xm():this.hLt=!1,this.pLt()},u.Um=function(){this._y||(this._y=!0,this.JR.xm(),this.dispatchEvent("ended"))},u.load=function(){this.dispatchEvent("loadstart"),this.loaded=!0},u.unload=function(){return d(this.uLt),this.uLt=null,this.mLt(),this.LLt(),this.V8(),this.QLt(),this.Th(),this.JR.pD},u.reset=function(){d(this.uLt),this.uLt=null,this.mLt(),this.LLt(),this.iLt=!0,this._y=!1,this.rLt=!1,this.eLt=!1,this.Lh=!1,this.Ay=!1,this.wLt=!1,this._G(),this.ZLt(),this.loading=!1,this.loaded=!1,this.dispatchEvent("reset")},u.Qm=function(){return this.JR.pD},u.EPt=function(){return null===this.sLt?this.JR.pD.currentTime:this.sLt},u.eBt=function(e){var r=this.GLt(e);e=this.jLt(e),this.rLt=!1,this.JR.pD.error&&(this.eLt=!1,this.Lh=!1,this.ZLt()),this._y&&(this._y=this.MLt(e)),this.mLt(),null!==r&&(e=r),this.LLt(),this.sLt=e,this.Ay=!0,this.dispatchEvent("KPt"),this.dispatchEvent("seeking"),this.ZG()},u.nMt=function(e){return this.DOt.open?P.resolve(null):cJ(this.DOt,"sourceopen",e)},u.iMt=function(e,r,s){rT(s),r>0&&(this.DOt.duration=r),this.COt=new DW(this.DOt);var o=this.COt.iI(e);return this.dispatchEvent("mOt"),this.COt.addEventListener("updatestart",this.mLt),this.COt.addEventListener("updateend",this.CLt),this.NOt=!0,this.dispatchEvent("NOt"),o},u.Zit=function(e,r,s){var o=this;this.cLt.hh();var u=new rE;return u.fh(s),this.cLt=u,this.COt?P.resolve(null):this.nMt(u.dh).then(function(){return o.iMt(e,r,s)})},u.ryt=function(e){Q.Ou&&(this.fLt=!0,this.qLt(0),this.removeEventListener("WLt",this.VLt),this.addEventListener("WLt",this.VLt),this.COt&&this.COt.Obt(e))},u.canPlayCodecs=function(e){return this.JR.pD.canPlayType('video/mp4; codecs="'+e+'"')},M(r,[{key:"PLt",get:function(){return this.aLt.XD()}},{key:"bw",get:function(){var e=this.JR.bw;return e>f1.Zw&&(this.rLt||this.CV)?f1.Zw:e}},{key:"sp",get:function(){return this.JR.pD}},{key:"rp",get:function(){return this.COt?this.COt.rp:this.JR.pD.buffered}},{key:"sH",get:function(){return this.COt?this.COt.sH:IF}},{key:"oH",get:function(){return this.COt?this.COt.oH:IF}},{key:"volume",get:function(){return this.JR.pD.volume},set:function(e){this.JR.pD.volume=e}},{key:"duration",get:function(){return this.JR.pD.duration}},{key:"muted",get:function(){return this.JR.pD.muted},set:function(e){this.JR.pD.muted=e}},{key:"paused",get:function(){return this.JR.yy&&!this.hLt}},{key:"played",get:function(){return this.JR.pD.played}},{key:"poster",get:function(){return this.JR.pD.poster},set:function(e){e?this.JR.pD.poster=e:this.JR.pD.removeAttribute("poster")}},{key:"controls",get:function(){return this.JR.pD.controls},set:function(e){e?this.JR.pD.controls=e:this.JR.pD.removeAttribute("controls")}},{key:"ended",get:function(){return this._y}},{key:"seeking",get:function(){return this.Ay}},{key:"error",get:function(){return this.Lh||this.JR.pD.error}},{key:"width",get:function(){return this.JR.pD.offsetWidth||this.JR.pD.parentNode.offsetWidth}},{key:"height",get:function(){return this.JR.pD.offsetHeight||this.JR.pD.parentNode.offsetHeight}},{key:"py",get:function(){return this.uPt},set:function(e){var r=this.uPt;e>0&&(this.Nx(e),this.uPt!==r&&this.dispatchEvent("ratechange"))}},{key:"Ty",get:function(){return this.JR.pD.videoWidth||0}},{key:"by",get:function(){return this.JR.pD.videoHeight||0}},{key:"WPt",get:function(){return this.NOt}}]),r}(PD),DQ=["seeked","seeking","playing","pause","play","resize","warning","ended","durationchange","rMt","ryt",f7.Og],DG=function(e){function r(){var r;return(r=e.call(this)||this).eMt=null,r.uMt=null,r.dP=!1,r.wP=1,r._P=1,r.sMt=null,r.oMt=void 0,r.gOt=function(e){r.dispatchEvent(e)},r.aMt=function(e){r.uMt||r.dispatchEvent(e)},r.hMt=function(e){var s=e.error||r.uMt.error;r.audioStream=null,r.sMt=s.message||s.toString(),r.dispatchEvent({type:"warning",w
1arning:r.sMt})},r.cMt=function(){r.uMt&&!r.uMt.loaded||r.eMt&&!r.eMt.loaded||(r.uMt&&(r.uMt.removeEventListener("loaded",r.cMt),r.uMt.play()),r.eMt&&(r.eMt.removeEventListener("loaded",r.cMt),r.eMt.play()))},r.fMt=function(){r.vMt(),r.uMt&&r.eMt&&(r.uMt.addEventListener("timeupdate",r.dMt),r.eMt.addEventListener("timeupdate",r.dMt))},r.vMt=function(){p(r.oMt),r.uMt&&r.uMt.removeEventListener("timeupdate",r.dMt),r.eMt&&(r.eMt.py=r._P,r.eMt.removeEventListener("timeupdate",r.dMt))},r.lMt=function(){r.bw<f1.Kw&&r.vMt()},r.dMt=function(){if(p(r.oMt),r.uMt&&r.eMt){var e=r.uMt.py,s=r.uMt.EPt()-r.eMt.EPt(),o=b.max(4,1.5*e),u=b.min(.25,.75*e);if(.04>b.abs(s))r.eMt.py!==e&&(r.eMt.py=e);else{var a=.25,h=e*(s/.25+1);(h<u||h>o)&&(a=s/((h=s>0?o:u)/e-1)),r.eMt.py=h,r.oMt=l(r.dMt,1e3*a)}}else r.vMt()},r.addEventListener("playing",r.fMt),r.addEventListener("ended",r.vMt),r.addEventListener(f7.Og,r.lMt),r}j(r,e);var s=r.prototype;return s.$wt=function(e,r){r?(e.addEventListener("timeupdate",this.gOt),e.addEventListener("error",this.hMt)):(e.addEventListener("timeupdate",this.aMt),e.addEventListener("error",this.gOt));for(var s=0;s<DQ.length;s++){var o=DQ[s];e.addEventListener(o,this.gOt)}},s.Ih=function(e){e.removeEventListener("timeupdate",this.gOt),e.removeEventListener("timeupdate",this.aMt),e.removeEventListener("timeupdate",this.dMt),e.removeEventListener("error",this.gOt),e.removeEventListener("error",this.hMt),e.removeEventListener("loaded",this.cMt);for(var r=0;r<DQ.length;r++){var s=DQ[r];e.removeEventListener(s,this.gOt)}},s._Mt=function(e){this.uMt&&this.uMt._Mt(e),this.eMt&&this.eMt._Mt(e)},s.play=function(){this.uMt&&!this.uMt.loaded||this.eMt&&!this.eMt.loaded?(this.uMt&&this.uMt.addEventListener("loaded",this.cMt),this.eMt&&this.eMt.addEventListener("loaded",this.cMt)):this.cMt()},s.pause=function(){this.uMt&&(this.uMt.removeEventListener("loaded",this.cMt),this.uMt.pause()),this.eMt&&(this.eMt.removeEventListener("loaded",this.cMt),this.eMt.pause()),this.vMt()},s.load=function(e){e?(-1!==e.indexOf("audio")&&this.uMt&&this.uMt.load(),-1!==e.indexOf("video")&&this.eMt&&this.eMt.load()):(this.uMt&&this.uMt.load(),this.eMt&&this.eMt.load())},s.Kl=function(e){this.Th(),this.sMt=null,e?(-1!==e.indexOf("audio")&&this.uMt&&(this.uMt.Kl(),this.uMt=null),-1!==e.indexOf("video")&&this.eMt&&(this.eMt.Kl(),this.eMt=null)):(this.uMt&&(this.uMt.Kl(),this.uMt=null),this.eMt&&(this.eMt.Kl(),this.eMt=null))},s.ryt=function(e){this.uMt&&this.uMt.pause(),this.eMt&&this.eMt.pause(),this.vMt(),e&&-1===e.indexOf("audio")||!this.uMt||this.uMt.ryt(),e&&-1===e.indexOf("video")||!this.eMt||this.eMt.ryt()},s.h6=function(e){this.uMt&&e.Ust&&this.uMt.h6(e),this.eMt&&e.Fst&&this.eMt.h6(e)},s.gMt=function(e){return this.eMt?this.eMt.gMt(e):""},s.wMt=function(){return this.eMt?this.eMt.wMt():0},s.yMt=function(){return this.eMt?this.eMt.yMt():0},s.Qm=function(){return this.eMt&&this.eMt.Qm()},s.EPt=function(){return this.uMt?this.uMt.EPt():this.eMt?this.eMt.EPt():NaN},s.eBt=function(e,r){this.uMt&&this.uMt.eBt(e,r),this.eMt&&this.eMt.eBt(e,r)},M(r,[{key:"rp",get:function(){return this.uMt&&this.eMt?IB(this.uMt.rp,this.eMt.rp):this.uMt?this.uMt.rp:this.eMt?this.eMt.rp:IF}},{key:"volume",get:function(){return this.wP},set:function(e){this.wP!==e&&(this.wP=e,this.uMt&&(this.uMt.volume=e),this.dispatchEvent("volumechange"))}},{key:"duration",get:function(){return this.uMt&&this.uMt.duration||this.eMt&&this.eMt.duration||NaN}},{key:"muted",get:function(){return this.dP},set:function(e){this.dP!==e&&(this.dP=e,this.uMt&&(this.uMt.muted=e),this.dispatchEvent("volumechange"))}},{key:"loaded",get:function(){return!(!this.uMt&&!this.eMt)&&!(this.uMt&&!this.uMt.loaded)&&!(this.eMt&&!this.eMt.loaded)}},{key:"paused",get:function(){return!this.uMt&&!this.eMt||this.uMt&&this.uMt.paused||this.eMt&&this.eMt.paused||!1}},{key:"ended",get:function(){return this.uMt&&this.uMt.ended||this.eMt&&this.eMt.ended||!1}},{key:"seeking",get:function(){return this.uMt&&this.uMt.seeking||this.eMt&&this.eMt.seeking||!1}},{key:"error",get:function(){return this.uMt&&this.uMt.error||this.eMt&&this.eMt.error}},{key:"warning",get:function(){return this.sMt||this.uMt&&this.uMt.warning||this.eMt&&this.eMt.warning}},{key:"audioStream",get:function(){return this.uMt},set:function(e){this.uMt&&(this.Ih(this.uMt),this.uMt.Kl()),this.uMt=e,this.uMt&&(this.uMt.volume=this.wP,this.uMt.muted=this.dP,this.uMt.py=this._P,this.$wt(this.uMt,!0))}},{key:"videoStream",get:function(){return this.eMt},set:function(e){this.eMt&&(this.Ih(this.eMt),this.eMt.Kl()),this.eMt=e,this.eMt&&(this.eMt.py=this._P,this.$wt(this.eMt,!1))}},{key:"py",get:function(){return this._P},set:function(e){this._P!==e&&(e<0||(this._P=e,this.uMt&&(this.uMt.py=e),this.eMt&&(this.eMt.py=e),this.dispatchEvent("ratechange")))}},{key:"bw",get:function(){return this.uMt&&this.eMt?b.min(this.uMt.bw,this.eMt.bw):this.uMt?this.uMt.bw:this.eMt?this.eMt.bw:f1.Yw}},{key:"Ty",get:function(){return this.eMt?this.eMt.Ty:0}},{key:"by",get:function(){return this.eMt?this.eMt.by:0}}]),r}(PD),DK=function(){function e(e,r,s,o){var u=this;this.kMt=void 0,this.mMt=void 0,this.ly=void 0,this.lL=void 0,this.pMt=void 0,this.AMt=void 0,this.xp=void 0,this.El=0,this.Gl=0,this.running=!1,this.bMt=function(e){return u.Ec(e)},this.kMt=e,this.mMt=r,this.ly=s,this.lL=o,this.pMt=e.qh(),this.AMt=(r-this.pMt)/(s||1)}var r=e.prototype;return r.TMt=function(){return this.kMt.Bf(this.mMt),this.running=!1,this.EMt(),this.lL()},r.bC=function(){var e=this;this.running=!0,this.ly?this.SMt():PO(function(){e.running&&e.TMt()})},r.Ec=function(e){if(this.EMt(),this.running){void 0===this.xp&&(this.xp=e);var r=this.pMt,s=this.AMt,o=this.mMt,u=this.kMt,a=r+b.max(0,e-this.xp)*s;if(r>=o&&a<=o||r<o&&a>=o||u.Bf(a))return this.TMt();this.SMt()}},r.SMt=function(){this.El=wZ(this.bMt),this.Gl=wK(this.bMt)},r.EMt=function(){w0(this.El),p(this.Gl)},e}(),Dz=function(e){function r(r,s){var o;return(o=e.call(this)||this).IMt=void 0,o.Xs=void 0,o.R2=null,o.RMt=null,o.N
1Mt=NaN,o.DMt=!1,o.m6=!1,o.CMt=1,o.PMt=void 0,o.BMt=void 0,o.OMt=function(e){o.LMt(e)||o.dispatchEvent(e)},o.IMt=r,o.Xs=s,o}j(r,e);var s=r.prototype;return s.pause=function(){this.IMt.pause()},s.play=function(){DU(this.IMt.play()),this.MMt()},s.xMt=function(e){if(!(this.bw<f1.Kw))return this.Obt(),this.DMt=!0,this.OMt({type:"canplay"}),e&&e();this.PMt=l(this.BMt,100)},s.bc=function(e){this.m6=!0,this.DMt=!1,this.IMt.removeEventListener("canplay",this.BMt),this.BMt=this.xMt.bind(this,e),this.IMt.addEventListener("canplay",this.BMt),this.IMt.load(),this.PMt=l(this.BMt,100)},s.Obt=function(){this.m6=!1,this.IMt.removeEventListener("canplay",this.BMt),void 0!==this.PMt&&(p(this.PMt),this.PMt=void 0)},s.UMt=function(e){(this.pause(),this.Obt(),null===e)?(this.R2=null,this.DMt=!1):(this.DMt=!1,this.RMt&&this.RMt.fTt(this.IMt.src),this.RMt=e[this.Xs],this.IMt.src=this.RMt.vTt,this.R2=e)},s.Qm=function(){return this.IMt},s.FMt=function(e){this.NMt=b.max(e||0,0),this.IMt.currentTime=this.NMt},s.HMt=function(){return this.IMt.currentTime},s.XMt=function(e){var r=this.R2&&this.R2.metadata,s=r&&r.bC,o=r&&r[this.Xs].bC,u=r&&r[this.Xs].ly;return!!this.v4&&!(e<s)&&e<o+b.min(u,this.IMt.duration)},s.MMt=function(){this.CMt!==this.IMt.playbackRate&&(this.IMt.playbackRate=this.CMt,gM&&this.CMt>0&&this.bw!==f1.Yw&&(this.IMt.currentTime=this.IMt.currentTime))},s.LMt=function(e){return!!(gM&&"seeked"===e.type&&b.abs(this.IMt.currentTime-this.NMt)>.04)},s.addEventListener=function(r,s){this.m_t(r)||this.IMt.addEventListener(r,this.OMt),e.prototype.addEventListener.call(this,r,s)},s.removeEventListener=function(r,s){e.prototype.removeEventListener.call(this,r,s),this.m_t(r)||this.IMt.removeEventListener(r,this.OMt)},s.Th=function(){for(var r=0,s=this.p_t();r<s.length;r++){var o=s[r];this.IMt.removeEventListener(o,this.OMt)}e.prototype.Th.call(this)},s.unload=function(){this.RMt&&this.RMt.fTt(this.IMt.src),this.Th()},M(r,[{key:"volume",get:function(){return this.IMt.volume},set:function(e){this.IMt.volume=e}},{key:"muted",get:function(){return this.IMt.muted},set:function(e){this.IMt.muted=e}},{key:"style",get:function(){return this.IMt.style}},{key:"bC",get:function(){return this.R2?this.R2.metadata[this.Xs].bC:NaN}},{key:"EC",get:function(){return this.R2?this.bC+this.R2.metadata[this.Xs].ly:NaN}},{key:"VMt",get:function(){return this.R2?this.bC+this.WMt:NaN},set:function(e){this.R2?this.WMt=e-this.bC:this.WMt=0}},{key:"WMt",get:function(){return this.HMt()},set:function(e){this.FMt(e)}},{key:"j1",get:function(){return this.R2},set:function(e){this.UMt(e)}},{key:"C0",get:function(){return this.R2&&this.R2.metadata.apt}},{key:"v4",get:function(){return!(!this.DMt||!this.R2)}},{key:"qMt",get:function(){return!(!this.m6||!this.R2)}},{key:"py",get:function(){return this.CMt},set:function(e){e>=0&&this.CMt!==e&&(this.CMt=e,this.MMt())}},{key:"yy",get:function(){return this.IMt.paused}},{key:"_y",get:function(){return this.IMt.ended}},{key:"Lh",get:function(){return this.IMt.error}},{key:"Ty",get:function(){return this.IMt.videoWidth}},{key:"by",get:function(){return this.IMt.videoHeight}},{key:"bw",get:function(){return this.IMt.readyState}}]),r}(PD);function DZ(e){return{bC:e.bC,EC:e.EC}}function D0(e,r){for(var s=0;s<e.length;s++){var o=e[s];if(o.bC<=r&&r<o.EC)return s}return -1}function D1(e,r,s){return{bC:r?s.metadata.tTt:s.metadata[e].bC,EC:s.metadata[e].bC+s.metadata[e].ly}}function D2(e,r,s){return new IM([D1(e,r,s)])}function D3(e,r,s){for(var o=[],u=0;u<s.length;u++){var a=s[u];o.push(D1(e,r,a))}return IH(new IM(o))}function D5(e,r,s){if(!r)return!1;var o=r.metadata[e].bC,u=o+r.metadata[e].ly;return o<=s&&s<=u}function D4(e,r){var s=IW(e,r);return s<0?r:e.end(s)}var D6=function(){function e(e){this.Ua=void 0,this.vrt=[],this.GMt=IF,this.zMt=IF,this.Ua=e}var r=e.prototype;return r.h6=function(e){var r,s;this.vrt=function(e,r){for(var s=[],o=function(e,r,o){var u=s.length&&s[s.length-1];u&&u.j1===e?u.EC=o:s.push({j1:e,bC:r,EC:o})},u=0;u<e.length;u++){var a=e[u];if(a.EC<=r.bC)o(a.j1,a.bC,a.EC);else if(a.bC>=r.EC)r.bC<r.EC&&(o(r.j1,r.bC,r.EC),r.bC=r.EC),o(a.j1,a.bC,a.EC);else{var h=void 0,c=void 0;(function(e,r){var s,o;return s=e.j1.metadata.ivt,o=r.j1.metadata.ivt,s.bandwidth&&o.bandwidth&&lP(s.bandwidth,o.bandwidth)||s.resolution&&o.resolution&&lP(s.resolution.width*s.resolution.height,o.resolution.width*o.resolution.height)||l_(s.nat,o.nat)||lP(e.EC,r.EC)})(r,a)>=0?(h=a,c=r):(h=r,c=a);var f=h.bC,l=c.bC,p=b.min(c.EC,a.EC),v=b.min(h.EC,a.EC);f<l&&o(h.j1,f,l),l<p&&o(c.j1,l,p),p<v&&o(h.j1,p,v),r.bC=b.max(r.bC,a.EC)}}return r.bC<r.EC&&o(r.j1,r.bC,r.EC),s}(this.vrt,(r=this.Ua,s=e.metadata[r].bC,{j1:e,bC:s,EC:s+e.metadata[r].ly})),this.GMt=IY(this.GMt,D2(this.Ua,!1,e)),this.zMt=IY(this.zMt,D2(this.Ua,!0,e)),this.zMt=IB(this.zMt,IV(this.GMt))},r.jMt=function(e){e=this.YMt(e);var r=D0(this.vrt,e);return r>=0?this.vrt[r].j1:null},r.g1=function(e,r,s,o){e=this.YMt(e);var u=this.vrt,a=D0(u,e);if(a<0)return null;var h=u[a];if(!s||!D5(this.Ua,s,e))return o&&D5(this.Ua,o,e)?null:h.j1;if(s!==h.j1){if(o&&o===h.j1)return null;if(h.EC-e>r)return h.j1}for(var c=a+1;c<u.length;c++){var f=u[c];if(o&&o===f.j1)break;if(f.EC-e>r)return f.j1;for(var l=[s],p=c+1;p<u.length;p++)l.push(u[p].j1);var v=D3(this.Ua,!1,l);l.push(f.j1);var d=D3(this.Ua,!1,l);if(D4(v,e)<D4(d,e))return f.j1}return null},r.cvt=function(e,r){for(var s=this.vrt,o=s.length-1;o>=0;o--){var u=s[o];(u.EC<=e||u.bC>=r)&&rf(s,o)}},r.Yg=function(){this.vrt.length=0,this.GMt=IF,this.zMt=IF},r.YMt=function(e){var r=Dq(e,this.rp,this.zMt,!1);return void 0===r?e:r},M(e,[{key:"rp",get:function(){return IH(new IM(this.vrt.map(DZ)))}}]),e}(),D8=function(e){function r(r,s){(P=e.call(this)||this).QMt=void 0,P.Xs=void 0,P.ZMt=void 0,P.KMt=void 0,P.JMt=void 0,P.ef={Ust:{$Mt:100,txt:100,nxt:100},Fst:{$Mt:500,txt:100,nxt:200}},P.wP=void 0,P.JN=null,P.sMt=null,P.ixt=null,P.rxt=void 0,P.ext=void 0,P.uxt=void 0,P.sxt=void 0,P.oxt=null,P.axt=void 0,P.hxt=void 0,P.cxt=0,P.fxt=null,P.vxt=!1,P.PZ=!1,P.dxt=0,P.lxt=0,P._xt=f1.Yw,P.YOt=function(){var e=P.EPt();P.JMt.cvt(e-5,e+30)},P.gxt={wxt:(I=t8(P),{bc:function(){I.uxt.addEventListener("ended",this.y
1xt),I.sxt.addEventListener("ended",this.kxt)},Kl:function(){I.uxt.removeEventListener("ended",this.yxt),I.sxt.removeEventListener("ended",this.kxt)},mxt:function(){},yxt:function(){I.pause(),I.dispatchEvent({type:"ended",origin:I.uxt})},kxt:function(){I.pause(),I.dispatchEvent({type:"ended",origin:I.sxt})}}),PS:{ds:"PS",bc:function(){},Kl:function(){},mxt:function(){}},pxt:(o=t8(P),u=function e(){o.uxt.removeEventListener("play",e),o.uxt.removeEventListener("timeupdate",a),o.uxt.addEventListener("timeupdate",a)},a=function e(){var r,s,u,a;o.uxt.yy||(!o.seeking&&o.uxt.j1?(r=o.uxt,(s=o.sxt).v4&&(u=r,a=s,u.VMt-a.bC>=0)&&o.Axt(o.gxt.bxt)):o.uxt.removeEventListener("timeupdate",e))},{ds:"pxt",bc:function(){o.gxt.wxt.bc.call(this),this.Txt(),this.mxt()},Kl:function(){o.gxt.wxt.Kl.call(this),o.uxt.removeEventListener("play",u),o.uxt.removeEventListener("timeupdate",a)},mxt:function(){o.uxt.j1?o.mxt(o.sxt,o.Ext):o.mxt(o.uxt,o.Ext)},yxt:function(){var e=o.sxt.j1;e&&e.metadata.hpt?(o.sxt.XMt(o.uxt.VMt)&&(o.sxt.VMt=o.uxt.VMt),o.Sxt(),o.uxt.play()):o.gxt.wxt.yxt.call(this)},kxt:function(){},Txt:function(){o.uxt.removeEventListener("play",u),o.uxt.yy?o.uxt.addEventListener("play",u):u.call(o.uxt)}}),bxt:(h=t8(P),c=function(){P.Axt(P.gxt.Ixt)},{ds:"bxt",bc:function(){h.gxt.wxt.bc.call(this),h.sxt.addEventListener("seeked",c);var e,r,s=(e=h.uxt,r=h.sxt,e.VMt-r.bC),o=h.ef[h.Xs].$Mt/1e3,u=b.min(s+o,h.sxt.EC);try{h.sxt.WMt=u}catch(e){h.Axt(h.gxt.pxt),h.Rxt(e.message)}},Kl:function(){h.gxt.wxt.Kl.call(this),h.sxt.removeEventListener("seeked",c)},mxt:function(){},yxt:function(){h.gxt.wxt.yxt.call(this)},kxt:function(){}}),Ixt:(v=t8(P),d=function(){g()},y=function(){g()},g=function(){w0(f),P.sxt.VMt-P.uxt.VMt-1/60>0?f=wZ(d):P.Axt(P.gxt.Nxt)},{ds:"Ixt",bc:function(){v.gxt.wxt.bc.call(this),v.uxt.addEventListener("timeupdate",y),g()},Kl:function(){v.gxt.wxt.Kl.call(this),w0(f),v.uxt.removeEventListener("timeupdate",y)},mxt:function(){},yxt:function(){v.gxt.wxt.yxt.call(this)},kxt:function(){v.gxt.wxt.kxt.call(this)}}),Nxt:(w=t8(P),k=function(){var e,r=P.Dxt(P.sxt),s=P.ef[P.Xs].txt/b.max(1,P.uxt.py);return e=r.Cxt,new DK(r,e,s,function(){P.Axt(P.gxt.Pxt),P.gxt.Pxt.Bxt()})},E=function(){P.ixt.bC(),P.Axt(P.gxt.Pxt)},{ds:"Nxt",bc:function(){w.gxt.wxt.bc.call(this);var e=w.ef[w.Xs].nxt/b.max(1,w.uxt.py);w.ixt=k(),m=l(E,e),w.sxt.play()},Kl:function(){w.gxt.wxt.Kl.call(this),p(m),m=0},mxt:function(){},yxt:function(){w.gxt.wxt.yxt.call(this)},kxt:function(){w.gxt.wxt.kxt.call(this)}}),Pxt:(A=t8(P),{ds:"Pxt",bc:function(){A.gxt.wxt.bc.call(this)},Kl:function(){A.gxt.wxt.Kl.call(this),A.ixt&&A.ixt.TMt()},mxt:function(){},yxt:function(){A.gxt.wxt.yxt.call(this)},kxt:function(){A.gxt.wxt.kxt.call(this)},Bxt:function(){A.ixt=null,A.Sxt()}})},P.Oxt={Lxt:(x=t8(P),{bc:function(){},Kl:function(){},mxt:function(){x.axt.mxt()},eBt:function(e,r,s,o){x.cxt=e,x.fxt=o,x.Axt(x.gxt.PS);var u=x.uxt===x.rxt?r:s,a=x.sxt===x.rxt?r:s;u&&x.uxt.XMt(e)?x.Mxt(x.Oxt.xxt):a&&x.sxt.XMt(e)?x.Mxt(x.Oxt.Uxt):x.Mxt(x.Oxt.Fxt)}}),Fxt:(T=t8(P),C=function(){P.Ext(),P.sxt.v4?(P.sxt.XMt(P.cxt)||(P.Hxt('Could not seek to exact timestamp "'+P.cxt+'", seeking instead to: "'+P.sxt.bC+'"'),P.cxt=P.sxt.bC),P.Mxt(P.Oxt.Uxt)):P.Mxt(P.Oxt.Lxt)},{bc:function(){T.Xxt(),T.uxt.j1=null,T.sxt.j1=null,T.sxt.style.display="none",T.Ext(),this.mxt()},Kl:function(){T.sxt.Obt(),T.sxt.style.display=""},mxt:function(){T.sxt.j1||T.mxt(T.sxt,C)},eBt:function(e,r,s,o){T.c8(),T.hxt.eBt(e,r,s,o)}}),xxt:(S=t8(P),R=function(){P.Mxt(P.Oxt.Lxt),P.Axt(P.gxt.pxt),P.NV(),P.fxt&&(P.fxt.call(S),P.fxt=null)},{bc:function(){S.uxt.addEventListener("seeked",R);try{S.uxt.VMt=S.cxt,S.NV()}catch(e){S.Rxt(e.message)}},Kl:function(){S.uxt.removeEventListener("seeked",R)},mxt:function(){},eBt:function(e,r,s,o){S.c8(),S.hxt.eBt(e,r,s,o)}}),Uxt:(L=t8(P),_=function(){P.Mxt(P.Oxt.Lxt),P.Sxt(),P.fxt&&(P.fxt.call(L),P.fxt=null)},{bc:function(){L.sxt.style.display="none",L.sxt.addEventListener("seeked",_);try{L.sxt.VMt=L.cxt,L.NV()}catch(e){L.Rxt(e.message)}},Kl:function(){L.sxt.style.display="",L.sxt.removeEventListener("seeked",_)},mxt:function(){},eBt:function(e,r,s,o){L.c8(),L.hxt.eBt(e,r,s,o)}})},P.Ext=function(){var e=P.PZ;P.PZ=P.rxt.qMt||P.ext.qMt,e&&!P.PZ&&P.dispatchEvent("updateend"),P.Vxt(),P.NV(),P.Wxt()},P.NV=function(){var e=P.bw;e!==P._xt&&(P._xt=e,P.dispatchEvent(f7.Og))},P.QMt=r,P.Xs=s,P.JMt=new D6(s),P.wP=+("Fst"!==s);var o,u,a,h,c,f,v,d,y,g,m,w,k,E,A,x,T,C,S,R,L,_,P,I,N=function(e){switch(e){case"Ust":return"audio";case"Fst":return"video"}}(s);return P.ZMt=D7(N),P.KMt=D7(N),r.appendChild(P.ZMt),r.appendChild(P.KMt),P.rxt=new Dz(P.ZMt,P.Xs),P.ext=new Dz(P.KMt,P.Xs),P.uxt=P.rxt,P.sxt=P.ext,P.axt=P.gxt.pxt,P.hxt=P.Oxt.Lxt,P.axt.bc(),P.hxt.bc(),P.Fwt(),P.nw(),P}j(r,e);var s=r.prototype;return s.qxt=function(e){return e===this.rxt?this.ext:this.rxt},s.Hxt=function(e){this.sMt=e,this.dispatchEvent({type:"warning",w
1arning:this.sMt})},s.Rxt=function(e){this.JN=e,this.dispatchEvent({type:"error",error:e})},s.Dxt=function(e){var r,s=this,o=this.qxt(e);return r="Fst"===this.Xs?{qh:function(){if(s.oxt!==e)return 0;var r=E(e.style.opacity);return A(r)?1:r},Bf:function(r){r=tJ(r,0,1),o.style.opacity=""+(1-r),1===r&&(s.oxt=e,e.style.zIndex="2",o.style.zIndex="1",o.style.opacity="1")},Cxt:1,Gxt:function(){if(r.qh()!==r.Cxt)return r.Bf(r.Cxt)}}:{qh:function(){return e.volume},Bf:function(s){var u;try{e.volume=s}catch(e){u=e}try{o.volume=r.Cxt-s}catch(e){u=e}return u},Cxt:this.wP,Gxt:function(){if(r.qh()!==r.Cxt)return r.Bf(r.Cxt)}}},s.mxt=function(e,r){var s=this.JMt.g1(this.EPt(),1,this.uxt.j1,this.sxt.j1);return!!s&&(this.Xxt(),e.j1=s,e.bc(r),e.C0&&this.dispatchEvent("durationchange"),!0)},s.zxt=function(){this.Xxt(),this.JMt.Yg(),this.rxt.Obt(),this.ext.Obt(),this.Ext()},s.Qm=function(){return this.uxt.Qm()},s.EPt=function(){return this.seeking?this.cxt:this.uxt.VMt},s.eBt=function(e,r){var s=this,o=!r;this.dispatchEvent("seeking"),this.pause(),this.hxt.eBt(e,o,o,function(){s.dispatchEvent("seeked"),s.dispatchEvent("timeupdate",!0)})},s.Sxt=function(){var e=this.uxt;this.Axt(this.gxt.PS),this.uxt=this.sxt,this.sxt=e,this.Dxt(this.uxt).Gxt(),this.Xxt(),this.sxt.pause(),this.sxt.j1=null,this.Ext(),this.Axt(this.gxt.pxt)},s.Fwt=function(){for(var e=this,r=["timeupdate","play","playing"],s=function(r,s){if("error"===s.type)return s.error?e.Rxt(new PH(Pj.N_t,{code:"VEE"+s.error})):e.Rxt(new PH(Pj.N_t,{code:"VEE"+r.Lh.code}));r===e.uxt&&e.dispatchEvent({type:s.type,origin:r})},o=s.bind(null,this.rxt),u=s.bind(null,this.ext),a=0;a<r.length;a++){var h=r[a];this.rxt.addEventListener(h,o),this.ext.addEventListener(h,u)}this.rxt.addEventListener("error",o),this.ext.addEventListener("error",u);for(var c=0;c<kG.length;c++){var f=kG[c];this.rxt.addEventListener(f,this.NV),this.ext.addEventListener(f,this.NV)}},s.nw=function(){this.addEventListener("seeking",this.YOt),this.addEventListener("timeupdate",this.YOt)},s.Axt=function(e){var r;if(this.axt!==e){do(r=this.axt).Kl();while(r!==this.axt);this.axt=e,e.bc()}},s.Mxt=function(e){var r;if(this.hxt!==e){do(r=this.hxt).Kl();while(r!==this.hxt);this.hxt=e,e.bc()}},s.c8=function(){this.fxt=null,this.Mxt(this.Oxt.Lxt)},s.load=function(){this.pause(),this.c8(),this.uxt.j1=null,this.sxt.j1=null,this.Axt(this.gxt.pxt)},s.Kl=function(){this.c8(),this.Axt(this.gxt.PS),this.zxt(),this.rxt.unload(),this.ext.unload(),this.QMt.removeChild(this.ZMt),this.QMt.removeChild(this.KMt),this.JN=null,this.sMt=null},s.ryt=function(){var e=this,r=this.EPt();this.zxt(),this.hxt.eBt(r,!1,!1,function(){e.dispatchEvent("ryt",!0)})},s.play=function(){this.Dxt(this.uxt).Gxt(),this.uxt.v4&&this.uxt.play()},s.pause=function(){this.rxt.pause(),this.ext.pause()},s._Mt=function(e){var r=this,s=function(){r.dispatchEvent("rMt",!0)};this.pause(),this.uxt._y?this.hxt.eBt(e,this.sxt===this.rxt,this.sxt===this.ext,s):this.sxt._y?this.hxt.eBt(e,!1,!1,s):this.sxt.XMt(e)?this.hxt.eBt(e,this.sxt===this.rxt,this.sxt===this.ext,s):s()},s.h6=function(e){this.Xxt(),this.JMt.h6(e),this.Ext(),this.hxt.mxt()},s.gMt=function(e){return this.ZMt.canPlayType('video/mp4; codecs="'+e+'"')},s.wMt=function(){return b.max(this.ZMt.offsetWidth,this.KMt.offsetWidth)},s.yMt=function(){return b.max(this.ZMt.offsetHeight,this.KMt.offsetHeight)},s.Vxt=function(){!this.vxt&&this.loaded&&(this.vxt=!0,this.dispatchEvent("loaded"))},s.Wxt=function(){if("Fst"===this.Xs){var e=this.Ty,r=this.by;e>0&&r>0&&(this.dxt!==e||this.lxt!==r)&&(this.dxt=e,this.lxt=r,this.dispatchEvent("resize"))}},s.Xxt=function(){var e=this.PZ;this.PZ=!0,e||this.dispatchEvent("updatestart")},M(r,[{key:"rp",get:function(){var e=[];return A(this.rxt.bC)||e.push({bC:this.rxt.bC,EC:this.rxt.EC}),A(this.ext.bC)||e.push({bC:this.ext.bC,EC:this.ext.EC}),IY(IH(new IM(e)),this.JMt.rp)}},{key:"duration",get:function(){return this.uxt.C0?this.uxt.EC:this.sxt.C0?this.sxt.EC:NaN}},{key:"paused",get:function(){return this.uxt.yy}},{key:"ended",get:function(){return this.uxt._y}},{key:"muted",get:function(){return this.uxt.muted&&this.sxt.muted},set:function(e){this.uxt.muted=e,this.sxt.muted=e}},{key:"volume",get:function(){return this.wP},set:function(e){this.wP=e,this.ixt&&this.ixt.TMt(),this.sxt.volume=0,this.uxt.volume=this.wP}},{key:"error",get:function(){return this.JN}},{key:"warning",get:function(){return this.sMt}},{key:"seeking",get:function(){return this.hxt!==this.Oxt.Lxt}},{key:"loaded",get:function(){return this.uxt.v4}},{key:"py",get:function(){return this.uxt.py},set:function(e){e>=0&&(this.uxt.py=e,this.sxt.py=e)}},{key:"Ty",get:function(){return this.uxt.Ty}},{key:"by",get:function(){return this.uxt.by}},{key:"KL",get:function(){return this.PZ}},{key:"bw",get:function(){var e;if(this.hxt===this.Oxt.Fxt||this.hxt===this.Oxt.Uxt)e=f1.Qw;else{var r=this.uxt.bw;if(r<=f1.Zw)e=r;else{var s=mo.uP(this.rp).BC(),o=this.duration,u=this.EPt();A(o)||(u=b.min(u,o));var a=s.rP(u);
1if(a){var h=a.EC(0);e=h-u>=3*this.py||!A(o)&&h>=o?f1.Jw:f1.Kw}else e=f1.Zw}}return e===f1.Yw&&this.vxt?f1.Qw:e}}]),r}(PD);function D7(e){var r=h.createElement(e);return r.preload="metadata","audio"===e&&(r.style.display="none"),"video"===e&&(r.style.display="",r.style.zIndex="1"),ih(r),r.controls=!1,r}var D9,Ut,Ue=function(){function e(e){var r=this;this.sC=void 0,this._p=void 0,this.jxt=void 0,this.Yxt=void 0,this.Qxt=void 0,this.Zxt=function(){(A(r.Yxt)||r.Qxt)&&(r.Yxt=r._x()),r.jxt=r.Yxt,r.Qxt=!1},this.Kxt=function(){var e=r._x();r.Jxt(e),r.Yxt=e},this.$xt=function(){r.sC.bw<=f1.Zw&&r.Kxt()},this.Ddt=function(){r.Jxt(r.Yxt),r.Qxt=!0},this.tUt=function(){r.Yxt=r._x()},this.sC=e,this._p=mo.aP(),this.jxt=NaN,this.Yxt=NaN,this.Qxt=!1,e.addEventListener("playing",this.Zxt),e.addEventListener("pause",this.Kxt),e.addEventListener("seeking",this.Ddt),e.addEventListener("timeupdate",this.tUt),e.addEventListener(f7.Og,this.$xt)}var r=e.prototype;return r.$X=function(){var e=this._p,r=this.jxt;if(!A(r)){var s=this._x();r<s&&(e=e.qC(new mo([r,s])))}return e.XD()},r._x=function(){return this.sC.EPt()},r.Jxt=function(e){var r=this.jxt;r<e&&(this._p=this._p.qC(new mo([r,e]))),this.jxt=NaN},r.KPt=function(){var e=this._x();this.Jxt(e),this.Qxt=!0},r.Yg=function(){this._p=mo.aP(),this.jxt=NaN,this.Yxt=NaN,this.Qxt=!1},r.rh=function(){var e=this.sC;e.removeEventListener("playing",this.Zxt),e.removeEventListener("pause",this.Kxt),e.removeEventListener("seeking",this.Ddt),e.removeEventListener("timeupdate",this.tUt),e.removeEventListener(f7.Og,this.$xt),this.sC=null},e}(),Un=function(e){function r(r,s){var o;return(o=e.call(this)||this).nUt=void 0,o.JR=void 0,o.Cr=!1,o.EV=NaN,o.iUt=void 0,o.Xv=void 0,o.QMt=void 0,o.rUt=void 0,o.JN=void 0,o.configuration={},o.loading=!1,o.loaded=!1,o._xt=f1.Yw,o.eUt=function(){o.rUt.seeking||(o.rUt.removeEventListener("seeked",o.eUt),o.dispatchEvent("seeked"),o.uUt.paused?o.Xv=o.sUt:o.oUt(),o.NV())},o.aUt=function(){o.rUt.paused||(o.rUt.removeEventListener("playing",o.aUt),o.dispatchEvent("playing"))},o.hUt=function(e){o.Xv=o.cUt,o.JN=e,o.dispatchEvent({type:"error",error:o.JN})},o.fUt={paused:!0,play:function(){o.removeEventListener("NOt",o.fUt.vUt),o.Cr?(o.Xv=o.dUt,o.rUt.removeEventListener("playing",o.aUt),o.rUt.addEventListener("playing",o.aUt),o.rUt.play(),o.dispatchEvent("play")):o.addEventListener("NOt",o.fUt.vUt)},vUt:function(){o.removeEventListener("NOt",o.fUt.vUt),o.Xv.play()},stall:function(){},pause:function(){o.fUt.vUt&&o.removeEventListener("NOt",o.fUt.vUt),o.rUt.pause(),o.dispatchEvent("pause"),o.Xv=o.sUt},load:function(e){},EPt:function(){return o.Cr?o.rUt.EPt():0},eBt:function(e,r){var s=IX(o.rp,e);r=r||!s,o.rUt.removeEventListener("seeked",o.eUt),o.rUt.addEventListener("seeked",o.eUt),o.uUt.seekTime=e,o.Xv=o.uUt,o.dispatchEvent("KPt"),o.rUt.eBt(e,r),o.dispatchEvent("seeking")},Bx:function(){return o.rUt.bw},ryt:function(e){o.uUt.seekTime=o.EPt(),o.Xv=o.lUt,o.rUt.removeEventListener("ryt",o.lUt._Ut),o.rUt.addEventListener("ryt",o.lUt._Ut),o.rUt.ryt(e),o.NV()},forwardEvent:function(e){"pause"===e.type&&o.rUt.ended||o.dispatchEvent(e)}},o.sUt=iD({},o.fUt,{pause:function(){o.removeEventListener("NOt",o.fUt.vUt)},eBt:function(e){o.uUt.paused=!0,o.fUt.eBt(e)},ryt:function(e){o.uUt.paused=!0,o.fUt.ryt(e)}}),o.gUt=iD({},o.sUt),o.wUt=iD({},o.sUt,{load:function(e,r){o.removeEventListener("NOt",o.wUt.yUt),r||o.dispatchEvent("loadstart"),o.Cr?o.rUt.load(e):(o.wUt.kUt=e,o.addEventListener("NOt",o.wUt.yUt))},yUt:function(){o.removeEventListener("NOt",o.wUt.yUt),o.Xv.load(o.wUt.kUt,!0)},kUt:null,EPt:function(){return o.Cr?o.rUt.EPt():o.wUt.mUt},eBt:function(e){o.removeEventListener("NOt",o.wUt.pUt),o.Cr?(o.Xv=o.sUt,o.Xv.eBt(e)):(o.wUt.mUt=e,o.addEventListener("NOt",o.wUt.pUt),o.dispatchEvent("seeking"))},pUt:function(){o.removeEventListener("NOt",o.wUt.pUt),o.Xv.eBt(o.wUt.mUt)},mUt:0,ryt:function(e){}}),o.dUt=iD({},o.fUt,{eBt:function(e){o.uUt.paused=!1,o.fUt.eBt(e)},play:function(){},stall:function(){o.Xv=o.AUt,o.AUt.bUt=o.rUt.EPt(),o.AUt.paused=!1,o.rUt.addEventListener("rMt",o.AUt.TUt),o.rUt._Mt(o.AUt.bUt),o.NV()},ryt:function(e){o.uUt.paused=!1,o.fUt.ryt(e)}}),o.AUt=iD({},o.dUt,{paused:!1,bUt:0,eBt:function(e){o.rUt.removeEventListener("rMt",o.AUt.TUt),o.AUt.paused?o.Xv=o.sUt:o.Xv=o.dUt,o.Xv.eBt(e),o.NV()},EPt:function(){return o.AUt.bUt},Bx:function(){return b.min(o.rUt.bw,f1.Zw)},forwardEvent:function(){},play:function(){o.AUt.paused=!1,o.dispatchEvent("play")},pause:function(){o.AUt.paused=!0,o.dispatchEvent("pause")},stall:function(){},TUt:function(){o.rUt.seeking||(o.rUt.removeEventListener("rMt",o.AUt.TUt),o.AUt.paused?o.Xv=o.sUt:o.fUt.play(),o.NV())}}),o.uUt=iD({},o.fUt,{paused:!1,seekTime:0,EPt:function(){return o.uUt.seekTime},play:function(){o.uUt.paused=!1},pause:function(){o.uUt.paused=!0,o.rUt.pause(),o.dispatchEvent("pause")}}),o.lUt=iD({},o.uUt,{eBt:function(e){o.rUt.removeEventListener("ryt",o.lUt._Ut),o.uUt.paused?o.Xv=o.sUt:o.Xv=o.dUt,o.Xv.eBt(e)},Bx:function(){return b.min(o.rUt.bw,f1.Zw)},forwardEvent:function(){},stall:function(){},_Ut:function(){o.rUt.seeking||(o.rUt.removeEventListener("ryt",o.lUt._Ut),o.uUt.paused?o.Xv=o.sUt:o.fUt.play(),o.NV())}}),o.cUt=iD({},o.fUt,{play:function(){},pause:function(){},load:function(){},EPt:function(){return NaN},Bx:function(){return f1.Yw},eBt:function(e){o.fUt.eBt(e,!0)},ryt:function(e){}}),o.wh=function(e){o.dispatchEvent(e)},o.EUt=function(e){o.Xv.forwardEvent(e)},o.SUt=function(e){o.hUt(e.error)},o.IUt=function(e){if(e.origin&&e.origin.C0)return o.Um();o.Xv.stall()},o.XLt=function(){var e=o.rUt.duration;e&&o.EV!==e&&(o.EV=e,o.dispatchEvent("durationchange"))},o.RUt=function(){o.rUt.loaded&&(o.loaded=!0)},o.NV=function(){var e=o.bw;e!==o._xt&&(o._xt=e,o.dispatchEvent(f7.Og))},o.nUt=r,o.JR=s,o.iUt=new Ue(t8(o)),o.rUt=new DG,o.Xv=o.wUt,o.QMt=h.createElement("div"),o.QMt.style.position="absolute",o.QMt.style.width="100%",o.QMt.style.height="100%",o.NUt(),o}j(r,e);var s=r.prototype;return s.oUt=function(){this.fUt.play()},s.NUt=function(){for(var e=["resize","volumechange","ratechange"],r=["timeupdate","pause","warning"],s=0;s<e.length;s++){var o=e[s];this.rUt.addEventListener(o,this.wh)}for(var u=0;u<r.length;u++){var a=r[u];this.rUt.addEventListener(a,this.EUt)}this.rUt.addEventListener("ended",this.IUt),this.rUt.addEventListener("error",this.SUt),this.rUt.addEventListener("durationchange",this.XLt),this.rUt.addEventListener("loaded",this.RUt),this.rUt.addEventListener(f7.Og,this.NV)},s.setup=function(){this.JR.pD.parentNode===this.nUt?this.nUt.replaceChild(this.QMt,this.JR.pD):(this.JR.pD.parentNode&&this.JR.pD.parentNode.removeChild(this.JR.pD),this.nUt.appendChild(this.QMt))},s.play=function(){this.Xv.play()},s.pause=function(){this.Xv.pause()},s.DUt=function(e){this.rUt&&this.rUt.Kl(e),this.Cr=!1},s.Um=function(){this.pause(),this.Xv=this.gUt,this.JN=void 0,this.dispatchEvent("ended"),this.dispatchEvent("pause")},s.load=function(e){this.Xv.load(e)},s.unload=function(){return this.rUt.Kl(),this.iUt.rh(),this.QMt.parentNode===this.nUt?this.nUt.replaceChild(this.JR.pD,this.QMt):(this.QMt.parentNode&&this.QMt.parentNode.removeChild(this.QMt),this.nUt.appendChild(this.JR.pD)),this.Th(),this.JR.pD},s.reset=function(e){this.Cr=!1,this.Xv=this.wUt,this.JN=void 0,this.EV=NaN,this._xt=f1.Yw,this.iUt.Yg(),this.DUt(e),this.loading=!1,this.loaded=!1,this.dispatchEvent("reset")},s.ryt=function(e){this.Xv.ryt(e)},s.h6=function(e){return this.rUt.h6(e),P.resolve()},s.Qm=function(){return this.rUt.Qm()},s.EPt=function(){return this.Xv.EPt()},s.eBt=function(e){this.iUt.KPt(),this.Xv.eBt(e)},s.gNt=function(e,r){return P.resolve()},s.canPlayCodecs=function(e){return this.rUt.gMt('video/mp4; codecs="'+e+'"')},s.Zit=function(e,r,s){var o={};for(var u in e)if(G.call(e,u)){var a=e[u];
1!this.rUt.videoStream&&a.Fst&&(this.rUt.videoStream=new D8(this.QMt,"Fst"),o.Fst=this.rUt.videoStream),!this.rUt.audioStream&&a.Ust&&(this.rUt.audioStream=new D8(this.QMt,"Ust"),o.Ust=this.rUt.audioStream,this.dispatchEvent("mOt"))}return this.Cr=!0,this.dispatchEvent("NOt"),P.resolve(o)},M(r,[{key:"WPt",get:function(){return this.Cr}},{key:"sp",get:function(){return this.QMt}},{key:"rp",get:function(){return this.rUt.rp}},{key:"volume",get:function(){return this.rUt.volume},set:function(e){this.rUt.volume=e}},{key:"duration",get:function(){return this.EV}},{key:"muted",get:function(){return this.rUt.muted},set:function(e){this.rUt.muted=e}},{key:"paused",get:function(){return this.Xv.paused&&this.rUt.paused}},{key:"played",get:function(){return this.iUt.$X()}},{key:"ended",get:function(){return this.Xv===this.gUt}},{key:"seeking",get:function(){return this.Xv===this.uUt}},{key:"error",get:function(){return this.JN||this.rUt.error}},{key:"warning",get:function(){return this.rUt.warning}},{key:"width",get:function(){return this.rUt.wMt()}},{key:"height",get:function(){return this.rUt.yMt()}},{key:"py",get:function(){return this.rUt.py},set:function(e){this.rUt.py=e}},{key:"bw",get:function(){return this.Xv.Bx()}},{key:"Ty",get:function(){return this.rUt.Ty}},{key:"by",get:function(){return this.rUt.by}}]),r}(PD);(Uh=Ut||(Ut={})).U_t="unsupported",Uh.CUt="native",Uh.PUt="hls-native",Uh.BUt="hls-mse",Uh.OUt="hls-switching-video";var Ui=function(){function e(){this.LUt={},this.MUt(Ut.CUt,DH),this.MUt(Ut.PUt,DH),this.MUt(Ut.BUt,DJ),this.MUt(Ut.OUt,Un)}return e.prototype.MUt=function(e,r){this.LUt[e]=r},e.MUt=function(r,s){e.AJ.MUt(r,s)},e.xUt=function(r,s,o){var u=e.AJ.LUt[r];return u?new u(s,o):void 0},e}();Ui.AJ=new Ui;var Ur=function(e){function r(r){var s;return(s=e.call(this)||this).UUt=void 0,s.FUt=function(e){s.yh(e)},s.UUt=r,s.HUt(),s}j(r,e);var s=r.prototype;return s.HUt=function(){this.UUt.kh("dL",this.FUt)},s.XUt=function(){this.UUt.Eh("dL",this.FUt)},s.Kl=function(){this.XUt()},M(r,[{key:"kL",get:function(){return this.UUt.kL}},{key:"mL",get:function(){return this.UUt.mL}},{key:"VUt",set:function(e){var r=this.UUt;r.kL===e.kL&&r.mL===e.mL||(this.XUt(),this.UUt=e,this.HUt(),this.yh(new wY(e.mL,e.kL)))}}]),r}(rB);function Us(e){return void 0!==e&&-1!==e.indexOf("m3u8")}function Uo(e){return void 0!==e&&(0===e.toLowerCase().indexOf("application/x-mpegurl")||0===e.toLowerCase().indexOf("application/vnd.apple.mpegurl"))}function Uu(e,r){var s=e.type;return s?gC?Uo(s)?!gN||r.useSwitchOverMSE||Q.Ou&&r.vr&&r.vr[360]?!gL||Q.Ru||Q.Pu&&Q.ou?g_?Ut.OUt:Ut.U_t:Ut.PUt:Ut.BUt:Ut.CUt:Ut.U_t:Ut.CUt}var Ua=function(e,r,s,o,u){var a,h,c,f,v,d,g,m=this,k=null,x=null,T=null,C=!0,S=null,R=null,L=!1,_=null,I=null,N=null,O=mh,D=mh,U=!0,M=null,F={SJ:0,mMt:0},j=null,H=null,B=null,V=1,X=!1,W="none",q=!0,Y=!0,$=!1,J=null,G=!0,K=!1,z=f1.Yw,Z=!1,te=!1,tn=NaN,ti=null,tr=null,ts=Q.yu&&gR,to=!1,tu="",ta=Ut.U_t,th=null,tc=(a=P.coroutine(iO.mark(function s(){return iO.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(m.Ja=!0,m.Th(),j&&tF(null),g&&(g.Kl(),g=null),d&&(d.Yg(),d=null),t8(),x&&(x.unload(),x=null),!I.pD){s.next=11;break}return s.next=10,r.FD(I);case 10:I=null;case 11:if(!N.pD){s.next=15;break}return s.next=14,r.FD(N);case 14:N=null;case 15:h.Kl(),e=null;case 17:case"end":return s.stop()}},s)})),function(){return a.apply(this,arguments)}),tf=function(){var e=new PH(Pj.U_t,{info:"This browser does not allow you to watch this video. Try to update your browser or use a different browser."});m.dispatchEvent({type:"unsupportedPlatform"}),t0(e)},tl=function(){var e,o;return(e=s.audioOnly?(o=r.mD(l4.Xl)).pD:(o=r.mD(l4.Vl)).pD).preload="none",ih(e),o},tp=function(e){return e===I?N:I},tv=function(){S.style.zIndex="1",R.style.zIndex="0",S.style.display=C?"":"none",R.style.display=C&&L?"":"none"},td=function(e){tE(e.ayt),tk(e.hyt),c&&(c.ayt=f),tT()}
1,ty=function(e,r){tx(e.ayt,r),tA(e.hyt),c&&(c.ayt=f)},tg=function(){tY(),tN(),m.dispatchEvent("timeupdate"),m.dispatchEvent("ended")},tm=function(){var e=function(e){if("error"===e.type)return t0(e.error);m.dispatchEvent(e)},r=function(e,r){var s;for(s=0;s<e.length;s+=1)x.addEventListener(e[s],r,!0)};switch(x.addEventListener("mOt",function(){x.volume=V,x.muted=X}),x.addEventListener("loadedmetadata",function(e){ta===Ut.CUt&&(K=!0,m.dispatchEvent(e))}),x.addEventListener("durationchange",function(){var e=x.duration;e&&e!==1/0&&tn!==e&&(tn=e,m.dispatchEvent("durationchange"))}),x.addEventListener("seeking",tq),x.addEventListener("seeked",tY),x.addEventListener("ended",tg),x.addEventListener(f7.Og,t4),x.setup(),g.$Pt=x,r(["timeupdate","playing","ratechange","resize"],e),ta){case Ut.CUt:case Ut.PUt:r(["abort","emptied","error","loadstart","progress","suspend"],e);break;case Ut.BUt:r(["play","pause"],t_)}x.addEventListener("warning",function(e){m.warning=e.warning,m.dispatchEvent(e)}),m.dispatchEvent("volumechange")},tw=function(e){k&&k.HBt(),x&&(k=new DE(e,ts,d,o))},tb=function(e){var r,o=tU(e.sources),u=e.textTracks||[],a=((r=DD(s,e.configuration||{})).crossOrigin=function(e){var r=e&&e.crossOrigin;switch(r){case fK.Vw:case fK.Ww:break;default:r=fK.qw}return e&&e.withCredentials&&(r=fK.Ww),e&&e.vr&&e.vr[360]&&r===fK.qw&&(r=fK.Vw),r}(r),r);return o&&o.contentProtection&&o.contentProtection.aes128&&o.contentProtection.aes128.useCredentials&&(a.aOt=!0),{sources:[o],textTracks:u,configuration:a}},tk=function(e){tA(e)},tE=function(e){f&&(f.Kl(),f=null,m.initialized=!1),(f=e)&&(m.dispatchEvent("loadstart",!0),f.addEventListener("loadedmetadata",function(){K=!0,t4()}),f.addEventListener("durationchange",function(){tn=f.ly,m.dispatchEvent("durationchange")}),f.addEventListener("Lh",function(e){t0(e.Lh)}),f.addEventListener("r_",tC),f.addEventListener("lp",tC),f.Uyt.addEventListener("renditionUpdated",function(){tG()}),g.Uyt=f.Uyt)},tA=function(e){var r;v&&(v.Kl(),v=null),x&&(v=e)&&(r=v.bPt,v.addEventListener("nyt",function(e){var r=m.videoWidth,s=m.videoHeight;ti=e.ivt,m.dispatchEvent(e),gF&&r===m.videoWidth&&s===m.videoHeight||m.dispatchEvent("resize")}),v.addEventListener("Lh",function(e){t0(e.error)}),v.addEventListener("nPt",function(e){m.dispatchEvent(e)}),v.$Pt=x,A(r)||tW(r))},tx=function(e,r){f&&(f.Kl(),f=null,m.initialized=!1),(f=e)&&(m.dispatchEvent("loadstart",!0),f.addEventListener("loadedmetadata",function(){K=!0,t4()}),f.addEventListener(ul._v,function(e){m.dispatchEvent(e)}),f.addEventListener(ul.yv,function(e){m.dispatchEvent(e)}),f.addEventListener("durationchange",function(){tn=f.ly,m.dispatchEvent("durationchange")}),f.addEventListener("Lh",function(e){t0(e.Lh)}),f.addEventListener("r_",tC),f.addEventListener("lp",tC),f.addEventListener("Gyt",function(){m.dispatchEvent("progress")}),f.Uyt.addEventListener("renditionUpdated",function(){tG()}),f.Uyt.addEventListener("renditionUpdated",function(e){var s,o=e.ivt.e$&&e.ivt.e$.Ust;o&&-1!==o.indexOf("mp4a.40.3")&&("zbt"!==r.jbt||gI||(s=j,PO(function(){r.useSwitchOverMSE=!0;var e=Y;j=null,t6({sources:s,configuration:r}),e||tI()})))}),g.Uyt=f.Uyt)},tT=function(){x.addEventListener("play",function(){m.play({fromNative:!0})}),x.addEventListener("pause",function(){m.pause({fromNative:!0})}),x.addEventListener("volumechange",function(){m.volume=x.volume,m.muted=x.muted}),x.addEventListener("webkitpresentationmodechanged",tH)},tC=function(){var e=G,r=!f||f.lp;G=r,r&&!e?m.dispatchEvent(ul.Jf):!r&&e&&m.dispatchEvent(ul.Kf)},tS=function(){q=!1,Y=!1,Z=!0,x.configuration.useNativeVideoPlayback||x.loaded||tP(),tG()},tR=function e(){m.removeEventListener("initialized",e),m.removeEventListener("initialized",tL),q&&(tS(),m.ended?tW(0):tK(),x.play(),v&&v.Mm())},tL=function e(){m.removeEventListener("initialized",tR),m.removeEventListener("initialized",e),q&&(tS(),tK())},t_=function(e){var r=Y;Y="pause"===e.type,r&&!Y?m.play({fromNative:!0}):!r&&Y&&m.pause({fromNative:!0})},tP=function(){Z=!0,x.configuration.useNativeVideoPlayback?(x.load(),F.mMt="start"):x.loading||(x.load(),x.loading=!0),tG()},tI=function(e){if(e=e||{}
1,Y=!1,U&&(U=!1,r.TP()),F.WUt=!1,!m.initialized||!x){if(e.onlyWhenInitialized){var s=new PH(Pj.L_t,{code:"MGB6720"});throw t0(s),s}return m.removeEventListener("initialized",tR),m.removeEventListener("initialized",tL),m.addEventListener("initialized",e.fromNative?tL:tR),m.dispatchEvent("play",!0),void m.dispatchEvent("waiting",!0)}if(q){if($&&m.ended)return tN(),void m.dispatchEvent("timeupdate",!0);m.dispatchEvent("play",!0),e.fromNative?tL():tR()}},tN=function(e){Y=!0,(e=e||{}).fromNative||m.removeEventListener("initialized",tR),m.removeEventListener("initialized",tL),!q&&x&&(q=!0,e.fromNative||(x.pause(),v&&v.xm()),m.dispatchEvent("pause",!0))},tO=function(e){return{type:Us(e)?"application/vnd.apple.mpegurl":"",src:e}},tD=function(e){return"string"==typeof e},tU=function(e){if(DO(e))return e.type?e:tO(e.src);if(tD(e))return tO(e);if(tt(e)&&tD(e[0])){for(var r=0;r<e.length;r++){var s=e[r];if(Us(s))return tO(s)}return tO(e[0])}if(tt(e)&&DO(e[0])){for(var o=0;o<e.length;o++){var u=e[o];if(Uo(u.type)||!u.type&&Us(u.src))return u.type?u:tO(u.src)}return e[0]}return{type:null,src:null}},tM=function(e){var r=(e=tb(e)).sources[0],s=e.configuration,a=Uu(r,s);switch(a){case Ut.CUt:case Ut.PUt:s.jbt=!1,s.qUt=!1;break;case Ut.BUt:s.jbt="zbt",s.qUt=!0;break;case Ut.OUt:s.jbt="MTt",s.qUt=Q.tu}var h=function(e,r,s){var a,h,f,l=s.configuration;switch(e){case Ut.CUt:f=a=h=null;break;case Ut.PUt:f=null;var p=new Dy(l,o);a=p,h=new Db(p);break;case Ut.BUt:case Ut.OUt:f=new DT(l,o);var v=new Dd(l,f,o,u);a=v,h=new Dm(v);break;default:return null}return new Id(r,e,s,f,a,h,c)}(a,r,e);return h?(h.hyt&&(h.hyt.py=m.playbackRate),h):null},tF=function(e){t6({sources:e})},tj=function(r,s){var o=_,u=o.pD,a=!1,c=!m.paused,f=ta,l=m.playbackRate,p=m.GUt;tr&&(tr.Kl(),tr=null),t8();var v=r&&r.Kyt||null;r&&r.Qyt,H=r&&r.uC||null,B=v&&v.configuration||null,ta=r&&r.Zyt||Ut.U_t,t1();var d={type:"zUt",jUt:r,iE:B,YUt:s};if(m.dispatchEvent(d),ta!==Ut.U_t){if(x){m.pause();var y=f===ta||f===Ut.PUt&&ta===Ut.CUt||f===Ut.CUt&&ta===Ut.PUt,g=s&&!Q.yu;if(y&&!g)x.reset(),k.Yg();else{if(g?(T=x,u=(o=tp(o)).pD):u=x.unload(),!(a=Ui.xUt(ta,e,o)))return void tf();x=a,tm(),tw(u)}tY(),K=!1,z=f1.Yw,Z=!1,te=!1,tn=NaN,M=null,m.dispatchEvent("durationchange"),F.mMt=0,F.SJ=0,F.WUt=!0,m.dispatchEvent("timeupdate")}else{if(!(a=Ui.xUt(ta,e,o)))return void tf();x=a,o.pD.removeAttribute("poster"),tm(),tw(o.pD)}switch(_=o,h.VUt=_.cF,S=x.sp,T?(R=T.sp,L=!0):(R=tp(o).pD,L=!1),tv(),B.crossOrigin){case fK.Vw:case fK.Ww:_.pD.setAttribute("crossorigin",B.crossOrigin);break;default:_.pD.removeAttribute("crossorigin")}if(p!==m.GUt&&m.dispatchEvent(ul.zf),tH(),tB(),!H)return j=null,void(m.initialized=!1);!function(e,r){switch(ta){case Ut.CUt:case Ut.PUt:td(e);break;case Ut.BUt:case Ut.OUt:ty(e,r);break;default:return}e.sC=m,e.hkt(W)}(tr=r,B),x.src=H,k.MBt(v&&v.textTracks),m.playbackRate=l,j=H;var w={type:"QUt",jUt:r,iE:B,YUt:s};m.dispatchEvent(w),m.initialized=!0,m.dispatchEvent("initialized"),tC(),tW("start"),x.configuration.useNativeVideoPlayback&&Q.yu&&c&&tZ()&&(m.play(),m.pause()),v&&m.dispatchEvent({type:"sourcechange",sourceDescription:v})}else tf()},tH=function(){var e=tu;(tu=m.TOt)!==e&&m.dispatchEvent("ZUt")},tB=function(){g&&(g.FW=ts&&to)},tV=function(){return x&&x.WPt?x.volume:V},tX=function(){if(!te)return"start"===M?0:M||0;if(!x||F.WUt)return F.mMt;if(v){var e=v.bPt;return"start"===e?0:e}return x.EPt()},tW=function(e){if(!te){var r=tX();return M=e,void(r!==tX()&&tq())}if(M=null,"start"===e&&(e=m.live?1/0:0),e=t3(e=E(e)||0),x){if(.001>b.abs(F.mMt-e)&&wD()-F.SJ<50)return;tq(),v?v.bPt=e:x.eBt(e),x.seeking||tY(),F={mMt:e,SJ:wD()}}},tq=function(){$=!0,tQ(),th=l(t$,100)},tY=function(){$&&($=!1,th&&t$(),m.dispatchEvent("seeked"))},t$=function(){tQ(),m.dispatchEvent("seeking")},tQ=function(){th&&(p(th),th=null)},tG=function(){te||(te=!A(tn)&&t2().length>0&&(Z||!m.live))&&m.dispatchEvent("XMt")},tK=function e(){m.removeEventListener("XMt",e),null!==M&&(te?tW(M):m.addEventListener("XMt",e))},tz=function(){return x&&x.WPt?x.muted:X},tZ=function(){return Y},t0=function(e){var r;e&&e.code===Pj.M_t?(r=!Y,tF(tr.uC),r&&tI()):(tZ()||tN(),J=e,m.dispatchEvent({type:"error",error:J}))},t1=function(){J=null},t2=function(){return ID(v?v.wp:tn>0?new IM([{bC:0,EC:tn}]):IF)},t3=function(e){var r=t2();return r.length?tJ(e,r.start(0),r.end(r.length-1)):0},t5=function(){var e=x?x.bw:f1.Yw;return K&&(e=b.max(f1.Qw,e)),e},t4=function(){var e=t5();e!==z&&(z=e,m.dispatchEvent(f7.Og))},t6=function(e){tj(tM(e),!1)},t8=function(){if(T){var e=T.unload();T=null,L=!1,R=e||tp(_).pD,tv()}};m.initialized=!1,m.warning=null,m.play=tI,m.pause=tN,m.load=function(){if(!m.initialized||!x
1){var e=new PH(Pj.L_t,{code:"MGB7330"});throw t0(e),e}tP(),tW("start")},m.KUt=tM,m.JUt=tj,m.rh=tc,m.Hm=t6,m.jm=function(){C=!0,tv()},m.Ym=function(){C=!1,tv()},m.Qm=function(){return x&&x.Qm()},m.ym=function(){return iD({},{ap:0,hp:0,cp:0,fp:0,vp:0,dp:{amountOfBufferedAudioSegments:0,amountOfBufferedVideoSegments:0}},x?bP(x.$Pt):{ap:0,hp:0,cp:0},{fp:8*fO.Uw()})},w.defineProperty(m,"buffered",{get:function(){return ID(x?x.rp:IF)}}),w.defineProperty(m,"played",{get:function(){return x?ID(x.played):IF}}),w.defineProperty(m,"seekable",{get:t2}),w.defineProperty(m,"live",{get:function(){return!(!f||!I4.dm(f.Uyt.Zot))}}),w.defineProperty(m,"volume",{get:tV,set:function(e){(e=E(e))!==tV()&&(x&&(x.volume=e),V=e,m.dispatchEvent("volumechange"))}}),w.defineProperty(m,"currentTime",{get:tX,set:tW}),w.defineProperty(m,"dimensions",{get:function(){return h}}),w.defineProperty(m,"currentProgramDateTime",{get:function(){return v?v.ep:null},set:function(e){var r;e&&"function"==typeof e.getTime&&!A(e.getTime())&&v&&(A(r=v.PIt(e))||null===r||tW(r))}}),w.defineProperty(m,"duration",{get:function(){return tn}}),w.defineProperty(m,"muted",{get:tz,set:function(e){e!==tz()&&(X=e,x&&(x.muted=e),X=e,m.dispatchEvent("volumechange"))}}),w.defineProperty(m,"paused",{get:tZ,set:function(e){e?tN():tI()}}),w.defineProperty(m,"preload",{get:function(){return W},set:function(e){W=mt((e||"none").toLowerCase())}}),w.defineProperty(m,"ended",{get:function(){return x&&x.ended||!1}}),w.defineProperty(m,"seeking",{get:function(){return $}}),w.defineProperty(m,"error",{get:function(){return J||x&&x.error}}),w.defineProperty(m,"element",{get:function(){return e}}),w.defineProperty(m,"GUt",{get:function(){return B&&B.vr&&B.vr[360]?mh:_===I?O:D}}),w.defineProperty(m,"videoWidth",{get:function(){return x?x.Ty:ti&&ti.resolution?ti.resolution.width:0}}),w.defineProperty(m,"videoHeight",{get:function(){return x?x.by:ti&&ti.resolution?ti.resolution.height:0}}),w.defineProperty(m,"frameRate",{get:function(){return v&&v.pwt}}),w.defineProperty(m,"frameAccurateSeekEnabled",{get:function(){return!m.live&&x&&x.paused&&m.frameRate}}),w.defineProperty(m,"currentFrame",{get:function(){return v?v.iBt(tX()):NaN},set:function(e){m.frameAccurateSeekEnabled&&(e=E(e),tW(v.rBt(e)))}}),w.defineProperty(m,"playbackRate",{get:function(){return v&&v.py||x&&x.py||1},set:function(e){(e=E(e))>0&&(v?v.py=e:x&&(x.py=e))}}),w.defineProperty(m,"videoTracks",{get:function(){return tr&&tr.Bm.gg||null}}),w.defineProperty(m,"audioTracks",{get:function(){return tr&&tr.Pm.gg||null}}),w.defineProperty(m,"Om",{get:function(){return d}}),w.defineProperty(m,"online",{get:function(){return G}}),w.defineProperty(m,"AOt",{get:function(){return x&&x.AOt}}),w.defineProperty(m,"bOt",{get:function(){return x&&x.bOt}}),w.defineProperty(m,"TOt",{get:function(){return x&&x.TOt||"inline"},set:function(e){x&&(x.TOt=e)}}),w.defineProperty(m,"$Ut",{get:function(){return to},set:function(e){to=!!e,tB()}}),w.defineProperty(m,"bw",{get:t5}),function(){var r;if(!e)throw new y("Invalid element.");m.addEventListener(ul.Jf,function(){m.live&&tW("start")}),m.addEventListener("playing",t8),g=new Dx(m,d=new vX),m.addEventListener("fullscreenchange",tB),tB(),s.allowManualQualitySwitch&&(c=new Iy),r=function(e){if("string"==typeof e)try{return PU.ju.HZ(e,m)}catch(r){throw new y("Unknown rule: "+e)}return e},s.RDt=function(e){var s,o=[];for(s=0;s<e.length;s+=1)o.push(r(e[s]));return o}(s.abrRules),m.addEventListener("durationchange",tG),I=tl(),N=tl(),_=I,S=I.pD,R=N.pD,h=new Ur(_.cF),O=I.LD,D=N.LD,tv(),tF(null)}()};Ua.prototype=new PD,Ua.prototype.constructor=Ua;var Uh,Uc,Uf=((Uc={useSwitchOverMSE:!1,ManifestParser:"tFt",allowManualQualitySwitch:"panel",initialRendition:"default",playbackRates:!1,isEmbeddable:!1,withCredentials:!1,enableKeyboardShortcuts:!0,skipImplicitHEAACDetection:!0,abrRules:[]}).abrRules.push("DownloadMetricRule"),Uc.abrRules.push("OnlyAllowSameTrackTypeRenditionsRule"),gO&&Uc.abrRules.push("AvoidHighBitrateStreamsRule"),Q.pu&&Uc.abrRules.push("AvoidVideoResolutionGreaterThanDisplaySizeRule"),Uc),Ul=function(e){function r(r,s){var o;(o=e.call(this)||this).nFt=void 0,o.iFt=void 0,o.bp=void 0,o.yp=void 0,o._g=void 0,o.y4=void 0,o.Ent=void 0,o.rFt=function(){return o.eFt()},o.uFt=function(){return o.sFt()},o.oFt=function(){return o.yh(new l7(t8(o)))},o.bp=pt++,o.nFt=r,o.iFt=s,o.yp=new l8;
1for(var u=o.nFt.qualities,a=0;a<u.length;a++){var h=u.item(a),c=o.aFt(h);c.kh("update",o.oFt),o.yp.Wy(c)}return o.nFt.qualities.addEventListener("activequalitychanged",o.rFt),o.nFt.qualities.addEventListener("targetqualitychanged",o.uFt),o.eFt(),o.sFt(),o}j(r,e);var s=r.prototype;return s.hFt=function(e){e!==this.y4&&(this.y4=e,e&&this.yh(new R2(e)))},s.cFt=function(e,r){return e===r||!(!e||!r)&&e.length===r.length&&rp(e,r)},s.fFt=function(e){for(var r=0,s=this.yp.Qg;r<s.length;r++){var o=s[r];if(o.vFt===e)return o}},s.dFt=function(e){for(var r=[],s=0,o=this.yp.Qg;s<o.length;s++){var u=o[s];rl(e,u.vFt)&&r.push(u)}return r},s.eFt=function(){var e=this.aw?this.nFt.qualities.activeQuality:void 0,r=e&&this.fFt(e)||void 0;this.hFt(r)},s.sFt=function(){var e=this.nFt.qualities.targetQuality;e?Z(e)?this._w=this.dFt(e)||void 0:this._w=this.dFt([e])||void 0:this._w=void 0},s.Sp=function(e){this.aw=e},s.Kl=function(){this.nFt.qualities.removeEventListener("activequalitychanged",this.rFt),this.nFt.qualities.removeEventListener("targetqualitychanged",this.uFt);for(var e=0,r=this.yp.Qg;e<r.length;e++){var s=r[e];s.Eh("update",this.oFt),s.Kl()}},M(r,[{key:"ow",get:function(){return this.y4}},{key:"aw",get:function(){return this.nFt.enabled},set:function(e){e?this.iFt.enable(this.nFt):this.iFt.disable(this.nFt)}},{key:"gg",get:function(){return this._g||(this._g=fg(this)),this._g}},{key:"hw",get:function(){return this.nFt.id+""}},{key:"cw",get:function(){return this.bp}},{key:"fw",get:function(){return this.nFt.kind}},{key:"vw",get:function(){var e;return null!=(e=this.nFt.name)?e:""},set:function(e){e!==this.vw&&(this.nFt.name=e,this.yh(new l7(this)))}},{key:"dw",get:function(){return this.nFt.language}},{key:"Aw",get:function(){return this.aw?"enabled":"disabled"}},{key:"lw",get:function(){return this.yp}},{key:"_w",get:function(){return this.Ent},set:function(e){var r=this,s=this.Ent,o=e?e.filter(function(e){return _.oa.Eo(r.ow,e)}):void 0;o&&0===o.length||this.cFt(o,s)||(this.Ent=o,this.nFt.qualities.targetQuality=o?o.map(function(e){return e.vFt}):null,this.yh(new CA(o,this)))}}]),r}(rB),Up=function(e){function r(r){var s,o;return(o=e.call(this)||this).vFt=void 0,o._g=void 0,o.zP=function(){return o.Ec()},o.hw=void 0,o.cw=void 0,o.QN=void 0,o.e$=void 0,o.h0=void 0,o.vFt=r,o.vFt.addEventListener("qualityupdated",o.zP),o.hw=String(r.id),o.cw=r.uid,o.QN=null!=(s=r.bandwidth)?s:NaN,o.e$=r.codecs,o.h0=r.uri,o}j(r,e);var s=r.prototype;return s.Ec=function(){this.lFt()&&this.yh(new TF(this.gg))},s.lFt=function(){var e,r=this.vFt,s=r.uid,o=null!=(e=r.bandwidth)?e:NaN,u=r.codecs,a=r.uri,h=this.cw!==s||!tK(this.QN,o)||this.e$!==u||this.h0!==a;return this.cw=s,this.QN=o,this.e$=u,this.h0=a,h},s.Kl=function(){this.vFt.removeEventListener("qualityupdated",this.zP)},s._S=function(){},M(r,[{key:"vw",get:function(){return this.vFt.name||""},set:function(e){this.vw!==e&&(this.vFt.name=e,this.yh(new TF(this.gg)))}},{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}},{key:"bK",get:function(){return!0}}]),r}(rB),Uv=function(e){function r(r){var s;return(s=e.call(this,r)||this).r$=void 0,s.r$=NaN,s}return j(r,e),r.prototype.wg=function(){return TD(this)},r}(Up),Ud=function(e){function r(r,s){var o;return void 0===s&&(s=0),(o=e.call(this,r)||this).a$=void 0,o.Lo=void 0,o.yT=void 0,o._Ft=void 0,o.a$=r.frameRate,o.Lo=r.resolution?r.resolution.width:NaN,o.yT=r.resolution?r.resolution.height:NaN,o._Ft=s,o}j(r,e);var s=r.prototype;return s.lFt=function(){var r=e.prototype.lFt.call(this),s=this.vFt,o=s.frameRate,u=s.resolution?s.resolution.width:NaN,a=s.resolution?s.resolution.height:NaN;return r=r||!tK(this.a$,o)||!tK(this.Lo,u)||!tK(this.yT,a),this.a$=o,this.Lo=u,this.yT=a,r},s.wg=function(){return TO(this)},M(r,[{key:"o0",get:function(){return this._Ft},set:function(e){this._Ft!==e&&(this._Ft=e,this.yh(new TF(this.gg)))}}]),r}(Up),Uy=function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.aFt=function(e){return new Uv(e)},r}(Ul),Ug=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).gFt=void 0,r}j(r,e);var s=r.prototype;return s.aFt=function(e){return new Ud(e,this.gFt)},s.wFt=function(e){this.gFt=e;for(var r=0,s=this.lw.Qg;r<s.length;r++){var o=s[r];void 0!==o.o0&&(o.o0=e)}},r}(Ul);function Um(e,r){for(var s=0;s<e.Zg;s++){var o=e.qg(s);if(o.nFt===r)return o}}var Uw=function(e){function r(r,s,o,u,a,h){var c,f,l;return(c=e.call(this)||this).yP=void 0,c.GQ=void 0,c.yFt=void 0,c.kFt=void 0,c.c_t=void 0,c.Sm=void 0,c.Im=void 0,c.Vq=void 0,c.Wq=void 0,c.Rm=void 0,c.TS=void 0,c.oZ=void 0,c.aZ=void 0,c.E6=void 0,c.JN=void 0,c.$N=void 0,c.mFt=NaN,c.F6=0,c.uD=new gz,c.pFt=function(){c.yh(new le(c.vy))},c.AFt=function(){c.yh(new lt(c.vy))},c.r8=function(){c.yh(new ll(c.vy))},c.e8=function(){c.yh(new lp(c.vy))},c.bFt=function(){c.yh(new la(c.vy,c.py))},c.TFt=function(){c.yh(new lv(c.vy,c.Ey))},c.EFt=function(){c.yh(new kE(c.vy))},c.SFt=function(){c.yh(new lc(c.vy))},c.IFt=function(){c.yh(new kA)},c.RFt=function(){c.yh(new CG)},c.NFt=function(){c.yh(new CK)},c.DFt=function(){c.CFt(),c.c_t.Yg(),c.d_t(),c.UD()},c.pF=function(){c.d_t(),c.UD(),c.TD()},c.CFt=function(){var e=c.mFt,r=c.ly;c.mFt=r,e===r||A(e)&&A(r)||c.yh(new lu(r))},c.PFt=function(e){var r=e.error||c.yFt.error;if(r){var s,o=lQ.DECODE;r.code===Pj.N_t&&nW(r.info.code,"VEE")&&(o=+r.info.code.substr(3)),r.info&&(s=r.info.code),c.JN=new lZ(o,r.message,s),c.yh(new lm(l2(c.JN)))}},c.oD=function(){c.yh(new lh(c.vy,c.ep))},c.BFt=function(){c.Ty>0&&c.by>0&&c.yh(new di)},c.OFt=function(){c.yh(new fI)},c.LFt=function(e){c.Im.Qg.forEach(function(r){return r.wFt(e.ptsOffset)})},c.MFt=function(e){c.F6+=e.vp,c.yh(e)},c.xFt=function(e){return c.UFt(e.track)},c.FFt=function(e){return c.HFt(e.track)},c.XFt=function(e){var r=Um(c.Sm,e.track);r&&r.yh(new c7(r))},c.VFt=function(e){var r=Um(c.Im,e.track);r&&r.yh(new c7(r))},c.GQ=r,c.yP=s,l=DD(u,l={}),(l=DD(Uf,l)).abrRules=l.abrRules.slice(0),l.allowManualQualitySwitch=!Q.fu&&l.allowManualQualitySwitch,l.libraryLocation=nz(l.libraryLocation||"./",!0),l.initialRendition=l.initialRendition&&l.initialRendition.toLowerCase(),l.localisation=(f=l.localisation||{},function(e){return G.call(f,e)?f[e]:e}
1),u=l,c.yFt=new Ua(c.GQ,c.yP,u,o,a),c.WFt(),c.kFt=new Ub(c.yFt),c.c_t=new gX(c.kFt,!0),c.c_t.kh(ls,c.wh),c.Sm=new l6,c.Im=new l6,c.TS=new Lp(t8(c),new Ez),c.Vq=new E7(t8(c)),c.Vq.ew=c.yFt.Om,c.Wq=new E9(c.TS,c.Vq),c.Rm=new Ea([c.yFt.Om,c.Wq.iT]),c.oZ=new Ah,c.oZ.lz(r),c.aZ=new xb(c.oZ.sp,c.yFt.dimensions,c.Om,h,c.yFt.GUt),c.TD(),c}j(r,e);var s,o,u,a=r.prototype;return a.Ym=function(){this.yFt.Ym(),this.oZ.Ym()},a.jm=function(){this.yFt.jm(),this.oZ.jm()},s=P.coroutine(iO.mark(function e(r,s){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.E6=r,this.yFt.Hm({sources:{src:r.src,type:fz.Xw,contentProtection:r.contentProtection},textTracks:s.textTracks,configuration:iD({},s,{crossOrigin:r.crossOrigin,withCredentials:r.useCredentials,liveOffset:r.liveOffset,hlsDateRange:r.hlsDateRange,hls:r.hls})});case 2:case"end":return e.stop()}},e,this)})),a.Hm=function(e,r){return s.apply(this,arguments)},a.Mm=function(){this.yFt.play()},a.xm=function(){this.yFt.pause()},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.E6=void 0,this.JN=void 0,this.$N=void 0,this.F6=0,this.yFt.Hm({sources:null}),this.c_t.Yg(),this.TS.Yg(),this.d_t();case 8:case"end":return e.stop()}},e,this)})),a.Yg=function(){return o.apply(this,arguments)},a.Xm=function(){return!1},a.Vm=function(){},a.Wm=function(){},a.Qm=function(){return this.yFt.Qm()||void 0},a.Zm=function(){return this.yFt.GUt},a.ip=function(){},u=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Yg();case 2:return this.Th(),this.c_t.Kl(),this.kFt.Kl(),this.qFt(),e.next=8,this.yFt.rh();case 8:return this.Sm.Kl(),this.Im.Kl(),this.Vq.Kl(),e.next=13,this.Wq.Kl();case 13:this.TS.Kl(),this.Rm.Kl(),this.aZ.Kl(),this.oZ.Kl();case 17:case"end":return e.stop()}},e,this)})),a.Kl=function(){return u.apply(this,arguments)},a.WFt=function(){this.yFt.addEventListener("zUt",this.DFt),this.yFt.addEventListener("QUt",this.pF),this.yFt.addEventListener("durationchange",this.CFt),this.yFt.addEventListener("error",this.PFt),this.yFt.addEventListener("timeupdate",this.oD),this.yFt.addEventListener("resize",this.BFt),this.yFt.addEventListener(ul.zf,this.OFt),this.yFt.addEventListener("nPt",this.LFt),this.yFt.addEventListener(ul.yv,this.MFt),this.yFt.addEventListener("play",this.pFt),this.yFt.addEventListener("pause",this.AFt),this.yFt.addEventListener("seeking",this.r8),this.yFt.addEventListener("seeked",this.e8),this.yFt.addEventListener("ratechange",this.bFt),this.yFt.addEventListener("volumechange",this.TFt),this.yFt.addEventListener("progress",this.EFt),this.yFt.addEventListener("ended",this.SFt),this.yFt.addEventListener("loadstart",this.IFt),this.yFt.addEventListener(ul.Jf,this.RFt),this.yFt.addEventListener(ul.Kf,this.NFt),this.yFt.addEventListener(ul._v,this.wh)},a.qFt=function(){this.yFt.removeEventListener("zUt",this.DFt),this.yFt.removeEventListener("QUt",this.pF),this.yFt.removeEventListener("durationchange",this.CFt),this.yFt.removeEventListener("error",this.PFt),this.yFt.removeEventListener("timeupdate",this.oD),this.yFt.removeEventListener("resize",this.BFt),this.yFt.removeEventListener(ul.zf,this.OFt),this.yFt.removeEventListener("play",this.pFt),this.yFt.removeEventListener("pause",this.AFt),this.yFt.removeEventListener("seeking",this.r8),this.yFt.removeEventListener("seeked",this.e8),this.yFt.removeEventListener("ratechange",this.bFt),this.yFt.removeEventListener("volumechange",this.TFt),this.yFt.removeEventListener("progress",this.EFt),this.yFt.removeEventListener("ended",this.SFt),this.yFt.removeEventListener("loadstart",this.IFt),this.yFt.removeEventListener(ul.Jf,this.RFt),this.yFt.removeEventListener(ul.Kf,this.NFt),this.yFt.removeEventListener(ul._v,this.wh),this.yFt.removeEventListener(ul.yv,this.MFt)},a.TD=function(){var e=this.yFt.audioTracks,r=this.yFt.videoTracks;if(e){for(var s=0;s<e.length;s++)this.UFt(e.item(s));e.addEventListener("addtrack",this.xFt),e.addEventListener("enabledtrack",this.XFt),e.addEventListener("disabledtrack",this.XFt)}if(r){for(var o=0;o<r.length;o++)this.HFt(r.item(o));r.addEventListener("addtrack",this.FFt),r.addEventListener("enabledtrack",this.VFt),r.addEventListener("disabledtrack",this.VFt)}},a.UD=function(){var e=this.yFt.audioTracks,r=this.yFt.videoTracks;e&&(e.removeEventListener("addtrack",this.xFt),e.removeEventListener("enabledtrack",this.XFt),e.removeEventListener("disabledtrack",this.XFt)),r&&(r.removeEventListener("addtrack",this.FFt),r.removeEventListener("enabledtrack",this.VFt),r.removeEventListener("disabledtrack",this.VFt))},a.d_t=function(){for(var e=0,r=this.Sm.Qg;e<r.length;e++)r[e].Kl();for(var s=0,o=this.Im.Qg;s<o.length;s++)o[s].Kl();this.Sm.Yg(),this.Im.Yg()},a.UFt=function(e){Um(this.Sm,e)||this.Sm.Gg(new Uy(e,this.yFt.audioTracks))},a.HFt=function(e){Um(this.Im,e)||this.Im.Gg(new Ug(e,this.yFt.videoTracks))},M(r,[{key:"Pm",get:function(){return this.Sm}},{key:"rp",get:function(){return this.yFt.buffered}},{key:"ep",get:function(){var e;return null!=(e=this.yFt.currentProgramDateTime)?e:void 0},set:function(e){this.yFt.currentProgramDateTime=null!=e?e:null}},{key:"vy",get:function(){var e=this.yFt.currentTime;return e===1/0&&A(this.yFt.duration)&&(e=0),e},set:function(e){this.yFt.currentTime=e}},{key:"ly",get:function(){var e=this.yFt.duration;return e<0?1/0:e}},{key:"_y",get:function(){return this.yFt.ended}},{key:"Lh",get:function(){return this.JN}},{key:"gy",get:function(){return this.$N}},{key:"Lm",get:function(){}},{key:"op",get:function(){return!1}},{key:"ym",get:function(){return iD({},this.yFt.ym(),{vp:this.F6})}},{key:"wy",get:function(){return this.yFt.muted},set:function(e){this.yFt.muted=e}},{key:"lp",get:function(){return this.yFt.online}},{key:"yy",get:function(){return this.yFt.paused}},{key:"py",get:function(){return this.yFt.playbackRate},set:function(e){this.yFt.playbackRate=e}},{key:"_p",get:function(){return this.yFt.played}},{key:"gp",get:function(){return this.yFt.preload||g7.cC}
1,set:function(e){this.yFt.preload=e}},{key:"bw",get:function(){return this.yFt.bw}},{key:"wp",get:function(){return this.yFt.seekable}},{key:"Ay",get:function(){return this.yFt.seeking}},{key:"qD",get:function(){}},{key:"Om",get:function(){return this.Rm}},{key:"Bm",get:function(){return this.Im}},{key:"by",get:function(){return this.yFt.videoHeight}},{key:"Ty",get:function(){return this.yFt.videoWidth}},{key:"Ey",get:function(){return this.yFt.volume},set:function(e){this.yFt.volume=e}},{key:"GD",get:function(){return this.uD}}]),r}(f_),Ub=function(e){function r(r){var s;return(s=e.call(this)||this).yFt=void 0,s.GFt=function(){s.yh(new lg(s.vy,s.yFt.bw))},s.zFt=function(){s.yh(new gV(s.vy))},s.pFt=function(){s.yh(new le(s.vy))},s.AFt=function(){s.yh(new lt(s.vy))},s.yFt=r,s.yFt.addEventListener(f7.Og,s.GFt),s.yFt.addEventListener(f7.oy,s.zFt),s.yFt.addEventListener(ul.tv,s.pFt),s.yFt.addEventListener(ul.$f,s.AFt),s}return j(r,e),r.prototype.Kl=function(){this.Th(),this.yFt.removeEventListener(f7.Og,this.GFt),this.yFt.removeEventListener(f7.oy,this.zFt),this.yFt.removeEventListener(ul.tv,this.pFt),this.yFt.removeEventListener(ul.$f,this.AFt)},M(r,[{key:"vy",get:function(){var e=this.yFt.currentTime;return e===1/0&&A(this.yFt.duration)&&(e=0),e}},{key:"_y",get:function(){return this.yFt.ended}},{key:"Lh",get:function(){return this.yFt.error||void 0}},{key:"yy",get:function(){return this.yFt.paused}}]),r}(rB);g6(new(function(){function e(){this.zD=gY.Xw}var r=e.prototype;return r.zS=function(e,r,s,o,u,a){return new Uw(e,r,s,o,u,a)},r.jD=function(r,s){if((Q.yu||Q.Xu)&&!s.manifestMetadataTrack||!fF(r.type)||r.useNativePlayback)return!1;var o=r.contentProtection;return!(o&&!dU(o)&&!e.MK(o))&&Uu(r,{})!==Ut.U_t},e.MK=function(e){return!!e.aes128},r.YD=function(){return!0},e}()));var Uk,UE=function(e){function r(){return e.call(this,"jFt")||this}return j(r,e),r}(rX),UA=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).YFt=void 0,u.QFt=void 0,u.ZFt=void 0,u.E6=void 0,u.KFt=void 0,u.ES=void 0,u.Cr=void 0,u.JFt=void 0,u.$Ft=function(){u.yh(new UE)},u.E6=r,u.KFt=iD({},s,{crossOrigin:u.E6.crossOrigin,withCredentials:u.E6.useCredentials,liveOffset:u.E6.liveOffset,hlsDateRange:u.E6.hlsDateRange}),u.ES=o,u.QFt=[],u.Cr=!1,u}j(r,e);var s,o,u=r.prototype;return u.tHt=function(){if(this.ZFt)return this.ZFt.wm},u.bC=function(e){var r=this;rN(x7(function(){return r.hkt()},e))},s=P.coroutine(iO.mark(function e(){var r,s,o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.nHt();case 2:if((r=e.sent).isMasterPlaylist)for(this.YFt=r,s=0,o=r.streams;s<o.length;s++)u=o[s],a=new OD(this.ES,this.KFt),this.QFt.push({stream:{uri:u.uri,width:u.resolution&&u.resolution.width,height:u.resolution&&u.resolution.height},updater:a});else h=new OD(this.ES,this.KFt),this.QFt.push({stream:{uri:r.uri},updater:h});this.JFt&&(this.iHt(this.JFt.width,this.JFt.height),this.JFt=void 0),this.Cr=!0;case 6:case"end":return e.stop()}},e,this)})),u.hkt=function(){return s.apply(this,arguments)},u.rHt=function(e,r){this.Cr?this.iHt(e,r):this.JFt={width:e,height:r}},u.iHt=function(e,r){this.eHt();var s=this.uHt(e,r);s&&(this.ZFt=s.updater,this.ZFt.addEventListener("zEt",this.$Ft),s.updater.bC(s.stream.uri))},u.eHt=function(){this.ZFt&&(this.ZFt.Um(),this.ZFt.removeEventListener("zEt",this.$Ft),this.ZFt=void 0)},u.uHt=function(e,r){return 1===this.QFt.length?this.QFt[0]:ra(this.QFt,function(s){return s.stream.width===e&&s.stream.height===r})},o=P.coroutine(iO.mark(function e(){var r,s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=new OO(this.KFt,x6.ju.tJ,this.ES),e.next=3,r.bc(this.E6.src,{});case 3:return s=e.sent,e.abrupt("return",s.wm);case 5:case"end":return e.stop()}},e,this)})),u.nHt=function(){return o.apply(this,arguments)},u.Kl=function(){this.eHt();for(var e=0,r=this.QFt;e<r.length;e++)r[e].updater.Kl();rv(this.QFt)},r}(rB),Ux=function(e){function r(r,s,o){var u;return(u=e.call(this,r)||this).sHt=void 0,u.oHt=void 0,u.mU=void 0,u.aHt=!1,u.Zvt=void 0,u.Gq=void 0,u.handleManifestUpdate=function(){var e=u.sHt.tHt();if(e){var r=u.qD;if(r){var s=r.getTime(),o=u.Zvt;o||(u.Zvt=o=new _3),o.Ec(e.dateRanges,function(e){return(e.getTime()-s)/1e3}),!u.aHt&&o.Tw.Zg>0&&(u.Om.Gg(o),u.Gq.Gg(o),u.aHt=!0)}}},u.BFt=function(){u.sHt&&u.sHt.rHt(u.Ty,u.by)},u.oHt=s,u.mU=o,u.Gq=new E0(t8(u)),u.kh(ul.ov,u.BFt),u}j(r,e);var s,o=r.prototype;return s=P.coroutine(iO.mark(function r(s,o,u){return iO.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.prototype.Hm.call(this,s,o,u);case 2:s.hlsDateRange&&this.s0(s,o,u);case 3:case"end":return r.stop()}},r,this)})),o.Hm=function(e,r,o){return s.apply(this,arguments)},o.s0=function(e,r,s){this.sHt&&(this.sHt.Eh("jFt",this.handleManifestUpdate),this.sHt.Kl()),this.sHt=new UA(e,r,this.oHt),this.sHt.kh("jFt",this.handleManifestUpdate),this.sHt.bC(s)},o.Yg=function(){return this.Zvt&&(this.Om.zg(this.Zvt),this.Gq.zg(this.Zvt),this.Zvt.Kl(),this.Zvt=void 0,this.aHt=!1),this.Gq.Yg(),e.prototype.Yg.call(this)},o.Kl=function(){return this.Eh(ul.ov,this.BFt),this.sHt&&(this.sHt.Eh("jFt",this.handleManifestUpdate),this.sHt.Kl()),this.Gq.Kl(),e.prototype.Kl.call(this)},r}(function(e){function r(r){var s;return(s=e.call(this)||this).hHt=void 0,s.hHt=r,s.hHt.Ah(s.wh),s}j(r,e);var s=r.prototype;return s.Xm=function(){return this.hHt.Xm()},s.Zm=function(){return this.hHt.Zm()},s.Qm=function(){return this.hHt.Qm()},s.Ym=function(){return this.hHt.Ym()},s.ip=function(){return this.hHt.ip()}
1,s.xm=function(){return this.hHt.xm()},s.Mm=function(){return this.hHt.Mm()},s.Yg=function(){return this.hHt.Yg()},s.Hm=function(e,r,s){return this.hHt.Hm(e,r,s)},s.jm=function(){return this.hHt.jm()},s.Vm=function(){return this.hHt.Vm()},s.Wm=function(){return this.hHt.Wm()},s.Kl=function(){return this.Th(),this.hHt.Kl()},M(r,[{key:"Pm",get:function(){return this.hHt.Pm}},{key:"rp",get:function(){return this.hHt.rp}},{key:"ep",get:function(){return this.hHt.ep},set:function(e){this.hHt.ep=e}},{key:"vy",get:function(){return this.hHt.vy},set:function(e){this.hHt.vy=e}},{key:"ly",get:function(){return this.hHt.ly}},{key:"_y",get:function(){return this.hHt._y}},{key:"gy",get:function(){return this.hHt.gy}},{key:"Lm",get:function(){return this.hHt.Lm}},{key:"Lh",get:function(){return this.hHt.Lh}},{key:"op",get:function(){return this.hHt.op}},{key:"ym",get:function(){return this.hHt.ym}},{key:"wy",get:function(){return this.hHt.wy},set:function(e){this.hHt.wy=e}},{key:"lp",get:function(){return this.hHt.lp}},{key:"yy",get:function(){return this.hHt.yy}},{key:"py",get:function(){return this.hHt.py},set:function(e){this.hHt.py=e}},{key:"_p",get:function(){return this.hHt._p}},{key:"gp",get:function(){return this.hHt.gp},set:function(e){this.hHt.gp=e}},{key:"bw",get:function(){return this.hHt.bw}},{key:"wp",get:function(){return this.hHt.wp}},{key:"Ay",get:function(){return this.hHt.Ay}},{key:"qD",get:function(){return this.hHt.qD}},{key:"Om",get:function(){return this.hHt.Om}},{key:"by",get:function(){return this.hHt.by}},{key:"Bm",get:function(){return this.hHt.Bm}},{key:"Ty",get:function(){return this.hHt.Ty}},{key:"Ey",get:function(){return this.hHt.Ey},set:function(e){this.hHt.Ey=e}},{key:"GD",get:function(){return this.hHt.GD}}]),r}(f_));g5.KD().JD(function(e,r,s){return new Ux(e,r,s)}),(Uk||(Uk={})).cHt="statechange";var UT,UC=function(e){function r(r){var s;return(s=e.call(this,Uk.cHt)||this).Art=r,s}return j(r,e),r}(rX),US=function(e){function r(r,s){var o;return void 0===s&&(s=""),(o=e.call(this,"An error occurred while casting.")||this).errorCode=r,o.description=s,o}return j(r,e),M(r,[{key:"name",get:function(){return"CastError"}}]),r}(t9),UR=function(){function e(){this.CBt=void 0}var r,s=e.prototype;return s.fHt=function(){return this.CBt||(this.CBt=this.vHt().catch(function(){throw new US("API_NOT_INITIALIZED","The Chromecast library could not be loaded successfully.")})),this.CBt},r=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("u">typeof chrome&&chrome&&chrome.cast&&chrome.cast.isAvailable){e.next=4;break}return e.next=3,this.dHt();case 3:case 4:if("u">typeof cast&&cast.framework){e.next=9;break}return _.Wo('Detected the Chromecast library was loaded without the CAF framework. It is strongly encouraged to load it with the CAF framework by using this URL: "//www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"'),e.next=8,function(e){return new P(function(r,s){var o=h.createElement("script");o.onload=function(){return r()},o.onerror=function(e){return s(e.error)},o.type="text/javascript",o.src=e,(h.head||h.documentElement).appendChild(o)})}("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js");case 8:case 9:return e.abrupt("return");case 10:case"end":return e.stop()}},e,this)})),s.vHt=function(){return r.apply(this,arguments)},s.dHt=function(){return new P(function(e,r){var s=a.__onGCastApiAvailable;a.__onGCastApiAvailable=function(o,u){o?e():r(new y(u)),a.__onGCastApiAvailable=s,s&&s(o,u)}})},e}();UR.ju=new UR,(UL=UT||(UT={})).lHt="receiver_info",UL.Aot="event",UL._Ht="propertychange",UL.gHt="trackevent";var UL,U_,UP,UI="urn:x-cast:com.theoplayer.cast",UN=function(){function e(e){var r=this;this.wHt=void 0,this.yHt=[],this.lh=[],this.kHt=void 0,this.mHt=function(e,s){var o=r.pHt(s);if(o)if(o.type===UT._Ht)for(var u=0,a=r.yHt;u<a.length;u++){var h=a[u];for(var c in o.properties)h(c,o.properties[c])}else if(o.type===UT.Aot)for(var f=0,l=r.lh;f<l.length;f++)(0,l[f])(o.event);else o.type===UT.gHt&&r.kHt&&o.event.trackState&&r.kHt(o.event.trackId,o.event.trackState.targetQualityIds)},this.wHt=e,this.wHt.AHt(UI,this.mHt)}var r=e.prototype;return r.pHt=function(e){var r;try{r=JSON.parse(e)}catch(e){}return r},r.bHt=function(e){this.yHt.push(e)},r.THt=function(e){rc(this.yHt,e)},r.kh=function(e){this.lh.push(e)},r.Eh=function(e){rc(this.lh,e)},r.EHt=function(e){this.kHt=e},r.SHt=function(e){this.kHt=void 0},r.mZ=function(e,r,s,o){var u=s||I,a=o||I;this.wHt.mZ(e,r).then(u).catch(a)}
1,r.Kl=function(){this.wHt.IHt(UI,this.mHt),rv(this.lh),rv(this.yHt),this.kHt=void 0},e}();(UO=U_||(U_={})).lHt="theoplayer_receiver_info",UO.gHt="theoplayer_trackpropertychange",UO.RHt="theoplayer_propertychange",(UD=UP||(UP={})).NHt="medialoadedchange",UD.bv="volumechange",UD.DHt="casterror",UD.CHt="playererror",UD.PHt="targetqualitychanged",UD.BHt="receiverinfochanged";var UO,UD,UU,UM=function(e){function r(){return e.call(this,UP.NHt)||this}return j(r,e),r}(rX),UF=function(e){function r(r,s){var o;return(o=e.call(this,UP.bv)||this).Ey=r,o.wy=s,o}return j(r,e),r}(rX),Uj=function(e){function r(r){var s;return(s=e.call(this,UP.DHt)||this).Lh=r,s}return j(r,e),r}(rX),UH=function(e){function r(r){var s;return(s=e.call(this,UP.CHt)||this).Lh=r,s}return j(r,e),r}(rX),UB=function(e){function r(r,s){var o;return(o=e.call(this,UP.PHt)||this)._T=r,o.OHt=s,o}return j(r,e),r}(rX),UV=function(e){function r(){return e.call(this,UP.BHt)||this}return j(r,e),r}(rX),UX=function(e){function r(r){var s;return(s=e.call(this)||this).wHt=void 0,s.LHt=void 0,s.MHt=void 0,s.xHt=function(e){s.yh(new Uj(e))},s.UHt=function(e,r){"error"===e&&s.yh(new UH(r))},s.FHt=function(e,r){s.yh(new UB(e,r))},s.HHt=function(e,r){var o=JSON.parse(r);o.type===UT.lHt&&(s.MHt=o.info,s.yh(new UV))},s.wHt=r,s.LHt=new UN(s.wHt),s.LHt.bHt(s.UHt),s.LHt.EHt(s.FHt),s.XHt(),s}j(r,e);var s=r.prototype;return s.VHt=function(e,r,s){this.LHt.mZ(UI,{type:U_.gHt,trackID:e,trackType:r,properties:{targetQuality:s}},I,this.xHt)},s.XHt=function(){this.wHt.AHt(UI,this.HHt),this.LHt.mZ(UI,{type:U_.lHt})},s.WHt=function(){return this.MHt},s.Kl=function(){this.Th(),this.wHt.IHt(UI,this.HHt),this.LHt.THt(this.UHt),this.LHt.SHt(this.FHt),this.LHt.Kl(),this.wHt.Kl()},r}(rB);(UW=UU||(UU={})).aH="bufferedchange",UW.Av="timeupdate",UW.Wf="durationchange",UW.Og="readystatechange",UW.RHt="playbackratechange",UW.qHt="played",UW.tv="play",UW.$f="pause",UW.GHt="programdatetimechange",UW.Gf="ended",UW.zHt="mediastopped",UW.DHt="error",UW.fv="seeking",UW.hv="seeked",UW.jHt="seekablechange",UW.ov="resize",UW.YHt="sourceupdate",UW.QHt="trackupdate",UW.ZHt="activetrackupdate",UW.sy="waiting",UW.oy="playing",UW.uv="representationchange",UW.vv="segmentnotfound",UW.Mh="encrypted",UW.Ff="contentprotectionerror",UW.Hf="contentprotectionsuccess";var UW,Uq,UY,U$=function(e){function r(r){var s;return(s=e.call(this,UU.aH)||this).rp=r,s}return j(r,e),r}(rX),UJ=function(e){function r(r){var s;return(s=e.call(this,UU.Av)||this).vy=r,s}return j(r,e),r}(rX),UQ=function(e){function r(r){var s;return(s=e.call(this,UU.GHt)||this).Uot=r,s}return j(r,e),r}(rX),UG=function(e){function r(r){var s;return(s=e.call(this,UU.Wf)||this).ly=r,s}return j(r,e),r}(rX),UK=function(e){function r(){return e.call(this,UU.Gf)||this}return j(r,e),r}(rX),Uz=function(e){function r(r){var s;return(s=e.call(this,UU.DHt)||this).Lh=r,s}return j(r,e),r}(rX),UZ=function(e){function r(r){var s;return(s=e.call(this,UU.$f)||this).yy=r,s}return j(r,e),r}(rX),U0=function(e){function r(r){var s;return(s=e.call(this,UU.RHt)||this).py=r,s}return j(r,e),r}(rX),U1=function(e){function r(r){var s;return(s=e.call(this,UU.qHt)||this)._p=r,s}return j(r,e),r}(rX),U2=function(e){function r(r){var s;return(s=e.call(this,UU.Og)||this).bw=r,s}return j(r,e),r}(rX),U3=function(e){function r(r){var s;return(s=e.call(this,UU.jHt)||this).wp=r,s}return j(r,e),r}(rX),U5=function(e){function r(r,s){var o;return(o=e.call(this,UU.YHt)||this).np=r,o.uC=s,o}return j(r,e),r}(rX),U4=function(e){function r(r){var s;return(s=e.call(this,UU.fv)||this).vy=r,s}return j(r,e),r}(rX),U6=function(e){function r(r){var s;return(s=e.call(this,UU.hv)||this).vy=r,s}return j(r,e),r}(rX),U8=function(e){function r(r,s){var o;return(o=e.call(this,UU.ov)||this).Ty=r,o.by=s,o}return j(r,e),r}(rX),U7=function(e){function r(){return e.call(this,UU.zHt)||this}return j(r,e),r}(rX),U9=function(e){function r(r,s,o){var u;return(u=e.call(this,UU.QHt)||this).audioTracks=r,u.videoTracks=s,u.textTracks=o,u}return j(r,e),r}(rX),Mt=function(e){function r(r){var s;return(s=e.call(this,UU.ZHt)||this).trackIds=r,s}return j(r,e),r}(rX),Me=function(e){function r(r){var s;return(s=e.call(this,UU.sy)||this).vy=r,s}return j(r,e),r}(rX),Mn=function(e){function r(r){var s;return(s=e.call(this,UU.oy)||this).vy=r,s}return j(r,e),r}(rX),Mi=function(e){function r(r,s){var o;return(o=e.call(this,UU.uv)||this).qtt=r,o.Ret=s,o}return j(r,e),r}(rX),Mr=function(e){function r(r,s,o,u,a,h){var c;return void 0===h&&(h=0),(c=e.call(this,UU.vv)||this).Vtt=r,c.Lh=s,c.P4=o,c.yg=u,c.F0=a,c.KHt=h,c}return j(r,e),r}(rX),Ms=function(e){function r(r,s,o){var u;return(u=e.call(this,UU.Mh)||this).Ha=r,u.Xh=s,u.vy=o,u}return j(r,e),r}(rX),Mo=function(e){function r(r,s,o,u,a,h){var c;return(c=e.call(this,UU.Ff)||this).Lh=r,c.JHt=s,c.wl=o,c.bl=u,c.$Ht=a,c.cc=h,c}return j(r,e),r}(rX),Mu=function(e){function r(){return e.call(this,UU.Hf)||this}return j(r,e),r}(rX),Ma=function(e){function r(r){var s;return(s=e.call(this)||this).LHt=void 0,s.xHt=function(e){s.yh(new Uz(e))},s.tXt=function(e,r){switch(e){case"buffered":s.yh(new U$(new mo(r)));break;case"currentProgramDateTime":s.yh(new UQ(new Date(r)));break;case"played":s.yh(new U1(new mo(r)));break;case"seekable":s.yh(new U3(new mo(r)));break;case"videoHeight":s.yh(new U8(void 0,r));break;case"videoWidth":s.yh(new U8(r,void 0))}},s.HX=function(e){switch(e.type){case f7.Og:s.yh(new U2(e.readyState));break;case ul.fv:s.yh(new U4(e.currentTime));break;case ul.hv:s.yh(new U6(e.currentTime));break;case f7.sy:s.yh(new Me(e.currentTime));break;case f7.oy:s.yh(new Mn(e.currentTime));break;case ul.uv:s.yh(new Mi(e.representation,e.previousRepresentation));break;case ul.vv:s.yh(new Mr(e.segmentStartTime,e.error,e.trackType,e.track,e.quality,e.retryCount));break;case ul.Mh:s.yh(new Ms(e.initDataType,e.initData,e.currentTime));break;case ul.Ff:s.yh(new Mo(e.error,e.licenseAcquisitionURL,e.status,e.statusText,e.licenseAcquisitionMessage,e.systemCode));break;case ul.Hf:s.yh(new Mu)}},s.LHt=r,s.LHt.kh(s.HX),s.LHt.bHt(s.tXt),s}j(r,e);var s=r.prototype;return s.Nx=function(e){this.LHt.mZ(UI,{type:U_.RHt,properties:{playbackRate:e}},I,this.xHt)},s.Kl=function(){this.Th(),this.LHt.Eh(this.HX),this.LHt.THt(this.tXt)},r}(rB);function Mh(e){return e.type===Uq.Xl}function Mc(e){return e.type===Uq.Vl}function Mf(e){return e.type===Uq.Ku}function Ml(e){switch(e){case chrome.cast.ErrorCode.CANCEL:return"CANCEL";case chrome.cast.ErrorCode.TIMEOUT:return"TIMEOUT";case chrome.cast.ErrorCode.API_NOT_INITIALIZED:return"API_NOT_INITIALIZED";case chrome.cast.ErrorCode.INVALID_PARAMETER:return"INVALID_PARAMETER";case chrome.cast.ErrorCode.EXTENSION_NOT_COMPATIBLE:return"EXTENSION_NOT_COMPATIBLE";
1case chrome.cast.ErrorCode.EXTENSION_MISSING:return"EXTENSION_MISSING";case chrome.cast.ErrorCode.RECEIVER_UNAVAILABLE:return"RECEIVER_UNAVAILABLE";case chrome.cast.ErrorCode.SESSION_ERROR:return"SESSION_ERROR";case chrome.cast.ErrorCode.CHANNEL_ERROR:return"CHANNEL_ERROR";case chrome.cast.ErrorCode.LOAD_MEDIA_FAILED:return"LOAD_MEDIA_FAILED";default:return"CANCEL"}}(Md=Uq||(Uq={})).Ku="TEXT",Md.Xl="AUDIO",Md.Vl="VIDEO",(My=UY||(UY={})).ob="SUBTITLES",My.wS="CAPTIONS",My.yS="DESCRIPTIONS",My.kS="CHAPTERS",My.cb="METADATA";var Mp=function(e){function r(r,s,o){(u=e.call(this,s)||this).nXt=void 0,u.iXt=void 0,u.rXt=void 0,u.eXt=function(e){u.uXt(),u.Uwt(),u.pLt(),u.MMt(),u.Zgt(),u.sXt(),u.oXt(),u.aXt(),e||(Mv(u.iXt)&&u.yh(new UK),u.yh(new U7))},u.hXt=function(e){var r=new US(Ml(e.code),e.description);u.xHt(r)},u.nXt=r,u.iXt=o;var u,a=new chrome.cast.media.GetStatusRequest;return u.iXt.getStatus(a,function(){u.cXt()},I),u.iXt.addUpdateListener(u.eXt),u.fXt(),u.eXt(!0),u}j(r,e);var s=r.prototype;return s.vXt=function(){return this.iXt.getEstimatedTime()},s.aXt=function(){var e=this.iXt.activeTrackIds;e&&this.yh(new Mt(e))},s.oXt=function(){var e,r=null==(e=this.iXt.media)?void 0:e.tracks;if(r){var s=r.filter(Mh),o=r.filter(Mc),u=r.filter(Mf);this.yh(new U9(s,o,u))}},s.cXt=function(){var e,r,s,o;s=null!=(e=this.nXt.WHt())&&e.version?null==(o=this.iXt.customData)?void 0:o.sourceDescription:mQ({sources:this.iXt.media.contentId},lb({})),this.yh(new U5(null==(r=this.iXt.customData)?void 0:r.currentSource,s))},s.Zgt=function(){var e=this.vXt();this.yh(new UJ(e))},s.fXt=function(){this.rXt=v(this.Zgt.bind(this),r.TIMEUPDATE_INTERVAL)},s.dXt=function(){d(this.rXt)},s.sXt=function(){this.dXt(),this.fXt()},s.uXt=function(){var e=this.iXt,r=e.customData?e.customData.buffers:void 0;r&&this.yh(new U3(new mo(r.seekable)))},s.Uwt=function(){var e,r=this.iXt.media;e=r&&r.streamType===chrome.cast.media.StreamType.LIVE?1/0:r&&r.duration||NaN,this.yh(new UG(e))},s.pLt=function(){var e,r=void 0!==(e=this.iXt)&&e.playerState===chrome.cast.media.PlayerState.PAUSED||Mv(this.iXt);this.yh(new UZ(r))},s.MMt=function(){var e=this.iXt.playbackRate;this.yh(new U0(e))},s.xm=function(){var e=new chrome.cast.media.PauseRequest;this.iXt.pause(e,I,this.hXt)},s.Um=function(){var e=new chrome.cast.media.StopRequest;this.iXt.stop(e,I,this.hXt)},s.Mm=function(){var e=new chrome.cast.media.PlayRequest;this.iXt.play(e,I,this.hXt)},s.$h=function(e,r){var s=this,o=new chrome.cast.media.SeekRequest;return o.currentTime=e,o.resumeState=r?chrome.cast.media.ResumeState.PLAYBACK_PAUSE:chrome.cast.media.ResumeState.PLAYBACK_START,new P(function(e,r){s.iXt.seek(o,e,function(e){r(new US(Ml(e.code),e.description))})})},s.lXt=function(e){var r=new chrome.cast.media.EditTracksInfoRequest(e);this.iXt.editTracksInfo(r,I,this.hXt)},s.Kl=function(){this.dXt(),this.iXt.removeUpdateListener(this.eXt),e.prototype.Kl.call(this)},r}(Ma);function Mv(e){return void 0!==e&&e.playerState===chrome.cast.media.PlayerState.IDLE&&e.idleReason===chrome.cast.media.IdleReason.FINISHED}Mp.TIMEUPDATE_INTERVAL=250;var Md,My,Mg,Mm=function(){function e(e){this.nXt=void 0,this.nXt=e}var r=e.prototype;return r.AHt=function(e,r){this.nXt.addMessageListener(e,r)},r.IHt=function(e,r){this.nXt.removeMessageListener(e,r)},r.mZ=function(e,r){var s=this;return new P(function(o,u){s.nXt.sendMessage(e,r,o,function(e){u(new US(Ml(e.code),e.description))})})},r.Kl=function(){},e}(),Mw=function(e){function r(r){(s=e.call(this,new Mm(r.getSessionObj()))||this).nXt=void 0,s._Xt=void 0,s.gXt=function(){var e=s.wXt();s.yh(new UF(e.receiver.volume.level,e.receiver.volume.muted))},s.yXt=function(){return s.kXt(s.nXt.getMediaSession())},s.mXt=function(){var e;null==(e=s._Xt)||e.Eh(UU.zHt,s.mXt),s._Xt=void 0,s.yh(new UM)},s.pXt=function(e){var r=new US(Ml(e.code),e.description);s.xHt(r)},s.nXt=r,s.nXt.addEventListener(cast.framework.SessionEventType.MEDIA_SESSION,s.yXt),s.wXt().addUpdateListener(s.gXt),s.gXt();var s,o=s.nXt.getMediaSession();return o&&s.kXt(o),s}j(r,e);var s,o=r.prototype;return o.wXt=function(){return this.nXt.getSessionObj()},o.kXt=function(e){!this._Xt&&e&&e.idleReason!==chrome.cast.media.IdleReason.FINISHED&&(this._Xt=new Mp(this,this.LHt,e),this.gXt(),this._Xt.kh(UU.zHt,this.mXt),this.yh(new UM))},o.AXt=function(){return this._Xt},s=P.coroutine(iO.mark(function e(r){var s,o;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=function(e,r,s){var o,u,a,h=(o=mq(e)||"",u=function(e){if(e&&e.sources)return function e(r){return ti(r)?fU(r):fV(r)?r.type||r.src&&fU(r.
1src):tt(r)&&r.length>0?e(r[0]):void 0}(e.sources)}(e)||"",(a=new chrome.cast.media.MediaInfo(o,u)).metadata=function(e,r,s){var o=new r.cast.media.GenericMediaMetadata;if(s&&(o.images=[new r.cast.Image(s)]),!e)return o;if(e.images)if(o.images||(o.images=[]),ti(e.images))o.images.push(new r.cast.Image(e.images));else for(var u=0,a=e.images;u<a.length;u++){var h=a[u];if(ti(h)){var c=new r.cast.Image(h);o.images.push(c)}else{var f=new r.cast.Image(h.src);f.height=h.height||void 0,f.width=h.width||void 0,o.images.push(f)}}return e.releaseDate&&(o.releaseDate=e.releaseDate),e.releaseYear&&(o.releaseYear=e.releaseYear),e.subtitle&&(o.subtitle=e.subtitle),e.title&&(o.title=e.title),e.type&&(o.metadataType=function(e,r){switch(e){case"movie":return r.cast.media.MetadataType.MOVIE;case"audio":return r.cast.media.MetadataType.MUSIC_TRACK;case"tv-show":return r.cast.media.MetadataType.TV_SHOW;default:return r.cast.media.MetadataType.GENERIC}}(e.type,r)),o}(e.metadata,chrome,e.poster),a),c=new chrome.cast.media.LoadRequest(h);return c.autoplay=!0,c.currentTime=r,c.customData=s,c}(r.Kyt,r.vy,r.TXt),e.prev=1,e.next=4,this.nXt.loadMedia(s);case 4:o=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),o=e.t0;case 10:if(!o){e.next=12;break}throw new US(Ml(o));case 12:case"end":return e.stop()}},e,this,[[1,7]])})),o.bXt=function(e){return s.apply(this,arguments)},o.Ex=function(e){this.wXt().setReceiverMuted(e,I,this.pXt)},o.Xx=function(e){this.wXt().setReceiverVolumeLevel(e,I,this.pXt)},o.EXt=function(){return this.wXt().receiver.friendlyName},o.Kl=function(){this.nXt.removeEventListener(cast.framework.SessionEventType.MEDIA_SESSION,this.yXt),this.wXt().removeUpdateListener(this.gXt),e.prototype.Kl.call(this)},r}(UX),Mb=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).SXt=void 0,r.IXt=void 0,r.cU=function(){var e=r.CSt();r.IXt=e===mU.CONNECTED?new Mw(r.SXt.getCurrentSession()):void 0,r.yh(new UC(e))},r}j(r,e);var s,o,u=r.prototype;return u.RXt=function(){return this.IXt},u.CSt=function(){switch(this.SXt.getCastState()){case cast.framework.CastState.CONNECTED:return mU.CONNECTED;case cast.framework.CastState.CONNECTING:return mU.CONNECTING;case cast.framework.CastState.NOT_CONNECTED:return mU.AVAILABLE;case cast.framework.CastState.NO_DEVICES_AVAILABLE:default:return mU.UNAVAILABLE}},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UR.ju.fHt();case 2:this.SXt=cast.framework.CastContext.getInstance(),this.SXt.addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED,this.cU),this.SXt.setOptions({receiverApplicationId:r.appID,autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED});case 5:case"end":return e.stop()}},e,this)})),u.iI=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.SXt.requestSession();case 3:if(!(r=e.sent)){e.next=6;break}throw r;case 6:e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(0),new US(Ml(e.t0));case 11:case"end":return e.stop()}},e,this,[[0,8]])})),u.NXt=function(){return o.apply(this,arguments)},u.DXt=function(e){this.SXt.endCurrentSession(e)},r}(rB),Mk=function(e){function r(r,s,o,u,a,h,c,f,l,p,v){var d;return(d=e.call(this)||this).vP=void 0,d.EV=void 0,d.SV=void 0,d.lP=void 0,d._P=void 0,d.CXt=void 0,d.PXt=void 0,d.Sm=void 0,d.Im=void 0,d.Rm=void 0,d.dC=r,d.vP=s,d.EV=o,d.SV=u,d.lP=a,d._P=h,d.CXt=p,d.PXt=v,d.Sm=c,d.Sm.Yg(),d.Im=f,d.Im.Yg(),d.Rm=l,d.Rm.Yg(),d}j(r,e);var s=r.prototype;return s.ax=function(){return mo.aP().XD()},s._x=function(){return this.vP},s.vx=function(){},s.wx=function(){return this.EV},s.kx=function(){return this.SV},s.mx=function(){},s.Ix=function(){return this.lP},s.BXt=function(){},s.Rx=function(){return this._P},s.Nx=function(e){this._P!==e&&(this._P=e,this.yh(new la(this.dC.vy,e)))},s.Bx=function(){return f1.Yw},s.Dx=function(){return mo.aP().XD()},s.Ox=function(){return mo.aP().XD()},s.Lx=function(){return!1},s.ox=function(){return this.Sm},s.Ux=function(){return this.Im},s.Mx=function(){return this.Rm},s.lXt=function(e){},s.Fx=function(){return this.CXt},s.xx=function(){return this.PXt}
1,s.Mm=function(){},s.xm=function(){},s.$h=function(e){},s.Um=function(){},s.Kl=function(){},r}(rB);(ME=Mg||(Mg={})).OXt="ccmodechangerequest",ME.LXt="cctargetqualitychangerequest",ME.MXt="cctrackchangerequest";var ME,MA,Mx=function(e){function r(r,s){var o;return(o=e.call(this,Mg.OXt)||this).trackId=r,o.mode=s,o}return j(r,e),r}(rX),MT=function(e){function r(r){(s=e.call(this)||this).hw=void 0,s.cw=void 0,s.pw=void 0,s.fw=void 0,s.dw=void 0,s.bw=void 0,s.Ua=void 0,s.Ap=void 0,s.VV=void 0,s.QV=void 0,s.ZV=void 0,s.KV=void 0,s.LP=void 0,s.xXt=void 0,s._g=void 0;var s,o,u=r.customData;return s.cw=+r.trackId||0,s.hw=(u&&u.id||s.cw)+"",s.Ap=u&&u.label||r.name||"",s.dw=u&&u.language||r.language||"",s.pw=u&&u.inBandMetadataTrackDispatchType||"",s.fw=u&&u.kind||function(e){switch(e){case UY.ob:return vV.ob;case UY.wS:return vV.wS;case UY.yS:return vV.yS;case UY.kS:return vV.kS;case UY.cb:return vV.cb}}(r.subtype)||"subtitles",s.bw=ps.NONE,s.Ua=u&&void 0!==u.type?pp(o=u.type)?o:po.DEFAULT:po.WEBVTT,s.VV=[],s.ZV=new k7(s.VV),s.QV=[],s.KV=new k7(s.QV),s.LP=fx(u&&u.mode||fk.gw),s.xXt=s.LP,s}j(r,e);var s=r.prototype;return s.UXt=function(e){},s.Kl=function(){},s.Yg=function(){},M(r,[{key:"gg",get:function(){return this._g||(this._g=fC(this)),this._g}},{key:"vw",get:function(){return this.Ap},set:function(e){e!==this.Ap&&(this.Ap=e,this.yh(new l7(this)))}},{key:"Ew",get:function(){return this.KV}},{key:"Tw",get:function(){return this.ZV}},{key:"Aw",get:function(){return this.LP},set:function(e){e=fx(e),this.LP!==e&&(this.LP=e,this.xXt!==e&&this.yh(new Mx(this.cw,e)),this.yh(new c7(this)))}},{key:"FXt",get:function(){return this.xXt},set:function(e){e=fx(e);var r=this.LP!==e;this.LP=e,this.xXt=e,r&&this.yh(new c7(this))}}]),r}(rB),MC=function(e){function r(r,s){var o;return(o=e.call(this,Mg.MXt)||this).trackId=r,o.enabled=s,o}return j(r,e),r}(rX),MS=function(e){function r(r,s){var o;return(o=e.call(this,Mg.LXt)||this).track=r,o.targetQuality=s,o}return j(r,e),r}(rX);(MR=MA||(MA={})).Xl="audio",MR.Vl="video",MR.Ku="text";var MR,ML,M_=function(e){function r(r){(s=e.call(this)||this).hw=void 0,s.cw=void 0,s.fw=void 0,s.dw=void 0,s.Tit=void 0,s.Ap=void 0,s.y4=void 0,s.yp=new l8,s.T4=void 0,s.Tp=void 0,s.HXt=void 0,s._g=void 0,s.oFt=function(){return s.yh(new l7(t8(s)))};var s,o=r.customData;if(s.cw=+r.trackId||0,s.hw=(o&&o.id||s.cw)+"",s.Ap=o&&o.label||r.name||"",s.dw=o&&o.language||r.language||"",s.fw=o&&o.kind||"main",s.Tp=o&&o.enabled,s.HXt=s.Tp,Mh(r)){s.Tit=MA.Xl;var u=r.customData&&r.customData.qualities;if(u)for(var a=0;a<u.length;a++){var h=u[a],c=new TV(String(h.id),h.bandwidth,h.codecs,h.name,"",h.audioSamplingRate);c.kh("update",s.oFt),s.yp.Wy(c)}}else{s.Tit=MA.Vl;var f=r.customData&&r.customData.qualities;if(f)for(var l=0;l<f.length;l++){var p=f[l],v=new TB(String(p.id),p.bandwidth,p.codecs,p.name,"",p.frameRate,p.width,p.height);v.kh("update",s.oFt),s.yp.Wy(v)}}return s}j(r,e);var s=r.prototype;return s.Sp=function(e){this.aw=e},s.UXt=function(e){if(e.targetQualityIds){for(var r=[],s=0;s<this.yp.Zg;s++){var o=this.yp.qg(s);e.targetQualityIds.indexOf(o.hw)>-1&&r.push(o)}var u=r.length?r:void 0;this.sFt(u)}},s.sFt=function(e){var r;((r=this.T4)||!e)&&(!r||e)&&(!r||!e||rd(r,e))||(this.T4=e&&this.yp.kp(e)?e:void 0,this.yh(new CA(this.T4,this)))},s.unload=function(){for(var e=0,r=this.yp.Qg;e<r.length;e++)r[e].Eh("update",this.oFt)},M(r,[{key:"ow",get:function(){return this.y4}},{key:"_w",get:function(){return this.T4},set:function(e){this.sFt(e),this.yh(new MS(this,e))}},{key:"lw",get:function(){return this.yp}},{key:"vw",get:function(){return this.Ap}},{key:"label",set:function(e){e!==this.Ap&&(this.Ap=e,this.yh(new l7(this)))}},{key:"aw",get:function(){return this.Tp},set:function(e){this.Tp!==e&&(this.Tp=e,this.HXt!==e&&this.yh(new MC(this.cw,e)),this.yh(new c7(this)))}},{key:"XXt",get:function(){return this.HXt},set:function(e){var r=this.Tp!==e;this.Tp=e,this.HXt=e,r&&this.yh(new c7(this))}},{key:"gg",get:function(){return this._g||(this._g=fg(this)),this._g}},{key:"Aw",get:function(){return this.aw?"enabled":"disabled"}}]),r}(rB);(M4=ML||(ML={})).VXt="legacy",M4.WXt="caf";var MP=function(r){function s(s,o,u){var a;return(a=r.call(this)||this).nXt=void 0,a.iXt=void 0,a.Ivt=mo.aP(),a.vP=void 0,a.qXt=void 0,a.EV=void 0,a.SV=!1,a.JN=void 0,a.lP=void 0,a._P=void 0,a.GXt=void 0,a.jV=f1.Yw,a.Jq=mo.aP(),a.sV=mo.aP(),a.gP=!1,a.CXt=void 0,a.PXt=void 0,a.Sm=void 0,a.Im=void 0,a.Rm=void 0,a.zXt=void 0,a.jXt=!1,a.YXt=function(e){a.yh(new gB(e.vy))},a.hD=function(e){a.yh(new gV(e.vy))},a.QXt=function(e){a.yh(new RT(e.qtt,e.Ret))},a.ZXt=function(e){a.yh(new Ra(e.Vtt,e.Lh,e.P4,e.yg,e.F0,e.KHt))},a.KXt=function(e){a.yh(new CM(e.vy,e.Ha,e.Xh))},a.JXt=function(r){a.yh(new dc(new lz(e.ErrorCode.CONTENT_PROTECTION_ERROR,r.Lh,void 0,r.JHt,r.wl,r.bl,r.$Ht,r.cc)))},a.$Xt=function(){a.yh(new dG)},a.m7=function(e){a.gP||e.vy===a._x()||(a.vP=e.vy,a.yh(new lh(a._x(),a.vx())))},a.vV=function(e){a.Ivt=e.rp,a.yh(new kE(a._x()))},a.tVt=function(e){a.qXt=e.Uot.getTime()-a._x()},a.nVt=function(e){a.wh(e)},a.iVt=function(e){a.Jq=e._p},a.rVt=function(e){a.sV=e.wp},a.eVt=function(e){var r,s;a.PXt=null!=(r=e.by)?r:a.PXt,a.CXt=null!=(s=e.Ty)?s:a.CXt,a.yh(new di)},a.FX=function(e){a.jV=e.bw,a.yh(new lg(a._x(),e.bw))}
1,a.cV=function(e){a.gP=!0,a.vP=e.vy,a.yh(new ll(e.vy))},a.aD=function(e){a.gP=!1,a.vP=e.vy,a.yh(new lh(a._x(),a.vx())),a.yh(new lp(e.vy))},a.XLt=function(e){var r=e.ly;a.EV===r||A(a.EV)&&A(r)||(a.EV=r,a.yh(new lu(a.EV)))},a.SLt=function(){a.SV=!0,a.vP=a.wx(),a.yh(new lc(a._x()))},a.yLt=function(e){var r=e.yy;a.jXt=r,a.lP!==r&&(a.lP=r,a.lP?a.yh(new lt(a._x())):a.yh(new le(a._x())))},a.uVt=function(e){var r=e.py;a.GXt!==r&&(a.GXt=void 0,a._P!==r&&(a._P=r,a.yh(new la(a._x(),r))))},a.sVt=function(e){MN(a.Sm,e.audioTracks.map(function(e){return e.trackId})),MN(a.Im,e.videoTracks.map(function(e){return e.trackId})),MN(a.Rm,e.textTracks.map(function(e){return e.trackId}));var r=e.videoTracks;if(a.oVt()&&0===r.length&&0!==a.Fx()){var s=a.aVt();r.push(s)}var o=e.audioTracks;if(a.oVt()&&0===o.length){var u=a.hVt();o.push(u)}MO(o,a.Sm),MO(r,a.Im),function(e,r){for(var s=0;s<e.length;s++){var o=e[s],u=MI(r,o.trackId);u||(u=new MT(o),r.Gg(u))}}(e.textTracks,a.Rm)},a.cVt=function(e){var r=e.trackIds;if(a.oVt()){var s=a.Im.Qg.map(function(e){return e.hw}),o=a.Sm.Qg.map(function(e){return e.hw});rl(s.concat(o),"0")&&r.push(0)}MD(r,a.Sm),MD(r,a.Im),function(e,r){for(var s=0,o=r.Qg;s<o.length;s++){var u=o[s];u.FXt=rl(e,u.cw)?fk.yw:fk.gw}}(r,a.Rm)},a.xHt=function(e){a.zXt=void 0,a.yh(new Uz(e))},a.nXt=s,a.iXt=o,a.vP=u._x(),a.EV=u.wx(),a.lP=u.Ix(),a._P=u.Rx(),a.CXt=u.Fx(),a.PXt=u.xx(),a.Sm=u.ox(),a.Im=u.Ux(),a.Rm=u.Mx(),a.iXt.kh(UU.Gf,a.SLt),a.iXt.kh(UU.$f,a.yLt),a.iXt.kh(UU.ov,a.eVt),a.iXt.kh(UU.hv,a.aD),a.iXt.kh(UU.oy,a.hD),a.iXt.kh(UU.fv,a.cV),a.iXt.kh(UU.sy,a.YXt),a.iXt.kh(UU.Mh,a.KXt),a.iXt.kh(UU.DHt,a.nVt),a.iXt.kh(UU.Av,a.m7),a.iXt.kh(UU.QHt,a.sVt),a.iXt.kh(UU.qHt,a.iVt),a.iXt.kh(UU.aH,a.vV),a.iXt.kh(UU.Wf,a.XLt),a.iXt.kh(UU.jHt,a.rVt),a.iXt.kh(UU.vv,a.ZXt),a.iXt.kh(UU.Og,a.FX),a.iXt.kh(UU.ZHt,a.cVt),a.iXt.kh(UU.RHt,a.uVt),a.iXt.kh(UU.uv,a.QXt),a.iXt.kh(UU.GHt,a.tVt),a.iXt.kh(UU.Ff,a.JXt),a.iXt.kh(UU.Hf,a.$Xt),a}j(s,r);var o=s.prototype;return o.BXt=function(){this.lP=!1,this.yh(new le(this._x()))},o.ax=function(){return this.Ivt.XD()},o._x=function(){return this.vP},o.vx=function(){if(this.qXt)return new Date(this._x()+this.qXt)},o.wx=function(){return this.EV},o.mx=function(){return this.JN},o.kx=function(){return this.SV},o.Ix=function(){return this.lP},o.Rx=function(){return this._P},o.Nx=function(e){this._P!==e&&(this.GXt=this._P,this._P=e,this.yh(new la(this._x(),e)),this.iXt.Nx(e))},o.Bx=function(){return this.jV},o.Dx=function(){return this.Jq.XD()},o.Ox=function(){var e=this,r=this.sV.XD(),s=r.end;return r.end=function(r){var o=e._x();return s(r)<o?o:s(r)},r},o.Lx=function(){return this.gP},o.ox=function(){return this.Sm},o.Ux=function(){return this.Im},o.Mx=function(){return this.Rm},o.aVt=function(){return{customData:{activeQuality:{averageBandwidth:0,bandwidth:0,codecs:"",frameRate:0,height:this.xx(),id:0,name:"",width:this.Fx()},enabled:!0,id:"0",kind:"main",label:"",language:"",qualities:[],uid:0},language:"",name:"",trackContentId:"",trackContentType:"",trackId:0,type:Uq.Vl}},o.hVt=function(){return{customData:{activeQuality:{averageBandwidth:0,bandwidth:0,codecs:"",id:0,name:"",audioSamplingRate:0},qualities:[],enabled:!0,id:"0",kind:"main",label:"",language:"",uid:0},language:"",name:"",trackContentId:"",trackContentType:"",trackId:0,type:Uq.Xl}},o.oVt=function(){var e,r;return void 0===(null==(e=this.nXt.WHt())?void 0:e.version)||(null==(r=this.nXt.WHt())?void 0:r.sdkType)===ML.WXt},o.lXt=function(e){this.oVt()&&rc(e,0),this.iXt.lXt(e)},o.Fx=function(){return this.CXt},o.xx=function(){return this.PXt},o.Mm=function(){this.lP&&(this.lP=!1,this.jXt=!1,this.yh(new le(this._x()))),this.iXt.Mm()},o.xm=function(){this.lP||(this.lP=!0,this.jXt=!0,this.yh(new lt(this._x()))),this.iXt.xm()},o.$h=function(e){var r,s,o=void 0!==this.zXt;this.zXt=e,this.jXt=this.Ix(),o||(null!=(r=null==(s=this.nXt.WHt())?void 0:s.version)&&r&&this.cV(new U4(e)),this.ZG(e))},o.ZG=function(e){this.iXt.$h(e,this.jXt).then(this.fVt(e)).catch(this.xHt)},o.fVt=function(e){var r=this;return function(){void 0!==r.zXt&&(r.zXt===e?r.zXt=void 0:r.ZG(r.zXt))}},o.Um=function(){this.iXt.Um()}
1,o.Kl=function(){this.iXt.Eh(UU.Gf,this.SLt),this.iXt.Eh(UU.$f,this.yLt),this.iXt.Eh(UU.ov,this.eVt),this.iXt.Eh(UU.hv,this.aD),this.iXt.Eh(UU.oy,this.hD),this.iXt.Eh(UU.fv,this.cV),this.iXt.Eh(UU.sy,this.YXt),this.iXt.Eh(UU.Mh,this.KXt),this.iXt.Eh(UU.DHt,this.nVt),this.iXt.Eh(UU.Av,this.m7),this.iXt.Eh(UU.QHt,this.sVt),this.iXt.Eh(UU.qHt,this.iVt),this.iXt.Eh(UU.aH,this.vV),this.iXt.Eh(UU.Wf,this.XLt),this.iXt.Eh(UU.jHt,this.rVt),this.iXt.Eh(UU.vv,this.ZXt),this.iXt.Eh(UU.Og,this.FX),this.iXt.Eh(UU.ZHt,this.cVt),this.iXt.Eh(UU.RHt,this.uVt),this.iXt.Eh(UU.uv,this.QXt),this.iXt.Eh(UU.GHt,this.tVt),this.iXt.Eh(UU.Ff,this.JXt),this.iXt.Eh(UU.Hf,this.$Xt),this.iXt.Kl()},s}(rB);function MI(e,r){for(var s=0,o=e.Qg;s<o.length;s++){var u=o[s];if(u.cw===r)return u}}function MN(e,r){for(var s=!1,o=0;o<e.Zg;o++){var u=e.qg(o);-1===r.indexOf(u.cw)&&(e.zg(u),o--,s=!0)}return s}function MO(e,r){for(var s=!1,o=0;o<e.length;o++){var u=e[o],a=MI(r,u.trackId);a||(a=new M_(u),r.Gg(a),s=!0)}return s}function MD(e,r){for(var s=0,o=r.Qg;s<o.length;s++){var u=o[s];u.XXt=rl(e,u.cw)}return!1}var MU=[ul.Gf,ul.Wf,ul.ev,ul.ov,ul.$f,ul.tv,ul.rv,ul.Av,ul.fv,ul.hv,f7.sy,f7.oy,ul.uv,ul.vv,ul.Mh,ul.Ff,ul.Hf],MM=function(e){function r(r,s){var o;return(o=e.call(this)||this).Kp=!1,o.vVt=I,o.dVt=0,o.gN=f1.Yw,o.kN=!1,o.yN=!1,o.lVt=!1,o._Vt=void 0,o.gVt=0,o.wVt=void 0,o.nXt=void 0,o.wP=void 0,o.dP=void 0,o.Xv=void 0,o._Xt=void 0,o.lC=void 0,o.E6=void 0,o.JN=void 0,o.$N=void 0,o.yVt=function(e){var r,s;(e.Ey&&!tQ(e.Ey,o.wP,1e-5)||e.wy&&e.wy!==o.dP)&&(o.wP=null!=(r=e.Ey)?r:o.wP,o.dP=null!=(s=e.wy)?s:o.dP,o.yh(new lv(o.vy,o.wP)))},o.kVt=function(){var e,r=o.nXt.AXt();null==(e=o._Xt)||e.Eh(UU.YHt,o.mVt),r?(o._Xt=r,o._Xt.kh(UU.YHt,o.mVt),o.Art=new MP(o.nXt,r,o.Xv)):o.Art=o.pVt()},o.mVt=function(e){o.mC(e.np),o.cXt(e.uC)},o.AVt=function(e){var r=o.bVt(e._T);if(r){var s={targetQualityIds:e.OHt};r.UXt(s)}},o.nVt=function(e){o.TVt(e.Lh)},o.TVt=function(e){o.vVt&&o.vVt(e)},o.EVt=function(e){o.JN=e.Lh,o.$N=l2(o.JN),o.yh(new lm(o.$N))},o.Uet=function(e){var r=o.SVt(e.targetQuality),s=e.track;o.nXt.VHt(s.cw,s.Tit,r)},o.mN=function(e){o.yh(e);var r=e.readyState;!o.kN&&o.gN===f1.Yw&&r>=f1.Qw&&(o.kN=!0,o.yh(new lo(e.currentTime))),!o.yN&&o.gN<=f1.Qw&&r>=f1.Zw&&(o.yN=!0,o.yh(new lf(e.currentTime))),o.gN<=f1.Zw&&r>=f1.Kw&&o.yh(new ld(e.currentTime)),o.gN<=f1.Kw&&r===f1.Jw&&o.yh(new ly(e.currentTime)),o.gN=r},o.dC=r,o.wP=o.dC.Ey,o.dP=o.dC.wy,o.nXt=s,o.nXt.kh(UP.DHt,o.nVt),o.nXt.kh(UP.CHt,o.EVt),o.nXt.kh(UP.bv,o.yVt),o.nXt.kh(UP.NHt,o.kVt),o.nXt.kh(UP.PHt,o.AVt),o.lC=o.dC.np,o.E6=o.dC.Fm(),o.Art=new Mk(t8(o),o.dC.vy,o.dC.ly,o.dC._y,o.dC.yy,o.dC.py,new l6,new l6,new vX,o.dC.Ty,o.dC.by),o.IVt(),o}j(r,e);var s,o,u,a,h,c=r.prototype;return c.mC=function(e){e&&(fs(this.lC&&fa(this.lC),e&&fa(e))||(this.lC=e,this.yh(new fN(e))))},c.cXt=function(e){e&&(fs(this.E6&&fa(this.E6),e&&fa(e))||(this.dVt=0,this.E6=e,this.yh(new ki(e)),this.Xv.BXt()))},c.bVt=function(e){for(var r=0,s=this.Bm.Qg;r<s.length;r++){var o=s[r];if(o.cw===e)return o}for(var u=0,a=this.Pm.Qg;u<a.length;u++){var h=a[u];if(h.cw===e)return h}},c.bc=function(){var e=this._Vt||this.dC.Fm();this.Kp&&e&&this.bXt(e,!this.dC.yy,this.dC.vy)},c.Fm=function(){return this.E6},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.E6=r,e.next=3,this.bXt(r,!0,0);case 3:this._Vt=void 0;case 4:case"end":return e.stop()}},e,this)})),c.Hm=function(e){return s.apply(this,arguments)},c.Qm=function(){},c.Zm=function(){return mh},c.Km=function(){return[]},c.qm=function(){},c.Mm=function(){this.nXt.AXt()||this.lVt||!this.E6?this.Xv.Mm():this.bXt(this.E6,!0,0)},c.xm=function(){this.Xv.xm()},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.Xv.Um();case 1:case"end":return e.stop()}},e,this)})),c.Um=function(){return o.apply(this,arguments)},c.Gm=function(e){this.Kp=!0},c.zm=function(){this.lC=void 0;var e=this.Ey,r=this.wy;this.Kp=!1,e===this.dC.Ey&&r===this.dC.wy||this.yh(new lv(this.vy,this.Ey))},c.Jm=function(e){return!1},c.jm=function(){},c.Ym=function(){},c.Xm=function(){return!1},c.Vm=function(){},c.Wm=function(){},c.bXt=function(e,r,s){this.lVt=!0,this.Yg(),this.dVt=this.dC.wp.length>0?this.dC.wp.start(0):0;var o=this.ly===1/0,u={theoplayer_version:1,streamStart:this.dVt,isLive:o,sourceDescription:e},a={Kyt:e,vy:s?s-this.dVt:0,TXt:u};return this.RVt(a)},u=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.nXt.bXt(r);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),this.TVt(e.t0);case 8:return e.prev=8,this.lVt=!1,e.finish(8);case 11:case"end":return e.stop()}},e,this,[[0,5,8,11]])})),c.RVt=function(e){return u.apply(this,arguments)},c.IVt=function(){this.NVt(this.Pm,"audio"),this.NVt(this.Bm,"video"),this.NVt(this.Om,"text")},c.NVt=function(e,r){for(var s=this,o=0,u=e.Qg;o<u.length;o++){var a=u[o];this.DVt(a,r)}e.kh(cG.cg,function(e){s.DVt(e.yg,r)})},c.DVt=function(e,r){var s=this;"text"!==r&&e.kh(Mg.LXt,this.Uet),e.kh(Mg.OXt,function(e){return s.aXt()}),e.kh(Mg.MXt,function(){return s.aXt()})},c.aXt=function(){this.wVt&&(this.wVt.hh(),this.wVt=void 0),this.wVt=new rE,this.doUpdateActiveTracks(++this.gVt,this.wVt.dh)},a=P.coroutine(iO.mark(function e(r,s){var o,u,a,h,c,f,l,p,v,d;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P.resolve();case 2:if(e.prev=2,rT(s),r===this.gVt){e.next=6;break}return e.abrupt("return");case 6:for(o=[],u=0,a=this.Bm.Qg;u<a.length;u++)(h=a[u]).aw&&o.push(h.cw);for(c=0,f=this.Pm.Qg;c<f.length;c++)(l=f[c]).aw&&o.push(l.cw);for(p=0,v=this.Om.Qg;p<v.length;p++)"showing"===(d=v[p]).Aw&&o.push(d.cw);
1rT(s),this.Xv.lXt(o),e.next=18;break;case 14:if(e.prev=14,e.t0=e.catch(2),e.t0 instanceof rA){e.next=18;break}throw e.t0;case 18:case"end":return e.stop()}},e,this,[[2,14]])})),c.doUpdateActiveTracks=function(e,r){return a.apply(this,arguments)},c.SVt=function(e){var r,s;return!!e&&((null!=(r=null==(s=this.nXt.WHt())?void 0:s.version)?r:-1)>=2?e.map(function(e){return k(e.hw)}):[k(e[0].hw)])},c.CVt=function(e){this.vVt=e},c.ip=function(){},c.Yg=function(){return this.gN=f1.Yw,this.kN=!1,this.yN=!1,this.JN=void 0,this.$N=void 0,P.resolve()},h=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Yg();case 2:this.Th(),this.Art=this.pVt(),this.nXt.Eh(UP.DHt,this.nVt),this.nXt.Eh(UP.CHt,this.EVt),this.nXt.Eh(UP.bv,this.yVt),this.nXt.Eh(UP.NHt,this.kVt),this.nXt.Eh(UP.PHt,this.AVt),this.nXt.Kl();case 10:case"end":return e.stop()}},e,this)})),c.Kl=function(){return h.apply(this,arguments)},c.pVt=function(){return new Mk(this,this.Xv._x(),this.Xv.wx(),this.Xv.kx(),this.Xv.Ix(),this.Xv.Rx(),this.Xv.ox(),this.Xv.Ux(),this.Xv.Mx(),this.Xv.Fx(),this.Xv.xx())},M(r,[{key:"Art",set:function(e){null==(r=this.Xv)||r.Eh(UU.DHt,this.nVt),null==(s=this.Xv)||s.Eh(MU,this.wh),null==(o=this.Xv)||o.Eh(f7.Og,this.mN);var r,s,o,u=this.Xv;this.Xv=e,null==u||u.Kl(),this.Xv.kh(UU.DHt,this.nVt),this.Xv.kh(MU,this.wh),this.Xv.kh(f7.Og,this.mN)}},{key:"iA",get:function(){return this.Kp}},{key:"Pm",get:function(){return this.Xv.ox()}},{key:"rp",get:function(){return this.Xv.ax()}},{key:"PVt",get:function(){return this.E6||this._Vt||void 0},set:function(e){this._Vt=e}},{key:"ep",get:function(){return this.Xv.vx()}},{key:"np",get:function(){return this.lC}},{key:"vy",get:function(){return this.Xv._x()+this.dVt},set:function(e){this.lVt||(this.nXt.AXt()||this.lVt||!this.E6?this.Xv.$h(e-this.dVt):this.bXt(this.E6,!0,e))}},{key:"ly",get:function(){return this.Xv.wx()}},{key:"sp",get:function(){return this.dC.sp}},{key:"_y",get:function(){return this.Xv.kx()}},{key:"Lh",get:function(){return this.JN}},{key:"gy",get:function(){return this.$N}},{key:"Lm",get:function(){}},{key:"ym",get:function(){return{ap:0,hp:0,cp:0,fp:0,vp:0,dp:{amountOfBufferedAudioSegments:0,amountOfBufferedVideoSegments:0}}}},{key:"wy",get:function(){return this.Kp?this.dP:this.dC.wy},set:function(e){this.dP=e,this.yh(new lv(this.vy,this.Ey)),this.nXt.Ex(e)}},{key:"lp",get:function(){return!0}},{key:"yy",get:function(){return this.Xv.Ix()}},{key:"py",get:function(){return this.Xv.Rx()},set:function(e){this.Xv.Nx(e)}},{key:"_p",get:function(){return this.Xv.Dx()}},{key:"gp",get:function(){return g7.hC},set:function(e){}},{key:"bw",get:function(){return this.Xv.Bx()}},{key:"wp",get:function(){return this.Xv.Ox()}},{key:"Ay",get:function(){return this.Xv.Lx()}},{key:"Om",get:function(){return this.Xv.Mx()}},{key:"by",get:function(){return this.Xv.xx()}},{key:"Ty",get:function(){return this.Xv.Fx()}},{key:"Bm",get:function(){return this.Xv.Ux()}},{key:"Ey",get:function(){return this.Kp?this.wP:this.dC.Ey},set:function(e){this.wP=e,this.yh(new lv(this.vy,this.Ey)),this.nXt.Xx(e)}},{key:"op",get:function(){return!1}}]),r}(fP),MF=function(e){function r(r){var s;return(s=e.call(this,"error")||this).Lh=r,s}return j(r,e),r.prototype.wg=function(){return new Mj(this.Lh)},r}(c0),Mj=function(e){function r(r){var s;return(s=e.call(this,"error")||this).error=r,s}return j(r,e),r}(rX),MH=function(e){function r(r){var s;return(s=e.call(this,"statechange")||this).state=r,s}return j(r,e),r}(rX);function MB(e){var r=void 0;return{get casting(){return e.vU},get error(){return e.Lh},get receiverName(){return e.BVt},get state(){return e.Art},start:function(){e.bC()},stop:function(){e.Um()},join:function(){e.OVt()},leave:function(){e.LVt()},get source(){return r||e.uC},set source(i){r=i,e.uC=i?mQ(i):void 0},addEventListener:function(r,s){r=fp(r,fl),e.kh(r,s)}
1,removeEventListener:function(r,s){r=fp(r,fl),e.Eh(r,s)}}}var MV=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).ef=void 0,u.JN=void 0,u._g=void 0,u.MVt=void 0,u.dC=void 0,u.Xv=mU.UNAVAILABLE,u.xVt=void 0,u.UVt=void 0,u.FVt=void 0,u.HVt=void 0,u.XVt=!1,u.VVt=function(e){var r=e.Art;r===mU.UNAVAILABLE?(u.WVt(),u.Art=r):u.Xv===mU.UNAVAILABLE&&(u.Art=r)},u._Vt=void 0,u.qVt=function(e){var r=e.Art;u.GVt(r)},u.kI=function(e){e instanceof US&&(u.JN=e,u.yh(new MF(e).gg))},u.FVt=r,u.HVt=o,u.ef=s.chromecast,u.xVt=s.strategy,u.UVt=u.HVt.iI(u.ef),u.UVt.then(function(){u.HVt.kh(Uk.cHt,u.VVt),u.GVt(u.HVt.CSt())}).catch(u.kI),u}j(r,e);var s,o,u,a,h=r.prototype;return h.GVt=function(e){e===mU.AVAILABLE&&(this.WVt(),this.Art=e)},s=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.UVt){e.next=2;break}throw new y("Chromecast must be initialized before starting a session");case 2:return e.next=4,this.UVt;case 4:if(this.HVt.RXt()){e.next=7;break}return e.next=7,this.HVt.NXt();case 7:case"end":return e.stop()}},e,this)})),h.zVt=function(){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.XVt=!0,this.HVt.kh(Uk.cHt,this.qVt),e.prev=2,this.Art=mU.CONNECTING,e.next=6,this.zVt();case 6:this.jVt(),this.dC&&(this.dC.PVt=this._Vt,this.dC.bc()),this.Art=mU.CONNECTED,null==(r=this.MVt)||r.Yg(),e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),this.HVt.Eh(Uk.cHt,this.qVt),this.WVt(),this.Art=mU.AVAILABLE,rx(e.t0)||this.kI(e.t0);case 18:case"end":return e.stop()}},e,this,[[2,12]])})),h.bC=function(){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.XVt=!0,this.HVt.kh(Uk.cHt,this.qVt),e.prev=2,this.Art=mU.CONNECTING,e.next=6,this.zVt();case 6:this.jVt(),this.Art=mU.CONNECTED,null==(r=this.MVt)||r.Yg(),e.next=17;break;case 11:e.prev=11,e.t0=e.catch(2),this.HVt.Eh(Uk.cHt,this.qVt),this.WVt(),this.Art=mU.AVAILABLE,rx(e.t0)||this.kI(e.t0);case 17:case"end":return e.stop()}},e,this,[[2,11]])})),h.OVt=function(){return u.apply(this,arguments)},a=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.HVt.RXt()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.bC();case 4:case"end":return e.stop()}},e,this)})),h.YVt=function(){return a.apply(this,arguments)},h.jVt=function(){this.MVt=this.FVt.uU.ew,this.dC||(this.dC=this.QVt(this.MVt)),this.JN=void 0,this.MVt.xm(),this.FVt.uU.ew=this.dC},h.QVt=function(e){var r=new MM(e,this.HVt.RXt());return r.CVt(this.kI),this.FVt.uU.Cm(r),r},h.ZVt=function(){this.dC&&(this.FVt.uU.$m(this.dC),this.dC.Kl(),this.dC=void 0)},h.WVt=function(){if(this.XVt=!1,this.dC){var e=this.dC.iA;this.HVt.Eh(Uk.cHt,this.qVt),this.FVt.uU.ew=this.MVt;var r=this.dC.Fm(),s=this.dC.vy;this.ZVt(),e&&(this.FVt.gg.source=r,this.FVt.gx(s)),this.FVt.Mm()}},h.LVt=function(){this.vU&&this.HVt.DXt(!1)},h.Um=function(){this.vU&&this.HVt.DXt(!0)},h.Kl=function(){this.Th(),this.ZVt()},M(r,[{key:"vU",get:function(){return this.Art===mU.CONNECTING||this.Art===mU.CONNECTED}},{key:"Lh",get:function(){return this.JN}},{key:"gg",get:function(){return this._g||(this._g=MB(this)),this._g}},{key:"BVt",get:function(){var e;return null==(e=this.HVt.RXt())?void 0:e.EXt()}},{key:"uC",get:function(){return this._Vt?this._Vt:this.dC?this.dC.PVt:void 0},set:function(e){this._Vt=e,e&&this.dC&&(this.dC.PVt=e,this.dC.bc())}},{key:"Art",get:function(){return this.Xv},set:function(e){this.XVt||e!==mU.CONNECTING&&e!==mU.CONNECTED||(e=mU.AVAILABLE),this.Xv!==e&&(this.Xv=e,this.yh(new MH(this.Art)))}}]),r}(f_);MV.KVt="ChromecastController",bz(function(e){function r(){return e.apply(this,arguments)||this}return j(r,e),r.prototype.wg=function(){var r=this.hF.gg;return fi(e.prototype.wg.call(this),{get cast(){return r}})},r},bF.dF);var MX=function(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this)._g=void 0,r}j(r,e);var s=r.prototype;return s.OVt=function(){console.warn("Joining a Chromecast session is not possible when JoinStrategy is configured to disabled")},s.LVt=function(){console.warn("Leaving a Chromecast session is not possible when JoinStrategy is configured to disabled")},s.bC=function(){console.warn("Starting a Chromecast session is not possible when JoinStrategy is configured to disabled")},s.Um=function(){console.warn("Stopping a Chromecast session is not possible when JoinStrategy is configured to disabled")}
1,s.YVt=function(){return P.resolve()},s.Kl=function(){},M(r,[{key:"vU",get:function(){return!1}},{key:"Lh",get:function(){}},{key:"BVt",get:function(){}},{key:"uC",get:function(){},set:function(e){}},{key:"Art",get:function(){return mU.UNAVAILABLE}},{key:"gg",get:function(){return this._g||(this._g=MB(this)),this._g}}]),r}(f_),MW=function(){function e(e){this.UVt=void 0,this._g=void 0,this.HVt=void 0,this.HVt=e}var r,s,o,u=e.prototype;return r=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.UVt||(this.UVt=this.JVt(r)),e.next=3,this.UVt;case 3:case"end":return e.stop()}},e,this)})),u.iI=function(e){return r.apply(this,arguments)},s=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.HVt.iI(r);case 2:case"end":return e.stop()}},e,this)})),u.JVt=function(e){return s.apply(this,arguments)},o=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.UVt){e.next=2;break}throw new y("Chromecast must be initialized before starting a session");case 2:return e.next=4,this.UVt;case 4:if(this.HVt.RXt()){e.next=7;break}return e.next=7,this.HVt.NXt();case 7:case"end":return e.stop()}},e,this)})),u.NXt=function(){return o.apply(this,arguments)},u.$Vt=function(){this.HVt.DXt(!1)},u.tWt=function(){this.HVt.DXt(!0)},M(e,[{key:"gg",get:function(){var e;return this._g||(this._g=(e=this,{initialize:function(r){var s=e.iI(fD(r));return s.catch(I),s},startSession:function(){var r=e.NXt();return r.catch(I),r},endSession:function(){e.tWt()}})),this._g}}]),e}(),Mq=new Mb,MY=new MW(Mq);bz(function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).nWt=void 0,o.iE.cast.strategy!==fG.DISABLED?(o.nWt=new MV(t8(o),o.iE.cast,Mq),o.hF.fU(o.nWt)):o.nWt=new MX,o}j(r,e);var s=r.prototype;return s.wg=function(){var r=this,s=e.prototype.wg.call(this);return fi(s.cast,{get chromecast(){return r.nWt.gg}}),s},s.Fm=function(){var r,s,o=e.prototype.Fm.call(this);return!o&&null!=(r=this.nWt)&&r.vU&&null!=(s=this.nWt)&&s.uC?this.nWt.uC:o},s.Mm=function(){e.prototype.Mm.call(this),this.iE.cast.strategy===fG.AUTO&&this.nWt&&!this.nWt.vU&&this.nWt.YVt()},s.Kl=function(){this.nWt&&this.nWt.Kl(),e.prototype.Kl.call(this)},r},bF.dF);var M$=function(e){function r(r,s,o,u){var a;return(a=e.call(this)||this).iWt=void 0,a._g=void 0,a.rWt=void 0,a.eWt=void 0,a.Let=void 0,a.dC=void 0,a.uWt=void 0,a.LM=void 0,a.Xv=mU.UNAVAILABLE,a.sWt=new rE,a.oWt=function(){var e,r=null==(e=a.LM.Fm())?void 0:e.sources.filter(fJ);null!=r&&r.some(g1)?a.aWt(mU.AVAILABLE):a.aWt(mU.UNAVAILABLE)},a.handleAirplayChangedEvent=function(){a.dC&&a.dC.op?a.hWt():a.Art===mU.CONNECTED&&a.cWt()},a.handleAirplayPlayerTimeUpdate=function(e){a.rWt=e.currentTime,a.eWt=a.LM.ep},a.Let=r,a.LM=s,a.iWt=u,a.iWt.Ym(),a.LM.Cm(u),a.fWt(),a.Let.kh("sourcechange",a.oWt),_.oa.No&&a.aWt(mU.AVAILABLE),a}j(r,e);var s,o,u,a=r.prototype;return a.fWt=function(){this.dC&&this.dC.Eh(ul.Lf,this.handleAirplayChangedEvent),this.vWt?this.dC=this.LM:this.dC=this.iWt,this.dC.kh(ul.Lf,this.handleAirplayChangedEvent)},s=P.coroutine(iO.mark(function e(){var r;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.dC){e.next=2;break}return e.abrupt("return");case 2:if(this.vWt){e.next=24;break}return this.rWt=this.LM.vy,this.eWt=this.LM.ep,this.iWt.kh("timeupdate",this.handleAirplayPlayerTimeUpdate),this.uWt=this.LM.ew,this.LM.ew=this.iWt,this.uWt.xm(),this.uWt.Ym(),this.iWt.jm(),this.iWt.wy=this.uWt.wy,this.iWt.py=this.uWt.py,this.iWt.Ey=this.uWt.Ey,r=this.iWt.Nh("seeked"),this.iWt.vy=this.uWt.vy,e.next=18,r;case 18:this.iWt.Mm(),this.iWt.wy=this.uWt.wy,this.iWt.py=this.uWt.py,this.iWt.Ey=this.uWt.Ey,e.next=28;break;case 24:if(this.dC.yy){e.next=27;break}return e.next=27,this.dC.Nh(ul.$f,this.sWt.dh);case 27:this.dC.Mm();case 28:this.aWt(mU.CONNECTED);case 29:case"end":return e.stop()}},e,this)})),a.hWt=function(){return s.apply(this,arguments)},a.cWt=function(){this.uWt?(this.iWt.Eh("timeupdate",this.handleAirplayPlayerTimeUpdate),this.uWt.wy=this.iWt.wy,this.uWt.py=this.iWt.py,this.uWt.Ey=this.iWt.Ey,Q.Ou&&!Q.yu&&this.LM.ly===1/0?this.eWt?this.uWt.ep=this.eWt:this.uWt.vy=1/0:this.uWt.vy=this.rWt,this.eWt=void 0,this.rWt=void 0,this.uWt.jm(),this.iWt.Ym(),this.iWt.yy||this.uWt.Mm(),this.LM.ew=this.uWt,this.iWt.Yg(),this.uWt=void 0):this.dC&&(this.dC.vy=this.dC.vy+1e-4),this.aWt(mU.AVAILABLE)},a.preloadPlayer=function(e){if(rT(e),this.dC.bw<f1.Qw){var r=this.dC.Nh("loadedmetadata",e);return this.dC.gp=g7.cb,r}return P.resolve()},a.aWt=function(e){e!==this.Xv&&(this.Xv=e,this.yh(new MH(this.Xv)))},a.Vm=function(){_.oa.No&&(this.Let.qm(),this.sWt.hh(),this.sWt=new rE,this.vWt?rN(this.dWt(this.sWt.dh)):rN(this.lWt(this.sWt.dh)))},o=P.coroutine(iO.mark(function e(r){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.preloadPlayer(r);case 2:this.LM.Vm();case 3:case"end":return e.stop()}},e,this)})),a.dWt=function(e){return o.apply(this,arguments)},u=P.coroutine(iO.mark(function e(r){var s;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.iWt.Yg();case 3:return e.next=5,this.iWt.Hm(this.LM.Fm(),r);case 5:return s=this.iWt.Nh("playing",r),this.iWt.Mm(),e.next=9,function(e){var r=new rE;return P.race([e,rU(3e3,r.dh).then(function(){throw new y("Timeout")})]).then(function(e){return r.hh(),e},function(e){throw r.hh(),e})}(s);case 9:this.iWt.xm(),rT(r),this.iWt.Vm(),e.next=19;break;case 14:if(e.prev=14,e.t0=e.catch(0),!rx(e.t0)){e.next=18;break}return e.abrupt("return");case 18:case 19:case"end":return e.stop()}},e,this,[[0,14]])}
1)),a.lWt=function(e){return u.apply(this,arguments)},a.Wm=function(){_.oa.No&&this.dC.Wm()},a.Kl=function(){var e;this.Th(),this.Let.Eh("sourcechange",this.oWt),this.LM.$m(this.iWt),this.sWt.hh(),null==(e=this.iWt)||e.Kl()},M(r,[{key:"vU",get:function(){return this.Art===mU.CONNECTED}},{key:"vWt",get:function(){return this.LM.Xm()}},{key:"Art",get:function(){return this.Xv}},{key:"gg",get:function(){var e;return this._g||(this._g=(e=this,{get casting(){return e.vU},get state(){return e.Art},start:function(){e.Vm()},stop:function(){e.Wm()},addEventListener:function(r,s){r=fp(r,fl),e.kh(r,s)},removeEventListener:function(r,s){r=fp(r,fl),e.Eh(r,s)}})),this._g}}]),r}(f_),MJ=function(e){function r(r,s,o,u,a,h){var c;return(c=e.call(this)||this).aC=void 0,c._Wt=void 0,c.gWt=void 0,c.lC=void 0,c.E6=void 0,c.Sm=new fA,c.Im=new fA,c.Rm=new fL,c.aC=r,c._Wt=new nZ(a,h,1,[l4.Vl]),c._Wt.bP(r),c.gWt=new g0(r,c._Wt,s,o,u),c.gWt.Ah(c.wh),c.Sm.ew=c.gWt.Pm,c.Im.ew=c.gWt.Bm,c.Rm.ew=c.gWt.Om,c}j(r,e);var s,o,u,a,h=r.prototype;return h.Xm=function(){return this.gWt.Xm()},h.Vm=function(){this.gWt.Vm()},h.Wm=function(){this.gWt.Wm()},h.Mm=function(){rN(this.gWt.Mm())},h.xm=function(){this.gWt.xm()},s=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)})),h.Um=function(){return s.apply(this,arguments)},h.Fm=function(){return this.E6},o=P.coroutine(iO.mark(function e(r,s){var o,u,a,h;return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(rT(s),this.E6=r,!fW(r.sources)){e.next=6;break}o=function(e){var r,s,o,u,a,h,c,f,l,p,v=(s=void 0,a=(r=void 0,o=fK.qw,e.useCredentials?o=fK.Ww:e.crossOrigin&&(o=fM(e.crossOrigin)),o===fK.qw&&r&&r.vr&&r.vr[360]&&(o=fK.Vw),u={useCredentials:o===fK.Ww,crossOrigin:o}).useCredentials,h=u.crossOrigin,z(c=e.liveOffset)||(c=s&&z(s.liveOffset)?s.liveOffset:void 0),z(f=e.timeServer)||(f=r&&z(r.timeServer)?r.timeServer:void 0),z(l=e.hlsDateRange)||(l=s&&z(s.hlsDateRange)?!!s.hlsDateRange:void 0),{crossOrigin:h,useCredentials:a,liveOffset:c,timeServer:f,hlsDateRange:l,experimentalRendering:!!e.experimentalRendering,nativeUiRendering:!!e.nativeUiRendering,lowLatency:!!e.lowLatency,useNativePlayback:!!e.useNativePlayback,dash:z(e.dash)?mF(e.dash):void 0,hls:z(e.hls)?mj(e.hls):void 0}),d=mH(e.src),y=e.type;return y||(y=e.src?fU(e.src):void 0),iD({},v,{src:d,type:y,contentProtection:(p=void 0,mV(z(e.contentProtection)?e.contentProtection:z(e.drm)?e.drm:z(p)&&z(p.contentProtection)?p.contentProtection:z(p)&&z(p.drm)?p.drm:void 0)),ssai:z(e.ssai)?mB(e.ssai):void 0,integrationData:void 0,isAdvertisement:!!e.isAdvertisement})}({src:""}),e.next=16;break;case 6:u=r.sources.filter(fJ),a=0;case 8:if(!(a<u.length)){e.next=16;break}if(!g1(h=u[a])){e.next=13;break}return o=h,e.abrupt("break",16);case 13:a++,e.next=8;break;case 16:if(o){e.next=18;break}throw new y("Unsupported source.");case 18:return e.next=20,this.gWt.Hm(o,r,s);case 20:this.mC(o);case 21:case"end":return e.stop()}},e,this)})),h.Hm=function(e,r){return o.apply(this,arguments)},h.mC=function(e){this.lC!==e&&(this.lC=e,this.yh(new fN(e)))},h.Qm=function(){},h.wWt=function(){},h.Km=function(){return[]},h.qm=function(){this._Wt.TP()},h.Gm=function(e){lE(this,e)},h.zm=function(){},h.Jm=function(e){return!1},h.ip=function(){},u=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.lC=void 0,this.E6=void 0,e.next=4,this.gWt.Yg();case 4:case"end":return e.stop()}},e,this)})),h.Yg=function(){return u.apply(this,arguments)},h.jm=function(){this.gWt.jm()},h.Ym=function(){this.gWt.Ym()},h.Zm=function(){return this.gWt.Zm()},a=P.coroutine(iO.mark(function e(){return iO.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.Th(),this._Wt.Kl(),e.next=4,this.gWt.Kl();case 4:this.Sm.Kl(),this.Im.Kl(),this.Rm.Kl();case 7:case"end":return e.stop()}},e,this)})),h.Kl=function(){return a.apply(this,arguments)},M(r,[{key:"Pm",get:function(){return this.gWt.Pm}},{key:"rp",get:function(){return this.gWt.rp}},{key:"np",get:function(){return this.lC}},{key:"vy",get:function(){return this.gWt.vy},set:function(e){this.gWt.vy=e}},{key:"ep",get:function(){return this.gWt.ep}},{key:"ly",get:function(){return this.gWt.ly}},{key:"sp",get:function(){return this.aC}},{key:"_y",get:function(){return this.gWt._y}},{key:"Lh",get:function(){return this.gWt.Lh}},{key:"op",get:function(){return this.gWt.op}},{key:"ym",get:function(){return{ap:0,hp:0,cp:0,fp:0,vp:0,dp:{amountOfBufferedAudioSegments:0,amountOfBufferedVideoSegments:0}}}},{key:"wy",get:function(){return this.gWt.wy},set:function(e){this.gWt.wy=e}},{key:"lp",get:function(){return this.gWt.lp}},{key:"yy",get:function(){return this.gWt.yy}},{key:"py",get:function(){return this.gWt.py},set:function(e){this.gWt.py=e}},{key:"_p",get:function(){return this.gWt._p}},{key:"gp",get:function(){return this.gWt.gp},set:function(e){this.gWt.gp=e}},{key:"bw",get:function(){return this.gWt.bw}},{key:"wp",get:function(){return this.gWt.wp}},{key:"Ay",get:function(){return this.gWt.Ay}},{key:"Om",get:function(){return this.gWt.Om}},{key:"by",get:function(){return this.gWt.by}},{key:"Ty",get:function(){return this.gWt.Ty}},{key:"Bm",get:function(){return this.gWt.Bm}},{key:"Ey",get:function(){return this.gWt.Ey},set:function(e){this.gWt.Ey=e}}]),r}(f_);bz(function(e){function r(r,s){(o=e.call(this,r,s)||this).yWt=void 0;var o,u=new MJ(o.uU.sp,o.hg,o.iE,o.oF,o.jU,o.vF);return o.yWt=new M$(t8(o),o.uU,o.hg,u),o.hF.fU(o.yWt),o.kh("currentsourcechange",function(){o.yWt.fWt()}),o}j(r,e);var s=r.prototype;return s.wg=function(){var r=this,s=e.prototype.wg.call(this);return fi(s.cast,{get airplay(){return r.yWt.gg}}),s},s.Kl=function(){this.yWt.Kl(),e.prototype.Kl.call(this)},r},bF.dF);var MQ=function(){function e(e){this.LM=void 0,this._g=void 0,this.LM=e}var r=e.prototype;return r.kWt=function(e){for(var r=this.LM.Km(),s=e.createGain(),o=0;o<r.length;o++){var u=r[o];e.createMediaElementSource(u).connect(s)}return s},r.wg=function(){var e=this;return{createAudioSourceNode:function(r){return e.kWt(r)}}},M(e,[{key:"gg",get:function(){return this._g||(this._g=this.wg()),this._g}}]),e}();bz(function(e){function r(r,s){(o=e.call(this,r,s)||this).mWt=void 0;var o,u=t8(o);return o.mWt=new MQ(u.uU),o}return j(r,e),r.prototype.wg=function(){var r=this;return fi(e.prototype.wg.call(this),{get audio(){return r.mWt.gg}})},r},bF.lF);var MG=R(function(e,r){e.exports=(function e(r,s,o){function u(h,c){if(!s[h]){if(!r[h]){var f=L;if(!c&&f)return f(h,!0);if(a)return a(h,!0);var l=new y("Cannot find module '"+h+"'");throw l.code="MODULE_NOT_FOUND",l}var p=s[h]={exports:{}};r[h][0].call(p.exports,function(e){return u(r[h][1][e]||e)},p,p.exports,e,r,s,o)}return s[h].exports}for(var a=L,h=0;h<o.length;h++)u(o[h]);return u})({1:[function(e,r,s){s.__esModule=!0;var o=a(e(2)),u=a(e(5));
1function a(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.tjt=!1,u.on("mousedown",u.handleMouseDown),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-big-play-button"},r.prototype.handleClick=function(e){var r=this.sC.play();if(!(this.tjt&&e.clientX&&e.clientY)){var s=this.sC.getChild("controlBar"),o=s&&s.getChild("playToggle");if(o){var u=function(){return o.focus()};r&&r.then?r.then(u,function(){}):this.setTimeout(u,1)}else this.sC.focus()}},r.prototype.handleKeyPress=function(r){this.tjt=!1,e.prototype.handleKeyPress.call(this,r)},r.prototype.handleMouseDown=function(e){this.tjt=!0},r}(o.default);h.prototype.njt="Play Video",u.default.registerComponent("BigPlayButton",h),s.default=h},{2:2,5:5}],2:[function(e,r,s){s.__esModule=!0;var o=c(e(3)),u=c(e(5)),a=c(e(87)),h=e(89);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.apply(this,arguments))}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=(0,h.assign)({className:this.buildCSSClass()},r),"button"!==e&&(a.default.warn("Creating a Button with an HTML element of "+e+" is deprecated; use ClickableComponent instead."),r=(0,h.assign)({tabIndex:0},r),s=(0,h.assign)({role:"button"},s)),s=(0,h.assign)({type:"button","aria-live":"polite"},s);var o=u.default.prototype.createEl.call(this,e,r,s);return this.createControlTextEl(o),o},r.prototype.addChild=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.constructor.name;return a.default.warn("Adding an actionable (user controllable) child to a Button ("+s+") is not supported; use a ClickableComponent instead."),u.default.prototype.addChild.call(this,e,r)},r.prototype.enable=function(){e.prototype.enable.call(this),this.ijt.removeAttribute("disabled")},r.prototype.disable=function(){e.prototype.disable.call(this),this.ijt.setAttribute("disabled","disabled")},r.prototype.handleKeyPress=function(r){32!==r.which&&13!==r.which&&e.prototype.handleKeyPress.call(this,r)},r}(o.default);u.default.registerComponent("Button",f),s.default=f},{3:3,5:5,87:87,89:89}],3:[function(e,r,s){s.__esModule=!0;var o=v(e(5)),u=p(e(81)),a=p(e(82)),h=p(e(83)),c=v(e(87)),f=e(85),l=e(89);function p(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function v(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.emitTapEvents(),u.enable(),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s=(0,l.assign)({className:this.buildCSSClass(),tabIndex:0},s),"button"===r&&c.default.error("Creating a ClickableComponent with an HTML element of "+r+" is not supported; use a Button instead."),o=(0,l.assign)({role:"button","aria-live":"polite"},o),this.rjt=s.tabIndex;var u=e.prototype.createEl.call(this,r,s,o);return this.createControlTextEl(u),u},r.prototype.createControlTextEl=function(e){return this.ejt=u.createEl("span",{className:"vjs-control-text"}),e&&e.appendChild(this.ejt),this.controlText(this.njt,e),this.ejt},r.prototype.controlText=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.njt||"Need Text";var s=this.localize(e);return this.njt=e,this.ejt.innerHTML=s,this.nonIconControl||r.setAttribute("title",s),this},r.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},r.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.ijt.setAttribute("aria-disabled","false"),void 0!==this.rjt&&this.ijt.setAttribute("tabIndex",this.rjt),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},r.prototype.disable=function(){return this.addClass("vjs-disabled"),this.ijt.setAttribute("aria-disabled","true"),void 0!==this.rjt&&this.ijt.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},r.prototype.handleClick=function(e){},r.prototype.handleFocus=function(e){a.on(f.document,"keydown",h.bind(this,this.handleKeyPress))},r.prototype.handleKeyPress=function(r){32===r.which||13===r.which?(r.preventDefault(),this.handleClick(r)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,r)},r.prototype.handleBlur=function(e){a.off(f.document,"keydown",h.bind(this,this.handleKeyPress))},r}(o.default);o.default.registerComponent("ClickableComponent",d),s.default=d},{5:5,81:81,82:82,83:83,85:85,87:87,89:89}],4:[function(e,r,s){s.__esModule=!0;var o=a(e(2)),u=a(e(5));
1function a(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.controlText(o&&o.controlText||u.localize("Close")),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},r.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},r}(o.default);u.default.registerComponent("CloseButton",h),s.default=h},{2:2,5:5}],5:[function(e,r,s){s.__esModule=!0;var o=e(85),u=d(e(81)),a=d(e(83)),h=d(e(86)),c=d(e(82)),f=v(e(87)),l=v(e(92)),p=v(e(88));function v(e){return e&&e.__esModule?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}var m=function(){function e(r,s,o){if(function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,e),!r&&this.play?this.sC=r=this:this.sC=r,this.sjt=(0,p.default)({},this.sjt),s=this.sjt=(0,p.default)(this.sjt,s),this.hw=s.id||s.el&&s.el.id,!this.hw){var u=r&&r.id&&r.id()||"no_player";this.hw=u+"ujt"+h.newGUID()}this.ds=s.name||null,s.el?this.ijt=s.el:!1!==s.createEl&&(this.ijt=this.createEl()),this.Ds=[],this.ojt={},this.ajt={},!1!==s.initChildren&&this.initChildren(),this.ready(o),!1!==s.reportTouchActivity&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.Ds)for(var e=this.Ds.length-1;e>=0;e--)this.Ds[e].dispose&&this.Ds[e].dispose();this.Ds=null,this.ojt=null,this.ajt=null,this.off(),this.ijt.parentNode&&this.ijt.parentNode.removeChild(this.ijt),u.removeElData(this.ijt),this.ijt=null},e.prototype.player=function(){return this.sC},e.prototype.options=function(e){return f.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e&&(this.sjt=(0,p.default)(this.sjt,e)),this.sjt},e.prototype.el=function(){return this.ijt},e.prototype.createEl=function(e,r,s){return u.createEl(e,r,s)},e.prototype.localize=function(e){var r=this.sC.language&&this.sC.language(),s=this.sC.languages&&this.sC.languages();if(!r||!s)return e;var o=s[r];if(o&&o[e])return o[e];var u=s[r.split("-")[0]];return u&&u[e]?u[e]:e},e.prototype.contentEl=function(){return this.hjt||this.ijt},e.prototype.id=function(){return this.hw},e.prototype.name=function(){return this.ds},e.prototype.children=function(){return this.Ds},e.prototype.getChildById=function(e){return this.ojt[e]},e.prototype.getChild=function(e){if(e)return e=(0,l.default)(e),this.ajt[e]},e.prototype.addChild=function(r){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.Ds.length,u=void 0,a=void 0;if("string"==typeof r){a=(0,l.default)(r),s||(s={}),!0===s&&(f.default.warn("Initializing a child component with `true` is deprecated.Children should be defined in an array when possible, but if necessary use an object instead of `true`."),s={});var h=s.componentClass||a;s.name=a;var c=e.getComponent(h);if(!c)throw new y("Component "+h+" does not exist");if("function"!=typeof c)return null;u=new c(this.sC||this,s)}else u=r;if(this.Ds.splice(o,0,u),"function"==typeof u.id&&(this.ojt[u.id()]=u),(a=a||u.name&&(0,l.default)(u.name()))&&(this.ajt[a]=u),"function"==typeof u.el&&u.el()){var p=this.contentEl().children[o]||null;this.contentEl().insertBefore(u.el(),p)}return u},e.prototype.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.Ds){for(var r=!1,s=this.Ds.length-1;s>=0;s--)if(this.Ds[s]===e){r=!0,this.Ds.splice(s,1);break}if(r){this.ojt[e.id()]=null,this.ajt[e.name()]=null;var o=e.el();o&&o.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var r=this,s=this.sjt.children;if(s){var o=this.sjt,u=void 0,a=e.getComponent("Tech");(u=Array.isArray(s)?s:w.keys(s)).concat(w.keys(this.sjt).filter(function(e){return!u.some(function(r){return"string"==typeof r?e===r:e===r.name})})).map(function(e){var o=void 0,u=void 0;return"string"==typeof e?u=s[o=e]||r.sjt[o]||{}:(o=e.name,u=e),{name:o,opts:u}}).filter(function(r){var s=e.getComponent(r.opts.componentClass||(0,l.default)(r.name));return s&&!a.isTech(s)}
1).forEach(function(e){var s=e.name,u=e.opts;if(void 0!==o[s]&&(u=o[s]),!1!==u){!0===u&&(u={}),u.playerOptions=r.sjt.playerOptions;var a=r.addChild(s,u);a&&(r[s]=a)}})}},e.prototype.buildCSSClass=function(){return""},e.prototype.on=function(e,r,s){var o=this;if("string"==typeof e||Array.isArray(e))c.on(this.ijt,e,a.bind(this,r));else{var u=a.bind(this,s),h=function(){return o.off(e,r,u)};h.guid=u.guid,this.on("dispose",h);var f=function(){return o.off("dispose",h)};f.guid=u.guid,e.nodeName?(c.on(e,r,u),c.on(e,"dispose",f)):"function"==typeof e.on&&(e.on(r,u),e.on("dispose",f))}return this},e.prototype.off=function(e,r,s){if(!e||"string"==typeof e||Array.isArray(e))c.off(this.ijt,e,r);else{var o=a.bind(this,s);this.off("dispose",o),e.nodeName?(c.off(e,r,o),c.off(e,"dispose",o)):(e.off(r,o),e.off("dispose",o))}return this},e.prototype.one=function(e,r,s){var o=this,u=arguments;if("string"==typeof e||Array.isArray(e))c.one(this.ijt,e,a.bind(this,r));else{var h=a.bind(this,s),f=function s(){o.off(e,r,s),h.apply(null,u)};f.guid=h.guid,this.on(e,r,f)}return this},e.prototype.trigger=function(e,r){return c.trigger(this.ijt,e,r),this},e.prototype.ready=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(this.cjt?r?e.call(this):this.setTimeout(e,1):(this.fjt=this.fjt||[],this.fjt.push(e))),this},e.prototype.triggerReady=function(){this.cjt=!0,this.setTimeout(function(){var e=this.fjt;this.fjt=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.prototype.$=function(e,r){return u.$(e,r||this.contentEl())},e.prototype.$$=function(e,r){return u.$$(e,r||this.contentEl())},e.prototype.hasClass=function(e){return u.hasElClass(this.ijt,e)},e.prototype.addClass=function(e){return u.addElClass(this.ijt,e),this},e.prototype.removeClass=function(e){return u.removeElClass(this.ijt,e),this},e.prototype.toggleClass=function(e,r){return u.toggleElClass(this.ijt,e,r),this},e.prototype.show=function(){return this.removeClass("vjs-hidden"),this},e.prototype.hide=function(){return this.addClass("vjs-hidden"),this},e.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},e.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},e.prototype.getAttribute=function(e){return u.getAttribute(this.ijt,e)},e.prototype.setAttribute=function(e,r){return u.setAttribute(this.ijt,e,r),this},e.prototype.removeAttribute=function(e){return u.removeAttribute(this.ijt,e),this},e.prototype.width=function(e,r){return this.dimension("width",e,r)},e.prototype.height=function(e,r){return this.dimension("height",e,r)},e.prototype.dimensions=function(e,r){return this.width(e,!0).height(r)},e.prototype.dimension=function(e,r,s){if(void 0!==r)return null!==r&&r==r||(r=0),-1!==(""+r).indexOf("%")||-1!==(""+r).indexOf("px")?this.ijt.style[e]=r:this.ijt.style[e]="auto"===r?"":r+"px",s||this.trigger("resize"),this;if(!this.ijt)return 0;var o=this.ijt.style[e],u=o.indexOf("px");return k(-1!==u?o.slice(0,u):this.ijt["offset"+(0,l.default)(e)],10)},e.prototype.currentDimension=function(e){var r=0;if("width"!==e&&"height"!==e)throw new y("currentDimension only accepts width or height value");if("function"==typeof o.window.getComputedStyle){var s=o.window.getComputedStyle(this.ijt);r=s.getPropertyValue(e)||s[e]}if(0===(r=E(r))){var u="offset"+(0,l.default)(e);r=this.ijt[u]}return r},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.ijt.focus()},e.prototype.blur=function(){this.ijt.blur()},e.prototype.emitTapEvents=function(){var e=0,r=null,s=void 0;this.on("touchstart",function(o){1===o.touches.length&&(r={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},e=(new Date).getTime(),s=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)s=!1;else if(r){var o=e.touches[0].pageX-r.pageX,u=e.touches[0].pageY-r.pageY;b.sqrt(o*o+u*u)>10&&(s=!1)}});var o=function(){s=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",function(o){r=null,!0===s&&(new Date).getTime()-e<200&&(o.preventDefault(),this.trigger("tap"))})},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=a.bind(this.player(),this.player().reportUserActivity),r=void 0;this.on("touchstart",function(){e(),this.clearInterval(r),r=this.setInterval(e,250)});var s=function(s){e(),this.clearInterval(r)};this.on("touchmove",e),this.on("touchend",s),this.on("touchcancel",s)}},e.prototype.setTimeout=function(e,r){e=a.bind(this,e);var s=o.window.setTimeout(e,r),u=function(){this.clearTimeout(s)};return u.guid="vjs-timeout-"+s,this.on("dispose",u),s},e.prototype.clearTimeout=function(e){o.window.clearTimeout(e);var r=function(){};return r.guid="vjs-timeout-"+e,this.off("dispose",r),e},e.prototype.setInterval=function(e,r){e=a.bind(this,e);var s=o.window.setInterval(e,r),u=function(){this.clearInterval(s)};return u.guid="vjs-interval-"+s,this.on("dispose",u),s},e.prototype.clearInterval=function(e){o.window.clearInterval(e);var r=function(){};return r.guid="vjs-interval-"+e,this.off("dispose",r),e},e.registerComponent=function(r,s){if(r){if(r=(0,l.default)(r),e.vjt||(e.vjt={}),"Player"===r&&e.vjt[r]){var o=e.vjt[r];if(o.players&&w.keys(o.players).length>0&&w.keys(o.players).map(function(e){return o.players[e]}).every(Boolean))throw new y("Can not register Player component after player has been created")}return e.vjt[r]=s,s}},e.getComponent=function(r){if(r)return r=(0,l.default)(r),e.vjt&&e.vjt[r]?e.vjt[r]:o.window&&o.window.videojs&&o.window.videojs[r]?(f.default.warn("The "+r+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),o.window.videojs[r]):void 0},e.extend=function(r){r=r||{},f.default.warn("Component.extend({}) has been deprecated,  use videojs.extend(Component, {}) instead");var s=r.init||r.init||this.prototype.init||this.prototype.init||function(){},o=function(){s.apply(this,arguments)};for(var u in(o.prototype=w.create(this.prototype)).constructor=o,o.extend=e.extend,r)r.hasOwnProperty(u)&&(o.prototype[u]=r[u]);return o},e}();m.registerComponent("Component",m),s.default=m},{81:81,82:82,83:83,85:85,86:86,87:87,88:88,92:92}],6:[function(e,r,s){s.__esModule=!0;var o=h(e(36)),u=h(e(5)),a=h(e(7));
1function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),o.tracks=s.audioTracks&&s.audioTracks();var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.ijt.setAttribute("aria-label","Audio Menu"),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},r.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.djt=1;var r=this.sC.audioTracks&&this.sC.audioTracks();if(!r)return e;for(var s=0;s<r.length;s++){var o=r[s];e.push(new a.default(this.sC,{track:o,selectable:!0}))}return e},r}(o.default);c.prototype.njt="Audio Track",u.default.registerComponent("AudioTrackButton",c),s.default=c},{36:36,5:5,7:7}],7:[function(e,r,s){s.__esModule=!0;var o=h(e(48)),u=h(e(5)),a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83));function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=o.track,h=s.audioTracks();o.label=u.label||u.language||"Unknown",o.selected=u.enabled;var c=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));if(c.track=u,h){var f=a.bind(c,c.handleTracksChange);h.addEventListener("change",f),c.on("dispose",function(){h.removeEventListener("change",f)})}return c}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.handleClick=function(r){var s=this.sC.audioTracks();if(e.prototype.handleClick.call(this,r),s)for(var o=0;o<s.length;o++){var u=s[o];u.enabled=u===this.track}},r.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},r}(o.default);u.default.registerComponent("AudioTrackMenuItem",c),s.default=c},{48:48,5:5,83:83}],8:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o};e(12),e(32),e(33),e(35),e(34),e(10),e(18),e(9),e(38),e(40),e(11),e(25),e(27),e(29),e(24),e(6),e(13),e(21);var a=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.apply(this,arguments))}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},r}(u.default);a.prototype.sjt={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},u.default.registerComponent("ControlBar",a),s.default=a},{10:10,11:11,12:12,13:13,18:18,21:21,24:24,25:25,27:27,29:29,32:32,33:33,34:34,35:35,38:38,40:40,5:5,6:6,9:9}],9:[function(e,r,s){s.__esModule=!0;var o=a(e(2)),u=a(e(5));
1function a(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.on(s,"fullscreenchange",u.handleFullscreenChange),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},r.prototype.handleFullscreenChange=function(e){this.sC.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},r.prototype.handleClick=function(e){this.sC.isFullscreen()?this.sC.exitFullscreen():this.sC.requestFullscreen()},r}(o.default);h.prototype.njt="Fullscreen",u.default.registerComponent("FullscreenToggle",h),s.default=h},{2:2,5:5}],10:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(81)),h=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.updateShowing(),u.on(u.player(),"durationchange",u.updateShowing),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){var r=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.hjt=a.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),r.appendChild(this.hjt),r},r.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},r}(u.default);u.default.registerComponent("LiveDisplay",h),s.default=h},{5:5,81:81}],11:[function(e,r,s){s.__esModule=!0;var o=h(e(2)),u=h(e(5)),a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(81));function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.on(s,"volumechange",u.update),s.ljt&&!1===s.ljt.featuresVolumeControl&&u.addClass("vjs-hidden"),u.on(s,"loadstart",function(){this.update(),!1===s.ljt.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},r.prototype.handleClick=function(e){this.sC.muted(!this.sC.muted())},r.prototype.update=function(e){var r=this.sC.volume(),s=3;this.sC.muted()?s=0:r<.33?s=1:r<.67&&(s=2);var o=this.sC.muted()?"Unmute":"Mute";this.controlText()!==o&&this.controlText(o);for(var u=0;u<4;u++)a.removeElClass(this.ijt,"vjs-vol-"+u);a.addElClass(this.ijt,"vjs-vol-"+s)},r}(o.default);c.prototype.njt="Mute",u.default.registerComponent("MuteToggle",c),s.default=c},{2:2,5:5,81:81}],12:[function(e,r,s){s.__esModule=!0;var o=a(e(2)),u=a(e(5));
1function a(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.on(s,"play",u.handlePlay),u.on(s,"pause",u.handlePause),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},r.prototype.handleClick=function(e){this.sC.paused()?this.sC.play():this.sC.pause()},r.prototype.handlePlay=function(e){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},r.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},r}(o.default);h.prototype.njt="Play",u.default.registerComponent("PlayToggle",h),s.default=h},{2:2,5:5}],13:[function(e,r,s){s.__esModule=!0;var o=f(e(47)),u=f(e(49)),a=f(e(14)),h=f(e(5)),c=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(81));function f(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.updateVisibility(),u.updateLabel(),u.on(s,"loadstart",u.updateVisibility),u.on(s,"ratechange",u.updateLabel),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){var r=e.prototype.createEl.call(this);return this._jt=c.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),r.appendChild(this._jt),r},r.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},r.prototype.createMenu=function(){var e=new u.default(this.player()),r=this.playbackRates();if(r)for(var s=r.length-1;s>=0;s--)e.addChild(new a.default(this.player(),{rate:r[s]+"x"}));return e},r.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},r.prototype.handleClick=function(e){for(var r=this.player().playbackRate(),s=this.playbackRates(),o=s[0],u=0;u<s.length;u++)if(s[u]>r){o=s[u];break}this.player().playbackRate(o)},r.prototype.playbackRates=function(){return this.sjt.playbackRates||this.sjt.playerOptions&&this.sjt.playerOptions.playbackRates},r.prototype.playbackRateSupported=function(){return this.player().ljt&&this.player().ljt.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},r.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},r.prototype.updateLabel=function(e){this.playbackRateSupported()&&(this._jt.innerHTML=this.player().playbackRate()+"x")},r}(o.default);l.prototype.njt="Playback Rate",h.default.registerComponent("PlaybackRateMenuButton",l),s.default=l},{14:14,47:47,49:49,5:5,81:81}],14:[function(e,r,s){s.__esModule=!0;var o=a(e(48)),u=a(e(5));function a(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=o.rate,a=E(u,10);o.label=u,o.selected=1===a,o.selectable=!0;var h=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return h.label=u,h.rate=a,h.on(s,"ratechange",h.update),h}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.handleClick=function(r){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},r.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},r}(o.default);h.prototype.contentElType="button",u.default.registerComponent("PlaybackRateMenuItem",h),s.default=h},{48:48,5:5}],15:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o}
1,a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(81)),h=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.gjt=[],u.on(s,"progress",u.update),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},r.prototype.update=function(e){var r=this.sC.buffered(),s=this.sC.duration(),o=this.sC.bufferedEnd(),u=this.gjt,h=function(e,r){var s=e/r||0;return 100*(s>=1?1:s)+"%"};this.ijt.style.width=h(o,s);for(var c=0;c<r.length;c++){var f=r.start(c),l=r.end(c),p=u[c];p||(p=this.ijt.appendChild(a.createEl()),u[c]=p),p.style.left=h(f,o),p.style.width=h(l-f,o)}for(var v=u.length;v>r.length;v--)this.ijt.removeChild(u[v-1]);u.length=r.length},r}(u.default);u.default.registerComponent("LoadProgressBar",h),s.default=h},{5:5,81:81}],16:[function(e,r,s){s.__esModule=!0;var o=l(e(5)),u=f(e(81)),a=f(e(83)),h=l(e(84)),c=l(e(80));function f(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function l(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var h=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(h.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),h.keepTooltipsInside&&(h.tooltip=u.createEl("div",{className:"vjs-time-tooltip"}),h.el().appendChild(h.tooltip),h.addClass("vjs-keep-tooltips-inside")),h.update(0,0),s.on("ready",function(){h.on(s.controlBar.progressControl.el(),"mousemove",a.throttle(a.bind(h,h.handleMouseMove),25))}),h}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},r.prototype.handleMouseMove=function(e){var r=this.sC.duration(),s=this.calculateDistance(e)*r,o=e.pageX-u.findElPosition(this.el().parentNode).left;this.update(s,o)},r.prototype.update=function(e,r){var s=(0,h.default)(e,this.sC.duration());if(this.el().style.left=r+"px",this.el().setAttribute("data-current-time",s),this.keepTooltipsInside){var o=this.wjt(r),u=r-o+1,a=E((0,c.default)(this.tooltip,"width"));this.tooltip.innerHTML=s,this.tooltip.style.right="-"+(a/2-u)+"px"}},r.prototype.calculateDistance=function(e){return u.getPointerPosition(this.el().parentNode,e).x},r.prototype.wjt=function(e){if(!this.keepTooltipsInside)return e;var r=E((0,c.default)(this.player().el(),"width")),s=E((0,c.default)(this.tooltip,"width"))/2,o=e;return e<s?o=b.ceil(s):e>r-s&&(o=b.floor(r-s)),o},r}(o.default);o.default.registerComponent("MouseTimeDisplay",p),s.default=p},{5:5,80:80,81:81,83:83,84:84}],17:[function(e,r,s){s.__esModule=!0;var o=h(e(5)),u=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83)),a=h(e(84));
1function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var a=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return a.updateDataAttr(),a.on(s,"timeupdate",a.updateDataAttr),s.ready(u.bind(a,a.updateDataAttr)),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(a.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),a.keepTooltipsInside&&a.addClass("vjs-keep-tooltips-inside"),a}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},r.prototype.updateDataAttr=function(e){var r=this.sC.scrubbing()?this.sC.getCache().currentTime:this.sC.currentTime();this.ijt.setAttribute("data-current-time",(0,a.default)(r,this.sC.duration()))},r}(o.default);o.default.registerComponent("PlayProgressBar",c),s.default=c},{5:5,83:83,84:84}],18:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o};e(19),e(16);var a=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.apply(this,arguments))}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},r}(u.default);a.prototype.sjt={children:["seekBar"]},u.default.registerComponent("ProgressControl",a),s.default=a},{16:16,19:19,5:5}],19:[function(e,r,s){s.__esModule=!0;var o=f(e(57)),u=f(e(5)),a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83)),h=f(e(84)),c=f(e(80));function f(e){return e&&e.__esModule?e:{default:e}}e(15),e(17),e(20);var l=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.on(s,"timeupdate",u.updateProgress),u.on(s,"ended",u.updateProgress),s.ready(a.bind(u,u.updateProgress)),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(u.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),u.keepTooltipsInside&&(u.tooltipProgressBar=u.addChild("TooltipProgressBar")),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},r.prototype.updateProgress=function(e){if(this.updateAriaAttributes(this.ijt),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.ijt),this.tooltipProgressBar.ijt.style.width=this.bar.ijt.style.width;var r=E((0,c.default)(this.player().el(),"width")),s=E((0,c.default)(this.tooltipProgressBar.tooltip,"width")),o=this.tooltipProgressBar.el().style;o.maxWidth=b.floor(r-s/2)+"px",o.minWidth=b.ceil(s/2)+"px",o.right="-"+s/2+"px"}},r.prototype.updateAriaAttributes=function(e){var r=this.sC.scrubbing()?this.sC.getCache().currentTime:this.sC.currentTime();e.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),e.setAttribute("aria-valuetext",(0,h.default)(r,this.sC.duration()))},r.prototype.getPercent=function(){var e=this.sC.currentTime()/this.sC.duration();return e>=1?1:e},r.prototype.handleMouseDown=function(r){this.sC.scrubbing(!0),this.videoWasPlaying=!this.sC.paused(),this.sC.pause(),e.prototype.handleMouseDown.call(this,r)},r.prototype.handleMouseMove=function(e){var r=this.calculateDistance(e)*this.sC.duration();r===this.sC.duration()&&(r-=.1),this.sC.currentTime(r)},r.prototype.handleMouseUp=function(r){e.prototype.handleMouseUp.call(this,r),this.sC.scrubbing(!1),this.videoWasPlaying&&this.sC.play()},r.prototype.stepForward=function(){this.sC.currentTime(this.sC.currentTime()+5)},r.prototype.stepBack=function(){this.sC.currentTime(this.sC.currentTime()-5)},r}(o.default);l.prototype.sjt={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},l.prototype.playerEvent="timeupdate",u.default.registerComponent("SeekBar",l),s.default=l},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(e,r,s){s.__esModule=!0;
1var o=h(e(5)),u=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83)),a=h(e(84));function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var a=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return a.updateDataAttr(),a.on(s,"timeupdate",a.updateDataAttr),s.ready(u.bind(a,a.updateDataAttr)),a}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){var r=e.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>\n        <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});return this.tooltip=r.querySelector(".vjs-time-tooltip"),r},r.prototype.updateDataAttr=function(e){var r=this.sC.scrubbing()?this.sC.getCache().currentTime:this.sC.currentTime(),s=(0,a.default)(r,this.sC.duration());this.ijt.setAttribute("data-current-time",s),this.tooltip.innerHTML=s},r}(o.default);o.default.registerComponent("TooltipProgressBar",c),s.default=c},{5:5,83:83,84:84}],21:[function(e,r,s){s.__esModule=!0;var o=a(e(22)),u=a(e(5));function a(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.apply(this,arguments))}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},r.prototype.createEl=function(){var r=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return r.innerHTML="&nbsp;",r},r}(o.default);u.default.registerComponent("CustomControlSpacer",h),s.default=h},{22:22,5:5}],22:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o},a=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.apply(this,arguments))}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},r}(u.default);u.default.registerComponent("Spacer",a),s.default=a},{5:5}],23:[function(e,r,s){s.__esModule=!0;var o=a(e(31)),u=a(e(5));function a(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function r(s,o){!function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),o.track={player:s,kind:o.kind,label:o.kind+" settings",selectable:!1,default:!1,mode:"disabled"},o.selectable=!1;var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.addClass("vjs-texttrack-settings"),u.controlText(", opens "+o.kind+" settings dialog"),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").ijt.focus()},r}(o.default);u.default.registerComponent("CaptionSettingsMenuItem",h),s.default=h},{31:31,5:5}],24:[function(e,r,s){s.__esModule=!0;var o=h(e(30)),u=h(e(5)),a=h(e(23));
1function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o,u){if(!(this instanceof r))throw new g("Cannot call a class as a function");var a=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o,u));return a.ijt.setAttribute("aria-label","Captions Menu"),a}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},r.prototype.createItems=function(){var r=[];return this.player().ljt&&this.player().ljt.featuresNativeTextTracks||(r.push(new a.default(this.sC,{kind:this.fw})),this.djt+=1),e.prototype.createItems.call(this,r)},r}(o.default);c.prototype.fw="captions",c.prototype.njt="Captions",u.default.registerComponent("CaptionsButton",c),s.default=c},{23:23,30:30,5:5}],25:[function(e,r,s){s.__esModule=!0;var o=c(e(30)),u=c(e(5)),a=c(e(26)),h=c(e(92));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function r(s,o,u){if(!(this instanceof r))throw new g("Cannot call a class as a function");var a=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o,u));return a.ijt.setAttribute("aria-label","Chapters Menu"),a}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},r.prototype.update=function(r){this.yg&&(!r||"addtrack"!==r.type&&"removetrack"!==r.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},r.prototype.setTrack=function(e){if(this.yg!==e){if(this.yjt||(this.yjt=this.update.bind(this)),this.yg){var r=this.sC.remoteTextTrackEls().pjt(this.yg);r&&r.removeEventListener("load",this.yjt),this.yg=null}if(this.yg=e,this.yg){this.yg.mode="hidden";var s=this.sC.remoteTextTrackEls().pjt(this.yg);s&&s.addEventListener("load",this.yjt)}}}
1,r.prototype.findChaptersTrack=function(){for(var e=this.sC.textTracks()||[],r=e.length-1;r>=0;r--){var s=e[r];if(s.kind===this.fw)return s}},r.prototype.getMenuCaption=function(){return this.yg&&this.yg.label?this.yg.label:this.localize((0,h.default)(this.fw))},r.prototype.createMenu=function(){return this.sjt.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},r.prototype.createItems=function(){var e=[];if(!this.yg)return e;var r=this.yg.cues;if(!r)return e;for(var s=0,o=r.length;s<o;s++){var u=r[s],h=new a.default(this.sC,{track:this.yg,cue:u});e.push(h)}return e},r}(o.default);f.prototype.fw="chapters",f.prototype.njt="Chapters",u.default.registerComponent("ChaptersButton",f),s.default=f},{26:26,30:30,5:5,92:92}],26:[function(e,r,s){s.__esModule=!0;var o=h(e(48)),u=h(e(5)),a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83));function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=o.track,h=o.cue,c=s.currentTime();o.selectable=!0,o.label=h.text,o.selected=h.startTime<=c&&c<h.endTime;var f=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return f.track=u,f.cue=h,u.addEventListener("cuechange",a.bind(f,f.update)),f}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.handleClick=function(r){e.prototype.handleClick.call(this),this.sC.currentTime(this.cue.startTime),this.update(this.cue.startTime)},r.prototype.update=function(e){var r=this.cue,s=this.sC.currentTime();this.selected(r.startTime<=s&&s<r.endTime)},r}(o.default);u.default.registerComponent("ChaptersTrackMenuItem",c),s.default=c},{48:48,5:5,83:83}],27:[function(e,r,s){s.__esModule=!0;var o=h(e(30)),u=h(e(5)),a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83));function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o,u){if(!(this instanceof r))throw new g("Cannot call a class as a function");var h=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o,u));h.ijt.setAttribute("aria-label","Descriptions Menu");var c=s.textTracks();if(c){var f=a.bind(h,h.handleTracksChange);c.addEventListener("change",f),h.on("dispose",function(){c.removeEventListener("change",f)})}return h}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.handleTracksChange=function(e){for(var r=this.player().textTracks(),s=!1,o=0,u=r.length;o<u;o++){var a=r[o];if(a.kind!==this.fw&&"showing"===a.mode){s=!0;break}}s?this.disable():this.enable()},r.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},r}(o.default);c.prototype.fw="descriptions",c.prototype.njt="Descriptions",u.default.registerComponent("DescriptionsButton",c),s.default=c},{30:30,5:5,83:83}],28:[function(e,r,s){s.__esModule=!0;var o=a(e(31)),u=a(e(5));function a(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function r(s,o){!function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),o.track={player:s,kind:o.kind,label:o.kind+" off",default:!1,mode:"disabled"},o.selectable=!0;var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.selected(!0),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.handleTracksChange=function(e){for(var r=this.player().textTracks(),s=!0,o=0,u=r.length;o<u;o++){var a=r[o];if(a.kind===this.track.kind&&"showing"===a.mode){s=!1;break}}this.selected(s)},r}(o.default);u.default.registerComponent("OffTextTrackMenuItem",h),s.default=h},{31:31,5:5}],29:[function(e,r,s){s.__esModule=!0;var o=a(e(30)),u=a(e(5));
1function a(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function r(s,o,u){if(!(this instanceof r))throw new g("Cannot call a class as a function");var a=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o,u));return a.ijt.setAttribute("aria-label","Subtitles Menu"),a}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},r}(o.default);h.prototype.fw="subtitles",h.prototype.njt="Subtitles",u.default.registerComponent("SubtitlesButton",h),s.default=h},{30:30,5:5}],30:[function(e,r,s){s.__esModule=!0;var o=c(e(36)),u=c(e(5)),a=c(e(31)),h=c(e(28));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function r(s){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),o.tracks=s.textTracks(),function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o))}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.push(new h.default(this.sC,{kind:this.fw})),this.djt+=1;var r=this.sC.textTracks();if(!r)return e;for(var s=0;s<r.length;s++){var o=r[s];o.kind===this.fw&&e.push(new a.default(this.sC,{track:o,selectable:!0}))}return e},r}(o.default);u.default.registerComponent("TextTrackButton",f),s.default=f},{28:28,31:31,36:36,5:5}],31:[function(e,r,s){s.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=f(e(48)),a=f(e(5)),h=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83)),c=e(85);function f(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function r(s,u){if(!(this instanceof r))throw new g("Cannot call a class as a function");var a=u.track,f=s.textTracks();u.label=a.label||a.language||"Unknown",u.selected=a.default||"showing"===a.mode;var l=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,u));if(l.track=a,f){var p=h.bind(l,l.handleTracksChange);s.on(["loadstart","texttrackchange"],p),f.addEventListener("change",p),l.on("dispose",function(){f.removeEventListener("change",p)})}if(f&&void 0===f.onchange){var v=void 0;l.on(["tap","click"],function(){if("object"!==o(c.window.Event))try{v=new c.window.Event("change")}catch(e){}v||(v=c.document.createEvent("Event")).initEvent("change",!0,!0),f.dispatchEvent(v)})}return l}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.handleClick=function(r){var s=this.track.kind,o=this.sC.textTracks();if(e.prototype.handleClick.call(this,r),o)for(var u=0;u<o.length;u++){var a=o[u];a.kind===s&&(a===this.track?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}},r.prototype.handleTracksChange=function(e){this.selected("showing"===this.track.mode)},r}(u.default);a.default.registerComponent("TextTrackMenuItem",l),s.default=l},{48:48,5:5,83:83,85:85}],32:[function(e,r,s){s.__esModule=!0;
1var o=h(e(5)),u=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(81)),a=h(e(84));function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.on(s,"timeupdate",u.updateContent),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){var r=e.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.hjt=u.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),r.appendChild(this.hjt),r},r.prototype.updateContent=function(e){var r=this.sC.scrubbing()?this.sC.getCache().currentTime:this.sC.currentTime(),s=this.localize("Current Time"),o=(0,a.default)(r,this.sC.duration());o!==this.mjt&&(this.mjt=o,this.hjt.innerHTML='<span class="vjs-control-text">'+s+"</span> "+o)},r}(o.default);o.default.registerComponent("CurrentTimeDisplay",c),s.default=c},{5:5,81:81,84:84}],33:[function(e,r,s){s.__esModule=!0;var o=h(e(5)),u=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(81)),a=h(e(84));function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.on(s,"durationchange",u.updateContent),u.on(s,"timeupdate",u.updateContent),u.on(s,"loadedmetadata",u.updateContent),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){var r=e.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.hjt=u.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),r.appendChild(this.hjt),r},r.prototype.updateContent=function(e){var r=this.sC.duration();if(r&&this.ly!==r){this.ly=r;var s=this.localize("Duration Time"),o=(0,a.default)(r);this.hjt.innerHTML='<span class="vjs-control-text">'+s+"</span> "+o}},r}(o.default);o.default.registerComponent("DurationDisplay",c),s.default=c},{5:5,81:81,84:84}],34:[function(e,r,s){s.__esModule=!0;var o=h(e(5)),u=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(81)),a=h(e(84));function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.on(s,"timeupdate",u.updateContent),u.on(s,"durationchange",u.updateContent),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){var r=e.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.hjt=u.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),r.appendChild(this.hjt),r},r.prototype.updateContent=function(e){if(this.sC.duration()){var r=this.localize("Remaining Time"),s=(0,a.default)(this.sC.remainingTime());s!==this.mjt&&(this.mjt=s,this.hjt.innerHTML='<span class="vjs-control-text">'+r+"</span> -"+s)}},r}(o.default);o.default.registerComponent("RemainingTimeDisplay",c),s.default=c},{5:5,81:81,84:84}],35:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o},a=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.apply(this,arguments))}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},r}(u.default);u.default.registerComponent("TimeDivider",a),s.default=a},{5:5}],36:[function(e,r,s){s.__esModule=!0;
1var o=h(e(47)),u=h(e(5)),a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83));function h(e){return e&&e.__esModule?e:{default:e}}function c(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}var f=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=o.tracks,h=c(this,e.call(this,s,o));if(h.items.length<=1&&h.hide(),!u)return c(h);var f=a.bind(h,h.update);return u.addEventListener("removetrack",f),u.addEventListener("addtrack",f),h.sC.on("dispose",function(){u.removeEventListener("removetrack",f),u.removeEventListener("addtrack",f)}),h}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r}(o.default);u.default.registerComponent("TrackButton",f),s.default=f},{47:47,5:5,83:83}],37:[function(e,r,s){s.__esModule=!0;var o=h(e(57)),u=h(e(5)),a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83));function h(e){return e&&e.__esModule?e:{default:e}}e(39);var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.on(s,"volumechange",u.updateARIAAttributes),s.ready(a.bind(u,u.updateARIAAttributes)),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},r.prototype.handleMouseMove=function(e){this.checkMuted(),this.sC.volume(this.calculateDistance(e))},r.prototype.checkMuted=function(){this.sC.muted()&&this.sC.muted(!1)},r.prototype.getPercent=function(){return this.sC.muted()?0:this.sC.volume()},r.prototype.stepForward=function(){this.checkMuted(),this.sC.volume(this.sC.volume()+.1)},r.prototype.stepBack=function(){this.checkMuted(),this.sC.volume(this.sC.volume()-.1)},r.prototype.updateARIAAttributes=function(e){var r=(100*this.sC.volume()).toFixed(2);this.ijt.setAttribute("aria-valuenow",r),this.ijt.setAttribute("aria-valuetext",r+"%")},r}(o.default);c.prototype.sjt={children:["volumeLevel"],barName:"volumeLevel"},c.prototype.playerEvent="volumechange",u.default.registerComponent("VolumeBar",c),s.default=c},{39:39,5:5,57:57,83:83}],38:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o};e(37);var a=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return s.ljt&&!1===s.ljt.featuresVolumeControl&&u.addClass("vjs-hidden"),u.on(s,"loadstart",function(){!1===s.ljt.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},r}(u.default);a.prototype.sjt={children:["volumeBar"]}
1,u.default.registerComponent("VolumeControl",a),s.default=a},{37:37,5:5}],39:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o},a=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.apply(this,arguments))}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},r}(u.default);u.default.registerComponent("VolumeLevel",a),s.default=a},{5:5}],40:[function(e,r,s){s.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83)),u=l(e(5)),a=l(e(54)),h=l(e(53)),c=l(e(11)),f=l(e(37));function l(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function r(s){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),void 0===o.inline&&(o.inline=!0),void 0===o.vertical&&(o.inline?o.vertical=!1:o.vertical=!0),o.volumeBar=o.volumeBar||{},o.volumeBar.vertical=!!o.vertical;var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));function a(){s.ljt&&!1===s.ljt.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return u.on(s,"volumechange",u.volumeUpdate),u.on(s,"loadstart",u.volumeUpdate),a.call(u),u.on(s,"loadstart",a),u.on(u.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),u.on(u.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),u.on(u.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),u.on(u.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){var r="";return r=this.sjt.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+e.prototype.buildCSSClass.call(this)+" "+r},r.prototype.createPopup=function(){var e=new a.default(this.sC,{contentElType:"div"}),r=new f.default(this.sC,this.sjt.volumeBar);return e.addChild(r),this.menuContent=e,this.volumeBar=r,this.attachVolumeBarEvents(),e},r.prototype.handleClick=function(r){c.default.prototype.handleClick.call(this),e.prototype.handleClick.call(this)},r.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],o.bind(this,this.handleMouseDown))},r.prototype.handleMouseDown=function(e){this.on(["mousemove","touchmove"],o.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.ijt.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},r.prototype.handleMouseUp=function(e){this.off(["mousemove","touchmove"],o.bind(this.volumeBar,this.volumeBar.handleMouseMove))},r}(h.default);p.prototype.volumeUpdate=c.default.prototype.update,p.prototype.njt="Mute",u.default.registerComponent("VolumeMenuButton",p),s.default=p},{11:11,37:37,5:5,53:53,54:54,83:83}],41:[function(e,r,s){s.__esModule=!0;var o=h(e(5)),u=h(e(50)),a=h(e(88));function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.on(s,"error",u.open),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},r.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},r}(u.default);c.prototype.sjt=(0,a.default)(u.default.prototype.sjt,{pauseOnOpe
1n:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),o.default.registerComponent("ErrorDisplay",c),s.default=c},{5:5,50:50,88:88}],42:[function(e,r,s){s.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(82)),u=function(){};u.prototype.kjt={},u.prototype.on=function(e,r){var s=this.addEventListener;this.addEventListener=function(){},o.on(this,e,r),this.addEventListener=s},u.prototype.addEventListener=u.prototype.on,u.prototype.off=function(e,r){o.off(this,e,r)},u.prototype.removeEventListener=u.prototype.off,u.prototype.one=function(e,r){var s=this.addEventListener;this.addEventListener=function(){},o.one(this,e,r),this.addEventListener=s},u.prototype.trigger=function(e){var r=e.type||e;"string"==typeof e&&(e={type:r}),e=o.fixEvent(e),this.kjt[r]&&this["on"+r]&&this["on"+r](e),o.trigger(this,e)},u.prototype.dispatchEvent=u.prototype.trigger,s.default=u},{82:82}],43:[function(e,r,s){s.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=e(87),a=u&&u.__esModule?u:{default:u},h=e(89);s.default=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=function(){e.apply(this,arguments)},u={};for(var c in(0,h.isObject)(r)?("function"==typeof r.init&&(a.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),r.constructor=r.init),r.constructor!==w.prototype.constructor&&(s=r.constructor),u=r):"function"==typeof r&&(s=r),function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+(void 0===r?"undefined":o(r)));e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(e.bjt=r)}(s,e),u)u.hasOwnProperty(c)&&(s.prototype[c]=u[c]);return s}},{87:87,89:89}],44:[function(e,r,s){s.__esModule=!0;for(var o=e(85),u={},a=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],h=a[0],c=void 0,f=0;f<a.length;f++)if(a[f][1]in o.document){c=a[f];break}if(c)for(var l=0;l<c.length;l++)u[h[l]]=c[l];s.default=u},{85:85}],45:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o},a=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.apply(this,arguments))}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},r}(u.default);u.default.registerComponent("LoadingSpinner",a),s.default=a},{5:5}],46:[function(e,r,s){s.__esModule=!0;var o=e(89);function u(e){if(e instanceof u)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:(0,o.isObject)(e)&&("number"==typeof e.code&&(this.code=e.code),(0,o.assign)(this,e)),this.message||(this.message=u.defaultMessages[this.code]||"")}u.prototype.code=0,u.prototype.message="",u.prototype.status=null,u.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],u.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var a=0;a<u.errorTypes.length;a++)u[u.errorTypes[a]]=a,u.prototype[u.errorTypes[a]]=a;s.default=u},{89:89}],47:[function(e,r,s){s.__esModule=!0;var o=p(e(3)),u=p(e(5)),a=p(e(49)),h=l(e(81)),c=l(e(83)),f=p(e(92));
1function l(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function p(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function r(s){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.update(),u.aw=!0,u.ijt.setAttribute("aria-haspopup","true"),u.ijt.setAttribute("role","menuitem"),u.on("keydown",u.handleSubmenuKeyPress),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.update=function(){var e=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=e,this.addChild(e),this.Ajt=!1,this.ijt.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.djt?this.hide():this.show()},r.prototype.createMenu=function(){var e=new a.default(this.sC);if(this.djt=0,this.sjt.title){var r=h.createEl("li",{className:"vjs-menu-title",innerHTML:(0,f.default)(this.sjt.title),tabIndex:-1});this.djt+=1,e.Ds.unshift(r),h.insertElFirst(r,e.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)e.addItem(this.items[s]);return e},r.prototype.createItems=function(){},r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},r.prototype.buildCSSClass=function(){var r="vjs-menu-button";return!0===this.sjt.inline?r+="-inline":r+="-popup","vjs-menu-button "+r+" "+e.prototype.buildCSSClass.call(this)},r.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",c.bind(this,function(e){this.unpressButton(),this.ijt.blur()})),this.Ajt?this.unpressButton():this.pressButton()},r.prototype.handleKeyPress=function(r){27===r.which||9===r.which?(this.Ajt&&this.unpressButton(),9!==r.which&&r.preventDefault()):38===r.which||40===r.which?this.Ajt||(this.pressButton(),r.preventDefault()):e.prototype.handleKeyPress.call(this,r)},r.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.Ajt&&this.unpressButton(),9!==e.which&&e.preventDefault())},r.prototype.pressButton=function(){this.aw&&(this.Ajt=!0,this.menu.lockShowing(),this.ijt.setAttribute("aria-expanded","true"),this.menu.focus())},r.prototype.unpressButton=function(){this.aw&&(this.Ajt=!1,this.menu.unlockShowing(),this.ijt.setAttribute("aria-expanded","false"),this.ijt.focus())},r.prototype.disable=function(){return this.Ajt=!1,this.menu.unlockShowing(),this.ijt.setAttribute("aria-expanded","false"),this.aw=!1,e.prototype.disable.call(this)},r.prototype.enable=function(){return this.aw=!0,e.prototype.enable.call(this)},r}(o.default);u.default.registerComponent("MenuButton",v),s.default=v},{3:3,49:49,5:5,81:81,83:83,92:92}],48:[function(e,r,s){s.__esModule=!0;var o=h(e(3)),u=h(e(5)),a=e(89);function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.selectable=o.selectable,u.selected(o.selected),u.selectable?u.ijt.setAttribute("role","menuitemcheckbox"):u.ijt.setAttribute("role","menuitem"),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(r,s,o){return this.nonIconControl
1=!0,e.prototype.createEl.call(this,"li",(0,a.assign)({className:"vjs-menu-item",innerHTML:this.localize(this.sjt.label),tabIndex:-1},s),o)},r.prototype.handleClick=function(e){this.selected(!0)},r.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.ijt.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.ijt.setAttribute("aria-checked","false"),this.controlText("")))},r}(o.default);u.default.registerComponent("MenuItem",c),s.default=c},{3:3,5:5,89:89}],49:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o},a=f(e(81)),h=f(e(83)),c=f(e(82));function f(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}var l=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.Tjt=-1,u.on("keydown",u.handleKeyPress),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.addItem=function(e){this.addChild(e),e.on("click",h.bind(this,function(e){this.unlockShowing()}))},r.prototype.createEl=function(){var r=this.sjt.contentElType||"ul";this.hjt=a.createEl(r,{className:"vjs-menu-content"}),this.hjt.setAttribute("role","menu");var s=e.prototype.createEl.call(this,"div",{append:this.hjt,className:"vjs-menu"});return s.setAttribute("role","presentation"),s.appendChild(this.hjt),c.on(s,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),s},r.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},r.prototype.stepForward=function(){var e=0;void 0!==this.Tjt&&(e=this.Tjt+1),this.focus(e)},r.prototype.stepBack=function(){var e=0;void 0!==this.Tjt&&(e=this.Tjt-1),this.focus(e)},r.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=this.children().slice();r.length&&r[0].className&&/vjs-menu-title/.test(r[0].className)&&r.shift(),r.length>0&&(e<0?e=0:e>=r.length&&(e=r.length-1),this.Tjt=e,r[e].ijt.focus())},r}(u.default);u.default.registerComponent("Menu",l),s.default=l},{5:5,81:81,82:82,83:83}],50:[function(e,r,s){s.__esModule=!0;var o=c(e(81)),u=c(e(83)),a=e(5),h=a&&a.__esModule?a:{default:a};function c(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}var f="vjs-modal-dialog",l=function(e){function r(s,u){if(!(this instanceof r))throw new g("Cannot call a class as a function");var a=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,u));return a.Sjt=a.Ejt=a.Rjt=!1,a.closeable(!a.sjt.uncloseable),a.content(a.sjt.content),a.hjt=o.createEl("div",{className:f+"-content"},{role:"document"}),a.Ijt=o.createEl("p",{className:f+"-description vjs-offscreen",id:a.el().getAttribute("aria-describedby")}),o.textContent(a.Ijt,a.description()),a.ijt.appendChild(a.Ijt),a.ijt.appendChild(a.hjt),a}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"Njt","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},r.prototype.buildCSSClass=function(){return f+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},r.prototype.handleKeyPress=function(e){27===e.which&&this.closeable()&&this.close()},r.prototype.label=function(){return this.sjt.label||this.localize("Modal Window")},r.prototype.description=function(){var e=this.sjt.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},r.prototype.open=function(){if(!this.Sjt){var e=this.player();this.trigger("beforemodalopen"),this.Sjt=!0,!this.sjt.fillAlways&&(this.Ejt||this.Rjt)||this.fill(),this.Cjt=!e.paused(),this.sjt.pauseOnOpe
1n&&this.Cjt&&e.pause(),this.closeable()&&this.on(this.ijt.ownerDocument,"keydown",u.bind(this,this.handleKeyPress)),e.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.Ejt=!0}return this},r.prototype.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.Sjt},r.prototype.close=function(){if(this.Sjt){var e=this.player();this.trigger("beforemodalclose"),this.Sjt=!1,this.Cjt&&this.sjt.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.ijt.ownerDocument,"keydown",u.bind(this,this.handleKeyPress)),e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.sjt.temporary&&this.dispose()}return this},r.prototype.closeable=function(e){if("boolean"==typeof e){var r=this.Djt=!!e,s=this.getChild("closeButton");if(r&&!s){var o=this.hjt;this.hjt=this.ijt,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.hjt=o,this.on(s,"close",this.close)}!r&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.Djt},r.prototype.fill=function(){return this.fillWith(this.content())},r.prototype.fillWith=function(e){var r=this.contentEl(),s=r.parentNode,u=r.nextSibling;return this.trigger("beforemodalfill"),this.Rjt=!0,s.removeChild(r),this.empty(),o.insertContent(r,e),this.trigger("modalfill"),u?s.insertBefore(r,u):s.appendChild(r),this},r.prototype.empty=function(){return this.trigger("beforemodalempty"),o.emptyEl(this.contentEl()),this.trigger("modalempty"),this},r.prototype.content=function(e){return void 0!==e&&(this.Fp=e),this.Fp},r}(h.default);l.prototype.sjt={pauseOnOpen:!0,temporary:!0},h.default.registerComponent("ModalDialog",l),s.default=l},{5:5,81:81,83:83}],51:[function(e,r,s){s.__esModule=!0;var o=D(e(5)),u=e(85),a=O(e(82)),h=O(e(81)),c=O(e(83)),f=O(e(86)),l=O(e(78)),p=D(e(87)),v=D(e(92)),d=e(91),m=e(79),k=O(e(90)),x=D(e(44)),T=D(e(46)),C=D(e(116)),S=e(89),R=D(e(88)),L=D(e(69)),_=D(e(50)),P=D(e(62)),I=D(e(63)),N=D(e(76));function O(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function D(e){return e&&e.__esModule?e:{default:e}}e(61),e(59),e(55),e(68),e(45),e(1),e(4),e(8),e(41),e(71),e(60);var U=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],M=function(e){function r(s,o,u){if(function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),s.id=s.id||["vjs_video",f.newGUID()].join("_"),(o=(0,S.assign)(r.getTagSettings(s),o)).initChildren=!1,o.createEl=!1,o.reportTouchActivity=!1,!o.language)if("function"==typeof s.closest){var a=s.closest("[lang]");a&&(o.language=a.getAttribute("lang"))}else for(var c=s;c&&1===c.nodeType;){if(h.getElAttributes(c).hasOwnProperty("lang")){o.language=c.getAttribute("lang");break}c=c.parentNode}var v=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,null,o,u));if(!v.sjt||!v.sjt.techOrder||!v.sjt.techOrder.length)throw new y("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(v.tag=s,v.tagAttributes=s&&h.getElAttributes(s),v.language(v.sjt.language),o.languages){var d={};w.getOwnPropertyNames(o.languages).forEach(function(e){d[e.toLowerCase()]=o.languages[e]}),v.Pjt=d}else v.Pjt=r.prototype.sjt.languages;v.Bjt={},v.qF=o.poster||"",v.xjt=!!o.controls,s.controls=!1,v.Ojt=!1,v.ijt=v.createEl();var m=(0,R.default)(v.sjt);if(o.plugins){var b=o.plugins;w.getOwnPropertyNames(b).forEach(function(e){"function"==typeof this[e]?this[e](b[e]):p.default.error("Unable to find plugin:",e)},v)}v.sjt.playerOptions=m,v.initChildren(),v.isAudio("audio"===s.nodeName.toLowerCase()),v.controls()?v.addClass("vjs-controls-enabled"):v.addClass("vjs-controls-disabled"),v.ijt.setAttribute("role","region"),v.isAudio()?v.ijt.setAttribute("aria-label","audio player"):v.ijt.setAttribute("aria-label","video player"),v.isAudio()&&v.addClass("vjs-audio"),v.Ljt()&&v.addClass("vjs-no-flex"),l.IS_IOS||v.addClass("vjs-workinghover"),r.players[v.hw]=v;var k="5.20.6-opentelly.3".split(".")[0];
1return v.addClass("vjs-v"+k),v.userActive(!0),v.reportUserActivity(),v.Mjt(),v.on("fullscreenchange",v.WP),v.on("stageclick",v.jjt),v}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.Fjt&&this.Fjt.parentNode&&this.Fjt.parentNode.removeChild(this.Fjt),r.players[this.hw]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.ijt&&this.ijt.player&&(this.ijt.player=null),this.ljt&&this.ljt.dispose(),e.prototype.dispose.call(this)},r.prototype.createEl=function(){var r=this.tag,s=void 0,o=this.Ujt=r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player");s=this.ijt=o?r.parentNode:e.prototype.createEl.call(this,"div"),r.setAttribute("tabindex","-1"),r.removeAttribute("width"),r.removeAttribute("height");var a=h.getElAttributes(r);if(w.getOwnPropertyNames(a).forEach(function(e){"class"===e?s.className+=" "+a[e]:s.setAttribute(e,a[e])}),r.playerId=r.id,r.id+="Hjt",r.className="vjs-tech",r.player=s.player=this,this.addClass("vjs-paused"),!0!==u.window.VIDEOJS_NO_DYNAMIC_STYLE){this.Fjt=k.createStyleElement("vjs-styles-dimensions");var c=h.$(".vjs-styles-defaults"),f=h.$("head");f.insertBefore(this.Fjt,c?c.nextSibling:f.firstChild)}this.width(this.sjt.width),this.height(this.sjt.height),this.fluid(this.sjt.fluid),this.aspectRatio(this.sjt.aspectRatio);for(var l=r.getElementsByTagName("a"),p=0;p<l.length;p++){var v=l.item(p);h.addElClass(v,"vjs-hidden"),v.setAttribute("hidden","hidden")}return r.Xjt=r.networkState,r.parentNode&&!o&&r.parentNode.insertBefore(s,r),h.insertElFirst(r,s),this.Ds.unshift(r),this.ijt=s,s},r.prototype.width=function(e){return this.dimension("width",e)},r.prototype.height=function(e){return this.dimension("height",e)},r.prototype.dimension=function(e,r){var s="width"===e?"Lo":"yT";if(void 0===r)return this[s]||0;if(""===r)this[s]=void 0;else{var o=E(r);if(A(o))return p.default.error('Improper value "'+r+'" supplied for for '+e),this;this[s]=o}return this.Vjt(),this},r.prototype.fluid=function(e){if(void 0===e)return!!this.Wjt;this.Wjt=!!e,e?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.Vjt()},r.prototype.aspectRatio=function(e){if(void 0===e)return this.zjt;if(!/^\d+\:\d+$/.test(e))throw new y("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.zjt=e,this.fluid(!0),this.Vjt()},r.prototype.Vjt=function(){if(!0!==u.window.VIDEOJS_NO_DYNAMIC_STYLE){var e=void 0,r=void 0,s=void 0,o=(void 0!==this.zjt&&"auto"!==this.zjt?this.zjt:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),a=o[1]/o[0];e=void 0!==this.Lo?this.Lo:void 0!==this.yT?this.yT/a:this.videoWidth()||300,r=void 0!==this.yT?this.yT:e*a,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),k.setTextContent(this.Fjt,"\n      ."+s+" {\n        width: "+e+"px;\n        height: "+r+"px;\n      }\n\n      ."+s+".vjs-fluid {\n        padding-top: "+100*a+"%;\n      }\n    ")}else{var h="number"==typeof this.Lo?this.Lo:this.sjt.width,c="number"==typeof this.yT?this.yT:this.sjt.height,f=this.ljt&&this.ljt.el();f&&(h>=0&&(f.width=h),c>=0&&(f.height=c))}},r.prototype.qjt=function(e,r){var s=this;this.ljt&&this.Gjt(),"Html5"!==e&&this.tag&&(P.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.Yjt=e,this.cjt=!1;var u=(0,S.assign)({source:r,nativeControlsForTouch:this.sjt.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+e+"$jt",videoTracks:this.Bm,textTracks:this.Om,audioTracks:this.Pm,autoplay:this.sjt.autoplay,playsinline:this.sjt.playsinline,preload:this.sjt.preload,loop:this.sjt.loop,muted:this.sjt.muted,poster:this.poster(),language:this.language(),playerElIngest:this.Ujt||!1,"vtt.js":this.sjt["vtt.js"]},this.sjt[e.toLowerCase()]);this.tag&&(u.tag=this.tag),r&&(this.Qjt=r.type,r.src===this.Bjt.src&&this.Bjt.currentTime>0&&(u.startTime=this.Bjt.currentTime),this.Bjt.sources=null,this.Bjt.source=r,this.Bjt.src=r.src);var a=P.default.getTech(e);a||(a=o.default.getComponent(e)),this.ljt=new a(u),this.ljt.ready(c.bind(this,this.Zjt),!0),L.default.jsonToTextTracks(this.Kjt||[],this.ljt),U.forEac
1h(function(e){s.on(s.ljt,e,s["handleTech"+(0,v.default)(e)+"_"])}),this.on(this.ljt,"loadstart",this.Jjt),this.on(this.ljt,"waiting",this.pWt),this.on(this.ljt,"canplay",this.bWt),this.on(this.ljt,"canplaythrough",this.AWt),this.on(this.ljt,"playing",this.TWt),this.on(this.ljt,"ended",this.SWt),this.on(this.ljt,"seeking",this.EWt),this.on(this.ljt,"seeked",this.RWt),this.on(this.ljt,"play",this.IWt),this.on(this.ljt,"firstplay",this.NWt),this.on(this.ljt,"pause",this.CWt),this.on(this.ljt,"durationchange",this.DWt),this.on(this.ljt,"fullscreenchange",this.PWt),this.on(this.ljt,"error",this.BWt),this.on(this.ljt,"loadedmetadata",this.Vjt),this.on(this.ljt,"resize",this.Vjt),this.on(this.ljt,"posterchange",this.xWt),this.on(this.ljt,"textdata",this.OWt),this.usingNativeControls(this.LWt("controls")),this.controls()&&!this.usingNativeControls()&&this.MWt(),this.ljt.el().parentNode===this.contentEl()||"Html5"===e&&this.tag||h.insertElFirst(this.ljt.el(),this.contentEl()),this.tag&&(this.tag.player=null,this.tag=null)},r.prototype.Gjt=function(){this.Bm=this.videoTracks(),this.Om=this.textTracks(),this.Pm=this.audioTracks(),this.Kjt=L.default.textTracksToJson(this.ljt),this.cjt=!1,this.ljt.dispose(),this.ljt=!1},r.prototype.tech=function(e){if(e&&e.IWillNotUseThisInPlugins)return this.ljt;var r="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";throw u.window.alert(r),new y(r)},r.prototype.MWt=function(){this.jWt(),this.on(this.ljt,"mousedown",this.FWt),this.on(this.ljt,"touchstart",this.UWt),this.on(this.ljt,"touchmove",this.HWt),this.on(this.ljt,"touchend",this.XWt),this.on(this.ljt,"tap",this.VWt)},r.prototype.jWt=function(){this.off(this.ljt,"tap",this.VWt),this.off(this.ljt,"touchstart",this.UWt),this.off(this.ljt,"touchmove",this.HWt),this.off(this.ljt,"touchend",this.XWt),this.off(this.ljt,"mousedown",this.FWt)},r.prototype.Zjt=function(){if(this.triggerReady(),this.Bjt.volume&&this.WWt("setVolume",this.Bjt.volume),this.xWt(),this.DWt(),(this.src()||this.currentSrc())&&this.tag&&this.sjt.autoplay&&this.paused()){try{delete this.tag.poster}catch(e){(0,p.default)("deleting tag.poster throws in some browsers",e)}this.play()}},r.prototype.Jjt=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},r.prototype.hasStarted=function(e){return void 0!==e?(this.zWt!==e&&(this.zWt=e,e?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.zWt},r.prototype.IWt=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},r.prototype.pWt=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},r.prototype.bWt=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},r.prototype.AWt=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},r.prototype.TWt=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},r.prototype.EWt=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},r.prototype.RWt=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},r.prototype.NWt=function(){this.sjt.starttime&&(p.default.warn("Passing the `starttime` option to the player will be deprecated 
1in 6.0"),this.currentTime(this.sjt.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},r.prototype.CWt=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},r.prototype.SWt=function(){this.addClass("vjs-ended"),this.sjt.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},r.prototype.DWt=function(){this.duration(this.LWt("duration"))},r.prototype.FWt=function(e){0===e.button&&this.controls()&&(this.paused()?this.play():this.pause())},r.prototype.VWt=function(){this.userActive(!this.userActive())},r.prototype.UWt=function(){this.userWasActive=this.userActive()},r.prototype.HWt=function(){this.userWasActive&&this.reportUserActivity()},r.prototype.XWt=function(e){e.preventDefault()},r.prototype.WP=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},r.prototype.jjt=function(){this.reportUserActivity()},r.prototype.PWt=function(e,r){r&&this.isFullscreen(r.isFullscreen),this.trigger("fullscreenchange")},r.prototype.BWt=function(){var e=this.ljt.error();this.error(e)},r.prototype.OWt=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},r.prototype.getCache=function(){return this.Bjt},r.prototype.WWt=function(e,r){if(this.ljt&&!this.ljt.cjt)this.ljt.ready(function(){this[e](r)},!0);else try{this.ljt&&this.ljt[e](r)}catch(e){throw(0,p.default)(e),e}},r.prototype.LWt=function(e){if(this.ljt&&this.ljt.cjt)try{return this.ljt[e]()}catch(r){throw void 0===this.ljt[e]?(0,p.default)("Video.js: "+e+" method not defined for "+this.Yjt+" playback technology.",r):"TypeError"===r.name?((0,p.default)("Video.js: "+e+" unavailable on "+this.Yjt+" playback technology element.",r),this.ljt.cjt=!1):(0,p.default)(r),r}},r.prototype.play=function(){return this.src()||this.currentSrc()?this.WWt("play"):this.ljt.one("loadstart",function(){this.play()}),this},r.prototype.pause=function(){return this.WWt("pause"),this},r.prototype.paused=function(){return!1!==this.LWt("paused")},r.prototype.scrubbing=function(e){return void 0!==e?(this.Ojt=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.Ojt},r.prototype.currentTime=function(e){return void 0!==e?(this.WWt("setCurrentTime",e),this):(this.Bjt.currentTime=this.LWt("currentTime")||0,this.Bjt.currentTime)},r.prototype.duration=function(e){return void 0===e?void 0!==this.Bjt.duration?this.Bjt.duration:NaN:((e=E(e))<0&&(e=1/0),e!==this.Bjt.duration&&(this.Bjt.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},r.prototype.remainingTime=function(){return this.duration()-this.currentTime()},r.prototype.buffered=function(){var e=this.LWt("buffered");return e&&e.length||(e=(0,d.createTimeRange)(0,0)),e},r.prototype.bufferedPercent=function(){return(0,m.bufferedPercent)(this.buffered(),this.duration())},r.prototype.bufferedEnd=function(){var e=this.buffered(),r=this.duration(),s=e.end(e.length-1);return s>r&&(s=r),s},r.prototype.volume=function(e){var r=void 0;return void 0!==e?(r=b.max(0,b.min(1,E(e))),this.Bjt.volume=r,this.WWt("setVolume",r),this):A(r=E(this.LWt("volume")))?1:r},r.prototype.muted=function(e){return void 0!==e?(this.WWt("setMuted",e),this):this.LWt("muted")||!1},r.prototype.supportsFullScreen=function(){return this.LWt("supportsFullScreen")||!1},r.prototype.isFullscreen=function(e){return void 0!==e?(this.cP=!!e,this):!!this.cP},r.prototype.requestFullscreen=function(){var e=x.default;return this.isFullscreen(!0),e.requestFullscreen?(a.on(u.document,e.fullscreenchange,c.bind(this,function r(s){this.isFullscreen(u.document[e.fullscreenElement]),!1===this.isFullscreen()&&a.off(u.document,e.fullscreenchange,r),this.trigger("fullscreenchange")})),this.ijt[e.requestFullscreen]()):this.ljt.supportsFullScreen()?this.WWt("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},r.prototype.exitFullscreen=function(){var e=x.default;return this.isFullscreen(!1),e.requestFullscreen?u.document[e.exitFullscreen]():this.ljt.supportsFullScreen()?this.WWt("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},r.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=u.document.documentElement.style.overflow,a.on(u.document,"keydown",c.bind(this,this.fullWindowOnEscKey)),u.document.documentElement.style.overflow="hidden",h.addElClass(u.document.body,"vjs-full-window"),this.trigger("enterFullWindow")}
1,r.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},r.prototype.exitFullWindow=function(){this.isFullWindow=!1,a.off(u.document,"keydown",this.fullWindowOnEscKey),u.document.documentElement.style.overflow=this.docOrigOverflow,h.removeElClass(u.document.body,"vjs-full-window"),this.trigger("exitFullWindow")},r.prototype.canPlayType=function(e){for(var r=void 0,s=0,u=this.sjt.techOrder;s<u.length;s++){var a=(0,v.default)(u[s]),h=P.default.getTech(a);if(h||(h=o.default.getComponent(a)),h){if(h.isSupported()&&(r=h.canPlayType(e)))return r}else p.default.error('The "'+a+'" tech is undefined. Skipped browser support check for that tech.')}return""},r.prototype.selectSource=function(e){var r=this,s=this.sjt.techOrder.map(v.default).map(function(e){return[e,P.default.getTech(e)||o.default.getComponent(e)]}).filter(function(e){var r=e[0],s=e[1];return s?s.isSupported():(p.default.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),u=function(e,r,s){var o=void 0;return e.some(function(e){return r.some(function(r){if(o=s(e,r))return!0})}),o},a=function(e,s){var o=e[0];if(e[1].canPlaySource(s,r.sjt[o.toLowerCase()]))return{source:s,tech:o}};return(this.sjt.sourceOrder?u(e,s,function(e,r){return a(r,e)}):u(s,e,a))||!1},r.prototype.src=function(e){if(void 0===e)return this.LWt("src");var r=P.default.getTech(this.Yjt);return r||(r=o.default.getComponent(this.Yjt)),Array.isArray(e)?this.qWt(e):"string"==typeof e?this.src({src:e}):e instanceof w&&(e.type&&!r.canPlaySource(e,this.sjt[this.Yjt.toLowerCase()])?this.qWt([e]):(this.Bjt.sources=null,this.Bjt.source=e,this.Bjt.src=e.src,this.Qjt=e.type||"",this.ready(function(){r.prototype.hasOwnProperty("setSource")?this.WWt("setSource",e):this.WWt("src",e.src),"auto"===this.sjt.preload&&this.load(),this.sjt.autoplay&&this.play()},!0))),this},r.prototype.qWt=function(e){var r=this.selectSource(e);r?(r.tech===this.Yjt?this.src(r.source):this.qjt(r.tech,r.source),this.Bjt.sources=e):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.sjt.notSupportedMessage)})},0),this.triggerReady())},r.prototype.load=function(){return this.WWt("load"),this},r.prototype.reset=function(){return this.qjt((0,v.default)(this.sjt.techOrder[0]),null),this.WWt("reset"),this},r.prototype.currentSources=function(){var e=this.currentSource(),r
1=[];return 0!==w.keys(e).length&&r.push(e),this.Bjt.sources||r},r.prototype.currentSource=function(){var e={},r=this.currentSrc();return r&&(e.src=r),this.Bjt.source||e},r.prototype.currentSrc=function(){return this.LWt("currentSrc")||this.Bjt.src||""},r.prototype.currentType=function(){return this.Qjt||""},r.prototype.preload=function(e){return void 0!==e?(this.WWt("setPreload",e),this.sjt.preload=e,this):this.LWt("preload")},r.prototype.autoplay=function(e){return void 0!==e?(this.WWt("setAutoplay",e),this.sjt.autoplay=e,this):this.LWt("autoplay",e)},r.prototype.playsinline=function(e){return void 0!==e?(this.WWt("setPlaysinline",e),this.sjt.playsinline=e,this):this.LWt("playsinline")},r.prototype.loop=function(e){return void 0!==e?(this.WWt("setLoop",e),this.sjt.loop=e,this):this.LWt("loop")},r.prototype.poster=function(e){return void 0===e?this.qF:(e||(e=""),this.qF=e,this.WWt("setPoster",e),this.trigger("posterchange"),this)},r.prototype.xWt=function(){!this.qF&&this.ljt&&this.ljt.poster&&(this.qF=this.ljt.poster()||"",this.trigger("posterchange"))},r.prototype.controls=function(e){return void 0!==e?(e=!!e,this.xjt!==e&&(this.xjt=e,this.usingNativeControls()&&this.WWt("setControls",e),e?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.MWt()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.jWt())),this):!!this.xjt},r.prototype.usingNativeControls=function(e){return void 0!==e?(e=!!e,this.GWt!==e&&(this.GWt=e,e?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.GWt},r.prototype.error=function(e){return void 0===e?this.Lh||null:(null===e?(this.Lh=e,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close()):(this.Lh=new T.default(e),this.addClass("vjs-error"),p.default.error("(CODE:"+this.Lh.code+" "+T.default.errorTypes[this.Lh.code]+")",this.Lh.message,this.Lh),this.trigger("error")),this)},r.prototype.reportUserActivity=function(e){this.YWt=!0},r.prototype.userActive=function(e){return void 0!==e?((e=!!e)!==this.$Wt&&(this.$Wt=e,e?(this.YWt=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.YWt=!1,this.ljt&&this.ljt.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.$Wt},r.prototype.Mjt=function(){var e=void 0,r=void 0,s=void 0,o=c.bind(this,this.reportUserActivity);this.on("mousedown",function(){o(),this.clearInterval(e),e=this.setInterval(o,250)}),this.on("mousemove",function(e){e.screenX===r&&e.screenY===s||(r=e.screenX,s=e.screenY,o())}),this.on("mouseup",function(r){o(),this.clearInterval(e)}),this.on("keydown",o),this.on("keyup",o);var u=void 0;this.setInterval(function(){if(this.YWt){this.YWt=!1,this.userActive(!0),this.clearTimeout(u);var e=this.sjt.inactivityTimeout;e>0&&(u=this.setTimeout(function(){this.YWt||this.userActive(!1)},e))}},250)},r.prototype.playbackRate=function(e){return void 0!==e?(this.WWt("setPlaybackRate",e),this):this.ljt&&this.ljt.featuresPlaybackRate?this.LWt("playbackRate"):1},r.prototype.isAudio=function(e){return void 0!==e?(this.QWt=!!e,this):!!this.QWt},r.prototype.videoTracks=function(){return this.ljt?this.ljt.videoTracks():(this.Bm=this.Bm||new N.default,this.Bm)},r.prototype.audioTracks=function(){return this.ljt?this.ljt.audioTracks():(this.Pm=this.Pm||new I.default,this.Pm)},r.prototype.textTracks=function(){if(this.ljt)return this.ljt.textTracks()},r.prototype.remoteTextTracks=function(){if(this.ljt)return this.ljt.remoteTextTracks()},r.prototype.remoteTextTrackEls=function(){if(this.ljt)return this.ljt.remoteTextTrackEls()},r.prototype.addTextTrack=function(e,r,s){if(this.ljt)return this.ljt.addTextTrack(e,r,s)},r.prototype.addRemoteTextTrack=function(e,r){if(this.ljt)return this.ljt.addRemoteTextTrack(e,r)},r.prototype.removeRemoteTextTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.track,s=void 0===r?arguments[0]:r;if(this.ljt)return this.ljt.removeRemoteTextTrack(s)},r.prototype.getVideoPlaybackQuality=function(){return this.LWt("getVideoPlaybackQuality")},r.prototype.videoWidth=function(){return this.ljt&&this.ljt.videoWidth&&this.ljt.videoWidth()||0},r.prototype.videoHeight=function(){return this.ljt&&this.ljt.videoHeight&&this.ljt.videoHeight()||0},r.prototype.language=function(e){return void 0===e?this.dw:(this.dw=String(e).toLowerCase(),this)},r.prototype.languages=function(){return(0,R.default)(r.prototype.sjt.languages,this.Pjt)},r.prototype.toJSON=function(){var e=(0,R.default)(this.sjt),r=e.tracks;e.tracks=[];for(var s=0;s<r.length;s++){var o=r[s];(o=(0,R.default)(o)).player=void 0,e.tracks[s]=o}return e},r.prototype.createModal=function(e,r){var s=this;(r=r||{}).content=e||"";var o=new _.default(this,r);return this.addChild(o),o.on("dispose",function(){s.removeChild(o)}),o.open()},r.getTagSettings=function(e){var r={sources:[],tracks:[]},s=h.getElAttributes(e),o=s["data-setup"];if(h.hasElClass(e,"vjs-fluid")&&(s.fluid=!0),null!==o){var u=(0,C.default)(o||"{}"),a=u[0],c=u[1];a&&p.default.error(a),(0,S.assign)(s,c)}if((0,S.assign)(r,s),e.hasChildNodes())for(var f=e.childNodes,l=0,v=f.length;l<v;l++){var d=f[l],y=d.nodeName.toLowerCase();"source"===y?r.sources.push(h.getElAttributes(d)):"track"===y&&r.tracks.push(h.getElAttributes(d))}return r},r.prototype.Ljt=function(){var e=u.document.createElement("i");
1return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},r}(o.default);M.players={};var F=u.window.navigator;M.prototype.sjt={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:F&&(F.languages&&F.languages[0]||F.userLanguage||F.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){M.prototype[e]=function(){return this.LWt(e)}}),U.forEach(function(e){M.prototype["handleTech"+(0,v.default)(e)+"_"]=function(){return this.trigger(e)}}),o.default.registerComponent("Player",M),s.default=M},{1:1,116:116,4:4,41:41,44:44,45:45,46:46,5:5,50:50,55:55,59:59,60:60,61:61,62:62,63:63,68:68,69:69,71:71,76:76,78:78,79:79,8:8,81:81,82:82,83:83,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:92}],52:[function(e,r,s){s.__esModule=!0;var o=e(51),u=o&&o.__esModule?o:{default:o};s.default=function(e,r){u.default.prototype[e]=r}},{51:51}],53:[function(e,r,s){s.__esModule=!0;var o=a(e(3)),u=a(e(5));function a(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function r(s){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.update(),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.update=function(){var e=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=e,this.addChild(e),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},r.prototype.createPopup=function(){},r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},r.prototype.buildCSSClass=function(){var r="vjs-menu-button";return!0===this.sjt.inline?r+="-inline":r+="-popup","vjs-menu-button "+r+" "+e.prototype.buildCSSClass.call(this)},r}(o.default);u.default.registerComponent("PopupButton",h),s.default=h},{3:3,5:5}],54:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o},a=f(e(81)),h=f(e(83)),c=f(e(82));function f(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}var l=function(e){function r(){return function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.apply(this,arguments))}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.addItem=function(e){this.addChild(e),e.on("click",h.bind(this,function(){this.unlockShowing()}))},r.prototype.createEl=function(){var r=this.sjt.contentElType||"ul";this.hjt=a.createEl(r,{className:"vjs-menu-content"});var s=e.prototype.createEl.call(this,"div",{append:this.hjt,className:"vjs-menu"});return s.appendChild(this.hjt),c.on(s,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),s},r}(u.default);u.default.registerComponent("Popup",l),s.default=l},{5:5,81:81,82:82,83:83}],55:[function(e,r,s){s.__esModule=!0;var o=l(e(3)),u=l(e(5)),a=f(e(83)),h=f(e(81)),c=f(e(78));
1function f(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function l(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.update(),s.on("posterchange",a.bind(u,u.update)),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},r.prototype.createEl=function(){var e=h.createEl("div",{className:"vjs-poster",tabIndex:-1});return c.BACKGROUND_SIZE_SUPPORTED||(this.ZWt=h.createEl("img"),e.appendChild(this.ZWt)),e},r.prototype.update=function(e){var r=this.player().poster();this.setSrc(r),r?this.show():this.hide()},r.prototype.setSrc=function(e){if(this.ZWt)this.ZWt.src=e;else{var r="";e&&(r='url("'+e+'")'),this.ijt.style.backgroundImage=r}},r.prototype.handleClick=function(e){this.sC.controls()&&(this.sC.paused()?this.sC.play():this.sC.pause())},r}(o.default);u.default.registerComponent("PosterImage",p),s.default=p},{3:3,5:5,78:78,81:81,83:83}],56:[function(e,r,s){s.__esModule=!0,s.hasLoaded=s.autoSetupTimeout=s.autoSetup=void 0;var o=h(e(81)),u=h(e(82)),a=e(85);function h(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}var c=!1,f=void 0,l=function(){if(o.isReal()){var e=a.document.getElementsByTagName("video"),r=a.document.getElementsByTagName("audio"),s=[];if(e&&e.length>0)for(var u=0,h=e.length;u<h;u++)s.push(e[u]);if(r&&r.length>0)for(var l=0,v=r.length;l<v;l++)s.push(r[l]);if(s&&s.length>0)for(var d=0,y=s.length;d<y;d++){var g=s[d];if(!g||!g.getAttribute){p(1);break}void 0===g.player&&null!==g.getAttribute("data-setup")&&f(g)}else c||p(1)}};function p(e,r){r&&(f=r),a.window.setTimeout(l,e)}o.isReal()&&"complete"===a.document.readyState?c=!0:u.one(a.window,"load",function(){c=!0}),s.autoSetup=l,s.autoSetupTimeout=p,s.hasLoaded=function(){return c}},{81:81,82:82,85:85}],57:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(81)),h=e(89),c=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.bar=u.getChild(u.sjt.barName),u.vertical(!!u.sjt.vertical),u.on("mousedown",u.handleMouseDown),u.on("touchstart",u.handleMouseDown),u.on("focus",u.handleFocus),u.on("blur",u.handleBlur),u.on("click",u.handleClick),u.on(s,"controlsvisible",u.update),u.on(s,u.playerEvent,u.update),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(r){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return s.className=s.className+" vjs-slider",s=(0,h.assign)({tabIndex:0},s),o=(0,h.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},o),e.prototype.createEl.call(this,r,s,o)},r.prototype.handleMouseDown=function(e){var r=this.bar.ijt.ownerDocument;e.preventDefault(),a.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(r,"mousemove",this.handleMouseMove),this.on(r,"mouseup",this.handleMouseUp),this.on(r,"touchmove",this.handleMouseMove),this.on(r,"touchend",this.handleMouseUp),this.handleMouseMove(e)},r.prototype.handleMouseMove=function(e){},r.prototype.handleMouseUp=function(){var e=this.bar.ijt.ownerDocument;a.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},r.prototype.update=function(){if(this.ijt){var e=this.getPercent(),r=this.bar;if(r){("number"!=typeof e||e!=e||e<0||e===1/0)&&(e=0);var s=(100*e).toFixed(2)+"%";this.vertical()?r.el().style.height=s:r.el().style.width=s}}},r.prototype.calculateDistance=function(e){var r=a.getPointerPosition(this.ijt,e);return this.vertical()?r.y:r.x},r.prototype.handleFocus=function(){this.on(this.bar.ijt.ownerDocument,"keydown",this.handleKeyPress)},r.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},r.prototype.handleBlur=function(){this.off(this.bar.ijt.ownerDocument,"keydown",this.handleKeyPress)},r.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},r.prototype.vertical=function(e){return void 0===e?this.jp||!1:(this.jp=!!e,this.jp?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},r}(u.default);u.default.registerComponent("Slider",c),s.default=c},{5:5,81:81,89:89}],58:[function(e,r,s){s.__esModule=!0,s.default=function(e){return e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},e.streamFromParts=function(e,r){return e+"&"+r},e.streamToParts=function(e){var r={connection:"",stream:""};if(!e)return r;var s=e.search(/&(?!\w+=)/),o=void 0;return -1!==s?o=s+1:0===(s=o=e.lastIndexOf("/")+1)&&(s=o=e.length),r.connection=e.substring(0,s),r.stream=e.substring(o,e.length),r},e.isStreamingType=function(r){return r in e.streamingFormats},e.RTMP_RE=/^rtmp[set]?:\/\//i,e.isStreamingSrc=function(r){return e.RTMP_RE.test(r)},e.rtmpSourceHandler={},e.rtmpSourceHandler.canPlayType=function(r){return e.isStreamingType(r)?"maybe":""},e.rtmpSourceHandler.canHandleSource=function(r,s){return e.rtmpSourceHandler.canPlayType(r.type)||(e.isStreamingSrc(r.src)?"maybe":"")},e.rtmpSourceHandler.handleSource=function(r,s,o){var u=e.streamToParts(r.src);s.setRtmpConnection(u.connection),s.setRtmpStream(u.stream)},e.registerSourceHandler(e.rtmpSourceHandler),e}},{}],59:[function(e,r,s){s.__esModule=!0;var o=d(e(62)),u=v(e(81)),a=v(e(93)),h=e(91),c=d(e(58)),f=d(e(5)),l=e(85),p=e(89);
1function v(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function d(e){return e&&e.__esModule?e:{default:e}}var y=l.window.navigator,m=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return s.source&&u.ready(function(){this.setSource(s.source)},!0),s.startTime&&u.ready(function(){this.load(),this.play(),this.currentTime(s.startTime)},!0),l.window.videojs=l.window.videojs||{},l.window.videojs.Flash=l.window.videojs.Flash||{},l.window.videojs.Flash.onReady=r.onReady,l.window.videojs.Flash.onEvent=r.onEvent,l.window.videojs.Flash.onError=r.onError,u.on("seeked",function(){this.KWt=void 0}),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.createEl=function(){var e=this.sjt;e.swf||(e.swf="//vjs.zencdn.net/swf/5.4.1/video-js.swf");var s=e.techId,o=(0,p.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:e.autoplay,preload:e.preload,loop:e.loop,muted:e.muted},e.flashVars),u=(0,p.assign)({wmode:"opaque",bgcolor:"#000000"},e.params),a=(0,p.assign)({id:s,name:s,class:"vjs-tech"},e.attributes);return this.ijt=r.embed(e.swf,o,u,a),this.ijt.tech=this,this.ijt},r.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.ijt.vjs_play()},r.prototype.pause=function(){this.ijt.vjs_pause()},r.prototype.src=function(e){return void 0===e?this.currentSrc():this.setSrc(e)},r.prototype.setSrc=function(e){var r=this;e=a.getAbsoluteURL(e),this.ijt.vjs_src(e),this.autoplay()&&this.setTimeout(function(){return r.play()},0)},r.prototype.seeking=function(){return void 0!==this.KWt},r.prototype.setCurrentTime=function(r){var s=this.seekable();s.length&&(r=(r=r>s.start(0)?r:s.start(0))<s.end(s.length-1)?r:s.end(s.length-1),this.KWt=r,this.trigger("seeking"),this.ijt.vjs_setProperty("currentTime",r),e.prototype.setCurrentTime.call(this))},r.prototype.currentTime=function(){return this.seeking()?this.KWt||0:this.ijt.vjs_getProperty("currentTime")},r.prototype.currentSrc=function(){return this.np?this.np.src:this.ijt.vjs_getProperty("currentSrc")},r.prototype.duration=function(){if(0===this.readyState())return NaN;var e=this.ijt.vjs_getProperty("duration");return e>=0?e:1/0},r.prototype.load=function(){this.ijt.vjs_load()},r.prototype.poster=function(){this.ijt.vjs_getProperty("poster")},r.prototype.setPoster=function(){},r.prototype.seekable=function(){var e=this.duration();return 0===e?(0,h.createTimeRange)():(0,h.createTimeRange)(0,e)},r.prototype.buffered=function(){var e=this.ijt.vjs_getProperty("buffered");return 0===e.length?(0,h.createTimeRange)():(0,h.createTimeRange)(e[0][0],e[0][1])},r.prototype.supportsFullScreen=function(){return!1},r.prototype.enterFullScreen=function(){return!1},r.prototype.getVideoPlaybackQuality=function(){var e=this.ijt.vjs_getProperty("getVideoPlaybackQuality");return l.window.performance&&"function"==typeof l.window.performance.now?e.creationTime=l.window.performance.now():l.window.performance&&l.window.performance.timing&&"number"==typeof l.window.performance.timing.navigationStart&&(e.creationTime=l.window.Date.now()-l.window.performance.timing.navigationStart),e},r}(o.default),b=m.prototype,k="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),E="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(",");function A(e){b[e]=function(){return this.ijt.vjs_getProperty(e)}}for(var x=0;x<k.length;x++)A(k[x]),function(e){b["set"+(e.charAt(0).toUpperCase()+e.slice(1))]=function(r){return this.ijt.vjs_setProperty(e,r)}}(k[x]);for(var T=0;T<E.length;T++)A(E[T]);m.isSupported=function(){return m.version()[0]>=10},o.default.withSourceHandlers(m),m.nativeSourceHandler={},m.nativeSourceHandler.canPlayType=function(e){return e in m.formats?"maybe":""},m.nativeSourceHandler.canHandleSource=function(e,r){var s,o,u=void 0;return u=e.type?e.type.replace(/;.*/,"").toLowerCase():(s=e.src,(o=a.getFileExtension(s))?"video/"+o:""),m.nativeSourceHandler.canPlayType(u)},m.nativeSourceHandler.handleSource=function(e,r,s){r.setSrc(e.src)},m.nativeSourceHandler.dispose=function(){},m.registerSourceHandler(m.nativeSourceHandler),m.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},m.onReady=function(e){var r=u.getEl(e),s=r&&r.tech;s&&s.el()&&m.checkReady(s)},m.checkReady=function(e){e.el()&&(e.el().vjs_getProperty?e.triggerReady():this.setTimeout(function(){m.checkReady(e)},50))},m.onEvent=function(e,r){var s=u.getEl(e).tech,o=Array.prototype.slice.call(arguments,2);s.setTimeout(function(){s.trigger(r,o)},1)},m.onError=function(e,r){var s=u.getEl(e).tech;if("srcnotfound"===r)return s.error(4);s.error("FLASH: "+r)},m.version=function(){var e="0,0,0";try{e=new l.window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(r){try{y.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(e=(y.plugins["Shockwave Flash 2.0"]||y.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(e){}}return e.split(",")},m.embed=function(e,r,s,o){var a=m.getEmbedCode(e,r,s,o);return u.createEl("div",{innerHTML:a}).childNodes[0]},m.getEmbedCode=function(e,r,s,o){var u="",a="",h="";return r&&w.getOwnPropertyNames(r).forEach(function(e){u+=e+"="+r[e]+"&amp;"}),s=(0,p.assign)({movie:e,flashvars:u,allowScriptAccess:"always",allowNetworking:"all"}
1,s),w.getOwnPropertyNames(s).forEach(function(e){a+='<param name="'+e+'" value="'+s[e]+'" />'}),o=(0,p.assign)({data:e,width:"100%",height:"100%"},o),w.getOwnPropertyNames(o).forEach(function(e){h+=e+'="'+o[e]+'" '}),'<object type="application/x-shockwave-flash" '+h+">"+a+"</object>"},(0,c.default)(m),f.default.registerComponent("Flash",m),o.default.registerTech("Flash",m),s.default=m},{5:5,58:58,62:62,81:81,85:85,89:89,91:91,93:93}],60:[function(e,r,s){s.__esModule=!0;var o,u=((o=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]).raw=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],o),a=A(e(62)),h=A(e(5)),c=E(e(81)),f=E(e(93)),l=E(e(83)),p=A(e(87)),v=A(e(121)),d=E(e(78)),y=e(85),m=e(89),b=A(e(88)),k=A(e(92));function E(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function A(e){return e&&e.__esModule?e:{default:e}}var x=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var a=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o)),h=s.source,c=!1;if(h&&(a.ijt.currentSrc!==h.src||s.tag&&3===s.tag.Xjt)?a.setSource(h):a.JWt(a.ijt),a.ijt.hasChildNodes()){for(var y=a.ijt.childNodes,m=y.length,w=[];m--;){var b=y[m];"track"===b.nodeName.toLowerCase()&&(a.featuresNativeTextTracks?(a.remoteTextTrackEls().tzt(b),a.remoteTextTracks().Gg(b.track),c||a.ijt.hasAttribute("crossorigin")||!f.isCrossOrigin(b.src)||(c=!0)):w.push(b))}for(var E=0;E<w.length;E++)a.ijt.removeChild(w[E])}return["audio","video"].forEach(function(e){var r=a.el()[e+"Tracks"],s=a[e+"Tracks"](),o=(0,k.default)(e);a["featuresNative"+o+"Tracks"]&&r&&r.addEventListener&&(a["handle"+o+"nzt"]=function(e){s.trigger({type:"change",target:s,currentTarget:s,srcElement:s})},a["handle"+o+"izt"]=function(e){return s.addTrack(e.track)},a["handle"+o+"rzt"]=function(e){return s.removeTrack(e.track)},r.addEventListener("change",a["handle"+o+"nzt"]),r.addEventListener("addtrack",a["handle"+o+"izt"]),r.addEventListener("removetrack",a["handle"+o+"rzt"]),a["removeOld"+o+"ezt"]=function(e){return a.szt(s,r)},a.on("loadstart",a["removeOld"+o+"ezt"]))}),a.featuresNativeTextTracks&&(c&&p.default.warn((0,v.default)(u)),a.uzt=l.bind(a,a.handleTextTrackChange),a.ozt=l.bind(a,a.handleTextTrackAdd),a.azt=l.bind(a,a.handleTextTrackRemove),a.hzt()),a.czt(),(d.TOUCH_ENABLED||d.IS_IPHONE||d.IS_NATIVE_ANDROID)&&!0===s.nativeControlsForTouch&&a.setControls(!0),a.fzt(),a.triggerReady(),a}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.dispose=function(){var s=this;["audio","video","text"].forEach(function(e){var r=(0,k.default)(e),o=s.ijt[e+"Tracks"];o&&o.removeEventListener&&(o.removeEventListener("change",s["handle"+r+"nzt"]),o.removeEventListener("addtrack",s["handle"+r+"izt"]),o.removeEventListener("removetrack",s["handle"+r+"rzt"])),o&&s.off("loadstart",s["removeOld"+r+"ezt"])}),r.disposeMediaElement(this.ijt),e.prototype.dispose.call(this)},r.prototype.czt=function(){var e=this.textTracks(),r=void 0,s=function(){r=[];for(var s=0;s<e.length;s++){var o=e[s];"metadata"===o.kind&&r.push({track:o,storedMode:o.mode})}};s(),e.addEventListener("change",s);var o=function s(){for(var o=0;o<r.length;o++){var u=r[o];"disabled"===u.track.mode&&u.track.mode!==u.storedMode&&(u.track.mode=u.storedMode)}e.removeEventListener("change",s)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",s),e.removeEventListener("change",o),e.addEventListener("change",o)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",s),e.addEventListener("change",s),e.removeEventListener("change",o)})},r.prototype.createEl=function(){var e=this.sjt.tag;if(!e||!this.sjt.playerElIngest&&!this.movingMediaElementInDOM){if(e){var s=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(s,e),r.disposeMediaElement(e),e=s}else{e=y.document.createElement("video");var o=this.sjt.tag&&c.getElAttributes(this.sjt.tag),u=(0,b.default)({},o);
1d.TOUCH_ENABLED&&!0===this.sjt.nativeControlsForTouch||delete u.controls,c.setElAttributes(e,(0,m.assign)(u,{id:this.sjt.techId,class:"vjs-tech"}))}e.playerId=this.sjt.playerId}void 0!==this.sjt.preload&&c.setAttribute(e,"preload",this.sjt.preload);for(var a=["loop","muted","playsinline","autoplay"],h=a.length-1;h>=0;h--){var f=a[h],l=this.sjt[f];void 0!==l&&(l?c.setAttribute(e,f,f):c.removeAttribute(e,f),e[f]=l)}return e},r.prototype.JWt=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var r=!1,s=function(){r=!0};this.on("loadstart",s);var o=function(){r||this.trigger("loadstart")};return this.on("loadedmetadata",o),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",o),r||this.trigger("loadstart")})}var u=["loadstart"];u.push("loadedmetadata"),e.readyState>=2&&u.push("loadeddata"),e.readyState>=3&&u.push("canplay"),e.readyState>=4&&u.push("canplaythrough"),this.ready(function(){u.forEach(function(e){this.trigger(e)},this)})}},r.prototype.hzt=function(){var e=this.el().textTracks;if(e){for(var r=0;r<e.length;r++)this.textTracks().Gg(e[r]);e.addEventListener&&(e.addEventListener("change",this.uzt),e.addEventListener("addtrack",this.ozt),e.addEventListener("removetrack",this.azt)),this.on("loadstart",this.vzt)}},r.prototype.handleTextTrackChange=function(e){var r=this.textTracks();this.textTracks().trigger({type:"change",target:r,currentTarget:r,srcElement:r})},r.prototype.handleTextTrackAdd=function(e){this.textTracks().Gg(e.track)},r.prototype.handleTextTrackRemove=function(e){this.textTracks().zg(e.track)},r.prototype.szt=function(e,r){var s=[];if(r){for(var o=0;o<e.length;o++){for(var u=e[o],a=!1,h=0;h<r.length;h++)if(r[h]===u){a=!0;break}a||s.push(u)}for(var c=0;c<s.length;c++){var f=s[c];e.zg(f)}}},r.prototype.vzt=function(e){var r=this.textTracks(),s=this.el().textTracks;this.szt(r,s)},r.prototype.play=function(){var e=this.ijt.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})},r.prototype.setCurrentTime=function(e){try{this.ijt.currentTime=e}catch(e){(0,p.default)(e,"Video is not ready. (Video.js)")}},r.prototype.duration=function(){var e=this;return this.ijt.duration===1/0&&d.IS_ANDROID&&d.IS_CHROME&&0===this.ijt.currentTime?(this.on("timeupdate",function r(){e.ijt.currentTime>0&&(e.ijt.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",r))}),NaN):this.ijt.duration||NaN},r.prototype.width=function(){return this.ijt.offsetWidth},r.prototype.height=function(){return this.ijt.offsetHeight},r.prototype.fzt=function(){var e=this;if("webkitDisplayingFullscreen"in this.ijt){var r=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},s=function(){"webkitPresentationMode"in this.ijt&&"picture-in-picture"!==this.ijt.webkitPresentationMode&&(this.one("webkitendfullscreen",r),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",function(){e.off("webkitbeginfullscreen",s),e.off("webkitendfullscreen",r)})}},r.prototype.supportsFullScreen=function(){if("function"==typeof this.ijt.webkitEnterFullScreen){var e=y.window.navigator&&y.window.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},r.prototype.enterFullScreen=function(){var e=this.ijt;e.paused&&e.networkState<=e.HAVE_METADATA?(this.ijt.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},r.prototype.exitFullScreen=function(){this.ijt.webkitExitFullScreen()},r.prototype.src=function(e){if(void 0===e)return this.ijt.src;this.setSrc(e)},r.prototype.reset=function(){r.resetMediaElement(this.ijt)},r.prototype.currentSrc=function(){return this.np?this.np.src:this.ijt.currentSrc},r.prototype.setControls=function(e){this.ijt.controls=!!e},r.prototype.addTextTrack=function(r,s,o){return this.featuresNativeTextTracks?this.ijt.addTextTrack(r,s,o):e.prototype.addTextTrack.call(this,r,s,o)},r.prototype.createRemoteTextTrack=function(r){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,r);var s=y.document.createElement("track");return r.kind&&(s.kind=r.kind),r.label&&(s.label=r.label),(r.language||r.srclang)&&(s.srclang=r.language||r.srclang),r.default&&(s.default=r.default),r.id&&
vendor: 1,202 bytes, line 1
1(s.id=r.id),r.src&&(s.src=r.src),s},r.prototype.addRemoteTextTrack=function(r,s){var o=e.prototype.addRemoteTextTrack.call(this,r,s);return this.featuresNativeTextTracks&&this.el().appendChild(o),o},r.prototype.removeRemoteTextTrack=function(r){if(e.prototype.removeRemoteTextTrack.call(this,r),this.featuresNativeTextTracks)for(var s=this.$$("track"),o=s.length;o--;)r!==s[o]&&r!==s[o].track||this.el().removeChild(s[o])},r.prototype.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),y.window.performance&&"function"==typeof y.window.performance.now?e.creationTime=y.window.performance.now():y.window.performance&&y.window.performance.timing&&"number"==typeof y.window.performance.timing.navigationStart&&(e.creationTime=y.window.Date.now()-y.window.performance.timing.navigationStart),e},r}(a.default);if(c.isReal()){x.TEST_VID=y.document.createElement("video");var T=y.document.createElement("track");
1T.kind="captions",T.srclang="en",T.label="English",x.TEST_VID.appendChild(T)}x.isSupported=function(){try{x.TEST_VID.volume=.5}catch(e){return!1}return!(!x.TEST_VID||!x.TEST_VID.canPlayType)},x.canControlVolume=function(){try{var e=x.TEST_VID.volume;return x.TEST_VID.volume=e/2+.1,e!==x.TEST_VID.volume}catch(e){return!1}},x.canControlPlaybackRate=function(){if(d.IS_ANDROID&&d.IS_CHROME&&d.CHROME_VERSION<58)return!1;try{var e=x.TEST_VID.playbackRate;return x.TEST_VID.playbackRate=e/2+.1,e!==x.TEST_VID.playbackRate}catch(e){return!1}},x.supportsNativeTextTracks=function(){return d.IS_ANY_SAFARI},x.supportsNativeVideoTracks=function(){return!(!x.TEST_VID||!x.TEST_VID.videoTracks)},x.supportsNativeAudioTracks=function(){return!(!x.TEST_VID||!x.TEST_VID.audioTracks)},x.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],x.prototype.featuresVolumeControl=x.canControlVolume(),x.prototype.featuresPlaybackRate=x.canControlPlaybackRate(),x.prototype.movingMediaElementInDOM=!d.IS_IOS,x.prototype.featuresFullscreenResize=!0,x.prototype.featuresProgressEvents=!0,x.prototype.featuresTimeupdateEvents=!0,x.prototype.featuresNativeTextTracks=x.supportsNativeTextTracks(),x.prototype.featuresNativeVideoTracks=x.supportsNativeVideoTracks(),x.prototype.featuresNativeAudioTracks=x.supportsNativeAudioTracks();var C=x.TEST_VID&&x.TEST_VID.constructor.prototype.canPlayType,S=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,R=/^video\/mp4/i;x.patchCanPlayType=function(){d.ANDROID_VERSION>=4&&!d.IS_FIREFOX?x.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&S.test(e)?"maybe":C.call(this,e)}:d.IS_OLD_ANDROID&&(x.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&R.test(e)?"maybe":C.call(this,e)})},x.unpatchCanPlayType=function(){var e=x.TEST_VID.constructor.prototype.canPlayType;return x.TEST_VID.constructor.prototype.canPlayType=C,e},x.patchCanPlayType(),x.disposeMediaElement=function(e){if(e){var r=e.nodeName.toLowerCase();if("video"===r||"audio"===r){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}}},x.resetMediaElement=function(e){if(e){for(var r=e.querySelectorAll("source"),s=r.length;s--;)e.removeChild(r[s]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){x.prototype[e]=function(){return this.ijt[e]||this.ijt.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){x.prototype["set"+(0,k.default)(e)]=function(r){this.ijt[e]=r,r?this.ijt.setAttribute(e,e):this.ijt.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){x.prototype[e]=function(){return this.ijt[e]}}),["volume","src","poster","preload","playbackRate"].forEach(function(e){x.prototype["set"+(0,k.default)(e)]=function(r){this.ijt[e]=r}}),["pause","load"].forEach(function(e){x.prototype[e]=function(){return this.ijt[e]()}}),a.default.withSourceHandlers(x),x.nativeSourceHandler={},x.nativeSourceHandler.canPlayType=function(e){try{return x.TEST_VID.canPlayType(e)}catch(e){return""}},x.nativeSourceHandler.canHandleSource=function(e,r){if(e.type)return x.nativeSourceHandler.canPlayType(e.type);if(e.src){var s=f.getFileExtension(e.src);return x.nativeSourceHandler.canPlayType("video/"+s)}return""},x.nativeSourceHandler.handleSource=function(e,r,s){r.setSrc(e.src)},x.nativeSourceHandler.dispose=function(){},x.registerSourceHandler(x.nativeSourceHandler),h.default.registerComponent("Html5",x),a.default.registerTech("Html5",x),s.default=x},{121:121,5:5,62:62,78:78,81:81,83:83,85:85,87:87,88:88,89:89,92:92,93:93}],61:[function(e,r,s){s.__esModule=!0;var o=h(e(5)),u=h(e(62)),a=h(e(92));
1function h(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function r(s,h,c){if(!(this instanceof r))throw new g("Cannot call a class as a function");var f=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,h,c));if(h.playerOptions.sources&&0!==h.playerOptions.sources.length)s.src(h.playerOptions.sources);else for(var l=0,p=h.playerOptions.techOrder;l<p.length;l++){var v=(0,a.default)(p[l]),d=u.default.getTech(v);if(v||(d=o.default.getComponent(v)),d&&d.isSupported()){s.qjt(v);break}}return f}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r}(o.default);o.default.registerComponent("MediaLoader",c),s.default=c},{5:5,62:62,92:92}],62:[function(e,r,s){s.__esModule=!0;var o=x(e(5)),u=x(e(66)),a=x(e(65)),h=x(e(88)),c=x(e(72)),f=x(e(70)),l=x(e(76)),p=x(e(63)),v=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83)),d=x(e(87)),m=e(91),b=e(79),k=x(e(46)),E=e(85),A=e(89);function x(e){return e&&e.__esModule?e:{default:e}}var T=function(e){function r(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};!function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}(this,r),s.reportTouchActivity=!1;var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,null,s,o));return u.zWt=!1,u.on("playing",function(){this.zWt=!0}),u.on("loadstart",function(){this.zWt=!1}),u.Om=s.textTracks,u.Bm=s.videoTracks,u.Pm=s.audioTracks,u.featuresProgressEvents||u.manualProgressOn(),u.featuresTimeupdateEvents||u.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===s["native"+e+"Tracks"]&&(u["featuresNative"+e+"Tracks"]=!1)}),!1===s.nativeCaptions&&(u.featuresNativeTextTracks=!1),u.featuresNativeTextTracks||u.emulateTextTracks(),u.dzt=new f.default,u.initTextTrackListeners(),u.initTrackListeners(),s.nativeControlsForTouch||u.emitTapEvents(),u.constructor&&(u.ds=u.constructor.name||"Unknown Tech"),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},r.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},r.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(v.bind(this,function(){var e=this.bufferedPercent();this.lzt!==e&&this.trigger("progress"),this.lzt=e,1===e&&this.stopTrackingProgress()}),500)},r.prototype.onDurationChange=function(e){this.ly=this.duration()},r.prototype.buffered=function(){return(0,m.createTimeRange)(0,0)},r.prototype.bufferedPercent=function(){return(0,b.bufferedPercent)(this.buffered(),this.ly)},r.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},r.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},r.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},r.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},r.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},r.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},r.prototype.clearTracks=function(e){var r=this;
1(e=[].concat(e)).forEach(function(e){for(var s=r[e+"Tracks"]()||[],o=s.length;o--;){var u=s[o];"text"===e&&r.removeRemoteTextTrack(u),s.zg(u)}})},r.prototype.cleanupAutoTextTracks=function(){for(var e=this.dzt||[],r=e.length;r--;){var s=e[r];this.removeRemoteTextTrack(s)}},r.prototype.reset=function(){},r.prototype.error=function(e){return void 0!==e&&(this.Lh=new k.default(e),this.trigger("error")),this.Lh},r.prototype.played=function(){return this.zWt?(0,m.createTimeRange)(0,0):(0,m.createTimeRange)()},r.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},r.prototype.initTextTrackListeners=function(){var e=v.bind(this,function(){this.trigger("texttrackchange")}),r=this.textTracks();r&&(r.addEventListener("removetrack",e),r.addEventListener("addtrack",e),this.on("dispose",v.bind(this,function(){r.removeEventListener("removetrack",e),r.removeEventListener("addtrack",e)})))},r.prototype.initTrackListeners=function(){var e=this;["video","audio"].forEach(function(r){var s=function(){e.trigger(r+"trackchange")},o=e[r+"Tracks"]();o.addEventListener("removetrack",s),o.addEventListener("addtrack",s),e.on("dispose",function(){o.removeEventListener("removetrack",s),o.removeEventListener("addtrack",s)})})},r.prototype._zt=function(){var e=this;if(!E.window.WebVTT)if(E.document.body.contains(this.el())){var r={};if(!this.sjt["vtt.js"]&&(0,A.isPlain)(r)&&w.keys(r).length>0)return void this.trigger("vttjsloaded");var s=E.document.createElement("script");s.src=this.sjt["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",s.onload=function(){e.trigger("vttjsloaded")},s.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){s.onload=null,s.onerror=null}),E.window.WebVTT=!0,this.el().parentNode.appendChild(s)}else this.ready(this._zt)},r.prototype.emulateTextTracks=function(){var e=this,r=this.textTracks();if(r){var s=this.remoteTextTracks(),o=function(e){return r.Gg(e.track)},u=function(e){return r.zg(e.track)};s.on("addtrack",o),s.on("removetrack",u),this._zt();var a=function(){return e.trigger("texttrackchange")},h=function(){a();for(var e=0;e<r.length;e++){var s=r[e];s.removeEventListener("cuechange",a),"showing"===s.mode&&s.addEventListener("cuechange",a)}};h(),r.addEventListener("change",h),r.addEventListener("addtrack",h),r.addEventListener("removetrack",h),this.on("dispose",function(){s.off("addtrack",o),s.off("removetrack",u),r.removeEventListener("change",h),r.removeEventListener("addtrack",h),r.removeEventListener("removetrack",h);for(var e=0;e<r.length;e++)r[e].removeEventListener("cuechange",a)})}},r.prototype.videoTracks=function(){return this.Bm=this.Bm||new l.default,this.Bm},r.prototype.audioTracks=function(){return this.Pm=this.Pm||new p.default,this.Pm},r.prototype.textTracks=function(){return this.Om=this.Om||new f.default,this.Om},r.prototype.remoteTextTracks=function(){return this.gzt=this.gzt||new f.default,this.gzt},r.prototype.remoteTextTrackEls=function(){return this.wzt=this.wzt||new a.default,this.wzt},r.prototype.addTextTrack=function(e,r,s){if(!e)throw new y("TextTrack kind is required but was not provided");return function(e,r,s,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=e.textTracks();u.kind=r,s&&(u.label=s),o&&(u.language=o),u.tech=e;var h=new c.default(u);return a.Gg(h),h}(this,e,r,s)},r.prototype.createRemoteTextTrack=function(e){var r=(0,h.default)(e,{tech:this});return new u.default(r)},r.prototype.addRemoteTextTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1],s=this.createRemoteTextTrack(e);return!0!==r&&!1!==r&&(d.default.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),r=!0),this.remoteTextTrackEls().tzt(s),this.remoteTextTracks().Gg(s.track),!0!==r&&this.dzt.Gg(s.track),s},r.prototype.removeRemoteTextTrack=function(e){var r=this.remoteTextTrackEls().pjt(e);this.remoteTextTrackEls().yzt(r),this.remoteTextTracks().zg(e),this.dzt.zg(e)},r.prototype.getVideoPlaybackQuality=function(){return{}},r.prototype.setPoster=function(){},r.prototype.playsinline=function(){},r.prototype.setPlaysinline=function(){},r.prototype.canPlayType=function(){return""},r.isTech=function(e){return e.prototype instanceof r||e instanceof r||e===r},r.registerTech=function(e,s){if(r.pzt||(r.pzt={}),!r.isTech(s))throw new y("Tech "+e+" must be a Tech");return r.pzt[e]=s,s},r.getTech=function(e){return r.pzt&&r.pzt[e]?r.pzt[e]:E.window&&E.window.videojs&&E.window.videojs[e]?(d.default.warn("The "+e+" tech w
1as added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),E.window.videojs[e]):void 0},r}(o.default);T.prototype.Om,T.prototype.Pm,T.prototype.Bm,T.prototype.featuresVolumeControl=!0,T.prototype.featuresFullscreenResize=!1,T.prototype.featuresPlaybackRate=!1,T.prototype.featuresProgressEvents=!1,T.prototype.featuresTimeupdateEvents=!1,T.prototype.featuresNativeTextTracks=!1,T.withSourceHandlers=function(e){e.registerSourceHandler=function(r,s){var o=e.sourceHandlers;o||(o=e.sourceHandlers=[]),void 0===s&&(s=o.length),o.splice(s,0,r)},e.canPlayType=function(r){for(var s=e.sourceHandlers||[],o=void 0,u=0;u<s.length;u++)if(o=s[u].canPlayType(r))return o;return""},e.selectSourceHandler=function(r,s){for(var o=e.sourceHandlers||[],u=0;u<o.length;u++)if(o[u].canHandleSource(r,s))return o[u];return null},e.canPlaySource=function(r,s){var o=e.selectSourceHandler(r,s);return o?o.canHandleSource(r,s):""},["seekable","duration"].forEach(function(e){var r=this[e];"function"==typeof r&&(this[e]=function(){return this.mzt&&this.mzt[e]?this.mzt[e].apply(this.mzt,arguments):r.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(r){var s=e.selectSourceHandler(r,this.sjt);return s||(e.nativeSourceHandler?s=e.nativeSourceHandler:d.default.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),s!==e.nativeSourceHandler&&(this.np=r,this.off(this.ijt,"loadstart",e.prototype.kzt),this.off(this.ijt,"loadstart",e.prototype.bzt),this.one(this.ijt,"loadstart",e.prototype.kzt)),this.mzt=s.handleSource(r,this,this.sjt),this.on("dispose",this.disposeSourceHandler),this},e.prototype.kzt=function(){this.one(this.ijt,"loadstart",e.prototype.bzt)},e.prototype.bzt=function(){this.disposeSourceHandler(),this.one(this.ijt,"loadstart",e.prototype.bzt)},e.prototype.disposeSourceHandler=function(){this.np&&(this.clearTracks(["audio","video"]),this.np=null),this.cleanupAutoTextTracks(),this.mzt&&(this.off(this.ijt,"loadstart",e.prototype.kzt),this.off(this.ijt,"loadstart",e.prototype.bzt),this.mzt.dispose&&this.mzt.dispose(),this.mzt=null)}},o.default.registerComponent("Tech",T),o.default.registerComponent("MediaTechController",T),T.registerTech("Tech",T),s.default=T},{46:46,5:5,63:63,65:65,66:66,70:70,72:72,76:76,79:79,83:83,85:85,87:87,88:88,89:89,91:91}],63:[function(e,r,s){s.__esModule=!0;var o=e(74),u=o&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(78)),h=e(85);function c(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}var f=function(e,r){for(var s=0;s<e.length;s++)r.id!==e[s].id&&(e[s].enabled=!1)};s.default=function(e){function r(){var s,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(this instanceof r))throw new g("Cannot call a class as a function");for(var l=void 0,p=o.length-1;p>=0;p--)if(o[p].enabled){f(o,o[p]);break}if(a.IS_IE8){for(var v in l=h.document.createElement("custom"),u.default.prototype)"constructor"!==v&&(l[v]=u.default.prototype[v]);for(var d in r.prototype)"constructor"!==d&&(l[d]=r.prototype[d])}return(l=s=c(this,e.call(this,o,l))).Azt=!1,c(s,l)}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.Gg=function(r){var s=this;r.enabled&&f(this,r),e.prototype.Gg.call(this,r),r.addEventListener&&r.addEventListener("enabledchange",function(){s.Azt||(s.Azt=!0,f(s,r),s.Azt=!1,s.trigger("change"))})},r.prototype.addTrack=function(e){this.Gg(e)},r.prototype.removeTrack=function(r){e.prototype.zg.call(this,r)},r}(u.default)},{74:74,78:78,85:85}],64:[function(e,r,s){s.__esModule=!0;
1var o=e(73),u=c(e(75)),a=c(e(88)),h=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(78));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}s.default=function(e){function r(){var s,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof r))throw new g("Cannot call a class as a function");var c=(0,a.default)(u,{kind:o.AudioTrackKind[u.kind]||""}),l=s=f(this,e.call(this,c)),p=!1;if(h.IS_IE8)for(var v in r.prototype)"constructor"!==v&&(l[v]=r.prototype[v]);return w.defineProperty(l,"enabled",{get:function(){return p},set:function(e){"boolean"==typeof e&&e!==p&&(p=e,this.trigger("enabledchange"))}}),c.enabled&&(l.enabled=c.enabled),l.v4=!0,f(s,l)}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r}(u.default)},{73:73,75:75,78:78,88:88}],65:[function(e,r,s){s.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(78)),u=e(85);s.default=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(this instanceof e))throw new g("Cannot call a class as a function");var s=this;if(o.IS_IE8)for(var a in s=u.document.createElement("custom"),e.prototype)"constructor"!==a&&(s[a]=e.prototype[a]);s.Tzt=[],w.defineProperty(s,"length",{get:function(){return this.Tzt.length}});for(var h=0,c=r.length;h<c;h++)s.tzt(r[h]);if(o.IS_IE8)return s}return e.prototype.tzt=function(e){var r=this.Tzt.length;""+r in this||w.defineProperty(this,r,{get:function(){return this.Tzt[r]}}),-1===this.Tzt.indexOf(e)&&this.Tzt.push(e)},e.prototype.pjt=function(e){for(var r=void 0,s=0,o=this.Tzt.length;s<o;s++)if(e===this.Tzt[s].track){r=this.Tzt[s];break}return r},e.prototype.yzt=function(e){for(var r=0,s=this.Tzt.length;r<s;r++)if(e===this.Tzt[r]){this.Tzt.splice(r,1);break}},e}()},{78:78,85:85}],66:[function(e,r,s){s.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(78)),u=e(85),a=c(e(42)),h=c(e(72));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}var l=function(e){function r(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof r))throw new g("Cannot call a class as a function");var a=f(this,e.call(this)),c=void 0,l=a;if(o.IS_IE8)for(var p in l=u.document.createElement("custom"),r.prototype)"constructor"!==p&&(l[p]=r.prototype[p]);var v=new h.default(s);return l.kind=v.kind,l.src=v.src,l.srclang=v.language,l.label=v.label,l.default=v.default,w.defineProperty(l,"readyState",{get:function(){return c}}),w.defineProperty(l,"track",{get:function(){return v}}),c=0,v.addEventListener("loadeddata",function(){c=2,l.trigger({type:"load",target:l})}),o.IS_IE8?f(a,l):a}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r}(a.default);l.prototype.kjt={load:"load"},l.NONE=0,l.LOADING=1,l.LOADED=2,l.ERROR=3,s.default=l},{42:42,72:72,78:78,85:85}],67:[function(e,r,s){s.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(78)),u=e(85);s.default=function(){function e(r){if(!(this instanceof e))throw new g("Cannot call a class as a function");var s=this;if(o.IS_IE8)for(var a in s=u.document.createElement("custom"),e.prototype)"constructor"!==a&&(s[a]=e.prototype[a]);if(e.prototype.Szt.call(s,r),w.defineProperty(s,"length",{get:function(){return this.Zg}}),o.IS_IE8)return s}return e.prototype.Szt=function(e){var r=this.length||0,s=0,o=e.length;this.Tw=e,this.Zg=e.length;var u=function(e){""+e in this||w.defineProperty(this,""+e,{get:function(){return this.Tw[e]}})};if(r<o)for(s=r;s<o;s++)u.call(this,s)},e.prototype.getCueById=function(e){for(var r=null,s=0,o=this.length;s<o;s++){var u=this[s];if(u.id===e){r=u;break}}return r},e}()},{78:78,85:85}],68:[function(e,r,s){s.__esModule=!0;var o=e(5),u=o&&o.__esModule?o:{default:o}
1,a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(83)),h=e(85),c={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function f(e,r){return"rgba("+k(e[1]+e[1],16)+","+k(e[2]+e[2],16)+","+k(e[3]+e[3],16)+","+r+")"}function l(e,r,s){try{e.style[r]=s}catch(e){return}}var p=function(e){function r(s,o,u){if(!(this instanceof r))throw new g("Cannot call a class as a function");var h=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o,u));return s.on("loadstart",a.bind(h,h.toggleDisplay)),s.on("texttrackchange",a.bind(h,h.updateDisplay)),s.ready(a.bind(h,function(){if(s.ljt&&s.ljt.featuresNativeTextTracks)this.hide();else{s.on("fullscreenchange",a.bind(this,this.updateDisplay));for(var e=this.sjt.playerOptions.tracks||[],r=0;r<e.length;r++)this.sC.addRemoteTextTrack(e[r],!0);var o={captions:1,subtitles:1},u=this.sC.textTracks(),h=void 0,c=void 0;if(u){for(var f=0;f<u.length;f++){var l=u[f];l.default&&("descriptions"!==l.kind||h?l.kind in o&&!c&&(c=l):h=l)}c?c.mode="showing":h&&(h.mode="showing")}}})),h}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.toggleDisplay=function(){this.sC.ljt&&this.sC.ljt.featuresNativeTextTracks?this.hide():this.show()},r.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},r.prototype.clearDisplay=function(){"function"==typeof h.window.WebVTT&&h.window.WebVTT.processCues(h.window,[],this.ijt)},r.prototype.updateDisplay=function(){var e=this.sC.textTracks();if(this.clearDisplay(),e){for(var r=null,s=null,o=e.length;o--;){var u=e[o];"showing"===u.mode&&("descriptions"===u.kind?r=u:s=u)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):r&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(r))}},r.prototype.updateForTrack=function(e){if("function"==typeof h.window.WebVTT&&e.activeCues){for(var r=this.sC.textTrackSettings.getValues(),s=[],o=0;o<e.activeCues.length;o++)s.push(e.activeCues[o]);h.window.WebVTT.processCues(h.window,s,this.ijt);for(var u=s.length;u--;){var a=s[u];if(a){var p=a.displayState;if(r.color&&(p.firstChild.style.color=r.color),r.textOpacity&&l(p.firstChild,"color",f(r.color||"#fff",r.textOpacity)),r.backgroundColor&&(p.firstChild.style.backgroundColor=r.backgroundColor),r.backgroundOpacity&&l(p.firstChild,"backgroundColor",f(r.backgroundColor||"#000",r.backgroundOpacity)),r.windowColor&&(r.windowOpacity?l(p,"backgroundColor",f(r.windowColor,r.windowOpacity)):p.style.backgroundColor=r.windowColor),r.edgeStyle&&("dropshadow"===r.edgeStyle?p.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===r.edgeStyle?p.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===r.edgeStyle?p.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===r.edgeStyle&&(p.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),r.fontPercent&&1!==r.fontPercent){var v=h.window.parseFloat(p.style.fontSize);p.style.fontSize=v*r.fontPercent+"px",p.style.height="auto",p.style.top="auto",p.style.bottom="2px"}r.fontFamily&&"default"!==r.fontFamily&&("small-caps"===r.fontFamily?p.firstChild.style.fontVariant="small-caps":p.firstChild.style.fontFamily=c[r.fontFamily])}}}},r}(u.default);u.default.registerComponent("TextTrackDisplay",p),s.default=p},{5:5,83:83,85:85}],69:[function(e,r,s){s.__esModule=!0;var o=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(r,s,o){return e[s]&&(r[s]=e[s]),r},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})};s.default={textTracksToJson:function(e){var r=e.$$("track"),s=Array.prototype.map.call(r,function(e){return e.track});return Array.prototype.map.call(r,function(e){var r=o(e.track);return e.src&&(r.src=e.src),r}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return -1===s.indexOf(e)}).map(o))},jsonToTextTracks:function(e,r){return e.forEach(function(e){var s=r.addRemoteTextTrack(e).track;
1!e.src&&e.cues&&e.cues.forEach(function(e){return s.addCue(e)})}),r.textTracks()},Ezt:o}},{}],70:[function(e,r,s){s.__esModule=!0;var o=e(74),u=o&&o.__esModule?o:{default:o},a=f(e(83)),h=f(e(78)),c=e(85);function f(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function l(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}s.default=function(e){function r(){var s,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(this instanceof r))throw new g("Cannot call a class as a function");var a=void 0;if(h.IS_IE8){for(var f in a=c.document.createElement("custom"),u.default.prototype)"constructor"!==f&&(a[f]=u.default.prototype[f]);for(var p in r.prototype)"constructor"!==p&&(a[p]=r.prototype[p])}return s=l(this,e.call(this,o,a)),l(s,a=s)}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.Gg=function(r){e.prototype.Gg.call(this,r),r.addEventListener("modechange",a.bind(this,function(){this.trigger("change")}))},r}(u.default)},{74:74,78:78,83:83,85:85}],71:[function(e,r,s){s.__esModule=!0;var o=e(85),u=p(e(5)),a=e(81),h=l(e(83)),c=l(e(89)),f=p(e(87));function l(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function p(e){return e&&e.__esModule?e:{default:e}}var v=["#000","Black"],d=["#00F","Blue"],y=["#0FF","Cyan"],m=["#0F0","Green"],b=["#F0F","Magenta"],k=["#F00","Red"],E=["#FFF","White"],A=["#FF0","Yellow"],x=["1","Opaque"],T=["0.5","Semi-Transparent"],C=["0","Transparent"],S={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[v,E,k,m,d,A,b,y]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[x,T,C]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[E,v,k,m,d,A,b,y]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[x,T]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[C,T,x]}};function R(e,r){if(r&&(e=r(e)),e&&"none"!==e)return e}S.windowColor.options=S.backgroundColor.options;var L=function(e){function r(s,o){if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=function(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}(this,e.call(this,s,o));return u.setDefaults(),u.hide(),u.updateDisplay=h.bind(u,u.updateDisplay),void 0===o.persistTextTrackSettings&&(u.sjt.persistTextTrackSettings=u.sjt.playerOptions.persistTextTrackSettings),u.on(u.$(".vjs-done-button"),"click",function(){u.saveSettings(),u.hide()}),u.on(u.$(".vjs-default-button"),"click",function(){u.setDefaults(),u.updateDisplay()}),c.each(S,function(e){u.on(u.$(e.selector),"change",u.updateDisplay)}),u.sjt.persistTextTrackSettings&&u.restoreSettings(),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.Rzt=function(e){var r=this,s=S[e],o=s.id.replace("%s",this.hw);return[(0,a.createEl)("label",{className:"vjs-label",textContent:s.label},{for:o}),(0,a.createEl)("select",{id:o},void 0,s.options.map(function(e){return(0,a.createEl)("option",{textContent:r.localize(e[1]),value:e[0]})}))]},r.prototype.Izt=function(){var e=(0,a.createEl)("legend",{textContent:this.localize("Text")}),r=this.Rzt("color"),s=(0,a.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.Rzt("textOpacity"));return(0,a.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[e].concat(r,s))},r.prototype.Nzt=function(){var e=(0,a.createEl)("legend",{textContent:this.localize("Backgroun
1d")}),r=this.Rzt("backgroundColor"),s=(0,a.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.Rzt("backgroundOpacity"));return(0,a.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[e].concat(r,s))},r.prototype.Czt=function(){var e=(0,a.createEl)("legend",{textContent:this.localize("Window")}),r=this.Rzt("windowColor"),s=(0,a.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.Rzt("windowOpacity"));return(0,a.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[e].concat(r,s))},r.prototype.Dzt=function(){return(0,a.createEl)("div",{className:"vjs-tracksettings-colors"},void 0,[this.Izt(),this.Nzt(),this.Czt()])},r.prototype.Pzt=function(){var e=(0,a.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.Rzt("fontPercent")),r=(0,a.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.Rzt("edgeStyle")),s=(0,a.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.Rzt("fontFamily"));return(0,a.createEl)("div",{className:"vjs-tracksettings-font"},void 0,[e,r,s])},r.prototype.Bzt=function(){var e=(0,a.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),r=(0,a.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,a.createEl)("div",{className:"vjs-tracksettings-controls"},void 0,[e,r])},r.prototype.createEl=function(){var e=(0,a.createEl)("div",{className:"vjs-tracksettings"},void 0,[this.Dzt(),this.Pzt(),this.Bzt()]),r=(0,a.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.hw,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),s=(0,a.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.hw,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),o=(0,a.createEl)("div",void 0,{role:"document"},[r,s,e]);return(0,a.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":r.id,"aria-describedby":s.id},o)},r.prototype.getValues=function(){var e=this;return c.reduce(S,function(r,s,o){var u,a,h=(u=e.$(s.selector),a=s.parser,R(u.options[u.options.selectedIndex].value,a));return void 0!==h&&(r[o]=h),r},{})},r.prototype.setValues=function(e){var r=this;c.each(S,function(s,o){!function(e,r,s){if(r){for(var o=0;o<e.options.length;o++)if(R(e.options[o].value,s)===r){e.selectedIndex=o;break}}}(r.$(s.selector),e[o],s.parser)})},r.prototype.setDefaults=function(){var e=this;c.each(S,function(r){var s=r.hasOwnProperty("default")?r.default:0;e.$(r.selector).selectedIndex=s})},r.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(o.window.localStorage.getItem("vjs-text-track-settings"))}catch(e){f.default.warn(e)}e&&this.setValues(e)},r.prototype.saveSettings=function(){if(this.sjt.persistTextTrackSettings){var e=this.getValues();try{w.keys(e).length?o.window.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):o.window.localStorage.removeItem("vjs-text-track-settings")}catch(e){f.default.warn(e)}}},r.prototype.updateDisplay=function(){var e=this.sC.getChild("textTrackDisplay");e&&e.updateDisplay()},r}(u.default);u.default.registerComponent("TextTrackSettings",L),s.default=L},{5:5,81:81,83:83,85:85,87:87,89:89}],72:[function(e,r,s){s.__esModule=!0;var o=b(e(67)),u=m(e(83)),a=e(73),h=b(e(87)),c=e(85),f=b(e(75)),l=e(93),p=b(e(122)),v=b(e(88)),d=m(e(78));function m(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function b(e){return e&&e.__esModule?e:{default:e}}function k(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}var E=function(e,r){var s=new c.window.WebVTT.Parser(c.window,c.window.vttjs,c.window.WebVTT.StringDecoder()),o=[];s.oncue=function(e){r.addCue(e)},s.onparsingerror=function(e){o.push(e)},s.onflush=function(){r.trigger({type:"loadeddata",target:r})},s.parse(e),o.length>0&&(c.window.console&&c.window.console.groupCollapsed&&c.window.console.groupCollapsed("Text Track parsing errors for "+r.src),o.forEach(function(e){return h.default.error(e)}),c.window.console&&c.window.console.groupEnd&&c.window.console.groupEnd()),s.flush()},A=function(e,r){var s={uri:e},o=(0,l.isCrossOrigin)(e);o&&(s.cors=o),(0,p.default)(s,u.bind(this,function(e,s,o){if(e)return h.default.error(e,s);if(r.v4=!0,"function"!=typeof c.window.WebVTT){if(r.ljt){var u=function(){return E(o,r)};r.ljt.on("vttjsloaded",u),r.ljt.on("vttjserror",function(){h.default.error("vttjs failed to load, stopping trying to process "+r.src),r.ljt.off("vttjsloaded",u)})}}else E(o,r)}))},x=function(e){function r(){var s,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,r){if(!(e instanceof r))throw new g("Cannot call a class as a function")}
1(this,r),!h.tech)throw new y("A tech was not provided.");var c=(0,v.default)(h,{kind:a.TextTrackKind[h.kind]||"subtitles",language:h.language||h.srclang||""}),f=a.TextTrackMode[c.mode]||"disabled",l=c.default;"metadata"!==c.kind&&"chapters"!==c.kind||(f="hidden");var p=s=k(this,e.call(this,c));if(p.ljt=c.tech,d.IS_IE8)for(var m in r.prototype)"constructor"!==m&&(p[m]=r.prototype[m]);p.Tw=[],p.Ew=[];var b=new o.default(p.Tw),E=new o.default(p.Ew),x=!1,T=u.bind(p,function(){this.activeCues,x&&(this.trigger("cuechange"),x=!1)});return"disabled"!==f&&p.ljt.ready(function(){p.ljt.on("timeupdate",T)},!0),w.defineProperty(p,"default",{get:function(){return l},set:function(){}}),w.defineProperty(p,"mode",{get:function(){return f},set:function(e){var r=this;a.TextTrackMode[e]&&("showing"===(f=e)&&this.ljt.ready(function(){r.ljt.on("timeupdate",T)},!0),this.trigger("modechange"))}}),w.defineProperty(p,"cues",{get:function(){return this.v4?b:null},set:function(){}}),w.defineProperty(p,"activeCues",{get:function(){if(!this.v4)return null;if(0===this.cues.length)return E;for(var e=this.ljt.currentTime(),r=[],s=0,o=this.cues.length;s<o;s++){var u=this.cues[s];u.startTime<=e&&u.endTime>=e?r.push(u):u.startTime===u.endTime&&u.startTime<=e&&u.startTime+.5>=e&&r.push(u)}if(x=!1,r.length!==this.Ew.length)x=!0;else for(var a=0;a<r.length;a++)-1===this.Ew.indexOf(r[a])&&(x=!0);return this.Ew=r,E.Szt(this.Ew),E},set:function(){}}),c.src?(p.src=c.src,A(c.src,p)):p.v4=!0,k(s,p)}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.addCue=function(e){var r=e;if(c.window.vttjs&&!(e instanceof c.window.vttjs.VTTCue)){for(var s in r=new c.window.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)s in r||(r[s]=e[s]);r.id=e.id,r.xzt=e}var o=this.ljt.textTracks();if(o)for(var u=0;u<o.length;u++)o[u]!==this&&o[u].removeCue(r);this.Tw.push(r),this.cues.Szt(this.Tw)},r.prototype.removeCue=function(e){for(var r=this.Tw.length;r--;){var s=this.Tw[r];if(s===e||s.xzt&&s.xzt===e){this.Tw.splice(r,1),this.cues.Szt(this.Tw);break}}},r}(f.default);x.prototype.kjt={cuechange:"cuechange"},s.default=x},{122:122,67:67,73:73,75:75,78:78,83:83,85:85,87:87,88:88,93:93}],73:[function(e,r,s){s.__esModule=!0,s.VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},s.AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},s.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},s.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"}},{}],74:[function(e,r,s){s.__esModule=!0;var o=e(42),u=o&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(78)),h=e(85);function c(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}var f=function(e){function r(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(this instanceof r))throw new g("Cannot call a class as a function");var u=c(this,e.call(this));if(!o&&(o=u,a.IS_IE8))for(var f in o=h.document.createElement("custom"),r.prototype)"constructor"!==f&&(o[f]=r.prototype[f]);o.iT=[],w.defineProperty(o,"length",{get:function(){return this.iT.length}});for(var l=0;l<s.length;l++)o.Gg(s[l]);return c(u,o)}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.Gg=function(e){var r=this.iT.length;""+r in this||w.defineProperty(this,r,{get:function(){return this.iT[r]}}),-1===this.iT.indexOf(e)&&(this.iT.push(e),this.trigger({track:e,type:"addtrack"}))},r.prototype.zg=function(e){for(var r=void 0,s=0,o=this.length;s<o;s++)if(this[s]===e){(r=this[s]).off&&r.off(),this.iT.splice(s,1);break}r&&this.trigger({track:r,type:"removetrack"})},r.prototype.getTrackById=function(e){for(var r=null,s=0,o=this.length;s<o;s++){var u=this[s];if(u.id===e){r=u;break}}return r},r}(u.default);for(var l in f.prototype.kjt={change:"change",addtrack:"addtrack",removetrack:"removetrack"},f.prototype.kjt)f.prototype["on"+l]=null;s.default=f},{42:42,78:78,85:85}],75:[function(e,r,s){s.__esModule=!0;var o=c(e(78)),u=e(85),a=c(e(86)),h=e(42);
1function c(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function f(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}s.default=function(e){function r(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof r))throw new g("Cannot call a class as a function");var h=f(this,e.call(this)),c=h;if(o.IS_IE8)for(var l in c=u.document.createElement("custom"),r.prototype)"constructor"!==l&&(c[l]=r.prototype[l]);var p={id:s.id||["vjs_track",a.newGUID()].join("_"),kind:s.kind||"",label:s.label||"",language:s.language||""},v=function(e){w.defineProperty(c,e,{get:function(){return p[e]},set:function(){}})};for(var d in p)v(d);return f(h,c)}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r}((h&&h.__esModule?h:{default:h}).default)},{42:42,78:78,85:85,86:86}],76:[function(e,r,s){s.__esModule=!0;var o=e(74),u=o&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(78)),h=e(85);function c(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}var f=function(e,r){for(var s=0;s<e.length;s++)r.id!==e[s].id&&(e[s].selected=!1)};s.default=function(e){function r(){var s,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(this instanceof r))throw new g("Cannot call a class as a function");for(var l=void 0,p=o.length-1;p>=0;p--)if(o[p].selected){f(o,o[p]);break}if(a.IS_IE8){for(var v in l=h.document.createElement("custom"),u.default.prototype)"constructor"!==v&&(l[v]=u.default.prototype[v]);for(var d in r.prototype)"constructor"!==d&&(l[d]=r.prototype[d])}return(l=s=c(this,e.call(this,o,l))).Azt=!1,w.defineProperty(l,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return -1},set:function(){}}),c(s,l)}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r.prototype.Gg=function(r){var s=this;r.selected&&f(this,r),e.prototype.Gg.call(this,r),r.addEventListener&&r.addEventListener("selectedchange",function(){s.Azt||(s.Azt=!0,f(s,r),s.Azt=!1,s.trigger("change"))})},r.prototype.addTrack=function(e){this.Gg(e)},r.prototype.removeTrack=function(r){e.prototype.zg.call(this,r)},r}(u.default)},{74:74,78:78,85:85}],77:[function(e,r,s){s.__esModule=!0;var o=e(73),u=c(e(75)),a=c(e(88)),h=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(78));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,r){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&("object"==typeof r||"function"==typeof r)?r:e}s.default=function(e){function r(){var s,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof r))throw new g("Cannot call a class as a function");var c=(0,a.default)(u,{kind:o.VideoTrackKind[u.kind]||""}),l=s=f(this,e.call(this,c)),p=!1;if(h.IS_IE8)for(var v in r.prototype)"constructor"!==v&&(l[v]=r.prototype[v]);return w.defineProperty(l,"selected",{get:function(){return p},set:function(e){"boolean"==typeof e&&e!==p&&(p=e,this.trigger("selectedchange"))}}),c.selected&&(l.selected=c.selected),f(s,l)}return function(e,r){if("function"!=typeof r&&null!==r)throw new g("Super expression must either be null or a function, not "+typeof r);e.prototype=w.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(w.setPrototypeOf?w.setPrototypeOf(e,r):e.__proto__=r)}(r,e),r}(u.default)},{73:73,75:75,78:78,88:88}],78:[function(e,r,s){s.__esModule=!0,s.BACKGROUND_SIZE_SUPPORTED=s.TOUCH_ENABLED=s.IS_ANY_SAFARI=s.IS_SAFARI=s.IE_VERSION=s.IS_IE8=s.CHROME_VERSION=s.IS_CHROME=s.IS_EDGE=s.IS_FIREFOX=s.IS_NATIVE_ANDROID=s.IS_OLD_ANDROID=s.ANDROID_VERSION=s.IS_ANDROID=s.IOS_VERSION=s.IS_IOS=s.IS_IPOD=s.IS_IPHONE=s.IS_IPAD=void 0;
1var o,u,a,h,c=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(81)),f=e(85),l=f.window.navigator&&f.window.navigator.userAgent||"",p=/AppleWebKit\/([\d.]+)/i.exec(l),v=p?E(p.pop()):null,d=s.IS_IPAD=/iPad/i.test(l),y=s.IS_IPHONE=/iPhone/i.test(l)&&!d,g=s.IS_IPOD=/iPod/i.test(l),m=s.IS_IOS=y||d||g,b=(s.IOS_VERSION=(u=l.match(/OS (\d+)_/i))&&u[1]?u[1]:null,s.IS_ANDROID=/Android/i.test(l)),k=s.ANDROID_VERSION=function(){var e=l.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var r=e[1]&&E(e[1]),s=e[2]&&E(e[2]);return r&&s?E(e[1]+"."+e[2]):r||null}(),A=(s.IS_OLD_ANDROID=b&&/webkit/i.test(l)&&k<2.3,s.IS_NATIVE_ANDROID=b&&k<5&&v<537,s.IS_FIREFOX=/Firefox/i.test(l),s.IS_EDGE=/Edge/i.test(l)),x=s.IS_CHROME=!A&&/Chrome/i.test(l),T=(s.CHROME_VERSION=(o=l.match(/Chrome\/(\d+)/))&&o[1]?E(o[1]):null,s.IS_IE8=/MSIE\s8\.0/.test(l),!(h=(a=/MSIE\s(\d+)\.\d/.exec(l))&&E(a[1]))&&/Trident\/7.0/i.test(l)&&/rv:11.0/.test(l)&&(h=11),s.IE_VERSION=h,s.IS_SAFARI=/Safari/i.test(l)&&!x&&!b&&!A);s.IS_ANY_SAFARI=T||m,s.TOUCH_ENABLED=c.isReal()&&("ontouchstart"in f.window||f.window.DocumentTouch&&f.window.document instanceof f.window.DocumentTouch),s.BACKGROUND_SIZE_SUPPORTED=c.isReal()&&"backgroundSize"in f.window.document.createElement("video").style},{81:81,85:85}],79:[function(e,r,s){s.__esModule=!0,s.bufferedPercent=function(e,r){var s=0,u=void 0,a=void 0;if(!r)return 0;e&&e.length||(e=(0,o.createTimeRange)(0,0));for(var h=0;h<e.length;h++)u=e.start(h),(a=e.end(h))>r&&(a=r),s+=a-u;return s/r};var o=e(91)},{91:91}],80:[function(e,r,s){s.__esModule=!0,s.default=function(e,r){if(!e||!r)return"";if("function"==typeof o.window.getComputedStyle){var s=o.window.getComputedStyle(e);return s?s[r]:""}return e.currentStyle[r]||""};var o=e(85)},{85:85}],81:[function(e,r,s){s.__esModule=!0,s.$$=s.$=void 0;var o,u=((o=["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]).raw=["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],o);s.isReal=function(){return a.document===a.window.document&&void 0!==a.document.createElement},s.isEl=g,s.getEl=function(e){return 0===e.indexOf("#")&&(e=e.slice(1)),a.document.getElementById(e)},s.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments[3],h=a.document.createElement(e);return w.getOwnPropertyNames(r).forEach(function(e){var s=r[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(c.default.warn((0,f.default)(u,e,s)),h.setAttribute(e,s)):"textContent"===e?k(h,s):h[e]=s}),w.getOwnPropertyNames(s).forEach(function(e){h.setAttribute(e,s[e])}),o&&P(h,o),h},s.textContent=k,s.insertElFirst=function(e,r){r.firstChild?r.insertBefore(e,r.firstChild):r.appendChild(e)},s.getElData=function(e){var r=e[A];return r||(r=e[A]=h.newGUID()),E[r]||(E[r]={}),E[r]},s.hasElData=function(e){var r=e[A];return!!r&&!!w.getOwnPropertyNames(E[r]).length},s.removeElData=function(e){var r=e[A];if(r){delete E[r];try{delete e[A]}catch(r){e.removeAttribute?e.removeAttribute(A):e[A]=null}}},s.hasElClass=x,s.addElClass=T,s.removeElClass=C,s.toggleElClass=function(e,r,s){var o=x(e,r);if("function"==typeof s&&(s=s(e,r)),"boolean"!=typeof s&&(s=!o),s!==o)return s?T(e,r):C(e,r),e},s.setElAttributes=function(e,r){w.getOwnPropertyNames(r).forEach(function(s){var o=r[s];null==o||!1===o?e.removeAttribute(s):e.setAttribute(s,!0===o?"":o)})},s.getElAttributes=function(e){var r={};if(e&&e.attributes&&e.attributes.length>0)for(var s=e.attributes,o=s.length-1;o>=0;o--){var u=s[o].name,a=s[o].value;
1"boolean"!=typeof e[u]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+u+",")||(a=null!==a),r[u]=a}return r},s.getAttribute=function(e,r){return e.getAttribute(r)},s.setAttribute=function(e,r,s){e.setAttribute(r,s)},s.removeAttribute=function(e,r){e.removeAttribute(r)},s.blockTextSelection=function(){a.document.body.focus(),a.document.onselectstart=function(){return!1}},s.unblockTextSelection=function(){a.document.onselectstart=function(){return!0}},s.findElPosition=S,s.getPointerPosition=function(e,r){var s={},o=S(e),u=e.offsetWidth,a=e.offsetHeight,h=o.top,c=o.left,f=r.pageY,l=r.pageX;return r.changedTouches&&(l=r.changedTouches[0].pageX,f=r.changedTouches[0].pageY),s.y=b.max(0,b.min(1,(h-f+a)/a)),s.x=b.max(0,b.min(1,(l-c)/u)),s},s.isTextNode=R,s.emptyEl=L,s.normalizeContent=_,s.appendContent=P,s.insertContent=function(e,r){return P(L(e),r)};var a=e(85),h=function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}(e(86)),c=p(e(87)),f=p(e(121)),l=e(89);function p(e){return e&&e.__esModule?e:{default:e}}function v(e){return"string"==typeof e&&/\S/.test(e)}function d(e){if(/\s/.test(e))throw new y("class has illegal whitespace characters")}function g(e){return(0,l.isObject)(e)&&1===e.nodeType}function m(e){return function(r,s){if(!v(r))return a.document[e](null);v(s)&&(s=a.document.querySelector(s));var o=g(s)?s:a.document;return o[e]&&o[e](r)}}function k(e,r){return void 0===e.textContent?e.innerText=r:e.textContent=r,e}var E={},A="vdata"+(new Date).getTime();function x(e,r){return d(r),e.classList?e.classList.contains(r):RegExp("(^|\\s)"+r+"($|\\s)").test(e.className)}function T(e,r){return e.classList?e.classList.add(r):x(e,r)||(e.className=(e.className+" "+r).trim()),e}function C(e,r){return e.classList?e.classList.remove(r):(d(r),e.className=e.className.split(/\s+/).filter(function(e){return e!==r}).join(" ")),e}function S(e){var r=void 0;if(e.getBoundingClientRect&&e.parentNode&&(r=e.getBoundingClientRect()),!r)return{left:0,top:0};var s=a.document.documentElement,o=a.document.body,u=s.clientLeft||o.clientLeft||0,h=a.window.pageXOffset||o.scrollLeft,c=r.left+h-u,f=s.clientTop||o.clientTop||0,l=a.window.pageYOffset||o.scrollTop,p=r.top+l-f;return{left:b.round(c),top:b.round(p)}}function R(e){return(0,l.isObject)(e)&&3===e.nodeType}function L(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function _(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),g(e)||R(e)?e:"string"==typeof e&&/\S/.test(e)?a.document.createTextNode(e):void 0}).filter(function(e){return e})}function P(e,r){return _(r).forEach(function(r){return e.appendChild(r)}),e}s.$=m("querySelector"),s.$$=m("querySelectorAll")},{121:121,85:85,86:86,87:87,89:89}],82:[function(e,r,s){s.__esModule=!0,s.fixEvent=v,s.on=m,s.off=b,s.trigger=function e(r,s,u){var a=o.hasElData(r)?o.getElData(r):{},h=r.parentNode||r.ownerDocument;if("string"==typeof s&&(s={type:s,target:r}),s=v(s),a.dispatcher&&a.dispatcher.call(r,s,u),h&&!s.isPropagationStopped()&&!0===s.bubbles)e.call(null,h,s,u);else if(!h&&!s.defaultPrevented){var c=o.getElData(s.target);s.target[s.type]&&(c.disabled=!0,"function"==typeof s.target[s.type]&&s.target[s.type](),c.disabled=!1)}return!s.defaultPrevented},s.one=function e(r,s,o){if(Array.isArray(s))return p(e,r,s,o);var a=function e(){b(r,s,e),o.apply(this,arguments)};a.guid=o.guid=o.guid||u.newGUID(),m(r,s,a)};var o=f(e(81)),u=f(e(86)),a=e(87),h=a&&a.__esModule?a:{default:a},c=e(85);function f(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function l(e,r){var s=o.getElData(e);0===s.handlers[r].length&&(delete s.handlers[r],e.removeEventListener?e.removeEventListener(r,s.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+r,s.dispatcher)),w.getOwnPropertyNames(s.handlers).length<=0&&(delete s.handlers,delete s.dispatcher,delete s.disabled),0===w.getOwnPropertyNames(s).length&&o.removeElData(e)}
1function p(e,r,s,o){s.forEach(function(s){e(r,s,o)})}function v(e){function r(){return!0}function s(){return!1}if(!e||!e.isPropagationStopped){var o=e||c.window.event;for(var u in e={},o)"layerX"!==u&&"layerY"!==u&&"keyLocation"!==u&&"webkitMovementX"!==u&&"webkitMovementY"!==u&&("returnValue"===u&&o.preventDefault||(e[u]=o[u]));if(e.target||(e.target=e.srcElement||c.document),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){o.preventDefault&&o.preventDefault(),e.returnValue=!1,o.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){o.stopPropagation&&o.stopPropagation(),e.cancelBubble=!0,o.cancelBubble=!0,e.isPropagationStopped=r},e.isPropagationStopped=s,e.stopImmediatePropagation=function(){o.stopImmediatePropagation&&o.stopImmediatePropagation(),e.isImmediatePropagationStopped=r,e.stopPropagation()},e.isImmediatePropagationStopped=s,null!==e.clientX&&void 0!==e.clientX){var a=c.document.documentElement,h=c.document.body;e.pageX=e.clientX+(a&&a.scrollLeft||h&&h.scrollLeft||0)-(a&&a.clientLeft||h&&h.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||h&&h.scrollTop||0)-(a&&a.clientTop||h&&h.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var d=!1;try{var y=w.defineProperty({},"passive",{get:function(){d=!0}});c.window.addEventListener("test",null,y)}catch(e){}var g=["touchstart","touchmove"];function m(e,r,s){if(Array.isArray(r))return p(m,e,r,s);var a=o.getElData(e);if(a.handlers||(a.handlers={}),a.handlers[r]||(a.handlers[r]=[]),s.guid||(s.guid=u.newGUID()),a.handlers[r].push(s),a.dispatcher||(a.disabled=!1,a.dispatcher=function(r,s){if(!a.disabled){r=v(r);var o=a.handlers[r.type];if(o)for(var u=o.slice(0),c=0,f=u.length;c<f&&!r.isImmediatePropagationStopped();c++)try{u[c].call(e,r,s)}catch(e){h.default.error(e)}}}),1===a.handlers[r].length)if(e.addEventListener){var c=!1;d&&g.indexOf(r)>-1&&(c={passive:!0}),e.addEventListener(r,a.dispatcher,c)}else e.attachEvent&&e.attachEvent("on"+r,a.dispatcher)}function b(e,r,s){if(o.hasElData(e)){var u=o.getElData(e);if(u.handlers){if(Array.isArray(r))return p(b,e,r,s);var a=function(r){u.handlers[r]=[],l(e,r)};if(r){var h=u.handlers[r];if(h)if(s){if(s.guid)for(var c=0;c<h.length;c++)h[c].guid===s.guid&&h.splice(c--,1);l(e,r)}else a(r)}else for(var f in u.handlers)a(f)}}}},{81:81,85:85,86:86,87:87}],83:[function(e,r,s){s.__esModule=!0,s.throttle=s.bind=void 0;var o=e(86);s.bind=function(e,r,s){r.guid||(r.guid=(0,o.newGUID)());var u=function(){return r.apply(e,arguments)};return u.guid=s?s+"_"+r.guid:r.guid,u},s.throttle=function(e,r){var s=Date.now();return function(){var o=Date.now();o-s>=r&&(e.apply(void 0,arguments),s=o)}}},{86:86}],84:[function(e,r,s){s.__esModule=!0,s.default=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;e=e<0?0:e;var s=b.floor(e%60),o=b.floor(e/60%60),u=b.floor(e/3600),a=b.floor(r/60%60),h=b.floor(r/3600);return(A(e)||e===1/0)&&(u=o=s="-"),(u=u>0||h>0?u+":":"")+(o=((u||a>=10)&&o<10?"0"+o:o)+":")+(s=s<10?"0"+s:s)}},{}],85:[function(e,r,s){(function(e){s.__esModule=!0;var r=void 0!==h?h:{createElement:function(){}};s.window=void 0!==a?a:void 0!==e?e:void 0!==o?o:{},s.document=r}).call(this,void 0!==S?S:void 0!==o?o:void 0!==a?a:{})},{}],86:[function(e,r,s){s.__esModule=!0,s.newGUID=function(){return o++};var o=1},{}],87:[function(e,r,s){s.__esModule=!0,s.logByType=void 0;var o=e(85),u=e(78),a=e(89),h=void 0,c=s.logByType=function(e,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!u.IE_VERSION&&u.IE_VERSION<11;"log"!==e&&r.unshift(e.toUpperCase()+":"),h.history.push(r),r.unshift("VIDEOJS:");var c=o.window.console&&o.window.console[e];c&&(s&&(r=r.map(function(e){if((0,a.isObject)(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(e){}return String(e)}).join(" ")),c.apply?c[Array.isArray(r)?"apply":"call"](o.window.console,r):c(r))};(h=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];c("log",r)}).history=[],h.error=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return c("error",r)},h.warn=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return c("warn",r)},s.default=h},{78:78,85:85,89:89}],88:[function(e,r,s){s.__esModule=!0,s.default=function e(){for(var r={},s=arguments.length,u=Array(s),a=0;a<s;a++)u[a]=arguments[a];
1return u.forEach(function(s){s&&(0,o.each)(s,function(s,u){(0,o.isPlain)(s)?((0,o.isPlain)(r[u])||(r[u]={}),r[u]=e(r[u],s)):r[u]=s})}),r};var o=e(89)},{89:89}],89:[function(e,r,s){s.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};s.each=h,s.reduce=function(e,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return a(e).reduce(function(s,o){return r(s,e[o],o)},s)},s.assign=function(e){for(var r=arguments.length,s=Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];return w.assign?w.assign.apply(w,[e].concat(s)):(s.forEach(function(r){r&&h(r,function(r,s){e[s]=r})}),e)},s.isObject=c,s.isPlain=function(e){return c(e)&&"[object Object]"===u.call(e)&&e.constructor===w};var u=w.prototype.toString,a=function(e){return c(e)?w.keys(e):[]};function h(e,r){a(e).forEach(function(s){return r(e[s],s)})}function c(e){return!!e&&"object"===(void 0===e?"undefined":o(e))}},{}],90:[function(e,r,s){s.__esModule=!0,s.setTextContent=s.createStyleElement=void 0;var o=e(85);s.createStyleElement=function(e){var r=o.document.createElement("style");return r.className=e,r},s.setTextContent=function(e,r){e.styleSheet?e.styleSheet.cssText=r:e.textContent=r}},{85:85}],91:[function(e,r,s){s.__esModule=!0,s.createTimeRange=void 0,s.createTimeRanges=c;var o=e(87),u=o&&o.__esModule?o:{default:o};function a(e,r,s,o){return void 0===o&&(u.default.warn("DEPRECATED: Function '"+e+"' on 'TimeRanges' called without an index argument."),o=0),function(e,r,s){if(r<0||r>s)throw new y("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+r+") is greater than or equal to the maximum bound ("+s+").")}(e,o,s.length-1),s[o][r]}function h(e){return void 0===e||0===e.length?{length:0,start:function(){throw new y("This TimeRanges object is empty")},end:function(){throw new y("This TimeRanges object is empty")}}:{length:e.length,start:a.bind(null,"start",0,e),end:a.bind(null,"end",1,e)}}function c(e,r){return Array.isArray(e)?h(e):void 0===e||void 0===r?h():h([[e,r]])}s.createTimeRange=c},{87:87}],92:[function(e,r,s){s.__esModule=!0,s.default=function(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}},{}],93:[function(e,r,s){s.__esModule=!0,s.isCrossOrigin=s.getFileExtension=s.getAbsoluteURL=s.parseUrl=void 0;var o=e(85),u=s.parseUrl=function(e){var r=["protocol","hostname","port","pathname","search","hash","host"],s=o.document.createElement("a");s.href=e;var u=""===s.host&&"file:"!==s.protocol,a=void 0;u&&((a=o.document.createElement("div")).innerHTML='<a href="'+e+'"></a>',s=a.firstChild,a.setAttribute("style","display:none; position:absolute;"),o.document.body.appendChild(a));for(var h={},c=0;c<r.length;c++)h[r[c]]=s[r[c]];return"http:"===h.protocol&&(h.host=h.host.replace(/:80$/,"")),"https:"===h.protocol&&(h.host=h.host.replace(/:443$/,"")),u&&o.document.body.removeChild(a),h};s.getAbsoluteURL=function(e){if(!e.match(/^https?:\/\//)){var r=o.document.createElement("div");r.innerHTML='<a href="'+e+'">x</a>',e=r.firstChild.href}return e},s.getFileExtension=function(e){if("string"==typeof e){var r=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(e);if(r)return r.pop().toLowerCase()}return""},s.isCrossOrigin=function(e){var r=o.window.location,s=u(e);return(":"===s.protocol?r.protocol:s.protocol)+s.host!==r.protocol+r.host}},{85:85}],94:[function(e,r,s){s.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=e(85),a=O(e(78)),h=O(e(81)),c=O(e(56)),f=O(e(90)),l=N(e(5)),p=N(e(42)),v=O(e(82)),d=N(e(51)),y=N(e(52)),m=N(e(88)),b=O(e(83)),k=N(e(72)),E=N(e(64)),A=N(e(77)),x=e(91),T=N(e(84)),C=N(e(87)),S=O(e(93)),R=e(89),L=N(e(80)),_=N(e(43)),P=N(e(122)),I=N(e(62));function N(e){return e&&e.__esModule?e:{default:e}}function O(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var s in e)w.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r.default=e,r}function D(e,r,s){var o=void 0;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),D.getPlayers()[e])return r&&C.default.warn('Player "'+e+'" is already initialised. Options will not be applied.'),s&&D.getPlayers()[e].ready(s),D.getPlayers()[e];o=h.getEl(e)}else o=e;if(!o||!o.nodeName)throw new g("The element or ID supplied is not val
1id. (videojs)");if(o.player||d.default.players[o.playerId])return o.player||d.default.players[o.playerId];r=r||{},D.hooks("beforesetup").forEach(function(e){var s=e(o,(0,m.default)(r));(0,R.isObject)(s)&&!Array.isArray(s)?r=(0,m.default)(r,s):C.default.error("please return an object in beforesetup hooks")});var u=new(l.default.getComponent("Player"))(o,r,s);return D.hooks("setup").forEach(function(e){return e(u)}),u}if("u"<typeof HTMLVideoElement&&h.isReal()&&(u.document.createElement("video"),u.document.createElement("audio"),u.document.createElement("track")),D.Ozt={},D.hooks=function(e,r){return D.Ozt[e]=D.Ozt[e]||[],r&&(D.Ozt[e]=D.Ozt[e].concat(r)),D.Ozt[e]},D.hook=function(e,r){D.hooks(e,r)},D.removeHook=function(e,r){var s=D.hooks(e).indexOf(r);return!(s<=-1||(D.Ozt[e]=D.Ozt[e].slice(),D.Ozt[e].splice(s,1),0))},!0!==u.window.VIDEOJS_NO_DYNAMIC_STYLE&&h.isReal()){var U=h.$(".vjs-styles-defaults");if(!U){U=f.createStyleElement("vjs-styles-defaults");var M=h.$("head");M&&M.insertBefore(U,M.firstChild),f.setTextContent(U,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}c.autoSetupTimeout(1,D),D.VERSION="5.20.6-opentelly.3",D.options=d.default.prototype.sjt,D.getPlayers=function(){return d.default.players},D.players=d.default.players,D.getComponent=l.default.getComponent,D.registerComponent=function(e,r){I.default.isTech(r)&&C.default.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),l.default.registerComponent.call(l.default,e,r)},D.getTech=I.default.getTech,D.registerTech=I.default.registerTech,D.browser=a,D.TOUCH_ENABLED=a.TOUCH_ENABLED,D.extend=_.default,D.mergeOptions=m.default,D.bind=b.bind,D.plugin=y.default,D.addLanguage=function(e,r){var s;return e=(""+e).toLowerCase(),D.options.languages=(0,m.default)(D.options.languages,((s={})[e]=r,s)),D.options.languages[e]},D.log=C.default,D.createTimeRange=D.createTimeRanges=x.createTimeRanges,D.formatTime=T.default,D.parseUrl=S.parseUrl,D.isCrossOrigin=S.isCrossOrigin,D.EventTarget=p.default,D.on=v.on,D.one=v.one,D.off=v.off,D.trigger=v.trigger,D.xhr=P.default,D.TextTrack=k.default,D.AudioTrack=E.default,D.VideoTrack=A.default,D.isEl=h.isEl,D.isTextNode=h.isTextNode,D.createEl=h.createEl,D.hasClass=h.hasElClass,D.addClass=h.addElClass,D.removeClass=h.removeElClass,D.toggleClass=h.toggleElClass,D.setAttributes=h.setElAttributes,D.getAttributes=h.getElAttributes,D.emptyEl=h.emptyEl,D.appendContent=h.appendContent,D.insertContent=h.insertContent,D.computedStyle=L.default,"object"===(void 0===s?"undefined":o(s))&&"object"===(void 0===r?"undefined":o(r))&&(r.exports=D),s.default=D},{122:122,42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,85:85,87:87,88:88,89:89,90:90,91:91,93:93}],95:[function(e,r,s){var o=e(113),u="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=w.prototype.toString,h=Array.prototype.concat,c=w.defineProperty,f=c&&function(){var e={};try{for(var r in c(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,r,s,o){r in e&&("function"!=typeof o||"[object Function]"!==a.call(o)||!o())||(f?c(e,r,{configurable:!0,enumerable:!1,value:s,writable:!0}):e[r]=s)},p=function(e,r){var s=arguments.length>2?arguments[2]:{},a=o(r);u&&(a=h.call(a,w.getOwnPropertySymbols(r)));for(var c=0;c<a.length;c+=1)l(e,a[c],r[a[c]],s[a[c]])};p.supportsDescriptors=!!f,r.exports=p},{113:113}],96:[function(e,r,s){var o=w.getOwnPropertyDescriptor?function(){return w.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new g},u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,a=w.getPrototypeOf||function(e){return e.__proto__},h=void 0===x?void 0:a(x),c={"$ %Array%":Array,"$ %ArrayBuffer%":"u"<typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"u"<typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":u?a([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":void 0,"$ %Atom
1ics%":"u"<typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"u"<typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"u"<typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":y,"$ %ErrorPrototype%":y.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"u"<typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"u"<typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"u"<typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"u"<typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"u"<typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"u"<typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"u"<typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"u"<typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"u"<typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"u"<typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":A,"$ %IteratorPrototype%":u?a(a([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"u"<typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"u">typeof Map&&u?a((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"u"<typeof Map?void 0:Map.prototype,"$ %Math%":b,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":w,"$ %ObjectPrototype%":w.prototype,"$ %ObjProto_toString%":w.prototype.toString,"$ %ObjProto_valueOf%":w.prototype.valueOf,"$ %parseFloat%":E,"$ %parseInt%":k,"$ %Promise%":"u"<typeof Promise?void 0:Promise,"$ %PromisePrototype%":"u"<typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"u"<typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"u"<typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"u"<typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"u"<typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"u"<typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"u"<typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"u"<typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"u">typeof Set&&u?a((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"u"<typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"u"<typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":u?a(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":u?Symbol:void 0,"$ %SymbolPrototype%":u?Symbol.prototype:void 0,"$ %SyntaxError%":m,"$ %SyntaxErrorPrototype%":m.prototype,"$ %ThrowTypeError%":o,"$ %TypedArray%":h,"$ %TypedArrayPrototype%":h?h.prototype:void 0,"$ %TypeError%":g,"$ %TypeErrorPrototype%":g.prototype,"$ %Uint8Array%":void 0===x?void 0:x,"$ %Uint8ArrayPrototype%":void 0===x?void 0:x.prototype,"$ %Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"u"<typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"u"<typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"u"<typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"u"<typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"u"<typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"u"<typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"u"<typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"u"<typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"u"<typeof WeakSet?void 0:WeakSet.prototype};r.exports=function(e,r){if(arguments.length>1&&"boolean"!=typeof r)throw new g('"allowMissing" argument must be a boolean');var s="$ "+e;
1if(!(s in c))throw new m("intrinsic "+e+" does not exist!");if(void 0===c[s]&&!r)throw new g("intrinsic "+e+" exists, but is not available. Please file an issue!");return c[s]}},{}],97:[function(e,r,s){var o=e(96),u=o("%Object%"),a=o("%TypeError%"),h=o("%String%"),c=e(98),f=e(100),l=e(99),p=e(102),v=e(101),d=e(110),y=e(103),m=e(109);r.exports={ToPrimitive:y,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var r=this.ToNumber(e);return f(r)?0:0!==r&&l(r)?p(r)*b.floor(b.abs(r)):r},ToInt32:function(e){return 0|this.ToNumber(e)},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var r=this.ToNumber(e);return f(r)||0===r||!l(r)?0:v(p(r)*b.floor(b.abs(r)),65536)},ToString:function(e){return h(e)},ToObject:function(e){return this.CheckObjectCoercible(e),u(e)},CheckObjectCoercible:function(e,r){if(null==e)throw new a(r||"Cannot call method on "+e);return e},IsCallable:d,SameValue:function(e,r){return e===r?0!==e||1/e==1/r:f(e)&&f(r)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var s in e)if(m(e,s)&&!r[s])return!1;var o=m(e,"[[Value]]"),u=m(e,"[[Get]]")||m(e,"[[Set]]");if(o&&u)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!m(e,"[[Get]]")&&!m(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!m(e,"[[Value]]")&&!m(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(c(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new a("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new a("ToPropertyDescriptor requires an object");var r={};if(m(e,"enumerable")&&(r["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),m(e,"configurable")&&(r["[[Configurable]]"]=this.ToBoolean(e.configurable)),m(e,"value")&&(r["[[Value]]"]=e.value),m(e,"writable")&&(r["[[Writable]]"]=this.ToBoolean(e.writable)),m(e,"get")){var s=e.get;if(void 0!==s&&!this.IsCallable(s))throw new g("getter must be a function");r["[[Get]]"]=s}if(m(e,"set")){var o=e.set;if(void 0!==o&&!this.IsCallable(o))throw new a("setter must be a function");r["[[Set]]"]=o}if((m(r,"[[Get]]")||m(r,"[[Set]]"))&&(m(r,"[[Value]]")||m(r,"[[Writable]]")))throw new a("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return r}}},{100:100,101:101,102:102,103:103,109:109,110:110,96:96,98:98,99:99}],98:[function(e,r,s){var o=e(96),u=o("%TypeError%"),a=o("%SyntaxError%"),h=e(109),c={"Property Descriptor":function(e,r){if("Object"!==e.Type(r))return!1;var s={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var o in r)if(h(r,o)&&!s[o])return!1;var a=h(r,"[[Value]]"),c=h(r,"[[Get]]")||h(r,"[[Set]]");if(a&&c)throw new u("Property Descriptors may not be both accessor and data descriptors");return!0}};r.exports=function(e,r,s,o){var h=c[r];if("function"!=typeof h)throw new a("unknown record type: "+r);
1if(!h(e,o))throw new u(s+" must be a "+r);console.log(h(e,o),o)}},{109:109,96:96}],99:[function(e,r,s){var o=Number.isNaN||function(e){return e!=e};r.exports=Number.isFinite||function(e){return"number"==typeof e&&!o(e)&&e!==1/0&&e!==-1/0}},{}],100:[function(e,r,s){r.exports=Number.isNaN||function(e){return e!=e}},{}],101:[function(e,r,s){r.exports=function(e,r){var s=e%r;return b.floor(s>=0?s:s+r)}},{}],102:[function(e,r,s){r.exports=function(e){return e>=0?1:-1}},{}],103:[function(e,r,s){var o=w.prototype.toString,u=e(104),a=e(110),h=function(e){var r;if((r=arguments.length>1?arguments[1]:"[object Date]"===o.call(e)?String:Number)===String||r===Number){var s,h,c=r===String?["toString","valueOf"]:["valueOf","toString"];for(h=0;h<c.length;++h)if(a(e[c[h]])&&u(s=e[c[h]]()))return s;throw new g("No default value")}throw new g("invalid [[DefaultValue]] hint supplied")};r.exports=function(e){return u(e)?e:arguments.length>1?h(e,arguments[1]):h(e)}},{104:104,110:110}],104:[function(e,r,s){r.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},{}],105:[function(e,r,s){var o=e(110),u=w.prototype.toString,a=w.prototype.hasOwnProperty;r.exports=function(e,r,s){var h;if(!o(r))throw new g("iterator must be a function");arguments.length>=3&&(h=s),"[object Array]"===u.call(e)?function(e,r,s){for(var o=0,u=e.length;o<u;o++)a.call(e,o)&&(null==s?r(e[o],o,e):r.call(s,e[o],o,e))}(e,r,h):"string"==typeof e?function(e,r,s){for(var o=0,u=e.length;o<u;o++)null==s?r(e.charAt(o),o,e):r.call(s,e.charAt(o),o,e)}(e,r,h):function(e,r,s){for(var o in e)a.call(e,o)&&(null==s?r(e[o],o,e):r.call(s,e[o],o,e))}(e,r,h)}},{110:110}],106:[function(e,r,s){var o=Array.prototype.slice,u=w.prototype.toString;r.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==u.call(r))throw new g("Function.prototype.bind called on incompatible "+r);for(var s,a=o.call(arguments,1),h=b.max(0,r.length-a.length),c=[],f=0;f<h;f++)c.push("$"+f);if(s=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var u=r.apply(this,a.concat(o.call(arguments)));return w(u)===u?u:this}return r.apply(e,a.concat(o.call(arguments)))}),r.prototype){var l=function(){};l.prototype=r.prototype,s.prototype=new l,l.prototype=null}return s}},{}],107:[function(e,r,s){var o=e(106);r.exports=Function.prototype.bind||o},{106:106}],108:[function(e,r,s){(function(e){r.exports=void 0!==a?a:void 0!==e?e:void 0!==o?o:{}}).call(this,void 0!==S?S:void 0!==o?o:void 0!==a?a:{})},{}],109:[function(e,r,s){r.exports=e(107).call(Function.call,w.prototype.hasOwnProperty)},{107:107}],110:[function(e,r,s){var o=Function.prototype.toString,u=/^\s*class\b/,a=function(e){try{var r=o.call(e);return u.test(r)}catch(e){return!1}},h=w.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;r.exports=function(e){if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(c)try{return!a(e)&&(o.call(e),!0)}catch(e){return!1}if(a(e))return!1;var r=h.call(e);return"[object Function]"===r||"[object GeneratorFunction]"===r}},{}],111:[function(e,r,s){r.exports=function(e){var r=o.call(e);return"[object Function]"===r||"function"==typeof e&&"[object RegExp]"!==r||void 0!==a&&(e===a.setTimeout||e===a.alert||e===a.confirm||e===a.prompt)};var o=w.prototype.toString},{}],112:[function(e,r,s){var o;if(!w.keys){var u=w.prototype.hasOwnProperty,h=w.prototype.toString,c=e(114),f=w.prototype.propertyIsEnumerable,l=!f.call({toString:null},"toString"),p=f.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var r=e.constructor;return r&&r.prototype===e},y={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},m=function(){if(void 0===a)return!1;for(var e in a)try{if(!y["$"+e]&&u.call(a,e)&&null!==a[e]&&"object"==typeof a[e])try{d(a[e])}catch(e){return!0}}catch(e){return!0}return!1}();o=function(e){var r=null!==e&&"object"==typeof e,s="[object Function]"===h.call(e),o=c(e),f=r&&"[object String]"===h.call(e),y=[];if(!r&&!s&&!o)throw new g("Object.keys called on a non-object");var w=p&&s;if(f&&e.length>0&&!u.call(e,0))for(var b=0;b<e.length;++b)y.push(String(b));if(o&&e.length>0)for(var k=0;k<e.length;++k)y.push(String(k));else for(var E in e)w&&"prototype"===E||!u.call(e,E)||y.push(String(E));if(l)for(var A=function(e){if(void 0===a||!m)return d(e);try{return d(e)}catch(e){return!1}}(e),x=0;x<v.length;++x)A&&"constructor"===v[x]||!u.call(e,v[x])||y.push(v[x]);return y}}r.exports=o},{114:114}],113:[function(e,r,s){var o=Array.prototype.slice,u=e(114),a=w.keys,h=a?function(e){return a(e)}:e(112),c=w.keys;h.shim=function(){return w.keys?function(){var e=w.keys(arguments);return e&&e.length===arguments.length}(1,2)||(w.keys=function(e){return u(e)?c(o.call(e)):c(e)}):w.keys=h,w.keys||h},r.exports=h},{112:112,114:114}],114:[function(e,r,s){var o=w.prototype.toString;
1r.exports=function(e){var r=o.call(e),s="[object Arguments]"===r;return s||(s="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===o.call(e.callee)),s}},{}],115:[function(e,r,s){var o=e(118),u=e(105);r.exports=function(e){if(!e)return{};var r={};return u(o(e).split("\n"),function(e){var s,u=e.indexOf(":"),a=o(e.slice(0,u)).toLowerCase(),h=o(e.slice(u+1));void 0===r[a]?r[a]=h:(s=r[a],"[object Array]"===w.prototype.toString.call(s)?r[a].push(h):r[a]=[r[a],h])}),r}},{105:105,118:118}],116:[function(e,r,s){r.exports=function(e,r){var s,o=null;try{s=JSON.parse(e,r)}catch(e){o=e}return[o,s]}},{}],117:[function(e,r,s){var o=e(107),u=e(97),a=o.call(Function.call,String.prototype.replace),h=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,c=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;r.exports=function(){return a(a(u.ToString(u.CheckObjectCoercible(this)),h,""),c,"")}},{107:107,97:97}],118:[function(e,r,s){var o=e(107),u=e(95),a=e(117),h=e(119),c=e(120),f=o.call(Function.call,h());u(f,{getPolyfill:h,implementation:a,shim:c}),r.exports=f},{107:107,117:117,119:119,120:120,95:95}],119:[function(e,r,s){var o=e(117);r.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:o}},{117:117}],120:[function(e,r,s){var o=e(95),u=e(119);r.exports=function(){var e=u();return o(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},{119:119,95:95}],121:[function(e,r,s){r.exports=function(e){for(var r="",s=0;s<arguments.length;s++)r+=e[s].replace(/\n\r?\s*/g,"")+(arguments[s+1]||"");return r}},{}],122:[function(e,r,s){var o=e(108),u=e(111),a=e(115),h=e(123);function c(e,r,s){var o=e;return u(r)?(s=r,"string"==typeof e&&(o={uri:e})):o=h(r,{uri:e}),o.callback=s,o}function f(e,r,s){return v(r=c(e,r,s))}function v(e){if(void 0===e.callback)throw new y("callback argument missing");var r=!1,s=function(s,o,u){r||(r=!0,e.callback(s,o,u))},o={body:void 0,headers:{},statusCode:0,method:w,url:m,rawRequest:d};function u(e){return p(g),e instanceof y||(e=new y(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,s(e,o)}function h(){if(!v){p(g);var r,u=o,h=null;return 0!==(r=e.useXDR&&void 0===d.status?200:1223===d.status?204:d.status)?(u={body:function(){var e=void 0;if(e=d.response?d.response:d.responseText||function(e){if("document"===e.responseType)return e.responseXML;var r=204===e.status&&e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||r?null:e.responseXML}(d),A)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:r,method:w,headers:{},url:m,rawRequest:d},d.getAllResponseHeaders&&(u.headers=a(d.getAllResponseHeaders()))):h=new y("Internal XMLHttpRequest Error"),s(h,u,u.body)}}var c,v,d=e.xhr||null;d||(d=e.cors||e.useXDR?new f.XDomainRequest:new f.XMLHttpRequest);var g,m=d.url=e.uri||e.url,w=d.method=e.method||"GET",b=e.body||e.data||null,k=d.headers=e.headers||{},E=!!e.sync,A=!1;if("json"in e&&(A=!0,k.accept||k.Accept||(k.Accept="application/json"),"GET"!==w&&"HEAD"!==w&&(k["content-type"]||k["Content-Type"]||(k["Content-Type"]="application/json"),b=JSON.stringify(e.json))),d.onreadystatechange=function(){4===d.readyState&&h()},d.onload=h,d.onerror=u,d.onprogress=function(){},d.ontimeout=u,d.open(w,m,!E,e.username,e.password),E||(d.withCredentials=!!e.withCredentials),!E&&e.timeout>0&&(g=l(function(){v=!0,d.abort("timeout");var e=new y("XMLHttpRequest timeout");e.code="ETIMEDOUT",u(e)},e.timeout)),d.setRequestHeader)for(c in k)k.hasOwnProperty(c)&&d.setRequestHeader(c,k[c]);else if(e.headers&&!function(e){for(var r in e)if(e.hasOwnProperty(r))return!1;return!0}(e.headers))throw new y("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(d.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(d),d.send(b),d}r.exports=f,f.XMLHttpRequest=o.XMLHttpRequest||function(){},f.XDomainRequest="withCredentials"in new f.XMLHttpRequest?f.XMLHttpRequest:o.XDomainRequest,function(e,r){for(var s=0;s<e.length;s++)r(e[s])}(["get","put","post","patch","head","delete"],function(e){f["delete"===e?"del":e]=function(r,s,o){return(s=c(r,s,o)).method=e.toUpperCase(),v(s)}})},{108:108,111:111,115:115,123:123}],123:[function(e,r,s){r.exports=function(){for(var e={},r=0;r<arguments.length;r++){var s=arguments[r];for(var u in s)o.call(s,u)&&(e[u]=s[u])}return e};var o=w.prototype.hasOwnProperty},{}]},{},[94])(94)});function MK(e){return e.duration()===1/0}function Mz(e){return e.scrubbing()?e.getCache().currentTime:e.currentTime()}function MZ(e){var r=M2(e);return MK(e)?r.end(r.length-1):r.start(0)}function M0(e){return M2(e).start(0)}function M1(e){var r=M2(e);return r.end(r.length-1)-r.start(0)}function M2(e){var r=e.seekable();if(r&&r.length)return r;var s=e.duration();return new mo([0,s=isFinite(s)?s:0]).XD()}function M3(e,r){void 0===r&&(r=e);var s=e<0?"-":"";e=b.abs(e);var o=b.floor(e%60),u=b.floor(e/60%60),a=b.floor(e/3600),h=b.floor(r/60%60),c=b.floor(r/3600);return(A(e)||e===1/0)&&(a=u=o="-"),s+(a=a>0||c>0?a+":":"")+(u=((a||h>=10)&&u<10?"0"+u:u)+":")+(o=o<10?"0"+o:o)}function M5(){var e=Mz(this);this.toggleClass("theo-at-live",function(e,r){if(MK(e)){var s=M2(e);return s.end(s.length-1)-r<10}return!1}(this,e)),this.toggleClass("theo-dvr",MK(this)&&M1(this)>=60)}var M4,M6,M8,M7=function(e,r){this.type=void 0,this.target=void 0,this.playerEvent=void 0,this.type=e.type,this.target=r,this.playerEvent=e};(F1=M6||(M6={})).Lzt="unavailable",F1.Mzt="available",F1.jzt="presenting",(F2=M8||(M8={})).LOADED="v4",F2.AD_BREAK_STARTED="Fzt",F2.AD_BREAK_ENDED="Uzt",F2.AD_PERIOD_STARTED="Hzt",F2.AD_PERIOD_ENDED="Xzt",F2.AD_PROGRESS="Vzt",F2.CUEPOINTS_CHANGED="Wzt",F2.CLICK="zzt",F2.ERROR="Lh",F2.STARTED="GAt",F2.FIRST_QUARTILE="qzt",F2.MIDPOINT="Gzt",F2.STREAM_INITIALIZED="Yzt",F2.THIRD_QUARTILE="$zt",F2.COMPLETE="Db";var M9=["suspend","abort","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange","resize"],Ft=
1MG.getTech("Tech"),Fe=MG.getTech("Html5"),Fn=function(e){function r(r,s){void 0===r&&(r={}),(o=e.call(this,r,s)||this).Qzt=void 0,o.gOt=function(e){return o.wh(e)},o.Zzt=!1,o.pF=function(){o.wh(new f9(o.Qzt.currentTime,o.Qzt.readyState)),o.wh(new kA)},o.Kzt=function(e){o.textTracks().Gg(e.track)},o.Jzt=function(e){o.audioTracks().Gg(e.track)},o.tqt=function(e){o.textTracks().zg(e.track)},o.nqt=function(e){o.audioTracks().zg(e.track)},o.iqt=function(){var e=o.textTracks();e.trigger({type:"change",target:e,currentTarget:e,srcElement:e})},o.rqt=function(){var e=o.audioTracks();e.trigger({type:"change",target:e,currentTarget:e,srcElement:e})},o.eqt=function(){if(o.supportsFullScreen()){var e=o.Zzt,r=o.Qzt.presentation.currentMode===mw.FULLSCREEN;e!==r&&(o.Zzt=r,o.trigger("fullscreenchange",{isFullscreen:r}))}},o.Kc=function(){var e=o.Qzt.error,r=e&&e.code||-1,s=e&&e.message||"An unknown error occurred.";o.error({code:r,message:o.localize(s)})},o.Qzt=o.sjt.player,o.sqt();var o,u=!o.paused();return u&&o.pause(),r.preload&&o.setPreload(r.preload),r.autoplay&&o.setAutoplay(r.autoplay),r.muted&&o.setMuted(r.muted),r.source?o.setSrc(r.source):o.JWt(),u&&o.ready(function(){return o.play()}),o.triggerReady(),o}j(r,e);var s=r.prototype;return s.sqt=function(){for(var e=0;e<M9.length;e++){var r=M9[e];this.Qzt.addEventListener(r,this.gOt)}this.Qzt.addEventListener("error",this.Kc),this.Qzt.addEventListener("contentprotectionerror",this.Kc),this.Qzt.addEventListener("sourcechange",this.pF),this.Qzt.presentation.addEventListener("presentationmodechange",this.eqt),this.Qzt.textTracks.addEventListener("addtrack",this.Kzt),this.Qzt.textTracks.addEventListener("removetrack",this.tqt),this.Qzt.textTracks.addEventListener("change",this.iqt),this.Qzt.audioTracks.addEventListener("addtrack",this.Jzt),this.Qzt.audioTracks.addEventListener("removetrack",this.nqt),this.Qzt.audioTracks.addEventListener("change",this.rqt)},s.uqt=function(){for(var e=0;e<M9.length;e++){var r=M9[e];this.Qzt.removeEventListener(r,this.gOt)}this.Qzt.removeEventListener("error",this.Kc),this.Qzt.removeEventListener("contentprotectionerror",this.Kc),this.Qzt.removeEventListener("sourcechange",this.pF),this.Qzt.presentation.removeEventListener("presentationmodechange",this.eqt),this.Qzt.textTracks.removeEventListener("addtrack",this.Kzt),this.Qzt.textTracks.removeEventListener("removetrack",this.tqt),this.Qzt.textTracks.removeEventListener("change",this.iqt),this.Qzt.audioTracks.removeEventListener("addtrack",this.Jzt),this.Qzt.audioTracks.removeEventListener("removetrack",this.nqt),this.Qzt.audioTracks.removeEventListener("change",this.rqt)},s.wh=function(e){this.trigger(new M7(e,this))},s.createEl=function(){var e=this.sjt,r=e.player;if(!r)throw new y(this.localize('Missing required tech option "player"'));var s=r.element;return MG.setAttributes(s,{id:e.techId}),s},s.theoplayer=function(){return this.Qzt},s.addTextTrack=function(r,s,o){return e.prototype.addTextTrack.call(this,r,s,o)},s.buffered=function(){return this.Qzt.buffered},s.played=function(){return this.Qzt.played},s.reset=function(){this.Qzt.stop()},s.play=function(){this.Qzt.play()},s.pause=function(){this.Qzt.pause()},s.paused=function(){return this.Qzt.paused},s.currentTime=function(){return this.Qzt.currentTime},s.setCurrentTime=function(e){this.Qzt.currentTime=e},s.duration=function(){return this.Qzt.duration},s.volume=function(){return this.Qzt.volume},s.setVolume=function(e){this.Qzt.volume=e},s.muted=function(){return this.Qzt.muted},s.setMuted=function(e){this.Qzt.muted=e},s.src=function(e){if(void 0!==e)this.setSrc(e);else{if(this.Qzt.src)return this.Qzt.src;if(this.Qzt.source){if(!mW(this.Qzt.source.ads))return this.Qzt.source.ads[0].sources;if(function(e){if(e.sources){if(Z(e.sources))for(var r=0,s=e.sources;r<s.length;r++){var o=s[r];if(!ti(o)&&"verizon-media"===o.integration)return!0}else if(!ti(e.sources))return"verizon-media"===e.sources.integration}return!1}(this.Qzt.source))return"This source is managed by the Verizon Media integration extension.";if(function(e){if(e.sources){if(Z(e.sources)){for(var r=0,s=e.sources;r<s.length;r++)if(fj(s[r]))return!0}else if(te(e.sources))return fj(e.sources)}return!1}(this.Qzt.source))return"This source is managed by the DAI integration extension."}}},s.setSrc=function(e){return this.setSource({src:e})},s.setSource=function(e){this.Lh=null,this.trigger("error")},s.currentSrc=function(){return this.Qzt.src},s.load=function(){this.setPreload("auto")},s.preload=function(){return this.Qzt.preload},s.setPreload=function(e){this.Qzt.preload=e},s.autoplay=function(){return this.Qzt.autoplay},s.setAutoplay=function(e){this.Qzt.autoplay=!!e},s.seeking=function(){return this.Qzt.seeking},s.seekable=function(){return this.Qzt.seekable},s.ended=function(){return this.Qzt.ended},s.playbackRate=function(){return this.Qzt.playbackRate},s.setPlaybackRate=function(e){this.Qzt.playbackRate=e},s.readyState=function(){return this.Qzt.readyState},s.networkState=function(){return 0},s.controls=function(){return!1},s.videoHeight=function(){return this.Qzt.videoHeight},s.videoWidth=function(){return this.Qzt.videoWidth},s.supportsFullScreen=function(){return this.Qzt.presentation.supportsM
1ode(mw.FULLSCREEN)},s.enterFullScreen=function(){this.Qzt.presentation.requestMode(mw.FULLSCREEN)},s.exitFullScreen=function(){this.Qzt.presentation.requestMode(mw.INLINE)},s.oqt=function(){var e=this.Qzt.ads;if(e&&e.playing)return!0;var r=this.Qzt.vr;return!(!r||r.state===M6.Lzt)},s.initTextTrackListeners=function(){var r=this;return this.on("touchend",function(e){r.oqt()&&(e.preventDefault=function(){})}),e.prototype.initTextTrackListeners.call(this)},s.JWt=function(){if(this.src()){var e=this.readyState();if(0===e){var r=!1,s=function(){r=!0};this.on("loadstart",s);var o=function(){r||this.trigger("loadstart")};return this.on("loadedmetadata",o),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",o),r||this.trigger("loadstart")})}var u=["loadstart"];u.push("loadedmetadata"),e>=2&&u.push("loadeddata"),e>=3&&u.push("canplay"),e>=4&&u.push("canplaythrough"),this.ready(function(){for(var e=0;e<u.length;e++){var r=u[e];this.trigger(r)}})}},s.dispose=function(){this.uqt(),this.Qzt=null,e.prototype.dispose.call(this)},r.isSupported=function(){return!0},r.canPlayType=function(){return"maybe"},r.canPlaySource=function(e){return"maybe"},M(r,[{key:"featuresVolumeControl",get:function(){return ik}}]),r}(Ft);function Fi(e){function r(){for(var r,s=arguments.length,o=Array(s),u=0;u<s;u++)o[u]=arguments[u];return(r=e.call.apply(e,[this].concat(o))||this).aqt=void 0,r}return j(r,e),r.prototype.dispose=function(){this.aqt=void 0,e.prototype.dispose.call(this)},M(r,[{key:"Qzt",get:function(){return this.aqt||(this.aqt=this.player().tech({IWillNotUseThisInPlugins:!0}).theoplayer()),this.aqt}}]),r}Fn.prototype.featuresFullscreenResize=Fe.prototype.featuresFullscreenResize,Fn.prototype.featuresPlaybackRate=Fe.prototype.featuresPlaybackRate,Fn.prototype.featuresProgressEvents=!0,Fn.prototype.featuresTimeupdateEvents=!0,Fn.prototype.featuresNativeTextTracks=!0,MG.registerTech("THEOplayer",Fn);var Fr=function(e){var r=this;this.aC=void 0,this.hqt=function(e){ir(r.aC,"theo-mobile-button-hover"),e.stopImmediatePropagation()},this.cqt=function(e){is(r.aC,"theo-mobile-button-hover")},this.fqt=function(e){r.aC.blur()},this.aC=e,e.addEventListener("touchstart",this.hqt),e.addEventListener("touchend",this.cqt),e.addEventListener("focusin",this.fqt)},Fs=function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.vqt=function(){ir(this.dqt,"theo-menu-opened")},s.pc=function(){is(this.dqt,"theo-menu-opened")},M(r,[{key:"dqt",get:function(){return this.player().el()}}]),r}(Fi(MG.getComponent("Menu"))),Fo=function(e){function r(r,s,o){var u;return(u=e.call(this,r,iD({selectable:!0},s))||this).lqt=void 0,u._qt=!1,u.hqt=function(e){ir(u.el(),"theo-mobile-menu-item-hover"),e.stopImmediatePropagation()},u.cqt=function(e){is(u.el(),"theo-mobile-menu-item-hover")},u.lqt=o,_.oa.pu&&(u.el().addEventListener("touchstart",u.hqt),u.el().addEventListener("touchend",u.cqt)),u}j(r,e);var s=r.prototype;return s.buildCSSClass=function(){return"theo-menu-item vjs-menu-item"},s.createEl=function(){var r=e.prototype.createEl.call(this,"li",{className:this.buildCSSClass(),tabIndex:0},{"aria-live":"off","aria-label":""});return r.innerHTML="",r},s.handleClick=function(e){this._qt||(this.parentMenu.gqt(this),"tap"!==e.type&&"keydown"!==e.type||(this._qt=!0,this.trigger("click"),this._qt=!1))},s.dispose=function(){_.oa.pu&&(this.el().removeEventListener("touchstart",this.hqt),this.el().removeEventListener("touchend",this.cqt)),e.prototype.dispose.call(this)},M(r,[{key:"parentMenu",get:function(){return this.lqt}}]),r}(Fi(MG.getComponent("MenuItem"))),Fu=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s)||this).lqt=void 0,u._qt=!1,u.wqt=!1,u.lqt=o,u}j(r,e);var s=r.prototype;return s.buildCSSClass=function(){return"theo-primary-background theo-menu-header"},s.createEl=function(){var r=e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-live":"off","aria-label":""});return r.innerHTML="",r},s.handleClick=function(e){!this._qt&&this.yqt&&(this.lqt.pqt(),"tap"===e.type&&(this._qt=!0,this.trigger("click"),this._qt=!1))},M(r,[{key:"parentMenu",get:function(){return this.lqt}},{key:"yqt",get:function(){return this.wqt},set:function(e){this.wqt=e,this.yqt?(this.el().setAttribute("tabindex","0"),this.el().setAttribute("aria-label",this.localize("Go back to the previous menu"))):(this.el().setAttribute("tabindex","-1"),this.el().setAttribute("aria-label",""))}}]),r}(MG.getComponent("ClickableComponent")),Fa=function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.mqt=function(e){this.bqt.kqt(e,"replace")},s.Aqt=function(e){e.bqt.kqt(this,"restore")},s.jm=function(){is(this.Tqt,"vjs-hidden"),this.Tqt.style.opacity="1",e.prototype.show.call(this)},s.Ym=function(){ir(this.Tqt,"vjs-hidden")},s.vqt=function(){this.bqt&&this.bqt.vqt(),e.prototype.vqt.call(this)},s.pc=function(){this.bqt&&this.bqt.pc(),e.prototype.pc.call(this),ir(this.Tqt,"vjs-hidden")},s.Sqt=function(){if(this.bqt&&this.bqt.Eqt)return this.bqt.Eqt.Tqt},s.Rqt=function(r,s){if(s.length>0){var o=s[0].height,u=s[0].width;this.Iqt.sp.style.height=o+"px",this.Iqt.sp.style.width=u+"px"}e.prototype.Rqt.call(this,r,s)},M(r,[{key:"bqt",get:function(){return this.Iqt},set:function(e){this.Iqt&&this.Iqt.Nqt(this),this.Iqt=e,e&&e.Cqt(this)}}]),r}(function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).Dqt=void 0,o.Pqt=function(){return o.Bqt()},o.Dqt=o.player().el(),o.hide(),o.on("menuchange",o.Bqt),o}j(r,e);var s=r.prototype;return s.addMenuItem=function(e){e=iD({playerOptions:this.sjt.playerOptions},e);var r=new Fo(this.player(),e,this);return this.addChild(r,void 0,e.index),this.trigger("menuchange"),r},s.addSubMenuItem=function(e){e=iD({playerOptions:this.sjt.playerOptions},e);var r=this.xqt(this.player(),e);return this.addChild(r,void 0,e.index),this.trigger("menuchange"),r},s.removeMenuItem=function(e){this.removeChild(e),this.trigger("menuchange")},s.buildCSSClass=function(){return"theo-menu vjs-menu"},s.vqt=function(){e.prototype.vqt.call(this),a.removeEventListener("resize",this.Pqt),a.addEventListener("resize",this.Pqt),this.show()},s.Bqt=function(){var e=this.Sqt();if(e){var r=e.getClientRects();_.oa.pu?this.Oqt(e,r):this.Rqt(e,r)}},s.Sqt=function(){return this.contentEl().parentElement},s.Rqt=function(e,r){},s.Oqt=function(e,r){},s.pc=function(){a.removeEventListener("resize",this.Pqt),e.prototype.pc.call(this),this.hide(),_.oa.pu&&(this.el().removeAttribute("style"),this.contentEl().removeAttribute("style"))},s.createEl=function(){var r=e.prototype.createEl.call(this);r.className=this.buildCSSClass();var s=this.contentEl();ir(s,"theo-menu-content");var o=new Fu(this.player(),this.sjt,this);return s.parentNode.insertBefore(o.el(),s),this.Lqt=o,r},s.gqt=function(e){},s.show=function(){return this.Bqt(),e.prototype.show.call(this)},s.dispose=function(){this.Lqt&&(this.Lqt.dispose(),this.Lqt=void 0),this.Dqt=null,e.prototype.dispose.call(this)},M(r,[{key:"menuHeader",get:function(){return this.Lqt}},{key:"menuItems",get:function(){return this.children()}}]),r}(Fs)),Fh=function(){function e(e){this.Mqt=void 0,this.jqt=void 0,this.aC=void 0,this.Dqt=void 0,this.jqt=this.Mqt=e,this.aC=h.createElement("div"),this.aC.className="theo-tertiary-background theo-menu-animation-container",this.aC.appendChild(this.jqt.Tqt),this.Dqt=this.Mqt.player().el()}var r=e.prototype;return r.Cqt=function(e){e.Ym(),this.aC.appendChild(e.Tqt)},r.Nqt=function(e){this.aC.removeChild(e.Tqt)},r.kqt=function(e,r){if(e!=this.Mqt){var s=this.Mqt;if(this.Mqt=e,this.Mqt.jm(),this.Eqt.focus(),_.oa.pu)s.Ym();else{var o=w5("transform");s.Tqt.style.opacity="0",s.Tqt.style[o]="replace"===r?"translateX(-100%)":"translateX(100%)",this.Mqt.Tqt.style.opacity="1",this.Mqt.Tqt.style[o]="",l(function(){s.Ym(),s.Tqt.style[o]=""},300)}}},r.vqt=function(){this.Fqt(),this.Mqt.jm(),this.Uqt()}
1,r.pc=function(){this.Fqt(),this.Mqt.Ym(),this.jqt.Ym(),this.Mqt=this.jqt,this.Uqt()},r.Uqt=function(){var e=this;wZ(function(){is(e.aC,"theo-no-transition"),is(e.Mqt.Tqt,"theo-no-transition")})},r.Fqt=function(){ir(this.aC,"theo-no-transition"),ir(this.Mqt.Tqt,"theo-no-transition")},r.HBt=function(){this.aC=null,this.Dqt=null,this.jqt=null,this.Mqt=null},M(e,[{key:"sp",get:function(){return this.aC}},{key:"Eqt",get:function(){return this.Mqt}}]),e}(),Fc=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s)||this).Hqt=void 0,u.Xqt=void 0,u.Hqt=o,u.menuHeader.yqt=!0,u}j(r,e);var s=r.prototype;return s.xqt=function(e,r){var s=new Ff(e,r,this);return s.subMenu.bqt=this.bqt,s},s.pqt=function(){this.Vqt()},s.gqt=function(r){e.prototype.gqt.call(this,r),this.Vqt()},s.Vqt=function(){this.parentMenu.Aqt(this)},s.buildCSSClass=function(){return"theo-submenu "+(this.Xqt?"":"theo-leaf-submenu ")+"theo-menu-content theo-menu-content-animatable "+e.prototype.buildCSSClass.call(this)},s.addSubMenuItem=function(r){this.Xqt=!0;var s=e.prototype.addSubMenuItem.call(this,r);return this.removeClass("theo-leaf-submenu"),s},M(r,[{key:"Tqt",get:function(){return this.el()}},{key:"parentMenu",get:function(){return this.Hqt}}]),r}(Fa),Ff=function(e){function r(r,s,o){var u;return(u=e.call(this,r,iD({selectable:!1},s),o)||this).Wqt=void 0,u.Wqt=new Fc(r,s,o),u}return j(r,e),r.prototype.handleClick=function(e){this.parentMenu.mqt(this.subMenu)},M(r,[{key:"subMenu",get:function(){return this.Wqt}}]),r}(Fo),Fl=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s)||this).zqt=void 0,u.qqt=!1,u.zqt=o,u}j(r,e);var s=r.prototype;return s.createEl=function(){var r=MG.createEl("div",{className:this.buildCSSClass()});return this.Gqt=e.prototype.createEl.call(this),this.Gqt.className=e.prototype.buildCSSClass.call(this),ir(this.Gqt,"theo-menu-content-animatable"),r.appendChild(this.Gqt),this.bqt=new Fh(this),r.appendChild(this.bqt.sp),r},s.buildCSSClass=function(){return"theo-menu-animatable "+e.prototype.buildCSSClass.call(this)},s.xqt=function(e,r){var s=new Ff(e,r,this);return s.subMenu.bqt=this.bqt,s},s.Rqt=function(r,s){e.prototype.Rqt.call(this,r,s);var o=this.Dqt.getClientRects(),u=o.length>0&&o[0],a=E(getComputedStyle(this.el()).fontSize);Ax(this.el(),this.zqt.el(),u,a)},s.pqt=function(){this.zqt.closeMenu()},s.dispose=function(){this.qqt||(this.qqt=!0,this.zqt=null,this.Gqt=null,e.prototype.dispose.call(this),this.bqt&&(this.bqt.HBt(),this.Iqt=null))},M(r,[{key:"menuButton",get:function(){return this.zqt}},{key:"Tqt",get:function(){return this.Gqt}}]),r}(Fa),Fp=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).Yqt=void 0,o.$qt=!1,o.Qqt=1,o.Tp=!0,o.Zqt=function(e){var r,s=o.el().contains(e.target),u=o.Yqt.el().contains(e.target),a=!1;_.oa.pu&&o.Kqt&&(a=(null==(r=o.el().parentElement)?void 0:r.querySelector(".theo-mobile-menu-background"))===e.target),s||u||!o.$qt||(a&&e.preventDefault(),o.closeMenu())},o.Jqt=function(e){27===e.which&&(o.closeMenu(),o.focus())},o.cV=function(){o.$qt&&o.closeMenu()},o.tGt=function(){o.Yqt.menuItems.length>=o.Qqt?o.show():(o.closeMenu(),o.hide())},o.Yqt=new Fl(r,s,t8(o)),o.player().getChild("controlBarMenuContainer").addChild(o.Yqt),o.el().setAttribute("aria-haspopup","true"),_.oa.$e?(o.on(h,"touchend",o.Zqt),new Fr(o.el())):(o.on(h,"click",o.Zqt),o.on(h,"keydown",o.Jqt),o.on(h,bt.UL,o.closeMenu)),o.Qzt.addEventListener("seeking",o.cV),o.on(o.Yqt,"menuchange",o.tGt),o.tGt(),o}j(r,e);var s=r.prototype;return s.isMenuOpen=function(){return this.$qt},s.openMenu=function(){this.Tp&&!this.$qt&&(this.Yqt.vqt(),this.el().setAttribute("aria-expanded","true"),this.$qt=!0,this.Yqt.focus())},s.closeMenu=function(){this.Tp&&this.$qt&&(this.Yqt.pc(),this.el().setAttribute("aria-expanded","false"),this.$qt=!1)},s.buildCSSClass=function(){return"theo-controlbar-button vjs-menu-button vjs-menu-button-popup "+e.prototype.buildCSSClass.call(this)},s.createEl=function(r,s,o){return e.prototype.createEl.call(this,"button",{},{"aria-live":"off"})},s.handleClick=function(){this.$qt?this.closeMenu():this.openMenu()},s.enable=function(){return this.Tp=!0,e.prototype.enable.call(this)},s.disable=function(){return this.closeMenu(),this.Tp=!1,e.prototype.disable.call(this)},s.dispose=function(){this.player().removeChild(this.Yqt),this.Yqt.dispose(),this.Qzt.removeEventListener("seeking",this.cV),e.prototype.dispose.call(this)},M(r,[{key:"Kqt",get:function(){return!!this.el().parentElement&&null!==this.el().parentElement.querySelector(".theo-mobile-menu-background")}},{key:"menu",get:function(){return this.Yqt}},{key:"minimumMenuItems",set:function(e){this.Qqt=e,this.tGt()}}]),r}(Fi(MG.getComponent("Button"))),Fv=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).nGt=void 0,o.nGt=s.iGt,o}j(r,e);var s=r.prototype;return s.handleFocus=function(r){e.prototype.handleFocus.call(this,r),this.nGt.addClass("focus-within")},s.handleBlur=function(r){e.prototype.handleBlur.call(this,r),this.nGt.removeClass("focus-within")},r}
1(MG.getComponent("VolumeBar")),Fd=MG.getComponent("VolumeControl"),Fy=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).rGt=void 0,o.rGt=new Fv(r,{iGt:t8(o)}),o.addChild(o.rGt),o}return j(r,e),r}(Fd);Fy.prototype.sjt=iD({},Fd.prototype.sjt,{children:[]}),MG.registerComponent("VolumeControl",Fy);var Fg=MG.getComponent("ControlBar"),Fm=MG.getComponent("Component"),Fw=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).addChild("THEOControlBarShadow",null,0),o}j(r,e);var s=r.prototype;return s.addMenuButton=function(e){e=iD({playerOptions:this.sjt.playerOptions},e);var r=new Fp(this.player(),e);return this.addChild(r),r},s.removeMenuButton=function(e){this.removeChild(e)},s.createEl=function(){var r=e.prototype.createEl.call(this);return r.className=this.buildCSSClass(),r},s.buildCSSClass=function(){return"theo-secondary-color vjs-control-bar "+e.prototype.buildCSSClass.call(this)},r}(Fg),Fb=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},s.buildCSSClass=function(){return"theo-tertiary-color theo-control-bar-shadow"},r}(Fm);Fw.prototype.sjt=iD({},Fg.prototype.sjt,{children:["progressControl","playToggle","muteToggle","volumeControl","currentTimeDisplay","timeDivider","durationDisplay","liveDisplay","remainingTimeDisplay","customControlSpacer","activeQualityLabel","vrButton","descriptionsButton","subtitlesButton","chromecastButton","airplayButton","audioTrackButton","SettingsButton","fullscreenToggle"]}),MG.registerComponent("ControlBar",Fw),MG.registerComponent("THEOControlBarShadow",Fb);var Fk=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).on(r,"timeupdate",o.updateContent),o.on(r,"emptied",o.updateContent),o}return j(r,e),r.prototype.updateContent=function(){var e=this.player(),r=Mz(e),s=M0(e),o=this.localize("Current Time"),u=M3(b.max(0,r-s),M1(e));u!==this.mjt&&(this.mjt=u,this.contentEl().innerHTML='<span class="vjs-control-text">'+o+"</span> "+u)},r}(MG.getComponent("CurrentTimeDisplay"));MG.registerComponent("CurrentTimeDisplay",Fk);var FE=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).eGt=function(){return o.updateContent()},o.off(r,"durationchange",o.updateContent),o.on(r,"durationchange",o.updateContent),o.off(r,"timeupdate",o.updateContent),o.on(r,"timeupdate",o.updateContent),o.off(r,"emptied",o.updateContent),o.on(r,"emptied",o.updateContent),o.Qzt&&o.Qzt.clip.addEventListener("change",o.eGt),o}return j(r,e),r.prototype.updateContent=function(){var e=A(this.Qzt.duration)?NaN:M1(this.player()),r=this.Qzt.clip.endTime-this.Qzt.clip.startTime,s=b.min(e,r)||0;if(this.ly!==s){this.ly=s;var o=this.localize("Duration Time"),u=M3(s);this.hjt.innerHTML='<span class="vjs-control-text">'+o+"</span> "+u}},r}(Fi(MG.getComponent("DurationDisplay")));MG.registerComponent("DurationDisplay",FE);var FA=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).controlText(o.localize("Live")),o.sGt(),o.on(o.player(),"durationchange",o.sGt),_.oa.$e&&new Fr(o.el()),o}j(r,e);var s=r.prototype;return s.buildCSSClass=function(){return"theo-live-control "+e.prototype.buildCSSClass.call(this)},s.createEl=function(){var r=e.prototype.createEl.call(this,"button",{},{"aria-live":"off"});return this.uGt=MG.createEl("span",{className:"theo-live-control-indicator"}),r.insertBefore(this.uGt,r.firstChild),r},s.createControlTextEl=function(r){var s=e.prototype.createControlTextEl.call(this,r);return MG.removeClass(s,"vjs-control-text"),MG.addClass(s,"theo-live-control-text"),s},s.handleClick=function(){var e,r=this.Qzt;if(void 0!==(null==(e=r.hesp)?void 0:e.manifest))r.hesp.goLive();else{var s=this.player();s.currentTime(MZ(s)),s.play()}},s.sGt=function(){MK(this.player())?this.show():this.hide()},r}(Fi(MG.getComponent("Button")));MG.registerComponent("LiveDisplay",FA);var Fx=function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.buildCSSClass=function(){return"theo-secondary-color vjs-loading-spinner "+e.prototype.buildCSSClass.call(this)},s.createEl=function(){var r=e.prototype.createEl.call(this);r.className=this.buildCSSClass();var s=MG.createEl("div",{className:"theo-loading-spinner-rotator"}),o=MG.createEl("div",{className:"theo-loading-spinner-circle-left"}
1),u=MG.createEl("div",{className:"theo-loading-spinner-circle-right"});return s.appendChild(o),s.appendChild(u),r.appendChild(s),r},r}(MG.getComponent("LoadingSpinner"));MG.registerComponent("LoadingSpinner",Fx);var FT=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).oGt=[],o.on(r,"emptied",o.update),o}return j(r,e),r.prototype.update=function(){var e=this.player(),r=mo.uP(M2(e)),s=r.bC(0),o=mo.uP(e.buffered()).UC(r),u=r.EC(0)-s,a=o.Zg&&o.EC(o.Zg-1)||0;a=b.max(0,a-s);var c=this.el(),f=this.oGt,l=function(e,r){var s=e/r||0;return 100*(s>=1?1:s)+"%"};c.style.width=l(a,u);for(var p=0;p<o.Zg;p++){var v=o.bC(p),d=o.EC(p),y=f[p];y||(y=h.createElement("div"),f.push(y),c.appendChild(y)),y.style.left=l(v-s,a),y.style.width=l(d-v,a)}for(var g=f.length;g>o.Zg;g--)c.removeChild(f[g-1]);f.length=o.Zg},r}(MG.getComponent("LoadProgressBar"));MG.registerComponent("LoadProgressBar",FT);var FC=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).Zgt=function(){var e=o.player(),r=e.scrubbing()?e.getCache().currentTime:e.currentTime(),s=(r-M0(e))/M1(e)||0;s=tJ(s,0,1),o.update(r,100*s+"%")},o.keepTooltipsInside&&(MG.addClass(o.tooltip,"theo-secondary-color"),o.tooltip.appendChild(o.aGt)),Q.pu&&(o.on(r,"firstplay",o.Zgt),o.on(r,"play",o.Zgt),o.on(r,"seeking",o.Zgt),o.on(r,"seeked",o.Zgt),o.on(r,"timeupdate",o.Zgt),o.Qzt.addEventListener("dimensionchange",o.Zgt),o.Qzt.presentation.addEventListener("presentationmodechange",o.Zgt),r.on("ready",function(){o.on(r.controlBar.progressControl,"touchmove",O(function(e){return o.handleTouchMove(e)},25)),o.Zgt()})),o}j(r,e);var s=r.prototype;return s.handleMouseMove=function(e){var r=this.player(),s=M0(r)+this.calculateDistance(e)*M1(r),o=e.pageX-AA(this.el().parentNode).left;this.update(s,o+"px")},s.handleTouchMove=function(e){var r=this.player(),s=M0(r)+this.calculateDistance(e)*M1(r),o=e.touches[0].pageX-AA(this.el().parentNode).left;this.update(s,o+"px")},s.createEl=function(){var r=e.prototype.createEl.call(this);return this.aGt=MG.createEl("span",{className:"theo-time-tooltip-text"}),r},s.update=function(e,r){var s=this.hGt(e);if(this.el().style.left=r,this.el().setAttribute("data-current-time",s),this.keepTooltipsInside&&(AT(this.aGt,s),this.tooltip.offsetParent)){var o=this.player().contentEl(),u=o.getClientRects(),a=u.length>0&&u[0],h=E(getComputedStyle(o).fontSize);Ax(this.tooltip,this.el(),a,h)}},s.hGt=function(e){var r=this.player(),s=e-MZ(r);return M3(MK(r)?b.min(s,0):s,M1(r))},r}(Fi(MG.getComponent("MouseTimeDisplay")));MG.registerComponent("MouseTimeDisplay",FC);var FS=function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.updateDataAttr=function(){var e=Mz(this.player());this.el().setAttribute("data-current-time",this.hGt(e))},s.hGt=function(e){var r=this.player();return M3(e-MZ(r),M1(r))},s.createEl=function(){var r=e.prototype.createEl.call(this);return r.className=this.buildCSSClass(),r},s.buildCSSClass=function(){return"theo-primary-color vjs-play-progress vjs-slider-bar "+e.prototype.buildCSSClass.call(this)},r}(MG.getComponent("PlayProgressBar"));MG.registerComponent("PlayProgressBar",FS);var FR=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).on(r,"timeupdate",o.updateContent),o.on(r,"emptied",o.updateContent),o}return j(r,e),r.prototype.updateContent=function(){var e=this.player(),r=M1(e);if(r){var s=M2(e).end(0),o=this.localize("Remaining Time"),u=M3(b.max(0,s-e.currentTime()),r);u!==this.mjt&&(this.mjt=u,this.contentEl().innerHTML='<span class="vjs-control-text">'+o+"</span> -"+u)}},r}(MG.getComponent("RemainingTimeDisplay"));MG.registerComponent("RemainingTimeDisplay",FR);var FL=function(){function e(e,r){var s=this;this.cGt=void 0,this.fGt=void 0,this.vGt=void 0,this.dGt=void 0,this.lGt=[],this.aqt=void 0,this.aBt=function(e){var r=e.track;r.kind===vV.kS&&(r.addEventListener("addcue",s._Gt),r.addEventListener("removecue",s._Gt),r.addEventListener("readystatechange",s._Gt)),s._Gt()},this.tOt=function(e){var r=e.track;r.kind===vV.kS&&(r.removeEventListener("addcue",s._Gt),r.removeEventListener("removecue",s._Gt),r.removeEventListener("readystatechange",s._Gt)),s._Gt()},this.gGt=function(e){var r,o,u,a,h,c,f,l,p,v=s.wGt,d=(r=s.cGt,a=AA(r),h=r.offsetWidth,c=r.offsetHeight,f=a.top,l=a.left,void 0===e.changedTouches?(u=e.pageX,o=e.pageY):(u=e.changedTouches[0].pageX,o=e.changedTouches[0].pageY),p=tJ((f-o+c)/c,0,1),{x:tJ((u-l)/h,0,1),y:p}),y=M0(v)+d.x*M1(v);y===v.duration()&&(y-=.1),s.yGt(y)},this.pGt=function(){s.fGt.Ym()},this.mGt=function(){s.fGt.jm()},this._Gt=function(){var e=s.kGt();e!==s.dGt&&(s.Yg(),e&&s.bGt(e))},this.wGt=r,this.vGt=e,this.fGt=new FP,this.wGt.contentEl().appendChild(this.fGt.sp),this.AGt(),this.TGt()}var r=e.prototype;return r.bGt=function(e){if(e.kind===vV.kS){this.dGt=e;var r=e.cues.sort(function(e,r){return e.startTime-r.startTime});this.fGt.bc(r);for(var s=0;s<r.length;s++){var o=r[s],u=r[s+1],a=!u||o.endTime!==u.startTime,h=new F_(o,this.Qzt,a);this.lGt.push(h),this.cGt.appendChild(h.sp)}}},r.TGt=function(){this.Qzt.addEventListener("loadedmetadata",this._Gt),this.Qzt.addEventListener("loadeddata",this._Gt),this.Qzt.addEventListener("sourcechange",this._Gt),this.Qzt.textTracks.addEventListener("addtrack",this.aBt),this.Qzt.textTracks.addEventListener("removetrack",this.tOt),this.Qzt.textTracks.addEventListener("change",this._Gt)},r.SGt=function(){this.Qzt.removeEventListener("loadedmetadata",this._Gt),this.Qzt.removeEventListener("loadeddata",this._Gt),this.Qzt.removeEventListener("sourcechange",this._Gt),this.Qzt.textTracks.removeEventListener("addtrack",this.aBt),this.Qzt.textTracks.removeEventListener("removetrack",this.tOt),this.Qzt.textTracks.removeEventListener("change",this._Gt)},r.AGt=function(){this.cGt=h.createElement("div"),ir(this.cGt,"theoplayer-chapterbar"),this.vGt.appendChild(this.cGt),this.vGt.addEventListener("mousemove",this.gGt),this.vGt.addEventListener("mouseenter",this.mGt),this.vGt.addEventListener("mouseleave",this.pGt)},r.kGt=function(){if(this.Qzt.readyState>=f1.Qw)for(var e=0,r=this.Qzt.textTracks;e<r.length;e++){var s=r[e];if(s.kind===vV.kS&&s.mode===fk.yw&&s.cues.length>0&&s.readyState!==ps.ERROR)return s}},r.yGt=function(e){this.fGt.Ec(e)},r.EGt=function(){this.fGt.jm()},r.RGt=function(){this.fGt.Ym()},r.Yg=function(){for(var e=0,r=this.lGt;e<r.length;e++){var s=r[e];this.cGt.removeChild(s.sp),s.Kl()}this.fGt.Yg(),this.lGt=[],this.dGt=void 0},r.HBt=function(){this.SGt(),this.Yg(),n9(this.fGt.sp),this.aqt=void 0},M(e,[{key:"Qzt",get:function(){return this.aqt||(this.aqt=this.wGt.tech({IWillNotUseThisInPlugins:!0}
1).theoplayer()),this.aqt}}]),e}(),F_=function(){function e(e,r,s){var o=this;this.aC=void 0,this.IGt=function(){ir(o.sp,"theoplayer-chapter-indicator-active")},this.NGt=function(){is(o.sp,"theoplayer-chapter-indicator-active")},this.CGt=e,this.sC=r,this.DGt=s,this.AGt(),this.PGt()}var r=e.prototype;return r.PGt=function(){FI(this.CGt,this.sC.currentTime)&&this.IGt(),this.CGt.addEventListener("enter",this.IGt),this.CGt.addEventListener("exit",this.NGt)},r.AGt=function(){var e=this.sC.seekable.start(0),r=this.sC.seekable.end(this.sC.seekable.length-1)-e,s=this.CGt.startTime,o=this.CGt.endTime-s,u=h.createElement("div");ir(u,"theoplayer-chapter-indicator");var a=h.createElement("div");ir(a,"theoplayer-chapter-indicator-highlight"),u.appendChild(a),this.DGt&&ir(u,"theoplayer-chapter-indicator-discontinuous");var c=b.min(s/r*100,100),f=b.min(o/r*100,100-c);return u.style.width=f+"%",u.style.left=c+"%",this.aC=u,this.aC},r.Kl=function(){this.CGt.removeEventListener("enter",this.IGt),this.CGt.removeEventListener("exit",this.NGt),this.aC=void 0},M(e,[{key:"sp",get:function(){return this.aC}}]),e}(),FP=function(){function e(){this.BGt=[],this.sp=void 0,this.xGt=void 0,this.OGt=0,this.AGt()}var r=e.prototype;return r.AGt=function(){return this.sp=h.createElement("div"),ir(this.sp,"theoplayer-chaptertitle"),this.sp.style.display="none",this.xGt=h.createElement("p"),this.sp.appendChild(this.xGt),this.sp},r.Ym=function(){this.OGt--,0===this.OGt&&is(this.sp,"theoplayer-chapter-hovering")},r.bc=function(e){this.BGt=e||[],this.BGt.length>0&&(this.sp.style.display="")},r.bQ=function(e){AT(this.xGt,e.content)},r.Yg=function(){this.BGt=[],AT(this.xGt,""),this.sp.style.display="none"},r.jm=function(){this.OGt++,this.OGt>0&&ir(this.sp,"theoplayer-chapter-hovering")},r.Ec=function(e){for(var r=0,s=this.BGt;r<s.length;r++){var o=s[r];if(FI(o,e)){this.bQ(o);break}}},e}();function FI(e,r){return new mo([e.startTime,e.endTime]).HD(r)}var FN=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).cGt=void 0,o.playingStates=[],o.on(r,"emptied",o.update),o.on(r,"seeking",o.update),o.cGt=new FL(o.el(),r),o}j(r,e);var s=r.prototype;return s.updateAriaAttributes=function(e){var r=this.player(),s=Mz(r);e.setAttribute("aria-valuenow",(100*this.LGt(s)).toFixed(2)),e.setAttribute("aria-valuetext",M3(s-MZ(r),M1(r)))},s.getPercent=function(){return this.LGt(this.player().currentTime())},s.handleMouseMove=function(e){if(!(this.Qzt&&this.Qzt.ads&&this.Qzt.ads.playing)){var r=this.player(),s=M0(r)+this.calculateDistance(e)*M1(r);s>=r.duration()&&(s=r.duration()-.1),this.cGt.yGt(s),r.currentTime(s)}},s.handleMouseDown=function(r){this.playingStates.push(!this.player().paused()),this.cGt.EGt(),e.prototype.handleMouseDown.call(this,r)},s.handleMouseUp=function(r){this.videoWasPlaying=this.playingStates.pop(),this.cGt.RGt(),e.prototype.handleMouseUp.call(this,r)},s.LGt=function(e){var r=this.player();return tJ((e-M0(r))/M1(r),0,1)},s.dispose=function(){this.cGt.HBt(),rv(this.playingStates)},r}(Fi(MG.getComponent("SeekBar")));MG.registerComponent("SeekBar",FN);var FO=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).seekBar=void 0,o.seekBar=o.getChild("seekBar"),o.on(t8(o),"touchmove",o.handleMouseMove),o.on("touchstart",o.handleMouseDown),o.seekBar.off(["touchmove","touchstart"]),o}j(r,e);var s=r.prototype;return s.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},s.handleMouseMove=function(e){this.seekBar.handleMouseMove(e)},s.handleMouseDown=function(e){this.seekBar.handleMouseDown(e)},r}(MG.getComponent("ProgressControl"));_.oa.pu&&MG.registerComponent("ProgressControl",FO);var FD=function(e){function r(r,s){return e.call(this,r,s)||this}j(r,e);var s=r.prototype;return s.updateDataAttr=function(){var e=Mz(this.player()),r=this.hGt(e);this.el().setAttribute("data-current-time",r),this.tooltip.innerHTML=r},s.hGt=function(e){var r=this.player();return M3(e-MZ(r),M1(r))},s.createEl=function(){var r=e.prototype.createEl.call(this);return r.className=this.buildCSSClass(),r},s.buildCSSClass=function(){return"theo-primary-color vjs-tooltip-progress-bar vjs-slider-bar "+e.prototype.buildCSSClass.call(this)},r}(MG.getComponent("TooltipProgressBar"));function FU(e){for(var r=0;r<e.length;r++){var s=e[r];if(s.enabled)return s}return null}function FM(e){if(e){var r;return e.label&&""!==e.label?{name:e.label,hd:!1}:{name:(r=e).height?r.height+"p":r.bandwidth?FF(r):null,description:FF(e),hd:e.height>=720}}}function FF(e){return e.bandwidth?e.bandwidth>1e7?(e.bandwidth/1e6).toFixed(0)+"Mbps":e.bandwidth>1e6?(e.bandwidth/1e6).toFixed(1)+"Mbps":(e.bandwidth/1e3).toFixed(0)+"kbps":null}MG.registerComponent("TooltipProgressBar",FD);var Fj=function(){function e(e){this.MGt=void 0,this.jGt=[],this.MGt=e}var r=e.prototype;return r.FGt=function(e){var r=this.MGt.menuItems;if(r)for(var s=0;s<r.length;s++){var o=r[s];if(o.f4===e)return o}},r.UGt=function(e){var r=this,s=this.MGt.addMenuItem();return s.f4=e,s.on("click",function(){return r.HGt(s)}),s.el().setAttribute("role","menuitemradio"),s},r.XGt=function(e){e.f4=void 0,e.off()},r.VGt=function(e){return!0},r.WGt=function(e){if(this.VGt(e)){rl(this.jGt,e)||this.jGt.push(e);var r=this.FGt(e)||this.UGt(e);return this.zGt(r),r}this.qGt(e)},r.qGt=function(e){var r=this.FGt(e);r&&(this.MGt.removeMenuItem(r),this.XGt(r)),rc(this.jGt,e)},r.HBt=function(){for(var e=[],r=0,s=this.jGt;r<s.length;r++){var o=s[r];e.push(o)}for(var u=0;u<e.length;u++){var a=e[u];this.qGt(a)}rv(e)},M(e,[{key:"GGt",get:function(){return this.jGt},set:function(e){for(var r=this.jGt,s=r.length-1;s>=0;s--){var o=r[s];rl(e,o)||this.qGt(o)}for(var u=0;u<e.length;u++){var a=e[u];this.WGt(a)}this.MGt.Bqt()}}]),e}(),FH=function(e){function r(r,s,o){var u;return(u=e.call(this,r.subMenu)||this).YGt=void 0,u.aqt=void 0,u.$Gt=void 0,u.QGt=void 0,u.ZGt=void 0,u.KGt=void 0,u.JGt=void 0,u.tYt=void 0,u.nYt=void 0,u.iYt=function(e){u.rYt(),e.track.addEventListener("update",u.zP)},u.eYt=function(e){u.rYt(),e.track.removeEventListener("update",u.zP)},u.rYt=function(){var e=FU(u.aqt.videoTracks);if(e!==u.QGt){var r=[];
1u.QGt&&(u.QGt.removeEventListener("activequalitychanged",u.rFt),u.QGt.removeEventListener("targetqualitychanged",u.uFt)),u.QGt=e,e&&(e.addEventListener("activequalitychanged",u.rFt),e.addEventListener("targetqualitychanged",u.uFt),r=[void 0].concat(FV(Fq(e.qualities.filter(function(e){return e.available}))))),u.GGt=r,u.uFt(),u.rFt()}},u.zP=function(e){var r=e.track;if(r.enabled){var s=FV(Fq(r.qualities.filter(function(e){return e.available}))),o=r&&FY(r.targetQuality);u.ZGt=u.sYt(o,s),u.GGt=[void 0].concat(s),u.uYt()}},u.rFt=function(){u.WGt(void 0),u.uYt()},u.uFt=function(){var e=FU(u.aqt.videoTracks),r=e&&FY(e.targetQuality),s=u.sYt(r),o=u.ZGt;s!==o&&(u.ZGt=s,s&&o||u.WGt(void 0),o&&rl(u.GGt,o)&&u.WGt(o),r&&u.WGt(s),u.uYt())},u.YGt=r,u.aqt=s,u.$Gt=o,u.nYt={name:u.$Gt.localize("Automatic"),hd:!1},u.oYt(),AT(u.MGt.menuHeader.el(),u.$Gt.localize("Quality")),u.GGt=[void 0],u.aqt.videoTracks.addEventListener("addtrack",u.iYt),u.aqt.videoTracks.addEventListener("removetrack",u.eYt),u.aqt.videoTracks.addEventListener("change",u.rYt),u.aqt.videoTracks.addEventListener("update",u.zP),u.rYt(),u}j(r,e);var s=r.prototype;return s.oYt=function(){var e=h.createElement("span");e.className="theo-settings-control-menu-item-title",AT(e,this.$Gt.localize("Quality"));var r=h.createElement("span");r.className="theo-primary-color theo-settings-control-menu-item-value",this.KGt=h.createElement("span"),this.KGt.className="theo-settings-control-menu-quality-automatic",AT(this.KGt,this.nYt.name),this.JGt=h.createElement("span"),AT(this.JGt,this.nYt.name),this.tYt=h.createElement("span"),this.tYt.className="theo-primary-color theo-settings-control-menu-item-hd-label",AT(this.tYt,this.$Gt.localize("HD")),r.appendChild(this.KGt),r.appendChild(h.createTextNode(" ")),r.appendChild(this.JGt),r.appendChild(h.createTextNode(" ")),r.appendChild(this.tYt),this.YGt.el().appendChild(e),this.YGt.el().appendChild(r),this.YGt.el().setAttribute("aria-label",this.$Gt.localize("Open the video quality settings menu"))},s.uYt=function(){var e=this.QGt,r=e&&FY(e.targetQuality),s=e&&e.activeQuality,o=FM(this.sYt(r||s))||this.nYt;AT(this.JGt,o.name),io(this.KGt,"vjs-hidden",!!r),io(this.tYt,"vjs-hidden",!o.hd)},s.zGt=function(e){var r=FM(e.f4)||this.nYt,s=r.name;r.hd&&(s+='<span class="theo-primary-color theo-settings-control-menu-item-hd-label">'+this.$Gt.localize("HD")+"</span>"),r.description&&(s+='<span class="theo-settings-control-submenu-item-alternate-value">'+r.description+"</span>"),e.el().innerHTML=s,e.el().setAttribute("aria-label",this.$Gt.localize("Set video quality to ")+r.name),e.f4?e.selected(e.f4===this.ZGt):e.selected(!this.ZGt)},s.HGt=function(e){this.QGt.targetQuality=e.f4&&e.f4.videoQualities},s.sYt=function(e,r){for(var s=r||this.GGt,o=0;o<s.length;o++){var u=s[o];if(u&&-1!==u.videoQualities.indexOf(e))return u}return null},s.HBt=function(){this.aqt.videoTracks.removeEventListener("addtrack",this.iYt),this.aqt.videoTracks.removeEventListener("removetrack",this.eYt),this.aqt.videoTracks.removeEventListener("change",this.rYt),this.aqt.videoTracks.removeEventListener("update",this.zP),this.QGt&&(this.QGt.removeEventListener("activequalitychanged",this.rFt),this.QGt.removeEventListener("targetqualitychanged",this.uFt)),e.prototype.HBt.call(this)},r}(Fj),FB=function(){function e(e){this.aYt=e}var r=e.prototype;return r.add=function(e){this.aYt.push(e)},r.addEventListener=function(e,r){this.aYt[0].addEventListener(e,r)},r.removeEventListener=function(e,r){this.aYt[0].removeEventListener(e,r)},M(e,[{key:"height",get:function(){return this.aYt[0].height}},{key:"width",get:function(){return this.aYt[0].width}},{key:"firstFrame",get:function(){return this.aYt.length>1?null:this.aYt[0].firstFrame}},{key:"frameRate",get:function(){return this.aYt.length>1?null:this.aYt[0].frameRate}},{key:"bandwidth",get:function(){return this.aYt[0].bandwidth}},{key:"codecs",get:function(){return this.aYt.length>1?null:this.aYt[0].codecs}},{key:"id",get:function(){return this.aYt.length>1?"":this.aYt[0].id}},{key:"uid",get:function(){return this.aYt.length>1?-1:this.aYt[0].uid}},{key:"name",get:function(){return this.aYt.length>1?"":this.aYt[0].name}},{key:"videoQualities",get:function(){return this.aYt}},{key:"label",get:function(){return this.aYt[0].label},set:function(e){for(var r=0,s=this.aYt;r<s.length;r++)s[r].label=e}}]),e}();function FV(e){for(var r=[],s=0;s<e.length;s++){for(var o=e[s],u=!1,a=0;a<r.length;a++){var h=r[a];if(h.label&&o.label&&h.label===o.label||fs(FM(h),FM(o))){h.add(o),u=!0;break}}u||r.push(new FB([o]))}return r}function FX(e,r){return e&&r?lP(e,r):lC.Sy}function FW(e,r){return e===r?lC.Sy:FX(e.height,r.height)||FX(e.width,r.width)||FX(e.bandwidth,r.bandwidth)}function Fq(e){return rr(e,FW).reverse()}function FY(e){return Z(e)?e.length>0?e[0]:null:e}function F$(e){return 1===e?"Normal":""+b.round(100*e)/100}var FJ=function(e){function r(r,s,o,u){var a;return(a=e.call(this,r.subMenu)||this).YGt=void 0,a.aqt=void 0,a.$Gt=void 0,a.hYt=void 0,a.cYt=void 0,a.MMt=function(){a.hYt&&a.WGt(a.hYt);var e=a.aqt.playbackRate;a.hYt=e,AT(a.cYt,a.$Gt.localize(F$(e))),e&&a.WGt(e)},a.YGt=r,a.aqt=s,a.$Gt=o,a.oYt(),AT(a.MGt.menuHeader.el(),a.$Gt.localize("Speed")),a.GGt=u,a.aqt.addEventListener("ratechange",a.MMt),a.MMt(),a}j(r,e);var s=r.prototype;return s.oYt=function(){var e=h.createElement("span");e.className="theo-settings-control-menu-item-title",AT(e,this.$Gt.localize("Speed"));var r=h.createElement("span");r.className="theo-primary-color theo-settings-control-menu-item-value",this.cYt=r,this.YGt.el().appendChild(e),this.YGt.el().appendChild(r),this.YGt.el().setAttribute("aria-label",this.$Gt.localize("Open the video speed settings menu"))},s.UGt=function(r){var s=e.prototype.UGt.call(this,r),o=this.$Gt.localize(F$(r));return AT(s.el(),o),s.el().setAttribute("aria-label",this.$Gt.localize("Set video speed to "+o)),s},s.zGt=function(e){e.selected(e.f4===this.aqt.playbackRate)},s.HGt=function(e){this.aqt.playbackRate=e.f4},s.HBt=function(){this.aqt.removeEventListener("ratechange",this.MMt),e.prototype.HBt.call(this)},r}(Fj),FQ=function(e){function r(r,s){(o=e.call(this,r,s)||this).fYt=void 0,o.vYt=void 0,o.dYt=void 0,o.lYt=void 0,o.QGt=void 0,o._D=function(){var e=FU(o.Qzt.videoTracks);
1e!==o.QGt&&(o.QGt&&o.QGt.removeEventListener("activequalitychanged",o.rFt),o.QGt=e,e&&e.addEventListener("activequalitychanged",o.rFt),o.rFt())},o.rFt=function(){var e=o.QGt&&o.QGt.activeQuality,r=!!(e&&e.height>=720);o.player().toggleClass("theo-hd",r)},ir(o.menu.el(),"theo-settings-control-menu"),AT(o.menu.menuHeader.el(),r.localize("Settings")),o.controlText(r.localize("Settings")),o.fYt=o.menu.addSubMenuItem({name:"QualityMenuItem"}),o.vYt=new FH(o.fYt,o.Qzt,r);var o,u=s.playerOptions.playbackRates||[];return o.dYt=o.menu.addSubMenuItem({name:"PlaybackRateMenuItem"}),o.lYt=new FJ(o.dYt,o.Qzt,r,u),o.Qzt.videoTracks.addEventListener(["addtrack","removetrack","change"],o._D),o._D(),o}j(r,e);var s=r.prototype;return s.createEl=function(){var r=e.prototype.createEl.call(this),s=MG.createEl("span",{className:"theo-settings-control-label-hd theo-primary-background"});return AT(s,this.localize("HD")),r.appendChild(s),r},s.buildCSSClass=function(){return"vjs-icon-cog theo-settings-control-button "+e.prototype.buildCSSClass.call(this)},s.dispose=function(){this.QGt&&(this.QGt.removeEventListener("activequalitychanged",this.rFt),this.QGt=void 0),this.Qzt.videoTracks.removeEventListener(["addtrack","removetrack","change"],this._D),this.vYt.HBt(),this.lYt.HBt(),e.prototype.dispose.call(this)},r}(Fp);MG.registerComponent("SettingsButton",FQ);var FG=function(e){function r(r,s){var o;return(o=e.call(this,r)||this).ylt=void 0,o._Yt=function(e){var r=e.track;o.WGt(r),r.addEventListener("update",o.gYt)},o.wYt=function(e){var r=e.track;o.qGt(r),r.removeEventListener("update",o.gYt)},o.yYt=function(e){return o.pYt()},o.gYt=function(){for(var e=0,r=o.GGt;e<r.length;e++){var s=r[e];o.WGt(s)}},o.ylt=s,o.ylt.addEventListener("addtrack",o._Yt),o.ylt.addEventListener("removetrack",o.wYt),o.ylt.addEventListener("change",o.yYt),o.pYt(),o}j(r,e);var s=r.prototype;return s.mYt=function(e){var r=e.label;if(r)return r;var s=e.language;if(s){var o=RO(s);if(o)return o.yA}return s||""},s.pYt=function(){this.GGt=this.ylt},s.HBt=function(){this.ylt.removeEventListener("addtrack",this._Yt),this.ylt.removeEventListener("removetrack",this.wYt),this.ylt.removeEventListener("change",this.yYt),e.prototype.HBt.call(this)},r}(Fj),FK=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s.audioTracks)||this).Qzt=void 0,u.$Gt=void 0,u.Qzt=s,u.$Gt=o,AT(u.MGt.menuHeader.el(),u.$Gt.localize("Language")),u}j(r,e);var s=r.prototype;return s.zGt=function(e){var r=e.f4,s=this.mYt(r);AT(e.el(),this.mYt(r)),e.el().setAttribute("aria-label",this.$Gt.localize("Set the audio language to")+" "+s),e.selected(r.enabled)},s.HGt=function(e){for(var r=e.f4,s=0,o=this.Qzt.audioTracks;s<o.length;s++){var u=o[s];u!==r&&(u.enabled=!1)}r.enabled=!0},r}(FG),Fz=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).kYt=void 0,o.minimumMenuItems=2,o.kYt=new FK(o.menu,o.Qzt,r),o.controlText(r.localize("Language")),o}j(r,e);var s=r.prototype;return s.buildCSSClass=function(){return"vjs-icon-audio theo-audio-track-control-button "+e.prototype.buildCSSClass.call(this)},s.dispose=function(){this.kYt.HBt(),e.prototype.dispose.call(this)},r}(Fp);MG.registerComponent("audioTrackButton",Fz);var FZ=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s.textTracks)||this).Qzt=void 0,u.$Gt=void 0,u.Qzt=s,u.$Gt=o,AT(u.MGt.menuHeader.el(),o.localize("Subtitles")),u}j(r,e);var s=r.prototype;return s.VGt=function(r){return!!e.prototype.VGt.call(this,r)&&vz(r.kind)},s.UGt=function(r){var s=this,o=e.prototype.UGt.call(this,r);ir(o.el(),"theo-text-track-menu-item");var u=h.createElement("span");o.vw=u;var a=h.createElement("div");a.className="theo-text-track-menu-item-toggle",o.bYt=a;var c=function(e){return s.AYt(e,o)};o.TYt=c,a.addEventListener("click",c);var f=h.createElement("div");return f.className="theo-text-track-menu-item-toggle-slider",a.appendChild(f),o.el().appendChild(u),o.el().appendChild(a),o},s.zGt=function(e){var r=e.f4,s=this.mYt(r);AT(e.vw,s),e.el().setAttribute("aria-label",this.$Gt.localize("Set the subtitle language to")+" "+s),e.el().setAttribute("role","menuitemcheckbox"),e.selected(r.mode===fk.yw)},s.XGt=function(e){e.bYt.removeEventListener("click",e.TYt)},s.HGt=function(e){for(var r=e.f4,s=0,o=this.Qzt.textTracks;s<o.length;s++){var u=o[s];u!==r&&u.kind===r.kind&&(u.mode=fk.gw)}r.mode!==fk.yw?r.mode=fk.yw:r.mode=fk.gw},s.AYt=function(e,r){e.stopImmediatePropagation(),this.HGt(r)},r}(FG),F0=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).kYt=void 0,o.kYt=new FZ(o.menu,o.Qzt,r),o.controlText(r.localize("Subtitles")),o}j(r,e);var s=r.prototype;return s.buildCSSClass=function(){return"vjs-icon-subtitles theo-text-track-control-button "+e.prototype.buildCSSClass.call(this)},s.dispose=function(){this.kYt.HBt(),e.prototype.dispose.call(this)},r}(Fp);MG.registerComponent("subtitlesButton",F0);var F1,F2,F3,F5=function(){function e(e,r){var s=this;this.SYt=void 0,this.EYt=void 0,this.RYt=function(){is(s.SYt,"vjs-hidden");var e=s.EYt.player().contentEl().getClientRects(),r=e.length>0&&e[0],o=E(getComputedStyle(s.SYt).fontSize);Ax(s.SYt,s.EYt.el(),r,o)},this.IYt=function(){ir(s.SYt,"vjs-hidden")},this.NYt=function(){return s.HBt()},this.EYt=e,ic(e.el()),e.el().addEventListener("mouseover",function(e){ic(e.target)}),this.SYt=h.createElement("span"),this.SYt.innerHTML=this.EYt.localize(r),this.SYt.className="theo-button-tooltip vjs-hidden",this.SYt.setAttribute("aria-hidden","true"),this.EYt.el().appendChild(this.SYt),this.EYt.on("mouseover",this.RYt),this.EYt.on("mouseout",this.IYt),this.EYt.on("dispose",this.NYt)}return e.prototype.HBt=function(){this.EYt.off("mouseover",this.RYt),this.EYt.off("mouseout",this.IYt),this.EYt.off("dispose",this.NYt),n9(this.SYt)},M(e,[{key:"CYt",get:function(){return this.SYt.textContent||""},set:function(e){this.SYt.innerHTML=this.EYt.localize(e),this.IYt(),this.RYt(),ic(this.EYt.el())}}]),e}(),F4=MG.getComponent("playToggle");(F8=F3||(F3={})).$f="Pause",F8.tv="Play",F8.DYt="Replay";var F6=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).SYt=void 0,o.SLt=function(){o.controlText(o.localize(F3.DYt)),o.SYt.CYt=o.controlText()},o.controlText(o.localize(F3.tv)),o.SYt=new F5(t8(o),o.controlText()),o.Qzt.addEventListener("ended",o.SLt),_.oa.$e&&new Fr(o.el()),o}j(r,e);var s=r.prototype;return s.handlePlay=function(r){e.prototype.handlePlay.call(this,r),this.controlText(this.localize(F3.$f)),this.SYt.CYt=this.controlText()},s.handlePause=function(r){this.Qzt.ended||(e.prototype.handlePause.call(this,r),this.controlText(this.localize(F3.tv)),this.SYt.CYt=this.controlText())},s.dispose=function(){this.SYt.HBt(),this.Qzt.removeEventListener("ended",this.SLt),e.prototype.dispose.call(this)},r}(Fi(F4));MG.registerComponent("playToggle",F6);var F8,F7,F9=MG.getComponent("fullscreenToggle");(je=F7||(F7={})).PYt="Exit fullscreen",je.BYt="Fullscreen";var jt=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).SYt=void 0,o.controlText(o.localize(F7.BYt)),o.SYt=new F5(t8(o),o.controlText()),_.oa.$e&&new Fr(o.el()),o}j(r,e);var s=r.prototype;return s.handleClick=function(r){this.Qzt.prepareWithUserAction(),e.prototype.handleClick.call(this,r)},s.handleFullscreenChange=function(r){e.prototype.handleFullscreenChange.call(this,r);var s=this.localize(this.player().isFullscreen()?F7.PYt:F7.BYt);this.controlText(s),this.SYt.CYt=this.controlText()},s.dispose=function(){this.SYt.HBt(),e.prototype.dispose.call(this)},r}(Fi(F9));MG.registerComponent("fullscreenToggle",jt);var je,jn,ji=MG.getComponent("muteToggle");(jy=jn||(jn={})).xYt="Unmute",jy.OYt="Mute";var jr=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).SYt=void 0,o.controlText(o.localize(jn.OYt)),o.SYt=new F5(t8(o),o.controlText()),_.oa.$e&&new Fr(o.el()),ib&&(o.removeClass("vjs-hidden"),o.on(r,"loadstart",function(){o.removeClass("vjs-hidden")})),o}j(r,e);var s=r.prototype;return s.update=function(r){e.prototype.update.call(this,r);var s=this.localize(this.player().muted()?jn.xYt:jn.OYt);this.controlText(s),this.SYt.CYt=this.controlText()},s.dispose=function(){this.SYt.HBt(),e.prototype.dispose.call(this)},r}(ji);MG.registerComponent("muteToggle",jr);var js=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.createEl=function(){var r=e.prototype.createEl.call(this),s=MG.createEl("div",{className:"theo-big-play-button-svg-container"});return s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150" fill="currentColor">\n  <circle cx="75" cy="75" r="73" fill="#000" fill-opacity="0.2"></circle>\n  <circle cx="75" cy="75" r="73" class="theo-play-svg-circle" stroke-width="4" stroke="currentColor" fill="none" transform="rotate(-90,75,75)"></circle>\n  <g transform="translate(85,75) scale(0.5625) translate(-75,-75)">\n    <path d="m 123.89639,85.432 c -12.865,9.167 -29.482997,19.402 -49.848997,30.7 -19.634,11.035 -36.851,19.7 -51.65,26 l -16.3990002,6.099 c -1.033,-4.433 -2,-11.002 -2.9,-19.7 -2.033,-17.333 -3.04999998,-36.466 -3.04999998,-57.399 0,-19.167 1.38199998,-37.081 4.14799998,-53.75 l 4.0019995,-19.1499994 17.3990007,5.849 c 15.068,5.9999994 31.401,14.5169994 49,25.5509994 18.631,11.666 34.616997,22.766 47.948997,33.3 6.663,5.3 11.463,9.383 14.396,12.25 l -13.046,10.25"></path>\n  </g>\n</svg>',r.appendChild(s),r},s.buildCSSClass=function(){return"theo-primary-color "+e.prototype.buildCSSClass.call(this)},r}(MG.getComponent("BigPlayButton"));MG.registerComponent("BigPlayButton",js);var jo=/^([^#]*)#xywh=(\d+),(\d+),(\d+),(\d+)\s*$/,ju=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).LYt=void 0,o.MYt=void 0,o.jYt=void 0,o.FYt=function(e){return o.UYt(e)},o.HYt=void 0,o.showThumbnails=function(){o.LYt&&(o.LYt.hidden=!1)},o.hideThumbnails=function(){o.LYt&&!o.player().scrubbing()&&(o.LYt.hidden=!0)},o.player().textTracks().on("addtrack",o.FYt),o.player().textTracks().on("removetrack",o.FYt),Q.pu&&(
1o.on(r,"seeking",o.showThumbnails),o.on(r,"seeked",o.hideThumbnails)),o}j(r,e);var s=r.prototype;return s.UYt=function(e){var r=e.track;"removetrack"===e.type&&r===this.MYt?(this.MYt=void 0,this.jYt=void 0,this.XYt(),this.HYt=void 0):"addtrack"===e.type&&"metadata"===r.kind&&"thumbnails"===r.label&&(this.MYt=r,this.jYt=r.src?_._o(r.src).href:void 0)},s.createEl=function(){var r=e.prototype.createEl.call(this);return this.VYt=MG.createEl("img",{className:"theo-time-tooltip-thumbnail"}),this.WYt=MG.createEl("canvas",{className:"theo-time-tooltip-thumbnail"}),r},s.update=function(r,s){if(e.prototype.update.call(this,r,s),this.keepTooltipsInside){var o;if(this.MYt&&this.MYt.cues){var u=function(e,r){for(var s=e[0],o=0;o<e.length;o++){var u=e[o];if(u.startTime<=r)s=u;else if(r>=u.endTime)break}return s}(this.MYt.cues,r);o=u&&u.content}if(o!==this.HYt)if(this.HYt=o,MG.toggleClass(this.el(),"theo-time-tooltip-has-thumbnail",!!o),o){var a=o.match(jo);if(a){var h=a[1],c=a[2],f=a[3],l=a[4],p=a[5];h=this.zYt(h),this.qYt(h,{x_:+c,y_:+f,Lo:+l,yT:+p})}else{var v=this.zYt(o);this.qYt(v)}}else this.XYt()}},s.zYt=function(e){return this.MYt&&this.jYt?_._o(e,this.jYt).href:e},s.qYt=function(e,r){var s=this;this.VYt&&(this.VYt.src!==e?(this.VYt.onload=function(){s.GYt(r)},this.VYt.src="",this.VYt.src=e):this.GYt(r))},s.GYt=function(e){if(this.WYt&&this.VYt){var r=this.WYt.getContext("2d");r&&(e=e||{x_:0,y_:0,Lo:this.VYt.naturalWidth,yT:this.VYt.naturalHeight},this.WYt.width=e.Lo,this.WYt.height=e.yT,r.drawImage(this.VYt,e.x_,e.y_,e.Lo,e.yT,0,0,e.Lo,e.yT),this.YYt(this.WYt))}},s.YYt=function(e){this.LYt||(this.tooltip.firstChild?this.tooltip.insertBefore(e,this.tooltip.firstChild):this.tooltip.appendChild(e),this.LYt=e)},s.XYt=function(){this.LYt&&this.tooltip.removeChild(this.LYt),Q.pu&&(this.off(this.player(),"seeking",this.showThumbnails),this.off(this.player(),"seeked",this.hideThumbnails)),this.LYt=void 0},r}(FC);MG.registerComponent("MouseTimeDisplay",ju);var ja=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.createEl=function(){var r=e.prototype.createEl.call(this);return r.className=this.buildCSSClass(),r},s.buildCSSClass=function(){return"theo-primary-color vjs-volume-level "+e.prototype.buildCSSClass.call(this)},r}(MG.getComponent("VolumeLevel"));MG.registerComponent("VolumeLevel",ja);var jh=MG.getComponent("ControlBar"),jc=function(e){function r(r,s){var o;return o=e.call(this,r,s)||this,r.topControlBar=t8(o),o}return j(r,e),r.prototype.buildCSSClass=function(){return"theo-top-controlbar "+e.prototype.buildCSSClass.call(this)},r}(jh);jc.prototype.sjt=iD({},jh.prototype.sjt,{children:[]}),MG.registerComponent("TopControlBar",jc);var jf=function(e){function r(){return e.apply(this,arguments)||this}j(r,e);var s=r.prototype;return s.createEl=function(){var r=e.prototype.createEl.call(this);return r.className=this.buildCSSClass(),r},s.buildCSSClass=function(){return"theo-menu-container "+e.prototype.buildCSSClass.call(this)},r}(MG.getComponent("Component"));jf.prototype.sjt=iD({},jf.prototype.sjt,{children:[]}),MG.registerComponent("controlBarMenuContainer",jf);var jl=MG.getComponent("Player"),jp=function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).handleKeyPress=function(e){9===e.which&&u.addClass("theo-probably-keyboard-focus")},u.handleClick=function(e){0===e.x&&0===e.y||u.removeClass("theo-probably-keyboard-focus")},h.body.addEventListener("keydown",u.handleKeyPress),h.body.addEventListener("click",u.handleClick),u}return j(r,e),r.prototype.dispose=function(){var r=this.el(),s=this.contentEl(),o=r.parentNode,u=r.nextSibling;e.prototype.dispose.call(this),n9(s),this.Ujt&&o&&(u?o.insertBefore(r,u):o.appendChild(r)),h.body.removeEventListener("keydown",this.handleKeyPress),h.body.removeEventListener("click",this.handleClick)},r}(jl);jp.prototype.sjt=iD({},jl.prototype.sjt,{children:["bigPlayButton","AdControlPanel","TopControlBar","mediaLoader","upNextContainer","posterImage","chromecastOverlay","controlBarMenuContainer","controlBar","textTrackDisplay","loadingSpinner","errorDisplay","textTrackSettings"]}),MG.registerComponent("Player",jp);var jv=MG.getComponent("Player"),jd=jv.prototype.FWt;jv.prototype.FWt=function(e){if(!(this.ljt&&this.ljt.oqt&&this.ljt.oqt()))return jd.call(this,e)};var jy,jg,jm=jv.prototype.createEl;jv.prototype.createEl=function(){var e=jm.call(this),r=MG.createEl("div");for(r.className="theo-player-wrapper";e.firstChild;)r.appendChild(e.firstChild);return e.appendChild(r),this.hjt=r,e},(jw=jg||(jg={})).$Yt="theo",jw.QYt="google-ima",jw.ZYt="google-dai",jw.KYt="freewheel";var jw,jb,jk="theo-dai-ad-playing";function jE(){this.userActive(!1)}function jA(e){return{get ratio(){return e.i$t},get thresholds(){return e.r$t.slice()}}}function jx(e){var r=[],s=b.floor(1/e);if(A(s))return[];for(var o=0;o<=s;
1o++){var u=tJ(o*e,0,1);r.push(u)}return r}var jT=function(){function e(e,r,s){this.e$t=1,this.s$t=void 0,this.u$t=void 0,this._g=void 0,this.s$t=jx(r);var o=this.o$t(s);this.u$t=new a.IntersectionObserver(o,{root:null,threshold:this.s$t}),this.u$t.observe(e)}var r=e.prototype;return r.o$t=function(e){var r=this;return function(s){var o=s[s.length-1];r.e$t=o.intersectionRatio,e(o.intersectionRatio)}},r.Um=function(){this.u$t.disconnect()},M(e,[{key:"i$t",get:function(){return this.e$t}},{key:"r$t",get:function(){return this.s$t}},{key:"gg",get:function(){return this._g||(this._g=jA(this)),this._g}}]),e}(),jC=function(e){function r(r,s,o){var u;return(u=e.call(this,s,o)||this).a$t=void 0,u.h$t=O(function(){return u.c$t(u.f$t())},50),u.a$t=r,a.addEventListener("scroll",u.h$t,!!w2&&{passive:!0}),rI(function(){return u.c$t(u.f$t())}),u}j(r,e);var s=r.prototype;return s.f$t=function(){var e=this.a$t.getBoundingClientRect();return tJ(b.max(0,b.min(a.innerWidth,e.right)-b.max(0,e.left))*b.max(0,b.min(a.innerHeight,e.bottom)-b.max(0,e.top))/(e.width*e.height),0,1)},s.Um=function(){a.removeEventListener("scroll",this.h$t)},r}(function(){function e(e,r){this.s$t=void 0,this.v$t=void 0,this.e$t=1,this.d$t=-1,this._g=void 0,this.s$t=jx(e),this.v$t=r}return e.prototype.c$t=function(e){this.e$t=e;var r=this.s$t,s=0;if(e>0)for(;s<r.length&&r[s]<=e;)++s;this.d$t!==s&&(this.d$t=s,this.v$t(e))},M(e,[{key:"i$t",get:function(){return this.e$t}},{key:"r$t",get:function(){return this.s$t}},{key:"gg",get:function(){return this._g||(this._g=jA(this)),this._g}}]),e}()),jS=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).l$t=void 0,o.controlText(o.localize("Close Picture-in-Picture")),o.l$t=s.l$t,o}j(r,e);var s=r.prototype;return s.buildCSSClass=function(){return"theo-close-button theo-pip-close"},s.handleClick=function(){this.l$t._$t()},r}(MG.getComponent("Button"));MG.registerComponent("THEOPiPCloseButton",jS);var jR=function(e){function r(r,s,o){var u;return(u=e.call(this)||this).g$t=void 0,u.Wp=void 0,u.w$t=void 0,u.sC=void 0,u.a$t=void 0,u.Jq=!1,u.Kp=!1,u.y$t=!1,u.p$t=!1,u.Em=!1,u._$t=void 0,u.m$t=!1,u.k$t=void 0,u.b$t=void 0,u.A$t=!1,u.T$t=void 0,u.S$t=function(){u.Jq=!0,u.T$t&&!u.iA&&u.k$t&&u.g$t&&u.k$t.i$t<=u.g$t&&u.Bp(!1)},u.E$t=function(){u.w$t||(u.Jq=!1,u.Lp(!1))},u.R$t=function(e){!u.p$t&&u.T$t&&(A(e)||(u.g$t&&e<=u.g$t||u.A$t?u.Kp||u.y$t||u.Bp(!1):u.Kp?u.Lp(!1):u.y$t=!1))},u.g$t=s.visibility,u.Wp=s.position,u.w$t=s.retainPresentationModeOnSourceChange,u.T$t=void 0!==u.g$t,u.sC=r,u.a$t=r.JYt,u._$t=o,u.$wt(),u}j(r,e);var s=r.prototype;return s.$wt=function(){this.sC.kh("play",this.S$t),this.w$t||this.sC.kh("sourcechange",this.E$t)},s.I$t=function(){var e=this.Wp;if(e)return"theo-pip-"+e},s.Bp=function(e){var r=this.a$t;if(r&&!this.N$t){this.Em||this.C$t(),this.D$t(),ir(r,"theo-pip");var s=this.I$t();s&&ir(r,s),this.Kp=!0,this.p$t=e,this.y$t=!1,this.yh(new mb(mw.PICTURE_IN_PICTURE))}},s.Lp=function(e){var r=this.a$t;if(r){this.P$t(),is(r,"theo-pip");var s=this.I$t();s&&is(r,s),this.Kp=!1,this.y$t=e,this.A$t=this.p$t,this.p$t=!1,this.yh(new mb(mw.INLINE))}},s.C$t=function(){if(!this.Em){var e=this.sC.t$t;e.addChild("THEOPiPCloseButton",{l$t:this});var r=h.createElement("div");r.className="theo-pip-overlay";var s=h.createElement("div");s.className="theo-pip-overlay-text",AT(s,e.localize("Video playing in Picture-in-Picture mode")),r.appendChild(s),e.el().appendChild(r),this.b$t=r,this.Em=!0}},s.B$t=function(){this.T$t&&!this.m$t&&this.sC.x$t&&(this.k$t=this.sC.x$t.O$t(.1,this.R$t),this.m$t=!0)},s.L$t=function(){this.k$t&&this.sC.x$t&&(this.sC.x$t.M$t(this.k$t),this.m$t=!1)}
1,s.D$t=function(){var e=this.sC.t$t.contentEl(),r=e.getBoundingClientRect(),s=h.documentElement.clientWidth,o=h.documentElement.clientHeight;e.style.top=r.top+"px",e.style.bottom=o-r.bottom+"px",e.style.right=s-r.right+"px",e.style.left=r.left+"px",e.style.width=r.width+"px",e.style.height=r.height+"px",e.style.position="fixed"},s.P$t=function(){var e=this.sC.t$t.contentEl();e.style.top="",e.style.bottom="",e.style.right="",e.style.left="",e.style.width="",e.style.height="",e.style.position=""},s.j$t=function(){is(this.a$t,"theo-pip"),this.iA&&this.Wp&&is(this.a$t,"theo-pip-"+this.Wp),this.b$t&&(n9(this.b$t),this.b$t=void 0)},s.Kl=function(){this.j$t(),this.L$t(),this.Th(),this.sC.Eh("play",this.S$t),this.sC.Eh("sourcechange",this.E$t)},M(r,[{key:"iA",get:function(){return this.Kp}},{key:"N$t",get:function(){return this.sC.cP()}}]),r}(fP),jL=function(){function e(e){this.a$t=void 0,this.F$t=1,this.U$t=0,this.H$t=[],this._g=void 0,this.a$t=e,this.O$t(.1,this.X$t())}var r=e.prototype;return r.X$t=function(e){var r=this;return function(s){r.F$t=s,null==e||e(r.F$t)}},r.O$t=function(e,r){var s;if(A(e))throw new g("step is not of the right type");if(e>1||e<=0)throw RangeError("The step must be a number greater than 0 and smaller than or equal to 1");return s="function"==typeof a.IntersectionObserver?new jT(this.a$t,e,this.X$t(r)):new jC(this.a$t,e,this.X$t(r)),this.H$t.push(s),s},r.M$t=function(e){e.Um(),rc(this.H$t,e)},r.V$t=function(e){for(var r=0,s=this.H$t;r<s.length;r++){var o=s[r];if(o.gg===e)return o}},r.Kl=function(){for(var e=0,r=this.H$t;e<r.length;e++)r[e].Um();rv(this.H$t)},M(e,[{key:"W$t",get:function(){return this.F$t}},{key:"g$t",get:function(){return this.U$t},set:function(e){if(A(e)||e<0||e>1)throw RangeError("The threshold must be a value between 0 and 1");this.U$t=e}},{key:"gg",get:function(){var e;return this._g||(this._g=(e=this,{get ratio(){return e.W$t},get visible(){return e.W$t>e.g$t},get visibleThreshold(){return e.g$t},set visibleThreshold(n){e.g$t=n=fc(n)},addObserver:function(r,s){return r=fc(r),e.O$t(r,s).gg},removeObserver:function(r){var s=e.V$t(r);s&&e.M$t(s)}})),this._g}}]),e}();bz(function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).x$t=void 0,o.x$t=new jL(r),o}j(r,e);var s=r.prototype;return s.wg=function(){var r=this;return fi(e.prototype.wg.call(this),{get visibility(){return r.x$t.gg}})},s.Kl=function(){this.x$t&&(this.x$t.Kl(),this.x$t=void 0),e.prototype.Kl.call(this)},r},bF.lF),bZ(function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).x$t=void 0,u.x$t=new jL(r),u}j(r,e);var s=r.prototype;return s.wg=function(){var r=this;return fi(e.prototype.wg.call(this),{get visibility(){return r.x$t.gg}})},s.Kl=function(){this.x$t&&(this.x$t.Kl(),this.x$t=void 0),e.prototype.Kl.call(this)},r},bj._F);var j_=function(e){function r(r,s,o){var u;return(u=e.call(this,s)||this).dC=void 0,u.z$t=void 0,u.q$t=function(){return u.zP()},u._$t=function(){return u.YP(mw.INLINE)},u.G$t=function(){u.jP()!==mw.FULLSCREEN&&u.z$t.B$t(),u.dC.Eh("play",u.G$t)},u.dC=r,u.z$t=new jR(r,o.pip,u._$t),u.z$t.kh("presentationmodechange",u.q$t),u.dC.kh("play",u.G$t),u.zP(),u}j(r,e);var s=r.prototype;return s.jP=function(){var r=e.prototype.jP.call(this);return r===mw.INLINE&&this.z$t&&this.z$t.iA?mw.PICTURE_IN_PICTURE:r},s.QP=function(r){return r===mw.PICTURE_IN_PICTURE||e.prototype.QP.call(this,r)},s.ZP=function(r,s){r===mw.FULLSCREEN&&this.z$t.L$t(),e.prototype.ZP.call(this,r,s),r!==mw.FULLSCREEN&&this.z$t.B$t()},s.KP=function(r,s){r!==s&&(r===mw.FULLSCREEN&&this.z$t.Lp(!1),r===mw.INLINE&&s===mw.PICTURE_IN_PICTURE&&this.z$t.Lp(!0),e.prototype.KP.call(this,r,s),r===mw.PICTURE_IN_PICTURE&&(s===mw.INLINE?this.z$t.Bp(!0):this.z$t.Bp(!1)))},s.Kl=function(){e.prototype.Kl.call(this),this.z$t.Kl()},r}(mT),jP=function(e){function r(r,s){var o;return(o=e.call(this)||this).t$t=void 0,o.Y$t=void 0,o.Zzt=!1,o.$$t=!1,o.KL=!1,o.Q$t=function(){if(!o.KL){var e=o.Zzt,r=o.cP;e!==r&&(o.Zzt=r,o.yh(new w9))}},o.Z$t=function(){o.$$t=o.Y$t.cP,o.Q$t()},o.K$t=function(){o.KL||(o.t$t.isFullWindow&&o.t$t.supportsFullScreen()||o.$$t&&!o.t$t.supportsFullScreen())&&(o.KL=!0,o.t$t.exitFullscreen(),o.t$t.requestFullscreen(),o.KL=!1,o.Q$t())},o.t$t=r,o.Y$t=s,o.t$t.on("fullscreenchange",o.Q$t),o.Y$t.kh(mn.Pg,o.Z$t),o.Y$t.kh(mn.hP,o.K$t),o.Y$t.kh(mn.mw,o.wh),o.Q$t(),o}j(r,e);var s=r.prototype;return s.Bp=function(){this.t$t.requestFullscreen()},s.Lp=function(){this.t$t.exitFullscreen(),this.Y$t.Lp()},s.Kl=function(){this.Th(),this.t$t.off("fullscreenchange",this.Q$t),this.Y$t.Eh(mn.Pg,this.Q$t),this.Y$t.Eh(mn.mw,this.wh)},M(r,[{key:"fP",get:function(){return bn.VL(this.t$t.el())||this.t$t.supportsFullScreen()}},{key:"cP",get:function(){return this.t$t.isFullscreen()||this.$$t}}]),r}(rB);bZ(function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).J$t=void 0,u.tQt=void 0,u.tQt=new jP(u.t$t,u.LD),u.J$t=new j_(t8(u),u.tQt,o),u.J$t.kh("presentationmodechange",u.wh),u}j(r,e);var s=r.prototype;return s.cP=function(){return"fullscreen"===this.J$t.jP()},s.wg=function(){var r=this.J$t;return fi(e.prototype.wg.call(this),{get presentation(){return r.gg},get presentationMode(){return r.gg.currentMode},set presentationMode(t){r.gg.requestMode(t)}})},s.Kl=function(){this.J$t.Kl(),this.tQt.Kl(),e.prototype.Kl.call(this)},r},bj._F);var jI=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this).a$t=void 0,o.Xv=void 0,o.SYt=void 0,o.a$t=r.el(),o.controlText(o.localize("Start Casting")),o.SYt=new F5(t8(o),o.controlText()),o.nQt.addEventListener("statechange",function(e){o.aWt(e.state)}),_.oa.$e&&new Fr(o.el()),o.aWt(o.nQt.state),o}j(r,e);var s=r.prototype;return s.buildCSSClass=function(){return"theo-cast-button theo-"+this.iQt+"-button theo-controlbar-button "+e.prototype.buildCSSClass.call(this)},s.createEl=function(r,s,o){var u=e.prototype.createEl.call(this),a=h.createElement("div");a.className="theo-button-icon-blur";var c=h.createElement("div");return c.className="theo-cast-svg-container",c.innerHTML=this.rQt,u.appendChild(a),u.a
1ppendChild(c),u},s.handleClick=function(r){e.prototype.handleClick.call(this,r),this.Xv===mU.AVAILABLE?this.nQt.start():this.Xv!==mU.CONNECTED&&this.Xv!==mU.CONNECTING||this.nQt.stop()},s.aWt=function(e){is(this.a$t,"theo-"+this.iQt+"-"+this.Xv),this.Xv=e,ir(this.a$t,"theo-"+this.iQt+"-"+this.Xv),this.eQt(e),this.SYt.CYt=this.controlText()},s.eQt=function(e){e===mU.CONNECTED?this.controlText(this.localize("Stop Casting")):e===mU.AVAILABLE?this.controlText(this.localize("Start Casting")):e===mU.CONNECTING?this.controlText(this.localize("Connecting")):e===mU.UNAVAILABLE&&this.controlText(this.localize("Unavailable"))},M(r,[{key:"nQt",get:function(){throw new y("sQt")}},{key:"rQt",get:function(){return this.sjt.rQt}},{key:"iQt",get:function(){return this.sjt.iQt}}]),r}(Fi(MG.getComponent("Button"))),jN=0,jO=function(e){function r(r,s){var o;return e.call(this,r,iD({},s,{iQt:"chromecast",rQt:(o='\n    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor">\n        <defs>\n            <clipPath id="theo-chromecast-rings-mask-'+jN+'">\n                <path d="M0-36h44V0H0z"/>\n            </clipPath>\n        </defs>\n	    <path class="theo-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/>\n	    <path class="theo-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/>\n        <g class="theo-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theo-chromecast-rings-mask-'+jN+')">\n            <circle stroke="none" cx="0" cy="0" r="30" />\n            <circle class="theo-chromecast-ring theo-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3" />\n            <circle class="theo-chromecast-ring theo-chromecast-ring2" cx="0" cy="0" r="12" />\n            <circle class="theo-chromecast-ring theo-chromecast-ring3" cx="0" cy="0" r="20"/>\n            <path class="theo-chromecast-ring theo-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0" />\n        </g>\n    </svg>',jN++,o)}))||this}return j(r,e),M(r,[{key:"nQt",get:function(){return this.Qzt.cast.chromecast}}]),r}(jI);MG.registerComponent("chromecastButton",jO);var jD=function(e){function r(r,s){var o;return(o=e.call(this,r,s)||this)._g=void 0,o.xGt=void 0,o._g=o.Qzt.cast.chromecast,o.Qzt.addEventListener("play",function(){o.xGt&&AT(o.xGt,o._g.receiverName||""),o._g.state===mU.CONNECTED?o.show():o.hide()}),o.hide(),o}j(r,e);var s=r.prototype;return s.buildCSSClass=function(){return"theo-chromecast-overlay "+e.prototype.buildCSSClass.call(this)},s.createEl=function(){var s=e.prototype.createEl.call(this);ir(s,"theo-chromecast-overlay");var o=MG.createEl("div",{className:"theo-chromecast-status-icon",innerHTML:r.ICON_SVG}),u=MG.createEl("div",{className:"theo-chromecast-status-info"});AT(u,"Playing on");var a=MG.createEl("div",{className:"theo-chromecast-status-title"}),h=MG.createEl("div",{className:"theo-chromecast-status"});return this.xGt=a,h.appendChild(o),h.appendChild(u),h.appendChild(a),s.appendChild(h),s},r}(Fi(MG.getComponent("Component")));jD.ICON_SVG='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" fill="currentColor">\n    <path d="M7 24v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H11v1.63c3.96 1.28 7.09 4.41 8.37 8.37H25V13zM7 16v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H9c-1.1 0-2 .9-2 2v3h2v-3h18v14h-7v2h7c1.1 0 2-.9 2-2V11c0-1.1-.9-2-2-2z"/>\n</svg>',MG.registerComponent("chromecastOverlay",jD);var jU=function(e){function r(r,s){var o,u,a;return(a=e.call(this,r,iD({},s,{iQt:"airplay",rQt:'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">\n    <path class="theo-cast-inner" d="M5 7h14v8H5z"/>\n    <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>\n</svg>'}))||this).uQt=function(){a.enable()},a.oQt=function(){a.disable()},null==(o=a.Qzt.ads)||o.addEventListener("adbreakbegin",a.oQt),null==(u=a.Qzt.ads)||u.addEventListener("adbreakend",a.uQt),a.Qzt.addEventListener("currentsourcechange",a.uQt),a}return j(r,e),r.prototype.dispose=function(){var r,s;null==(r=this.Qzt.ads)||r.removeEventListener("adbreakbegin",this.oQt),null==(s=this.Qzt.ads)||s.removeEventListener("adbreakend",this.uQt),this.Qzt.removeEventListener("currentsourcechange",this.uQt),e.prototype.dispose.call(this)},M(r,[{key:"nQt",get:function(){return this.Qzt.cast.airplay}}]),r}(jI);MG.registerComponent("airplayButton",jU);var jM={Default:"","Monospaced Serif":Av.Kz,"Proportional Serif":Av.Jz,"Monospaced Sans-Serif":Av.$z,"Proportional Sans-Serif":Av.tj},jF={White:"#ffffff",Yellow:"#ffff00",Green:"#00ff00",Cyan:"#00ffff",Blue:"#0000ff",Magenta:"#ff00ff",Red:"#ff0000",Black:"#000000"};function jj(e){return{label:e+"%",value:e}}function jH(e){return w.keys(e).map(function(r){return{label:r,value:e[r]}})}var jB=[50,75,100,150,200].map(function(e){return{label:e+"%",value:e+"%"}}),jV=[25,50,75,100].map(jj),jX=[0,25,50,75,100].map(jj),jW=jH(jF),jq=jH(jM),jY=jH({None:"none","Drop Shadow":"dropshadow",Raised:"raised",Depressed:"depressed",Uniform:"uniform"}),j$="#000000",jJ="#FFFFFF",jQ="#000000",jG=function(e){function r(r,s,o,u){var a;return(a=e.call(this,r.subMenu)||this).aQt=void 0,a.hQt=void 0,a.cQt=r,a.$Gt=u,a.hQt=o.q$t,a.fQt(s),a.GGt=o.vQt,a}j(r,e);var s=r.prototype;return s.fQt=function(e){var r=this.$Gt.localize(e);AT(this.cQt.subMenu.menuHeader.el(),r);var s=h.createElement("span");s.className="theo-settings-control-menu-item-title",AT(s,r);var o=h.createElement("span");o.className="theo-primary-color theo-settings-control-menu-item-value",this.aQt=o,ir(this.cQt.el(),"theo-subtitle-options-menu-item"),this.cQt.el().appendChild(s),this.cQt.el().appendChild(o)},s.zGt=function(e){},s.dQt=function(e){this.lQt(this.FGt(e))},s._Qt=function(){return this.GGt},s.HGt=function(e){this.hQt(e.f4)},s.lQt=function(e){for(var r=0,s=this.MGt.menuItems;r<s.length;r++)s[r].selected(!1);e?(e.selected(!0),this.gQt(e.f4.label)):this.gQt(this.$Gt.localize("Custom"))},s.gQt=function(e){AT(this.aQt,e),this.cQt.parentMenu.Bqt()},s.UGt=function(r){var s=e.prototype.UGt.call(this,r),o=this.$Gt.localize(s.f4.label);AT(s.el(),o),ir(s.el(),"theo-subtitle-options-menu-item");var u=this.$Gt.localize("Set "+this.MGt.menuHeader.el().textContent+" to "+s.f4.label);return s.el().setAttribute("aria-label",u),s},r}(Fj),jK=function(){function e(r){var s=this;this.wQt=void 0,this.yQt=void 0,this.pQt=void 0,this.mQt=void 0,this.kQt=void 0,this.bQt=void 0,this.AQt=function(e){s.TQt.PU=e.value},this.VQ=function(e){s.TQt.OU=e.value},this.SQt=function(r){s.wQt=r,s.TQt.BU=e.EQt(s.yQt,s.wQt,jJ,100)},this.RQt=function(r){s.yQt=r,s.TQt.BU=e.EQt(s.yQt,s.wQt,jJ,100)},this.IQt=function(r){s.mQt=r,s.TQt.LU=e.EQt(s.mQt,s.pQt,j$,100)},this.NQt=function(r){s.pQt=r,s.TQt.LU=e.EQt(s.mQt,s.pQt,j$,100)},this.CQt=function(r){s.bQt=r,s.TQt.MU=e.EQt(s.bQt,s.kQt,jQ,100)},this.DQt=function(r){s.kQt=r,s.TQt.MU=e.EQt(s.bQt,s.kQt,jQ,100)},this.PQt=function(e){s.TQt.xU=e.value},this.TQt=r}return e.EQt=function(e,r,s,o){var u,a,h=e&&e.value,c=r&&r.value;if(void 0!==h||void 0!==c)return u=void 0===c?o:c,(a=Ag(Am(void 0===h?s:h),u/100))?"rgba("+a.r_+", "+a.g_+", "+a.b_+", "+a.a_+")":null},e}(),jz=function(){function e(e,r){var s=this;this.BQt=function(){var e=s.TQt.PU;s.xQt(e,s.OQt["Font family"]);var r=s.TQt.BU;s.LQt(r,s.OQt["Font color"],s.OQt["Font opacity"]);var o=s.TQt.OU;s.xQt(o,s.OQt["Font size"]);var u=s.TQt.LU;
1s.LQt(u,s.OQt["Background color"],s.OQt["Background opacity"]);var a=s.TQt.MU;s.LQt(a,s.OQt["Window color"],s.OQt["Window opacity"]);var h=s.TQt.xU;s.xQt(h,s.OQt["Character edge style"])},this.TQt=e,this.OQt=r,this.TQt.kh("Bg",this.BQt),this.BQt()}var r=e.prototype;return r.xQt=function(e,r){r.dQt(this.MQt(e,r._Qt()))},r.MQt=function(e,r){var s=r.filter(function(r){return r.value==e});return s&&s.length?s[0]:void 0},r.LQt=function(e,r,s){var o,u;if(void 0===e)o=this.MQt(void 0,r._Qt()),u=this.MQt(void 0,s._Qt());else if(e){var a,h=((a=Ab(e))||(a=Ab(e.slice(0,e.length-1).replace("rgb","rgba")+",1)")),a||(a=Ag(Am(e),1)),a||(a=Ag(Am(jF[e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)]),1)),a);if(h){var c="#"+Aw(h.r_)+Aw(h.g_)+Aw(h.b_),f=""+100*h.a_;o=this.MQt(c,r._Qt()),u=this.MQt(f,s._Qt())}}r.dQt(o),s.dQt(u)},e}(),jZ=function(e){function r(r,s,o,u){var a;return(a=e.call(this,r.subMenu)||this).jQt=void 0,a.FQt=void 0,a.UQt=void 0,a.OQt={},a.HQt=function(){ra(a.Rm.Qg.map(function(e){return e.fw}),vz)?a.YGt.show():a.YGt.hide()},a.YGt=r,a.Rm=s,a.$Gt=u,a.jQt=new jK(o),a.UQt=a.XQt(),a.GGt=w.keys(a.UQt),a.VQt(),a.FQt=new jz(o,a.OQt),a}j(r,e);var s=r.prototype;return s.XQt=function(){return{"Font family":{vQt:j0(jq),q$t:this.jQt.AQt},"Font color":{vQt:j0(jW),q$t:this.jQt.RQt},"Font opacity":{vQt:j0(jV),q$t:this.jQt.SQt},"Font size":{vQt:j0(jB),q$t:this.jQt.VQ},"Background color":{vQt:j0(jW),q$t:this.jQt.IQt},"Background opacity":{vQt:j0(jX),q$t:this.jQt.NQt},"Window color":{vQt:j0(jW),q$t:this.jQt.CQt},"Window opacity":{vQt:j0(jX),q$t:this.jQt.DQt},"Character edge style":{vQt:j0(jY),q$t:this.jQt.PQt}}},s.VQt=function(){AT(this.MGt.menuHeader.el(),this.$Gt.localize("Subtitle Options"));var e=h.createElement("span");e.className="theo-settings-control-menu-item-title",AT(e,this.$Gt.localize("Subtitle"));var r=h.createElement("span");r.className="theo-primary-color theo-settings-control-menu-item-value",AT(r,this.$Gt.localize("Options")),this.YGt.el().appendChild(e),this.YGt.el().appendChild(r),this.YGt.el().setAttribute("aria-label",this.$Gt.localize("Open the subtitle options menu")),this.Rm.kh([cG.cg,cG.vg],this.HQt),this.HQt()},s.UGt=function(e){var r=this.MGt.addSubMenuItem();return this.OQt[e]=new jG(r,e,this.UQt[e],this.$Gt),null},s.zGt=function(e){},s.HGt=function(e){},r}(Fj);function j0(e){for(var r=[{label:"Default",value:void 0}],s=0;s<e.length;s++){var o=e[s];"Default"!=o.label&&r.push(o)}return r}bZ(function(e){function r(r,s,o){var u;return(u=e.call(this,r,s,o)||this).WQt=void 0,u.zQt=void 0,u.zQt=u.t$t.controlBar.getChild("SettingsButton").menu,u.WQt=u.zQt.addSubMenuItem({name:"TextTrackOptionsMenuItem"}),new jZ(u.WQt,u.Om,u.vF,u.t$t),u}return j(r,e),r.prototype.Kl=function(){this.zQt.removeMenuItem(this.WQt),e.prototype.Kl.call(this)},r},bj._F),e.ChromelessPlayer=kf,e.Player=function e(r,s){var o,u,c,f=((u=o=lb(o=s)).ui=u.ui||{},void 0!==o.width&&void 0===u.ui.width&&(u.ui.width=o.width),void 0!==o.height&&void 0===u.ui.height&&(u.ui.height=o.height),void 0!==o.fluid&&void 0===u.ui.fluid&&(u.ui.fluid=o.fluid),(c=(c=u.pip)||{}).position=function(e){switch(e){case"top-left":case"top-right":case"bottom-left":case"bottom-right":return e;default:return}}(c.position),c.visibility=function(e){if(null!==e&&!A(e))return tJ(e,0,1)}(c.visibility),c.retainPresentationModeOnSourceChange=fh(c.retainPresentationModeOnSourceChange),u.pip=c,u),l=h.createElement("div");l.style.position="absolute",r.appendChild(l);var p=new(jb||(jb=function(e,r){var s=e;if(bK[r])for(var o=0,u=bK[r];o<u.length;o++)s=(0,u[o])(s);return s}(jb=function(e){function r(r,s,o){var u,h,c,f,l,p,v,d,y;return(u=e.call(this,s,o)||this).JYt=void 0,u.t$t=void 0,u.n$t=void 0,u.JYt=r,u.n$t=e.prototype.wg.call(t8(u)),w.defineProperty(u.n$t,"constructor",{value:kf}),h=u.n$t,c=u.JYt,f=o.ui,(l=iD({techOrder:[],theoplayer:{},controls:!0,playbackRates:[.25,.5,1,1.25,1.5,2]},f)).controlBar=iD({progressControl:{keepTooltipsInside:!0}},l.controlBar),-1===(v=l.techOrder).indexOf("THEOplayer")&&v.unshift("THEOplayer"),l.theoplayer.player=h,te(f.language)&&(l.languages=iD({},l.languages,((p={}).und=f.language,p)),l.language="und"),c.setAttribute("data-vjs-player",""),d=c.getAttribute("style"),(y=MG(h.element,l,void 0)).ready(function(){var e;y.on("timeupdate",M5),y.on("durationchange",M5),e=function(e){var r,s,o=e.ad&&e.ad.integration===jg.ZYt;r=e.type,s="adbreakbegin"===r,y.toggleClass("theo-ad-playing",s),o?y.toggleClass(jk,s):y.toggleClass(jk,!1)},h&&(h.ads&&(h.ads.addEventListener("adbreakbegin",e),h.ads.addEventListener("adbreakend",e),h.addEventListener("sourcechange",e)),h.verizonMedia&&h.verizonMedia.ads.adBreaks.addEventListener("addadbreak",function(r){r.adBreak.addEventListener("adbreakbegin",e),r.adBreak.addEventListener("adbreakend",e)})),y.on("mouseleave",jE)}),c.removeAttribute("data-vjs-player"),d?c.setAttribute("style",d):c.removeAttribute("style"),function(e){var r={SettingsButton:e.localize("Settings"),audioTrackButton:e.localize("Language"),subtitlesButton:e.localize("Subtitles")};for(var s in r)new F5(e.controlBar.getChild(s),r[s])}(y),_.oa.pu&&(ir(c,"theo-mobile"),a.outerHeight>a.outerWidth?(is(c,"theo-mobile-landscape"),ir(c,"theo-mobile-portrait")):(is(c,"theo-mobile-portrait"),ir(c,"theo-mobile-landscape"))),y.on("seeking",function(){ii(y.el(),"vjs-ended")&&y.currentTime()!==y.duration()&&y.play()}),u.t$t=y,u}j(r,e);var s=r.prototype;return s.wg=function(){var e,r;return e=this.n$t,r=this,fi(w.create(e),{get controls(){return r.xjt},set controls(t){r.xjt=fh(t)},get ui(){return r.t$t}})},s.Kl=function(){e.prototype.Kl.call(this),this.t$t.dispose()},s.Hm=function(r){this.t$t.src(""),e.prototype.Hm.call(this,r)},M(r,[{key:"xjt",get:function(){return this.t$t.controls()},set:function(e){this.t$t.controls(e)}}]),r}(kc()),bj._F)),jb)(r,l,f),v=p.gg;return p.sF(),p.WF(kn),w.defineProperty(v,"constructor",{value:e}),v=fe(v),b3(p),function(e){for(var r=0;r<b2.length;r++)(0,b2[r])(e)}(p),v},e.cast={get chromecast(){return MY.gg}},e.features=["dash","ll-hls","hls","chromecast","airplay","webaudio","ui","texttrackstyle-ui"],e.playerSuiteVersion="2021.3.0",e.players=kv,e.registerContentProtectionIntegration=kd,e.utils=kp,e.version="2.87.0",e.videojs=MG,
1w.defineProperty(e,"__esModule",{value:!0})}(r)}}]);
2//# sourceMappingURL=7e31fbc3.16570122b21221c9.js.map

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.