Skip to content

Instantly share code, notes, and snippets.

@peaBerberian
Created December 6, 2017 18:33
Show Gist options
  • Save peaBerberian/b852573a3d2d71086bacb029bcfe897a to your computer and use it in GitHub Desktop.
Save peaBerberian/b852573a3d2d71086bacb029bcfe897a to your computer and use it in GitHub Desktop.
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,e,a){if(a.get||a.set)throw new TypeError("ES3 does not support getters and setters.");b!=Array.prototype&&b!=Object.prototype&&(b[e]=a.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(b){return $jscomp.SYMBOL_PREFIX+(b||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(b){var e=0;return $jscomp.iteratorPrototype(function(){return e<b.length?{done:!1,value:b[e++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(b){$jscomp.initSymbolIterator();b={next:b};b[$jscomp.global.Symbol.iterator]=function(){return this};return b};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(b,e){$jscomp.initSymbolIterator();b instanceof String&&(b+="");var a=0,f={next:function(){if(a<b.length){var d=a++;return{value:e(d,b[d]),done:!1}}f.next=function(){return{done:!0,value:void 0}};return f.next()}};f[Symbol.iterator]=function(){return f};return f};
$jscomp.polyfill=function(b,e,a,f){if(e){a=$jscomp.global;b=b.split(".");for(f=0;f<b.length-1;f++){var d=b[f];d in a||(a[d]={});a=a[d]}b=b[b.length-1];f=a[b];e=e(f);e!=f&&null!=e&&$jscomp.defineProperty(a,b,{configurable:!0,writable:!0,value:e})}};$jscomp.polyfill("Array.prototype.values",function(b){return b?b:function(){return $jscomp.iteratorFromArray(this,function(b,a){return a})}},"es6","es3");
$jscomp.polyfill("Array.prototype.keys",function(b){return b?b:function(){return $jscomp.iteratorFromArray(this,function(b){return b})}},"es6-impl","es3");$jscomp.polyfill("Array.prototype.entries",function(b){return b?b:function(){return $jscomp.iteratorFromArray(this,function(b,a){return[b,a]})}},"es6-impl","es3");$jscomp.polyfill("Object.getOwnPropertySymbols",function(b){return b?b:function(){return[]}},"es6-impl","es5");
$jscomp.owns=function(b,e){return Object.prototype.hasOwnProperty.call(b,e)};$jscomp.polyfill("Object.assign",function(b){return b?b:function(b,a){for(var f=1;f<arguments.length;f++){var d=arguments[f];if(d)for(var c in d)$jscomp.owns(d,c)&&(b[c]=d[c])}return b}},"es6-impl","es3");
$jscomp.polyfill("Array.from",function(b){return b?b:function(b,a,f){$jscomp.initSymbolIterator();a=null!=a?a:function(a){return a};var d=[],c=b[Symbol.iterator];if("function"==typeof c)for(b=c.call(b);!(c=b.next()).done;)d.push(a.call(f,c.value));else for(var c=b.length,h=0;h<c;h++)d.push(a.call(f,b[h]));return d}},"es6-impl","es3");
$jscomp.polyfill("Math.expm1",function(b){return b?b:function(b){b=Number(b);if(.25>b&&-.25<b){for(var a=b,f=1,d=b,c=0;c!=d;)a*=b/++f,d=(c=d)+a;return d}return Math.exp(b)-1}},"es6-impl","es3");$jscomp.polyfill("Math.sign",function(b){return b?b:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}},"es6-impl","es3");
$jscomp.polyfill("Object.setPrototypeOf",function(b){return b?b:"object"!=typeof"".__proto__?null:function(b,a){b.__proto__=a;if(b.__proto__!==a)throw new TypeError(b+" is not extensible");return b}},"es6","es5");$jscomp.findInternal=function(b,e,a){b instanceof String&&(b=String(b));for(var f=b.length,d=0;d<f;d++){var c=b[d];if(e.call(a,c,d,b))return{i:d,v:c}}return{i:-1,v:void 0}};
$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,a){return $jscomp.findInternal(this,b,a).v}},"es6-impl","es3");$jscomp.polyfill("Array.prototype.copyWithin",function(b){return b?b:function(b,a,f){var d=this.length;b=Number(b);a=Number(a);f=Number(null!=f?f:d);if(b<a)for(f=Math.min(f,d);a<f;)a in this?this[b++]=this[a++]:(delete this[b++],a++);else for(f=Math.min(f,d+a-b),b+=f-a;f>a;)--f in this?this[--b]=this[f]:delete this[b];return this}},"es6-impl","es3");
$jscomp.polyfill("Math.log1p",function(b){return b?b:function(b){b=Number(b);if(.25>b&&-.25<b){for(var a=b,f=1,d=b,c=0,h=1;c!=d;)a*=b,h*=-1,d=(c=d)+h*a/++f;return d}return Math.log(1+b)}},"es6-impl","es3");$jscomp.polyfill("Object.is",function(b){return b?b:function(b,a){return b===a?0!==b||1/b===1/a:b!==b&&a!==a}},"es6-impl","es3");$jscomp.polyfill("Array.of",function(b){return b?b:function(b){return Array.from(arguments)}},"es6-impl","es3");
$jscomp.polyfill("Math.acosh",function(b){return b?b:function(b){b=Number(b);return Math.log(b+Math.sqrt(b*b-1))}},"es6-impl","es3");$jscomp.polyfill("Math.asinh",function(b){return b?b:function(b){b=Number(b);if(0===b)return b;var a=Math.log(Math.abs(b)+Math.sqrt(b*b+1));return 0>b?-a:a}},"es6-impl","es3");$jscomp.polyfill("Math.atanh",function(b){if(b)return b;var e=Math.log1p;return function(a){a=Number(a);return(e(a)-e(-a))/2}},"es6-impl","es3");
$jscomp.polyfill("Math.imul",function(b){return b?b:function(b,a){b=Number(b);a=Number(a);var f=b&65535,d=a&65535;return f*d+((b>>>16&65535)*d+f*(a>>>16&65535)<<16>>>0)|0}},"es6-impl","es3");$jscomp.polyfill("Math.sinh",function(b){if(b)return b;var e=Math.exp;return function(a){a=Number(a);return 0===a?a:(e(a)-e(-a))/2}},"es6-impl","es3");
$jscomp.polyfill("Reflect.defineProperty",function(b){return b?b:function(b,a,f){try{Object.defineProperty(b,a,f);var d=Object.getOwnPropertyDescriptor(b,a);return d?d.configurable===(f.configurable||!1)&&d.enumerable===(f.enumerable||!1)&&("value"in d?d.value===f.value&&d.writable===(f.writable||!1):d.get===f.get&&d.set===f.set):!1}catch(c){return!1}}},"es6","es5");
$jscomp.polyfill("String.fromCodePoint",function(b){return b?b:function(b){for(var a="",f=0;f<arguments.length;f++){var d=Number(arguments[f]);if(0>d||1114111<d||d!==Math.floor(d))throw new RangeError("invalid_code_point "+d);65535>=d?a+=String.fromCharCode(d):(d-=65536,a+=String.fromCharCode(d>>>10&1023|55296),a+=String.fromCharCode(d&1023|56320))}return a}},"es6-impl","es3");$jscomp.makeIterator=function(b){$jscomp.initSymbolIterator();var e=b[Symbol.iterator];return e?e.call(b):$jscomp.arrayIterator(b)};
$jscomp.EXPOSE_ASYNC_EXECUTOR=!0;$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(b){function e(){this.batch_=null}if(b&&!$jscomp.FORCE_POLYFILL_PROMISE)return b;e.prototype.asyncExecute=function(a){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(a);return this};e.prototype.asyncExecuteBatch_=function(){var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})};var a=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(b){a(b,0)};e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=
this.batch_;this.batch_=[];for(var b=0;b<a.length;++b){var g=a[b];delete a[b];try{g()}catch(k){this.asyncThrow_(k)}}}this.batch_=null};e.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var f=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var b=this.createResolveAndReject_();try{a(b.resolve,b.reject)}catch(g){b.reject(g)}};f.prototype.createResolveAndReject_=function(){function a(a){return function(c){g||(g=!0,a.call(b,c))}}var b=this,g=
!1;return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};f.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof f)this.settleSameAsPromise_(a);else{var b;a:switch(typeof a){case "object":b=null!=a;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};f.prototype.resolveToNonPromiseObj_=function(a){var b=void 0;try{b=a.then}catch(g){this.reject_(g);return}"function"==
typeof b?this.settleSameAsThenable_(b,a):this.fulfill_(a)};f.prototype.reject_=function(a){this.settle_(2,a)};f.prototype.fulfill_=function(a){this.settle_(1,a)};f.prototype.settle_=function(a,b){if(0!=this.state_)throw Error("Cannot settle("+a+", "+b|"): Promise already settled in state"+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};f.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=this.onSettledCallbacks_,b=0;b<a.length;++b)a[b].call(),
a[b]=null;this.onSettledCallbacks_=null}};var d=new e;f.prototype.settleSameAsPromise_=function(a){var b=this.createResolveAndReject_();a.callWhenSettled_(b.resolve,b.reject)};f.prototype.settleSameAsThenable_=function(a,b){var g=this.createResolveAndReject_();try{a.call(b,g.resolve,g.reject)}catch(k){g.reject(k)}};f.prototype.then=function(a,b){function g(a,b){return"function"==typeof a?function(b){try{c(a(b))}catch(q){d(q)}}:b}var c,d,h=new f(function(a,b){c=a;d=b});this.callWhenSettled_(g(a,c),
g(b,d));return h};f.prototype["catch"]=function(a){return this.then(void 0,a)};f.prototype.callWhenSettled_=function(a,b){function g(){switch(c.state_){case 1:a(c.result_);break;case 2:b(c.result_);break;default:throw Error("Unexpected state: "+c.state_);}}var c=this;null==this.onSettledCallbacks_?d.asyncExecute(g):this.onSettledCallbacks_.push(function(){d.asyncExecute(g)})};f.resolve=function(a){return a instanceof f?a:new f(function(b,g){b(a)})};f.reject=function(a){return new f(function(b,g){g(a)})};
f.race=function(a){return new f(function(b,g){for(var d=$jscomp.makeIterator(a),c=d.next();!c.done;c=d.next())f.resolve(c.value).callWhenSettled_(b,g)})};f.all=function(a){var b=$jscomp.makeIterator(a),g=b.next();return g.done?f.resolve([]):new f(function(a,d){function c(b){return function(g){l[b]=g;k--;0==k&&a(l)}}var l=[],k=0;do l.push(void 0),k++,f.resolve(g.value).callWhenSettled_(c(l.length-1),d),g=b.next();while(!g.done)})};$jscomp.EXPOSE_ASYNC_EXECUTOR&&(f.$jscomp$new$AsyncExecutor=function(){return new e});
return f},"es6-impl","es3");
(function(b,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports.RxPlayer=e():b.RxPlayer=e()})(this,function(){return function(b){function e(f){if(a[f])return a[f].exports;var d=a[f]={i:f,l:!1,exports:{}};b[f].call(d.exports,d,d.exports,e);d.l=!0;return d.exports}var a={};e.m=b;e.c=a;e.i=function(a){return a};e.d=function(a,b,c){e.o(a,b)||Object.defineProperty(a,b,{configurable:!1,enumerable:!0,
get:c})};e.n=function(a){var b=a&&a.__esModule?function(){return a["default"]}:function(){return a};e.d(b,"a",b);return b};e.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};e.p="";return e(e.s=195)}([function(b,e,a){var f=a(3),d=a(28),c=a(15),h=a(16),g=a(29),k=function(a,b,m){var l=a&k.F,n=a&k.G,e=a&k.S,t=a&k.P,v=a&k.B,e=n?f:e?f[b]||(f[b]={}):(f[b]||{}).prototype,r=n?d:d[b]||(d[b]={}),w=r.prototype||(r.prototype={}),x;n&&(m=b);for(x in m)n=!l&&e&&void 0!==e[x],b=(n?e:m)[x],n=v&&
n?g(b,f):t&&"function"==typeof b?g(Function.call,b):b,e&&h(e,x,b,a&k.U),r[x]!=b&&c(r,x,n),t&&w[x]!=b&&(w[x]=b)};f.core=d;k.F=1;k.G=2;k.S=4;k.P=8;k.B=16;k.W=32;k.U=64;k.R=128;b.exports=k},function(b,e,a){var f=a(33),d=a(475),c=a(123);b=function(){function a(a){this._isScalar=!1;a&&(this._subscribe=a)}a.prototype.lift=function(b){var g=new a;g.source=this;g.operator=b;return g};a.prototype.subscribe=function(a,b,c){var g=this.operator;a=d.toSubscriber(a,b,c);g?g.call(a,this.source):a.add(this.source?
this._subscribe(a):this._trySubscribe(a));if(a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};a.prototype._trySubscribe=function(a){try{return this._subscribe(a)}catch(k){a.syncErrorThrown=!0,a.syncErrorValue=k,a.error(k)}};a.prototype.forEach=function(a,b){var c=this;b||(f.root.Rx&&f.root.Rx.config&&f.root.Rx.config.Promise?b=f.root.Rx.config.Promise:f.root.Promise&&(b=f.root.Promise));if(!b)throw Error("no Promise impl found");return new b(function(b,
g){var d;d=c.subscribe(function(b){if(d)try{a(b)}catch(q){g(q),d.unsubscribe()}else a(b)},g,b)})};a.prototype._subscribe=function(a){return this.source.subscribe(a)};a.prototype[c.observable]=function(){return this};a.create=function(b){return new a(b)};return a}();e.Observable=b},function(b,e,a){var f=a(5);b.exports=function(a){if(!f(a))throw TypeError(a+" is not an object!");return a}},function(b,e){var a=b.exports="undefined"!=typeof window&&Math==Math?window:"undefined"!=typeof self&&self.Math==
Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(b,e){b.exports=function(a){try{return!!a()}catch(f){return!0}}},function(b,e){b.exports=function(a){return"object"===typeof a?null!==a:"function"===typeof a}},function(b,e,a){var f=a(84)("wks"),d=a(53),c=a(3).Symbol,h="function"==typeof c;(b.exports=function(a){return f[a]||(f[a]=h&&c[a]||(h?c:d)("Symbol."+a))}).store=f},function(b,e,a){b.exports=!a(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},
function(b,e,a){var f=a(2),d=a(144),c=a(26),h=Object.defineProperty;e.f=a(7)?Object.defineProperty:function(a,b,l){f(a);b=c(b,!0);f(l);if(d)try{return h(a,b,l)}catch(n){}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");"value"in l&&(a[b]=l.value);return a}},function(b,e,a){function f(a){this.name="AssertionError";this.message=a;Error.captureStackTrace&&Error.captureStackTrace(this,f)}function d(a,b){if(!a)throw new f(b);}var c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?
function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};f.prototype=Error();d.equal=function(a,b,c){return d(a===b,c)};d.iface=function(a,b,k){d(a,b+" should be an object");for(var g in k)d.equal(c(a[g]),k[g],b+" should have property "+g+" as a "+k[g])};e.a=d},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===
b?Object.create(b):(c.prototype=b.prototype,new c)},d=a(125);b=a(32);var c=a(164),h=a(124);a=function(a){function b(d,l,k){a.call(this);this.syncErrorValue=null;this.isStopped=this.syncErrorThrowable=this.syncErrorThrown=!1;switch(arguments.length){case 0:this.destination=c.empty;break;case 1:if(!d){this.destination=c.empty;break}if("object"===typeof d){d instanceof b?(this.destination=d,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,d));break}default:this.syncErrorThrowable=
!0,this.destination=new g(this,d,l,k)}}f(b,a);b.prototype[h.rxSubscriber]=function(){return this};b.create=function(a,c,d){a=new b(a,c,d);a.syncErrorThrowable=!1;return a};b.prototype.next=function(a){this.isStopped||this._next(a)};b.prototype.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};b.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};b.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,a.prototype.unsubscribe.call(this))};
b.prototype._next=function(a){this.destination.next(a)};b.prototype._error=function(a){this.destination.error(a);this.unsubscribe()};b.prototype._complete=function(){this.destination.complete();this.unsubscribe()};b.prototype._unsubscribeAndRecycle=function(){var a=this._parent,b=this._parents;this._parents=this._parent=null;this.unsubscribe();this.isStopped=this.closed=!1;this._parent=a;this._parents=b;return this};return b}(b.Subscription);e.Subscriber=a;var g=function(a){function b(b,g,k,l){a.call(this);
this._parentSubscriber=b;var h;b=this;d.isFunction(g)?h=g:g&&(h=g.next,k=g.error,l=g.complete,g!==c.empty&&(b=Object.create(g),d.isFunction(b.unsubscribe)&&this.add(b.unsubscribe.bind(b)),b.unsubscribe=this.unsubscribe.bind(this)));this._context=b;this._next=h;this._error=k;this._complete=l}f(b,a);b.prototype.next=function(a){if(!this.isStopped&&this._next){var b=this._parentSubscriber;b.syncErrorThrowable?this.__tryOrSetError(b,this._next,a)&&this.unsubscribe():this.__tryOrUnsub(this._next,a)}};
b.prototype.error=function(a){if(!this.isStopped){var b=this._parentSubscriber;if(this._error)b.syncErrorThrowable?this.__tryOrSetError(b,this._error,a):this.__tryOrUnsub(this._error,a),this.unsubscribe();else if(b.syncErrorThrowable)b.syncErrorValue=a,b.syncErrorThrown=!0,this.unsubscribe();else throw this.unsubscribe(),a;}};b.prototype.complete=function(){var a=this;if(!this.isStopped){var b=this._parentSubscriber;if(this._complete){var c=function(){return a._complete.call(a._context)};b.syncErrorThrowable?
this.__tryOrSetError(b,c):this.__tryOrUnsub(c)}this.unsubscribe()}};b.prototype.__tryOrUnsub=function(a,b){try{a.call(this._context,b)}catch(p){throw this.unsubscribe(),p;}};b.prototype.__tryOrSetError=function(a,b,c){try{b.call(this._context,c)}catch(u){return a.syncErrorValue=u,a.syncErrorThrown=!0}return!1};b.prototype._unsubscribe=function(){var a=this._parentSubscriber;this._parentSubscriber=this._context=null;a.unsubscribe()};return b}(a)},function(b,e,a){var f=a(37),d=Math.min;b.exports=function(a){return 0<
a?d(f(a),9007199254740991):0}},function(b,e,a){var f=a(22);b.exports=function(a){return Object(f(a))}},function(b,e){var a={}.hasOwnProperty;b.exports=function(b,d){return a.call(b,d)}},function(b,e){b.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},function(b,e,a){var f=a(8),d=a(36);b.exports=a(7)?function(a,b,g){return f.f(a,b,d(1,g))}:function(a,b,d){a[b]=d;return a}},function(b,e,a){var f=a(3),d=a(15),c=a(13),h=a(53)("src"),g=Function.toString,k=
(""+g).split("toString");a(28).inspectSource=function(a){return g.call(a)};(b.exports=function(a,b,g,e){var l="function"==typeof g;l&&(c(g,"name")||d(g,"name",b));a[b]!==g&&(l&&(c(g,h)||d(g,h,a[b]?""+a[b]:k.join(String(b)))),a===f?a[b]=g:e?a[b]?a[b]=g:d(a,b,g):(delete a[b],d(a,b,g)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[h]||g.call(this)})},function(b,e,a){var f=a(0),d=a(4),c=a(22),h=/"/g,g=function(a,b,d,g){a=String(c(a));var k="<"+b;""!==d&&(k+=" "+d+'="'+
String(g).replace(h,"&quot;")+'"');return k+">"+a+"</"+b+">"};b.exports=function(a,b){var c={};c[a]=b(g);f(f.P+f.F*d(function(){var b=""[a]('"');return b!==b.toLowerCase()||3<b.split('"').length}),"String",c)}},function(b,e,a){var f=a(69),d=a(22);b.exports=function(a){return f(d(a))}},function(b,e,a){var f=a(70),d=a(36),c=a(18),h=a(26),g=a(13),k=a(144),l=Object.getOwnPropertyDescriptor;e.f=a(7)?l:function(a,b){a=c(a);b=h(b,!0);if(k)try{return l(a,b)}catch(p){}if(g(a,b))return d(!f.f.call(a,b),a[b])}},
function(b,e,a){var f=a(13),d=a(12),c=a(107)("IE_PROTO"),h=Object.prototype;b.exports=Object.getPrototypeOf||function(a){a=d(a);return f(a,c)?a[c]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?h:null}},function(b,e){var a={}.toString;b.exports=function(b){return a.call(b).slice(8,-1)}},function(b,e){b.exports=function(a){if(void 0==a)throw TypeError("Can't call method on "+a);return a}},function(b,e,a){var f=a(4);b.exports=function(a,b){return!!a&&
f(function(){b?a.call(null,function(){},1):a.call(null)})}},function(b,e,a){var f=a(29),d=a(69),c=a(12),h=a(11),g=a(224);b.exports=function(a,b){var k=1==a,l=2==a,e=3==a,u=4==a,q=6==a,t=5==a||q,v=b||g;return function(b,g,n){var m=c(b),p=d(m);g=f(g,n,3);n=h(p.length);var r=0;b=k?v(b,n):l?v(b,0):void 0;for(var x,w;n>r;r++)if(t||r in p)if(x=p[r],w=g(x,r,m),a)if(k)b[r]=w;else if(w)switch(a){case 3:return!0;case 5:return x;case 6:return r;case 2:b.push(x)}else if(u)return!1;return q?-1:e||u?u:b}}},function(b,
e,a){var f=a(0),d=a(28),c=a(4);b.exports=function(a,b){var g=(d.Object||{})[a]||Object[a],h={};h[a]=b(g);f(f.S+f.F*c(function(){g(1)}),"Object",h)}},function(b,e,a){var f=a(5);b.exports=function(a,b){if(!f(a))return a;var c,g;if(b&&"function"==typeof(c=a.toString)&&!f(g=c.call(a))||"function"==typeof(c=a.valueOf)&&!f(g=c.call(a))||!b&&"function"==typeof(c=a.toString)&&!f(g=c.call(a)))return g;throw TypeError("Can't convert object to primitive value");}},function(b,e,a){function f(){}var d={NONE:0,
ERROR:1,WARNING:2,INFO:3,DEBUG:4},c=function(){};f.error=c;f.warn=c;f.info=c;f.debug=c;f.setLevel=function(a){"string"==typeof a&&(a=d[a]);f.error=a>=d.ERROR?console.error.bind(console):c;f.warn=a>=d.WARNING?console.warn.bind(console):c;f.info=a>=d.INFO?console.info.bind(console):c;f.debug=a>=d.DEBUG?console.log.bind(console):c};e.a=f},function(b,e){var a=b.exports={version:"2.4.0"};"number"==typeof __e&&(__e=a)},function(b,e,a){var f=a(14);b.exports=function(a,b,h){f(a);if(void 0===b)return a;switch(h){case 1:return function(c){return a.call(b,
c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,l){return a.call(b,c,d,l)}}return function(){return a.apply(b,arguments)}}},function(b,e,a){var f=a(160),d=a(0);e=a(84)("metadata");var c=e.store||(e.store=new (a(163))),h=function(a,b,d){var g=c.get(a);if(!g){if(!d)return;c.set(a,g=new f)}a=g.get(b);if(!a){if(!d)return;g.set(b,a=new f)}return a};b.exports={store:c,map:h,has:function(a,b,c){b=h(b,c,!1);return void 0===b?!1:b.has(a)},get:function(a,b,c){b=h(b,c,!1);return void 0===
b?void 0:b.get(a)},set:function(a,b,c,d){h(c,d,!0).set(a,b)},keys:function(a,b){var c=h(a,b,!1),d=[];c&&c.forEach(function(a,b){d.push(b)});return d},key:function(a){return void 0===a||"symbol"==typeof a?a:String(a)},exp:function(a){d(d.S,"Reflect",a)}}},function(b,e,a){if(a(7)){var f=a(46),d=a(3),c=a(4),h=a(0),g=a(85),k=a(114),l=a(29),n=a(45),m=a(36),p=a(15);e=a(50);var u=a(37),q=a(11),t=a(52),v=a(26),r=a(13),w=a(157),x=a(68),y=a(5),B=a(12),A=a(99),F=a(47),Q=a(20),E=a(48).f,G=a(116),D=a(53),K=a(6),
z=a(24),J=a(75),I=a(108),M=a(117),O=a(59),C=a(81),L=a(51),N=a(92),T=a(137),H=a(8);a=a(19);var S=H.f,U=a.f,P=d.RangeError,R=d.TypeError,ba=d.Uint8Array,V=Array.prototype,W=k.ArrayBuffer,Y=k.DataView,X=z(0),Z=z(2),ca=z(3),ua=z(4),la=z(5),ia=z(6),fa=J(!0),ga=J(!1),na=M.values,va=M.keys,oa=M.entries,wa=V.lastIndexOf,pa=V.reduce,ha=V.reduceRight,da=V.join,xa=V.sort,Ca=V.slice,ma=V.toString,ya=V.toLocaleString,za=K("iterator"),qa=K("toStringTag"),Da=D("typed_constructor"),ja=D("def_constructor"),k=g.CONSTR,
ka=g.TYPED,Ma=g.VIEW,Na=z(1,function(a,b){return ra(I(a,a[ja]),b)}),Ea=c(function(){return 1===(new ba((new Uint16Array([1])).buffer))[0]}),Oa=!!ba&&!!ba.prototype.set&&c(function(){(new ba(1)).set({})}),Fa=function(a,b){if(void 0===a)throw R("Wrong length!");var c=+a,d=q(a);if(b&&!w(c,d))throw P("Wrong length!");return d},sa=function(a,b){var c=u(a);if(0>c||c%b)throw P("Wrong offset!");return c},aa=function(a){if(y(a)&&ka in a)return a;throw R(a+" is not a typed array!");},ra=function(a,b){if(!(y(a)&&
Da in a))throw R("It is not a typed array constructor!");return new a(b)},Ga=function(a,b){return Aa(I(a,a[ja]),b)},Aa=function(a,b){for(var c=0,d=b.length,g=ra(a,d);d>c;)g[c]=b[c++];return g},z=function(a,b,c){S(a,b,{get:function(){return this._d[c]}})},Ba=function(a){var b=B(a),c=arguments.length,d=1<c?arguments[1]:void 0,g=void 0!==d,h=G(b),k,f;if(void 0!=h&&!A(h))for(f=h.call(b),b=[],h=0;!(k=f.next()).done;h++)b.push(k.value);g&&2<c&&(d=l(d,arguments[2],2));h=0;c=q(b.length);for(k=ra(this,c);c>
h;h++)k[h]=g?d(b[h],h):b[h];return k},Pa=function(){for(var a=0,b=arguments.length,c=ra(this,b);b>a;)c[a]=arguments[a++];return c},Qa=!!ba&&c(function(){ya.call(new ba(1))}),Ha=function(){return ya.apply(Qa?Ca.call(aa(this)):aa(this),arguments)},Ia={copyWithin:function(a,b){return T.call(aa(this),a,b,2<arguments.length?arguments[2]:void 0)},every:function(a){return ua(aa(this),a,1<arguments.length?arguments[1]:void 0)},fill:function(a){return N.apply(aa(this),arguments)},filter:function(a){return Ga(this,
Z(aa(this),a,1<arguments.length?arguments[1]:void 0))},find:function(a){return la(aa(this),a,1<arguments.length?arguments[1]:void 0)},findIndex:function(a){return ia(aa(this),a,1<arguments.length?arguments[1]:void 0)},forEach:function(a){X(aa(this),a,1<arguments.length?arguments[1]:void 0)},indexOf:function(a){return ga(aa(this),a,1<arguments.length?arguments[1]:void 0)},includes:function(a){return fa(aa(this),a,1<arguments.length?arguments[1]:void 0)},join:function(a){return da.apply(aa(this),arguments)},
lastIndexOf:function(a){return wa.apply(aa(this),arguments)},map:function(a){return Na(aa(this),a,1<arguments.length?arguments[1]:void 0)},reduce:function(a){return pa.apply(aa(this),arguments)},reduceRight:function(a){return ha.apply(aa(this),arguments)},reverse:function(){for(var a=aa(this).length,b=Math.floor(a/2),c=0,d;c<b;)d=this[c],this[c++]=this[--a],this[a]=d;return this},some:function(a){return ca(aa(this),a,1<arguments.length?arguments[1]:void 0)},sort:function(a){return xa.call(aa(this),
a)},subarray:function(a,b){var c=aa(this),d=c.length,g=t(a,d);return new (I(c,c[ja]))(c.buffer,c.byteOffset+g*c.BYTES_PER_ELEMENT,q((void 0===b?d:t(b,d))-g))}},Ja=function(a,b){return Ga(this,Ca.call(aa(this),a,b))},Ka=function(a,b){aa(this);var c=sa(b,1),d=this.length,g=B(a),h=q(g.length),k=0;if(h+c>d)throw P("Wrong length!");for(;k<h;)this[c+k]=g[k++]},ta={entries:function(){return oa.call(aa(this))},keys:function(){return va.call(aa(this))},values:function(){return na.call(aa(this))}},La=function(a,
b){return y(a)&&a[ka]&&"symbol"!=typeof b&&b in a&&String(+b)==String(b)},D=function(a,b){return La(a,b=v(b,!0))?m(2,a[b]):U(a,b)},K=function(a,b,c){if(!(La(a,b=v(b,!0))&&y(c)&&r(c,"value"))||r(c,"get")||r(c,"set")||c.configurable||r(c,"writable")&&!c.writable||r(c,"enumerable")&&!c.enumerable)return S(a,b,c);a[b]=c.value;return a};k||(a.f=D,H.f=K);h(h.S+h.F*!k,"Object",{getOwnPropertyDescriptor:D,defineProperty:K});c(function(){ma.call({})})&&(ma=ya=function(){return da.call(this)});var ea=e({},
Ia);e(ea,ta);p(ea,za,ta.values);e(ea,{slice:Ja,set:Ka,constructor:function(){},toString:ma,toLocaleString:Ha});z(ea,"buffer","b");z(ea,"byteOffset","o");z(ea,"byteLength","l");z(ea,"length","e");S(ea,qa,{get:function(){return this[ka]}});b.exports=function(a,b,k,l){l=!!l;var e=a+(l?"Clamped":"")+"Array",m="Uint8Array"!=e,v="get"+a,u="set"+a,r=d[e],t=r||{},w=r&&Q(r);a={};var A=r&&r.prototype,B=function(a,c){S(a,c,{get:function(){var a=this._d;return a.v[v](c*b+a.o,Ea)},set:function(a){var d=this._d;
l&&(a=0>(a=Math.round(a))?0:255<a?255:a&255);d.v[u](c*b+d.o,a,Ea)},enumerable:!0})};r&&g.ABV?C(function(a){new r(null);new r(a)},!0)||(r=k(function(a,c,d,g){n(a,r,e);var h;return y(c)?c instanceof W||"ArrayBuffer"==(h=x(c))||"SharedArrayBuffer"==h?void 0!==g?new t(c,sa(d,b),g):void 0!==d?new t(c,sa(d,b)):new t(c):ka in c?Aa(r,c):Ba.call(r,c):new t(Fa(c,m))}),X(w!==Function.prototype?E(t).concat(E(w)):E(t),function(a){a in r||p(r,a,t[a])}),r.prototype=A,f||(A.constructor=r)):(r=k(function(a,c,d,g){n(a,
r,e,"_d");var h=0,k=0,l;if(y(c))if(c instanceof W||"ArrayBuffer"==(l=x(c))||"SharedArrayBuffer"==l){l=c;k=sa(d,b);c=c.byteLength;if(void 0===g){if(c%b)throw P("Wrong length!");g=c-k;if(0>g)throw P("Wrong length!");}else if(g=q(g)*b,g+k>c)throw P("Wrong length!");c=g/b}else return ka in c?Aa(r,c):Ba.call(r,c);else c=Fa(c,!0),g=c*b,l=new W(g);for(p(a,"_d",{b:l,o:k,l:g,e:c,v:new Y(l)});h<c;)B(a,h++)}),A=r.prototype=F(ea),p(A,"constructor",r));k=A[za];var w=!!k&&("values"==k.name||void 0==k.name),H=ta.values;
p(r,Da,!0);p(A,ka,e);p(A,Ma,!0);p(A,ja,r);(l?(new r(1))[qa]==e:qa in A)||S(A,qa,{get:function(){return e}});a[e]=r;h(h.G+h.W+h.F*(r!=t),a);h(h.S,e,{BYTES_PER_ELEMENT:b,from:Ba,of:Pa});"BYTES_PER_ELEMENT"in A||p(A,"BYTES_PER_ELEMENT",b);h(h.P,e,Ia);L(e);h(h.P+h.F*Oa,e,{set:Ka});h(h.P+h.F*!w,e,ta);h(h.P+h.F*(A.toString!=ma),e,{toString:ma});h(h.P+h.F*c(function(){(new r(1)).slice()}),e,{slice:Ja});h(h.P+h.F*(c(function(){return[1,2].toLocaleString()!=(new r([1,2])).toLocaleString()})||!c(function(){A.toLocaleString.call([1,
2])})),e,{toLocaleString:Ha});O[e]=w?k:H;f||w||p(A,za,H)}}else b.exports=function(){}},function(b,e,a){function f(a){return a.reduce(function(a,b){return a.concat(b instanceof l.UnsubscriptionError?b.errors:b)},[])}var d=a(72),c=a(179),h=a(125),g=a(126),k=a(87),l=a(474);b=function(){function a(a){this.closed=!1;this._subscriptions=this._parents=this._parent=null;a&&(this._unsubscribe=a)}a.prototype.unsubscribe=function(){var a=!1,b;if(!this.closed){var n=this._parent,e=this._parents,t=this._unsubscribe,
v=this._subscriptions;this.closed=!0;this._subscriptions=this._parents=this._parent=null;for(var r=-1,w=e?e.length:0;n;)n.remove(this),n=++r<w&&e[r]||null;h.isFunction(t)&&(n=g.tryCatch(t).call(this),n===k.errorObject&&(a=!0,b=b||(k.errorObject.e instanceof l.UnsubscriptionError?f(k.errorObject.e.errors):[k.errorObject.e])));if(d.isArray(v))for(r=-1,w=v.length;++r<w;)n=v[r],c.isObject(n)&&(n=g.tryCatch(n.unsubscribe).call(n),n===k.errorObject&&(a=!0,b=b||[],n=k.errorObject.e,n instanceof l.UnsubscriptionError?
b=b.concat(f(n.errors)):b.push(n)));if(a)throw new l.UnsubscriptionError(b);}};a.prototype.add=function(b){if(!b||b===a.EMPTY)return a.EMPTY;if(b===this)return this;var c=b;switch(typeof b){case "function":c=new a(b);case "object":if(c.closed||"function"!==typeof c.unsubscribe)return c;if(this.closed)return c.unsubscribe(),c;"function"!==typeof c._addParent&&(b=c,c=new a,c._subscriptions=[b]);break;default:throw Error("unrecognized teardown "+b+" added to Subscription.");}(this._subscriptions||(this._subscriptions=
[])).push(c);c._addParent(this);return c};a.prototype.remove=function(a){var b=this._subscriptions;b&&(a=b.indexOf(a),-1!==a&&b.splice(a,1))};a.prototype._addParent=function(a){var b=this._parent,c=this._parents;b&&b!==a?c?-1===c.indexOf(a)&&c.push(a):this._parents=[a]:this._parent=a};a.EMPTY=function(a){a.closed=!0;return a}(new a);return a}();e.Subscription=b},function(b,e,a){(function(a){var b="undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&
self;a="undefined"!==typeof window&&window||"undefined"!==typeof a&&a||b;e.root=a;if(!a)throw Error("RxJS could not find any global context (window, self, global)");}).call(e,a(127))},function(b,e,a){function f(a){var b=a.reduce(function(a,b){a[b]=b;return a},{});b.keys=a;return b}function d(a,b,c){return a+"("+b+")"+(c?": "+c.message:"")}function c(a,b,c){this.name="MediaError";this.type=p.MEDIA_ERROR;this.reason=b;this.code=q[a];this.fatal=c;this.message=d(this.name,this.code,this.reason)}function h(a,
b,c){this.name="NetworkError";this.type=p.NETWORK_ERROR;this.xhr=b.xhr;this.url=b.url;this.status=b.status;this.reqType=b.type;this.reason=b;this.code=q[a];this.fatal=c;this.message=this.reason?d(this.name,this.code,this.reason):d(this.name,this.code,{message:""+this.reqType+(0<this.status?"("+this.status+")":"")+" on "+this.url})}function g(a,b,c){this.name="EncryptedMediaError";this.type=p.ENCRYPTED_MEDIA_ERROR;this.reason=b;this.code=q[a];this.fatal=c;this.message=d(this.name,this.code,this.reason)}
function k(a,b,c){this.name="IndexError";this.type=p.INDEX_ERROR;this.indexType=b;this.reason=null;this.code=q[a];this.fatal=c;this.message=d(this.name,this.code,null)}function l(a,b,c){this.name="OtherError";this.type=p.OTHER_ERROR;this.reason=b;this.code=q[a];this.fatal=c;this.message=d(this.name,this.code,this.reason)}function n(a,b,c){this.name="RequestError";this.url=b.url;this.xhr=a;this.status=a.status;this.message=this.type=c}function m(a){return!!a&&!!a.type&&0<=p.keys.indexOf(a.type)}a.d(e,
"a",function(){return p});a.d(e,"b",function(){return q});a.d(e,"d",function(){return c});a.d(e,"j",function(){return h});a.d(e,"c",function(){return g});a.d(e,"g",function(){return k});a.d(e,"f",function(){return l});a.d(e,"h",function(){return n});a.d(e,"i",function(){return u});a.d(e,"e",function(){return m});var p=f(["NETWORK_ERROR","MEDIA_ERROR","ENCRYPTED_MEDIA_ERROR","INDEX_ERROR","OTHER_ERROR"]),u=f(["TIMEOUT","ERROR_EVENT","ERROR_HTTP_CODE","PARSE_ERROR"]),q=f("PIPELINE_RESOLVE_ERROR PIPELINE_LOAD_ERROR PIPELINE_PARSING_ERROR MANIFEST_PARSE_ERROR MANIFEST_INCOMPATIBLE_CODECS_ERROR MEDIA_IS_ENCRYPTED_ERROR KEY_ERROR KEY_STATUS_CHANGE_ERROR KEY_UPDATE_ERROR KEY_LOAD_ERROR KEY_LOAD_TIMEOUT KEY_GENERATE_REQUEST_ERROR INCOMPATIBLE_KEYSYSTEMS LICENSE_SERVER_CERTIFICATE_ERROR BUFFER_APPEND_ERROR BUFFER_FULL_ERROR BUFFER_TYPE_UNKNOWN MEDIA_ERR_ABORTED MEDIA_ERR_NETWORK MEDIA_ERR_DECODE MEDIA_ERR_SRC_NOT_SUPPORTED MEDIA_SOURCE_NOT_SUPPORTED MEDIA_KEYS_NOT_SUPPORTED OUT_OF_INDEX_ERROR UNKNOWN_INDEX".split(" "));
c.prototype=Error();h.prototype=Error();h.prototype.isHttpError=function(a){return this.reqType==u.ERROR_HTTP_CODE&&this.status==a};g.prototype=Error();k.prototype=Error();l.prototype=Error();n.prototype=Error()},function(b,e,a){var f=a(53)("meta"),d=a(5),c=a(13),h=a(8).f,g=0,k=Object.isExtensible||function(){return!0},l=!a(4)(function(){return k(Object.preventExtensions({}))}),n=function(a){h(a,f,{value:{i:"O"+ ++g,w:{}}})},m=b.exports={KEY:f,NEED:!1,fastKey:function(a,b){if(!d(a))return"symbol"==
typeof a?a:("string"==typeof a?"S":"P")+a;if(!c(a,f)){if(!k(a))return"F";if(!b)return"E";n(a)}return a[f].i},getWeak:function(a,b){if(!c(a,f)){if(!k(a))return!0;if(!b)return!1;n(a)}return a[f].w},onFreeze:function(a){l&&m.NEED&&k(a)&&!c(a,f)&&n(a);return a}}},function(b,e){b.exports=function(a,b){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:b}}},function(b,e){var a=Math.ceil,f=Math.floor;b.exports=function(b){return isNaN(b=+b)?0:(0<b?f:a)(b)}},function(b,e,a){var f=Object.getOwnPropertySymbols,
d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;b.exports=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;for(var b={},a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?
!1:!0}catch(l){return!1}}()?Object.assign:function(a,b){var g,h;if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");h=Object(a);for(var n,e=1;e<arguments.length;e++){g=Object(arguments[e]);for(var p in g)d.call(g,p)&&(h[p]=g[p]);if(f){n=f(g);for(var u=0;u<n.length;u++)c.call(g,n[u])&&(h[n[u]]=g[n[u]])}}return h}},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);
a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},d=a(1);b=a(10);var c=a(32),h=a(174),g=a(407),k=a(124),l=function(a){function b(b){a.call(this,b);this.destination=b}f(b,a);return b}(b.Subscriber);e.SubjectSubscriber=l;a=function(a){function b(){a.call(this);this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null}f(b,a);b.prototype[k.rxSubscriber]=function(){return new l(this)};b.prototype.lift=function(a){var b=new n(this,this);b.operator=a;return b};
b.prototype.next=function(a){if(this.closed)throw new h.ObjectUnsubscribedError;if(!this.isStopped)for(var b=this.observers,c=b.length,b=b.slice(),d=0;d<c;d++)b[d].next(a)};b.prototype.error=function(a){if(this.closed)throw new h.ObjectUnsubscribedError;this.hasError=!0;this.thrownError=a;this.isStopped=!0;for(var b=this.observers,c=b.length,b=b.slice(),d=0;d<c;d++)b[d].error(a);this.observers.length=0};b.prototype.complete=function(){if(this.closed)throw new h.ObjectUnsubscribedError;this.isStopped=
!0;for(var a=this.observers,b=a.length,a=a.slice(),c=0;c<b;c++)a[c].complete();this.observers.length=0};b.prototype.unsubscribe=function(){this.closed=this.isStopped=!0;this.observers=null};b.prototype._trySubscribe=function(b){if(this.closed)throw new h.ObjectUnsubscribedError;return a.prototype._trySubscribe.call(this,b)};b.prototype._subscribe=function(a){if(this.closed)throw new h.ObjectUnsubscribedError;if(this.hasError)return a.error(this.thrownError),c.Subscription.EMPTY;if(this.isStopped)return a.complete(),
c.Subscription.EMPTY;this.observers.push(a);return new g.SubjectSubscription(this,a)};b.prototype.asObservable=function(){var a=new d.Observable;a.source=this;return a};b.create=function(a,b){return new n(a,b)};return b}(d.Observable);e.Subject=a;var n=function(a){function b(b,c){a.call(this);this.destination=b;this.source=c}f(b,a);b.prototype.next=function(a){var b=this.destination;b&&b.next&&b.next(a)};b.prototype.error=function(a){var b=this.destination;b&&b.error&&this.destination.error(a)};b.prototype.complete=
function(){var a=this.destination;a&&a.complete&&this.destination.complete()};b.prototype._subscribe=function(a){return this.source?this.source.subscribe(a):c.Subscription.EMPTY};return b}(a);e.AnonymousSubject=n},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b){a.call(this);this.scheduler=b}f(b,a);b.create=function(a){return new b(a)};
b.dispatch=function(a){a.subscriber.complete()};b.prototype._subscribe=function(a){var c=this.scheduler;if(c)return c.schedule(b.dispatch,0,{subscriber:a});a.complete()};return b}(a(1).Observable);e.EmptyObservable=b},function(b,e,a){b=a(170);e.merge=b.mergeStatic},function(b,e,a){function f(a,b){return a.reduce(function(a,c){return a.concat((b||T).map(function(a){return a+c}))},[])}function d(a,b){return b.filter(function(b){var c;c=document.createElement(a.tagName);b="on"+b;b in c?c=!0:(c.setAttribute(b,
"return;"),c="function"==typeof c[b]);return c})[0]}function c(b,c){var g=void 0;b=f(b,c);return function(c){return c instanceof H?("undefined"==typeof g&&(g=d(c,b)||null),g?M(c,g):O()):a.i(z.a)(c,b)}}function h(a){return!!U&&U.isTypeSupported(a)}function g(){return R}function k(a){return"open"==a.readyState?A.Observable.of(null):ua(a).take(1)}function l(a){return a.readyState>=V?A.Observable.of(null):ca(a).take(1)}function n(b){return b.readyState>=W?A.Observable.of(null):a.i(z.a)(b,"canplay").take(1)}
function m(b,c){function d(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};a.errorCode&&(a={systemCode:a.systemCode,code:a.errorCode.code});this.name="KeySessionError";this.mediaKeyError=a;this.message="MediaKeyError code:"+a.code+" and systemCode:"+a.systemCode}d.prototype=Error();return function(g,k){var h="function"==typeof c?c.call(this):this,l=ia(h),f=fa(h).map(function(a){throw new d(h.error||a);});try{return b.call(this,g,k),a.i(F.merge)(l,f).take(1)}catch(ja){return A.Observable["throw"](ja)}}}
function p(a,b){if(b instanceof Y)return b._setVideo(a);if(a.setMediaKeys)return a.setMediaKeys(b);if(null!==b){if(a.WebkitSetMediaKeys)return a.WebkitSetMediaKeys(b);if(a.mozSetMediaKeys)return a.mozSetMediaKeys(b);if(a.msSetMediaKeys)return a.msSetMediaKeys(b)}}function u(a){t()||(a.requestFullscreen?a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT))}
function q(){t()&&(L.exitFullscreen?L.exitFullscreen():L.msExitFullscreen?L.msExitFullscreen():L.mozCancelFullScreen?L.mozCancelFullScreen():L.webkitExitFullscreen&&L.webkitExitFullscreen())}function t(){return!!(L.fullscreenElement||L.mozFullScreenElement||L.webkitFullscreenElement||L.msFullscreenElement)}function v(){var b=void 0;null!=L.hidden?b="":null!=L.mozHidden?b="moz":null!=L.msHidden?b="ms":null!=L.webkitHidden&&(b="webkit");var c=b?b+"Hidden":"hidden",b=b+"visibilitychange";return a.i(z.a)(L,
b).map(function(){return L[c]})}function r(){return a.i(z.a)(N,"resize")}function w(a,b){var c,d=void 0;R?(c=a.textTracks.length,c=0<c?a.textTracks[c-1]:a.addTextTrack("subtitles"),c.mode=b?c.HIDDEN:c.SHOWING):(d=document.createElement("track"),a.appendChild(d),c=d.track,d.kind="subtitles",c.mode=b?"hidden":"showing");return{track:c,trackElement:d}}function x(){return!R}function y(a){return ba&&"timeupdate"===a.name&&a.range&&10<a.range.end-a.ts}function B(a){a.src="";a.removeAttribute("src")}a.d(e,
"a",function(){return S});a.d(e,"m",function(){return U});a.d(e,"k",function(){return h});a.d(e,"n",function(){return k});a.d(e,"o",function(){return l});a.d(e,"p",function(){return n});a.d(e,"h",function(){return Z});a.d(e,"i",function(){return X});a.d(e,"j",function(){return wa});a.d(e,"f",function(){return ga});a.d(e,"g",function(){return g});a.d(e,"c",function(){return t});a.d(e,"b",function(){return ha});a.d(e,"e",function(){return u});a.d(e,"d",function(){return q});a.d(e,"v",function(){return r});
a.d(e,"u",function(){return v});a.d(e,"r",function(){return w});a.d(e,"l",function(){return B});a.d(e,"s",function(){return x});a.d(e,"q",function(){return y});a.d(e,"t",function(){return R});b=a(38);b=a.n(b);var A=a(1);a.n(A);var F=a(41);a.n(F);e=a(166);a.n(e);var Q=a(442);a.n(Q);var E=a(165);a.n(E);a(27);var G=a(89),D=a(43),K=a(9),z=a(44),J=a(34),I=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,
d.key,d)}}return function(b,c,d){c&&a(b.prototype,c);d&&a(b,d);return b}}(),M=e.FromEventObservable.create,O=Q.NeverObservable.create,C=E.DeferObservable.create,L=document,N=window,T=["","webkit","moz","ms"],H=N.HTMLElement,S=N.HTMLVideoElement,U=N.MediaSource||N.MozMediaSource||N.WebKitMediaSource||N.MSMediaSource,P=N.MediaKeys||N.MozMediaKeys||N.WebKitMediaKeys||N.MSMediaKeys,R="Microsoft Internet Explorer"==navigator.appName||"Netscape"==navigator.appName&&/(Trident|Edge)\//.test(navigator.userAgent),
ba=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),V=1,W=4,Y=function(){},X=void 0;navigator.requestMediaKeySystemAccess&&(X=function(b,c){return a.i(z.b)(navigator.requestMediaKeySystemAccess(b,c))});var Z=function(){function a(b,c,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this._keyType=b;this._mediaKeys=c;this._configuration=d}a.prototype.createMediaKeys=function(){return A.Observable.of(this._mediaKeys)};a.prototype.getConfiguration=function(){return this._configuration};
I(a,[{key:"keySystem",get:function(){return this._keyType}}]);return a}(),ca=c(["loadedmetadata"]),ua=c(["sourceopen","webkitsourceopen"]);e=c(["encrypted","needkey"]);var la=c(["keymessage","message"]),ia=c(["keyadded","ready"]),fa=c(["keyerror","error"]),Q=c(["keystatuseschange"]),ga={onEncrypted:e,onKeyMessage:la,onKeyStatusesChange:Q,onKeyError:fa};if(!X&&S.prototype.webkitGenerateKeyRequest){var na=function(b,c){var d=this;G.a.call(this);this.sessionId="";this._vid=b;this._key=c;this._con=a.i(F.merge)(la(b),
ia(b),fa(b)).subscribe(function(a){return d.trigger(a.type,a)})};na.prototype=b()({generateRequest:function(a,b){this._vid.webkitGenerateKeyRequest(this._key,b)},update:m(function(b,c){if(0<=this._key.indexOf("clearkey")){var d=JSON.parse(a.i(D.a)(b)),g=a.i(D.b)(atob(d.keys[0].k)),d=a.i(D.b)(atob(d.keys[0].kid));this._vid.webkitAddKey(this._key,g,d,c)}else this._vid.webkitAddKey(this._key,b,null,c);this.sessionId=c}),close:function(){this._con&&this._con.unsubscribe();this._vid=this._con=null}},G.a.prototype);
Y=function(a){this.ks_=a};Y.prototype={_setVideo:function(a){this._vid=a},createSession:function(){return new na(this._vid,this.ks_)}};var va=function(a){var b=L.querySelector("video")||L.createElement("video");return b&&b.canPlayType?!!b.canPlayType("video/mp4",a):!1},X=function(a,b){if(!va(a))return A.Observable["throw"]();for(var c=0;c<b.length;c++){var d=b[c],g=d.videoCapabilities,h=d.audioCapabilities,k=d.initDataTypes,l=d.sessionTypes,f=d.distinctiveIdentifier,d=d.persistentState,n=!0;if(n=
(n=(n=(n=n&&(!k||!!k.filter(function(a){return"cenc"===a})[0]))&&(!l||l.filter(function(a){return"temporary"===a}).length===l.length))&&"required"!==f)&&"required"!==d)return c={videoCapabilities:g,audioCapabilities:h,initDataTypes:["cenc"],distinctiveIdentifier:"not-allowed",persistentState:"not-allowed",sessionTypes:["temporary"]},A.Observable.of(new Z(a,new Y(a),c))}return A.Observable["throw"]()}}else if(P&&!X){var oa=function(a){G.a.call(this);this.sessionId="";this._mk=a};oa.prototype=b()({generateRequest:function(b,
c){var d=this;this._ss=this._mk.memCreateSession("video/mp4",c);this._con=a.i(F.merge)(la(this._ss),ia(this._ss),fa(this._ss)).subscribe(function(a){return d.trigger(a.type,a)})},update:m(function(b,c){a.i(K.a)(this._ss);this._ss.update(b,c);this.sessionId=c},function(){return this._ss}),close:function(){this._ss&&(this._ss.close(),this._ss=null);this._con&&(this._con.unsubscribe(),this._con=null)}},G.a.prototype);P.prototype.alwaysRenew=!0;P.prototype.memCreateSession=P.prototype.createSession;P.prototype.createSession=
function(){return new oa(this)};X=function(a,b){if(!P.isTypeSupported(a))return A.Observable["throw"]();for(var c=0;c<b.length;c++){var d=b[c],g=d.videoCapabilities,h=d.audioCapabilities,k=d.initDataTypes,d=d.distinctiveIdentifier,l=!0;if(l=(l=l&&(!k||!!k.filter(function(a){return"cenc"===a})[0]))&&"required"!==d)return c={videoCapabilities:g,audioCapabilities:h,initDataTypes:["cenc"],distinctiveIdentifier:"not-allowed",persistentState:"required",sessionTypes:["temporary","persistent-license"]},A.Observable.of(new Z(a,
new P(a),c))}return A.Observable["throw"]()}}P||(b=function(){throw new J.d("MEDIA_KEYS_NOT_SUPPORTED",null,!0);},P={create:b,isTypeSupported:b});var wa=function(b,c){return C(function(){return a.i(z.b)(p(b,c))})};if(N.WebKitSourceBuffer&&!N.WebKitSourceBuffer.prototype.addEventListener){b=N.WebKitSourceBuffer.prototype;for(var pa in G.a.prototype)b[pa]=G.a.prototype[pa];b.__listeners=[];b.appendBuffer=function(a){if(this.updating)throw Error("updating");this.trigger("updatestart");this.updating=
!0;try{this.append(a)}catch(xa){this.__emitUpdate("error",xa);return}this.__emitUpdate("update")};b.__emitUpdate=function(a,b){var c=this;setTimeout(function(){c.trigger(a,b);c.updating=!1;c.trigger("updateend")},0)}}var ha=c(["fullscreenchange","FullscreenChange"],T.concat("MS"))},function(b,e,a){function f(a){for(var b=a.length,c=new Uint8Array(b),d=0;d<b;d++)c[d]=a.charCodeAt(d)&255;return c}function d(a){return String.fromCharCode.apply(null,a)}function c(a){for(var b="",c=a.length,d=0;d<c;d+=
2)b+=String.fromCharCode(a[d]);return b}function h(a){for(var b=a.length,c=new Uint8Array(b/2),d=0,g=0;d<b;d+=2,g++)c[g]=parseInt(a.substr(d,2),16)&255;return c}function g(a,b){b||(b="");for(var c="",d=0;d<a.byteLength;d++)c+=(a[d]>>>4).toString(16),c+=(a[d]&15).toString(16),b.length&&d<a.byteLength-1&&(c+=b);return c}function k(){for(var a=arguments.length,b=-1,c=0,d;++b<a;)d=arguments[b],c+="number"===typeof d?d:d.length;for(var c=new Uint8Array(c),g=0,b=-1;++b<a;)d=arguments[b],"number"===typeof d?
g+=d:0<d.length&&(c.set(d,g),g+=d.length);return c}function l(a,b){return(a[0+b]<<8)+(a[1+b]<<0)}function n(a,b){return 16777216*a[0+b]+65536*a[1+b]+256*a[2+b]+a[3+b]}function m(a,b){return 4294967296*(16777216*a[0+b]+65536*a[1+b]+256*a[2+b]+a[3+b])+16777216*a[4+b]+65536*a[5+b]+256*a[6+b]+a[7+b]}function p(a){return new Uint8Array([a>>>8&255,a&255])}function u(a){return new Uint8Array([a>>>24&255,a>>>16&255,a>>>8&255,a&255])}function q(a){var b=a%4294967296;a=(a-b)/4294967296;return new Uint8Array([a>>>
24&255,a>>>16&255,a>>>8&255,a&255,b>>>24&255,b>>>16&255,b>>>8&255,b&255])}function t(a,b){return(a[0+b]<<0)+(a[1+b]<<8)}function v(a,b){return a[0+b]+256*a[1+b]+65536*a[2+b]+16777216*a[3+b]}function r(a){w.a.equal(a.length,16,"UUID length should be 16");var b=f(a);a=b[0];var c=b[1],d=b[2],k=b[3],h=b[4],l=b[5],n=b[6],e=b[7],m=b.subarray(8,10),b=b.subarray(10,16),v=new Uint8Array(16);v[0]=k;v[1]=d;v[2]=c;v[3]=a;v[4]=l;v[5]=h;v[6]=e;v[7]=n;v.set(m,8);v.set(b,10);return g(v)}a.d(e,"b",function(){return f});
a.d(e,"a",function(){return d});a.d(e,"k",function(){return c});a.d(e,"j",function(){return h});a.d(e,"o",function(){return g});a.d(e,"h",function(){return k});a.d(e,"g",function(){return l});a.d(e,"e",function(){return n});a.d(e,"f",function(){return m});a.d(e,"d",function(){return t});a.d(e,"c",function(){return v});a.d(e,"m",function(){return p});a.d(e,"i",function(){return u});a.d(e,"n",function(){return q});a.d(e,"l",function(){return r});var w=a(9)},function(b,e,a){function f(a,b){if("function"!==
typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function d(a,b){return Array.isArray(b)?l.merge.apply(null,b.map(function(b){return n(a,b)})):n(a,b)}function c(a){return a instanceof k.Observable?a:a&&"function"==typeof a.subscribe?new k.Observable(function(b){var c=
a.subscribe(function(a){return b.next(a)},function(a){return b.error(a)},function(){return b.complete()});return function(){c&&c.dispose?c.dispose():c&&c.unsubscribe&&c.unsubscribe()}}):a&&"function"==typeof a.then?m(a):k.Observable.of(a)}function h(a){return new p(a)}function g(a,b){try{return a(b)}catch(v){return k.Observable["throw"](v)}}a.d(e,"a",function(){return d});a.d(e,"e",function(){return h});a.d(e,"c",function(){return g});a.d(e,"b",function(){return c});a.d(e,"d",function(){return u});
var k=a(1);a.n(k);var l=a(41);a.n(l);b=a(166);a.n(b);e=a(167);a.n(e);var n=b.FromEventObservable.create,m=e.PromiseObservable.create,p=function(a){function b(c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var d;d=a.call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");d=!d||"object"!==typeof d&&"function"!==typeof d?this:d;d.value=c;return d}f(b,a);b.prototype._subscribe=function(a){a.next(this.value)};return b}(k.Observable),
u=function(a){var b=!1;return function(){if(b)return k.Observable.empty();b=!0;return c(a.apply(void 0,arguments))["do"](null,function(){return b=!1},function(){return b=!1})}}},function(b,e){b.exports=function(a,b,d,c){if(!(a instanceof b)||void 0!==c&&c in a)throw TypeError(d+": incorrect invocation!");return a}},function(b,e){b.exports=!1},function(b,e,a){var f=a(2),d=a(150),c=a(95),h=a(107)("IE_PROTO"),g=function(){},k=function(){var b=a(94)("iframe"),d=c.length;b.style.display="none";a(97).appendChild(b);
b.src="javascript:";b=b.contentWindow.document;b.open();b.write("<script>document.F=Object\x3c/script>");b.close();for(k=b.F;d--;)delete k.prototype[c[d]];return k()};b.exports=Object.create||function(a,b){var c;null!==a?(g.prototype=f(a),c=new g,g.prototype=null,c[h]=a):c=k();return void 0===b?c:d(c,b)}},function(b,e,a){var f=a(152),d=a(95).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(a){return f(a,d)}},function(b,e,a){var f=a(152),d=a(95);b.exports=Object.keys||function(a){return f(a,
d)}},function(b,e,a){var f=a(16);b.exports=function(a,b,h){for(var c in b)f(a,c,b[c],h);return a}},function(b,e,a){var f=a(3),d=a(8),c=a(7),h=a(6)("species");b.exports=function(a){a=f[a];c&&a&&!a[h]&&d.f(a,h,{configurable:!0,get:function(){return this}})}},function(b,e,a){var f=a(37),d=Math.max,c=Math.min;b.exports=function(a,b){a=f(a);return 0>a?d(a+b,0):c(a,b)}},function(b,e){var a=0,f=Math.random();b.exports=function(b){return"Symbol(".concat(void 0===b?"":b,")_",(++a+f).toString(36))}},function(b,
e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){a.apply(this,arguments)}f(b,a);b.prototype.notifyNext=function(a,b,c,d,f){this.destination.next(b)};b.prototype.notifyError=function(a,b){this.destination.error(a)};b.prototype.notifyComplete=function(a){this.destination.complete()};return b}(a(10).Subscriber);e.OuterSubscriber=
b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(1);var d=a(119),c=a(40),h=a(62);a=function(a){function b(b,c){a.call(this);this.array=b;this.scheduler=c;c||1!==b.length||(this._isScalar=!0,this.value=b[0])}f(b,a);b.create=function(a,c){return new b(a,c)};b.of=function(){for(var a=[],g=0;g<arguments.length;g++)a[g-0]=arguments[g];g=
a[a.length-1];h.isScheduler(g)?a.pop():g=null;var k=a.length;return 1<k?new b(a,g):1===k?new d.ScalarObservable(a[0],g):new c.EmptyObservable(g)};b.dispatch=function(a){var b=a.array,c=a.index,d=a.subscriber;c>=a.count?d.complete():(d.next(b[c]),d.closed||(a.index=c+1,this.schedule(a)))};b.prototype._subscribe=function(a){var c=this.array,d=c.length,g=this.scheduler;if(g)return g.schedule(b.dispatch,0,{array:c,index:0,count:d,subscriber:a});for(g=0;g<d&&!a.closed;g++)a.next(c[g]);a.complete()};return b}(b.Observable);
e.ArrayObservable=a},function(b,e,a){var f=a(33),d=a(176),c=a(180),h=a(179),g=a(1),k=a(122),l=a(404),n=a(123);e.subscribeToResult=function(a,b,e,q){var m=new l.InnerSubscriber(a,e,q);if(m.closed)return null;if(b instanceof g.Observable)if(b._isScalar)m.next(b.value),m.complete();else return b.subscribe(m);else if(d.isArrayLike(b)){a=0;for(e=b.length;a<e&&!m.closed;a++)m.next(b[a]);m.closed||m.complete()}else{if(c.isPromise(b))return b.then(function(a){m.closed||(m.next(a),m.complete())},function(a){return m.error(a)}).then(null,
function(a){f.root.setTimeout(function(){throw a;})}),m;if(b&&"function"===typeof b[k.iterator]){b=b[k.iterator]();do{a=b.next();if(a.done){m.complete();break}m.next(a.value);if(m.closed)break}while(1)}else if(b&&"function"===typeof b[n.observable])if(b=b[n.observable](),"function"!==typeof b.subscribe)m.error(new TypeError("Provided object does not correctly implement Symbol.observable"));else return b.subscribe(new l.InnerSubscriber(a,e,q));else b=h.isObject(b)?"an invalid object":"'"+b+"'",m.error(new TypeError("You provided "+
b+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}return null}},function(b,e,a){var f=a(6)("unscopables"),d=Array.prototype;void 0==d[f]&&a(15)(d,f,{});b.exports=function(a){d[f][a]=!0}},function(b,e,a){var f=a(29),d=a(146),c=a(99),h=a(2),g=a(11),k=a(116),l={},n={};e=b.exports=function(a,b,e,q,t){t=t?function(){return a}:k(a);e=f(e,q,b?2:1);q=0;var m,p;if("function"!=typeof t)throw TypeError(a+" is not iterable!");if(c(t))for(m=g(a.length);m>q;q++){if(t=
b?e(h(p=a[q])[0],p[1]):e(a[q]),t===l||t===n)return t}else for(q=t.call(a);!(p=q.next()).done;)if(t=d(q,e,p.value,b),t===l||t===n)return t};e.BREAK=l;e.RETURN=n},function(b,e){b.exports={}},function(b,e,a){var f=a(8).f,d=a(13),c=a(6)("toStringTag");b.exports=function(a,b,k){a&&!d(a=k?a:a.prototype,c)&&f(a,c,{configurable:!0,value:b})}},function(b,e,a){var f=a(0),d=a(22),c=a(4),h=a(112);e="["+h+"]";var g=RegExp("^"+e+e+"*"),k=RegExp(e+e+"*$");e=function(a,b,d){var g={},k=c(function(){return!!h[a]()||
"\u200b\u0085"!="\u200b\u0085"[a]()});b=g[a]=k?b(l):h[a];d&&(g[d]=b);f(f.P+f.F*k,"String",g)};var l=e.trim=function(a,b){a=String(d(a));b&1&&(a=a.replace(g,""));b&2&&(a=a.replace(k,""));return a};b.exports=e},function(b,e,a){e.isScheduler=function(a){return a&&"function"===typeof a.schedule}},function(b,e,a){b.exports=function(a,b,c){if("function"===typeof Array.prototype.find)return a.find(b,c);c=c||this;var d=a.length,g;if("function"!==typeof b)throw new TypeError(b+" is not a function");for(g=
0;g<d;g++)if(b.call(c,a[g],g,a))return a[g]}},function(b,e,a){function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function d(a){for(var b=a.length,c=[],d=0;d<b;d++)c.push(new u(a.start(d),a.end(d),0));return c}function c(a){for(var b=a.length,c=[],d=0;d<b;d++)c.push(a[d].clone());return c}function h(a,b){return a.start<=b&&b<a.end}function g(a,b){for(var c=0;c<b.length;c++)if(k(a,b[c]))return b[c];return null}function k(a,b){return h(a,b.start)||h(a,b.end)||
h(b,a.start)}function l(a,b){return h(a,b.start)&&h(a,b.end)}function n(a){for(var b=1;b<a.length;b++){var c=a[b-1],d=a[b];c.bitrate===d.bitrate&&(Math.abs(d.start-c.end)<p||Math.abs(d.end-c.start)<p)&&(c=new u(Math.min(c.start,d.start),Math.max(c.end,d.end),d.bitrate),a.splice(--b,2,c))}return a}function m(a){a=c(a);for(var b=0;b<a.length;b++)a[b].bitrate=0;return n(a)}a.d(e,"b",function(){return d});a.d(e,"a",function(){return q});a(9);var p=1/60,u=function(){function a(b,c,d){f(this,a);this.start=
b;this.end=c;this.bitrate=d}a.prototype.isNil=function(){return this.start===this.end};a.prototype.clone=function(){return new a(this.start,this.end,this.bitrate)};return a}(),q=function(){function a(b){f(this,a);this.ranges=b=b?Array.isArray(b)?c(b):d(b):[];this.length=b.length}a.prototype.start=function(a){return this.ranges[a].start};a.prototype.end=function(a){return this.ranges[a].end};a.prototype.getSegmentRange=function(a,b){for(var c=a+b,d=Math.min(b/3,.9),g=0;g<this.ranges.length;g++){var k=
this.ranges[g],h=k.start,k=k.end;if(h-a<=d&&a-k<=d&&h-c<=d&&c-k<=d)return this.ranges[g]}return null};a.prototype.getRange=function(a){for(var b=0;b<this.ranges.length;b++)if(h(this.ranges[b],a))return this.ranges[b];return null};a.prototype.getOuterRanges=function(a){for(var b=[],c=0;c<this.ranges.length;c++)h(this.ranges[c],a)||b.push(this.ranges[c]);return b};a.prototype.getGap=function(a){var b=this.getRange(a);return b?b.end-a:Infinity};a.prototype.getLoaded=function(a){var b=this.getRange(a);
return b?a-b.start:0};a.prototype.getSize=function(a){return(a=this.getRange(a))?a.end-a.start:0};a.prototype.getNextRangeGap=function(a){for(var b=this.ranges,c=-1,d=void 0;++c<b.length;){var g=b[c].start;if(g>a){d=g;break}}return null!=d?d-a:Infinity};a.prototype.insert=function(a,b,c){var d=this.ranges;a=new u(b,c,a);if(!a.isNil()){for(b=0;b<d.length;b++){c=d[b];var g=k(a,c),h=Math.abs(c.start-a.end)<p||Math.abs(c.end-a.start)<p;if(g||h)if(a.bitrate===c.bitrate)a=new u(Math.min(a.start,c.start),
Math.max(a.end,c.end),c.bitrate),d.splice(b--,1);else if(g)if(l(c,a))d.splice(++b,0,a),g=c.end,c.end=a.start,a=new u(a.end,g,c.bitrate);else if(l(a,c))d.splice(b--,1);else if(c.start<a.start)c.end=a.start;else{c.start=a.end;break}else break;else if(0===b){if(a.end<=d[0].start)break}else if(d[b-1].end<=a.start&&a.end<=c.start)break}d.splice(b,0,a);for(a=0;a<d.length;a++)d[a].isNil()&&d.splice(a++,1);n(d)}this.length=this.ranges.length;return this.ranges};a.prototype.remove=function(b,c){this.intersect(new a([new u(0,
b,0),new u(c,Infinity,0)]))};a.prototype.equals=function(a){a:{var b=a.ranges;a=m(this.ranges);for(var b=m(b),c=0;c<a.length;c++){var d=a[c],k=g(d,b);if(!(k&&Math.abs(k.start-d.start)<p&&Math.abs(k.end-d.end)<p)){a=!1;break a}}a=!0}return a};a.prototype.intersect=function(a){var b=this.ranges;a=a.ranges;for(var c=0;c<b.length;c++){var d=b[c],k=g(d,a);k?(k.start>d.start&&(d.start=k.start),k.end<d.end&&(d.end=k.end)):b.splice(c--,1)}this.length=this.ranges.length;return this.ranges};return a}()},function(b,
e,a){a.d(e,"e",function(){return d});a.d(e,"d",function(){return c});a.d(e,"a",function(){return h});a.d(e,"b",function(){return g});a.d(e,"c",function(){return k});a(9);var f=a(73),d=function(a,b,c){var d=a.presentationTimeOffset||0;a=a.timescale||1;return{up:b*a-d,to:(b+c)*a-d}},c=function(a){var b=a.ts,c=a.d;a=a.r;return-1===c?b:b+(a+1)*c},h=function(a,b){var c=b.initialization,c=void 0===c?{}:c;return new f.a({id:""+a+"_init",init:!0,range:c.range||null,indexRange:b.indexRange||null,media:c.media,
timescale:b.timescale})},g=function(a,b){a.timescale!==b&&(a.timescale=b);return a},k=function(a,b){return b/a.timescale}},function(b,e,a){e.a=function(a,b,c){if("function"===typeof Array.prototype.includes)return a.includes(b,c);var d=a.length>>>0;if(0===d)return!1;c|=0;for(c=Math.max(0<=c?c:d-Math.abs(c),0);c<d;){var g=a[c],k=b;if(g===k||"number"===typeof g&&"number"===typeof k&&isNaN(g)&&isNaN(k))return!0;c++}return!1}},function(b,e,a){function f(a){if(null!=a){var b;"string"===typeof a?(b=a,a=
!1):(b=h(a.language),a=!!a.closedCaption);return{language:b,closedCaption:a}}}function d(a){if(null!=a){var b;"string"===typeof a?(b=a,a=!1):(b=h(a.language),a=!!a.audioDescription);return{language:b,audioDescription:a}}}function c(a,b){if(!b)return-1;b=h(b);for(var c=k;c<=l;c++)for(var d=0;d<a.length;d++){var f;f=h(a[d]);var e=b,n=c;if(f===e)f=!0;else{var m=f.split("-")[0],e=e.split("-")[0];f=n>=g.BASE_LANG_MATCH&&f===e?!0:n>=g.OTHER_SUBLANG_MATCH&&m===e?!0:!1}if(f)return d}return-1}function h(a){if(null==
a||""===a)return"";a=(""+a).toLowerCase().split("-");var b=a[0],c=void 0;2===b.length?c=n[b]:3===b.length&&(c=m[b]);(b=c||b)&&(a[0]=b);return a.join("-")}a.d(e,"c",function(){return h});a.d(e,"a",function(){return d});a.d(e,"b",function(){return f});a.d(e,"d",function(){return c});var g={PERFECT_MATCH:0,BASE_LANG_MATCH:1,OTHER_SUBLANG_MATCH:2},k=g.PERFECT_MATCH,l=g.OTHER_SUBLANG_MATCH,n={aa:"aar",ab:"abk",ae:"ave",af:"afr",ak:"aka",am:"amh",an:"arg",ar:"ara",as:"asm",av:"ava",ay:"aym",az:"aze",ba:"bak",
be:"bel",bg:"bul",bh:"bih",bi:"bis",bm:"bam",bn:"ben",bo:"bod",br:"bre",bs:"bos",ca:"cat",ce:"che",ch:"cha",co:"cos",cr:"cre",cs:"ces",cu:"chu",cv:"chv",cy:"cym",da:"dan",de:"deu",dv:"div",dz:"dzo",ee:"ewe",el:"ell",en:"eng",eo:"epo",es:"spa",et:"est",eu:"baq",fa:"fas",ff:"ful",fi:"fin",fj:"fij",fo:"fao",fr:"fre",fy:"fry",ga:"gle",gd:"gla",gl:"glg",gn:"grn",gu:"guj",gv:"glv",ha:"hau",he:"heb",hi:"hin",ho:"hmo",hr:"hrv",ht:"hat",hu:"hun",hy:"arm",hz:"her",ia:"ina",id:"ind",ie:"ile",ig:"ibo",ii:"iii",
ik:"ipk",io:"ido",is:"ice",it:"ita",iu:"iku",ja:"jpn",jv:"jav",ka:"geo",kg:"kon",ki:"kik",kj:"kua",kk:"kaz",kl:"kal",km:"khm",kn:"kan",ko:"kor",kr:"kau",ks:"kas",ku:"kur",kv:"kom",kw:"cor",ky:"kir",la:"lat",lb:"ltz",lg:"lug",li:"lim",ln:"lin",lo:"lao",lt:"lit",lu:"lub",lv:"lav",mg:"mlg",mh:"mah",mi:"mao",mk:"mac",ml:"mal",mn:"mon",mr:"mar",ms:"may",mt:"mlt",my:"bur",na:"nau",nb:"nob",nd:"nde",ne:"nep",ng:"ndo",nl:"dut",nn:"nno",no:"nor",nr:"nbl",nv:"nav",ny:"nya",oc:"oci",oj:"oji",om:"orm",or:"ori",
os:"oss",pa:"pan",pi:"pli",pl:"pol",ps:"pus",pt:"por",qu:"que",rm:"roh",rn:"run",ro:"ron",ru:"rus",rw:"kin",sa:"san",sc:"srd",sd:"snd",se:"sme",sg:"sag",si:"sin",sk:"slk",sl:"slv",sm:"smo",sn:"sna",so:"som",sq:"alb",sr:"srp",ss:"ssw",st:"sot",su:"sun",sv:"swe",sw:"swa",ta:"tam",te:"tel",tg:"tgk",th:"tha",ti:"tir",tk:"tuk",tl:"tgl",tn:"tsn",to:"ton",tr:"tur",ts:"tso",tt:"tat",tw:"twi",ty:"tah",ug:"uig",uk:"ukr",ur:"urd",uz:"uzb",ve:"ven",vi:"vie",vo:"vol",wa:"wln",wo:"wol",xh:"xho",yi:"yid",yo:"yor",
za:"zha",zh:"chi",zu:"zul"},m={tib:"bod",cze:"ces",wel:"cym",ger:"deu",gre:"ell",eus:"baq",per:"fas",fra:"fre",hye:"arm",isl:"ice",kat:"geo",mri:"mao",mkd:"mac",msa:"may",mya:"bur",nld:"dut",rum:"ron",slo:"slk",sqi:"alb",zho:"chi"}},function(b,e,a){var f=a(21),d=a(6)("toStringTag"),c="Arguments"==f(function(){return arguments}());b.exports=function(a){var b,k;if(void 0===a)b="Undefined";else{var h;if(null===a)h="Null";else{a:{var e=a=Object(a);try{h=e[d];break a}catch(m){}h=void 0}h="string"==typeof(b=
h)?b:c?f(a):"Object"==(k=f(a))&&"function"==typeof a.callee?"Arguments":k}b=h}return b}},function(b,e,a){var f=a(21);b.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return"String"==f(a)?a.split(""):Object(a)}},function(b,e){e.f={}.propertyIsEnumerable},function(b,e,a){var f=a(62),d=a(72),c=a(55),h=a(447);e.combineLatest=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var l=b=null;f.isScheduler(a[a.length-1])&&(l=a.pop());"function"===typeof a[a.length-1]&&(b=
a.pop());1===a.length&&d.isArray(a[0])&&(a=a[0]);return(new c.ArrayObservable(a,l)).lift(new h.CombineLatestOperator(b))}},function(b,e,a){e.isArray=Array.isArray||function(a){return a&&"number"===typeof a.length}},function(b,e,a){e.a=function d(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");this.id=a.id;this.duration=a.duration;this.isInit=!!a.init;this.range=a.range;this.time=a.time;this.indexRange=
a.indexRange;this.number=a.number;this.timescale=null==a.timescale?1:a.timescale;this.media=a.media}},function(b,e,a){function f(){for(var a=arguments.length,b=Array(a),d=0;d<a;d++)b[d]=arguments[d];a=b.length;if(0===a)return"";for(var d="",f=0;f<a;f++){var e=b[f];"string"===typeof e&&""!==e&&(c.test(e)?d=e:("/"===e[0]&&(e=e.substr(1)),"/"===d[d.length-1]&&(d=d.substr(0,d.length-1)),d=d+"/"+e))}a=d;if(h.test(a)){b=[];a=a.split("/");d=0;for(f=a.length;d<f;d++)".."==a[d]?b.pop():"."!=a[d]&&b.push(a[d]);
b=b.join("/")}else b=a;return b}function d(a){var b=a.lastIndexOf("/");return 0<=b?a.substring(0,b+1):a}a.d(e,"b",function(){return f});a.d(e,"a",function(){return d});var c=/^(?:[a-z]+:)?\/\//i,h=/\/\.{1,2}\//},function(b,e,a){var f=a(18),d=a(11),c=a(52);b.exports=function(a){return function(b,k,h){b=f(b);var g=d(b.length);h=c(h,g);if(a&&k!=k)for(;g>h;){if(k=b[h++],k!=k)return!0}else for(;g>h;h++)if((a||h in b)&&b[h]===k)return a||h||0;return!a&&-1}}},function(b,e,a){var f=a(3),d=a(0),c=a(16),h=
a(50),g=a(35),k=a(58),l=a(45),n=a(5),m=a(4),p=a(81),u=a(60),q=a(98);b.exports=function(a,b,e,w,x,y){var v=f[a],r=v,F=x?"set":"add",t=r&&r.prototype,E={},G=function(a){var b=t[a];c(t,a,"delete"==a?function(a){return y&&!n(a)?!1:b.call(this,0===a?0:a)}:"has"==a?function(a){return y&&!n(a)?!1:b.call(this,0===a?0:a)}:"get"==a?function(a){return y&&!n(a)?void 0:b.call(this,0===a?0:a)}:"add"==a?function(a){b.call(this,0===a?0:a);return this}:function(a,c){b.call(this,0===a?0:a,c);return this})};if("function"==
typeof r&&(y||t.forEach&&!m(function(){(new r).entries().next()}))){var D=new r;e=D[F](y?{}:-0,1)!=D;var K=m(function(){D.has(1)}),z=p(function(a){new r(a)}),J=!y&&m(function(){for(var a=new r,b=5;b--;)a[F](b,b);return!a.has(-0)});z||(r=b(function(b,c){l(b,r,a);var d=q(new v,b,r);void 0!=c&&k(c,x,d[F],d);return d}),r.prototype=t,t.constructor=r);if(K||J)G("delete"),G("has"),x&&G("get");(J||e)&&G(F);y&&t.clear&&delete t.clear}else r=w.getConstructor(b,a,x,F),h(r.prototype,e),g.NEED=!0;u(r,a);E[a]=
r;d(d.G+d.W+d.F*(r!=v),E);y||w.setStrong(r,a,x);return r}},function(b,e,a){var f=a(15),d=a(16),c=a(4),h=a(22),g=a(6);b.exports=function(a,b,e){var k=g(a);e=e(h,k,""[a]);var l=e[0],n=e[1];c(function(){var b={};b[k]=function(){return 7};return 7!=""[a](b)})&&(d(String.prototype,a,l),f(RegExp.prototype,k,2==b?function(a,b){return n.call(a,this,b)}:function(a){return n.call(a,this)}))}},function(b,e,a){var f=a(2);b.exports=function(){var a=f(this),b="";a.global&&(b+="g");a.ignoreCase&&(b+="i");a.multiline&&
(b+="m");a.unicode&&(b+="u");a.sticky&&(b+="y");return b}},function(b,e){b.exports=function(a,b,d){var c=void 0===d;switch(b.length){case 0:return c?a():a.call(d);case 1:return c?a(b[0]):a.call(d,b[0]);case 2:return c?a(b[0],b[1]):a.call(d,b[0],b[1]);case 3:return c?a(b[0],b[1],b[2]):a.call(d,b[0],b[1],b[2]);case 4:return c?a(b[0],b[1],b[2],b[3]):a.call(d,b[0],b[1],b[2],b[3])}return a.apply(d,b)}},function(b,e,a){var f=a(5),d=a(21),c=a(6)("match");b.exports=function(a){var b;return f(a)&&(void 0!==
(b=a[c])?!!b:"RegExp"==d(a))}},function(b,e,a){var f=a(6)("iterator"),d=!1;try{var c=[7][f]();c["return"]=function(){d=!0};Array.from(c,function(){throw 2;})}catch(h){}b.exports=function(a,b){if(!b&&!d)return!1;var c=!1;try{var g=[7],h=g[f]();h.next=function(){return{done:c=!0}};g[f]=function(){return h};a(g)}catch(m){}return c}},function(b,e,a){b.exports=a(46)||!a(4)(function(){var b=Math.random();__defineSetter__.call(null,b,function(){});delete a(3)[b]})},function(b,e){e.f=Object.getOwnPropertySymbols},
function(b,e,a){e=a(3);var f=e["__core-js_shared__"]||(e["__core-js_shared__"]={});b.exports=function(a){return f[a]||(f[a]={})}},function(b,e,a){e=a(3);var f=a(15),d=a(53);a=d("typed_array");for(var d=d("view"),c=!(!e.ArrayBuffer||!e.DataView),h=c,g=0,k,l="Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" ");9>g;)(k=e[l[g++]])?(f(k.prototype,a,!0),f(k.prototype,d,!0)):h=!1;b.exports={ABV:c,CONSTR:h,TYPED:a,VIEW:d}},function(b,
e,a){b=a(172);a=a(173);e.async=new a.AsyncScheduler(b.AsyncAction)},function(b,e,a){e.errorObject={e:{}}},function(b,e,a){var f=a(73),d=a(65),c=function(a,b){for(var c=a.timeline,d=0,g=c.length;d<g;){var h=d+g>>>1;c[h].ts<b?d=h+1:g=h}return 0<d?d-1:d};e.a={getInitSegment:d.a,setTimescale:d.b,scale:d.c,getSegments:function(b,g,k,l){l=a.i(d.e)(g,k,l);k=l.up;l=l.to;var h=g.timeline,e=g.timescale,p=g.media,u=[],q=h.length;g=c(g,k)-1;var t=h.length&&h[0].d||0;a:for(;!(++g>=q);){var v=h[g],r=v.d,w=v.ts,
x=v.range,t=Math.max(t,r);if(0>r){w+t<l&&u.push(new f.a({id:""+b+"_"+w,time:w,init:!1,range:x,duration:void 0,indexRange:null,timescale:e,media:p}));break}var y=h[g+1],B=v.r||0;0>B&&(B=Math.ceil(((y?y.t:Infinity)-v.ts)/v.d)-1);v=B;y=k-w;y=0<y?Math.floor(y/r):0;for(;(B=w+y*r)<l;)if(y++<=v)u.push(new f.a({id:""+b+"_"+B,time:B,init:!1,range:x,duration:r,indexRange:null,timescale:e,media:p}));else continue a;break}return u},shouldRefresh:function(b,c,k,f){k=b.timeline;c=b.timescale;b=b.presentationTimeOffset;
k=k[k.length-1];if(!k)return!1;0>k.d&&(k={ts:k.ts,d:0,r:k.r});return!(f*c-(void 0===b?0:b)<=a.i(d.d)(k))},getFirstPosition:function(a){if(a.timeline.length)return a.timeline[0].ts/a.timescale},getLastPosition:function(b){if(b.timeline.length){var c=b.timeline[b.timeline.length-1];return a.i(d.d)(c)/b.timescale}},checkDiscontinuity:function(b,g){var k=b.timeline,h=b.timescale,h=void 0===h?1:h,f=g*h;if(0>=f)return-1;var e=c(b,f);if(0>e||e>=k.length-1)return-1;var p=k[e];if(-1===p.d)return-1;var u=p.ts,
p=a.i(d.d)(p),k=k[e+1];return p!==k.ts&&f>=u&&f<=p&&p-f<h?k.ts/h:-1},_addSegmentInfos:function(b,c,k){var g=b.timeline,h=g.length,f=g[h-1];if(k&&c.ts===k.ts){c=c.ts+c.d;k=c-(f.ts+f.d*f.r);if(0>=k)return!1;-1===f.d&&((h=g[h-2])&&h.d===k?(h.r++,g.pop()):f.d=k);b.timeline.push({d:-1,ts:c,r:0});return!0}return c.ts>=a.i(d.d)(f)?(f.d===c.d?f.r++:b.timeline.push({d:c.d,ts:c.ts,r:0}),!0):!1}}},function(b,e,a){function f(){this.__listeners={}}var d=a(9);f.prototype.addEventListener=function(b,h){a.i(d.a)("function"==
typeof h,"eventemitter: second argument should be a function");this.__listeners[b]||(this.__listeners[b]=[]);this.__listeners[b].push(h)};f.prototype.removeEventListener=function(a,b){if(0===arguments.length)this.__listeners={};else if(this.__listeners.hasOwnProperty(a))if(1===arguments.length)delete this.__listeners[a];else{var c=this.__listeners[a],d=c.indexOf(b);~d&&c.splice(d,1);c.length||delete this.__listeners[a]}};f.prototype.trigger=function(a,b){this.__listeners.hasOwnProperty(a)&&this.__listeners[a].slice().forEach(function(a){try{a(b)}catch(k){console.error(k,
k.stack)}})};f.prototype.on=f.prototype.addEventListener;f.prototype.off=f.prototype.removeEventListener;e.a=f},function(b,e,a){var f=0;e.a=function(){var a=0;f<Number.MAX_VALUE&&(a=f+1);f=a;return""+a}},function(b,e,a){function f(a,b){var c=0;return function(){c&&clearTimeout(c);c=setTimeout(a,b)}}function d(b,c){var d=c.retryDelay,k=c.totalRetry,l=c.shouldRetry,e=c.resetDelay,q=c.errorSelector,t=c.onRetry,v=0,r=void 0;0<e&&(r=f(function(){return v=0},e));return b["catch"](function(b,c){if(l&&!l(b)||
v++>=k){if(q)throw q(b,v);throw b;}t&&t(b,v);var f=a.i(h.a)(d,v);return g(f).mergeMap(function(){r&&r();return c})})}function c(b,c){var d=c.retryDelay,k=c.totalRetry,l=c.shouldRetry,e=c.resetDelay,q=c.errorSelector,t=c.onRetry,v=0,r=void 0;0<e&&(r=f(function(){return v=0},e));return function x(){for(var c=arguments.length,f=Array(c),e=0;e<c;e++)f[e]=arguments[e];return b.apply(void 0,f)["catch"](function(b){if(l&&!l(b)||v++>=k){if(q)throw q(b,v);throw b;}t&&t(b,v);b=a.i(h.a)(d,v);return g(b).mergeMap(function(){r&&
r();return x.apply(void 0,f)})})}}a.d(e,"a",function(){return d});a.d(e,"b",function(){return c});var h=a(217);b=a(168);a.n(b);var g=b.TimerObservable.create},function(b,e,a){var f=a(12),d=a(52),c=a(11);b.exports=function(a){for(var b=f(this),k=c(b.length),h=arguments.length,e=d(1<h?arguments[1]:void 0,k),h=2<h?arguments[2]:void 0,k=void 0===h?k:d(h,k);k>e;)b[e++]=a;return b}},function(b,e,a){var f=a(8),d=a(36);b.exports=function(a,b,g){b in a?f.f(a,b,d(0,g)):a[b]=g}},function(b,e,a){e=a(5);var f=
a(3).document,d=e(f)&&e(f.createElement);b.exports=function(a){return d?f.createElement(a):{}}},function(b,e){b.exports="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")},function(b,e,a){var f=a(6)("match");b.exports=function(a){var b=/./;try{"/./"[a](b)}catch(h){try{return b[f]=!1,!"/./"[a](b)}catch(g){}}return!0}},function(b,e,a){b.exports=a(3).document&&document.documentElement},function(b,e,a){var f=a(5),d=a(106).set;b.exports=function(a,
b,g){var c;b=b.constructor;b!==g&&"function"==typeof b&&(c=b.prototype)!==g.prototype&&f(c)&&d&&d(a,c);return a}},function(b,e,a){var f=a(59),d=a(6)("iterator"),c=Array.prototype;b.exports=function(a){return void 0!==a&&(f.Array===a||c[d]===a)}},function(b,e,a){var f=a(21);b.exports=Array.isArray||function(a){return"Array"==f(a)}},function(b,e,a){var f=a(47),d=a(36),c=a(60),h={};a(15)(h,a(6)("iterator"),function(){return this});b.exports=function(a,b,e){a.prototype=f(h,{next:d(1,e)});c(a,b+" Iterator")}},
function(b,e,a){var f=a(46),d=a(0),c=a(16),h=a(15),g=a(13),k=a(59),l=a(101),n=a(60),m=a(20),p=a(6)("iterator"),u=!([].keys&&"next"in[].keys()),q=function(){return this};b.exports=function(a,b,e,w,x,y,B){l(e,b,w);w=function(a){return!u&&a in E?E[a]:function(){return new e(this,a)}};var v=b+" Iterator",r="values"==x,t=!1,E=a.prototype,G=E[p]||E["@@iterator"]||x&&E[x],D=G||w(x),K=x?r?w("entries"):D:void 0,z="Array"==b?E.entries||G:G,J,I;z&&(a=m(z.call(new a)),a!==Object.prototype&&(n(a,v,!0),f||g(a,
p)||h(a,p,q)));r&&G&&"values"!==G.name&&(t=!0,D=function(){return G.call(this)});f&&!B||!u&&!t&&E[p]||h(E,p,D);k[b]=D;k[v]=q;if(x)if(J={values:r?D:w("values"),keys:y?D:w("keys"),entries:K},B)for(I in J)I in E||c(E,I,J[I]);else d(d.P+d.F*(u||t),b,J);return J}},function(b,e){var a=Math.expm1;b.exports=!a||22025.465794806718<a(10)||22025.465794806718>a(10)||-2E-17!=a(-2E-17)?function(a){return 0==(a=+a)?a:-1E-6<a&&1E-6>a?a+a*a/2:Math.exp(a)-1}:a},function(b,e){b.exports=Math.sign||function(a){return 0==
(a=+a)||a!=a?a:0>a?-1:1}},function(b,e,a){var f=a(3),d=a(113).set,c=f.MutationObserver||f.WebKitMutationObserver,h=f.process,g=f.Promise,k="process"==a(21)(h);b.exports=function(){var a,b,e,p=function(){var c,d;for(k&&(c=h.domain)&&c.exit();a;){d=a.fn;a=a.next;try{d()}catch(w){throw a?e():b=void 0,w;}}b=void 0;c&&c.enter()};if(k)e=function(){h.nextTick(p)};else if(c){var u=!0,q=document.createTextNode("");(new c(p)).observe(q,{characterData:!0});e=function(){q.data=u=!u}}else if(g&&g.resolve){var t=
g.resolve();e=function(){t.then(p)}}else e=function(){d.call(f,p)};return function(c){c={fn:c,next:void 0};b&&(b.next=c);a||(a=c,e());b=c}}},function(b,e,a){var f=a(5),d=a(2),c=function(a,b){d(a);if(!f(b)&&null!==b)throw TypeError(b+": can't set as prototype!");};b.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,d,k){try{k=a(29)(Function.call,a(19).f(Object.prototype,"__proto__").set,2),k(b,[]),d=!(b instanceof Array)}catch(l){d=!0}return function(a,b){c(a,b);d?a.__proto__=b:k(a,b);
return a}}({},!1):void 0),check:c}},function(b,e,a){var f=a(84)("keys"),d=a(53);b.exports=function(a){return f[a]||(f[a]=d(a))}},function(b,e,a){var f=a(2),d=a(14),c=a(6)("species");b.exports=function(a,b){var g=f(a).constructor,h;return void 0===g||void 0==(h=f(g)[c])?b:d(h)}},function(b,e,a){var f=a(37),d=a(22);b.exports=function(a){return function(b,c){var g=String(d(b)),h=f(c),e=g.length,m,p;if(0>h||h>=e)return a?"":void 0;m=g.charCodeAt(h);return 55296>m||56319<m||h+1===e||56320>(p=g.charCodeAt(h+
1))||57343<p?a?g.charAt(h):m:a?g.slice(h,h+2):(m-55296<<10)+(p-56320)+65536}}},function(b,e,a){var f=a(80),d=a(22);b.exports=function(a,b,g){if(f(b))throw TypeError("String#"+g+" doesn't accept regex!");return String(d(a))}},function(b,e,a){var f=a(37),d=a(22);b.exports=function(a){var b=String(d(this)),c="";a=f(a);if(0>a||Infinity==a)throw RangeError("Count can't be negative");for(;0<a;(a>>>=1)&&(b+=b))a&1&&(c+=b);return c}},function(b,e){b.exports="\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},
function(b,e,a){var f=a(29),d=a(79),c=a(97),h=a(94),g=a(3),k=g.process;e=g.setImmediate;var l=g.clearImmediate,n=g.MessageChannel,m=0,p={},u,q=function(){var a=+this;if(p.hasOwnProperty(a)){var b=p[a];delete p[a];b()}},t=function(a){q.call(a.data)};e&&l||(e=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);p[++m]=function(){d("function"==typeof a?a:Function(a),b)};u(m);return m},l=function(a){delete p[a]},"process"==a(21)(k)?u=function(a){k.nextTick(f(q,a,1))}:n?(a=new n,n=a.port2,
a.port1.onmessage=t,u=f(n.postMessage,n,1)):g.addEventListener&&"function"==typeof postMessage&&!g.importScripts?(u=function(a){g.postMessage(a+"","*")},g.addEventListener("message",t,!1)):u="onreadystatechange"in h("script")?function(a){c.appendChild(h("script")).onreadystatechange=function(){c.removeChild(this);q.call(a)}}:function(a){setTimeout(f(q,a,1),0)});b.exports={set:e,clear:l}},function(b,e,a){var f=a(3),d=a(7),c=a(46);b=a(85);var h=a(15),g=a(50),k=a(4),l=a(45),n=a(37),m=a(11),p=a(48).f,
u=a(8).f,q=a(92);a=a(60);var t=f.ArrayBuffer,v=f.DataView,r=f.Math,w=f.RangeError,x=f.Infinity,y=t,B=r.abs,A=r.pow,F=r.floor,Q=r.log,E=r.LN2,G=d?"_b":"buffer",D=d?"_l":"byteLength",K=d?"_o":"byteOffset",z=function(a,b,c){var d=Array(c);c=8*c-b-1;var g=(1<<c)-1,h=g>>1,k=23===b?A(2,-24)-A(2,-77):0,f=0,e=0>a||0===a&&0>1/a?1:0,l,n;a=B(a);a!=a||a===x?(a=a!=a?1:0,l=g):(l=F(Q(a)/E),1>a*(n=A(2,-l))&&(l--,n*=2),a=1<=l+h?a+k/n:a+k*A(2,1-h),2<=a*n&&(l++,n/=2),l+h>=g?(a=0,l=g):1<=l+h?(a=(a*n-1)*A(2,b),l+=h):
(a=a*A(2,h-1)*A(2,b),l=0));for(;8<=b;d[f++]=a&255,a/=256,b-=8);l=l<<b|a;for(c+=b;0<c;d[f++]=l&255,l/=256,c-=8);d[--f]|=128*e;return d},J=function(a,b,c){var d=8*c-b-1,g=(1<<d)-1,h=g>>1,d=d-7;--c;for(var k=a[c--],f=k&127,e,k=k>>7;0<d;f=256*f+a[c],c--,d-=8);e=f&(1<<-d)-1;f>>=-d;for(d+=b;0<d;e=256*e+a[c],c--,d-=8);if(0===f)f=1-h;else{if(f===g)return e?NaN:k?-x:x;e+=A(2,b);f-=h}return(k?-1:1)*e*A(2,f-b)},I=function(a){return a[3]<<24|a[2]<<16|a[1]<<8|a[0]},M=function(a){return[a&255]},O=function(a){return[a&
255,a>>8&255]},C=function(a){return[a&255,a>>8&255,a>>16&255,a>>24&255]},L=function(a){return z(a,52,8)},N=function(a){return z(a,23,4)},f=function(a,b,c){u(a.prototype,b,{get:function(){return this[c]}})},T=function(a,b,c,d){c=+c;var g=n(c);if(c!=g||0>g||g+b>a[D])throw w("Wrong index!");c=g+a[K];a=a[G]._b.slice(c,c+b);return d?a:a.reverse()},H=function(a,b,c,d,g,h){c=+c;var f=n(c);if(c!=f||0>f||f+b>a[D])throw w("Wrong index!");c=a[G]._b;a=f+a[K];d=d(+g);for(g=0;g<b;g++)c[a+g]=d[h?g:b-g-1]},S=function(a,
b){l(a,t,"ArrayBuffer");var c=+b,d=m(c);if(c!=d)throw w("Wrong length!");return d};if(b.ABV){if(!k(function(){new t})||!k(function(){new t(.5)})){for(var t=function(a){return new y(S(this,a))},d=t.prototype=y.prototype,p=p(y),k=0,U;p.length>k;)(U=p[k++])in t||h(t,U,y[U]);c||(d.constructor=t)}U=new v(new t(2));var P=v.prototype.setInt8;U.setInt8(0,2147483648);U.setInt8(1,2147483649);!U.getInt8(0)&&U.getInt8(1)||g(v.prototype,{setInt8:function(a,b){P.call(this,a,b<<24>>24)},setUint8:function(a,b){P.call(this,
a,b<<24>>24)}},!0)}else t=function(a){a=S(this,a);this._b=q.call(Array(a),0);this[D]=a},v=function(a,b,c){l(this,v,"DataView");l(a,t,"DataView");var d=a[D];b=n(b);if(0>b||b>d)throw w("Wrong offset!");c=void 0===c?d-b:m(c);if(b+c>d)throw w("Wrong length!");this[G]=a;this[K]=b;this[D]=c},d&&(f(t,"byteLength","_l"),f(v,"buffer","_b"),f(v,"byteLength","_l"),f(v,"byteOffset","_o")),g(v.prototype,{getInt8:function(a){return T(this,1,a)[0]<<24>>24},getUint8:function(a){return T(this,1,a)[0]},getInt16:function(a,
b){var c=T(this,2,a,b);return(c[1]<<8|c[0])<<16>>16},getUint16:function(a,b){var c=T(this,2,a,b);return c[1]<<8|c[0]},getInt32:function(a,b){return I(T(this,4,a,b))},getUint32:function(a,b){return I(T(this,4,a,b))>>>0},getFloat32:function(a,b){return J(T(this,4,a,b),23,4)},getFloat64:function(a,b){return J(T(this,8,a,b),52,8)},setInt8:function(a,b){H(this,1,a,M,b)},setUint8:function(a,b){H(this,1,a,M,b)},setInt16:function(a,b,c){H(this,2,a,O,b,c)},setUint16:function(a,b,c){H(this,2,a,O,b,c)},setInt32:function(a,
b,c){H(this,4,a,C,b,c)},setUint32:function(a,b,c){H(this,4,a,C,b,c)},setFloat32:function(a,b,c){H(this,4,a,N,b,c)},setFloat64:function(a,b,c){H(this,8,a,L,b,c)}});a(t,"ArrayBuffer");a(v,"DataView");h(v.prototype,b.VIEW,!0);e.ArrayBuffer=t;e.DataView=v},function(b,e,a){var f=a(3),d=a(28),c=a(46),h=a(159),g=a(8).f;b.exports=function(a){var b=d.Symbol||(d.Symbol=c?{}:f.Symbol||{});"_"==a.charAt(0)||a in b||g(b,a,{value:h.f(a)})}},function(b,e,a){var f=a(68),d=a(6)("iterator"),c=a(59);b.exports=a(28).getIteratorMethod=
function(a){if(void 0!=a)return a[d]||a["@@iterator"]||c[f(a)]}},function(b,e,a){e=a(57);var f=a(147),d=a(59),c=a(18);b.exports=a(102)(Array,"Array",function(a,b){this._t=c(a);this._i=0;this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,f(1)):"keys"==b?f(0,c):"values"==b?f(0,a[c]):f(0,[c,a[c]])},"values");d.Arguments=d.Array;e("keys");e("values");e("entries")},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(39);var d=a(174);a=function(a){function b(b){a.call(this);this._value=b}f(b,a);Object.defineProperty(b.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0});b.prototype._subscribe=function(b){var c=a.prototype._subscribe.call(this,b);c&&!c.closed&&b.next(this._value);return c};b.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new d.ObjectUnsubscribedError;
return this._value};b.prototype.next=function(b){a.prototype.next.call(this,this._value=b)};return b}(b.Subject);e.BehaviorSubject=a},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.value=b;this.scheduler=c;this._isScalar=!0;c&&(this._isScalar=!1)}f(b,a);b.create=function(a,c){return new b(a,
c)};b.dispatch=function(a){var b=a.value,c=a.subscriber;a.done?c.complete():(c.next(b),c.closed||(a.done=!0,this.schedule(a)))};b.prototype._subscribe=function(a){var c=this.value,d=this.scheduler;if(d)return d.schedule(b.dispatch,0,{done:!1,value:c,subscriber:a});a.next(c);a.closed||a.complete()};return b}(a(1).Observable);e.ScalarObservable=b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===
b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(54);var d=a(56);e.mergeAll=function(a){void 0===a&&(a=Number.POSITIVE_INFINITY);return this.lift(new c(a))};var c=function(){function a(a){this.concurrent=a}a.prototype.call=function(a,b){return b.subscribe(new h(a,this.concurrent))};return a}();e.MergeAllOperator=c;var h=function(a){function b(b,c){a.call(this,b);this.concurrent=c;this.hasCompleted=!1;this.buffer=[];this.active=0}f(b,a);b.prototype._next=function(a){this.active<this.concurrent?
(this.active++,this.add(d.subscribeToResult(this,a))):this.buffer.push(a)};b.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete()};b.prototype.notifyComplete=function(a){var b=this.buffer;this.remove(a);this.active--;0<b.length?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};return b}(b.OuterSubscriber);e.MergeAllSubscriber=h},function(b,e,a){var f=a(437);e.multicast=function(a,b){var c;c="function"===
typeof a?a:function(){return a};if("function"===typeof b)return this.lift(new d(c,b));var h=Object.create(this,f.connectableObservableDescriptor);h.source=this;h.subjectFactory=c;return h};var d=function(){function a(a,b){this.subjectFactory=a;this.selector=b}a.prototype.call=function(a,b){var c=this.selector,d=this.subjectFactory(),c=c(d).subscribe(a);c.add(b.subscribe(d));return c};return a}();e.MulticastOperator=d},function(b,e,a){function f(a){var b=a.Symbol;if("function"===typeof b)return b.iterator||
(b.iterator=b("iterator polyfill")),b.iterator;if((b=a.Set)&&"function"===typeof(new b)["@@iterator"])return"@@iterator";if(a=a.Map)for(var b=Object.getOwnPropertyNames(a.prototype),d=0;d<b.length;++d){var g=b[d];if("entries"!==g&&"size"!==g&&a.prototype[g]===a.prototype.entries)return g}return"@@iterator"}b=a(33);e.symbolIteratorPonyfill=f;e.iterator=f(b.root);e.$$iterator=e.iterator},function(b,e,a){function f(a){var b=a.Symbol;"function"===typeof b?b.observable?a=b.observable:(a=b("observable"),
b.observable=a):a="@@observable";return a}b=a(33);e.getSymbolObservable=f;e.observable=f(b.root);e.$$observable=e.observable},function(b,e,a){b=a(33).root.Symbol;e.rxSubscriber="function"===typeof b&&"function"===typeof b["for"]?b["for"]("rxSubscriber"):"@@rxSubscriber";e.$$rxSubscriber=e.rxSubscriber},function(b,e,a){e.isFunction=function(a){return"function"===typeof a}},function(b,e,a){function f(){try{return c.apply(this,arguments)}catch(h){return d.errorObject.e=h,d.errorObject}}var d=a(87),c;
e.tryCatch=function(a){c=a;return f}},function(b,e){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(f){"object"===typeof window&&(a=window)}b.exports=a},function(b,e,a){function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function d(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+
typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function h(a){if("number"==typeof a)return a;for(var b=0,c,d=0;d<a.length;d++)c=a[d],b=(b<<5)-b+c,b&=b;return b}function g(a,b,c){return{type:"eme",value:Q()({name:a,session:b},c)}}function k(b){if(!Z||!Y||a.i(O.g)())return null;
var c=X;return(b=b.filter(function(a){return a.type!==Z.type||a.persistentLicense&&"required"!=c.persistentState||a.distinctiveIdentifierRequired&&"required"!=c.distinctiveIdentifier?!1:!0})[0])?{keySystem:b,keySystemAccess:new O.h(Z,Y,X)}:null}function l(a){var b=["temporary"],c="optional",d="optional";a.persistentLicense&&(c="required",b.push("persistent-license"));a.persistentStateRequired&&(c="required");a.distinctiveIdentifierRequired&&(d="required");var g=a.audioRobustnesses||R;a=(a.videoRobustnesses||
R).map(function(a){return{contentType:'video/mp4;codecs="avc1.4d401e"',robustness:a}});g=g.map(function(a){return{contentType:'audio/mp4;codecs="mp4a.40.2"',robustness:a}});return[{initDataTypes:["cenc"],videoCapabilities:a,audioCapabilities:g,distinctiveIdentifier:d,persistentState:c,sessionTypes:b},{initDataTypes:["cenc"],videoCapabilities:void 0,audioCapabilities:void 0,distinctiveIdentifier:d,persistentState:c,sessionTypes:b}]}function n(b){var c=k(b);if(c)return z.a.debug("eme: found compatible keySystem quickly",
c),E.Observable.of(c);var d=b.reduce(function(a,b){return a.concat((P[b.type]||[]).map(function(a){return{keyType:a,keySystem:b}}))},[]);return E.Observable.create(function(b){function c(h){if(!g)if(h>=d.length)b.error(new C.c("INCOMPATIBLE_KEYSYSTEMS",null,!0));else{var k=d[h],e=k.keyType,n=k.keySystem,m=l(n);z.a.debug("eme: request keysystem access "+e+","+(h+1+" of "+d.length),m);f=a.i(O.i)(e,m).subscribe(function(a){z.a.info("eme: found compatible keysystem",e,m);b.next({keySystem:n,keySystemAccess:a});
b.complete()},function(){z.a.debug("eme: rejected access to keysystem",e,m);f=null;c(h+1)})}}var g=!1,f=null;c(0);return function(){g=!0;f&&f.unsubscribe()}})}function m(b){return a.i(I.b)(b.createMediaKeys())}function p(b,c,d,g){var f=ca,h=Y;Y=b;X=c;Z=g;ca=d;if(d.mediaKeys===b)return E.Observable.of(b);h&&h!==Y&&W.dispose();f&&f!==ca?(z.a.debug("eme: unlink old video element and set mediakeys"),c=a.i(O.j)(f,null).concat(a.i(O.j)(ca,b))):(z.a.debug("eme: set mediakeys"),c=a.i(O.j)(ca,b));return c.mapTo(b)}
function u(a,b,c,d,g){z.a.debug("eme: create a new "+b+" session");var f=a.createSession(b);a=w(f,c,g)["finally"](function(){W.deleteAndClose(f);V["delete"](d)}).publish();return{session:f,sessionEvents:a}}function q(b,c,d,f,h,k){b=u(b,d,c,h,k);var e=b.session;b=b.sessionEvents;W.add(h,e,b);z.a.debug("eme: generate request",f,h);f=a.i(I.b)(e.generateRequest(f,h))["catch"](function(a){throw new C.c("KEY_GENERATE_REQUEST_ERROR",a,!1);})["do"](function(){"persistent-license"==d&&V.add(h,e)}).mapTo(g("generated-request",
e,{initData:h,initDataType:f}));return a.i(D.merge)(b,f)}function t(a,b,c,d,g,f){return q(a,b,c,d,g,f)["catch"](function(h){if(h.code!==C.b.KEY_GENERATE_REQUEST_ERROR)throw h;var k=W.getFirst();if(!k)throw h;z.a.warn("eme: could not create a new session, retry after closing a currently loaded session",h);return W.deleteAndClose(k).mergeMap(function(){return q(a,b,c,d,g,f)})})}function v(b,c,d,f,h,k){z.a.debug("eme: load persisted session",d);var e=u(b,"persistent-license",c,h,k),l=e.session,n=e.sessionEvents;
return a.i(I.b)(l.load(d))["catch"](function(){return E.Observable.of(!1)}).mergeMap(function(a){if(a)return W.add(h,l,n),V.add(h,l),n.startWith(g("loaded-session",l,{storedSessionId:d}));z.a.warn("eme: no data stored for the loaded session, do fallback",d);W.deleteById(d);V["delete"](h);l.sessionId&&l.remove();return t(b,c,"persistent-license",f,h,k).startWith(g("loaded-session-failed",l,{storedSessionId:d}))})}function r(a,b,c,d,f,h){var k=W.get(f);if(k&&k.sessionId)return z.a.debug("eme: reuse loaded session",
k.sessionId),E.Observable.of(g("reuse-session",k));b=(k=(b=b.sessionTypes)&&0<=b.indexOf("persistent-license"))&&c.persistentLicense?"persistent-license":"temporary";return k&&c.persistentLicense&&(k=V.get(f))?v(a,c,k.sessionId,d,f,h):t(a,c,b,d,f,h)}function w(b,c,d){function f(a,b){return a.type===C.a.ENCRYPTED_MEDIA_ERROR?(a.fatal=b,a):new C.c("KEY_LOAD_ERROR",a,b)}z.a.debug("eme: handle message events",b);var h=void 0,k={totalRetry:2,retryDelay:200,errorSelector:function(a){return f(a,!0)},onRetry:function(a){return d.next(f(a,
!1))}},e=T(b).map(function(a){throw new C.c("KEY_ERROR",a,!0);}),l=H(b).mergeMap(function(d){h=d.sessionId;z.a.debug("eme: keystatuseschange event",h,b,d);b.keyStatuses.forEach(function(a,b){if(ba[b]||ba[a])throw new C.c("KEY_STATUS_CHANGE_ERROR",b,!0);});return c.onKeyStatusesChange?a.i(I.c)(function(){return a.i(I.b)(c.onKeyStatusesChange(d,b))})["catch"](function(a){throw new C.c("KEY_STATUS_CHANGE_ERROR",a,!0);}):(z.a.info("eme: keystatuseschange event not handled"),S())}),n=N(b).mergeMap(function(d){h=
d.sessionId;var g=new Uint8Array(d.message),f=d.messageType||"license-request";z.a.debug("eme: event message type "+f,b,d);d=U(function(){return a.i(I.b)(c.getLicense(g,f)).timeout(1E4)["catch"](function(a){if(a instanceof K.TimeoutError)throw new C.c("KEY_LOAD_TIMEOUT",null,!1);throw a;})});return a.i(M.a)(d,k)}),l=a.i(D.merge)(n,l).concatMap(function(c){z.a.debug("eme: update session",h,c);return a.i(I.b)(b.update(c,h))["catch"](function(a){throw new C.c("KEY_UPDATE_ERROR",a,!0);}).mapTo(g("session-update",
b,{updatedWith:c}))}),e=a.i(D.merge)(l,e);return b.closed?e.takeUntil(a.i(I.b)(b.closed)):e}function x(b,c){return a.i(I.b)(b.setServerCertificate(c)).ignoreElements()["catch"](function(a){throw new C.c("LICENSE_SERVER_CERTIFICATE_ERROR",a,!0);})}function y(a,b,c){return x(a,b)["catch"](function(a){a.fatal=!1;c.next(a);return E.Observable.empty()})}function B(b,c,d){function g(a,c){var g=c.keySystem,f=c.keySystemAccess;g.persistentLicense&&V.setStorage(g.licenseStorage);z.a.info("eme: encrypted event",
a);return m(f).mergeMap(function(c){console.log("inmini", f, f.getConfiguration);var h=g.serverCertificate,h=h&&"function"===typeof c.setServerCertificate?y(c,h,d):E.Observable.empty(),k=f.getConfiguration();return h.concat(p(c,k,b,g)).concat(r(c,k,g,a.initDataType,new Uint8Array(a.initData),d))})}return a.i(G.combineLatest)(L(b),n(c)).take(1).mergeMap(function(a){return g(a[0],a[1])})}function A(){return Z&&Z.type}function F(){ca&&a.i(O.j)(ca,null).subscribe(function(){});ca=Z=Y=null;W.dispose()}a.d(e,"c",function(){return B});a.d(e,"b",function(){return A});
a.d(e,"d",function(){return L});a.d(e,"a",function(){return F});b=a(38);var Q=a.n(b),E=a(1);a.n(E);b=a(40);a.n(b);e=a(165);a.n(e);var G=a(71);a.n(G);var D=a(41);a.n(D);var K=a(175);a.n(K);var z=a(27),J=a(9),I=a(44),M=a(91),O=a(42),C=a(34),L=O.f.onEncrypted,N=O.f.onKeyMessage,T=O.f.onKeyError,H=O.f.onKeyStatusesChange,S=b.EmptyObservable.create,U=e.DeferObservable.create,P={clearkey:["webkit-org.w3.clearkey","org.w3.clearkey"],widevine:["com.widevine.alpha"],playready:["com.microsoft.playready","com.chromecast.playready",
"com.youtube.playready"]},R=["HW_SECURE_ALL","HW_SECURE_DECODE","HW_SECURE_CRYPTO","SW_SECURE_DECODE","SW_SECURE_CRYPTO"],ba={expired:!0,"internal-error":!0};b=function(){function a(){c(this,a);this._entries=[]}a.prototype.find=function(a){for(var b=0;b<this._entries.length;b++)if(!0===a(this._entries[b]))return this._entries[b];return null};return a}();e=function(b){function g(){c(this,g);return f(this,b.apply(this,arguments))}d(g,b);g.prototype.getFirst=function(){if(0<this._entries.length)return this._entries[0].session};
g.prototype.find=function(a){for(var b=0;b<this._entries.length;b++)if(!0===a(this._entries[b]))return this._entries[b];return null};g.prototype.get=function(a){a=h(a);var b=this.find(function(b){return b.initData===a});return b?b.session:null};g.prototype.add=function(a,b,c){a=h(a);var d=this.get(a);d&&this.deleteAndClose(d);c=c.connect();a={session:b,initData:a,eventSubscription:c};z.a.debug("eme-mem-store: add session",a);this._entries.push(a)};g.prototype.deleteById=function(a){var b=this.find(function(b){return b.session.sessionId===
a});return b?this["delete"](b.session):null};g.prototype["delete"]=function(a){var b=this.find(function(b){return b.session===a});if(!b)return null;var c=b.session,d=b.eventSubscription;z.a.debug("eme-mem-store: delete session",b);b=this._entries.indexOf(b);this._entries.splice(b,1);d.unsubscribe();return c};g.prototype.deleteAndClose=function(b){return(b=this["delete"](b))?(z.a.debug("eme-mem-store: close session",b),a.i(I.b)(b.close())["catch"](function(){return E.Observable.of(null)})):E.Observable.of(null)};
g.prototype.dispose=function(){var a=this,b=this._entries.map(function(b){return a.deleteAndClose(b.session)});this._entries=[];return D.merge.apply(null,b)};return g}(b);var V=new (function(b){function g(a){c(this,g);var d=f(this,b.call(this));d.setStorage(a);return d}d(g,b);g.prototype.setStorage=function(b){if(this._storage!==b){a.i(J.a)(b,"no licenseStorage given for keySystem with persistentLicense");J.a.iface(b,"licenseStorage",{save:"function",load:"function"});this._storage=b;try{this._entries=
this._storage.load(),a.i(J.a)(Array.isArray(this._entries))}catch(fa){z.a.warn("eme-persitent-store: could not get entries from license storage",fa),this.dispose()}}};g.prototype.get=function(a){a=h(a);return this.find(function(b){return b.initData===a})||null};g.prototype.add=function(a,b){var c=b&&b.sessionId;if(c){a=h(a);var d=this.get(a);d&&d.sessionId===c||(d&&this["delete"](a),z.a.info("eme-persitent-store: add new session",c,b),this._entries.push({sessionId:c,initData:a}),this._save())}};g.prototype["delete"]=
function(a){a=h(a);var b=this.find(function(b){return b.initData===a});b&&(z.a.warn("eme-persitent-store: delete session from store",b),b=this._entries.indexOf(b),this._entries.splice(b,1),this._save())};g.prototype.dispose=function(){this._entries=[];this._save()};g.prototype._save=function(){try{this._storage.save(this._entries)}catch(ia){z.a.warn("eme-persitent-store: could not save licenses in localStorage")}};return g}(b))({load:function(){return[]},save:function(){}}),W=new e,Y=void 0,X=void 0,
Z=void 0,ca=void 0},function(b,e,a){function f(b){var c=a.i(r.a)(b.locations[0]);(b=b.periods[0])&&b.baseURL&&(c+=""+b.baseURL);return c}function d(a,b,d,h){if(!b.transportType)throw new x.d("MANIFEST_PARSE_ERROR",null,!0);b.id=b.id||Q++;b.type=b.type||"static";var e=b.locations;e&&e.length||(b.locations=[a]);b.isLive="dynamic"==b.type;var n={rootURL:f(b),baseURL:b.baseURL,isLive:b.isLive};d&&(d=g(d));h&&(h=k(h));a=b.periods.map(function(a){return c(a,n,d,h)});b=l(b,a[0]);b.periods=null;b.duration||
(b.duration=Infinity);b.isLive&&(b.suggestedPresentationDelay=b.suggestedPresentationDelay||G,b.availabilityStartTime=b.availabilityStartTime||0);return new B.a(b)}function c(a,b,c,d){a.id=a.id||Q++;var g=a.adaptations,g=g.concat(c||[]),g=g.concat(d||[]),g=g.map(function(a){return h(a,b)}),g=g.filter(function(a){return 0>E.indexOf(a.type)?(v.a.info("not supported adaptation type",a.type),!1):!0});if(0===g.length)throw new x.d("MANIFEST_PARSE_ERROR",null,!0);c={};for(d=0;d<g.length;d++){var f=g[d],
k=f.type,e=f.representations;c[k]=c[k]||[];0<e.length&&c[k].push(f)}for(var l in c)if(0===c[l].length)throw new x.d("MANIFEST_INCOMPATIBLE_CODECS_ERROR",null,!0);a.adaptations=c;return a}function h(b,c){if("undefined"==typeof b.id)throw new x.d("MANIFEST_PARSE_ERROR",null,!0);var d=l(c,b),g={};F.forEach(function(a){a in d&&(g[a]=d[a])});var f=d.representations.map(function(b){var c=d.rootURL,f=d.baseURL;if("undefined"==typeof b.id)throw new x.d("MANIFEST_PARSE_ERROR",null,!0);b=l(g,b);b.index=b.index||
{};b.index.timescale||(b.index.timescale=1);b.bitrate||(b.bitrate=1);"mp4a.40.02"==b.codecs&&(b.codecs="mp4a.40.2");b.baseURL=a.i(r.b)(c,f,b.baseURL);b.codec=b.codecs;return b}).sort(function(a,b){return a.bitrate-b.bitrate}),h=d.type,k=d.accessibility,k=void 0===k?[]:k;if(!h)throw new x.d("MANIFEST_PARSE_ERROR",null,!0);"video"==h||"audio"==h?(f=f.filter(function(b){return a.i(w.k)(m(b))}),"audio"===h&&(h=a.i(t.a)(k,"visuallyImpaired"),d.audioDescription=h)):"text"===h&&(h=a.i(t.a)(k,"hardOfHearing"),
d.closedCaption=h);d.representations=f;d.bitrates=f.map(function(a){return a.bitrate});return d}function g(a){Array.isArray(a)||(a=[a]);return a.reduce(function(a,b){var c=b.mimeType,d=b.url,g=b.language,f=b.languages,h=b.closedCaption;g&&(f=[g]);return a.concat(f.map(function(a){return{id:Q++,type:"text",language:a,closedCaption:!!h,baseURL:d,representations:[{id:Q++,mimeType:c,index:{indexType:"template",duration:Number.MAX_VALUE,timescale:1,startNumber:0}}]}}))},[])}function k(a){Array.isArray(a)||
(a=[a]);return a.map(function(a){var b=a.mimeType;a=a.url;return{id:Q++,type:"image",baseURL:a,representations:[{id:Q++,mimeType:b,index:{indexType:"template",duration:Number.MAX_VALUE,timescale:1,startNumber:0}}]}})}function l(){for(var a={},b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];for(b=c.length-1;0<=b;b--){var d=c[b],g;for(g in d)if(!a.hasOwnProperty(g)){var f=d[g];f&&"object"===("undefined"===typeof f?"undefined":A(f))?f instanceof Date?a[g]=new Date(f.getTime()):Array.isArray(f)?
a[g]=f.slice(0):a[g]=l(f):a[g]=f}}return a}function n(a,b){for(var c=function(a,b){return q()(b,function(b){return b.id===a})},d=a.getAdaptations(),g=b.getAdaptations(),f=0;f<d.length;f++){var h=c(d[f].id,g);h||console.warn('manifest: adaptation "'+d[f].id+'" not found when merging.');for(var k=d[f].representations,h=h.representations,e=0;e<k.length;e++){var l=c(k[e].id,h);l||console.warn('manifest: representation "'+k[e].id+'" not found when merging.');k[e].index.update(l.index)}}return a}function m(a){return a.mimeType+
';codecs="'+a.codec+'"'}function p(b){return(b=b.adaptations.audio)?b.map(function(b){return{language:a.i(y.c)(b.language),audioDescription:b.isAudioDescription,id:b.id}}):[]}function u(b){return(b=b.adaptations.text)?b.map(function(b){return{language:a.i(y.c)(b.language),closedCaption:b.isClosedCaption,id:b.id}}):[]}a.d(e,"c",function(){return d});a.d(e,"e",function(){return m});a.d(e,"d",function(){return n});a.d(e,"a",function(){return p});a.d(e,"b",function(){return u});b=a(63);var q=a.n(b),t=
a(66),v=a(27),r=a(74),w=a(42),x=a(34),y=a(67),B=a(202),A="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},F="audioSamplingRate codecs codingDependency frameRate height index maxPlayoutRate maximumSAPPeriod mimeType profiles segmentProfiles width".split(" "),Q=0,E=["audio","video","text","image"],G=15},function(b,e,a){function f(a,b){if("function"!==
typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}a.d(e,"a",function(){return g});b=a(89);var d=a(64),c=a(9),h=a(44),g=function(b){function g(a){if(!(this instanceof g))throw new TypeError("Cannot call a class as a function");var c;c=b.call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
c=!c||"object"!==typeof c&&"function"!==typeof c?this:c;c.codec=a;c.updating=!1;c.readyState="opened";c.buffered=new d.a;return c}f(g,b);g.prototype.appendBuffer=function(a){var b=this;this._lock(function(){return b._append(a)})};g.prototype.remove=function(a,b){var c=this;this._lock(function(){return c._remove(a,b)})};g.prototype.abort=function(){this.remove(0,Infinity);this.updating=!1;this.readyState="closed";this._abort()};g.prototype._append=function(){};g.prototype._remove=function(){};g.prototype._abort=
function(){};g.prototype._lock=function(b){var d=this;a.i(c.a)(!this.updating,"updating");this.updating=!0;this.trigger("updatestart");a.i(h.c)(function(){return a.i(h.b)(b())}).subscribe(function(){return setTimeout(function(){return d._unlock("update")},0)},function(a){return setTimeout(function(){return d._unlock("error",a)},0)})};g.prototype._unlock=function(a,b){this.updating=!1;this.trigger(a,b);this.trigger("updateend")};return g}(b.a)},function(b,e,a){function f(){return new F(0,new t.a,0,
Infinity,"timeupdate",1,null,0,null,null)}function d(a,b){var c=a.currentTime,d=a.paused,g=new t.a(a.buffered);return new F(c,g,a.duration,g.getGap(c),b,a.playbackRate,g.getRange(c),a.readyState,null,d)}function c(a,b){var c=b.requiresMediaSource;return u.Observable.create(function(b){function g(g){g=d(a,g&&g.type||"timeupdate");var h=g.name,k=g.ts,e=g.gap,l=g.paused,n=g.readyState,m=g.playback,p=f.stalled,v=f.name,u=f.ts,r;r=(r=g.range)?g.duration-(e+r.end)<=w:!1;var q=1<=n&&"loadedmetadata"!=h&&
!p&&!r;c?(l=q&&(e<=w||Infinity===e||1===n),k=p&&1<n&&Infinity>e&&(e>("seeking"==p.name?w:x)||r)):(l=q&&(!l&&"timeupdate"==h&&"timeupdate"==v&&k===u||"seeking"==h&&Infinity===e),k=p&&("seeking"!=h&&k!==u||"canplay"==h||Infinity>e&&(e>("seeking"==p.name?w:x)||r)));g.stalled=l?{name:h,playback:m}:k?null:p;f=g;b.next(f)}var f=d(a,"init"),h=setInterval(g,c?v:r);A.forEach(function(b){return a.addEventListener(b,g)});b.next(f);return function(){clearInterval(h);A.forEach(function(b){return a.removeEventListener(b,
g)})}}).multicast(function(){return new q.BehaviorSubject({name:"init",stalled:null})}).refCount()}function h(a){return a.filter(function(a){return"seeking"==a.name&&(Infinity===a.gap||a.gap<-y)}).skip(1).startWith(!0)}function g(a,b){return new Date(1E3*(a+b.availabilityStartTime))}function k(a,b){var c=a,d=b.suggestedPresentationDelay,g=b.presentationLiveGap,f=b.timeShiftBufferDepth;"number"!=typeof c&&(c=c.getTime());var h=Date.now();return Math.max(Math.min(c,h-1E3*(g+d)),h-1E3*f)/1E3-b.availabilityStartTime}
function l(a){return p(a)[0]}function n(a){if(!a.isLive)return a.getDuration();var b=a.availabilityStartTime;a=a.presentationLiveGap;return Date.now()/1E3-b-a}function m(a){var b=n(a);return a.isLive?b-B:b}function p(a){if(!a.isLive)return[0,a.getDuration()];var b=a.availabilityStartTime,c=a.presentationLiveGap;a=a.timeShiftBufferDepth;b=Date.now()/1E3-b-c;return[Math.min(b,b-a+5),b]}a.d(e,"b",function(){return f});a.d(e,"a",function(){return c});a.d(e,"i",function(){return h});a.d(e,"c",function(){return g});
a.d(e,"f",function(){return k});a.d(e,"g",function(){return l});a.d(e,"d",function(){return n});a.d(e,"e",function(){return m});a.d(e,"h",function(){return p});var u=a(1);a.n(u);var q=a(118);a.n(q);var t=a(64),v=1E3,r=500,w=.5,x=5,y=2,B=10,A="canplay play progress seeking seeked loadedmetadata".split(" "),F=function(){function a(b,c,d,g,f,h,k,e,l,n){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.ts=b;this.buffered=c;this.duration=d;this.gap=g;this.name=f;this.playback=
h;this.range=k;this.readyState=e;this.stalled=l;this.paused=n}a.prototype.clone=function(){return new a(this.ts,this.buffered,this.duration,this.gap,this.name,this.playback,this.range,this.readyState,this.stalled,this.paused)};return a}()},function(b,e,a){function f(a){if("timeline"===a.indexType){var b=a.timeline[a.timeline.length-1];return(b.ts+(b.r+1)*b.d)/a.timescale}return Date.now()/1E3}function d(a){return a}function c(a){return"true"==a}function h(a){return"true"==a?!0:"false"==a?!1:parseInt(a)}
function g(a){return new Date(Date.parse(a))}function k(b){if(!b)return 0;var c=w.exec(b);a.i(r.a)(c,b+" is not a valid ISO8601 duration");return 31536E3*parseFloat(c[2]||0)+2592E3*parseFloat(c[4]||0)+86400*parseFloat(c[6]||0)+3600*parseFloat(c[8]||0)+60*parseFloat(c[10]||0)+parseFloat(c[12]||0)}function l(a){var b=y.exec(a);if(!b)return-1;a=parseInt(b[1])||0;b=parseInt(b[2])||0;return 0<b?a/b:a}function n(a){return a}function m(a){return(a=x.exec(a))?[+a[1],+a[2]]:null}function p(a,b,c){for(a=a.firstElementChild;a;)c=
b(c,a.nodeName,a),a=a.nextElementSibling;return c}function u(a){return a?"urn:tva:metadata:cs:AudioPurposeCS:2007"===a.schemeIdUri&&1===a.value:!1}function q(b){var c=b.mimeType,c=void 0===c?"":c,d=c.split("/")[0];if(a.i(v.a)(B,d))return d;if("application/bif"===c)return"image";if("application/ttml+xml"===c)return"text";if("application/mp4"===c)return(b=b.role)&&"urn:mpeg:dash:role:2011"===b.schemeIdUri&&"subtitle"===b.value?"text":"metadata";b=b.representations;b=void 0===b?[]:b;return b.length&&
(b=b[0].mimeType.split("/")[0],a.i(v.a)(B,b))?b:"unknown"}function t(a){return a?"urn:tva:metadata:cs:AudioPurposeCS:2007"===a.schemeIdUri&&2===a.value:!1}a.d(e,"g",function(){return d});a.d(e,"h",function(){return l});a.d(e,"f",function(){return m});a.d(e,"i",function(){return c});a.d(e,"m",function(){return g});a.d(e,"j",function(){return k});a.d(e,"l",function(){return h});a.d(e,"k",function(){return n});a.d(e,"a",function(){return p});a.d(e,"b",function(){return A});a.d(e,"d",function(){return t});
a.d(e,"e",function(){return u});a.d(e,"c",function(){return q});var v=a(66),r=a(9),w=/^P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,x=/([0-9]+)-([0-9]+)/,y=/([0-9]+)(\/([0-9]+))?/,B=["audio","video","text","image"],A=function(a){if(a){var b=a.representations||[],c=b.filter(function(a){return a&&a.index});if(!b.length)return f(a.index);var d=Math.min.apply(Math,c.map(function(a){return f(a.index)}));if(!isNaN(d)){if(b.length===c.length)return d;if(a.index)return a=f(a.index),
Math.min(d,a)}}}},function(b,e,a){function f(b){var c=0,g=b.length,f=a.i(d.a)(b.subarray(c,c+8)),c=c+8,e=b[c],c=c+1,n=b[c],c=c+1,m=b[c],c=c+1,p=b[c],c=c+1,e=[e,n,m,p].join("."),n=b[c]+a.i(d.c)(b,c+1),c=c+4,m=a.i(d.c)(b,c),c=c+4,p=a.i(d.a)(b.subarray(c,c+4)),c=c+4,u=a.i(d.d)(b,c),c=c+2,q=a.i(d.d)(b,c),c=c+2,t=[b[c],b[c+1]].join(":"),v=1===b[c+2],c=64,r=[],w=void 0,x=0;if(!n)throw Error("bif: no images to parse");for(;c<g;){var y=a.i(d.c)(b,c),c=c+4,B=a.i(d.c)(b,c),c=c+4;if(w){var A=w.index,F=m,Q=x,
w=b.subarray(w.offset,B);r.push({index:A,duration:F,ts:Q,data:w});x+=m}if(4294967295===y)break;w={index:y,offset:B}}return{fileFormat:f,version:e,imageCount:n,timescale:m,format:p,width:u,height:q,aspectRatio:t,isVod:v,thumbs:r}}a.d(e,"a",function(){return f});var d=a(43)},function(b,e,a){function f(a,b,c){a="string"==typeof a?(new DOMParser).parseFromString(a,"text/xml"):a;if(!(a instanceof window.Document||a instanceof window.HTMLElement))throw Error("ttml needs a Document to parse");a=a.querySelector("tt");
if(!a)throw Error("ttml could not find <tt> tag");a=d(a.querySelector("body"),0);for(b=0;b<a.length;b++){var g=a[b];g.start+=c;g.end+=c}return a}function d(a,b){var f=0;a=a.firstChild;for(var k=[],e;a;){if(1===a.nodeType)switch(a.tagName.toUpperCase()){case "P":e=a;var l=b,n=f,f=c(e.getAttribute("begin"),l),m=c(e.getAttribute("end"),l),p=c(e.getAttribute("dur"),0);if("number"==!("undefined"===typeof f||h(f))&&"number"==!("undefined"===typeof m||h(m))&&"number"==!("undefined"===typeof p||h(p)))throw Error("ttml unsupported timestamp format");
0<p?(null==f&&(f=n||l),null==m&&(m=f+p)):null==m&&(m=c(e.getAttribute("duration"),0),m=0<=m?m+f:Number.MAX_VALUE);l=e.innerHTML;null==l&&(l=(new XMLSerializer).serializeToString(e),l=(new DOMParser).parseFromString(l,"text/html").body.firstChild.innerHTML);l=window.escape(l.replace(g,"\r\n"));l=l.replace(/%C3%26nbsp%3B/gm,"%C3%A0");e={id:e.getAttribute("xml:id")||e.getAttribute("id"),text:decodeURIComponent(l),start:f,end:m};f=e.end;k.push(e);break;case "DIV":e=c(a.getAttribute("begin"),0),null==
e&&(e=b),k.push.apply(k,d(a,e))}a=a.nextSibling}return k}function c(a,b){if(!a)return null;var c;if(c=a.match(k)){var d=c[3],g=c[4],f=c[6];return 3600*parseInt(c[2]||0,10)+60*parseInt(d,10)+parseInt(g,10)+parseFloat("0."+f)}return(c=a.match(l))?(d=c[4],parseFloat(c[1])*n[d]+b):null}a.d(e,"a",function(){return f});var h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?
"symbol":typeof a},g=/<br.*?>/gm,k=/^(([0-9]+):)?([0-9]+):([0-9]+)(\.([0-9]+))?$/,l=/(([0-9]+)(\.[0-9]+)?)(ms|h|m|s)/,n={h:3600,m:60,s:1,ms:.001}},function(b,e,a){function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function d(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,
{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function h(){return new XMLHttpRequest}function g(a){return new m(a)}b=a(1);a.n(b);var k=a(10);a.n(k);var l=a(34),n=function q(a,b,d,g,f,k,h){c(this,q);this.status=a;this.url=b;this.responseType=d;this.sentTime=g;this.receivedTime=f;this.duration=this.receivedTime-this.sentTime;
this.size=k;this.responseData=h},m=function(a){function b(d){c(this,b);var g=f(this,a.call(this)),k={url:"",createXHR:h,headers:null,method:"GET",responseType:"json",timeout:1E4,resultSelector:null,body:null},e;for(e in d)k[e]=d[e];g.request=k;return g}d(b,a);b.prototype._subscribe=function(a){return new p(a,this.request)};return b}(b.Observable),p=function(a){function b(d,g){c(this,b);var k=f(this,a.call(this,d));k.request=g;k.sentTime=Date.now();k.receivedTime=0;k.xhr=null;k.done=!1;k.resultSelector=
g.resultSelector;k.send();return k}d(b,a);b.prototype.next=function(){this.done=!0;var a=this.resultSelector,b=this.xhr,c=this.request,d=this.destination,g=b.status,f=this.responseType,k=this.totalSize,h=this.sentTime,e=this.receivedTime,m=b.responseURL||c.url,p=void 0;if("json"==c.responseType)if("string"!=typeof b.response)p=b.response;else try{p=JSON.parse(b.responseText)}catch(D){p=null}else p=b.response;null==p?d.error(new l.h(this,c,l.i.PARSE_ERROR)):(b=new n(g,m,f,h,e,k,p),a?d.next(a(b)):d.next(b))};
b.prototype.setHeaders=function(a,b){for(var c in b)a.setRequestHeader(c,b[c])};b.prototype.setupEvents=function(a,b){a.ontimeout=function x(){x.subscriber.error(new l.h(this,x.request,l.i.TIMEOUT))};a.ontimeout.request=b;a.ontimeout.subscriber=this;a.onerror=function y(){y.subscriber.error(new l.h(this,y.request,l.i.ERROR_EVENT))};a.onerror.request=b;a.onerror.subscriber=this;a.onload=function B(a){if(4===this.readyState){var b=B.subscriber,c=B.request;b.receivedTime=Date.now();b.totalSize=a.total;
var d=this.status;200<=d&&300>d?(b.next(a),b.complete()):b.error(new l.h(this,c,l.i.ERROR_HTTP_CODE))}};a.onload.subscriber=this;a.onload.request=b};b.prototype.send=function(){var a=this.request,b=this.request,c=b.method,d=b.url,g=b.headers,f=b.body,k=b.responseType,b=b.timeout,e=(a.createXHR||h)(a);this.xhr=e;e.open(c,d,!0);e.timeout=b;e.responseType=k;"document"==k&&e.overrideMimeType("text/xml");g&&this.setHeaders(e,g);this.setupEvents(e,a);f?e.send(f):e.send()};b.prototype.unsubscribe=function(){var b=
this.xhr;!this.done&&b&&4!==b.readyState&&b.abort();b.ontimeout=null;b.onerror=null;b.onload=null;a.prototype.unsubscribe.call(this)};return b}(k.Subscriber);g.RequestObservable=m;g.RequestError=l.h;g.RequestResponse=n;g.RequestErrorTypes=l.i;e.a=g},function(b,e,a){var f=a(21);b.exports=function(a,b){if("number"!=typeof a&&"Number"!=f(a))throw TypeError(b);return+a}},function(b,e,a){var f=a(12),d=a(52),c=a(11);b.exports=[].copyWithin||function(a,b){var g=f(this),e=c(g.length),h=d(a,e),m=d(b,e),p=
2<arguments.length?arguments[2]:void 0,e=Math.min((void 0===p?e:d(p,e))-m,e-h),p=1;m<h&&h<m+e&&(p=-1,m+=e-1,h+=e-1);for(;0<e--;)m in g?g[h]=g[m]:delete g[h],h+=p,m+=p;return g}},function(b,e,a){var f=a(58);b.exports=function(a,b){var c=[];f(a,!1,c.push,c,b);return c}},function(b,e,a){var f=a(14),d=a(12),c=a(69),h=a(11);b.exports=function(a,b,e,n,m){f(b);a=d(a);var g=c(a),k=h(a.length),l=m?k-1:0,t=m?-1:1;if(2>e)for(;;){if(l in g){n=g[l];l+=t;break}l+=t;if(m?0>l:k<=l)throw TypeError("Reduce of empty array with no initial value");
}for(;m?0<=l:k>l;l+=t)l in g&&(n=b(n,g[l],l,a));return n}},function(b,e,a){var f=a(14),d=a(5),c=a(79),h=[].slice,g={};b.exports=Function.bind||function(a){var b=f(this),e=h.call(arguments,1),k=function(){var d=e.concat(h.call(arguments)),f;if(this instanceof k){f=b;var l=d.length;if(!(l in g)){for(var n=[],m=0;m<l;m++)n[m]="a["+m+"]";g[l]=Function("F,a","return new F("+n.join(",")+")")}f=g[l](f,d)}else f=c(b,d,a);return f};d(b.prototype)&&(k.prototype=b.prototype);return k}},function(b,e,a){var f=
a(8).f,d=a(47),c=a(50),h=a(29),g=a(45),k=a(22),l=a(58),n=a(102),m=a(147),p=a(51),u=a(7),q=a(35).fastKey,t=u?"_s":"size",v=function(a,b){var c=q(b);if("F"!==c)return a._i[c];for(c=a._f;c;c=c.n)if(c.k==b)return c};b.exports={getConstructor:function(a,b,e,n){var m=a(function(a,c){g(a,m,b,"_i");a._i=d(null);a._f=void 0;a._l=void 0;a[t]=0;void 0!=c&&l(c,e,a[n],a)});c(m.prototype,{clear:function(){for(var a=this._i,b=this._f;b;b=b.n)b.r=!0,b.p&&(b.p=b.p.n=void 0),delete a[b.i];this._f=this._l=void 0;this[t]=
0},"delete":function(a){if(a=v(this,a)){var b=a.n,c=a.p;delete this._i[a.i];a.r=!0;c&&(c.n=b);b&&(b.p=c);this._f==a&&(this._f=b);this._l==a&&(this._l=c);this[t]--}return!!a},forEach:function(a){g(this,m,"forEach");for(var b=h(a,1<arguments.length?arguments[1]:void 0,3),c;c=c?c.n:this._f;)for(b(c.v,c.k,this);c&&c.r;)c=c.p},has:function(a){return!!v(this,a)}});u&&f(m.prototype,"size",{get:function(){return k(this[t])}});return m},def:function(a,b,c){var d=v(a,b),g;d?d.v=c:(a._l=d={i:g=q(b,!0),k:b,v:c,
p:b=a._l,n:void 0,r:!1},a._f||(a._f=d),b&&(b.n=d),a[t]++,"F"!==g&&(a._i[g]=d));return a},getEntry:v,setStrong:function(a,b,c){n(a,b,function(a,b){this._t=a;this._k=b;this._l=void 0},function(){for(var a=this._k,b=this._l;b&&b.r;)b=b.p;return this._t&&(this._l=b=b?b.n:this._t._f)?"keys"==a?m(0,b.k):"values"==a?m(0,b.v):m(0,[b.k,b.v]):(this._t=void 0,m(1))},c?"entries":"values",!c,!0);p(b)}}},function(b,e,a){var f=a(68),d=a(138);b.exports=function(a){return function(){if(f(this)!=a)throw TypeError(a+
"#toJSON isn't generic");return d(this)}}},function(b,e,a){var f=a(50),d=a(35).getWeak,c=a(2),h=a(5),g=a(45),k=a(58);e=a(24);var l=a(13),n=e(5),m=e(6),p=0,u=function(a){return a._l||(a._l=new q)},q=function(){this.a=[]},t=function(a,b){return n(a.a,function(a){return a[0]===b})};q.prototype={get:function(a){if(a=t(this,a))return a[1]},has:function(a){return!!t(this,a)},set:function(a,b){var c=t(this,a);c?c[1]=b:this.a.push([a,b])},"delete":function(a){var b=m(this.a,function(b){return b[0]===a});
~b&&this.a.splice(b,1);return!!~b}};b.exports={getConstructor:function(a,b,c,e){var n=a(function(a,d){g(a,n,b,"_i");a._i=p++;a._l=void 0;void 0!=d&&k(d,c,a[e],a)});f(n.prototype,{"delete":function(a){if(!h(a))return!1;var b=d(a);return!0===b?u(this)["delete"](a):b&&l(b,this._i)&&delete b[this._i]},has:function(a){if(!h(a))return!1;var b=d(a);return!0===b?u(this).has(a):b&&l(b,this._i)}});return n},def:function(a,b,g){var f=d(c(b),!0);!0===f?u(a).set(b,g):f[a._i]=g;return a},ufstore:u}},function(b,
e,a){b.exports=!a(7)&&!a(4)(function(){return 7!=Object.defineProperty(a(94)("div"),"a",{get:function(){return 7}}).a})},function(b,e,a){var f=a(5),d=Math.floor;b.exports=function(a){return!f(a)&&isFinite(a)&&d(a)===a}},function(b,e,a){var f=a(2);b.exports=function(a,b,e,g){try{return g?b(f(e)[0],e[1]):b(e)}catch(k){throw b=a["return"],void 0!==b&&f(b.call(a)),k;}}},function(b,e){b.exports=function(a,b){return{value:b,done:!!a}}},function(b,e){b.exports=Math.log1p||function(a){return-1E-8<(a=+a)&&
1E-8>a?a-a*a/2:Math.log(1+a)}},function(b,e,a){var f=a(49),d=a(83),c=a(70),h=a(12),g=a(69),k=Object.assign;b.exports=!k||a(4)(function(){var a={},b={},c=Symbol();a[c]=7;"abcdefghijklmnopqrst".split("").forEach(function(a){b[a]=a});return 7!=k({},a)[c]||"abcdefghijklmnopqrst"!=Object.keys(k({},b)).join("")})?function(a,b){for(var e=h(a),k=arguments.length,l=1,n=d.f,t=c.f;k>l;)for(var v=g(arguments[l++]),r=n?f(v).concat(n(v)):f(v),w=r.length,x=0,y;w>x;)t.call(v,y=r[x++])&&(e[y]=v[y]);return e}:k},function(b,
e,a){var f=a(8),d=a(2),c=a(49);b.exports=a(7)?Object.defineProperties:function(a,b){d(a);for(var g=c(b),e=g.length,h=0,m;e>h;)f.f(a,m=g[h++],b[m]);return a}},function(b,e,a){var f=a(18),d=a(48).f,c={}.toString,h="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];b.exports.f=function(a){var b;if(h&&"[object Window]"==c.call(a))try{b=d(a)}catch(l){b=h.slice()}else b=d(f(a));return b}},function(b,e,a){var f=a(13),d=a(18),c=a(75)(!1),h=a(107)("IE_PROTO");
b.exports=function(a,b){var g=d(a),e=0,k=[],p;for(p in g)p!=h&&f(g,p)&&k.push(p);for(;b.length>e;)f(g,p=b[e++])&&(~c(k,p)||k.push(p));return k}},function(b,e,a){var f=a(49),d=a(18),c=a(70).f;b.exports=function(a){return function(b){b=d(b);for(var g=f(b),e=g.length,h=0,m=[],p;e>h;)c.call(b,p=g[h++])&&m.push(a?[p,b[p]]:b[p]);return m}}},function(b,e,a){var f=a(48),d=a(83),c=a(2);e=a(3).Reflect;b.exports=e&&e.ownKeys||function(a){var b=f.f(c(a)),e=d.f;return e?b.concat(e(a)):b}},function(b,e,a){var f=
a(3).parseFloat,d=a(61).trim;b.exports=-Infinity!==1/f(a(112)+"-0")?function(a){a=d(String(a),3);var b=f(a);return 0===b&&"-"==a.charAt(0)?-0:b}:f},function(b,e,a){var f=a(3).parseInt,d=a(61).trim;e=a(112);var c=/^[\-+]?0[xX]/;b.exports=8!==f(e+"08")||22!==f(e+"0x16")?function(a,b){var g=d(String(a),3);return f(g,b>>>0||(c.test(g)?16:10))}:f},function(b,e){b.exports=Object.is||function(a,b){return a===b?0!==a||1/a===1/b:a!=a&&b!=b}},function(b,e,a){var f=a(11),d=a(111),c=a(22);b.exports=function(a,
b,e,l){a=String(c(a));var g=a.length;e=void 0===e?" ":String(e);b=f(b);if(b<=g||""==e)return a;b-=g;g=d.call(e,Math.ceil(b/e.length));g.length>b&&(g=g.slice(0,b));return l?g+a:a+g}},function(b,e,a){e.f=a(6)},function(b,e,a){var f=a(141);b.exports=a(76)("Map",function(a){return function(){return a(this,0<arguments.length?arguments[0]:void 0)}},{get:function(a){return(a=f.getEntry(this,a))&&a.v},set:function(a,b){return f.def(this,0===a?0:a,b)}},f,!0)},function(b,e,a){a(7)&&"g"!=/./g.flags&&a(8).f(RegExp.prototype,
"flags",{configurable:!0,get:a(78)})},function(b,e,a){var f=a(141);b.exports=a(76)("Set",function(a){return function(){return a(this,0<arguments.length?arguments[0]:void 0)}},{add:function(a){return f.def(this,a=0===a?0:a,a)}},f)},function(b,e,a){e=a(24)(0);var f=a(16),d=a(35),c=a(149),h=a(143),g=a(5),k=d.getWeak,l=Object.isExtensible,n=h.ufstore,m={},p,u=function(a){return function(){return a(this,0<arguments.length?arguments[0]:void 0)}},q={get:function(a){if(g(a)){var b=k(a);return!0===b?n(this).get(a):
b?b[this._i]:void 0}},set:function(a,b){return h.def(this,a,b)}},t=b.exports=a(76)("WeakMap",u,q,h,!0,!0);7!=(new t).set((Object.freeze||Object)(m),7).get(m)&&(p=h.getConstructor(u),c(p.prototype,q),d.NEED=!0,e(["delete","has","get","set"],function(a){var b=t.prototype,c=b[a];f(b,a,function(b,d){if(g(b)&&!l(b)){this._f||(this._f=new p);var f=this._f[a](b,d);return"set"==a?this:f}return c.call(this,b,d)})}))},function(b,e,a){e.empty={closed:!0,next:function(a){},error:function(a){throw a;},complete:function(){}}},
function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(1);var d=a(56);a=a(54);b=function(a){function b(b){a.call(this);this.observableFactory=b}f(b,a);b.create=function(a){return new b(a)};b.prototype._subscribe=function(a){return new c(a,this.observableFactory)};return b}(b.Observable);e.DeferObservable=b;var c=function(a){function b(b,c){a.call(this,
b);this.factory=c;this.tryDefer()}f(b,a);b.prototype.tryDefer=function(){try{this._callFactory()}catch(k){this._error(k)}};b.prototype._callFactory=function(){var a=this.factory();a&&this.add(d.subscribeToResult(this,a))};return b}(a.OuterSubscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(1);var d=a(126),c=a(125),h=a(87),g=a(32),
k=Object.prototype.toString;a=function(a){function b(b,c,d,g){a.call(this);this.sourceObj=b;this.eventName=c;this.selector=d;this.options=g}f(b,a);b.create=function(a,d,g,f){c.isFunction(g)&&(f=g,g=void 0);return new b(a,d,f,g)};b.setupSubscription=function(a,c,d,f,e){var h;if(a&&"[object NodeList]"===k.call(a)||a&&"[object HTMLCollection]"===k.call(a))for(var l=0,n=a.length;l<n;l++)b.setupSubscription(a[l],c,d,f,e);else if(a&&"function"===typeof a.addEventListener&&"function"===typeof a.removeEventListener)a.addEventListener(c,
d,e),h=function(){return a.removeEventListener(c,d)};else if(a&&"function"===typeof a.on&&"function"===typeof a.off)a.on(c,d),h=function(){return a.off(c,d)};else if(a&&"function"===typeof a.addListener&&"function"===typeof a.removeListener)a.addListener(c,d),h=function(){return a.removeListener(c,d)};else throw new TypeError("Invalid event target");f.add(new g.Subscription(h))};b.prototype._subscribe=function(a){var c=this.selector;b.setupSubscription(this.sourceObj,this.eventName,c?function(){for(var b=
[],g=0;g<arguments.length;g++)b[g-0]=arguments[g];b=d.tryCatch(c).apply(void 0,b);b===h.errorObject?a.error(h.errorObject.e):a.next(b)}:function(b){return a.next(b)},a,this.options)};return b}(b.Observable);e.FromEventObservable=a},function(b,e,a){function f(a){var b=a.value;a=a.subscriber;a.closed||(a.next(b),a.complete())}function d(a){var b=a.err;a=a.subscriber;a.closed||a.error(b)}var c=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=
b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},h=a(33);b=function(a){function b(b,c){a.call(this);this.promise=b;this.scheduler=c}c(b,a);b.create=function(a,c){return new b(a,c)};b.prototype._subscribe=function(a){var b=this,c=this.promise,g=this.scheduler;if(null==g)this._isScalar?a.closed||(a.next(this.value),a.complete()):c.then(function(c){b.value=c;b._isScalar=!0;a.closed||(a.next(c),a.complete())},function(b){a.closed||a.error(b)}).then(null,function(a){h.root.setTimeout(function(){throw a;
})});else if(this._isScalar){if(!a.closed)return g.schedule(f,0,{value:this.value,subscriber:a})}else c.then(function(c){b.value=c;b._isScalar=!0;a.closed||a.add(g.schedule(f,0,{value:c,subscriber:a}))},function(b){a.closed||a.add(g.schedule(d,0,{err:b,subscriber:a}))}).then(null,function(a){h.root.setTimeout(function(){throw a;})})};return b}(a(1).Observable);e.PromiseObservable=b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},d=a(178);b=a(1);var c=a(86),h=a(62),g=a(177);a=function(a){function b(b,f,e){void 0===b&&(b=0);a.call(this);this.period=-1;this.dueTime=0;d.isNumeric(f)?this.period=1>Number(f)&&1||Number(f):h.isScheduler(f)&&(e=f);h.isScheduler(e)||(e=c.async);this.scheduler=e;this.dueTime=g.isDate(b)?+b-this.scheduler.now():b}f(b,a);b.create=function(a,c,d){void 0===a&&(a=0);return new b(a,c,d)};b.dispatch=function(a){var b=a.index,
c=a.period,d=a.subscriber;d.next(b);if(!d.closed){if(-1===c)return d.complete();a.index=b+1;this.schedule(a,c)}};b.prototype._subscribe=function(a){return this.scheduler.schedule(b.dispatch,this.dueTime,{index:0,period:this.period,subscriber:a})};return b}(b.Observable);e.TimerObservable=a},function(b,e,a){function f(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=null;c.isScheduler(a[a.length-1])&&(b=a.pop());return null===b&&1===a.length&&a[0]instanceof d.Observable?a[0]:(new h.ArrayObservable(a,
b)).lift(new g.MergeAllOperator(1))}var d=a(1),c=a(62),h=a(55),g=a(120);e.concat=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return this.lift.call(f.apply(void 0,[this].concat(a)))};e.concatStatic=f},function(b,e,a){function f(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var b=Number.POSITIVE_INFINITY,f=null,e=a[a.length-1];g.isScheduler(e)?(f=a.pop(),1<a.length&&"number"===typeof a[a.length-1]&&(b=a.pop())):"number"===typeof e&&(b=a.pop());return null===
f&&1===a.length&&a[0]instanceof d.Observable?a[0]:(new c.ArrayObservable(a,f)).lift(new h.MergeAllOperator(b))}var d=a(1),c=a(55),h=a(120),g=a(62);e.merge=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return this.lift.call(f.apply(void 0,[this].concat(a)))};e.mergeStatic=f},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,
new c)},d=a(56);b=a(54);e.mergeMap=function(a,b,d){void 0===d&&(d=Number.POSITIVE_INFINITY);"number"===typeof b&&(d=b,b=null);return this.lift(new c(a,b,d))};var c=function(){function a(a,b,c){void 0===c&&(c=Number.POSITIVE_INFINITY);this.project=a;this.resultSelector=b;this.concurrent=c}a.prototype.call=function(a,b){return b.subscribe(new h(a,this.project,this.resultSelector,this.concurrent))};return a}();e.MergeMapOperator=c;var h=function(a){function b(b,c,d,g){void 0===g&&(g=Number.POSITIVE_INFINITY);
a.call(this,b);this.project=c;this.resultSelector=d;this.concurrent=g;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0}f(b,a);b.prototype._next=function(a){this.active<this.concurrent?this._tryNext(a):this.buffer.push(a)};b.prototype._tryNext=function(a){var b,c=this.index++;try{b=this.project(a,c)}catch(p){this.destination.error(p);return}this.active++;this._innerSub(b,a,c)};b.prototype._innerSub=function(a,b,c){this.add(d.subscribeToResult(this,a,b,c))};b.prototype._complete=function(){this.hasCompleted=
!0;0===this.active&&0===this.buffer.length&&this.destination.complete()};b.prototype.notifyNext=function(a,b,c,d,g){this.resultSelector?this._notifyResultSelector(a,b,c,d):this.destination.next(b)};b.prototype._notifyResultSelector=function(a,b,c,d){var g;try{g=this.resultSelector(a,b,c,d)}catch(q){this.destination.error(q);return}this.destination.next(g)};b.prototype.notifyComplete=function(a){var b=this.buffer;this.remove(a);this.active--;0<b.length?this._next(b.shift()):0===this.active&&this.hasCompleted&&
this.destination.complete()};return b}(b.OuterSubscriber);e.MergeMapSubscriber=h},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},d=a(33);b=function(a){function b(b,c){a.call(this,b,c);this.scheduler=b;this.work=c;this.pending=!1}f(b,a);b.prototype.schedule=function(a,b){void 0===b&&(b=0);if(this.closed)return this;this.state=a;this.pending=
!0;var c=this.id,d=this.scheduler;null!=c&&(this.id=this.recycleAsyncId(d,c,b));this.delay=b;this.id=this.id||this.requestAsyncId(d,this.id,b);return this};b.prototype.requestAsyncId=function(a,b,c){void 0===c&&(c=0);return d.root.setInterval(a.flush.bind(a,this),c)};b.prototype.recycleAsyncId=function(a,b,c){void 0===c&&(c=0);return null!==c&&this.delay===c&&!1===this.pending?b:(d.root.clearInterval(b),void 0)};b.prototype.execute=function(a,b){if(this.closed)return Error("executing a cancelled action");
this.pending=!1;var c=this._execute(a,b);if(c)return c;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};b.prototype._execute=function(a,b){var c=!1,d=void 0;try{this.work(a)}catch(m){c=!0,d=!!m&&m||Error(m)}if(c)return this.unsubscribe(),d};b.prototype._unsubscribe=function(){var a=this.id,b=this.scheduler,c=b.actions,d=c.indexOf(this);this.state=this.work=null;this.pending=!1;this.scheduler=null;-1!==d&&c.splice(d,1);null!=a&&(this.id=this.recycleAsyncId(b,
a,null));this.delay=null};return b}(a(468).Action);e.AsyncAction=b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){a.apply(this,arguments);this.actions=[];this.active=!1;this.scheduled=void 0}f(b,a);b.prototype.flush=function(a){var b=this.actions;if(this.active)b.push(a);else{var c;this.active=!0;do if(c=a.execute(a.state,
a.delay))break;while(a=b.shift());this.active=!1;if(c){for(;a=b.shift();)a.unsubscribe();throw c;}}};return b}(a(406).Scheduler);e.AsyncScheduler=b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){var b=a.call(this,"object unsubscribed");this.name=b.name="ObjectUnsubscribedError";this.stack=b.stack;this.message=
b.message}f(b,a);return b}(Error);e.ObjectUnsubscribedError=b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){var b=a.call(this,"Timeout has occurred");this.name=b.name="TimeoutError";this.stack=b.stack;this.message=b.message}f(b,a);return b}(Error);e.TimeoutError=b},function(b,e,a){e.isArrayLike=function(a){return a&&
"number"===typeof a.length}},function(b,e,a){e.isDate=function(a){return a instanceof Date&&!isNaN(+a)}},function(b,e,a){var f=a(72);e.isNumeric=function(a){return!f.isArray(a)&&0<=a-parseFloat(a)+1}},function(b,e,a){e.isObject=function(a){return null!=a&&"object"===typeof a}},function(b,e,a){e.isPromise=function(a){return a&&"function"!==typeof a.subscribe&&"function"===typeof a.then}},function(b,e,a){e.noop=function(){}},function(b,e,a){Object.defineProperty(e,"__esModule",{value:!0});b=a(408);
a.n(b);b=a(409);a.n(b);b=a(410);a.n(b);b=a(411);a.n(b);b=a(412);a.n(b);b=a(413);a.n(b);b=a(414);a.n(b);b=a(415);a.n(b);b=a(416);a.n(b);b=a(417);a.n(b);b=a(418);a.n(b);b=a(419);a.n(b);b=a(420);a.n(b);b=a(421);a.n(b);b=a(422);a.n(b);b=a(423);a.n(b);b=a(424);a.n(b);b=a(425);a.n(b);b=a(426);a.n(b);b=a(427);a.n(b);b=a(428);a.n(b);b=a(429);a.n(b);b=a(430);a.n(b);b=a(431);a.n(b);b=a(432);a.n(b);b=a(433);a.n(b);b=a(434);a.n(b);b=a(435);a.n(b);a(27);a=a(191);e["default"]=a.a},function(b,e,a){function f(a){return function(b,
d){return null==b?d:a*d+(1-a)*b}}e.a=function(a,b){return a.map(function(a){return a.value.response}).filter(function(a){return!a||2E3<a.size}).map(function(a){return a?a.size/a.duration*8E3:0}).scan(f(b.alpha))}},function(b,e,a){function f(a,b){for(var c=0;c<a.length;c++)if(!0===b(a[c],c,a))return a[c];return null}function d(a,b){return"number"==typeof a&&0<a?a:b}function c(a,b){for(var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,d=a.length-1;0<=d;d--)if(a[d]/b<=1-c)return a[d];return a[0]}
function h(a,b){var c=a.sort(function(a,b){return a.width-b.width}),d=p()(c,function(a){return a.width>=b});return d?(c=a.filter(function(a){return a.width<=d.width}),c.length?c[c.length-1].bitrate:(c=a[0])&&c.bitrate||0):Infinity}function g(b,c){var d=b.map(function(a){return a.language}),d=a.i(r.d)(d,c);return 0<=d?b[d]:null}function k(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1,d=a.filter(function(a){return a.isAudioDescription==c});return g(d,b)}function l(a,b){var c=
2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1,d=a.filter(function(a){return a.isClosedCaption==c});return g(d,b)}function n(a,b){return a.filter(function(a){return a.type===b})}b=a(38);var m=a.n(b);b=a(63);var p=a.n(b),u=a(32);a.n(u);var q=a(118);a.n(q);var t=a(71);a.n(t);var v=a(44),r=a(67),w=a(183),x={defaultAudioTrack:{language:"fra",audioDescription:!1},defaultTextTrack:null,defaultWantedBufferAhead:30,defaultMaxBufferBehind:Infinity,defaultMaxBufferAhead:Infinity,defaultBufferThreshold:.3,
initialVideoBitrate:0,initialAudioBitrate:0,maxVideoBitrate:Infinity,maxAudioBitrate:Infinity};e.a=function(b,g){function e(a){return S.distinctUntilChanged().map(function(b){return k(a,b.language,b.audioDescription)||a[0]})}function p(a){return U.distinctUntilChanged().map(function(b){return b?l(a,b.language,b.closedCaption):null})}var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Object.keys(r).forEach(function(a){return void 0===r[a]&&delete r[a]});var y=m()({},x,r),B=y.defaultTextTrack,
D=y.defaultWantedBufferAhead,K=y.defaultMaxBufferBehind,z=y.defaultMaxBufferAhead,J=y.defaultBufferThreshold,I=y.initialVideoBitrate,M=y.initialAudioBitrate,O=y.maxVideoBitrate,C=y.maxAudioBitrate,L=y.limitVideoWidth,N=y.throttleWhenHidden,T=g.videoWidth,H=g.inBackground,S=new q.BehaviorSubject(y.defaultAudioTrack),U=new q.BehaviorSubject(B),P={audio:new q.BehaviorSubject(M),video:new q.BehaviorSubject(I)},y=[a.i(w.a)(n(b,"audio"),{alpha:.6}).multicast(P.audio),a.i(w.a)(n(b,"video"),{alpha:.6}).multicast(P.video)],
R=new u.Subscription;y.forEach(function(a){return R.add(a.connect())});var ba={audio:new q.BehaviorSubject(Infinity),video:new q.BehaviorSubject(Infinity)},V={audio:new q.BehaviorSubject(C),video:new q.BehaviorSubject(O)},W={audio:new q.BehaviorSubject(D),video:new q.BehaviorSubject(D),text:new q.BehaviorSubject(D)},Y={audio:new q.BehaviorSubject(K),video:new q.BehaviorSubject(K),text:new q.BehaviorSubject(K)},X={audio:new q.BehaviorSubject(z),video:new q.BehaviorSubject(z),text:new q.BehaviorSubject(z)};
return{setAudioTrack:function(a){S.next(a)},setTextTrack:function(a){U.next(a)},getAudioTrack:function(){return S.getValue()},getTextTrack:function(){return U.getValue()},getAverageBitrates:function(){return P},getAudioMaxBitrate:function(){return V.audio.getValue()},getVideoMaxBitrate:function(){return V.video.getValue()},getAudioBufferSize:function(){return W.audio.getValue()},getVideoBufferSize:function(){return W.video.getValue()},setAudioBitrate:function(a){ba.audio.next(d(a,Infinity))},setVideoBitrate:function(a){ba.video.next(d(a,
Infinity))},setAudioMaxBitrate:function(a){V.audio.next(d(a,Infinity))},setVideoMaxBitrate:function(a){V.video.next(d(a,Infinity))},setAudioBufferSize:function(a){W.audio.next(d(a,D))},setVideoBufferSize:function(a){W.video.next(d(a,D))},setMaxBufferBehind:function(a){Y.audio.next(d(a,K));Y.video.next(d(a,K));Y.text.next(d(a,K))},setMaxBufferAhead:function(a){X.audio.next(d(a,z));X.video.next(d(a,z));X.text.next(d(a,z))},setWantedBufferAhead:function(a){W.audio.next(d(a,K));W.video.next(d(a,K));W.text.next(d(a,
K))},getMaxBufferBehind:function(){return Math.min(Y.audio.getValue(),Y.video.getValue(),Y.text.getValue())},getMaxBufferAhead:function(){return Math.min(X.audio.getValue(),X.video.getValue(),X.text.getValue())},getWantedBufferAhead:function(){return Math.min(W.audio.getValue(),W.video.getValue(),W.text.getValue())},getBufferAdapters:function(b){var d=b.type,g=b.representations,e=b.getAvailableBitrates();b=void 0;if(1<g.length){b=ba[d];var k=V[d],l=P[d].map(function(a,b){return c(e,a,0===b?0:J)}).distinctUntilChanged().debounceTime(2E3).startWith(c(e,
P[d].getValue(),0));"video"==d&&(k=a.i(t.combineLatest)([k,T,H]).map(function(a){var b=a[0],c=a[1];a=a[2];if(N&&a)return e[0];c=L?h(g,c):e[e.length-1];return Math.min(c,b)}));b=a.i(t.combineLatest)(b,k,l,function(a,b,d){var h=void 0,h=Infinity>a?a:Infinity>b?Math.min(b,d):d;return f(g,function(a){return a.bitrate===c(e,h)})}).distinctUntilChanged(function(a,b){return a.id===b.id})}else b=a.i(v.e)(g[0]);return{representations:b,wantedBufferAhead:W[d]||new q.BehaviorSubject(D),maxBufferBehind:Y[d]||
new q.BehaviorSubject(K),maxBufferAhead:X[d]||new q.BehaviorSubject(z)}},getAdaptationsChoice:function(b,c){return"audio"==b?e(c):"text"==b?p(c):a.i(v.e)(c[0])},unsubscribe:function(){R&&(R.unsubscribe(),R=null)}}}},function(b,e,a){function f(b){function d(a,b){for(var c=a.ts,d=a.buffered,g=d.getRange(c),d=d.getOuterRanges(c),f=[],e=0;e<d.length;e++){var h=d[e];c-b<h.end?f.push(h):c+b>h.start&&f.push(h)}g&&(m.a.debug("buffer: gc removing part of inner range",f),c-b>g.start&&f.push({start:g.start,
end:c-b}),c+b<g.end&&f.push({start:c+b,end:g.end}));return f}function f(){m.a.warn("buffer: running garbage collector");return I.take(1).mergeMap(function(a){var b=d(a,y);0===b.length&&(b=d(a,B));m.a.debug("buffer: gc cleaning",b);return r(b.map(function(a){return P.removeBuffer(a)})).concatAll()})}function e(b){function d(a){return p.test(a.id)?!1:a.isInit||0>a.time?!0:(a=U.getSegmentRange(a.time/a.timescale,a.duration/a.timescale))?a.bitrate*x<b.bitrate:!0}function g(a,c,g){var f=new u.a(A.buffered);
U.equals(f)||U.intersect(f);if(a.stalled&&O){var e=b.index.checkDiscontinuity(a.ts);0<e&&C.next({type:"index-discontinuity",value:{ts:e+1}})}e=void 0;try{var k=null;0===g&&(m.a.debug("add init segment",n),k=b.index.getInitSegment());if(0===a.readyState)e=k?[k]:[];else{var l=a.ts,r=Math.max(0,Math.min(c,a.liveGap,(a.duration||Infinity)-l));a=void 0;var q=f.getGap(l);a=q>L&&Infinity>q?Math.min(q,N):0;var w=U.getRange(l);if(w&&w.bitrate===b.bitrate){var y=Math.floor(w.end-l);y>a&&(a=y)}f=l+a;q=l+r-f;
if(b.index.shouldRefresh(l,f,l+r))throw new t.g("OUT_OF_INDEX_ERROR",b.index.getType(),!1);var S=b.index.getSegments(f,q);k&&S.unshift(k);e=S}e=e.filter(d)}catch(da){if(da.type===t.a.INDEX_ERROR&&da.code===t.b.OUT_OF_INDEX_ERROR)return C.next({type:"out-of-index",value:da}),v();throw da;}for(l=0;l<e.length;l++)p.add(e[l].id);return h.Observable.of.apply(h.Observable,e)}m.a.info("bitrate",n,b.bitrate);var p=new q.a,y=function(a,b,c){if(!isFinite(b)&&!isFinite(c))return h.Observable.empty();var d=new u.a(A.buffered),
f=[],g=d.getRange(a),e=d.getOuterRanges(a);(function(){if(isFinite(b)){for(var c=0;c<e.length;c++){var d=e[c];a-b>=d.end?f.push(d):a>=d.end&&a-b>d.start&&a-b<d.end&&f.push({start:d.start,end:a-b})}g&&a-b>g.start&&f.push({start:g.start,end:a-b})}})();(function(){if(isFinite(c)){for(var b=0;b<e.length;b++){var d=e[b];a+c<=d.start?f.push(d):a<=d.start&&a+c<d.end&&a+c>d.start&&f.push({start:a+c,end:d.end})}g&&a+c<g.end&&f.push({start:a+c,end:g.end})}})();return r(f.map(function(a){return P.removeBuffer(a)})).concatAll().ignoreElements()},
B=function(a){return z({segment:a,representation:b}).map(function(b){return c()({segment:a},b)})},F=a.i(k.combineLatest)(I,T,H,S).mergeMap(function(a,b){var c=a[0],d=a[2],f=a[3];return h.Observable.merge(g(c,Math.min(a[1],f),b).concatMap(B),y(c.ts,d,f))}).concatMap(function(a){var d=a.segment,g=a.parsed,e=g.segmentData,h=g.nextSegments,k=g.currentSegment;(g=g.timescale)&&b.index.setTimescale(g);var l=h?b.index._addSegments(h,k):[],m=function(){p.remove(d.id);k&&U.insert(b.bitrate,k.ts/d.timescale,
(k.ts+k.d)/d.timescale)},v=function(){return P.appendBuffer(e)["do"](m)};return v()["catch"](function(a){if("QuotaExceededError"!=a.name)throw p.remove(d.id),new t.d("BUFFER_APPEND_ERROR",a,!0);return f().mergeMap(v)["catch"](function(a){p.remove(d.id);throw new t.d("BUFFER_FULL_ERROR",a,!0);})}).map(function(){return{type:"pipeline",value:c()({bufferType:n,addedSegments:l},a)}})});return a.i(l.merge)(F,C)["catch"](function(a){if(!O||a.type!=t.a.NETWORK_ERROR||!a.isHttpError(412))throw a;return h.Observable.of({type:"precondition-failed",
value:a}).concat(w(2E3)).concat(e(b))}).startWith({type:"buffer",value:{bufferType:n,adaptation:K,representation:b}})}var n=b.bufferType,A=b.sourceBuffer,K=b.adaptation,z=b.pipeline,J=b.adapters,I=b.timings,M=b.seekings,O=b.isLive,C=new g.Subject,L="video"==n?4:1,N="video"==n?6:1;b=J.representations;var T=J.wantedBufferAhead,H=J.maxBufferBehind,S=J.maxBufferAhead,U=new u.a,P=new p.a(A);return a.i(k.combineLatest)(b,M,function(a){return a}).switchMap(e)["finally"](function(){return P.dispose()})}function d(a){return h.Observable.of({type:"buffer",
value:{bufferType:a,adaptation:null,representation:null}})}a.d(e,"b",function(){return f});a.d(e,"a",function(){return d});b=a(38);var c=a.n(b),h=a(1);a.n(h);var g=a(39);a.n(g);var k=a(71);a.n(k);var l=a(41);a.n(l);b=a(40);a.n(b);e=a(439);a.n(e);var n=a(168);a.n(n);var m=a(27),p=a(186),u=a(64),q=a(218),t=a(34),v=b.EmptyObservable.create,r=e.FromObservable.create,w=n.TimerObservable.create,x=1.5,y=240,B=30},function(b,e,a){a.d(e,"a",function(){return d});var f=a(39);a.n(f);var d=function(){function a(b){if(!(this instanceof
a))throw new TypeError("Cannot call a class as a function");this.buffer=b;this.queue=[];this.flushing=null;this._onUpdate=this.onUpdate.bind(this);this._onError=this.onError.bind(this);this._flush=this.flush.bind(this);this.buffer.addEventListener("update",this._onUpdate);this.buffer.addEventListener("error",this._onError);this.buffer.addEventListener("updateend",this._flush)}a.prototype.dispose=function(){this.buffer.removeEventListener("update",this._onUpdate);this.buffer.removeEventListener("error",
this._onError);this.buffer.removeEventListener("updateend",this._flush);this.buffer=null;this.queue.length=0;this.flushing=null};a.prototype.onUpdate=function(a){this.flushing&&(this.flushing.next(a),this.flushing.complete(),this.flushing=null)};a.prototype.onError=function(a){this.flushing&&(this.flushing.error(a),this.flushing=null)};a.prototype.queueAction=function(a,b){var c=new f.Subject;1===this.queue.unshift({type:a,args:b,subj:c})&&this.flush();return c};a.prototype.appendBuffer=function(a){return this.queueAction("append",
a)};a.prototype.removeBuffer=function(a){return this.queueAction("remove",{start:a.start,end:a.end})};a.prototype.appendStream=function(a){return this.queueAction("stream",a)};a.prototype.flush=function(){if(!this.flushing&&0!==this.queue.length&&!this.buffer.updating){var a=this.queue.pop(),b=a.type,c=a.args;this.flushing=a.subj;try{switch(b){case "append":this.buffer.appendBuffer(c);break;case "stream":this.buffer.appendStream(c);break;case "remove":this.buffer.remove(c.start,c.end)}}catch(l){this.onError(l)}}};
return a}()},function(b,e,a){a.d(e,"a",function(){return f});var f=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.cache={}}a.prototype.add=function(a,b){var c=a.segment;c.isInit&&(this.cache[c.id]=b)};a.prototype.get=function(a){a=a.segment;return a.isInit&&(a=this.cache[a.id],null!=a)?a:null};return a}()},function(b,e,a){var f=a(41);a.n(f);b=a(440);a.n(b);var d=a(42),c=b.IntervalObservable.create,h=window.devicePixelRatio||1;e.a=function(b){var g=
a.i(d.u)().filter(function(a){return!1===a}),e=a.i(d.u)().debounceTime(6E4).filter(function(a){return!0===a}),g=a.i(f.merge)(g,e).startWith(!1);return{videoWidth:a.i(f.merge)(c(2E4),a.i(d.v)().debounceTime(500)).startWith("init").map(function(){return b.clientWidth*h}).distinctUntilChanged(),inBackground:g}}},function(b,e,a){function f(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,
{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}b=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var c=a.apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?this:c}f(b,a);b.prototype._append=function(){this.buffered.insert(0,0,Infinity)};
return b}(a(130).a);e.a=b},function(b,e,a){function f(b,c,d){var f=3<arguments.length&&void 0!==arguments[3]?arguments[3]:!0;console.log("!!!!! error",JSON.stringify(d),d);a.i(m.e)(d)||(d=new (d instanceof m.h?m.j:m.f)(b,d,f));d.pipelineType=c;return d}function d(a){return a instanceof m.h?a.type===m.i.ERROR_HTTP_CODE?500<=a.status||404==a.status:a.type===m.i.TIMEOUT||a.type===m.i.ERROR_EVENT:!1}function c(b,c,g,e){function m(a){throw f("PIPELINE_RESOLVE_ERROR",b,a);}function v(a){throw f("PIPELINE_PARSING_ERROR",
b,a);}function u(a){g.next(a)}function q(b){return a.i(l.a)(a.i(n.c)(G,b),I)}function t(b){var c=J?J.get(b):null;return null===c?q(b):a.i(n.b)(c)["catch"](function(){return q(b)})}function A(b){return a.i(n.c)(D,b)["catch"](v)}function F(a,c){var d=h()({response:c},a);J&&J.add(a,c);p.schedule(u,0,{type:b,value:d});return d}function Q(a,b){return h()({parsed:b},a)}var E=c.resolver,G=c.loader,D=c.parser,K=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{};E||(E=k.Observable.of);G||(G=k.Observable.of);
D||(D=k.Observable.of);var z=K.maxRetry,J=K.cache,K="number"===typeof z?z:4,I={retryDelay:200,errorSelector:function(a){throw f("PIPELINE_LOAD_ERROR",b,a);},totalRetry:K,shouldRetry:K&&d,onRetry:function(a){p.schedule(u,0,{type:b,value:a.xhr});e.next(f("PIPELINE_LOAD_ERROR",b,a,!1))}};return function(b){return a.i(n.c)(E,b)["catch"](m).mergeMap(t,F).mergeMap(A,Q)}}b=a(221);a.n(b);b=a(38);var h=a.n(b),g=a(39);a.n(g);b=a(471);a.n(b);var k=a(1);a.n(k);var l=a(91),n=a(44),m=a(34),p=b.asap;e.a=function(){var a=
new g.Subject;return{createPipelines:function(b){var d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},f={requiresMediaSource:function(){return!0!==b.directFile}},g;for(g in b)f[g]=c(g,b[g],a,d.errorStream,d[g]);return f},metrics:a}}},function(b,e,a){function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function d(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+
typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function c(a,b){if(a===b)return!0;if("object"===("undefined"===typeof a?"undefined":N(a))&&"object"===("undefined"===typeof b?"undefined":N(b))){if(null===a||null===b)return!1;var d=Object.keys(a);if(d.length!==Object.keys(b).length)return!1;for(var f=Array.isArray(d),g=0,d=f?d:d[Symbol.iterator]();;){var e;if(f){if(g>=
d.length)break;e=d[g++]}else{g=d.next();if(g.done)break;e=g.value}if(!b.hasOwnProperty(e)||!c(a[e],b[e]))return!1}return!0}return!1}function h(a,b){return b?"seeking"==b.name?"SEEKING":"BUFFERING":a?"PLAYING":"PAUSED"}function g(){}function k(b){a.i(B.a)(b._manifest,"player: no manifest loaded")}function l(a,b){return a.filter(function(a){return a.type==b}).map(function(a){return a.value})}b=a(38);var n=a.n(b);b=a(63);var m=a.n(b),p=a(32);a.n(p);var u=a(39);a.n(u);var q=a(118);a.n(q);var t=a(71);
a.n(t);var v=a(27),r=a(220),w=a(44),x=a(67);b=a(89);var y=a(219),B=a(9),A=a(42),F=a(131),Q=a(34),E=a(187),G=a(64),D=a(194),K=a(188),z=a(129),J=a(212),I=a(190),M=a(184),O=a(192),C=a(128),L=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(b,c,d){c&&a(b.prototype,c);d&&a(b,d);return b}}(),N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:
function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};b=function(b){function e(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var d=c.videoElement,g=c.transport,h=c.transportOptions,k=c.defaultLanguage,l=c.defaultAudioTrack,n=c.defaultSubtitle,m=c.defaultTextTrack,p=c.initVideoBitrate,t=c.initialVideoBitrate,w=c.initAudioBitrate,y=c.initialAudioBitrate,
L=c.maxVideoBitrate,F=c.maxAudioBitrate,N=c.limitVideoWidth,N=void 0===N?!0:N,c=c.throttleWhenHidden,c=void 0===c?!0:c,C=f(this,b.call(this)),T=t,H=y,E=l,z=m;null!=p&&null==t&&(a.i(r.a)("initVideoBitrate is deprecated. Use initialVideoBitrate instead"),T=p);null!=w&&null==y&&(a.i(r.a)("initAudioBitrate is deprecated. Use initialAudioBitrate instead"),H=w);null!=k&&null==l&&(a.i(r.a)("defaultLanguage is deprecated. Use defaultAudioTrack instead"),E=k);null!=n&&null==m&&(a.i(r.a)("defaultSubtitle is deprecated. Use defaultTextTrack instead"),
z=n);C._playPauseNext$=C._playPauseNext.bind(C);C._textTrackChanges$=C._textTrackChanges.bind(C);C._setPlayerState$=C._setPlayerState.bind(C);C._triggerTimeChange$=C._triggerTimeChange.bind(C);C._streamNext$=C._streamNext.bind(C);C._streamError$=C._streamError.bind(C);C._streamFatalError$=C._streamFatalError.bind(C);C._streamComplete$=C._streamComplete.bind(C);C.defaultTransport=g;C.defaultTransportOptions=h||{};d||(d=document.createElement("video"));a.i(B.a)(d instanceof A.a,"requires an actual HTMLVideoElement");
d.preload="auto";C.version="2.3.2";C.video=d;C.fullscreen=a.i(A.b)(d).subscribe(function(){return C.trigger("fullscreenChange",C.isFullscreen())});C.playing=new q.BehaviorSubject;C.stream=new u.Subject;C.images=new u.Subject;C.errorStream=new u.Subject;h=a.i(I.a)();g=h.createPipelines;h=h.metrics;d=a.i(K.a)(d);C.createPipelines=g;C.metrics=h;C.adaptive=a.i(M.a)(h,d,{initialVideoBitrate:T,initialAudioBitrate:H,maxVideoBitrate:L,maxAudioBitrate:F,defaultAudioTrack:a.i(x.a)(E),defaultTextTrack:a.i(x.b)(z),
limitVideoWidth:N,throttleWhenHidden:c});C.muted=.1;C._setPlayerState("STOPPED");C._resetStates();C.log=v.a;return C}d(e,b);e.getErrorTypes=function(){a.i(r.a)("getErrorTypes is deprecated. Use the ErrorTypes property instead");return Q.a};e.getErrorCodes=function(){a.i(r.a)("getErrorCodes is deprecated. Use the ErrorCodes property instead");return Q.b};L(e,null,[{key:"ErrorTypes",get:function(){return Q.a}},{key:"ErrorCodes",get:function(){return Q.b}}]);e.prototype._resetStates=function(){this._manifest=
null;this.reps={video:null,audio:null,text:null,images:null};this.adas={video:null,audio:null,text:null,images:null};this.evts={};this.frag={start:null,end:null};this.error=null;this.images.next(null);this._currentImagePlaylist=null};e.prototype._unsubscribe=function(){if(this.subscriptions){var a=this.subscriptions;this.subscriptions=null;a.unsubscribe()}};e.prototype.stop=function(){"STOPPED"!==this.state&&(this._resetStates(),this._unsubscribe(),this._setPlayerState("STOPPED"))};e.prototype.dispose=
function(){this.stop();this.metrics.unsubscribe();this.adaptive.unsubscribe();this.fullscreen.unsubscribe();this.stream.unsubscribe();a.i(C.a)();this.video=this.createPipelines=this.stream=this.fullscreen=this.adaptive=this.metrics=null};e.prototype._recordState=function(a,b){c(this.evts[a],b)||(this.evts[a]=b,this.trigger(a+"Change",b))};e.prototype._parseOptions=function(b){var c=b=n()({transport:this.defaultTransport,transportOptions:{},keySystems:[],timeFragment:{},textTracks:[],imageTracks:[],
autoPlay:!1,hideNativeSubtitle:!1,directFile:!1},b),d=c.transport,e=c.url,g=c.keySystems,f=c.timeFragment,h=c.supplementaryTextTracks,k=c.supplementaryImageTracks,l=b,m=l.subtitles,p=l.images,c=l.transportOptions,v=l.manifests,u=l.autoPlay,q=l.directFile,t=l.defaultLanguage,w=l.defaultAudioTrack,y=l.defaultSubtitle,x=l.hideNativeSubtitle,A=l.startAt,L=w,l=l.defaultTextTrack;null!=t&&null==w&&(a.i(r.a)("defaultLanguage is deprecated. Use defaultAudioTrack instead"),L=t);b.hasOwnProperty("defaultSubtitle")&&
!b.hasOwnProperty("defaultTextTrack")&&(a.i(r.a)("defaultSubtitle is deprecated. Use defaultTextTrack instead"),l=y);void 0!==m&&void 0===h&&(a.i(r.a)("the subtitles option is deprecated. Use supplementaryTextTracks instead"),h=m);void 0!==p&&void 0===k&&(a.i(r.a)("the images option is deprecated. Use supplementaryImageTracks instead"),k=p);f=a.i(D.a)(f);q&&(d="directfile");a.i(B.a)(!!v^!!e,"player: you have to pass either a url or a list of manifests");v&&(a.i(r.a)("the manifests options is deprecated, use url instead"),
g=v[0],e=g.url,h=g.subtitles||[],k=g.images||[],g=v.map(function(a){return a.keySystem}).filter(Boolean));"string"==typeof d&&(d=J.a[d]);"function"==typeof d&&(d=d(n()({},this.defaultTransportOptions,c)));a.i(B.a)(d,"player: transport "+b.transport+" is not supported");return{url:e,keySystems:g,supplementaryTextTracks:h,hideNativeSubtitle:x,supplementaryImageTracks:k,timeFragment:f,autoPlay:u,defaultAudioTrack:L,defaultTextTrack:l,transport:d,startAt:A}};e.prototype.loadVideo=function(){var b=0<arguments.length&&
void 0!==arguments[0]?arguments[0]:{},b=this._parseOptions(b);v.a.info("loadvideo",b);var c=b,d=c.url,e=c.keySystems,f=c.supplementaryTextTracks,k=c.hideNativeSubtitle,n=c.supplementaryImageTracks,m=c.timeFragment,r=c.autoPlay,u=c.transport,b=c.defaultAudioTrack,q=c.defaultTextTrack,c=c.startAt;this.stop();this.frag=m;this.playing.next(r);null!=b&&this.adaptive.setAudioTrack(a.i(x.a)(b));void 0!==q&&this.adaptive.setTextTrack(a.i(x.b)(q));var q=this.video,y=this.adaptive,b=this.errorStream,A=this.createPipelines(u,
{errorStream:b,audio:{cache:new E.a},video:{cache:new E.a},image:{maxRetry:0}}),u=a.i(F.a)(q,{requiresMediaSource:A.requiresMediaSource()}),d=a.i(O.a)({url:d,errorStream:b,keySystems:e,supplementaryTextTracks:f,hideNativeSubtitle:k,timings:u,supplementaryImageTracks:n,timeFragment:m,adaptive:y,pipelines:A,videoElement:q,autoPlay:r,startAt:c}).publish(),f=l(d,"stalled").startWith(null),e=l(d,"loaded").take(1).share(),f=e.mapTo("LOADED").concat(a.i(t.combineLatest)(this.playing,f,h)).distinctUntilChanged().startWith("LOADING"),
k=a.i(w.a)(q,["play","pause"]),q=a.i(w.a)(q.textTracks,["addtrack"]),n=this.subscriptions=new p.Subscription;n.add(k.subscribe(this._playPauseNext$,g));n.add(q.subscribe(this._textTrackChanges$,g));n.add(f.subscribe(this._setPlayerState$,g));n.add(u.subscribe(this._triggerTimeChange$,g));n.add(d.subscribe(this._streamNext$,this._streamFatalError$,this._streamComplete$));n.add(b.subscribe(this._streamError$));n.add(d.connect());this.subscriptions?this._triggerTimeChange():n.unsubscribe();return e};
e.prototype._streamNext=function(a){var b=a.type,c=a.value;"buffer"==b&&this._bufferNext(c);"manifest"==b&&this._manifestNext(c);"pipeline"==b&&(this.trigger("progress",c.segment),b=c.parsed,"image"===c.bufferType&&(this._currentImagePlaylist=c=b.segmentData,this.trigger("imageTrackUpdate",{data:this._currentImagePlaylist}),this.images.next(c)));this.stream&&this.stream.next(a)};e.prototype._streamError=function(a){this.trigger("warning",a);this.stream&&this.stream.next({type:"warning",value:a})};
e.prototype._streamFatalError=function(a){this._resetStates();this.error=a;this._setPlayerState("STOPPED");this._unsubscribe();this.trigger("error",a);this.stream&&this.stream.next({type:"error",value:a})};e.prototype._streamComplete=function(){this._resetStates();this._setPlayerState("ENDED");this._unsubscribe();this.stream&&this.stream.next({type:"ended",value:null})};e.prototype._manifestNext=function(a){this._manifest=a;this.trigger("manifestChange",a)};e.prototype._bufferNext=function(a){var b=
a.bufferType,c=a.adaptation;a=a.representation;this.reps[b]=a;this.adas[b]=c;if("text"==b){var d=c&&c.language?{language:c.language,closedCaption:!!c.isClosedCaption,id:c.id}:null;this._recordState("subtitle",d&&d.language);this._recordState("textTrack",d)}"video"==b&&this._recordState("videoBitrate",a&&a.bitrate||-1);"audio"==b&&(b={language:c&&c.language||"",audioDescription:!(!c||!c.isAudioDescription),id:c.id},this._recordState("language",b.language),this._recordState("audioTrack",b),this._recordState("audioBitrate",
a&&a.bitrate||-1))};e.prototype._playPauseNext=function(a){!0!==this.video.ended&&this.playing.next("play"==a.type)};e.prototype._textTrackChanges=function(a){(a=a.target[0])&&this.trigger("nativeTextTrackChange",a)};e.prototype._setPlayerState=function(a){this.state!==a&&(this.state=a,v.a.info("playerStateChange",a),this.trigger("playerStateChange",a))};e.prototype._triggerTimeChange=function(b){if(this._manifest&&b){this._manifest.isLive&&0<b.ts&&(b.wallClockTime=a.i(F.c)(b.ts,this._manifest),b.liveGap=
a.i(F.d)(this._manifest)-b.ts);var c={position:b.ts,duration:b.duration,bufferGap:isFinite(b.gap)?b.gap:0,liveGap:b.liveGap,playbackRate:b.playback,wallClockTime:b.wallClockTime&&b.wallClockTime.getTime()/1E3,maximumBufferTime:a.i(F.e)(this._manifest)};this.trigger("positionUpdate",c);b.liveGap=c.maximumBufferTime-b.ts;this.trigger("currentTimeChange",b)}else this.trigger("currentTimeChange",a.i(F.b)())};e.prototype.getError=function(){return this.error};e.prototype.getManifest=function(){return this._manifest||
null};e.prototype.getCurrentAdaptations=function(){return this._manifest?this.adas:null};e.prototype.getCurrentRepresentations=function(){return this._manifest?this.reps:null};e.prototype.getVideoElement=function(){return this.video};e.prototype.getNativeTextTrack=function(){return 0<this.video.textTracks.length?this.video.textTracks[0]:null};e.prototype.getImageTrack=function(){return this.images.distinctUntilChanged()};e.prototype.getPlayerState=function(){return this.state};e.prototype.isLive=
function(){k(this);return this._manifest.isLive};e.prototype.getUrl=function(){k(this);return this._manifest.getUrl()};e.prototype.getVideoDuration=function(){return this.video.duration};e.prototype.getVideoLoadedTime=function(){return(new G.a(this.video.buffered)).getSize(this.video.currentTime)};e.prototype.getVideoPlayedTime=function(){return(new G.a(this.video.buffered)).getLoaded(this.video.currentTime)};e.prototype.getCurrentTime=function(){a.i(r.a)("getCurrentTime is deprecated and won't be available in the next major version. Use either getWallClockTime or getPosition instead.");
if(!this._manifest)return 0;var b=this.video.currentTime;return this._manifest.isLive?a.i(F.c)(b,this._manifest):b};e.prototype.getWallClockTime=function(){if(!this._manifest)return 0;var b=this.video.currentTime;return this.isLive()?+a.i(F.c)(b,this._manifest)/1E3:b};e.prototype.getPosition=function(){return this.video.currentTime};e.prototype.getStartTime=function(){return this.frag.start};e.prototype.getEndTime=function(){return this.frag.end};e.prototype.getPlaybackRate=function(){return this.video.playbackRate};
e.prototype.getVolume=function(){return this.video.volume};e.prototype.isFullscreen=function(){return a.i(A.c)()};e.prototype.getAvailableLanguages=function(){a.i(r.a)("getAvailableLanguages is deprecated and won't be available in the next major version. Use getAvailableAudioTracks instead.");return this._manifest&&a.i(z.a)(this._manifest).map(function(a){return a.language})||[]};e.prototype.getAvailableSubtitles=function(){a.i(r.a)("getAvailableSubtitles is deprecated and won't be available in the next major version. Use getAvailableTextTracks instead.");
return this._manifest&&a.i(z.b)(this._manifest).map(function(a){return a.language})||[]};e.prototype.getLanguage=function(){a.i(r.a)("getLanguage is deprecated and won't be available in the next major version. Use getAudioTrack instead.");return this.evts.language};e.prototype.getSubtitle=function(){a.i(r.a)("getSubtitle is deprecated and won't be available in the next major version. Use getTextTrack instead.");return this.evts.subtitle};e.prototype.getAvailableVideoBitrates=function(){return this.adas.video&&
this.adas.video.getAvailableBitrates()||[]};e.prototype.getAvailableAudioBitrates=function(){return this.adas.audio&&this.adas.audio.getAvailableBitrates()||[]};e.prototype.getVideoBitrate=function(){return this.evts.videoBitrate};e.prototype.getAudioBitrate=function(){return this.evts.audioBitrate};e.prototype.getVideoMaxBitrate=function(){a.i(r.a)("getVideoMaxBitrate is deprecated. Use getMaxVideoBitrate instead");return this.getMaxVideoBitrate()};e.prototype.getMaxVideoBitrate=function(){return this.adaptive.getVideoMaxBitrate()};
e.prototype.getAudioMaxBitrate=function(){a.i(r.a)("getAudioMaxBitrate is deprecated. Use getMaxAudioBitrate instead");return this.getMaxAudioBitrate()};e.prototype.getMaxAudioBitrate=function(){return this.adaptive.getAudioMaxBitrate()};e.prototype.getVideoBufferSize=function(){return this.adaptive.getVideoBufferSize()};e.prototype.getAudioBufferSize=function(){return this.adaptive.getAudioBufferSize()};e.prototype.getAverageBitrates=function(){return this.adaptive.getAverageBitrates()};e.prototype.getMetrics=
function(){return this.metrics};e.prototype.play=function(){this.video.play()};e.prototype.pause=function(){this.video.pause()};e.prototype.setPlaybackRate=function(a){this.video.playbackRate=a};e.prototype.goToStart=function(){return this.seekTo(this.getStartTime())};e.prototype.seekTo=function(b){k(this);var c=this.video.currentTime;if(b){if(null!=b.relative){this.video.currentTime=c+b.relative;return}if(null!=b.position){this.video.currentTime=b.position;return}if(null!=b.wallClockTime){this.video.currentTime=
a.i(F.f)(1E3*b.wallClockTime,this._manifest);return}}this._manifest.isLive&&(b=a.i(F.f)(b,this._manifest));return b!==c?(v.a.info("seek to",b),this.video.currentTime=b):c};e.prototype.exitFullscreen=function(){a.i(A.d)()};e.prototype.setFullscreen=function(){!1===(0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0)?(a.i(r.a)("setFullscreen(false) is deprecated. Use exitFullscreen instead"),a.i(A.d)()):a.i(A.e)(this.video)};e.prototype.setVolume=function(a){a!==this.video.volume&&(this.video.volume=
a,this.trigger("volumeChange",a))};e.prototype.mute=function(){this.muted=this.getVolume()||.1;this.setVolume(0)};e.prototype.unMute=function(){0===this.getVolume()&&this.setVolume(this.muted)};e.prototype.normalizeLanguageCode=function(b){return a.i(x.c)(b)};e.prototype.isLanguageAvailable=function(b){a.i(r.a)("isLanguageAvailable is deprecated and won't be available in the next major version.");var c=a.i(x.a)(b);return c?(b=this.getAvailableAudioTracks())?!!m()(b,function(a){return a.language===
c.language}):!1:!1};e.prototype.isSubtitleAvailable=function(b){a.i(r.a)("isSubtitleAvailable is deprecated and won't be available in the next major version.");var c=a.i(x.b)(b);return c?(b=this.getAvailableTextTracks())?!!m()(b,function(a){return a.language===c.language}):!1:!1};e.prototype.setLanguage=function(b){a.i(r.a)("setLanguage is deprecated and won't be available in the next major version. Use setAudioTrack instead.");k(this);b=a.i(x.a)(b);a.i(B.a)(this.isLanguageAvailable(b),"player: unknown language");
this.adaptive.setAudioTrack(b)};e.prototype.setSubtitle=function(b){a.i(r.a)("setSubtitle is deprecated and won't be available in the next major version. Use setTextTrack instead.");k(this);null==b?(this.adaptive.setTextTrack(null),this._recordState("subtitle",null)):(b=a.i(x.b)(b),a.i(B.a)(this.isSubtitleAvailable(b),"player: unknown subtitle"),this.adaptive.setTextTrack(b))};e.prototype.setVideoBitrate=function(b){k(this);a.i(B.a)(0===b||0<=this.getAvailableVideoBitrates().indexOf(b),"player: video bitrate unavailable");
this.adaptive.setVideoBitrate(b)};e.prototype.setAudioBitrate=function(b){k(this);a.i(B.a)(0===b||0<=this.getAvailableAudioBitrates().indexOf(b),"player: audio bitrate unavailable");this.adaptive.setAudioBitrate(b)};e.prototype.setVideoMaxBitrate=function(b){a.i(r.a)("setVideoMaxBitrate is deprecated. Use setMaxVideoBitrate instead");return this.setMaxVideoBitrate(b)};e.prototype.setMaxVideoBitrate=function(a){this.adaptive.setVideoMaxBitrate(a)};e.prototype.setAudioMaxBitrate=function(b){a.i(r.a)("setAudioMaxBitrate is deprecated. Use setMaxAudioBitrate instead");
return this.setMaxAudioBitrate(b)};e.prototype.setMaxAudioBitrate=function(a){this.adaptive.setAudioMaxBitrate(a)};e.prototype.setMaxBufferBehind=function(a){this.adaptive.setMaxBufferBehind(a)};e.prototype.setMaxBufferAhead=function(a){this.adaptive.setMaxBufferAhead(a)};e.prototype.setWantedBufferAhead=function(a){this.adaptive.setWantedBufferAhead(a)};e.prototype.getMaxBufferBehind=function(){return this.adaptive.getMaxBufferBehind()};e.prototype.getMaxBufferAhead=function(){return this.adaptive.getMaxBufferAhead()};
e.prototype.getWantedBufferAhead=function(){return this.adaptive.getWantedBufferAhead()};e.prototype.setVideoBufferSize=function(a){this.adaptive.setVideoBufferSize(a)};e.prototype.setAudioBufferSize=function(a){this.adaptive.setAudioBufferSize(a)};e.prototype.asObservable=function(){return this.stream};e.prototype.getDebug=function(){return y.a.getDebug(this)};e.prototype.showDebug=function(){y.a.showDebug(this,this.video)};e.prototype.hideDebug=function(){y.a.hideDebug()};e.prototype.toggleDebug=
function(){y.a.toggleDebug(this,this.video)};e.prototype.getCurrentKeySystem=function(){return a.i(C.b)()};e.prototype.getAvailableAudioTracks=function(){var b=this.getAudioTrack();return this._manifest?a.i(z.a)(this._manifest).map(function(a){return n()({},a,{active:b.id===a.id})}):null};e.prototype.getAvailableTextTracks=function(){var b=this.getTextTrack();return this._manifest?a.i(z.b)(this._manifest).map(function(a){return n()({},a,{active:!!b&&b.id===a.id})}):null};e.prototype.getAudioTrack=
function(){return this.evts.audioTrack};e.prototype.getTextTrack=function(){return this.evts.textTrack};e.prototype.setAudioTrack=function(b){var c=m()(this.getAvailableAudioTracks(),function(a){return a.id===b});a.i(B.a)(c,"player: unknown audio track");this.adaptive.setAudioTrack(c)};e.prototype.setTextTrack=function(b){var c=m()(this.getAvailableTextTracks(),function(a){return a.id===b});a.i(B.a)(c,"player: unknown text track");this.adaptive.setTextTrack(c)};e.prototype.disableTextTrack=function(){this.adaptive.setTextTrack(null);
this._recordState("subtitle",null)};e.prototype.getImageTrackData=function(){return this._manifest?this._currentImagePlaylist:null};e.prototype.getMinimumPosition=function(){return this._manifest?a.i(F.g)(this._manifest):null};e.prototype.getMaximumPosition=function(){return this._manifest?a.i(F.d)(this._manifest):null};return e}(b.a);e.a=b},function(b,e,a){function f(a){return"audio"==a||"video"==a}function d(b,c,d){var e=b.getDuration(),f=d.start,k=d.end,l=/^\d*(\.\d+)? ?%$/;if(c){e=a.i(g.h)(b);
d=e[0];e=e[1];if(null!=c.position)return Math.max(Math.min(c.position,e),d);if(null!=c.wallClockTime)return Math.max(Math.min(b.isLive?c.wallClockTime-b.availabilityStartTime:c.wallClockTime,e),d);if(null!=c.fromFirstPosition)return b=c.fromFirstPosition,0>=b?d:Math.min(d+b,e);if(null!=c.fromLastPosition)return b=c.fromLastPosition,0<=b?e:Math.max(d,e+b)}else{"string"==typeof f&&l.test(f)&&(f=parseFloat(f)/100*e);"string"==typeof k&&l.test(k)&&(d.end=parseFloat(k)/100*e);if(Infinity===k||"100%"===
k)k=e;if(b.isLive){if(f)return a.i(g.f)(f,b);c=b.suggestedPresentationDelay;return a.i(g.d)(b)-(null==c?15:c)}a.i(h.a)(f<e&&k<=e,"stream: bad startTime and endTime");return f}return 0}var c=a(27),h=a(9),g=a(131),k=a(91),l=a(1);a.n(l);var n=a(44),m=a(41);a.n(m);var p=a(71);a.n(p);var u=a(42),q=a(193),t=a(189),v=a(185),r=a(128),w=a(34),x=a(129);e.a=function(b){function e(a,b,d){X[b]||(c.a.info("add sourcebuffer",d),X[b]=a.addSourceBuffer(d));return X[b]}function h(a,b,d,g){if(f(d))a=e(b,d,g);else{if(b=
Z[d])try{b.abort()}catch(ga){c.a.warn(ga)}finally{delete Z[d]}if("text"==d)c.a.info("add text sourcebuffer",g),a=new q.a(a,g,N);else if("image"==d)c.a.info("add image sourcebuffer",g),a=new t.a(g);else throw c.a.error("unknown buffer type "+d),new w.d("BUFFER_TYPE_UNKNOWN",null,!0);Z[d]=a}return a}function y(a,b,d){var e=f(d);e?(a=X[d],delete X[d]):(a=Z[d],delete Z[d]);if(a)try{a.abort(),e&&b.removeSourceBuffer(a)}catch(ga){c.a.warn(ga)}}function Q(b){var c=H.map(function(c){var d;W?(d=c.clone(),
d.ts=Math.min(c.ts,S.end),d.duration=Math.min(c.duration,S.end)):d=c;d.liveGap=b.isLive?a.i(g.e)(b)-c.ts:Infinity;return d}),d=a.i(g.i)(c);return{timings:c,seekings:d}}function E(b,d,e,g,k,n,m){return U.getAdaptationsChoice(d,g).switchMap(function(g){if(!g)return y(R,b,d),a.i(v.a)(d);var p=h(R,b,d,e),r=U.getBufferAdapters(g);return a.i(v.b)({bufferType:d,sourceBuffer:p,adaptation:g,timings:k,seekings:n,adapters:r,pipeline:function(a){return P[d]({segment:a.segment,representation:a.representation,
adaptation:g,manifest:m})},isLive:m.isLive})["catch"](function(a){c.a.error("buffer",d,"has crashed",a);if(!f(d))return O.next(a),l.Observable.empty();throw a;})})}function G(b){var e=a.i(u.o)(R)["do"](function(){var a=d(b,V,S);c.a.info("set initial time",a);R.playbackRate=1;R.currentTime=a}),g=a.i(u.p)(R)["do"](function(){c.a.info("canplay event");ba&&R.play();ba=!0});return a.i(p.combineLatest)(e,g).take(1).mapTo({type:"loaded",value:!0})}function D(){return C&&C.length?a.i(r.c)(R,C,O):a.i(r.d)(R).map(function(){c.a.error("eme: ciphered media and no keySystem passed");
throw new w.c("MEDIA_IS_ENCRYPTED_ERROR",null,!0);})}function K(b,d){var e=d.changePlaybackRate,g=void 0===e?!0:e;return b.distinctUntilChanged(function(b,d){var e=d.stalled,f=b.stalled,h;h=f||e?f&&e?f.name==e.name:!1:!0;!h&&g&&(f?(c.a.info("resume playback",d.ts,d.name),R.playbackRate=f.playback):(c.a.info("stop playback",d.ts,d.name),R.playbackRate=0));e&&(e=d.buffered.getNextRangeGap(d.ts),a.i(u.q)(d)?(R.currentTime=d.ts,c.a.warn("after freeze seek",d.ts,d.range)):1>e&&(f=d.ts+e+1/60,R.currentTime=
f,c.a.warn("discontinuity seek",d.ts,e,f)));return h}).map(function(a){return{type:"stalled",value:a.stalled}})}function z(b){return Y({url:b.getUrl()}).map(function(c){c=c.parsed;return{type:"manifest",value:a.i(x.d)(b,a.i(x.c)(c.url,c.manifest,L,T))}})}function J(b,d,g,h){var k=Object.keys(d.adaptations).map(function(c){var k=d.adaptations[c],l=a.i(x.e)(k[0].representations[0]);f(c)&&e(b,c,l);return E(b,c,l,k,g,h,d)}),k=m.merge.apply(void 0,k);return d.isLive?k.concatMap(function(a){a:{switch(a.type){case "index-discontinuity":c.a.warn("explicit discontinuity seek",
a.value.ts);R.currentTime=a.value.ts;break;case "precondition-failed":d.updateLiveGap(1);c.a.warn("precondition failed",d.presentationLiveGap);break;case "out-of-index":c.a.info("out of index");a=z(d);break a}a=l.Observable.of(a)}return a}):k}function I(){return a.i(n.a)(R,"error").mergeMap(function(){var a=void 0;switch(R.error.code){case 1:a="MEDIA_ERR_ABORTED";break;case 2:a="MEDIA_ERR_NETWORK";break;case 3:a="MEDIA_ERR_DECODE";break;case 4:a="MEDIA_ERR_SRC_NOT_SUPPORTED"}c.a.error("stream: video element MEDIA_ERR("+
a+")");throw new w.d(a,null,!0);})}var M=b.url,O=b.errorStream,C=b.keySystems,L=b.supplementaryTextTracks,N=b.hideNativeSubtitle,T=b.supplementaryImageTracks,H=b.timings,S=b.timeFragment,U=b.adaptive,P=b.pipelines,R=b.videoElement,ba=b.autoPlay,V=b.startAt,W=Infinity>S.end,Y=a.i(n.d)(P.manifest),X={},Z={};b=H.filter(function(a){var b=a.ts;a=a.duration;return 0<a&&.5>Math.min(a,S.end)-b});var ca=a.i(k.b)(function(b){var d=b.url,e=b.mediaSource;b=e?a.i(u.n)(e):l.Observable.of(null);return a.i(p.combineLatest)(Y({url:d}),
b).mergeMap(function(b){b=b[0].parsed;b=a.i(x.c)(b.url,b.manifest,L,T);if(e){var d=b.getDuration(),d=Infinity===d?Number.MAX_VALUE:d;e.duration!==d&&(e.duration=d,c.a.info("set duration",e.duration))}var d=Q(b),g=d.timings,f=d.seekings,d=l.Observable.of({type:"manifest",value:b}),h=D(),k=K(g,{changePlaybackRate:P.requiresMediaSource()}),n=G(b);b=J(e,b,g,f);g=I();return a.i(m.merge)(d,n,k,h,b,g)})},{totalRetry:3,retryDelay:250,resetDelay:6E4,shouldRetry:function(a){return!0!==a.fatal},errorSelector:function(b){console.log("?!!!! error",
JSON.stringify(b),b,b.stack);a.i(w.e)(b)||(b=new w.f("NONE",b,!0));b.fatal=!0;return b},onRetry:function(a,b){c.a.warn("stream retry",a,b);O.next(a)}});return function(b,d){return l.Observable.create(function(e){function g(){if(f&&"closed"!=f.readyState)for(var b=f,e=b.readyState,b=b.sourceBuffers,g=0;g<b.length;g++){var k=b[g];try{"open"==e&&k.abort(),f.removeSourceBuffer(k)}catch(ha){c.a.warn("error while disposing souceBuffer",ha)}}Object.keys(Z).forEach(function(a){a=Z[a];try{a.abort()}catch(da){c.a.warn("error while disposing souceBuffer",
da)}});a.i(u.l)(d);if(h)try{URL.revokeObjectURL(h)}catch(ha){c.a.warn("error while revoking ObjectURL",ha)}X={};Z={};h=f=null}var f=void 0,h=void 0;g();if(P.requiresMediaSource()){if(!u.m)throw new w.d("MEDIA_SOURCE_NOT_SUPPORTED",null,!0);f=new u.m;h=URL.createObjectURL(f)}else f=null,h=b;d.src=h;e.next({url:b,mediaSource:f});c.a.info("create mediasource object",h);return g})}(M,R).mergeMap(ca).takeUntil(b)}},function(b,e,a){function f(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+
typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}b=a(130);var d=a(42),c=a(27),h=window.VTTCue||window.TextTrackCue;b=function(b){function e(c,f,g){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var h;h=b.call(this,f);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");h=!h||"object"!==typeof h&&
"function"!==typeof h?this:h;h.video=c;h.codec=f;h.isVTT=/^text\/vtt/.test(f);c=a.i(d.r)(c,g);f=c.trackElement;h.track=c.track;h.trackElement=f;return h}f(e,b);e.prototype.createCuesFromArray=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=d.start,f=d.end;(d=d.text)&&b.push(new h(e,f,d))}return b};e.prototype._append=function(b){var e=this;if(this.isVTT)a.i(d.s)()&&this.trackElement?(b=new Blob([b],{type:"text/vtt"}),b=URL.createObjectURL(b),this.trackElement.src=b,this.buffered.insert(0,
Infinity)):c.a.warn("vtt subtitles not supported");else if(b=this.createCuesFromArray(b),0<b.length){var f=b[0],g=b[b.length-1],h=this.track.cues;0<h.length&&f.startTime<h[h.length-1].startTime&&this._remove(f.startTime,Infinity);b.forEach(function(a){return e.track.addCue(a)});this.buffered.insert(0,f.startTime,g.endTime)}};e.prototype._remove=function(a,b){for(var c=this.track,d=c.cues,e=d.length-1;0<=e;e--){var f=d[e],g=f.startTime,h=f.endTime;g>=a&&g<=b&&h<=b&&c.removeCue(f)}this.buffered.remove(a,
b)};e.prototype._abort=function(){var a=this.trackElement,b=this.video;a&&b&&b.hasChildNodes(a)&&b.removeChild(a);this.track.mode="disabled";this.size=0;this.video=this.track=this.trackElement=null};return e}(b.a);e.a=b},function(b,e,a){function f(b){if("string"==typeof b){var e=b,f=e.split(",");a.i(k.a)(2>=f.length,l);b=f[0]?f[0]:"";f=f[1]?f[1]:"";a.i(k.a)((b||f)&&(!b||f||-1===e.indexOf(",")),l);b=b.replace(/^smpte(-25|-30|-30-drop)?:/,"").replace(/^npt[:=]/,"").replace("clock:","");var e=/(((\d+:)?(\d\d):(\d\d))|(\d+))(\.\d*)?$/,
n=/^\d+:\d\d:\d\d(:\d\d(\.\d\d)?)?$/,q=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|([-+]\d{2}:\d{2}))?$/,t=/^\d*(\.\d+)? ?%$/;if(e.test(b)&&e.test(f))e=d;else if(n.test(b)&&n.test(f))e=c;else if(q.test(b)&&q.test(f))e=h;else if(t.test(b)&&t.test(f))e=g;else throw Error(l);b=e(b);f=e(f);a.i(k.a)(!1!==b||!1!==f,l);b={start:!1===b?"":b,end:!1===f?"":f}}else b||(b={});"string"==typeof b.start&&"string"==typeof b.end?(b.start||(b.start="0%"),b.end||(b.end="100%")):(b.start||(b.start=0),b.end||(b.end=
Infinity));"string"==typeof b.start&&"string"==typeof b.end?(a.i(k.a)(0<=parseFloat(b.start)&&100>=parseFloat(b.start),"player: startTime should be between 0% and 100%"),a.i(k.a)(0<=parseFloat(b.end)&&100>=parseFloat(b.end),"player: endTime should be between 0% and 100%")):(a.i(k.a)(("number"==typeof b.start||b.start instanceof Date)&&("number"==typeof b.end||b.end instanceof Date),"player: timeFragment should have interface { start, end } where start and end are numbers or dates"),a.i(k.a)(b.start<
b.end,"player: startTime should be lower than endTime"),a.i(k.a)(0<=b.start,"player: startTime should be greater than 0"));return b}function d(b){if(!b)return!1;b=b.replace(/\.$/,"");var c,d;b=b.split(":");var e=b.length;switch(e){case 3:c=parseInt(b[0],10);d=parseInt(b[1],10);b=parseFloat(b[2]);break;case 2:c=0;d=parseInt(b[0],10);b=parseFloat(b[1]);break;case 1:d=c=0;b=parseFloat(b[0]);break;default:return!1}a.i(k.a)(23>=c,l);a.i(k.a)(59>=d,l);a.i(k.a)(1>=e||60>b,l);return 3600*c+60*d+b}function c(b){if(!b)return!1;
var c,d,e,f;b=b.split(":");switch(b.length){case 3:c=parseInt(b[0],10);d=parseInt(b[1],10);e=parseInt(b[2],10);f=b=0;break;case 4:c=parseInt(b[0],10);d=parseInt(b[1],10);e=parseInt(b[2],10);-1===b[3].indexOf(".")?(b=parseInt(b[3],10),f=0):(f=b[3].split("."),b=parseInt(f[0],10),f=parseInt(f[1],10));break;default:return!1}a.i(k.a)(23>=c,l);a.i(k.a)(59>=d,l);a.i(k.a)(59>=e,l);return 3600*c+60*d+e+.001*b+1E-6*f}function h(a){return new Date(Date.parse(a))}function g(a){return a?a:!1}a.d(e,"a",function(){return f});
var k=a(9),l="invalid MediaFragment"},function(b,e,a){b.exports=a(182)["default"]},function(b,e,a){b=a(38);var f=a.n(b);b=a(63);var d=a.n(b),c=a(66),h=a(203),g=a(90);b=function(){function b(){var d=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var k=a.i(g.a)();this.id=null==e.id?k:""+e.id;this.type=e.type||"";this.representations=Array.isArray(e.representations)?e.representations.map(function(a){return new h.a(f()({rootId:d.id},
a))}).sort(function(a,b){return a.bitrate-b.bitrate}):[];null!=e.language?this.language=e.language:null!=e.language&&(this.language=e.language);k=e.accessibility;Array.isArray(k)&&(a.i(c.a)(k,"audioDescription")&&(this.isAudioDescription=!0),a.i(c.a)(k,"closedCaption")&&(this.isClosedCaption=!0));null!=e.closedCaption&&(this.isClosedCaption=e.closedCaption);null!=e.audioDescription&&(this.isAudioDescription=e.audioDescription);null!=e.contentProtection&&(this.contentProtection=e.contentProtection);
null!=e.smoothProtection&&(this._smoothProtection=e.smoothProtection);this.manual=e.manual}b.prototype.getAvailableBitrates=function(){return this.representations.map(function(a){return a.bitrate})};b.prototype.getRepresentation=function(a){return d()(this.representations,function(b){return a===b.id})};b.prototype.getRepresentationsForBitrate=function(a){return this.representations.filter(function(b){return b.bitrate===a})||null};return b}();e.a=b},function(b,e,a){b=a(38);b=a.n(b);var f=a(88);a=a(65);
e.a=b()({},f.a,{getInitSegment:a.a,setTimescale:a.b,scale:a.c,_addSegmentInfos:function(a,b){a.timeline.push({ts:b.ts,d:b.d,r:b.r,range:b.range});return!0},shouldRefresh:function(){return!1}})},function(b,e,a){a.d(e,"a",function(){return k});var f=a(88),d=a(199),c=a(201),h=a(200),g=a(197),k=function(a){switch(a.indexType){case "timeline":return f.a;case "list":return d.a;case "template":return c.a;case "smooth":return h.a;case "base":return g.a;default:return f.a}}},function(b,e,a){var f=a(73),d=
a(65);e.a={getInitSegment:d.a,setTimescale:d.b,scale:d.c,getSegments:function(b,e,g,k){var c=a.i(d.e)(e,g,k);g=e.duration;k=e.list;e=e.timescale;for(var h=Math.min(k.length-1,Math.floor(c.to/g)),m=[],c=Math.floor(c.up/g);c<=h;)m.push(new f.a({id:""+b+"_"+c,time:c*g,init:!1,range:k[c].range,duration:g,indexRange:null,timescale:e,media:k[c].media})),c++;return m},getFirstPosition:function(){return 0},getLastPosition:function(a){return a.list.length*a.duration/a.timescale},shouldRefresh:function(a,b,
d,e){b=a.list;d=a.presentationTimeOffset;a=Math.floor((e*a.timescale-(void 0===d?0:d))/a.duration);return!(0<=a&&a<b.length)},_addSegmentInfos:function(){return!1},checkDiscontinuity:function(){return-1}}},function(b,e,a){b=a(88);var f=a(65);e.a={getSegments:b.a.getSegments,getInitSegment:f.a,checkDiscontinuity:b.a.checkDiscontinuity,_addSegmentInfos:b.a._addSegmentInfos,setTimescale:f.b,scale:f.c,shouldRefresh:function(b,c){var d=b.timeline,e=b.timescale,k=b.presentationTimeOffset,d=d[d.length-1];
if(!d)return!1;0>d.d&&(d={ts:d.ts,d:0,r:d.r});return c*e-(void 0===k?0:k)>=a.i(f.d)(d)},getFirstPosition:function(a){if(a.timeline.length)return a.timeline[0].ts/a.timescale},getLastPosition:function(b){if(b.timeline.length){var c=b.timeline[b.timeline.length-1];return a.i(f.d)(c)/b.timescale}}}},function(b,e,a){var f=a(73),d=a(65);e.a={getInitSegment:d.a,setTimescale:d.b,scale:d.c,getSegments:function(b,e,g,k){var c=a.i(d.e)(e,g,k);g=c.to;k=e.duration;var h=e.startNumber,m=e.timescale;e=e.media;
for(var p=[],c=c.up;c<=g;c+=k){var u=Math.floor(c/k)+(null==h?1:h),c=u*k;p.push(new f.a({id:""+b+"_"+u,number:u,time:c,init:!1,duration:k,range:null,indexRange:null,timescale:m,media:e}))}return p},getFirstPosition:function(){},getLastPosition:function(){},shouldRefresh:function(){return!1},checkDiscontinuity:function(){return-1},_addSegmentInfos:function(){return!1}}},function(b,e,a){b=a(63);var f=a.n(b),d=a(196),c=a(90);b=function(){function b(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
{};if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var f=a.i(c.a)();this.id=null==e.id?f:""+e.id;this.transport=e.transportType||"";this.adaptations=e.adaptations?Object.keys(e.adaptations).reduce(function(a,b){a[b]=e.adaptations[b].map(function(a){return new d.a(a)});return a},{}):[];this.periods=[{adaptations:this.adaptations}];this.isLive="dynamic"===e.type;this.uris=e.locations||[];this._duration=e.duration;this.suggestedPresentationDelay=e.suggestedPresentationDelay;
this.availabilityStartTime=e.availabilityStartTime;this.presentationLiveGap=e.presentationLiveGap;this.timeShiftBufferDepth=e.timeShiftBufferDepth}b.prototype.getDuration=function(){return this._duration};b.prototype.getUrl=function(){return this.uris[0]};b.prototype.getAdaptations=function(){var a=this.adaptations;if(!a)return[];var b=[],c;for(c in a)b.push.apply(b,a[c]);return b};b.prototype.getAdaptation=function(a){return f()(this.getAdaptations(),function(b){return a===b.id})};b.prototype.updateLiveGap=
function(a){this.isLive&&(this.presentationLiveGap+=a)};return b}();e.a=b},function(b,e,a){var f=a(90),d=a(204);e.a=function h(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var e=a.i(f.a)();this.id=null==b.id?e:b.id;this.bitrate=b.bitrate;this.codec=b.codecs;null!=b.height&&(this.height=b.height);null!=b.width&&(this.width=b.width);null!=b.mimeType&&(this.mimeType=b.mimeType);this.index=new d.a({index:b.index,
rootId:this.id});this.baseURL=b.baseURL;null!=b.codecPrivateData&&(this._codecPrivateData=b.codecPrivateData);null!=b.channels&&(this._channels=b.channels);null!=b.bitsPerSample&&(this._bitsPerSample=b.bitsPerSample);null!=b.packetSize&&(this._packetSize=b.packetSize);null!=b.samplingRate&&(this._samplingRate=b.samplingRate)}},function(b,e,a){var f=a(198);b=function(){function b(c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this._index=c.index;this._rootId=c.rootId;
this._indexHelpers=a.i(f.a)(this._index)}b.prototype.getInitSegment=function(){return this._indexHelpers.getInitSegment(this._rootId,this._index)};b.prototype.getSegments=function(a,b){return this._indexHelpers.getSegments(this._rootId,this._index,a,b)};b.prototype.shouldRefresh=function(a,b,d){return this._indexHelpers.shouldRefresh(this._index,a,b,d)};b.prototype.getFirstPosition=function(){return this._indexHelpers.getFirstPosition(this._index)};b.prototype.getLastPosition=function(){return this._indexHelpers.getLastPosition(this._index)};
b.prototype.checkDiscontinuity=function(a){return this._indexHelpers.checkDiscontinuity(this._index,a)};b.prototype.scale=function(a){return this._indexHelpers.scale(this._index,a)};b.prototype.setTimescale=function(a){return this._indexHelpers.setTimescale(this._index,a)};b.prototype._addSegments=function(a,b){for(var c=[],d=0;d<a.length;d++)this._indexHelpers._addSegmentInfos(this._index,a[d],b)&&c.push(a[d]);return c};b.prototype.update=function(a){this._index=a._index};b.prototype.getType=function(){return this._index.indexType||
""};return b}();e.a=b},function(b,e,a){function f(a){var b=a[0];return(a=a[1])&&Infinity!==a?"bytes="+ +b+"-"+ +a:"bytes="+ +b+"-"}function d(a){return function(b,c,d){b=d?parseInt(d,10):1;c=""+a;c=c.toString();b=c.length>=b?c:(Array(b+1).join("0")+c).slice(-b);return b}}function c(a,b,c){return-1===a.indexOf("$")?a:a.replace(/\$\$/g,"$").replace(/\$RepresentationID\$/g,c.id).replace(/\$Bandwidth(|\%0(\d+)d)\$/g,d(c.bitrate)).replace(/\$Number(|\%0(\d+)d)\$/g,d(b.number)).replace(/\$Time(|\%0(\d+)d)\$/g,
d(b.time))}var h=a(1);a.n(h);b=a(40);a.n(b);var g=a(41);a.n(g);a(9);var k=a(74),l=a(210),n=a(43),m=a(135),p=a(208),u=a(134),q=a(133),t=b.EmptyObservable.create;e.a=function(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},d=b.contentProtectionParser;d||(d=function(){});var e=b.createXHR,x=function(b){var c=b.url;b=b.segment;var d=b.range;b=b.indexRange;if(d&&b&&d[1]===b[0]-1)return a.i(m.a)({url:c,responseType:"arraybuffer",headers:{Range:f([d[0],b[1]])},createXHR:e});d=d?{Range:f(d)}:
null;d=a.i(m.a)({url:c,responseType:"arraybuffer",headers:d,createXHR:e});return b?(c=a.i(m.a)({url:c,responseType:"arraybuffer",headers:{Range:f(b)},createXHR:e}),a.i(g.merge)(d,c)):d},y=function(d){var e=d.segment,f=d.adaptation,g=d.representation;d=d.manifest;var l=e.media,m=e.range,n=e.indexRange;if(e.isInit&&!(l||m||n))return t();var p=b.segmentLoader,l=l?c(l,e,g):"",l=a.i(k.b)(g.baseURL,l),v={adaptation:f,representation:g,manifest:d,segment:e,transport:"dash",url:l};return p?h.Observable.create(function(a){var b=
!1,c=!1,d=p(v,{reject:function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};c||(b=!0,a.error(d))},resolve:function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};c||(b=!0,a.next({responseData:d.data,size:d.size||0,duration:d.duration||0}),a.complete())},fallback:function(){c=!0;x(v).subscribe(a)}});return function(){b||c||"function"!==typeof d||d()}}):x(v)},B={loader:function(a){return y({segment:a.segment,representation:a.representation,adaptation:a.adaptation,
manifest:a.manifest})},parser:function(b){var c=b.segment,d=b.adaptation;b=new Uint8Array(b.response.responseData);var e=void 0,f=void 0,g=void 0,k=c.indexRange,m=c.isInit;if(k=a.i(l.a)(b,k?k[0]:0))e=k.segments,f=k.timescale;m||(0<=c.time&&0<=c.duration?g={ts:c.time,d:c.duration}:k&&1===k.segments.length&&(g={ts:k.segments[0].ts,d:k.segments[0].d}));c=b;m&&d.contentProtection&&(c=a.i(l.b)(b,d.contentProtection));return h.Observable.of({segmentData:c,currentSegment:g,nextSegments:e,timescale:f})}};
return{directFile:!1,manifest:{loader:function(b){b=b.url;return a.i(m.a)({url:b,responseType:"document",createXHR:e})},parser:function(b){b=b.response;var c=b.responseData;return h.Observable.of({manifest:a.i(p.a)(c,d),url:b.url})}},audio:B,video:B,text:{loader:function(b){var d=b.segment,h=b.representation,l=d.media,n=d.range;b=d.indexRange;var p=0<=("application/mp4"===h.mimeType)?"arraybuffer":"text";if(d.isInit&&!(l||n||b))return t();d=l?c(l,d,h):"";d=a.i(k.b)(h.baseURL,d);if(n&&b&&n[1]===b[0]-
1)return a.i(m.a)({url:d,responseType:p,headers:{Range:f([n[0],b[1]])},createXHR:e});n=a.i(m.a)({url:d,responseType:p,headers:n?{Range:f(n)}:null,createXHR:e});return b?(b=a.i(m.a)({url:d,responseType:p,headers:{Range:f(b)},createXHR:e}),a.i(g.merge)(n,b)):n},parser:function(b){var c=b.response,d=b.segment,e=b.representation;b=b.adaptation.language;var f=d.isInit,g=d.indexRange,k;"application/mp4"===e.mimeType?(k=new Uint8Array(c.responseData),c=a.i(n.a)(a.i(l.c)(k))):c=k=c.responseData;var m=void 0,
p=void 0,v=void 0;if(k=a.i(l.a)(k,g?g[0]:0))m=k.segments,p=k.timescale;g=[];if(!f)switch(0<=d.time&&0<=d.duration?v={ts:d.time,d:d.duration}:k&&1===k.segments.length&&(v={ts:k.segments[0].ts,d:k.segments[0].d}),d=e.codec,(void 0===d?"":d).toLowerCase()){case "stpp":g=a.i(u.a)(c,b,0);break;default:console.warn("The codec used for the subtitle is not managed yet.")}return h.Observable.of({segmentData:g,currentSegment:v,nextSegments:m,timescale:p})}},image:{loader:function(b){var d=b.segment;b=b.representation;
if(d.isInit)return t();var f=d.media,d=f?c(f,d,b):"",d=a.i(k.b)(b.baseURL,d);return a.i(m.a)({url:d,responseType:"arraybuffer",createXHR:e})},parser:function(b){var c=new Uint8Array(b.response.responseData),d=b=void 0;c&&(c=a.i(q.a)(c),b=c.thumbs,d=c.timescale);return h.Observable.of({segmentData:b,currentSegment:{ts:0,d:Infinity},timescale:d})}}}}},function(b,e,a){var f=a(9);b=a(67);var d=a(132),c=[{k:"profiles",fn:d.g},{k:"width",fn:parseInt},{k:"height",fn:parseInt},{k:"frameRate",fn:d.h},{k:"audioSamplingRate",
fn:d.g},{k:"mimeType",fn:d.g},{k:"segmentProfiles",fn:d.g},{k:"codecs",fn:d.g},{k:"maximumSAPPeriod",fn:parseFloat},{k:"maxPlayoutRate",fn:parseFloat},{k:"codingDependency",fn:d.i}],h=[{k:"timescale",fn:parseInt,def:1},{k:"timeShiftBufferDepth",fn:d.j},{k:"presentationTimeOffset",fn:parseFloat,def:0},{k:"indexRange",fn:d.f},{k:"indexRangeExact",fn:d.i,def:!1},{k:"availabilityTimeOffset",fn:parseFloat},{k:"availabilityTimeComplete",fn:d.i,def:!0}],g=h.concat([{k:"duration",fn:parseInt},{k:"startNumber",
fn:parseInt}]),k={ContentProtection:[{k:"schemeIdUri",fn:d.g},{k:"value",fn:d.g}],SegmentURL:[{k:"media",fn:d.g},{k:"mediaRange",fn:d.f},{k:"index",fn:d.g},{k:"indexRange",fn:d.f}],S:[{k:"t",fn:parseInt,n:"ts"},{k:"d",fn:parseInt},{k:"r",fn:parseInt}],SegmentTimeline:[],SegmentBase:h,SegmentTemplate:g.concat([{k:"initialization",fn:function(a){return{media:a,range:void 0}}},{k:"index",fn:d.g},{k:"media",fn:d.g},{k:"bitstreamSwitching",fn:d.g}]),SegmentList:g,ContentComponent:[{k:"id",fn:d.g},{k:"lang",
fn:b.c,n:"language"},{k:"contentType",fn:d.g},{k:"par",fn:d.k}],Representation:c.concat([{k:"id",fn:d.g},{k:"bandwidth",fn:parseInt,n:"bitrate"},{k:"qualityRanking",fn:parseInt}]),AdaptationSet:c.concat([{k:"id",fn:d.g},{k:"group",fn:parseInt},{k:"lang",fn:b.c,n:"language"},{k:"contentType",fn:d.g},{k:"par",fn:d.k},{k:"minBandwidth",fn:parseInt,n:"minBitrate"},{k:"maxBandwidth",fn:parseInt,n:"maxBitrate"},{k:"minWidth",fn:parseInt},{k:"maxWidth",fn:parseInt},{k:"minHeight",fn:parseInt},{k:"maxHeight",
fn:parseInt},{k:"minFrameRate",fn:d.h},{k:"maxFrameRate",fn:d.h},{k:"segmentAlignment",fn:d.l},{k:"subsegmentAlignment",fn:d.l},{k:"bitstreamSwitching",fn:d.i}]),Period:[{k:"id",fn:d.g},{k:"start",fn:d.j},{k:"duration",fn:d.j},{k:"bitstreamSwitching",fn:d.i}],MPD:[{k:"id",fn:d.g},{k:"profiles",fn:d.g},{k:"type",fn:d.g,def:"static"},{k:"availabilityStartTime",fn:d.m},{k:"availabilityEndTime",fn:d.m},{k:"publishTime",fn:d.m},{k:"mediaPresentationDuration",fn:d.j,n:"duration"},{k:"minimumUpdatePeriod",
fn:d.j},{k:"minBufferTime",fn:d.j},{k:"timeShiftBufferDepth",fn:d.j},{k:"suggestedPresentationDelay",fn:d.j},{k:"maxSegmentDuration",fn:d.j},{k:"maxSubsegmentDuration",fn:d.j}],Role:[{k:"schemeIdUri",fn:d.g},{k:"value",fn:d.g}],Accessibility:[{k:"schemeIdUri",fn:d.g},{k:"value",fn:parseInt}]};e.a=function(b,c){var d=k[b.nodeName];a.i(f.a)(d,"no attributes for "+b.nodeName);for(var e=c||{},g=0;g<d.length;g++){var h=d[g],l=h.k,n=h.fn,r=h.n,h=h.def;b.hasAttribute(l)?e[r||l]=n(b.getAttribute(l)):null!=
h&&(e[r||l]=h)}return e}},function(b,e,a){a.d(e,"a",function(){return f});a.d(e,"b",function(){return d});a.d(e,"c",function(){return c});a.d(e,"d",function(){return h});b=function(a){return function(b){return a.reduce(function(a,c){b.hasOwnProperty(c)&&(a[c]=b[c]);return a},{})}};var f=b("availabilityStartTime baseURL duration id locations periods presentationLiveGap suggestedPresentationDelay timeShiftBufferDepth transportType type".split(" ")),d=b(["adaptations","baseURL","duration","id","start"]),
c=b("contentProtection accessibility baseURL contentProtection id language representations type".split(" ")),h=b("bitrate baseURL codecs height id index mimeType width".split(" "))},function(b,e,a){function f(a,b){return"string"==typeof a?f.parseFromString(a,b):f.parseFromDocument(a,b)}var d=a(9),c=a(209);f.parseFromString=function(a,b){return f.parseFromDocument((new DOMParser).parseFromString(a,"application/xml"),b)};f.parseFromDocument=function(b,e){var f=b.documentElement;d.a.equal(f.nodeName,
"MPD","document root should be MPD");return a.i(c.a)(f,e)};e.a=f},function(b,e,a){function f(b,c){var e=a.i(p.a)(b,function(a,b,e){switch(b){case "BaseURL":a.baseURL=e.textContent;break;case "Location":a.locations.push(e.textContent);break;case "Period":a.periods.push(d(e,c))}return a},{transportType:"dash",periods:[],locations:[]}),e=a.i(q.a)(b,e);if(/dynamic/.test(e.type)){var f=e.periods[0].adaptations.filter(function(a){return"video"==a.type})[0],f=a.i(p.b)(f);f||(console.warn("Live edge not deduced from manifest, setting a default one"),
f=Date.now()/1E3-60);e.availabilityStartTime=e.availabilityStartTime.getTime()/1E3;e.presentationLiveGap=Date.now()/1E3-(f+e.availabilityStartTime)}return a.i(u.a)(e)}function d(b,d){var e=a.i(q.a)(b,a.i(p.a)(b,function(a,b,e){switch(b){case "BaseURL":a.baseURL=e.textContent;break;case "AdaptationSet":b=c(e,d),null==b.id&&(b.id=a.adaptations.length),a.adaptations.push(b)}return a},{adaptations:[]}));return a.i(u.b)(e)}function c(b,c){var d=void 0,e=a.i(p.a)(b,function(b,e,f){switch(e){case "Accessibility":d=
a.i(q.a)(f);break;case "BaseURL":b.baseURL=f.textContent;break;case "ContentComponent":e=a.i(q.a)(f);b.contentComponent=e;break;case "ContentProtection":e=c(a.i(q.a)(f),f);b.contentProtection=e;break;case "Representation":e=h(f);null==e.id&&(e.id=b.representations.length);b.representations.push(e);break;case "Role":e=a.i(q.a)(f);b.role=e;break;case "SegmentBase":b.index=l(f);break;case "SegmentList":b.index=k(f);break;case "SegmentTemplate":b.index=g(f)}return b},{representations:[]}),f=a.i(q.a)(b,
e);f.type=a.i(p.c)(f);f.accessibility=[];a.i(p.d)(d)&&f.accessibility.push("hardOfHearing");a.i(p.e)(d)&&f.accessibility.push("visuallyImpaired");f.representations=f.representations.map(function(a){t.forEach(function(b){!a.hasOwnProperty(b)&&f.hasOwnProperty(b)&&(a[b]=f[b])});return a});return a.i(u.c)(f)}function h(b){var c=a.i(p.a)(b,function(a,b,c){switch(b){case "BaseURL":a.baseURL=c.textContent;break;case "SegmentBase":a.index=l(c);break;case "SegmentList":a.index=k(c);break;case "SegmentTemplate":a.index=
g(c)}return a},{});b=a.i(q.a)(b,c);return a.i(u.d)(b)}function g(a){a=n(a);a.indexType||(a.indexType="template");return a}function k(b){var c=n(b);c.list=[];c.indexType="list";return a.i(p.a)(b,function(b,c,d){"SegmentURL"==c&&b.list.push(a.i(q.a)(d));return b},c)}function l(b){var c=a.i(p.a)(b,function(b,c,d){if("Initialization"==c){var e=c=void 0;d.hasAttribute("range")&&(c=a.i(p.f)(d.getAttribute("range")));d.hasAttribute("sourceURL")&&(e=d.getAttribute("sourceURL"));b.initialization={range:c,
media:e}}return b},a.i(q.a)(b));"SegmentBase"==b.nodeName&&(c.indexType="base",c.timeline=[]);return c}function n(b){return a.i(p.a)(b,function(a,b,c){"SegmentTimeline"==b&&(a.indexType="timeline",a.timeline=m(c));return a},l(b))}function m(b){return a.i(p.a)(b,function(b,c,d){c=b.length;d=a.i(q.a)(d);null==d.ts&&(c=0<c&&b[c-1],d.ts=c?c.ts+c.d*(c.r+1):0);null==d.r&&(d.r=0);b.push(d);return b},[])}a.d(e,"a",function(){return f});a(9);var p=a(132),u=a(207),q=a(206),t=["codecs","height","index","mimeType",
"width"]},function(b,e,a){function f(b,c){for(var d=b.length,e=0,f,g=void 0;e+8<d&&(g=a.i(l.e)(b,e),f=a.i(l.e)(b,e+4),a.i(k.a)(0<g,"dash: out of range size"),f!==c);)e+=g;if(e>=d)return-1;a.i(k.a)(e+g<=d,"dash: atom out of range");return e}function d(b){for(var c=b.length,d=0,e,f=void 0;d+8<c&&(f=a.i(l.e)(b,d),e=a.i(l.e)(b,d+4),a.i(k.a)(0<f,"dash: out of range size"),1835295092!==e);)d+=f;b=d<c?b.subarray(d+8,d+f):null;return b}function c(b,c){var d=f(b,1936286840);if(-1==d)return null;var e=a.i(l.e)(b,
d),d=d+4+4,g=b[d],d=d+8,h=a.i(l.e)(b,d),d=d+4;if(0===g)g=a.i(l.e)(b,d),d+=4,c+=a.i(l.e)(b,d)+e,d+=4;else if(1===g)g=a.i(l.f)(b,d),d+=8,c+=a.i(l.f)(b,d)+e,d+=8;else return null;for(var e=[],d=d+2,k=a.i(l.g)(b,d),d=d+2;0<=--k;){var m=a.i(l.e)(b,d),d=d+4,n=m&2147483647;if(1==(m&2147483648)>>>31)throw Error("not implemented");m=a.i(l.e)(b,d);d+=4;d+=4;e.push({ts:g,d:m,r:0,range:[c,c+n-1]});g+=m;c+=n}return{segments:e,timescale:h}}function h(b){var c=b.systemId;b=b.privateData;c=c.replace(/-/g,"");a.i(k.a)(32===
c.length);c=a.i(l.h)(4,a.i(l.j)(c),a.i(l.i)(b.length),b);b=c.length+8;return a.i(l.h)(a.i(l.i)(b),a.i(l.b)("pssh"),c)}function g(b,c){if(!c||!c.length)return b;var d=f(b,1836019574);if(-1==d)return b;for(var e=a.i(l.e)(b,d),g=[b.subarray(d,d+e)],k=0;k<c.length;k++)g.push(h(c[k]));g=l.h.apply(null,g);g.set(a.i(l.i)(g.length),0);return a.i(l.h)(b.subarray(0,d),g,b.subarray(d+e))}a.d(e,"a",function(){return c});a.d(e,"b",function(){return g});a.d(e,"c",function(){return d});var k=a(9),l=a(43)},function(b,
e,a){var f=a(1);a.n(f);e.a={directFile:!0,manifest:{parser:function(a){a=a.url;return f.Observable.of({manifest:{transportType:"directfile",locations:[a],periods:[],isLive:!1,duration:Infinity,adaptations:null},url:a})}}}},function(b,e,a){b=a(214);var f=a(205);a=a(211);e.a={smooth:b.a,dash:f.a,directfile:a.a}},function(b,e,a){function f(a){return a.replace(g,"\n").replace(h,function(a,b){return String.fromCharCode(b)})}function d(b,d){var e=/<sync[ >]/ig,g=/<sync[ >]|<\/body>/ig,h=[],m=b.match(k)[1],
p,w;g.exec(b);p=/\.(\S+)\s*{([^}]*)}/gi;w={};for(var x;x=p.exec(m);){var y=x[1];x=x[2].match(/\s*lang:\s*(\S+);/i)[1];y&&x&&(w[x]=y)}m=w[d];for(a.i(c.a)(m,"sami: could not find lang "+d+" in CSS");;){p=e.exec(b);w=g.exec(b);if(!p&&!w)break;if(!p||!w||p.index>=w.index)throw Error("parse error");w=b.slice(p.index,w.index);p=w.match(n);if(!p)throw Error("parse error (sync time attribute)");y=+p[1];if(isNaN(y))throw Error("parse error (sync time attribute NaN)");p=h;w=w.split("\n");y/=1E3;x=w.length;
for(var B;0<=--x;)if(B=w[x].match(l)){var A=B[2];m===B[1]&&("&nbsp;"===A?p[p.length-1].end=y:p.push({text:f(A),start:y}))}}return h}a.d(e,"a",function(){return d});var c=a(9),h=/&#([0-9]+);/g,g=/<br>/gi,k=/<style[^>]*>([\s\S]*?)<\/style[^>]*>/i,l=/\s*<p class=([^>]+)>(.*)/i,n=/<sync[^>]+?start="?([0-9]*)"?[^0-9]/i},function(b,e,a){function f(a){return a.responseData.getElementsByTagName("media")[0].getAttribute("src")}function d(a){return(a=a.match(D))&&a[1]||""}function c(a,b){return b?a.replace(D,
"?token="+b):a.replace(D,"")}function h(a,b,c){return a.replace(/\{bitrate\}/g,b.bitrate).replace(/\{start time\}/g,c.time)}var g=a(1);a.n(g);var k=a(43),l=a(27),n=a(74),m=a(135),p=a(216);b=a(215);var u=a(133),q=a(213),t=a(134),v=b.a.patchSegment,r=b.a.createVideoInitSegment,w=b.a.createAudioInitSegment,x=b.a.getMdat,y=b.a.getTraf,B=b.a.parseTfrf,A=b.a.parseTfxd,F={"application/x-sami":q.a,"application/smil":q.a,"application/ttml+xml":t.a,"application/ttml+xml+mp4":t.a,"text/vtt":function(a){return a}},
Q=m.a.RequestResponse,E=/\.(isml?)(\?token=\S+)?$/,G=/\.wsx?(\?token=\S+)?/,D=/\?token=(\S+)/;e.a=function(){function b(a,b,c){var d=void 0,e=void 0;c?(a=y(a))?(d=B(a),e=A(a)):l.a.warn("smooth: could not find traf atom"):d=null;e||(e={d:b.duration,ts:b.time});return{nextSegments:d,currentSegment:e}}var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},q=a.i(p.a)(e),t=e.createXHR,M=function(b){var c=b.segment,d=b.representation,f=b.adaptation;b=b.manifest;if(c.isInit){b={};var k=f._smoothProtection||
{};switch(f.type){case "video":b=r(c.timescale,d.width,d.height,72,72,4,d._codecPrivateData,k.keyId,k.keySystems);break;case "audio":b=w(c.timescale,d._channels,d._bitsPerSample,d._packetSize,d._samplingRate,d._codecPrivateData,k.keyId,k.keySystems)}return g.Observable.of(new Q(200,"","arraybuffer",Date.now()-100,Date.now(),b.length,b))}var l=e.segmentLoader,k=h(a.i(n.b)(d.baseURL),d,c),m={adaptation:f,representation:d,segment:c,transport:"smooth",url:k,manifest:b};return l?g.Observable.create(function(a){var b=
!1,c=!1,d=l(m,{reject:function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};c||(b=!0,a.error(d))},resolve:function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};c||(b=!0,a.next({responseData:d.data,size:d.size||0,duration:d.duration||0}),a.complete())},fallback:function(){c=!0;O(m).subscribe(a)}});return function(){b||c||"function"!==typeof d||d()}}):O(m)},O=function(b){var c=b.url,d=void 0;if(b=b.segment.range)d=b[0],d=(b=b[1])&&Infinity!==b?"bytes="+ +d+
"-"+ +b:"bytes="+ +d+"-",d={Range:d};return a.i(m.a)({url:c,responseType:"arraybuffer",headers:d,createXHR:t})},C={loader:function(a){return M({segment:a.segment,representation:a.representation,adaptation:a.adaptation,manifest:a.manifest})},parser:function(a){var c=a.segment,d=a.manifest;a=a.response.responseData;if(c.isInit)return g.Observable.of({segmentData:a,timings:null});a=new Uint8Array(a);d=b(a,c,d.isLive);c=d.nextSegments;d=d.currentSegment;a=v(a,d.ts);return g.Observable.of({segmentData:a,
nextSegments:c,currentSegment:d})}};return{directFile:!1,manifest:{resolver:function(b){b=b.url;var e=void 0,h=d(b),e=G.test(b)?a.i(m.a)({url:c(b,""),responseType:"document",resultSelector:f,createXHR:t}):g.Observable.of(b);return e.map(function(a){var b=a.match(E);a=b?a.replace(b[1],b[1]+"/manifest"):a;return{url:c(a,h)}})},loader:function(b){b=b.url;return a.i(m.a)({url:b,responseType:"document",createXHR:t})},parser:function(a){a=a.response;return g.Observable.of({manifest:q(a.responseData),url:a.url})}},
audio:C,video:C,text:{loader:function(b){var c=b.segment,d=b.representation;if(c.isInit)return g.Observable.empty();b=d.mimeType;var e=a.i(n.b)(d.baseURL),c=h(e,d,c);return 0<=b.indexOf("mp4")?a.i(m.a)({url:c,responseType:"arraybuffer",createXHR:t}):a.i(m.a)({url:c,responseType:"text",createXHR:t})},parser:function(c){var d=c.response,e=c.segment,f=c.manifest,h=c.adaptation.language,l=c.representation.mimeType;c=F[l];if(!c)throw Error("could not find a text-track parser for the type "+l);var m=d.responseData;
0<=l.indexOf("mp4")?(m=new Uint8Array(m),d=a.i(k.a)(x(m))):d=m;l=b(m,e,f.isLive);f=l.nextSegments;l=l.currentSegment;e=c(d,h,e.time/e.timescale);return g.Observable.of({segmentData:e,currentSegment:l,nextSegments:f})}},image:{loader:function(b){var c=b.segment;b=b.representation;if(c.isInit)return g.Observable.empty();var d=a.i(n.b)(b.baseURL),c=h(d,b,c);return a.i(m.a)({url:c,responseType:"arraybuffer",createXHR:t})},parser:function(b){var c=new Uint8Array(b.response.responseData),d=b=void 0;c&&
(c=a.i(u.a)(c),b=c.thumbs,d=c.timescale);return g.Observable.of({segmentData:b,currentSegment:{ts:0,d:Infinity},timescale:d})}}}}},function(b,e,a){function f(b,c){var d=c.length+8,e=a.i(m.h),d=a.i(m.i)(d),f;u[b]?f=u[b]:(f=a.i(m.b)(b),u[b]=f);return e(d,f,c)}function d(b,c,d,e,f){for(var g=b.length,h=0,k;h<g;){k=a.i(m.e)(b,h);if(1970628964===a.i(m.e)(b,h+4)&&a.i(m.e)(b,h+8)===c&&a.i(m.e)(b,h+12)===d&&a.i(m.e)(b,h+16)===e&&a.i(m.e)(b,h+20)===f)return b.subarray(h+24,h+k);h+=k}}function c(b,c){for(var d=
b.length,e=0,f,g=void 0;e+8<d&&(g=a.i(m.e)(b,e),f=a.i(m.e)(b,e+4),a.i(l.a)(0<g,"smooth: out of range size"),f!==c);)e+=g;return e<d?b.subarray(e+8,e+g):null}function h(a,b,c,d){var e=[a,b,c];d.forEach(function(a){a=q.pssh(a.systemId,a.privateData,a.keyIds);e.push(a)});return e}function g(b,c,d,e){var f=b.length,g=c.length;d=d.length;b=b.subarray(d,f);f=new Uint8Array(g+(f-d));f.set(c,0);f.set(b,g);c=c.length+8;f.set(a.i(m.i)(c),e+16);return f}function k(b,c,d,e,g,k,l){d=q.mult("stbl",[d,f("stts",
new Uint8Array(8)),f("stsc",new Uint8Array(8)),f("stsz",new Uint8Array(12)),f("stco",new Uint8Array(8))]);var n=f("url ",new Uint8Array([0,0,0,1])),n=q.dref(n),n=q.mult("dinf",[n]);e=q.mult("minf",[e,n,d]);c=q.hdlr(c);d=q.mdhd(b);c=q.mult("mdia",[d,c,e]);g=q.tkhd(g,k,1);g=q.mult("trak",[g,c]);k=q.trex(1);k=q.mult("mvex",[k]);b=q.mvhd(b,1);l=q.mult("moov",h(b,k,g,l));b=q.ftyp("isom",["isom","iso2","iso6","avc1","dash"]);return a.i(m.h)(b,l)}var l=a(9),n=a(42),m=a(43),p=[96E3,88200,64E3,48E3,44100,
32E3,24E3,22050,16E3,12E3,11025,8E3,7350],u={},q={mult:function(a,b){return f(a,m.h.apply(null,b))},avc1encv:function(b,c,d,e,g,h,k,l,n,p){return f(b,a.i(m.h)(6,a.i(m.m)(c),16,a.i(m.m)(d),a.i(m.m)(e),a.i(m.m)(g),2,a.i(m.m)(h),6,[0,1,k.length],a.i(m.b)(k),31-k.length,a.i(m.m)(l),[255,255],n,"encv"===b?p:[]))},avcc:function(b,c,d){d=2===d?1:4===d?3:0;var e=b[1],g=b[2],h=b[3];return f("avcC",a.i(m.h)([1,e,g,h,252|d,225],a.i(m.m)(b.length),b,[1],a.i(m.m)(c.length),c))},dref:function(b){return f("dref",
a.i(m.h)(7,[1],b))},esds:function(b,c){return f("esds",a.i(m.h)(4,[3,25],a.i(m.m)(b),[0,4,17,64,21],11,[5,2],a.i(m.j)(c),[6,1,2]))},frma:function(b){return f("frma",a.i(m.b)(b))},free:function(a){return f("free",new Uint8Array(a-8))},ftyp:function(b,c){return f("ftyp",m.h.apply(null,[a.i(m.b)(b),[0,0,0,1]].concat(c.map(m.b))))},hdlr:function(b){var c;switch(b){case "video":b="vide";c="VideoHandler";break;case "audio":b="soun";c="SoundHandler";break;default:b="hint",c=""}return f("hdlr",a.i(m.h)(8,
a.i(m.b)(b),12,a.i(m.b)(c),1))},mdhd:function(b){return f("mdhd",a.i(m.h)(12,a.i(m.i)(b),8))},moof:function(a,b){return q.mult("moof",[a,b])},mp4aenca:function(b,c,d,e,g,h,k,l){return f(b,a.i(m.h)(6,a.i(m.m)(c),8,a.i(m.m)(d),a.i(m.m)(e),2,a.i(m.m)(g),a.i(m.m)(h),2,k,"enca"===b?l:[]))},mvhd:function(b,c){return f("mvhd",a.i(m.h)(12,a.i(m.i)(b),4,[0,1],2,[1,0],10,[0,1],14,[0,1],14,[64,0,0,0],26,a.i(m.m)(c+1)))},pssh:function(b){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],d=2<arguments.length&&
void 0!==arguments[2]?arguments[2]:[];b=b.replace(/-/g,"");a.i(l.a)(32===b.length,"wrong system id length");var e,g=d.length;0<g?(e=1,d=m.h.apply(null,[a.i(m.i)(g)].concat(d))):(e=0,d=[]);return f("pssh",a.i(m.h)([e,0,0,0],a.i(m.j)(b),d,a.i(m.i)(c.length),c))},saio:function(b,c,d,e){return f("saio",a.i(m.h)(4,[0,0,0,1],a.i(m.i)(b.length+c.length+d.length+e.length+8+8+8+8)))},saiz:function(b){if(0===b.length)return f("saiz",new Uint8Array);var c=a.i(m.e)(b,0),d=a.i(m.e)(b,4),e=new Uint8Array(9+d);
e.set(a.i(m.i)(d),5);for(var d=9,g=8,h,k;g<b.length;)g+=8,2===(c&2)?(k=2,h=a.i(m.g)(b,g),g+=2+6*h):k=h=0,e[d]=6*h+8+k,d++;return f("saiz",e)},schm:function(b,c){return f("schm",a.i(m.h)(4,a.i(m.b)(b),a.i(m.i)(c)))},senc:function(a){return f("senc",a)},smhd:function(){return f("smhd",new Uint8Array(8))},stsd:function(a){return f("stsd",m.h.apply(null,[7,[a.length]].concat(a)))},tkhd:function(b,c,d){return f("tkhd",a.i(m.h)(a.i(m.i)(7),8,a.i(m.i)(d),20,[1,0,0,0],[0,1,0,0],12,[0,1,0,0],12,[64,0,0,0],
a.i(m.m)(b),2,a.i(m.m)(c),2))},trex:function(b){return f("trex",a.i(m.h)(4,a.i(m.i)(b),[0,0,0,1],12))},tfdt:function(b){return f("tfdt",a.i(m.h)([1,0,0,0],a.i(m.n)(b)))},tenc:function(b,c,d){return f("tenc",a.i(m.h)(6,[b,c],a.i(m.j)(d)))},traf:function(a,b,c,d,e){var f=[a,b,c];d&&f.push(q.senc(d),q.saiz(d),q.saio(e,a,b,c));return q.mult("traf",f)},trun:function(b){if(b[11]&1)return b;var c=new Uint8Array(b.length+4);c.set(a.i(m.i)(b.length+4),0);c.set(b.subarray(4,16),4);c[11]|=1;c.set([0,0,0,0],
16);c.set(b.subarray(16,b.length),20);return c},vmhd:function(){var a=new Uint8Array(12);a[3]=1;return f("vmhd",a)}},t={traf:function(a){return(a=c(a,1836019558))?c(a,1953653094):null},senc:function(a){return d(a,2721664850,1520127764,2722393154,2086964724)},tfxd:function(a){return d(a,1830656773,1121273062,2162299933,2952222642)},tfrf:function(a){return d(a,3565190898,3392751253,2387879627,2655430559)},mdat:function(a){return c(a,1835295092)}};e.a={getMdat:t.mdat,getTraf:t.traf,parseTfrf:function(b){b=
t.tfrf(b);if(!b)return[];for(var c=[],d=b[0],e=b[4],f=0;f<e;f++){var g,h;1==d?(h=a.i(m.f)(b,16*f+5),g=a.i(m.f)(b,16*f+13)):(h=a.i(m.e)(b,8*f+5),g=a.i(m.e)(b,8*f+9));c.push({ts:h,d:g})}return c},parseTfxd:function(b){if(b=t.tfxd(b))return{d:a.i(m.f)(b,12),ts:a.i(m.f)(b,4)}},createVideoInitSegment:function(b,c,d,e,f,g,h,l,n){n||(n=[]);var p=h.split("00000001");h=p[1];p=p[2];h=a.i(m.j)(h);p=a.i(m.j)(p);g=q.avcc(h,p,g);n.length?(l=q.tenc(1,8,l),l=q.mult("schi",[l]),h=q.schm("cenc",65536),p=q.frma("avc1"),
l=q.mult("sinf",[p,h,l]),e=q.avc1encv("encv",1,c,d,e,f,"AVC Coding",24,g,l)):e=q.avc1encv("avc1",1,c,d,e,f,"AVC Coding",24,g);e=q.stsd([e]);return k(b,"video",e,q.vmhd(),c,d,n)},createAudioInitSegment:function(b,c,d,e,f,g,h,l){l||(l=[]);g||(g=(32|p.indexOf(f)&31)<<4,g=(g|c&31)<<3,g=a.i(m.o)(a.i(m.m)(g)));g=q.esds(1,g);if(l.length){h=q.tenc(1,8,h);h=q.mult("schi",[h]);var n=q.schm("cenc",65536),u=q.frma("mp4a");h=q.mult("sinf",[u,n,h]);c=q.mp4aenca("enca",1,c,d,e,f,g,h)}else c=q.mp4aenca("mp4a",1,
c,d,e,f,g);c=q.stsd([c]);return k(b,"audio",c,q.smhd(),0,0,l)},patchSegment:function(b,c){var d=b.subarray(0,a.i(m.e)(b,0)),e=q.tfdt(c),f=e.length,h=a.i(m.e)(d,8),k=a.i(m.e)(d,8+h),l=a.i(m.e)(d,8+h+8),p=a.i(m.e)(d,8+h+8+l),u=d.subarray(8,8+h),r=d.subarray(8+h+8,8+h+8+k-8),k=r.subarray(0,l),p=r.subarray(l,l+p);k.set([0,0,0,1],12);r=t.senc(r);p=q.trun(p);e=q.traf(k,e,p,r,u);u=q.moof(u,e);f=8+h+8+l+f;return n.t?g(b,u,d,f):8<=d.length-u.length?(d=d.length-u.length,b.set(u,0),b.set(q.free(d),u.length),
d=u.length+8+d,b.set(a.i(m.i)(d),f+16),b):g(b,u,d,f)}}},function(b,e,a){function f(a){return"boolean"==typeof a?a:"string"==typeof a?"TRUE"===a.toUpperCase():!1}function d(a){if(!a)return Infinity;a=a.index;var b=a.timeline[a.timeline.length-1];return(b.ts+(b.r+1)*b.d)/a.timescale}function c(b){return[{systemId:"edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",privateData:a.i(g.h)([8,1,18,16],b)}]}var h=a(66),g=a(43),k=a(9),l=a(67),n={audio:"audio/mp4",video:"video/mp4",text:"application/ttml+xml"},m={audio:"mp4a.40.2",
video:"avc1.4D401E"};b={AACL:"audio/mp4",AVC1:"video/mp4",H264:"video/mp4",TTML:"application/ttml+xml+mp4"};var p={audio:[["Bitrate","bitrate",parseInt],["AudioTag","audiotag",parseInt],["FourCC","mimeType",b],["Channels","channels",parseInt],["SamplingRate","samplingRate",parseInt],["BitsPerSample","bitsPerSample",parseInt],["PacketSize","packetSize",parseInt],["CodecPrivateData","codecPrivateData",String]],video:[["Bitrate","bitrate",parseInt],["FourCC","mimeType",b],["CodecPrivateData","codecs",
function(a){return(a=(/00000001\d7([0-9a-fA-F]{6})/.exec(a)||[])[1])?"avc1."+a:""}],["MaxWidth","width",parseInt],["MaxHeight","height",parseInt],["CodecPrivateData","codecPrivateData",String]],text:[["Bitrate","bitrate",parseInt],["FourCC","mimeType",b]]};e.a=function(){function b(a,b,c){for(a=a.firstElementChild;a;)c=b(c,a.nodeName,a),a=a.nextElementSibling;return c}function e(c,d){c.hasAttribute("Timescale")&&(d=+c.getAttribute("Timescale"));var e=c.getAttribute("Type"),f=c.getAttribute("Subtype"),
g=c.getAttribute("Name"),h=a.i(l.c)(c.getAttribute("Language")),u=c.getAttribute("Url"),q=p[e],t=[];a.i(k.a)(q,"unrecognized QualityLevel type "+e);var r=0,v=b(c,function(a,b,c){switch(b){case "QualityLevel":b={};for(var d=0;d<q.length;d++){var f=q[d],g=f[0],h=f[2];b[f[1]]="function"==typeof h?h(c.getAttribute(g)):h[c.getAttribute(g)]}"audio"==e&&(c=c.getAttribute("FourCC")||"",d=b.codecPrivateData,c="AACH"==c?5:d?(parseInt(d.substr(0,2),16)&248)>>3:2,b.codecs=c?"mp4a.40."+c:"");if("video"!=e||b.bitrate>
B)b.id=r++,a.representations.push(b);break;case "c":b=a.index;var d=a.index.timeline,f=d.length,g=0<f?d[f-1]:{d:0,ts:0,r:0},h=+c.getAttribute("d"),k=c.getAttribute("t");(c=+c.getAttribute("r"))&&c--;0<f&&!g.d&&(g.d=k-g.ts,d[f-1]=g);0<f&&h==g.d&&null==k?g.r+=(c||0)+1:d.push({d:h,ts:null==k?g.ts+g.d*(g.r+1):+k,r:c});b.timeline=d}return a},{representations:[],index:{timeline:[],indexType:"smooth",timescale:d,initialization:{}}}),C=v.representations,v=v.index;a.i(k.a)(C.length,"adaptation should have at least one representation");
C.forEach(function(a){return a.codecs=a.codecs||m[e]});C.forEach(function(a){return a.mimeType=a.mimeType||n[e]});if("ADVT"==f)return null;"text"===e&&"DESC"===f&&t.push("hardOfHearing");return{type:e,accessibility:t,index:v,representations:C,name:g,language:h,baseURL:u}}function t(a){return v((new DOMParser).parseFromString(a,"application/xml"))}function v(c){c=c.documentElement;k.a.equal(c.nodeName,"SmoothStreamingMedia","document root should be SmoothStreamingMedia");a.i(k.a)(/^[2]-[0-2]$/.test(c.getAttribute("MajorVersion")+
"-"+c.getAttribute("MinorVersion")),"Version should be 2.0, 2.1 or 2.2");var l=+c.getAttribute("Timescale")||1E7,m=[],n=b(c,function(b,c,d){switch(c){case "Protection":d=d.firstElementChild;k.a.equal(d.nodeName,"ProtectionHeader","Protection should have ProtectionHeader child");c=a.i(g.b)(atob(d.textContent));var f;f=a.i(g.d)(c,8);f=a.i(g.k)(c.subarray(10,10+f));f=(new DOMParser).parseFromString(f,"application/xml").querySelector("KID").textContent;f=a.i(g.l)(atob(f)).toLowerCase();var n=a.i(g.j)(f);
d=d.getAttribute("SystemID").toLowerCase().replace(/\{|\}/g,"");c={keyId:f,keySystems:[{systemId:d,privateData:c}].concat(A(n))};b.protection=c;break;case "StreamIndex":if(c=e(d,l)){d=0;do f=c.type+"_"+(c.language?c.language+"_":"")+d++;while(a.i(h.a)(m,f));c.id=f;m.push(f);b.adaptations.push(c)}}return b},{protection:null,adaptations:[]}),p=n.protection,n=n.adaptations;n.forEach(function(a){return a.smoothProtection=p});var q=void 0,u=void 0,t=void 0,r=void 0,v=f(c.getAttribute("IsLive"));if(v)var q=
x,t=+c.getAttribute("DVRWindowLength")/l,r=y,u=n.filter(function(a){return"video"==a.type})[0],w=n.filter(function(a){return"audio"==a.type})[0],u=Math.min(d(u),d(w)),u=Date.now()/1E3-(u+r);return{transportType:"smooth",profiles:"",type:v?"dynamic":"static",suggestedPresentationDelay:q,timeShiftBufferDepth:t,presentationLiveGap:u,availabilityStartTime:r,periods:[{duration:(+c.getAttribute("Duration")||Infinity)/l,adaptations:n,laFragCount:+c.getAttribute("LookAheadFragmentCount")}]}}function r(a){return"string"==
typeof a?t(a):v(a)}var w=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},x=w.suggestedPresentationDelay||20,y=w.referenceDateTime||Date.UTC(1970,0,1,0,0,0,0)/1E3,B=w.minRepresentationBitrate||19E4,A=w.keySystems||c;r.parseFromString=t;r.parseFromDocument=v;return r}},function(b,e,a){function f(a){return a*Math.pow(2,(1<arguments.length&&void 0!==arguments[1]?arguments[1]:1)-1)*(1+(2*Math.random()-1)*d)}a.d(e,"a",function(){return f});var d=.3},function(b,e,a){a.d(e,"a",function(){return f});
var f=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.hash={}}a.prototype.add=function(a){this.hash[a]=!0};a.prototype.remove=function(a){delete this.hash[a]};a.prototype.test=function(a){return!0===this.hash[a]};return a}()},function(b,e,a){function f(a){return null==a?"":String(a).replace(m,function(a){return p[a]})}function d(b){var c=b.getAverageBitrates(),d=void 0,e=void 0;c.video.take(1).subscribe(function(a){return e=a|0});c.audio.take(1).subscribe(function(a){return d=
a|0});return{manifest:b._manifest,version:b.version,timeFragment:b.frag,currentTime:b.getCurrentTime(),state:b.getPlayerState(),buffer:a.i(k.b)(b.video.buffered),volume:b.getVolume(),video:{adaptation:b.adas.video,representation:b.reps.video,maxBitrate:b.getVideoMaxBitrate(),bufferSize:b.getVideoBufferSize(),avrBitrate:e},audio:{adaptation:b.adas.audio,representation:b.reps.audio,maxBitrate:b.getAudioMaxBitrate(),bufferSize:b.getAudioBufferSize(),avrBitrate:d}}}function c(a,b){var c=b.parentNode.querySelector("#cp--debug-infos-content");
if(c){var e=void 0;try{e=d(a)}catch(y){return}var g=e,h=g.video,k=g.audio,g=g.manifest,e="<b>Player v"+e.version+"</b> ("+e.state+")<br>";g&&h&&k&&(e+=["Container: "+f(g.transport),"Live: "+f(""+g.isLive),"Downloading bitrate (Kbit/s):\n "+(h.representation.bitrate/1E3).toFixed(3)+"/"+(k.representation.bitrate/1E3).toFixed(3),"Estimated bandwidth (Kbit/s):\n "+(h.avrBitrate/1E3).toFixed(3)+"/"+(k.avrBitrate/1E3).toFixed(3),"Location: "+g.uris[0]].join("<br>"));c.innerHTML=e}}function h(a,
b){var d="<style>\n#cp--debug-infos {\n position: absolute;\n top: "+f(b.offsetTop+10)+"px;\n left: "+f(b.offsetLeft+10)+'px;\n width: 500px;\n height: 300px;\n background-color: rgba(10, 10, 10, 0.83);\n overflow: hidden;\n color: white;\n text-align: left;\n padding: 2em;\n box-sizing: border-box;\n}\n#cp--debug-hide-infos {\n float: right;\n cursor: pointer;\n}\n</style>\n<div id="cp--debug-infos">\n <a id="cp--debug-hide-infos">[x]</a>\n <p id="cp--debug-infos-content"></p>\n</div>',
e=b.parentNode,h=e.querySelector("#cp--debug-infos-container");h||(h=document.createElement("div"),h.setAttribute("id","cp--debug-infos-container"),e.appendChild(h));h.innerHTML=d;n||(n=e.querySelector("#cp--debug-hide-infos"),n.addEventListener("click",function(){return g(b)}));l&&clearInterval(l);l=setInterval(function(){return c(a,b)},1E3);c(a,b)}function g(a){(a=a.parentNode.querySelector("#cp--debug-infos-container"))&&a.parentNode.removeChild(a);l&&(clearInterval(l),l=null);n&&(n.removeEventListener("click",
g),n=null)}var k=a(64),l=void 0,n=void 0,m=/[&<>"']/g,p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};e.a={getDebug:d,showDebug:h,hideDebug:g,toggleDebug:function(a,b){b.parentNode.querySelector("#cp--debug-infos-container")?g(b):h(a,b)}}},function(b,e,a){var f=a(66),d=[];e.a=function(b){a.i(f.a)(d,b)||(console.warn(b),d.push(b))}},function(b,e,a){(function(b){function d(a,b,d){a[b]||Object.defineProperty(a,b,{writable:!0,configurable:!0,value:d})}a(402);a(403);a(222);if(b._babelPolyfill)throw Error("only one instance of babel-polyfill is allowed");
b._babelPolyfill=!0;d(String.prototype,"padLeft","".padStart);d(String.prototype,"padRight","".padEnd);"pop reverse shift keys values entries indexOf every some forEach map filter find findIndex includes join slice concat push splice unshift sort lastIndexOf reduce reduceRight copyWithin fill".split(" ").forEach(function(a){[][a]&&d(Array,a,Function.call.bind([][a]))})}).call(e,a(127))},function(b,e,a){a(231);b.exports=a(28).RegExp.escape},function(b,e,a){var f=a(5),d=a(100),c=a(6)("species");b.exports=
function(a){var b;d(a)&&(b=a.constructor,"function"!=typeof b||b!==Array&&!d(b.prototype)||(b=void 0),f(b)&&(b=b[c],null===b&&(b=void 0)));return void 0===b?Array:b}},function(b,e,a){var f=a(223);b.exports=function(a,b){return new (f(a))(b)}},function(b,e,a){var f=a(2),d=a(26);b.exports=function(a){if("string"!==a&&"number"!==a&&"default"!==a)throw TypeError("Incorrect hint");return d(f(this),"number"!=a)}},function(b,e,a){var f=a(49),d=a(83),c=a(70);b.exports=function(a){var b=f(a),e=d.f;if(e)for(var e=
e(a),h=c.f,n=0,m;e.length>n;)h.call(a,m=e[n++])&&b.push(m);return b}},function(b,e,a){var f=a(49),d=a(18);b.exports=function(a,b){for(var c=d(a),e=f(c),h=e.length,n=0,m;h>n;)if(c[m=e[n++]]===b)return m}},function(b,e,a){var f=a(229),d=a(79),c=a(14);b.exports=function(){for(var a=c(this),b=arguments.length,e=Array(b),l=0,n=f._,m=!1;b>l;)(e[l]=arguments[l++])===n&&(m=!0);return function(){var c=arguments.length,f=0,g=0,h;if(!m&&!c)return d(a,e,this);h=e.slice();if(m)for(;b>f;f++)h[f]===n&&(h[f]=arguments[g++]);
for(;c>g;)h.push(arguments[g++]);return d(a,h,this)}}},function(b,e,a){b.exports=a(3)},function(b,e){b.exports=function(a,b){var d=b===Object(b)?function(a){return b[a]}:b;return function(b){return String(b).replace(a,d)}}},function(b,e,a){b=a(0);var f=a(230)(/[\\^$*+?.()|[\]{}]/g,"\\$&");b(b.S,"RegExp",{escape:function(a){return f(a)}})},function(b,e,a){b=a(0);b(b.P,"Array",{copyWithin:a(137)});a(57)("copyWithin")},function(b,e,a){b=a(0);var f=a(24)(4);b(b.P+b.F*!a(23)([].every,!0),"Array",{every:function(a,
b){return f(this,a,b)}})},function(b,e,a){b=a(0);b(b.P,"Array",{fill:a(92)});a(57)("fill")},function(b,e,a){b=a(0);var f=a(24)(2);b(b.P+b.F*!a(23)([].filter,!0),"Array",{filter:function(a,b){return f(this,a,b)}})},function(b,e,a){b=a(0);var f=a(24)(6),d=!0;"findIndex"in[]&&Array(1).findIndex(function(){d=!1});b(b.P+b.F*d,"Array",{findIndex:function(a){return f(this,a,1<arguments.length?arguments[1]:void 0)}});a(57)("findIndex")},function(b,e,a){b=a(0);var f=a(24)(5),d=!0;"find"in[]&&Array(1).find(function(){d=
!1});b(b.P+b.F*d,"Array",{find:function(a){return f(this,a,1<arguments.length?arguments[1]:void 0)}});a(57)("find")},function(b,e,a){b=a(0);var f=a(24)(0);a=a(23)([].forEach,!0);b(b.P+b.F*!a,"Array",{forEach:function(a,b){return f(this,a,b)}})},function(b,e,a){var f=a(29);b=a(0);var d=a(12),c=a(146),h=a(99),g=a(11),k=a(93),l=a(116);b(b.S+b.F*!a(81)(function(a){Array.from(a)}),"Array",{from:function(a){var b=d(a),e="function"==typeof this?this:Array,n=arguments.length,q=1<n?arguments[1]:void 0,t=void 0!==
q,v=0,r=l(b);t&&(q=f(q,2<n?arguments[2]:void 0,2));if(void 0==r||e==Array&&h(r))for(n=g(b.length),e=new e(n);n>v;v++)k(e,v,t?q(b[v],v):b[v]);else for(b=r.call(b),e=new e;!(n=b.next()).done;v++)k(e,v,t?c(b,q,[n.value,v],!0):n.value);e.length=v;return e}})},function(b,e,a){b=a(0);var f=a(75)(!1),d=[].indexOf,c=!!d&&0>1/[1].indexOf(1,-0);b(b.P+b.F*(c||!a(23)(d)),"Array",{indexOf:function(a){return c?d.apply(this,arguments)||0:f(this,a,arguments[1])}})},function(b,e,a){b=a(0);b(b.S,"Array",{isArray:a(100)})},
function(b,e,a){b=a(0);var f=a(18),d=[].join;b(b.P+b.F*(a(69)!=Object||!a(23)(d)),"Array",{join:function(a){return d.call(f(this),void 0===a?",":a)}})},function(b,e,a){b=a(0);var f=a(18),d=a(37),c=a(11),h=[].lastIndexOf,g=!!h&&0>1/[1].lastIndexOf(1,-0);b(b.P+b.F*(g||!a(23)(h)),"Array",{lastIndexOf:function(a){if(g)return h.apply(this,arguments)||0;var b=f(this),e=c(b.length),k=e-1;1<arguments.length&&(k=Math.min(k,d(arguments[1])));for(0>k&&(k=e+k);0<=k;k--)if(k in b&&b[k]===a)return k||0;return-1}})},
function(b,e,a){b=a(0);var f=a(24)(1);b(b.P+b.F*!a(23)([].map,!0),"Array",{map:function(a,b){return f(this,a,b)}})},function(b,e,a){b=a(0);var f=a(93);b(b.S+b.F*a(4)(function(){function a(){}return!(Array.of.call(a)instanceof a)}),"Array",{of:function(){for(var a=0,b=arguments.length,e=new ("function"==typeof this?this:Array)(b);b>a;)f(e,a,arguments[a++]);e.length=b;return e}})},function(b,e,a){b=a(0);var f=a(139);b(b.P+b.F*!a(23)([].reduceRight,!0),"Array",{reduceRight:function(a){return f(this,
a,arguments.length,arguments[1],!0)}})},function(b,e,a){b=a(0);var f=a(139);b(b.P+b.F*!a(23)([].reduce,!0),"Array",{reduce:function(a){return f(this,a,arguments.length,arguments[1],!1)}})},function(b,e,a){b=a(0);var f=a(97),d=a(21),c=a(52),h=a(11),g=[].slice;b(b.P+b.F*a(4)(function(){f&&g.call(f)}),"Array",{slice:function(a,b){var e=h(this.length),f=d(this);b=void 0===b?e:b;if("Array"==f)return g.call(this,a,b);for(var k=c(a,e),e=c(b,e),e=h(e-k),l=Array(e),q=0;q<e;q++)l[q]="String"==f?this.charAt(k+
q):this[k+q];return l}})},function(b,e,a){b=a(0);var f=a(24)(3);b(b.P+b.F*!a(23)([].some,!0),"Array",{some:function(a,b){return f(this,a,b)}})},function(b,e,a){b=a(0);var f=a(14),d=a(12);e=a(4);var c=[].sort,h=[1,2,3];b(b.P+b.F*(e(function(){h.sort(void 0)})||!e(function(){h.sort(null)})||!a(23)(c)),"Array",{sort:function(a){return void 0===a?c.call(d(this)):c.call(d(this),f(a))}})},function(b,e,a){a(51)("Array")},function(b,e,a){b=a(0);b(b.S,"Date",{now:function(){return(new Date).getTime()}})},
function(b,e,a){b=a(0);a=a(4);var f=Date.prototype.getTime,d=function(a){return 9<a?a:"0"+a};b(b.P+b.F*(a(function(){return"0385-07-25T07:06:39.999Z"!=(new Date(-5E13-1)).toISOString()})||!a(function(){(new Date(NaN)).toISOString()})),"Date",{toISOString:function(){if(!isFinite(f.call(this)))throw RangeError("Invalid time value");var a=this.getUTCFullYear(),b=this.getUTCMilliseconds(),e=0>a?"-":9999<a?"+":"";return e+("00000"+Math.abs(a)).slice(e?-6:-4)+"-"+d(this.getUTCMonth()+1)+"-"+d(this.getUTCDate())+
"T"+d(this.getUTCHours())+":"+d(this.getUTCMinutes())+":"+d(this.getUTCSeconds())+"."+(99<b?b:"0"+d(b))+"Z"}})},function(b,e,a){b=a(0);var f=a(12),d=a(26);b(b.P+b.F*a(4)(function(){return null!==(new Date(NaN)).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(a){a=f(this);var b=d(a);return"number"!=typeof b||isFinite(b)?a.toISOString():null}})},function(b,e,a){b=a(6)("toPrimitive");e=Date.prototype;b in e||a(15)(e,b,a(225))},function(b,e,a){b=
Date.prototype;var f=b.toString,d=b.getTime;"Invalid Date"!=new Date(NaN)+""&&a(16)(b,"toString",function(){var a=d.call(this);return a===a?f.call(this):"Invalid Date"})},function(b,e,a){b=a(0);b(b.P,"Function",{bind:a(140)})},function(b,e,a){var f=a(5),d=a(20);b=a(6)("hasInstance");e=Function.prototype;b in e||a(8).f(e,b,{value:function(a){if("function"!=typeof this||!f(a))return!1;if(!f(this.prototype))return a instanceof this;for(;a=d(a);)if(this.prototype===a)return!0;return!1}})},function(b,
e,a){var f=a(8).f,d=a(36),c=a(13);b=Function.prototype;var h=/^\s*function ([^ (]*)/,g=Object.isExtensible||function(){return!0};"name"in b||a(7)&&f(b,"name",{configurable:!0,get:function(){try{var a=(""+this).match(h)[1];c(this,"name")||!g(this)||f(this,"name",d(5,a));return a}catch(l){return""}}})},function(b,e,a){b=a(0);var f=a(148),d=Math.sqrt;a=Math.acosh;b(b.S+b.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&Infinity==a(Infinity)),"Math",{acosh:function(a){return 1>(a=+a)?NaN:9.490626562425156E7<
a?Math.log(a)+Math.LN2:f(a-1+d(a-1)*d(a+1))}})},function(b,e,a){function f(a){return isFinite(a=+a)&&0!=a?0>a?-f(-a):Math.log(a+Math.sqrt(a*a+1)):a}b=a(0);e=Math.asinh;b(b.S+b.F*!(e&&0<1/e(0)),"Math",{asinh:f})},function(b,e,a){b=a(0);e=Math.atanh;b(b.S+b.F*!(e&&0>1/e(-0)),"Math",{atanh:function(a){return 0==(a=+a)?a:Math.log((1+a)/(1-a))/2}})},function(b,e,a){b=a(0);var f=a(104);b(b.S,"Math",{cbrt:function(a){return f(a=+a)*Math.pow(Math.abs(a),1/3)}})},function(b,e,a){b=a(0);b(b.S,"Math",{clz32:function(a){return(a>>>=
0)?31-Math.floor(Math.log(a+.5)*Math.LOG2E):32}})},function(b,e,a){b=a(0);var f=Math.exp;b(b.S,"Math",{cosh:function(a){return(f(a=+a)+f(-a))/2}})},function(b,e,a){b=a(0);a=a(103);b(b.S+b.F*(a!=Math.expm1),"Math",{expm1:a})},function(b,e,a){b=a(0);var f=a(104);a=Math.pow;var d=a(2,-52),c=a(2,-23),h=a(2,127)*(2-c),g=a(2,-126);b(b.S,"Math",{fround:function(a){var b=Math.abs(a);a=f(a);var e;if(b<g)return a*(b/g/c+1/d-1/d)*g*c;e=(1+c/d)*b;b=e-(e-b);return b>h||b!=b?Infinity*a:a*b}})},function(b,e,a){b=
a(0);var f=Math.abs;b(b.S,"Math",{hypot:function(a,b){for(var c=0,d=0,e=arguments.length,l=0,n,m;d<e;)n=f(arguments[d++]),l<n?(m=l/n,c=c*m*m+1,l=n):0<n?(m=n/l,c+=m*m):c+=n;return Infinity===l?Infinity:l*Math.sqrt(c)}})},function(b,e,a){b=a(0);var f=Math.imul;b(b.S+b.F*a(4)(function(){return-5!=f(4294967295,5)||2!=f.length}),"Math",{imul:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d;return 0|e*f+((65535&c>>>16)*f+e*(65535&d>>>16)<<16>>>0)}})},function(b,e,a){b=a(0);b(b.S,"Math",{log10:function(a){return Math.log(a)/
Math.LN10}})},function(b,e,a){b=a(0);b(b.S,"Math",{log1p:a(148)})},function(b,e,a){b=a(0);b(b.S,"Math",{log2:function(a){return Math.log(a)/Math.LN2}})},function(b,e,a){b=a(0);b(b.S,"Math",{sign:a(104)})},function(b,e,a){b=a(0);var f=a(103),d=Math.exp;b(b.S+b.F*a(4)(function(){return-2E-17!=!Math.sinh(-2E-17)}),"Math",{sinh:function(a){return 1>Math.abs(a=+a)?(f(a)-f(-a))/2:(d(a-1)-d(-a-1))*(Math.E/2)}})},function(b,e,a){b=a(0);var f=a(103),d=Math.exp;b(b.S,"Math",{tanh:function(a){var b=f(a=+a),
c=f(-a);return Infinity==b?1:Infinity==c?-1:(b-c)/(d(a)+d(-a))}})},function(b,e,a){b=a(0);b(b.S,"Math",{trunc:function(a){return(0<a?Math.floor:Math.ceil)(a)}})},function(b,e,a){b=a(3);e=a(13);var f=a(21),d=a(98),c=a(26),h=a(4),g=a(48).f,k=a(19).f,l=a(8).f,n=a(61).trim,m=b.Number,p=m,u=m.prototype,q="Number"==f(a(47)(u)),t="trim"in String.prototype,v=function(a){var b=c(a,!1);if("string"==typeof b&&2<b.length){b=t?b.trim():n(b,3);a=b.charCodeAt(0);var d;if(43===a||45===a){if(a=b.charCodeAt(2),88===
a||120===a)return NaN}else if(48===a){switch(b.charCodeAt(1)){case 66:case 98:a=2;d=49;break;case 79:case 111:a=8;d=55;break;default:return+b}for(var b=b.slice(2),e=0,f=b.length,g;e<f;e++)if(g=b.charCodeAt(e),48>g||g>d)return NaN;return parseInt(b,a)}}return+b};if(!m(" 0o1")||!m("0b1")||m("+0x1")){for(var m=function(a){var b=1>arguments.length?0:a,c=this;return c instanceof m&&(q?h(function(){u.valueOf.call(c)}):"Number"!=f(c))?d(new p(v(b)),c,m):v(b)},g=a(7)?g(p):"MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY EPSILON isFinite isInteger isNaN isSafeInteger MAX_SAFE_INTEGER MIN_SAFE_INTEGER parseFloat parseInt isInteger".split(" "),
r=0,w;g.length>r;r++)e(p,w=g[r])&&!e(m,w)&&l(m,w,k(p,w));m.prototype=u;u.constructor=m;a(16)(b,"Number",m)}},function(b,e,a){b=a(0);b(b.S,"Number",{EPSILON:Math.pow(2,-52)})},function(b,e,a){b=a(0);var f=a(3).isFinite;b(b.S,"Number",{isFinite:function(a){return"number"==typeof a&&f(a)}})},function(b,e,a){b=a(0);b(b.S,"Number",{isInteger:a(145)})},function(b,e,a){b=a(0);b(b.S,"Number",{isNaN:function(a){return a!=a}})},function(b,e,a){b=a(0);var f=a(145),d=Math.abs;b(b.S,"Number",{isSafeInteger:function(a){return f(a)&&
9007199254740991>=d(a)}})},function(b,e,a){b=a(0);b(b.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(b,e,a){b=a(0);b(b.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(b,e,a){b=a(0);a=a(155);b(b.S+b.F*(Number.parseFloat!=a),"Number",{parseFloat:a})},function(b,e,a){b=a(0);a=a(156);b(b.S+b.F*(Number.parseInt!=a),"Number",{parseInt:a})},function(b,e,a){b=a(0);var f=a(37),d=a(136),c=a(111),h=(1).toFixed,g=Math.floor,k=[0,0,0,0,0,0],l=function(a,b){for(var c=-1,d=b;6>++c;)d+=a*k[c],
k[c]=d%1E7,d=g(d/1E7)},n=function(a){for(var b=6,c=0;0<=--b;)c+=k[b],k[b]=g(c/a),c=c%a*1E7},m=function(){for(var a=6,b="";0<=--a;)if(""!==b||0===a||0!==k[a])var d=String(k[a]),b=""===b?d:b+c.call("0",7-d.length)+d;return b},p=function(a,b,c){return 0===b?c:1===b%2?p(a,b-1,c*a):p(a*a,b/2,c)};b(b.P+b.F*(!!h&&("0.000"!==(8E-5).toFixed(3)||"1"!==(.9).toFixed(0)||"1.25"!==(1.255).toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a(4)(function(){h.call({})})),"Number",{toFixed:function(a){var b=
d(this,"Number.toFixed: incorrect invocation!");a=f(a);var e="",g="0";if(0>a||20<a)throw RangeError("Number.toFixed: incorrect invocation!");if(b!=b)return"NaN";if(-1E21>=b||1E21<=b)return String(b);0>b&&(e="-",b=-b);if(1E-21<b){for(var g=0,h=b*p(2,69,1);4096<=h;)g+=12,h/=4096;for(;2<=h;)g+=1,h/=2;g-=69;b=0>g?b*p(2,-g,1):b/p(2,g,1);b*=4503599627370496;g=52-g;if(0<g){l(0,b);for(b=a;7<=b;)l(1E7,0),b-=7;l(p(10,b,1),0);for(b=g-1;23<=b;)n(8388608),b-=23;n(1<<b);l(1,1);n(2);g=m()}else l(0,b),l(1<<-g,0),
g=m()+c.call("0",a)}0<a?(b=g.length,g=e+(b<=a?"0."+c.call("0",a-b)+g:g.slice(0,b-a)+"."+g.slice(b-a))):g=e+g;return g}})},function(b,e,a){b=a(0);e=a(4);var f=a(136),d=(1).toPrecision;b(b.P+b.F*(e(function(){return"1"!==d.call(1,void 0)})||!e(function(){d.call({})})),"Number",{toPrecision:function(a){var b=f(this,"Number#toPrecision: incorrect invocation!");return void 0===a?d.call(b):d.call(b,a)}})},function(b,e,a){b=a(0);b(b.S+b.F,"Object",{assign:a(149)})},function(b,e,a){b=a(0);b(b.S,"Object",
{create:a(47)})},function(b,e,a){b=a(0);b(b.S+b.F*!a(7),"Object",{defineProperties:a(150)})},function(b,e,a){b=a(0);b(b.S+b.F*!a(7),"Object",{defineProperty:a(8).f})},function(b,e,a){var f=a(5),d=a(35).onFreeze;a(25)("freeze",function(a){return function(b){return a&&f(b)?a(d(b)):b}})},function(b,e,a){var f=a(18),d=a(19).f;a(25)("getOwnPropertyDescriptor",function(){return function(a,b){return d(f(a),b)}})},function(b,e,a){a(25)("getOwnPropertyNames",function(){return a(151).f})},function(b,e,a){var f=
a(12),d=a(20);a(25)("getPrototypeOf",function(){return function(a){return d(f(a))}})},function(b,e,a){var f=a(5);a(25)("isExtensible",function(a){return function(b){return f(b)?a?a(b):!0:!1}})},function(b,e,a){var f=a(5);a(25)("isFrozen",function(a){return function(b){return f(b)?a?a(b):!1:!0}})},function(b,e,a){var f=a(5);a(25)("isSealed",function(a){return function(b){return f(b)?a?a(b):!1:!0}})},function(b,e,a){b=a(0);b(b.S,"Object",{is:a(157)})},function(b,e,a){var f=a(12),d=a(49);a(25)("keys",
function(){return function(a){return d(f(a))}})},function(b,e,a){var f=a(5),d=a(35).onFreeze;a(25)("preventExtensions",function(a){return function(b){return a&&f(b)?a(d(b)):b}})},function(b,e,a){var f=a(5),d=a(35).onFreeze;a(25)("seal",function(a){return function(b){return a&&f(b)?a(d(b)):b}})},function(b,e,a){b=a(0);b(b.S,"Object",{setPrototypeOf:a(106).set})},function(b,e,a){var f=a(68);b={};b[a(6)("toStringTag")]="z";"[object z]"!=b+""&&a(16)(Object.prototype,"toString",function(){return"[object "+
f(this)+"]"},!0)},function(b,e,a){b=a(0);a=a(155);b(b.G+b.F*(parseFloat!=a),{parseFloat:a})},function(b,e,a){b=a(0);a=a(156);b(b.G+b.F*(parseInt!=a),{parseInt:a})},function(b,e,a){b=a(46);var f=a(3),d=a(29),c=a(68);e=a(0);var h=a(5),g=a(14),k=a(45),l=a(58),n=a(108),m=a(113).set,p=a(105)(),u=f.TypeError,q=f.process,t=f.Promise,q=f.process,v="process"==c(q),r=function(){},w,x,y,c=!!function(){try{var b=t.resolve(1),c=(b.constructor={})[a(6)("species")]=function(a){a(r,r)};return(v||"function"==typeof PromiseRejectionEvent)&&
b.then(r)instanceof c}catch(O){}}(),B=function(a){var b;return h(a)&&"function"==typeof(b=a.then)?b:!1},A=function(a){return t===a||t===t&&a===y?new F(a):new x(a)},F=x=function(a){var b,c;this.promise=new a(function(a,d){if(void 0!==b||void 0!==c)throw u("Bad Promise constructor");b=a;c=d});this.resolve=g(b);this.reject=g(c)},Q=function(a){try{a()}catch(M){return{error:M}}},E=function(a,b){if(!a._n){a._n=!0;var c=a._c;p(function(){for(var d=a._v,e=1==a._s,f=0;c.length>f;){var g=void 0,h=void 0,k=
c[f++],l=e?k.ok:k.fail,n=k.resolve,m=k.reject,p=k.domain;try{l?(e||(2==a._h&&K(a),a._h=1),!0===l?h=d:(p&&p.enter(),h=l(d),p&&p.exit()),h===k.promise?m(u("Promise-chain cycle")):(g=B(h))?g.call(h,n,m):n(h)):m(d)}catch(V){m(V)}}a._c=[];a._n=!1;b&&!a._h&&G(a)})}},G=function(a){m.call(f,function(){var b=a._v,c,d,e;D(a)&&(c=Q(function(){v?q.emit("unhandledRejection",b,a):(d=f.onunhandledrejection)?d({promise:a,reason:b}):(e=f.console)&&e.error&&e.error("Unhandled promise rejection",b)}),a._h=v||D(a)?2:
1);a._a=void 0;if(c)throw c.error;})},D=function(a){if(1==a._h)return!1;a=a._a||a._c;for(var b=0,c;a.length>b;)if(c=a[b++],c.fail||!D(c.promise))return!1;return!0},K=function(a){m.call(f,function(){var b;v?q.emit("rejectionHandled",a):(b=f.onrejectionhandled)&&b({promise:a,reason:a._v})})},z=function(a){var b=this;b._d||(b._d=!0,b=b._w||b,b._v=a,b._s=2,b._a||(b._a=b._c.slice()),E(b,!0))},J=function(a){var b=this,c;if(!b._d){b._d=!0;b=b._w||b;try{if(b===a)throw u("Promise can't be resolved itself");
(c=B(a))?p(function(){var e={_w:b,_d:!1};try{c.call(a,d(J,e,1),d(z,e,1))}catch(L){z.call(e,L)}}):(b._v=a,b._s=1,E(b,!1))}catch(C){z.call({_w:b,_d:!1},C)}}};c||(t=function(a){k(this,t,"Promise","_h");g(a);w.call(this);try{a(d(J,this,1),d(z,this,1))}catch(M){z.call(this,M)}},w=function(a){this._c=[];this._a=void 0;this._s=0;this._d=!1;this._v=void 0;this._h=0;this._n=!1},w.prototype=a(50)(t.prototype,{then:function(a,b){var c=A(n(this,t));c.ok="function"==typeof a?a:!0;c.fail="function"==typeof b&&
b;c.domain=v?q.domain:void 0;this._c.push(c);this._a&&this._a.push(c);this._s&&E(this,!1);return c.promise},"catch":function(a){return this.then(void 0,a)}}),F=function(){var a=new w;this.promise=a;this.resolve=d(J,a,1);this.reject=d(z,a,1)});e(e.G+e.W+e.F*!c,{Promise:t});a(60)(t,"Promise");a(51)("Promise");y=a(28).Promise;e(e.S+e.F*!c,"Promise",{reject:function(a){var b=A(this),c=b.reject;c(a);return b.promise}});e(e.S+e.F*(b||!c),"Promise",{resolve:function(a){var b;if(b=a instanceof t)b=a.constructor,
b=b===this||b===t&&this===y;if(b)return a;b=A(this);var c=b.resolve;c(a);return b.promise}});e(e.S+e.F*!(c&&a(81)(function(a){t.all(a)["catch"](r)})),"Promise",{all:function(a){var b=this,c=A(b),d=c.resolve,e=c.reject,f=Q(function(){var c=[],f=0,g=1;l(a,!1,function(a){var h=f++,k=!1;c.push(void 0);g++;b.resolve(a).then(function(a){k||(k=!0,c[h]=a,--g||d(c))},e)});--g||d(c)});f&&e(f.error);return c.promise},race:function(a){var b=this,c=A(b),d=c.reject,e=Q(function(){l(a,!1,function(a){b.resolve(a).then(c.resolve,
d)})});e&&d(e.error);return c.promise}})},function(b,e,a){b=a(0);var f=a(14),d=a(2),c=(a(3).Reflect||{}).apply,h=Function.apply;b(b.S+b.F*!a(4)(function(){c(function(){})}),"Reflect",{apply:function(a,b,e){a=f(a);e=d(e);return c?c(a,b,e):h.call(a,b,e)}})},function(b,e,a){b=a(0);var f=a(47),d=a(14),c=a(2),h=a(5);e=a(4);var g=a(140),k=(a(3).Reflect||{}).construct,l=e(function(){function a(){}return!(k(function(){},[],a)instanceof a)}),n=!e(function(){k(function(){})});b(b.S+b.F*(l||n),"Reflect",{construct:function(a,
b){d(a);c(b);var e=3>arguments.length?a:d(arguments[2]);if(n&&!l)return k(a,b,e);if(a==e){switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3])}e=[null];e.push.apply(e,b);return new (g.apply(a,e))}var e=e.prototype,e=f(h(e)?e:Object.prototype),m=Function.apply.call(a,e,b);return h(m)?m:e}})},function(b,e,a){var f=a(8);b=a(0);var d=a(2),c=a(26);b(b.S+b.F*a(4)(function(){Reflect.defineProperty(f.f({},
1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(a,b,e){d(a);b=c(b,!0);d(e);try{return f.f(a,b,e),!0}catch(l){return!1}}})},function(b,e,a){b=a(0);var f=a(19).f,d=a(2);b(b.S,"Reflect",{deleteProperty:function(a,b){var c=f(d(a),b);return c&&!c.configurable?!1:delete a[b]}})},function(b,e,a){b=a(0);var f=a(2),d=function(a){this._t=f(a);this._i=0;var b=this._k=[],c;for(c in a)b.push(c)};a(101)(d,"Object",function(){var a=this._k,b;do if(this._i>=a.length)return{value:void 0,done:!0};while(!((b=
a[this._i++])in this._t));return{value:b,done:!1}});b(b.S,"Reflect",{enumerate:function(a){return new d(a)}})},function(b,e,a){var f=a(19);b=a(0);var d=a(2);b(b.S,"Reflect",{getOwnPropertyDescriptor:function(a,b){return f.f(d(a),b)}})},function(b,e,a){b=a(0);var f=a(20),d=a(2);b(b.S,"Reflect",{getPrototypeOf:function(a){return f(d(a))}})},function(b,e,a){function f(a,b){var e=3>arguments.length?a:arguments[2],l;if(k(a)===e)return a[b];if(l=d.f(a,b))return h(l,"value")?l.value:void 0!==l.get?l.get.call(e):
void 0;if(g(l=c(a)))return f(l,b,e)}var d=a(19),c=a(20),h=a(13);b=a(0);var g=a(5),k=a(2);b(b.S,"Reflect",{get:f})},function(b,e,a){b=a(0);b(b.S,"Reflect",{has:function(a,b){return b in a}})},function(b,e,a){b=a(0);var f=a(2),d=Object.isExtensible;b(b.S,"Reflect",{isExtensible:function(a){f(a);return d?d(a):!0}})},function(b,e,a){b=a(0);b(b.S,"Reflect",{ownKeys:a(154)})},function(b,e,a){b=a(0);var f=a(2),d=Object.preventExtensions;b(b.S,"Reflect",{preventExtensions:function(a){f(a);try{return d&&d(a),
!0}catch(h){return!1}}})},function(b,e,a){b=a(0);var f=a(106);f&&b(b.S,"Reflect",{setPrototypeOf:function(a,b){f.check(a,b);try{return f.set(a,b),!0}catch(h){return!1}}})},function(b,e,a){function f(a,b,e){var m=4>arguments.length?a:arguments[3],p=c.f(l(a),b);if(!p){if(n(p=h(a)))return f(p,b,e,m);p=k(0)}if(g(p,"value")){if(!1===p.writable||!n(m))return!1;p=c.f(m,b)||k(0);p.value=e;d.f(m,b,p);return!0}return void 0===p.set?!1:(p.set.call(m,e),!0)}var d=a(8),c=a(19),h=a(20),g=a(13);b=a(0);var k=a(36),
l=a(2),n=a(5);b(b.S,"Reflect",{set:f})},function(b,e,a){b=a(3);var f=a(98),d=a(8).f,c=a(48).f,h=a(80),g=a(78),k=b.RegExp,l=k,n=k.prototype,m=/a/g,p=/a/g,u=new k(m)!==m;if(a(7)&&(!u||a(4)(function(){p[a(6)("match")]=!1;return k(m)!=m||k(p)==p||"/a/i"!=k(m,"i")}))){k=function(a,b){var c=this instanceof k,d=h(a),e=void 0===b;return!c&&d&&a.constructor===k&&e?a:f(u?new l(d&&!e?a.source:a,b):l((d=a instanceof k)?a.source:a,d&&e?g.call(a):b),c?this:n,k)};e=function(a){a in k||d(k,a,{configurable:!0,get:function(){return l[a]},
set:function(b){l[a]=b}})};for(var c=c(l),q=0;c.length>q;)e(c[q++]);n.constructor=k;k.prototype=n;a(16)(b,"RegExp",k)}a(51)("RegExp")},function(b,e,a){a(77)("match",1,function(a,b,c){return[function(c){var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):(new RegExp(c))[b](String(d))},c]})},function(b,e,a){a(77)("replace",2,function(a,b,c){return[function(d,e){var f=a(this),g=void 0==d?void 0:d[b];return void 0!==g?g.call(d,f,e):c.call(String(f),d,e)},c]})},function(b,e,a){a(77)("search",
1,function(a,b,c){return[function(c){var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):(new RegExp(c))[b](String(d))},c]})},function(b,e,a){a(77)("split",2,function(b,d,c){var e=a(80),f=c,k=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length){var l=void 0===/()??/.exec("")[1];c=function(a,b){var c=String(this);if(void 0===a&&0===b)return[];if(!e(a))return f.call(c,
a,b);var d=[],g=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),h=0,n=void 0===b?4294967295:b>>>0,m=new RegExp(a.source,g+"g"),w,x,y,B;for(l||(w=new RegExp("^"+m.source+"$(?!\\s)",g));x=m.exec(c);){g=x.index+x[0].length;if(g>h&&(d.push(c.slice(h,x.index)),!l&&1<x.length&&x[0].replace(w,function(){for(B=1;B<arguments.length-2;B++)void 0===arguments[B]&&(x[B]=void 0)}),1<x.length&&x.index<c.length&&k.apply(d,x.slice(1)),y=x[0].length,h=g,d.length>=n))break;m.lastIndex===
x.index&&m.lastIndex++}h===c.length?!y&&m.test("")||d.push(""):d.push(c.slice(h));return d.length>n?d.slice(0,n):d}}else"0".split(void 0,0).length&&(c=function(a,b){return void 0===a&&0===b?[]:f.call(this,a,b)});return[function(a,e){var f=b(this),g=void 0==a?void 0:a[d];return void 0!==g?g.call(a,f,e):c.call(String(f),a,e)},c]})},function(b,e,a){a(161);var f=a(2),d=a(78),c=a(7),h=/./.toString;a(4)(function(){return"/a/b"!=h.call({source:"a",flags:"b"})})?a(16)(RegExp.prototype,"toString",function(){var a=
f(this);return"/".concat(a.source,"/","flags"in a?a.flags:!c&&a instanceof RegExp?d.call(a):void 0)},!0):"toString"!=h.name&&a(16)(RegExp.prototype,"toString",function(){return h.call(this)},!0)},function(b,e,a){a(17)("anchor",function(a){return function(b){return a(this,"a","name",b)}})},function(b,e,a){a(17)("big",function(a){return function(){return a(this,"big","","")}})},function(b,e,a){a(17)("blink",function(a){return function(){return a(this,"blink","","")}})},function(b,e,a){a(17)("bold",
function(a){return function(){return a(this,"b","","")}})},function(b,e,a){b=a(0);var f=a(109)(!1);b(b.P,"String",{codePointAt:function(a){return f(this,a)}})},function(b,e,a){b=a(0);var f=a(11),d=a(110),c="".endsWith;b(b.P+b.F*a(96)("endsWith"),"String",{endsWith:function(a){var b=d(this,a,"endsWith"),e=1<arguments.length?arguments[1]:void 0,h=f(b.length),e=void 0===e?h:Math.min(f(e),h),h=String(a);return c?c.call(b,h,e):b.slice(e-h.length,e)===h}})},function(b,e,a){a(17)("fixed",function(a){return function(){return a(this,
"tt","","")}})},function(b,e,a){a(17)("fontcolor",function(a){return function(b){return a(this,"font","color",b)}})},function(b,e,a){a(17)("fontsize",function(a){return function(b){return a(this,"font","size",b)}})},function(b,e,a){b=a(0);var f=a(52),d=String.fromCharCode;a=String.fromCodePoint;b(b.S+b.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(a){for(var b=[],c=arguments.length,e=0,l;c>e;){l=+arguments[e++];if(f(l,1114111)!==l)throw RangeError(l+" is not a valid code point");b.push(65536>
l?d(l):d(((l-=65536)>>10)+55296,l%1024+56320))}return b.join("")}})},function(b,e,a){b=a(0);var f=a(110);b(b.P+b.F*a(96)("includes"),"String",{includes:function(a){return!!~f(this,a,"includes").indexOf(a,1<arguments.length?arguments[1]:void 0)}})},function(b,e,a){a(17)("italics",function(a){return function(){return a(this,"i","","")}})},function(b,e,a){var f=a(109)(!0);a(102)(String,"String",function(a){this._t=String(a);this._i=0},function(){var a=this._t,b=this._i;if(b>=a.length)return{value:void 0,
done:!0};a=f(a,b);this._i+=a.length;return{value:a,done:!1}})},function(b,e,a){a(17)("link",function(a){return function(b){return a(this,"a","href",b)}})},function(b,e,a){b=a(0);var f=a(18),d=a(11);b(b.S,"String",{raw:function(a){for(var b=f(a.raw),c=d(b.length),e=arguments.length,l=[],n=0;c>n;)l.push(String(b[n++])),n<e&&l.push(String(arguments[n]));return l.join("")}})},function(b,e,a){b=a(0);b(b.P,"String",{repeat:a(111)})},function(b,e,a){a(17)("small",function(a){return function(){return a(this,
"small","","")}})},function(b,e,a){b=a(0);var f=a(11),d=a(110),c="".startsWith;b(b.P+b.F*a(96)("startsWith"),"String",{startsWith:function(a){var b=d(this,a,"startsWith"),e=f(Math.min(1<arguments.length?arguments[1]:void 0,b.length)),h=String(a);return c?c.call(b,h,e):b.slice(e,e+h.length)===h}})},function(b,e,a){a(17)("strike",function(a){return function(){return a(this,"strike","","")}})},function(b,e,a){a(17)("sub",function(a){return function(){return a(this,"sub","","")}})},function(b,e,a){a(17)("sup",
function(a){return function(){return a(this,"sup","","")}})},function(b,e,a){a(61)("trim",function(a){return function(){return a(this,3)}})},function(b,e,a){b=a(3);var f=a(13),d=a(7);e=a(0);var c=a(16),h=a(35).KEY,g=a(4),k=a(84),l=a(60),n=a(53),m=a(6),p=a(159),u=a(115),q=a(227),t=a(226),v=a(100),r=a(2),w=a(18),x=a(26),y=a(36),B=a(47),A=a(151),F=a(19),Q=a(8),E=a(49),G=F.f,D=Q.f,K=A.f,z=b.Symbol,J=b.JSON,I=J&&J.stringify,M=m("_hidden"),O=m("toPrimitive"),C={}.propertyIsEnumerable,L=k("symbol-registry"),
N=k("symbols"),T=k("op-symbols"),H=Object.prototype,k="function"==typeof z,S=b.QObject,U=!S||!S.prototype||!S.prototype.findChild,P=d&&g(function(){return 7!=B(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(a,b,c){var d=G(H,b);d&&delete H[b];D(a,b,c);d&&a!==H&&D(H,b,d)}:D,R=function(a){var b=N[a]=B(z.prototype);b._k=a;return b},ba=k&&"symbol"==typeof z.iterator?function(a){return"symbol"==typeof a}:function(a){return a instanceof z},V=function(a,b,c){a===H&&V(T,b,c);r(a);
b=x(b,!0);r(c);return f(N,b)?(c.enumerable?(f(a,M)&&a[M][b]&&(a[M][b]=!1),c=B(c,{enumerable:y(0,!1)})):(f(a,M)||D(a,M,y(1,{})),a[M][b]=!0),P(a,b,c)):D(a,b,c)},W=function(a,b){r(a);for(var c=t(b=w(b)),d=0,e=c.length,f;e>d;)V(a,f=c[d++],b[f]);return a},Y=function(a){var b=C.call(this,a=x(a,!0));return this===H&&f(N,a)&&!f(T,a)?!1:b||!f(this,a)||!f(N,a)||f(this,M)&&this[M][a]?b:!0},S=function(a,b){a=w(a);b=x(b,!0);if(a!==H||!f(N,b)||f(T,b)){var c=G(a,b);!c||!f(N,b)||f(a,M)&&a[M][b]||(c.enumerable=!0);
return c}},X=function(a){a=K(w(a));for(var b=[],c=0,d;a.length>c;)f(N,d=a[c++])||d==M||d==h||b.push(d);return b},Z=function(a){var b=a===H;a=K(b?T:w(a));for(var c=[],d=0,e;a.length>d;)f(N,e=a[d++])&&(b?f(H,e):1)&&c.push(N[e]);return c};k||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor!");var a=n(0<arguments.length?arguments[0]:void 0),b=function(c){this===H&&b.call(T,c);f(this,M)&&f(this[M],a)&&(this[M][a]=!1);P(this,a,y(1,c))};d&&U&&P(H,a,{configurable:!0,set:b});
return R(a)},c(z.prototype,"toString",function(){return this._k}),F.f=S,Q.f=V,a(48).f=A.f=X,a(70).f=Y,a(83).f=Z,d&&!a(46)&&c(H,"propertyIsEnumerable",Y,!0),p.f=function(a){return R(m(a))});e(e.G+e.W+e.F*!k,{Symbol:z});c="hasInstance isConcatSpreadable iterator match replace search species split toPrimitive toStringTag unscopables".split(" ");for(p=0;c.length>p;)m(c[p++]);c=E(m.store);for(p=0;c.length>p;)u(c[p++]);e(e.S+e.F*!k,"Symbol",{"for":function(a){return f(L,a+="")?L[a]:L[a]=z(a)},keyFor:function(a){if(ba(a))return q(L,
a);throw TypeError(a+" is not a symbol!");},useSetter:function(){U=!0},useSimple:function(){U=!1}});e(e.S+e.F*!k,"Object",{create:function(a,b){return void 0===b?B(a):W(B(a),b)},defineProperty:V,defineProperties:W,getOwnPropertyDescriptor:S,getOwnPropertyNames:X,getOwnPropertySymbols:Z});J&&e(e.S+e.F*(!k||g(function(){var a=z();return"[null]"!=I([a])||"{}"!=I({a:a})||"{}"!=I(Object(a))})),"JSON",{stringify:function(a){if(void 0!==a&&!ba(a)){for(var b=[a],c=1,d;arguments.length>c;)b.push(arguments[c++]);
c=b[1];"function"==typeof c&&(d=c);if(d||!v(c))c=function(a,b){d&&(b=d.call(this,a,b));if(!ba(b))return b};b[1]=c;return I.apply(J,b)}}});z.prototype[O]||a(15)(z.prototype,O,z.prototype.valueOf);l(z,"Symbol");l(Math,"Math",!0);l(b.JSON,"JSON",!0)},function(b,e,a){b=a(0);e=a(85);var f=a(114),d=a(2),c=a(52),h=a(11),g=a(5),k=a(3).ArrayBuffer,l=a(108),n=f.ArrayBuffer,m=f.DataView,p=e.ABV&&k.isView,u=n.prototype.slice,q=e.VIEW;b(b.G+b.W+b.F*(k!==n),{ArrayBuffer:n});b(b.S+b.F*!e.CONSTR,"ArrayBuffer",{isView:function(a){return p&&
p(a)||g(a)&&q in a}});b(b.P+b.U+b.F*a(4)(function(){return!(new n(2)).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(a,b){if(void 0!==u&&void 0===b)return u.call(d(this),a);for(var e=d(this).byteLength,f=c(a,e),e=c(void 0===b?e:b,e),g=new (l(this,n))(h(e-f)),k=new m(this),p=new m(g),q=0;f<e;)p.setUint8(q++,k.getUint8(f++));return g}});a(51)("ArrayBuffer")},function(b,e,a){b=a(0);b(b.G+b.W+b.F*!a(85).ABV,{DataView:a(114).DataView})},function(b,e,a){a(31)("Float32",4,function(a){return function(b,
c,e){return a(this,b,c,e)}})},function(b,e,a){a(31)("Float64",8,function(a){return function(b,c,e){return a(this,b,c,e)}})},function(b,e,a){a(31)("Int16",2,function(a){return function(b,c,e){return a(this,b,c,e)}})},function(b,e,a){a(31)("Int32",4,function(a){return function(b,c,e){return a(this,b,c,e)}})},function(b,e,a){a(31)("Int8",1,function(a){return function(b,c,e){return a(this,b,c,e)}})},function(b,e,a){a(31)("Uint16",2,function(a){return function(b,c,e){return a(this,b,c,e)}})},function(b,
e,a){a(31)("Uint32",4,function(a){return function(b,c,e){return a(this,b,c,e)}})},function(b,e,a){a(31)("Uint8",1,function(a){return function(b,c,e){return a(this,b,c,e)}})},function(b,e,a){a(31)("Uint8",1,function(a){return function(b,c,e){return a(this,b,c,e)}},!0)},function(b,e,a){var f=a(143);a(76)("WeakSet",function(a){return function(){return a(this,0<arguments.length?arguments[0]:void 0)}},{add:function(a){return f.def(this,a,!0)}},f,!1,!0)},function(b,e,a){b=a(0);var f=a(75)(!0);b(b.P,"Array",
{includes:function(a){return f(this,a,1<arguments.length?arguments[1]:void 0)}});a(57)("includes")},function(b,e,a){b=a(0);var f=a(105)(),d=a(3).process,c="process"==a(21)(d);b(b.G,{asap:function(a){var b=c&&d.domain;f(b?b.bind(a):a)}})},function(b,e,a){b=a(0);var f=a(21);b(b.S,"Error",{isError:function(a){return"Error"===f(a)}})},function(b,e,a){b=a(0);b(b.P+b.R,"Map",{toJSON:a(142)("Map")})},function(b,e,a){b=a(0);b(b.S,"Math",{iaddh:function(a,b,c,e){a>>>=0;c>>>=0;return(b>>>0)+(e>>>0)+((a&c|(a|
c)&~(a+c>>>0))>>>31)|0}})},function(b,e,a){b=a(0);b(b.S,"Math",{imulh:function(a,b){var c=+a,d=+b,e=c&65535,f=d&65535,c=c>>16,d=d>>16,f=(c*f>>>0)+(e*f>>>16);return c*d+(f>>16)+((e*d>>>0)+(f&65535)>>16)}})},function(b,e,a){b=a(0);b(b.S,"Math",{isubh:function(a,b,c,e){a>>>=0;c>>>=0;return(b>>>0)-(e>>>0)-((~a&c|~(a^c)&a-c>>>0)>>>31)|0}})},function(b,e,a){b=a(0);b(b.S,"Math",{umulh:function(a,b){var c=+a,d=+b,e=c&65535,f=d&65535,c=c>>>16,d=d>>>16,f=(c*f>>>0)+(e*f>>>16);return c*d+(f>>>16)+((e*d>>>0)+
(f&65535)>>>16)}})},function(b,e,a){b=a(0);var f=a(12),d=a(14),c=a(8);a(7)&&b(b.P+a(82),"Object",{__defineGetter__:function(a,b){c.f(f(this),a,{get:d(b),enumerable:!0,configurable:!0})}})},function(b,e,a){b=a(0);var f=a(12),d=a(14),c=a(8);a(7)&&b(b.P+a(82),"Object",{__defineSetter__:function(a,b){c.f(f(this),a,{set:d(b),enumerable:!0,configurable:!0})}})},function(b,e,a){b=a(0);var f=a(153)(!0);b(b.S,"Object",{entries:function(a){return f(a)}})},function(b,e,a){b=a(0);var f=a(154),d=a(18),c=a(19),
h=a(93);b(b.S,"Object",{getOwnPropertyDescriptors:function(a){a=d(a);for(var b=c.f,e=f(a),g={},m=0,p;e.length>m;)h(g,p=e[m++],b(a,p));return g}})},function(b,e,a){b=a(0);var f=a(12),d=a(26),c=a(20),h=a(19).f;a(7)&&b(b.P+a(82),"Object",{__lookupGetter__:function(a){var b=f(this);a=d(a,!0);var e;do if(e=h(b,a))return e.get;while(b=c(b))}})},function(b,e,a){b=a(0);var f=a(12),d=a(26),c=a(20),h=a(19).f;a(7)&&b(b.P+a(82),"Object",{__lookupSetter__:function(a){var b=f(this);a=d(a,!0);var e;do if(e=h(b,
a))return e.set;while(b=c(b))}})},function(b,e,a){b=a(0);var f=a(153)(!1);b(b.S,"Object",{values:function(a){return f(a)}})},function(b,e,a){b=a(0);var f=a(3),d=a(28),c=a(105)(),h=a(6)("observable"),g=a(14),k=a(2),l=a(45);e=a(50);var n=a(15),m=a(58),p=m.RETURN,u=function(a){return null==a?void 0:g(a)},q=function(a){var b=a._c;b&&(a._c=void 0,b())},t=function(a){return void 0===a._o},v=function(a,b){k(a);this._c=void 0;this._o=a;a=new r(this);try{var c=b(a),d=c;null!=c&&("function"===typeof c.unsubscribe?
c=function(){d.unsubscribe()}:g(c),this._c=c)}catch(F){a.error(F);return}t(this)&&q(this)};v.prototype=e({},{unsubscribe:function(){t(this)||(this._o=void 0,q(this))}});var r=function(a){this._s=a};r.prototype=e({},{next:function(a){var b=this._s;if(!t(b)){var c=b._o;try{var d=u(c.next);if(d)return d.call(c,a)}catch(F){try{t(b)||(b._o=void 0,q(b))}finally{throw F;}}}},error:function(a){var b=this._s;if(t(b))throw a;var c=b._o;b._o=void 0;try{var d=u(c.error);if(!d)throw a;a=d.call(c,a)}catch(F){try{q(b)}finally{throw F;
}}q(b);return a},complete:function(a){var b=this._s;if(!t(b)){var c=b._o;b._o=void 0;try{var d=u(c.complete);a=d?d.call(c,a):void 0}catch(F){try{q(b)}finally{throw F;}}q(b);return a}}});var w=function(a){l(this,w,"Observable","_f")._f=g(a)};e(w.prototype,{subscribe:function(a){return new v(a,this._f)},forEach:function(a){var b=this;return new (d.Promise||f.Promise)(function(c,d){g(a);var e=b.subscribe({next:function(b){try{return a(b)}catch(E){d(E),e.unsubscribe()}},error:d,complete:c})})}});e(w,
{from:function(a){var b="function"===typeof this?this:w,d=u(k(a)[h]);if(d){var e=k(d.call(a));return e.constructor===b?e:new b(function(a){return e.subscribe(a)})}return new b(function(b){var d=!1;c(function(){if(!d){try{if(m(a,!1,function(a){b.next(a);if(d)return p})===p)return}catch(E){if(d)throw E;b.error(E);return}b.complete()}});return function(){d=!0}})},of:function(){for(var a=0,b=arguments.length,d=Array(b);a<b;)d[a]=arguments[a++];return new ("function"===typeof this?this:w)(function(a){var b=
!1;c(function(){if(!b){for(var c=0;c<d.length;++c)if(a.next(d[c]),b)return;a.complete()}});return function(){b=!0}})}});n(w.prototype,h,function(){return this});b(b.G,{Observable:w});a(51)("Observable")},function(b,e,a){b=a(30);var f=a(2),d=b.key,c=b.set;b.exp({defineMetadata:function(a,b,e,l){c(a,b,f(e),d(l))}})},function(b,e,a){b=a(30);var f=a(2),d=b.key,c=b.map,h=b.store;b.exp({deleteMetadata:function(a,b){var e=3>arguments.length?void 0:d(arguments[2]),g=c(f(b),e,!1);if(void 0===g||!g["delete"](a))return!1;
if(g.size)return!0;g=h.get(b);g["delete"](e);return!!g.size||h["delete"](b)}})},function(b,e,a){var f=a(162),d=a(138);b=a(30);var c=a(2),h=a(20),g=b.keys,k=b.key,l=function(a,b){var c=g(a,b),e=h(a);if(null===e)return c;e=l(e,b);return e.length?c.length?d(new f(c.concat(e))):e:c};b.exp({getMetadataKeys:function(a){return l(c(a),2>arguments.length?void 0:k(arguments[1]))}})},function(b,e,a){b=a(30);var f=a(2),d=a(20),c=b.has,h=b.get,g=b.key,k=function(a,b,e){if(c(a,b,e))return h(a,b,e);b=d(b);return null!==
b?k(a,b,e):void 0};b.exp({getMetadata:function(a,b){return k(a,f(b),3>arguments.length?void 0:g(arguments[2]))}})},function(b,e,a){b=a(30);var f=a(2),d=b.keys,c=b.key;b.exp({getOwnMetadataKeys:function(a){return d(f(a),2>arguments.length?void 0:c(arguments[1]))}})},function(b,e,a){b=a(30);var f=a(2),d=b.get,c=b.key;b.exp({getOwnMetadata:function(a,b){return d(a,f(b),3>arguments.length?void 0:c(arguments[2]))}})},function(b,e,a){b=a(30);var f=a(2),d=a(20),c=b.has,h=b.key,g=function(a,b,e){if(c(a,b,
e))return!0;b=d(b);return null!==b?g(a,b,e):!1};b.exp({hasMetadata:function(a,b){return g(a,f(b),3>arguments.length?void 0:h(arguments[2]))}})},function(b,e,a){b=a(30);var f=a(2),d=b.has,c=b.key;b.exp({hasOwnMetadata:function(a,b){return d(a,f(b),3>arguments.length?void 0:c(arguments[2]))}})},function(b,e,a){b=a(30);var f=a(2),d=a(14),c=b.key,h=b.set;b.exp({metadata:function(a,b){return function(e,g){h(a,b,(void 0!==g?f:d)(e),c(g))}}})},function(b,e,a){b=a(0);b(b.P+b.R,"Set",{toJSON:a(142)("Set")})},
function(b,e,a){b=a(0);var f=a(109)(!0);b(b.P,"String",{at:function(a){return f(this,a)}})},function(b,e,a){b=a(0);var f=a(22),d=a(11),c=a(80),h=a(78),g=RegExp.prototype,k=function(a,b){this._r=a;this._s=b};a(101)(k,"RegExp String",function(){var a=this._r.exec(this._s);return{value:a,done:null===a}});b(b.P,"String",{matchAll:function(a){f(this);if(!c(a))throw TypeError(a+" is not a regexp!");var b=String(this),e="flags"in g?String(a.flags):h.call(a),e=new RegExp(a.source,~e.indexOf("g")?e:"g"+e);
e.lastIndex=d(a.lastIndex);return new k(e,b)}})},function(b,e,a){b=a(0);var f=a(158);b(b.P,"String",{padEnd:function(a){return f(this,a,1<arguments.length?arguments[1]:void 0,!1)}})},function(b,e,a){b=a(0);var f=a(158);b(b.P,"String",{padStart:function(a){return f(this,a,1<arguments.length?arguments[1]:void 0,!0)}})},function(b,e,a){a(61)("trimLeft",function(a){return function(){return a(this,1)}},"trimStart")},function(b,e,a){a(61)("trimRight",function(a){return function(){return a(this,2)}},"trimEnd")},
function(b,e,a){a(115)("asyncIterator")},function(b,e,a){a(115)("observable")},function(b,e,a){b=a(0);b(b.S,"System",{global:a(3)})},function(b,e,a){b=a(117);e=a(16);var f=a(3),d=a(15),c=a(59),h=a(6);a=h("iterator");for(var h=h("toStringTag"),g=c.Array,k=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;5>l;l++){var n=k[l],m=f[n],m=m&&m.prototype,p;if(m)for(p in m[a]||d(m,a,g),m[h]||d(m,h,n),c[n]=g,b)m[p]||e(m,p,b[p],!0)}},function(b,e,a){b=a(0);a=a(113);b(b.G+b.B,{setImmediate:a.set,
clearImmediate:a.clear})},function(b,e,a){b=a(3);e=a(0);var f=a(79),d=a(228);a=b.navigator;var c=!!a&&/MSIE .\./.test(a.userAgent);a=function(a){return c?function(b,c){return a(f(d,[].slice.call(arguments,2),"function"==typeof b?b:Function(b)),c)}:a};e(e.G+e.B+e.F*c,{setTimeout:a(b.setTimeout),setInterval:a(b.setInterval)})},function(b,e,a){a(351);a(290);a(292);a(291);a(294);a(296);a(301);a(295);a(293);a(303);a(302);a(298);a(299);a(297);a(289);a(300);a(304);a(305);a(257);a(259);a(258);a(307);a(306);
a(277);a(287);a(288);a(278);a(279);a(280);a(281);a(282);a(283);a(284);a(285);a(286);a(260);a(261);a(262);a(263);a(264);a(265);a(266);a(267);a(268);a(269);a(270);a(271);a(272);a(273);a(274);a(275);a(276);a(338);a(343);a(350);a(341);a(333);a(334);a(339);a(344);a(346);a(329);a(330);a(331);a(332);a(335);a(336);a(337);a(340);a(342);a(345);a(347);a(348);a(349);a(252);a(254);a(253);a(256);a(255);a(241);a(239);a(245);a(242);a(248);a(250);a(238);a(244);a(235);a(249);a(233);a(247);a(246);a(240);a(243);a(232);
a(234);a(237);a(236);a(251);a(117);a(323);a(328);a(161);a(324);a(325);a(326);a(327);a(308);a(160);a(162);a(163);a(363);a(352);a(353);a(358);a(361);a(362);a(356);a(359);a(357);a(360);a(354);a(355);a(309);a(310);a(311);a(312);a(313);a(316);a(314);a(315);a(317);a(318);a(319);a(320);a(322);a(321);a(364);a(390);a(393);a(392);a(394);a(395);a(391);a(396);a(397);a(375);a(378);a(374);a(372);a(373);a(376);a(377);a(367);a(389);a(398);a(366);a(368);a(370);a(369);a(371);a(380);a(381);a(383);a(382);a(385);a(384);
a(386);a(387);a(388);a(365);a(379);a(401);a(400);a(399);b.exports=a(28)},function(b,e,a){(function(a){!function(a){function c(a,b,c,d){b=Object.create((b&&b.prototype instanceof e?b:e).prototype);d=new v(d||[]);b._invoke=p(a,c,d);return b}function d(a,b,c){try{return{type:"normal",arg:a.call(b,c)}}catch(T){return{type:"throw",arg:T}}}function e(){}function f(){}function l(){}function n(a){["next","throw","return"].forEach(function(b){a[b]=function(a){return this._invoke(b,a)}})}function m(b){function c(a,
e,f,g){a=d(b[a],b,e);if("throw"===a.type)g(a.arg);else{var h=a.arg;return(a=h.value)&&"object"===typeof a&&y.call(a,"__await")?Promise.resolve(a.__await).then(function(a){c("next",a,f,g)},function(a){c("throw",a,f,g)}):Promise.resolve(a).then(function(a){h.value=a;f(h)},g)}}"object"===typeof a.process&&a.process.domain&&(c=a.process.domain.bind(c));var e;this._invoke=function(a,b){function d(){return new Promise(function(d,e){c(a,b,d,e)})}return e=e?e.then(d,d):d()}}function p(a,b,c){var e=D;return function(f,
g){if(e===z)throw Error("Generator is already running");if(e===J){if("throw"===f)throw g;return w()}c.method=f;for(c.arg=g;;){var h=c.delegate;if(h&&(h=u(h,c))){if(h===I)continue;return h}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(e===D)throw e=J,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);e=z;h=d(a,b,c);if("normal"===h.type){e=c.done?J:K;if(h.arg===I)continue;return{value:h.arg,done:c.done}}"throw"===h.type&&(e=J,c.method="throw",
c.arg=h.arg)}}}function u(a,b){var c=a.iterator[b.method];if(c===B){b.delegate=null;if("throw"===b.method){if(a.iterator["return"]&&(b.method="return",b.arg=B,u(a,b),"throw"===b.method))return I;b.method="throw";b.arg=new TypeError("The iterator does not provide a 'throw' method")}return I}c=d(c,a.iterator,b.arg);if("throw"===c.type)return b.method="throw",b.arg=c.arg,b.delegate=null,I;c=c.arg;if(!c)return b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,I;
if(c.done)b[a.resultName]=c.value,b.next=a.nextLoc,"return"!==b.method&&(b.method="next",b.arg=B);else return c;b.delegate=null;return I}function q(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]);2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]);this.tryEntries.push(b)}function t(a){var b=a.completion||{};b.type="normal";delete b.arg;a.completion=b}function v(a){this.tryEntries=[{tryLoc:"root"}];a.forEach(q,this);this.reset(!0)}function r(a){if(a){var b=a[F];if(b)return b.call(a);if("function"===typeof a.next)return a;
if(!isNaN(a.length)){var c=-1,b=function H(){for(;++c<a.length;)if(y.call(a,c))return H.value=a[c],H.done=!1,H;H.value=B;H.done=!0;return H};return b.next=b}}return{next:w}}function w(){return{value:B,done:!0}}var x=Object.prototype,y=x.hasOwnProperty,B,A="function"===typeof Symbol?Symbol:{},F=A.iterator||"@@iterator",Q=A.asyncIterator||"@@asyncIterator",E=A.toStringTag||"@@toStringTag",A="object"===typeof b,G=a.regeneratorRuntime;if(G)A&&(b.exports=G);else{G=a.regeneratorRuntime=A?b.exports:{};G.wrap=
c;var D="suspendedStart",K="suspendedYield",z="executing",J="completed",I={},A={};A[F]=function(){return this};var M=Object.getPrototypeOf;(M=M&&M(M(r([]))))&&M!==x&&y.call(M,F)&&(A=M);var O=l.prototype=e.prototype=Object.create(A);f.prototype=O.constructor=l;l.constructor=f;l[E]=f.displayName="GeneratorFunction";G.isGeneratorFunction=function(a){return(a="function"===typeof a&&a.constructor)?a===f||"GeneratorFunction"===(a.displayName||a.name):!1};G.mark=function(a){Object.setPrototypeOf?Object.setPrototypeOf(a,
l):(a.__proto__=l,E in a||(a[E]="GeneratorFunction"));a.prototype=Object.create(O);return a};G.awrap=function(a){return{__await:a}};n(m.prototype);m.prototype[Q]=function(){return this};G.AsyncIterator=m;G.async=function(a,b,d,e){var f=new m(c(a,b,d,e));return G.isGeneratorFunction(b)?f:f.next().then(function(a){return a.done?a.value:f.next()})};n(O);O[E]="Generator";O[F]=function(){return this};O.toString=function(){return"[object Generator]"};G.keys=function(a){var b=[],c;for(c in a)b.push(c);b.reverse();
return function H(){for(;b.length;){var c=b.pop();if(c in a)return H.value=c,H.done=!1,H}H.done=!0;return H}};G.values=r;v.prototype={constructor:v,reset:function(a){this.next=this.prev=0;this.sent=this._sent=B;this.done=!1;this.delegate=null;this.method="next";this.arg=B;this.tryEntries.forEach(t);if(!a)for(var b in this)"t"===b.charAt(0)&&y.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=B)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if("throw"===a.type)throw a.arg;return this.rval},
dispatchException:function(a){function b(b,d){f.type="throw";f.arg=a;c.next=b;d&&(c.method="next",c.arg=B);return!!d}if(this.done)throw a;for(var c=this,d=this.tryEntries.length-1;0<=d;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=y.call(e,"catchLoc"),h=y.call(e,"finallyLoc");if(g&&h){if(this.prev<e.catchLoc)return b(e.catchLoc,!0);if(this.prev<e.finallyLoc)return b(e.finallyLoc)}else if(g){if(this.prev<e.catchLoc)return b(e.catchLoc,
!0)}else if(h){if(this.prev<e.finallyLoc)return b(e.finallyLoc)}else throw Error("try statement without catch or finally");}}},abrupt:function(a,b){for(var c=this.tryEntries.length-1;0<=c;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&y.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var e=d;break}}e&&("break"===a||"continue"===a)&&e.tryLoc<=b&&b<=e.finallyLoc&&(e=null);c=e?e.completion:{};c.type=a;c.arg=b;return e?(this.method="next",this.next=e.finallyLoc,I):this.complete(c)},complete:function(a,
b){if("throw"===a.type)throw a.arg;"break"===a.type||"continue"===a.type?this.next=a.arg:"return"===a.type?(this.rval=this.arg=a.arg,this.method="return",this.next="end"):"normal"===a.type&&b&&(this.next=b);return I},finish:function(a){for(var b=this.tryEntries.length-1;0<=b;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),t(c),I}},"catch":function(a){for(var b=this.tryEntries.length-1;0<=b;--b){var c=this.tryEntries[b];if(c.tryLoc===a){a=c.completion;
if("throw"===a.type){var d=a.arg;t(c)}return d}}throw Error("illegal catch attempt");},delegateYield:function(a,b,c){this.delegate={iterator:r(a),resultName:b,nextLoc:c};"next"===this.method&&(this.arg=B);return I}}}}("object"===typeof a?a:"object"===typeof window?window:"object"===typeof self?self:this)}).call(e,a(127))},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=
b.prototype,new c)};b=function(a){function b(b,c,d){a.call(this);this.parent=b;this.outerValue=c;this.outerIndex=d;this.index=0}f(b,a);b.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex,this.index++,this)};b.prototype._error=function(a){this.parent.notifyError(a,this);this.unsubscribe()};b.prototype._complete=function(){this.parent.notifyComplete(this);this.unsubscribe()};return b}(a(10).Subscriber);e.InnerSubscriber=b},function(b,e,a){var f=a(1);b=function(){function a(a,
b,d){this.kind=a;this.value=b;this.error=d;this.hasValue="N"===a}a.prototype.observe=function(a){switch(this.kind){case "N":return a.next&&a.next(this.value);case "E":return a.error&&a.error(this.error);case "C":return a.complete&&a.complete()}};a.prototype["do"]=function(a,b,d){switch(this.kind){case "N":return a&&a(this.value);case "E":return b&&b(this.error);case "C":return d&&d()}};a.prototype.accept=function(a,b,d){return a&&"function"===typeof a.next?this.observe(a):this["do"](a,b,d)};a.prototype.toObservable=
function(){switch(this.kind){case "N":return f.Observable.of(this.value);case "E":return f.Observable["throw"](this.error);case "C":return f.Observable.empty()}throw Error("unexpected notification kind value");};a.createNext=function(b){return"undefined"!==typeof b?new a("N",b):a.undefinedValueNotification};a.createError=function(b){return new a("E",void 0,b)};a.createComplete=function(){return a.completeNotification};a.completeNotification=new a("C");a.undefinedValueNotification=new a("N",void 0);
return a}();e.Notification=b},function(b,e,a){b=function(){function a(b,c){void 0===c&&(c=a.now);this.SchedulerAction=b;this.now=c}a.prototype.schedule=function(a,b,e){void 0===b&&(b=0);return(new this.SchedulerAction(this,a)).schedule(e,b)};a.now=Date.now?Date.now:function(){return+new Date};return a}();e.Scheduler=b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=
b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.subject=b;this.subscriber=c;this.closed=!1}f(b,a);b.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this.subject,b=a.observers;this.subject=null;!b||0===b.length||a.isStopped||a.closed||(a=b.indexOf(this.subscriber),-1!==a&&b.splice(a,1))}};return b}(a(32).Subscription);e.SubjectSubscription=b},function(b,e,a){b=a(1);a=a(443);b.Observable.empty=a.empty},function(b,e,a){b=a(1);a=a(41);b.Observable.merge=a.merge},
function(b,e,a){b=a(1);a=a(444);b.Observable.of=a.of},function(b,e,a){b=a(1);a=a(445);b.Observable["throw"]=a._throw},function(b,e,a){b=a(1);a=a(446);b.Observable.prototype["catch"]=a._catch;b.Observable.prototype._catch=a._catch},function(b,e,a){b=a(1);a=a(169);b.Observable.prototype.concat=a.concat},function(b,e,a){b=a(1);a=a(448);b.Observable.prototype.concatAll=a.concatAll},function(b,e,a){b=a(1);a=a(449);b.Observable.prototype.concatMap=a.concatMap},function(b,e,a){b=a(1);a=a(450);b.Observable.prototype.debounceTime=
a.debounceTime},function(b,e,a){b=a(1);a=a(451);b.Observable.prototype.distinctUntilChanged=a.distinctUntilChanged},function(b,e,a){b=a(1);a=a(452);b.Observable.prototype["do"]=a._do;b.Observable.prototype._do=a._do},function(b,e,a){b=a(1);a=a(453);b.Observable.prototype.filter=a.filter},function(b,e,a){b=a(1);a=a(454);b.Observable.prototype["finally"]=a._finally;b.Observable.prototype._finally=a._finally},function(b,e,a){b=a(1);a=a(455);b.Observable.prototype.ignoreElements=a.ignoreElements},function(b,
e,a){b=a(1);a=a(456);b.Observable.prototype.map=a.map},function(b,e,a){b=a(1);a=a(457);b.Observable.prototype.mapTo=a.mapTo},function(b,e,a){b=a(1);a=a(170);b.Observable.prototype.merge=a.merge},function(b,e,a){b=a(1);a=a(171);b.Observable.prototype.mergeMap=a.mergeMap;b.Observable.prototype.flatMap=a.mergeMap},function(b,e,a){b=a(1);a=a(121);b.Observable.prototype.multicast=a.multicast},function(b,e,a){b=a(1);a=a(459);b.Observable.prototype.publish=a.publish},function(b,e,a){b=a(1);a=a(460);b.Observable.prototype.scan=
a.scan},function(b,e,a){b=a(1);a=a(461);b.Observable.prototype.share=a.share},function(b,e,a){b=a(1);a=a(462);b.Observable.prototype.skip=a.skip},function(b,e,a){b=a(1);a=a(463);b.Observable.prototype.startWith=a.startWith},function(b,e,a){b=a(1);a=a(464);b.Observable.prototype.switchMap=a.switchMap},function(b,e,a){b=a(1);a=a(465);b.Observable.prototype.take=a.take},function(b,e,a){b=a(1);a=a(466);b.Observable.prototype.takeUntil=a.takeUntil},function(b,e,a){b=a(1);a=a(467);b.Observable.prototype.timeout=
a.timeout},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(1);var d=a(119),c=a(40);a=function(a){function b(b,c){a.call(this);this.arrayLike=b;this.scheduler=c;c||1!==b.length||(this._isScalar=!0,this.value=b[0])}f(b,a);b.create=function(a,e){var f=a.length;return 0===f?new c.EmptyObservable:1===f?new d.ScalarObservable(a[0],e):new b(a,
e)};b.dispatch=function(a){var b=a.arrayLike,c=a.index,d=a.subscriber;d.closed||(c>=a.length?d.complete():(d.next(b[c]),a.index=c+1,this.schedule(a)))};b.prototype._subscribe=function(a){var c=this.arrayLike,d=this.scheduler,e=c.length;if(d)return d.schedule(b.dispatch,0,{arrayLike:c,index:0,length:e,subscriber:a});for(d=0;d<e&&!a.closed;d++)a.next(c[d]);a.complete()};return b}(b.Observable);e.ArrayLikeObservable=a},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=
a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(39);var d=a(1),c=a(10),h=a(32);a=function(a){function b(b,c){a.call(this);this.source=b;this.subjectFactory=c;this._refCount=0;this._isComplete=!1}f(b,a);b.prototype._subscribe=function(a){return this.getSubject().subscribe(a)};b.prototype.getSubject=function(){var a=this._subject;if(!a||a.isStopped)this._subject=this.subjectFactory();return this._subject};b.prototype.connect=
function(){var a=this._connection;a||(this._isComplete=!1,a=this._connection=new h.Subscription,a.add(this.source.subscribe(new g(this.getSubject(),this))),a.closed?(this._connection=null,a=h.Subscription.EMPTY):this._connection=a);return a};b.prototype.refCount=function(){return this.lift(new k(this))};return b}(d.Observable);e.ConnectableObservable=a;a=a.prototype;e.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,
writable:!0},_subscribe:{value:a._subscribe},_isComplete:{value:a._isComplete,writable:!0},getSubject:{value:a.getSubject},connect:{value:a.connect},refCount:{value:a.refCount}};var g=function(a){function b(b,c){a.call(this,b);this.connectable=c}f(b,a);b.prototype._error=function(b){this._unsubscribe();a.prototype._error.call(this,b)};b.prototype._complete=function(){this.connectable._isComplete=!0;this._unsubscribe();a.prototype._complete.call(this)};b.prototype._unsubscribe=function(){var a=this.connectable;
if(a){this.connectable=null;var b=a._connection;a._refCount=0;a._subject=null;a._connection=null;b&&b.unsubscribe()}};return b}(b.SubjectSubscriber),k=function(){function a(a){this.connectable=a}a.prototype.call=function(a,b){var c=this.connectable;c._refCount++;var d=new l(a,c),e=b.subscribe(d);d.closed||(d.connection=c.connect());return e};return a}(),l=function(a){function b(b,c){a.call(this,b);this.connectable=c}f(b,a);b.prototype._unsubscribe=function(){var a=this.connectable;if(a){this.connectable=
null;var b=a._refCount;0>=b?this.connection=null:(a._refCount=b-1,1<b?this.connection=null:(b=this.connection,a=a._connection,this.connection=null,!a||b&&a!==b||a.unsubscribe()))}else this.connection=null};return b}(c.Subscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.error=b;this.scheduler=
c}f(b,a);b.create=function(a,c){return new b(a,c)};b.dispatch=function(a){a.subscriber.error(a.error)};b.prototype._subscribe=function(a){var c=this.error,d=this.scheduler;a.syncErrorThrowable=!0;if(d)return d.schedule(b.dispatch,0,{error:c,subscriber:a});a.error(c)};return b}(a(1).Observable);e.ErrorObservable=b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=
b.prototype,new c)},d=a(72),c=a(176),h=a(180),g=a(167),k=a(441),l=a(55),n=a(436),m=a(122),p=a(1),u=a(458),q=a(123);b=function(a){function b(b,c){a.call(this,null);this.ish=b;this.scheduler=c}f(b,a);b.create=function(a,e){if(null!=a){if("function"===typeof a[q.observable])return a instanceof p.Observable&&!e?a:new b(a,e);if(d.isArray(a))return new l.ArrayObservable(a,e);if(h.isPromise(a))return new g.PromiseObservable(a,e);if("function"===typeof a[m.iterator]||"string"===typeof a)return new k.IteratorObservable(a,
e);if(c.isArrayLike(a))return new n.ArrayLikeObservable(a,e)}throw new TypeError((null!==a&&typeof a||a)+" is not observable");};b.prototype._subscribe=function(a){var b=this.ish,c=this.scheduler;return null==c?b[q.observable]().subscribe(a):b[q.observable]().subscribe(new u.ObserveOnSubscriber(a,c,0))};return b}(p.Observable);e.FromObservable=b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===
b?Object.create(b):(c.prototype=b.prototype,new c)},d=a(178);b=a(1);var c=a(86);a=function(a){function b(b,e){void 0===b&&(b=0);void 0===e&&(e=c.async);a.call(this);this.period=b;this.scheduler=e;if(!d.isNumeric(b)||0>b)this.period=0;e&&"function"===typeof e.schedule||(this.scheduler=c.async)}f(b,a);b.create=function(a,d){void 0===a&&(a=0);void 0===d&&(d=c.async);return new b(a,d)};b.dispatch=function(a){var b=a.subscriber,c=a.period;b.next(a.index);b.closed||(a.index+=1,this.schedule(a,c))};b.prototype._subscribe=
function(a){var c=this.period;a.add(this.scheduler.schedule(b.dispatch,c,{index:0,subscriber:a,period:c}))};return b}(b.Observable);e.IntervalObservable=a},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},d=a(33);b=a(1);var c=a(122);a=function(a){function b(b,d){a.call(this);this.scheduler=d;if(null==b)throw Error("iterator cannot be null.");
var e;if((e=b[c.iterator])||"string"!==typeof b)if(e||void 0===b.length){if(!e)throw new TypeError("object is not iterable");e=b[c.iterator]()}else e=new g(b);else e=new h(b);this.iterator=e}f(b,a);b.create=function(a,c){return new b(a,c)};b.dispatch=function(a){var b=a.index,c=a.iterator,d=a.subscriber;if(a.hasError)d.error(a.error);else{var e=c.next();e.done?d.complete():(d.next(e.value),a.index=b+1,d.closed?"function"===typeof c["return"]&&c["return"]():this.schedule(a))}};b.prototype._subscribe=
function(a){var c=this.iterator,d=this.scheduler;if(d)return d.schedule(b.dispatch,0,{index:0,iterator:c,subscriber:a});do{d=c.next();if(d.done){a.complete();break}else a.next(d.value);if(a.closed){"function"===typeof c["return"]&&c["return"]();break}}while(1)};return b}(b.Observable);e.IteratorObservable=a;var h=function(){function a(a,b,c){void 0===b&&(b=0);void 0===c&&(c=a.length);this.str=a;this.idx=b;this.len=c}a.prototype[c.iterator]=function(){return this};a.prototype.next=function(){return this.idx<
this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}};return a}(),g=function(){function a(a,b,c){void 0===b&&(b=0);if(void 0===c)if(c=+a.length,isNaN(c))c=0;else if(0!==c&&"number"===typeof c&&d.root.isFinite(c)){var e;e=+c;e=0===e?e:isNaN(e)?e:0>e?-1:1;c=e*Math.floor(Math.abs(c));c=0>=c?0:c>k?k:c}this.arr=a;this.idx=b;this.len=c}a.prototype[c.iterator]=function(){return this};a.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,
value:void 0}};return a}(),k=Math.pow(2,53)-1},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(1);var d=a(181);a=function(a){function b(){a.call(this)}f(b,a);b.create=function(){return new b};b.prototype._subscribe=function(a){d.noop()};return b}(b.Observable);e.NeverObservable=a},function(b,e,a){b=a(40);e.empty=b.EmptyObservable.create},
function(b,e,a){b=a(55);e.of=b.ArrayObservable.of},function(b,e,a){b=a(438);e._throw=b.ErrorObservable.create},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(54);var d=a(56);e._catch=function(a){a=new c(a);var b=this.lift(a);return a.caught=b};var c=function(){function a(a){this.selector=a}a.prototype.call=function(a,b){return b.subscribe(new h(a,
this.selector,this.caught))};return a}(),h=function(a){function b(b,c,d){a.call(this,b);this.selector=c;this.caught=d}f(b,a);b.prototype.error=function(b){if(!this.isStopped){var c=void 0;try{c=this.selector(b,this.caught)}catch(m){a.prototype.error.call(this,m);return}this._unsubscribeAndRecycle();this.add(d.subscribeToResult(this,c))}};return b}(b.OuterSubscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=
b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},d=a(55),c=a(72);b=a(54);var h=a(56),g={};e.combineLatest=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=null;"function"===typeof a[a.length-1]&&(b=a.pop());1===a.length&&c.isArray(a[0])&&(a=a[0].slice());a.unshift(this);return this.lift.call(new d.ArrayObservable(a),new k(b))};var k=function(){function a(a){this.project=a}a.prototype.call=function(a,b){return b.subscribe(new l(a,this.project))};
return a}();e.CombineLatestOperator=k;var l=function(a){function b(b,c){a.call(this,b);this.project=c;this.active=0;this.values=[];this.observables=[]}f(b,a);b.prototype._next=function(a){this.values.push(g);this.observables.push(a)};b.prototype._complete=function(){var a=this.observables,b=a.length;if(0===b)this.destination.complete();else{this.toRespond=this.active=b;for(var c=0;c<b;c++){var d=a[c];this.add(h.subscribeToResult(this,d,d,c))}}};b.prototype.notifyComplete=function(a){0===--this.active&&
this.destination.complete()};b.prototype.notifyNext=function(a,b,c,d,e){a=this.values;d=a[c];d=this.toRespond?d===g?--this.toRespond:this.toRespond:0;a[c]=b;0===d&&(this.project?this._tryProject(a):this.destination.next(a.slice()))};b.prototype._tryProject=function(a){var b;try{b=this.project.apply(this,a)}catch(q){this.destination.error(q);return}this.destination.next(b)};return b}(b.OuterSubscriber);e.CombineLatestSubscriber=l},function(b,e,a){var f=a(120);e.concatAll=function(){return this.lift(new f.MergeAllOperator(1))}},
function(b,e,a){var f=a(171);e.concatMap=function(a,b){return this.lift(new f.MergeMapOperator(a,b,1))}},function(b,e,a){function f(a){a.debouncedNext()}var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(10);var c=a(86);e.debounceTime=function(a,b){void 0===b&&(b=c.async);return this.lift(new h(a,b))};var h=function(){function a(a,b){this.dueTime=a;this.scheduler=
b}a.prototype.call=function(a,b){return b.subscribe(new g(a,this.dueTime,this.scheduler))};return a}(),g=function(a){function b(b,c,d){a.call(this,b);this.dueTime=c;this.scheduler=d;this.lastValue=this.debouncedSubscription=null;this.hasValue=!1}d(b,a);b.prototype._next=function(a){this.clearDebounce();this.lastValue=a;this.hasValue=!0;this.add(this.debouncedSubscription=this.scheduler.schedule(f,this.dueTime,this))};b.prototype._complete=function(){this.debouncedNext();this.destination.complete()};
b.prototype.debouncedNext=function(){this.clearDebounce();this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)};b.prototype.clearDebounce=function(){var a=this.debouncedSubscription;null!==a&&(this.remove(a),a.unsubscribe(),this.debouncedSubscription=null)};return b}(b.Subscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=
b.prototype,new c)};b=a(10);var d=a(126),c=a(87);e.distinctUntilChanged=function(a,b){return this.lift(new h(a,b))};var h=function(){function a(a,b){this.compare=a;this.keySelector=b}a.prototype.call=function(a,b){return b.subscribe(new g(a,this.compare,this.keySelector))};return a}(),g=function(a){function b(b,c,d){a.call(this,b);this.keySelector=d;this.hasKey=!1;"function"===typeof c&&(this.compare=c)}f(b,a);b.prototype.compare=function(a,b){return a===b};b.prototype._next=function(a){var b=a;if(this.keySelector&&
(b=d.tryCatch(this.keySelector)(a),b===c.errorObject))return this.destination.error(c.errorObject.e);var e=!1;if(this.hasKey){if(e=d.tryCatch(this.compare)(this.key,b),e===c.errorObject)return this.destination.error(c.errorObject.e)}else this.hasKey=!0;!1===!!e&&(this.key=b,this.destination.next(a))};return b}(b.Subscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):
(c.prototype=b.prototype,new c)},d=a(10);e._do=function(a,b,d){return this.lift(new c(a,b,d))};var c=function(){function a(a,b,c){this.nextOrObserver=a;this.error=b;this.complete=c}a.prototype.call=function(a,b){return b.subscribe(new h(a,this.nextOrObserver,this.error,this.complete))};return a}(),h=function(a){function b(b,c,e,f){a.call(this,b);b=new d.Subscriber(c,e,f);b.syncErrorThrowable=!0;this.add(b);this.safeSubscriber=b}f(b,a);b.prototype._next=function(a){var b=this.safeSubscriber;b.next(a);
b.syncErrorThrown?this.destination.error(b.syncErrorValue):this.destination.next(a)};b.prototype._error=function(a){var b=this.safeSubscriber;b.error(a);b.syncErrorThrown?this.destination.error(b.syncErrorValue):this.destination.error(a)};b.prototype._complete=function(){var a=this.safeSubscriber;a.complete();a.syncErrorThrown?this.destination.error(a.syncErrorValue):this.destination.complete()};return b}(d.Subscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=
a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(10);e.filter=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.predicate=a;this.thisArg=b}a.prototype.call=function(a,b){return b.subscribe(new c(a,this.predicate,this.thisArg))};return a}(),c=function(a){function b(b,c,d){a.call(this,b);this.predicate=c;this.thisArg=d;this.count=0;this.predicate=c}f(b,a);b.prototype._next=function(a){var b;try{b=
this.predicate.call(this.thisArg,a,this.count++)}catch(n){this.destination.error(n);return}b&&this.destination.next(a)};return b}(b.Subscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(10);var d=a(32);e._finally=function(a){return this.lift(new c(a))};var c=function(){function a(a){this.callback=a}a.prototype.call=function(a,b){return b.subscribe(new h(a,
this.callback))};return a}(),h=function(a){function b(b,c){a.call(this,b);this.add(new d.Subscription(c))}f(b,a);return b}(b.Subscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(10);var d=a(181);e.ignoreElements=function(){return this.lift(new c)};var c=function(){function a(){}a.prototype.call=function(a,b){return b.subscribe(new h(a))};
return a}(),h=function(a){function b(){a.apply(this,arguments)}f(b,a);b.prototype._next=function(a){d.noop()};return b}(b.Subscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(10);e.map=function(a,b){if("function"!==typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new d(a,
b))};var d=function(){function a(a,b){this.project=a;this.thisArg=b}a.prototype.call=function(a,b){return b.subscribe(new c(a,this.project,this.thisArg))};return a}();e.MapOperator=d;var c=function(a){function b(b,c,d){a.call(this,b);this.project=c;this.count=0;this.thisArg=d||this}f(b,a);b.prototype._next=function(a){var b;try{b=this.project.call(this.thisArg,a,this.count++)}catch(n){this.destination.error(n);return}this.destination.next(b)};return b}(b.Subscriber)},function(b,e,a){var f=this&&this.__extends||
function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(10);e.mapTo=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.value=a}a.prototype.call=function(a,b){return b.subscribe(new c(a,this.value))};return a}(),c=function(a){function b(b,c){a.call(this,b);this.value=c}f(b,a);b.prototype._next=function(a){this.destination.next(this.value)};return b}(b.Subscriber)},
function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(10);var d=a(405);e.observeOn=function(a,b){void 0===b&&(b=0);return this.lift(new c(a,b))};var c=function(){function a(a,b){void 0===b&&(b=0);this.scheduler=a;this.delay=b}a.prototype.call=function(a,b){return b.subscribe(new h(a,this.scheduler,this.delay))};return a}();e.ObserveOnOperator=
c;var h=function(a){function b(b,c,d){void 0===d&&(d=0);a.call(this,b);this.scheduler=c;this.delay=d}f(b,a);b.dispatch=function(a){a.notification.observe(a.destination);this.unsubscribe()};b.prototype.scheduleMessage=function(a){this.add(this.scheduler.schedule(b.dispatch,this.delay,new g(a,this.destination)))};b.prototype._next=function(a){this.scheduleMessage(d.Notification.createNext(a))};b.prototype._error=function(a){this.scheduleMessage(d.Notification.createError(a))};b.prototype._complete=
function(){this.scheduleMessage(d.Notification.createComplete())};return b}(b.Subscriber);e.ObserveOnSubscriber=h;var g=function(){return function(a,b){this.notification=a;this.destination=b}}();e.ObserveOnMessage=g},function(b,e,a){var f=a(39),d=a(121);e.publish=function(a){return a?d.multicast.call(this,function(){return new f.Subject},a):d.multicast.call(this,new f.Subject)}},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(10);e.scan=function(a,b){var c=!1;2<=arguments.length&&(c=!0);return this.lift(new d(a,b,c))};var d=function(){function a(a,b,c){void 0===c&&(c=!1);this.accumulator=a;this.seed=b;this.hasSeed=c}a.prototype.call=function(a,b){return b.subscribe(new c(a,this.accumulator,this.seed,this.hasSeed))};return a}(),c=function(a){function b(b,c,d,e){a.call(this,b);this.accumulator=c;this._seed=d;this.hasSeed=e;this.index=
0}f(b,a);Object.defineProperty(b.prototype,"seed",{get:function(){return this._seed},set:function(a){this.hasSeed=!0;this._seed=a},enumerable:!0,configurable:!0});b.prototype._next=function(a){if(this.hasSeed)return this._tryNext(a);this.seed=a;this.destination.next(a)};b.prototype._tryNext=function(a){var b=this.index++,c;try{c=this.accumulator(this.seed,a,b)}catch(m){this.destination.error(m)}this.seed=c;this.destination.next(c)};return b}(b.Subscriber)},function(b,e,a){function f(){return new c.Subject}
var d=a(121),c=a(39);e.share=function(){return d.multicast.call(this,f).refCount()}},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(10);e.skip=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.total=a}a.prototype.call=function(a,b){return b.subscribe(new c(a,this.total))};return a}(),c=function(a){function b(b,
c){a.call(this,b);this.total=c;this.count=0}f(b,a);b.prototype._next=function(a){++this.count>this.total&&this.destination.next(a)};return b}(b.Subscriber)},function(b,e,a){var f=a(55),d=a(119),c=a(40),h=a(169),g=a(62);e.startWith=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=a[a.length-1];g.isScheduler(b)?a.pop():b=null;var e=a.length;return 1===e?h.concatStatic(new d.ScalarObservable(a[0],b),this):1<e?h.concatStatic(new f.ArrayObservable(a,b),this):h.concatStatic(new c.EmptyObservable(b),
this)}},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(54);var d=a(56);e.switchMap=function(a,b){return this.lift(new c(a,b))};var c=function(){function a(a,b){this.project=a;this.resultSelector=b}a.prototype.call=function(a,b){return b.subscribe(new h(a,this.project,this.resultSelector))};return a}(),h=function(a){function b(b,c,d){a.call(this,
b);this.project=c;this.resultSelector=d;this.index=0}f(b,a);b.prototype._next=function(a){var b,c=this.index++;try{b=this.project(a,c)}catch(p){this.destination.error(p);return}this._innerSub(b,a,c)};b.prototype._innerSub=function(a,b,c){var e=this.innerSubscription;e&&e.unsubscribe();this.add(this.innerSubscription=d.subscribeToResult(this,a,b,c))};b.prototype._complete=function(){var b=this.innerSubscription;b&&!b.closed||a.prototype._complete.call(this)};b.prototype._unsubscribe=function(){this.innerSubscription=
null};b.prototype.notifyComplete=function(b){this.remove(b);this.innerSubscription=null;this.isStopped&&a.prototype._complete.call(this)};b.prototype.notifyNext=function(a,b,c,d,e){this.resultSelector?this._tryNotifyNext(a,b,c,d):this.destination.next(b)};b.prototype._tryNotifyNext=function(a,b,c,d){var e;try{e=this.resultSelector(a,b,c,d)}catch(q){this.destination.error(q);return}this.destination.next(e)};return b}(b.OuterSubscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=
a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(10);var d=a(472),c=a(40);e.take=function(a){return 0===a?new c.EmptyObservable:this.lift(new h(a))};var h=function(){function a(a){this.total=a;if(0>this.total)throw new d.ArgumentOutOfRangeError;}a.prototype.call=function(a,b){return b.subscribe(new g(a,this.total))};return a}(),g=function(a){function b(b,c){a.call(this,b);this.total=c;this.count=0}f(b,a);b.prototype._next=
function(a){var b=this.total,c=++this.count;c<=b&&(this.destination.next(a),c===b&&(this.destination.complete(),this.unsubscribe()))};return b}(b.Subscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=a(54);var d=a(56);e.takeUntil=function(a){return this.lift(new c(a))};var c=function(){function a(a){this.notifier=a}a.prototype.call=
function(a,b){return b.subscribe(new h(a,this.notifier))};return a}(),h=function(a){function b(b,c){a.call(this,b);this.notifier=c;this.add(d.subscribeToResult(this,c))}f(b,a);b.prototype.notifyNext=function(a,b,c,d,e){this.complete()};b.prototype.notifyComplete=function(){};return b}(b.OuterSubscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,
new c)},d=a(86),c=a(177);b=a(10);var h=a(175);e.timeout=function(a,b){void 0===b&&(b=d.async);var e=c.isDate(a),f=e?+a-b.now():Math.abs(a);return this.lift(new g(f,e,b,new h.TimeoutError))};var g=function(){function a(a,b,c,d){this.waitFor=a;this.absoluteTimeout=b;this.scheduler=c;this.errorInstance=d}a.prototype.call=function(a,b){return b.subscribe(new k(a,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))};return a}(),k=function(a){function b(b,c,d,e,f){a.call(this,b);this.absoluteTimeout=
c;this.waitFor=d;this.scheduler=e;this.errorInstance=f;this.action=null;this.scheduleTimeout()}f(b,a);b.dispatchTimeout=function(a){a.error(a.errorInstance)};b.prototype.scheduleTimeout=function(){var a=this.action;a?this.action=a.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(b.dispatchTimeout,this.waitFor,this))};b.prototype._next=function(b){this.absoluteTimeout||this.scheduleTimeout();a.prototype._next.call(this,b)};b.prototype._unsubscribe=function(){this.errorInstance=
this.scheduler=this.action=null};return b}(b.Subscriber)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this)}f(b,a);b.prototype.schedule=function(a,b){return this};return b}(a(32).Subscription);e.Action=b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},d=a(473);b=function(a){function b(b,c){a.call(this,b,c);this.scheduler=b;this.work=c}f(b,a);b.prototype.requestAsyncId=function(b,c,e){void 0===e&&(e=0);if(null!==e&&0<e)return a.prototype.requestAsyncId.call(this,b,c,e);b.actions.push(this);return b.scheduled||(b.scheduled=d.Immediate.setImmediate(b.flush.bind(b,null)))};b.prototype.recycleAsyncId=function(b,c,e){void 0===e&&(e=0);if(null!==e&&0<e||null===e&&0<this.delay)return a.prototype.recycleAsyncId.call(this,
b,c,e);0===b.actions.length&&(d.Immediate.clearImmediate(c),b.scheduled=void 0)};return b}(a(172).AsyncAction);e.AsapAction=b},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){a.apply(this,arguments)}f(b,a);b.prototype.flush=function(a){this.active=!0;this.scheduled=void 0;var b=this.actions,c,d=-1,e=b.length;a=a||
b.shift();do if(c=a.execute(a.state,a.delay))break;while(++d<e&&(a=b.shift()));this.active=!1;if(c){for(;++d<e&&(a=b.shift());)a.unsubscribe();throw c;}};return b}(a(173).AsyncScheduler);e.AsapScheduler=b},function(b,e,a){b=a(469);a=a(470);e.asap=new a.AsapScheduler(b.AsapAction)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){var b=
a.call(this,"argument out of range");this.name=b.name="ArgumentOutOfRangeError";this.stack=b.stack;this.message=b.message}f(b,a);return b}(Error);e.ArgumentOutOfRangeError=b},function(b,e,a){b=a(33);a=function(){function a(a){this.root=a;a.setImmediate&&"function"===typeof a.setImmediate?(this.setImmediate=a.setImmediate.bind(a),this.clearImmediate=a.clearImmediate.bind(a)):(this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():
this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate(),a=function h(a){delete h.instance.tasksByHandle[a]},a.instance=this,this.clearImmediate=a)}a.prototype.identify=function(a){return this.root.Object.prototype.toString.call(a)};a.prototype.canUseProcessNextTick=
function(){return"[object process]"===this.identify(this.root.process)};a.prototype.canUseMessageChannel=function(){return!!this.root.MessageChannel};a.prototype.canUseReadyStateChange=function(){var a=this.root.document;return!!(a&&"onreadystatechange"in a.createElement("script"))};a.prototype.canUsePostMessage=function(){var a=this.root;if(a.postMessage&&!a.importScripts){var b=!0,e=a.onmessage;a.onmessage=function(){b=!1};a.postMessage("","*");a.onmessage=e;return b}return!1};a.prototype.partiallyApplied=
function(a){for(var b=[],d=1;d<arguments.length;d++)b[d-1]=arguments[d];d=function k(){var a=k.handler,b=k.args;"function"===typeof a?a.apply(void 0,b):(new Function(""+a))()};d.handler=a;d.args=b;return d};a.prototype.addFromSetImmediateArguments=function(a){this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,a);return this.nextHandle++};a.prototype.createProcessNextTickSetImmediate=function(){var a=function h(){var a=h.instance,b=a.addFromSetImmediateArguments(arguments);a.root.process.nextTick(a.partiallyApplied(a.runIfPresent,
b));return b};a.instance=this;return a};a.prototype.createPostMessageSetImmediate=function(){var a=this.root,b="setImmediate$"+a.Math.random()+"$",e=function k(c){var d=k.instance;c.source===a&&"string"===typeof c.data&&0===c.data.indexOf(b)&&d.runIfPresent(+c.data.slice(b.length))};e.instance=this;a.addEventListener("message",e,!1);e=function l(){var a=l,b=a.messagePrefix,a=a.instance,c=a.addFromSetImmediateArguments(arguments);a.root.postMessage(b+c,"*");return c};e.instance=this;e.messagePrefix=
b;return e};a.prototype.runIfPresent=function(a){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,a),0);else{var b=this.tasksByHandle[a];if(b){this.currentlyRunningATask=!0;try{b()}finally{this.clearImmediate(a),this.currentlyRunningATask=!1}}}};a.prototype.createMessageChannelSetImmediate=function(){var a=this,b=new this.root.MessageChannel;b.port1.onmessage=function(b){a.runIfPresent(b.data)};var e=function k(){var a=k,b=a.channel,a=a.instance.addFromSetImmediateArguments(arguments);
b.port2.postMessage(a);return a};e.channel=b;e.instance=this;return e};a.prototype.createReadyStateChangeSetImmediate=function(){var a=function h(){var a=h.instance,b=a.root.document,d=b.documentElement,e=a.addFromSetImmediateArguments(arguments),f=b.createElement("script");f.onreadystatechange=function(){a.runIfPresent(e);f.onreadystatechange=null;d.removeChild(f);f=null};d.appendChild(f);return e};a.instance=this;return a};a.prototype.createSetTimeoutSetImmediate=function(){var a=function h(){var a=
h.instance,b=a.addFromSetImmediateArguments(arguments);a.root.setTimeout(a.partiallyApplied(a.runIfPresent,b),0);return b};a.instance=this;return a};return a}();e.ImmediateDefinition=a;e.Immediate=new a(b.root)},function(b,e,a){var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b){a.call(this);this.errors=b;b=Error.call(this,b?b.length+
" errors occurred during unsubscription:\n "+b.map(function(a,b){return b+1+") "+a.toString()}).join("\n "):"");this.name=b.name="UnsubscriptionError";this.stack=b.stack;this.message=b.message}f(b,a);return b}(Error);e.UnsubscriptionError=b},function(b,e,a){var f=a(10),d=a(124),c=a(164);e.toSubscriber=function(a,b,e){if(a){if(a instanceof f.Subscriber)return a;if(a[d.rxSubscriber])return a[d.rxSubscriber]()}return a||b||e?new f.Subscriber(a,b,e):new f.Subscriber(c.empty)}}])});
/**
* This is for compatibility between EME implementation in chromium version 41
* used currently in NCP G6 target and RX-Player 1.4.2 which is using newer EME API.
*
*/
if (!MediaKeySystemAccess.prototype.getConfiguration) {
MediaKeySystemAccess.prototype.getConfiguration = function () {
return { sessionTypes: ['temporary', 'persistent-license'] };
}
}
var player = new RxPlayer();
var videoElement = player.getVideoElement();
videoElement.style.position = "absolute";
videoElement.style.top = "0px";
videoElement.style.left = "0px";
videoElement.style.height = "720px";
videoElement.style.width = "1280px";
document.body.appendChild(videoElement);
player.loadVideo({
url: "http://r.dcs.redcdn.pl/livess/o2/atendesoftware/live/live-drm.livx/manifest",
transport: "smooth",
autoPlay: true,
keySystems: [
{
type: "playready",
getLicense: function(challenge) {
document.body.style.backgroundColor = "blue";
return new Promise(function(res) {
function reqListener () {
// var data = this.responseText;
// var response = [];
// for (var i = 0; i < data.length; ++i) {
// response.push(data.charCodeAt(i));
// }
// return new Uint8Array(response);
res(this.response);
}
var uint16Buffer = new Uint16Array(challenge.buffer);
var requestStr = String.fromCharCode.apply(null, uint16Buffer);
var xml = (new window.DOMParser()).parseFromString(requestStr, 'text/xml');
var challengeStr = atob(xml.querySelector('Challenge').textContent);
console.log("challengeString", challengeStr);
var oReq = new XMLHttpRequest();
oReq.addEventListener("load", reqListener);
oReq.responseType = "arraybuffer";
oReq.open("POST", "http://ls-proxy.redlabs.pl/license/playready?key=2c3507dbb35d935d26e2e7e28548cab8");
oReq.send(challengeStr);
});
}
}
]
});
setInterval(function() {
var untilTime = Date.now() + 1800;
var currentTime;
do {
currentTime = Date.now();
} while (untilTime - currentTime > 0);
}, 6000);
document.body.style.backgroundColor = "brown";
window.player = player;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment