(function(n,t){function gt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||"function"!==r&&(0===t||"number"==typeof t&&t>0&&t-1 in n)}function te(n){var t=ni[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ur(n,r,u,f){if(i.acceptData(n)){var h,o,c=i.expando,l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&s[e]&&(f||s[e].data)||u!==t||"string"!=typeof r)return e||(e=l?n[c]=b.pop()||i.guid++:c),s[e]||(s[e]=l?{}:{toJSON:i.noop}),("object"==typeof r||"function"==typeof r)&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),"string"==typeof r?(h=o[r],null==h&&(h=o[i.camelCase(r)])):h=o,h}}function fr(n,t,r){if(i.acceptData(n)){var e,o,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(u[f]){if(t&&(e=r?u[f]:u[f].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=(t in e)?[t]:t.split(" ")),o=t.length;o--;)delete e[t[o]];if(r?!ti(e):!i.isEmptyObject(e))return}(r||(delete u[f].data,ti(u[f])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[f]:u[f]=null)}}}function er(n,r,u){if(u===t&&1===n.nodeType){var f="data-"+r.replace(rr,"-$1").toLowerCase();if(u=n.getAttribute(f),"string"==typeof u){try{u="true"===u?!0:"false"===u?!1:"null"===u?null:+u+""===u?+u:ir.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function ti(n){var t;for(t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function ct(){return!0}function g(){return!1}function cr(){try{return r.activeElement}catch(n){}}function ar(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(oe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function vr(n){var i=yr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function gr(n,t){return i.nodeName(n,"table")&&i.nodeName(1===t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function nu(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function tu(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function hi(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function iu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function be(n,t){var r,f,u;if(1===t.nodeType){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}"script"===r&&t.text!==n.text?(nu(t).text=n.text,tu(t)):"object"===r?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===r&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===r?t.defaultSelected=t.selected=n.defaultSelected:("input"===r||"textarea"===r)&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;null!=(e=s[h]);h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function ke(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function ut(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&ut(r)&&(e[u]=i._data(r,"olddisplay",au(r.nodeName)))):e[u]||(o=ut(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,r){var e=!0,u="width"===t?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f);if(0>=u||null==u){if(u=y(n,t,f),(0>u||null==u)&&(u=n.style[t]),lt.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]);u=parseFloat(u)||0}return u+cu(n,t,r||(o?"border":"content"),e,f)+"px"}function au(n){var u=r,t=uu[n];return t||(t=vu(n,u),"none"!==t&&t||(rt=(rt||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(rt[0].contentWindow||rt[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=vu(n,u),rt.detach()),uu[n]=t),t}function vu(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function li(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):li(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)li(n+"["+f+"]",t[f],r,u)}function gu(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function nf(n,r,u,f){function o(h){var c;return e[h]=!0,i.each(n[h]||[],function(n,i){var h=i(r,u,f);return"string"!=typeof h||s||e[h]?s?!(c=h):t:(r.dataTypes.unshift(h),o(h),!1)}),c}var e={},s=n===yi;return o(r.dataTypes[0])||!e["*"]&&o("*")}function pi(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function ao(n,i,r){for(var s,o,f,e,h=n.contents,u=n.dataTypes;"*"===u[0];)u.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(e in h)if(h[e]&&h[e].test(o)){u.unshift(e);break}if(u[0]in r)f=u[0];else{for(e in r){if(!u[0]||n.converters[e+" "+u[0]]){f=e;break}s||(s=e)}f=f||s}return f?(f!==u[0]&&u.unshift(f),r[f]):t}function vo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function rf(){try{return new n.XMLHttpRequest}catch(t){}}function yo(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ff(){return setTimeout(function(){it=t}),it=i.now()}function ef(n,t,i){for(var u,f=(ft[t]||[]).concat(ft["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function of(n,t,r){var h,e,o=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=it||ff(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:it||ff(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(bo(s,u.opts.specialEasing);l>o;o++)if(h=pt[o].call(u,n,s,u.opts))return h;return i.map(s,ef,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function bo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ko(n,t,r){var u,a,v,c,e,y,s=this,l={},o=n.style,h=n.nodeType&&ut(n),f=i._data(n,"fxshow");r.queue||(e=i._queueHooks(n,"fx"),null==e.unqueued&&(e.unqueued=0,y=e.empty.fire,e.empty.fire=function(){e.unqueued||y()}),e.unqueued++,s.always(function(){s.always(function(){e.unqueued--;i.queue(n,"fx").length||e.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(r.overflow=[o.overflow,o.overflowX,o.overflowY],"inline"===i.css(n,"display")&&"none"===i.css(n,"float")&&(i.support.inlineBlockNeedsLayout&&"inline"!==au(n.nodeName)?o.zoom=1:o.display="inline-block"));r.overflow&&(o.overflow="hidden",i.support.shrinkWrapBlocks||s.always(function(){o.overflow=r.overflow[0];o.overflowX=r.overflow[1];o.overflowY=r.overflow[2]}));for(u in t)if(a=t[u],po.exec(a)){if(delete t[u],v=v||"toggle"===a,a===(h?"hide":"show"))continue;l[u]=f&&f[u]||i.style(n,u)}if(!i.isEmptyObject(l)){f?"hidden"in f&&(h=f.hidden):f=i._data(n,"fxshow",{});v&&(f.hidden=!h);h?i(n).show():s.done(function(){i(n).hide()});s.done(function(){var t;i._removeData(n,"fxshow");for(t in l)i.style(n,t,l[t])});for(u in l)c=ef(h?f[u]:0,u,s),u in f||(f[u]=c.start,h&&(c.end=c.start,c.start="width"===u||"height"===u?1:0))}}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function wt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function sf(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var et,bi,o=typeof t,hf=n.location,r=n.document,ki=r.documentElement,cf=n.jQuery,lf=n.$,ot={},b=[],bt="1.10.2",di=b.concat,kt=b.push,l=b.slice,gi=b.indexOf,af=ot.toString,k=ot.hasOwnProperty,dt=bt.trim,i=function(n,t){return new i.fn.init(n,t,bi)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,vf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,nr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pf=/^[\],:{}\s]*$/,wf=/(?:^|:|,)(?:\s*\[)+/g,bf=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,kf=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,df=/^-ms-/,gf=/-([\da-z])/gi,ne=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||"load"===n.type||"complete"===r.readyState)&&(tr(),i.ready())},tr=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},ni,ir,rr,wi,at,nt,tt,tf,vt;i.fn=i.prototype={jquery:bt,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if("string"==typeof n){if(e="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yf.exec(n),!e||!e[1]&&u)return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n);if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),nr.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1;this[0]=o}return this.context=r,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return null==n?this.toArray():0>n?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:kt,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for("boolean"==typeof n&&(c=n,n=arguments[1]||{},f=2),"object"==typeof n||i.isFunction(n)||(n={}),l===f&&(n=this,--f);l>f;f++)if(null!=(s=arguments[f]))for(e in s)u=n[e],r=s[e],n!==r&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n};i.extend({expando:"jQuery"+(bt+Math.random()).replace(/\D/g,""),noConflict:function(t){return n.$===i&&(n.$=lf),t&&n.jQuery===i&&(n.jQuery=cf),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(et.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ot[af.call(n)]||"object":typeof n},isPlainObject:function(n){var r;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!k.call(n,"constructor")&&!k.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(i.support.ownLast)for(r in n)return k.call(n,r);for(r in n);return r===t||k.call(n,r)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},error:function(n){throw Error(n);},parseHTML:function(n,t,u){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(u=t,t=!1);t=t||r;var f=nr.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(r){return n.JSON&&n.JSON.parse?n.JSON.parse(r):null===r?r:"string"==typeof r&&(r=i.trim(r),r&&pf.test(r.replace(bf,"@").replace(kf,"]").replace(wf,"")))?Function("return "+r)():(i.error("Invalid JSON: "+r),t)},parseXML:function(r){var u,f;if(!r||"string"!=typeof r)return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(df,"ms-").replace(gf,ne)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=gt(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:dt&&!dt.call("﻿ ")?function(n){return null==n?"":dt.call(n)}:function(n){return null==n?"":(n+"").replace(vf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(gt(Object(n))?i.merge(r,"string"==typeof n?[n]:n):kt.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(gi)return gi.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if("number"==typeof f)for(;f>r;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;e>r;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=gt(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),null!=u&&(f[f.length]=u);return di.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return"string"==typeof r&&(e=n[r],r=n,n=e),i.isFunction(n)?(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u):t},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=null==u;if("object"===i.type(u)){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;l>h;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return(new Date).getTime()},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}});i.ready.promise=function(t){if(!et)if(et=i.Deferred(),"complete"===r.readyState)setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h);n.attachEvent("onload",h);var u=!1;try{u=null==n.frameElement&&r.documentElement}catch(e){}u&&u.doScroll&&function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}tr();i.ready()}}()}return et.promise(t)};i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});bi=i(r),function(n,t){function u(n,t,i,r){var p,u,f,l,w,a,k,c,g,d;if((t?t.ownerDocument||t:y)!==s&&nt(t),t=t||s,i=i||[],!n||"string"!=typeof n)return i;if(1!==(l=t.nodeType)&&9!==l)return[];if(v&&!r){if(p=or.exec(n))if(f=p[1]){if(9===l){if(u=t.getElementById(f),!u||!u.parentNode)return i;if(u.id===f)return i.push(u),i}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&ot(t,u)&&u.id===f)return i.push(u),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((f=p[3])&&e.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(f)),i}if(e.qsa&&(!h||!h.test(n))){if(c=k=o,g=t,d=9===l&&n,1===l&&"object"!==t.nodeName.toLowerCase()){for(a=pt(n),(k=t.getAttribute("id"))?c=k.replace(cr,"\\$&"):t.setAttribute("id",c),c="[id='"+c+"'] ",w=a.length;w--;)a[w]=c+wt(a[w]);g=ti.test(n)&&t.parentNode||t;d=a.join(",")}if(d)try{return b.apply(i,g.querySelectorAll(d)),i}catch(tt){}finally{k||t.removeAttribute("id")}}}return pr(n.replace(vt,"$1"),t,i,r)}function ri(){function n(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}var t=[];return n}function c(n){return n[o]=!0,n}function l(n){var t=s.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ui(n,t){for(var u=n.split("|"),i=n.length;i--;)r.attrHandle[u[i]]=t}function bi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function rt(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ki(){}function pt(n,t){var e,f,s,o,i,h,c,l=li[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ir.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[]));e=!1;(f=rr.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(vt," ")}),i=i.slice(e.length));for(o in r.filter)(f=yt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):li(n,h).slice(0)}function wt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function fi(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=di++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,e){var h,s,c,l=p+" "+f;if(e){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,e))return!0}else while(t=t[r])if(1===t.nodeType||u)if(c=t[o]||(t[o]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ht)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,e)||ht,s[1]===!0)return!0}}function ei(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function oi(n,t,i,r,u,f){return r&&!r[o]&&(r=oi(r)),u&&!u[o]&&(u=oi(u,f)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||yr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:bt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=bt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?it.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=bt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function si(n){for(var s,u,i,e=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=fi(function(n){return n===s},c,!0),a=fi(function(n){return it.call(s,n)>-1},c,!0),f=[function(n,t,i){return!h&&(i||t!==lt)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];e>t;t++)if(u=r.relative[n[t].type])f=[fi(ei(f),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[o]){for(i=++t;e>i;i++)if(r.relative[n[i].type])break;return oi(t>1&&ei(f),t>1&&wt(n.slice(0,t-1).concat({value:" "===n[t-2].type?"*":""})).replace(vt,"$1"),u,i>t&&si(n.slice(t,i)),e>i&&si(n=n.slice(i)),e>i&&wt(n))}f.push(u)}return ei(f)}function vr(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var y,g,k,w=[],d=0,v="0",nt=o&&[],tt=null!=a,it=lt,ut=o||e&&r.find.TAG("*",a&&h.parentNode||h),rt=p+=null==it?1:Math.random()||.1;for(tt&&(lt=h!==s&&h,ht=f);null!=(y=ut[v]);v++){if(e&&y){for(g=0;k=n[g++];)if(k(y,h,c)){l.push(y);break}tt&&(p=rt,ht=++f)}i&&((y=!k&&y)&&d--,o&&nt.push(y))}if(d+=v,i&&v!==d){for(g=0;k=t[g++];)k(nt,w,h,c);if(o){if(d>0)while(v--)nt[v]||w[v]||(w[v]=nr.call(l));w=bt(w)}b.apply(l,w);tt&&!o&&w.length>0&&d+t.length>1&&u.uniqueSort(l)}return tt&&(p=rt,lt=it),nt};return i?c(o):o}function yr(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function pr(n,t,i,u){var s,f,o,c,l,h=pt(n);if(!u&&1===h.length){if(f=h[0]=h[0].slice(0),f.length>2&&"ID"===(o=f[0]).type&&e.getById&&9===t.nodeType&&v&&r.relative[f[1].type]){if(t=(r.find.ID(o.matches[0].replace(k,d),t)||[])[0],!t)return i;n=n.slice(f.shift().value.length)}for(s=yt.needsContext.test(n)?0:f.length;s--;){if(o=f[s],r.relative[c=o.type])break;if((l=r.find[c])&&(u=l(o.matches[0].replace(k,d),ti.test(f[0].type)&&t.parentNode||t))){if(f.splice(s,1),n=u.length&&wt(f),!n)return b.apply(i,u),i;break}}}return kt(n,h)(u,t,!v,i,ti.test(n)),i}var ut,e,ht,r,ct,hi,kt,lt,g,nt,s,a,v,h,tt,at,ot,o="sizzle"+-new Date,y=n.document,p=0,di=0,ci=ri(),li=ri(),ai=ri(),ft=!1,dt=function(n,t){return n===t?(ft=!0,0):0},st=typeof t,vi=-2147483648,gi={}.hasOwnProperty,w=[],nr=w.pop,tr=w.push,b=w.push,yi=w.slice,it=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",f="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",pi=et.replace("w","w#"),wi="\\["+f+"*("+et+")"+f+"*(?:([*^$|!~]?=)"+f+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+pi+")|)|)"+f+"*\\]",ni=":("+et+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+wi.replace(3,8)+")*)|.*)\\)|)",vt=RegExp("^"+f+"+|((?:^|[^\\\\])(?:\\\\.)*)"+f+"+$","g"),ir=RegExp("^"+f+"*,"+f+"*"),rr=RegExp("^"+f+"*([>+~]|"+f+")"+f+"*"),ti=RegExp(f+"*[+~]"),ur=RegExp("="+f+"*([^\\]'\"]*)"+f+"*\\]","g"),fr=RegExp(ni),er=RegExp("^"+pi+"$"),yt={ID:RegExp("^#("+et+")"),CLASS:RegExp("^\\.("+et+")"),TAG:RegExp("^("+et.replace("w","w*")+")"),ATTR:RegExp("^"+wi),PSEUDO:RegExp("^"+ni),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:RegExp("^(?:"+gt+")$","i"),needsContext:RegExp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},ii=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,cr=/'|\\/g,k=RegExp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{b.apply(w=yi.call(y.childNodes),y.childNodes);w[y.childNodes.length].nodeType}catch(wr){b={apply:w.length?function(n,t){tr.apply(n,yi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}hi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};e=u.support={};nt=u.setDocument=function(n){var i=n?n.ownerDocument||n:y,u=i.defaultView;return i!==s&&9===i.nodeType&&i.documentElement?(s=i,a=i.documentElement,v=!hi(i),u&&u.attachEvent&&u!==u.top&&u.attachEvent("onbeforeunload",function(){nt()}),e.attributes=l(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=l(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=l(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),e.getById=l(function(n){return a.appendChild(n).id=o,!i.getElementsByName||!i.getElementsByName(o).length}),e.getById?(r.find.ID=function(n,t){if(typeof t.getElementById!==st&&v){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==st&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=e.getElementsByTagName?function(n,i){return typeof i.getElementsByTagName!==st?i.getElementsByTagName(n):t}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},r.find.CLASS=e.getElementsByClassName&&function(n,i){return typeof i.getElementsByClassName!==st&&v?i.getElementsByClassName(n):t},tt=[],h=[],(e.qsa=ii.test(i.querySelectorAll))&&(l(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||h.push("\\["+f+"*(?:value|"+gt+")");n.querySelectorAll(":checked").length||h.push(":checked")}),l(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("t","");n.querySelectorAll("[t^='']").length&&h.push("[*^$]="+f+"*(?:''|\"\")");n.querySelectorAll(":enabled").length||h.push(":enabled",":disabled");n.querySelectorAll("*,:x");h.push(",.*:")})),(e.matchesSelector=ii.test(at=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&l(function(n){e.disconnectedMatch=at.call(n,"div");at.call(n,"[s!='']:x");tt.push("!=",ni)}),h=h.length&&RegExp(h.join("|")),tt=tt.length&&RegExp(tt.join("|")),ot=ii.test(a.contains)||a.compareDocumentPosition?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=a.compareDocumentPosition?function(n,t){if(n===t)return ft=!0,0;var r=t.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(t);return r?1&r||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||ot(y,n)?-1:t===i||ot(y,t)?1:g?it.call(g,n)-it.call(g,t):0:4&r?-1:1:n.compareDocumentPosition?-1:1}:function(n,t){var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(n===t)return ft=!0,0;if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:g?it.call(g,n)-it.call(g,t):0;if(o===s)return bi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?bi(f[u],e[u]):f[u]===y?-1:e[u]===y?1:0},i):s};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&nt(n),t=t.replace(ur,"='$1']"),!(!e.matchesSelector||!v||tt&&tt.test(t)||h&&h.test(t)))try{var i=at.call(n,t);if(i||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(r){}return u(t,s,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==s&&nt(n),ot(n,t)};u.attr=function(n,i){(n.ownerDocument||n)!==s&&nt(n);var f=r.attrHandle[i.toLowerCase()],u=f&&gi.call(r.attrHandle,i.toLowerCase())?f(n,i,!v):t;return u===t?e.attributes||!v?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null:u};u.error=function(n){throw Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ft=!e.detectDuplicates,g=!e.sortStable&&n.slice(0),n.sort(dt),ft){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return n};ct=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ct(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u];u++)i+=ct(r);return i};r=u.selectors={cacheLength:50,createPseudo:c,match:yt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var r,i=!n[5]&&n[2];return yt.CHILD.test(n[0])?null:(n[3]&&n[4]!==t?n[2]=n[4]:i&&fr.test(i)&&(r=pt(i,!0))&&(r=i.indexOf(")",i.length-r)-i.length)&&(n[0]=n[0].slice(0,r),n[2]=i.slice(0,r)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=ci[n+" "];return t||(t=RegExp("(^|"+f+")"+n+"("+f+"|$)"))&&ci(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==st&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),e="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,v,w,b=s!==e?"nextSibling":"previousSibling",y=t.parentNode,g=f&&t.nodeName.toLowerCase(),d=!h&&!f;if(y){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[e?y.firstChild:y.lastChild],e&&d){for(k=y[o]||(y[o]={}),a=k[n]||[],v=a[0]===p&&a[1],l=a[0]===p&&a[2],c=v&&y.childNodes[v];c=++v&&c&&c[b]||(l=v=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[p,v,l];break}}else if(d&&(a=(t[o]||(t[o]={}))[n])&&a[0]===p)l=a[1];else while(c=++v&&c&&c[b]||(l=v=0)||w.pop())if((f?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[o]||(c[o]={}))[n]=[p,l]),c===t))break;return l-=u,l===r||0==l%r&&l/r>=0}}},PSEUDO:function(n,t){var f,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[o]?i(t):i.length>1?(f=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=it.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,f)}):i}},pseudos:{not:c(function(n){var i=[],r=[],t=kt(n.replace(vt,"$1"));return t[o]?c(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:c(function(n){return function(t){return u(n,t).length>0}}),contains:c(function(n){return function(t){return(t.textContent||t.innerText||ct(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===a},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||3===n.nodeType||4===n.nodeType)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||t.toLowerCase()===n.type)},first:rt(function(){return[0]}),last:rt(function(n,t){return[t-1]}),eq:rt(function(n,t,i){return[0>i?i+t:i]}),even:rt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:rt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:rt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:rt(function(n,t,i){for(var r=0>i?i+t:i;t>++r;)n.push(r);return n})}};r.pseudos.nth=r.pseudos.eq;for(ut in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[ut]=lr(ut);for(ut in{submit:!0,reset:!0})r.pseudos[ut]=ar(ut);ki.prototype=r.filters=r.pseudos;r.setFilters=new ki;kt=u.compile=function(n,t){var r,u=[],f=[],i=ai[n+" "];if(!i){for(t||(t=pt(n)),r=t.length;r--;)i=si(t[r]),i[o]?u.push(i):f.push(i);i=ai(n,vr(f,u))}return i};e.sortStable=o.split("").sort(dt).join("")===o;e.detectDuplicates=ft;nt();e.sortDetached=l(function(n){return 1&n.compareDocumentPosition(s.createElement("div"))});l(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ui("type|href|height|width",function(n,i,r){return r?t:n.getAttribute(i,"type"===i.toLowerCase()?1:2)});e.attributes&&l(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ui("value",function(n,i,r){return r||"input"!==n.nodeName.toLowerCase()?t:n.defaultValue});l(function(n){return null==n.getAttribute("disabled")})||ui(gt,function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&u.specified?u.value:n[i]===!0?i.toLowerCase():null});i.find=u;i.expr=u.selectors;i.expr[":"]=i.expr.pseudos;i.unique=u.uniqueSort;i.text=u.getText;i.isXMLDoc=u.isXML;i.contains=u.contains}(n);ni={};i.Callbacks=function(n){n="string"==typeof n?ni[n]||te(n):i.extend({},n);var s,f,c,e,o,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,o=l||0,l=0,e=r.length,s=!0;r&&e>o;o++)if(r[o].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}s=!1;r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;(function u(t){i.each(t,function(t,f){var e=i.type(f);"function"===e?n.unique&&h.has(f)||r.push(f):f&&f.length&&"string"!==e&&u(f)})})(arguments);s?e=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),s&&(e>=u&&e--,o>=u&&o--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!(!r||!r.length)},empty:function(){return r=[],e=0,this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return!r||c&&!u||(t=t||[],t=[n,t.slice?t.slice():t],s?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=Array(r),c=Array(r),s=Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.support=function(t){var a,e,f,h,c,l,v,y,s,u=r.createElement("div");if(u.setAttribute("className","t"),u.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",a=u.getElementsByTagName("*")||[],e=u.getElementsByTagName("a")[0],!e||!e.style||!a.length)return t;h=r.createElement("select");l=h.appendChild(r.createElement("option"));f=u.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";t.getSetAttribute="t"!==u.className;t.leadingWhitespace=3===u.firstChild.nodeType;t.tbody=!u.getElementsByTagName("tbody").length;t.htmlSerialize=!!u.getElementsByTagName("link").length;t.style=/top/.test(e.getAttribute("style"));t.hrefNormalized="/a"===e.getAttribute("href");t.opacity=/^0.5/.test(e.style.opacity);t.cssFloat=!!e.style.cssFloat;t.checkOn=!!f.value;t.optSelected=l.selected;t.enctype=!!r.createElement("form").enctype;t.html5Clone="<:nav><\/:nav>"!==r.createElement("nav").cloneNode(!0).outerHTML;t.inlineBlockNeedsLayout=!1;t.shrinkWrapBlocks=!1;t.pixelPosition=!1;t.deleteExpando=!0;t.noCloneEvent=!0;t.reliableMarginRight=!0;t.boxSizingReliable=!0;f.checked=!0;t.noCloneChecked=f.cloneNode(!0).checked;h.disabled=!0;t.optDisabled=!l.disabled;try{delete u.test}catch(p){t.deleteExpando=!1}f=r.createElement("input");f.setAttribute("value","");t.input=""===f.getAttribute("value");f.value="t";f.setAttribute("type","radio");t.radioValue="t"===f.value;f.setAttribute("checked","t");f.setAttribute("name","t");c=r.createDocumentFragment();c.appendChild(f);t.appendChecked=f.checked;t.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked;u.attachEvent&&(u.attachEvent("onclick",function(){t.noCloneEvent=!1}),u.cloneNode(!0).click());for(s in{submit:!0,change:!0,focusin:!0})u.setAttribute(v="on"+s,"t"),t[s+"Bubbles"]=v in n||u.attributes[v].expando===!1;u.style.backgroundClip="content-box";u.cloneNode(!0).style.backgroundClip="";t.clearCloneStyle="content-box"===u.style.backgroundClip;for(s in i(t))break;return t.ownLast="0"!==s,i(function(){var h,e,f,c="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(h=r.createElement("div"),h.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(h).appendChild(u),u.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",f=u.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",y=0===f[0].offsetHeight,f[0].style.display="",f[1].style.display="none",t.reliableHiddenOffsets=y&&0===f[0].offsetHeight,u.innerHTML="",u.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",i.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===u.offsetWidth}),n.getComputedStyle&&(t.pixelPosition="1%"!==(n.getComputedStyle(u,null)||{}).top,t.boxSizingReliable="4px"===(n.getComputedStyle(u,null)||{width:"4px"}).width,e=u.appendChild(r.createElement("div")),e.style.cssText=u.style.cssText=c,e.style.marginRight=e.style.width="0",u.style.width="1px",t.reliableMarginRight=!parseFloat((n.getComputedStyle(e,null)||{}).marginRight)),typeof u.style.zoom!==o&&(u.innerHTML="",u.style.cssText=c+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===u.offsetWidth,u.style.display="block",u.innerHTML="<div><\/div>",u.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==u.offsetWidth,t.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(h),h=u=f=e=null)}),a=h=c=l=e=f=null,t}({});ir=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;rr=/([A-Z])/g;i.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ti(n)},data:function(n,t,i){return ur(n,t,i)},removeData:function(n,t){return fr(n,t)},_data:function(n,t,i){return ur(n,t,i,!0)},_removeData:function(n,t){return fr(n,t,!0)},acceptData:function(n){if(n.nodeType&&1!==n.nodeType&&9!==n.nodeType)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}});i.fn.extend({data:function(n,r){var e,f,o=null,s=0,u=this[0];if(n===t){if(this.length&&(o=i.data(u),1===u.nodeType&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;e.length>s;s++)f=e[s].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),er(u,f,o[f]));i._data(u,"parsedAttrs",!0)}return o}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,r)}):u?er(u,n,i.data(u,n)):null},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,r,u){var f;return n?(r=(r||"fx")+"queue",f=i._data(n,r),u&&(!f||i.isArray(u)?f=i._data(n,r,i.makeArray(u)):f.push(u)),f||[]):t},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,r){var u=2;return"string"!=typeof n&&(r=n,n="fx",u--),u>arguments.length?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);"fx"===n&&"inprogress"!==t[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var d,or,ii=/[\t\r\n\f]/g,ie=/\r/g,re=/^(?:input|select|textarea|button|object)$/i,ue=/^(?:a|area)$/i,ri=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ht=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):" ")){for(o=0;u=e[o++];)0>r.indexOf(" "+u+" ")&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):"")){for(o=0;u=e[o++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");t.className=n?i.trim(r):""}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(ii," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f;1===this.nodeType&&(f=e?n.call(this,u,i(this).val()):n,null==f?f="":"number"==typeof f?f+="":i.isArray(f)&&(f=i.map(f,function(n){return null==n?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t?u:(u=f.value,"string"==typeof u?u.replace(ie,""):null==u?"":u)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u="select-one"===n.type||0>r,s=u?null:[],h=u?r+1:o.length,f=0>r?h:u?r:0;h>f;f++)if(t=o[f],!(!t.selected&&f!==r||(i.support.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i(r).val(),e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}},attr:function(n,r,u){var f,e,s=n.nodeType;if(n&&3!==s&&8!==s&&2!==s)return typeof n.getAttribute===o?i.prop(n,r,u):(1===s&&i.isXMLDoc(n)||(r=r.toLowerCase(),f=i.attrHooks[r]||(i.expr.match.bool.test(r)?or:d)),u===t?f&&"get"in f&&null!==(e=f.get(n,r))?e:(e=i.find.attr(n,r),null==e?t:e):null!==u?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u):(i.removeAttr(n,r),t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?ht&&a||!ri.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&"radio"===t&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&3!==o&&8!==o&&2!==o)return s=1!==o||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&null!==(e=f.get(n,r))?e:n[r]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):re.test(n.nodeName)||ue.test(n.nodeName)&&n.href?0:-1}}}});or={set:function(n,t,r){return t===!1?i.removeAttr(n,r):ht&&a||!ri.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,r){var u=i.expr.attrHandle[r]||i.find.attr;i.expr.attrHandle[r]=ht&&a||!ri.test(r)?function(n,r,f){var e=i.expr.attrHandle[r],o=f?t:(i.expr.attrHandle[r]=t)!=u(n,r,f)?r.toLowerCase():null;return i.expr.attrHandle[r]=e,o}:function(n,r,u){return u?t:n[i.camelCase("default-"+r)]?r.toLowerCase():null}});ht&&a||(i.attrHooks.value={set:function(n,r,u){return i.nodeName(n,"input")?(n.defaultValue=r,t):d&&d.set(n,r,u)}});a||(d={set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="","value"===r||i===n.getAttribute(r)?i:t}},i.expr.attrHandle.id=i.expr.attrHandle.name=i.expr.attrHandle.coords=function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&""!==u.value?u.value:null},i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&r.specified?r.value:t},set:d.set},i.attrHooks.contenteditable={set:function(n,t,i){d.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,r){i.attrHooks[r]={set:function(n,i){return""===i?(n.setAttribute(r,"auto"),i):t}}}));i.support.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}});i.support.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.support.enctype||(i.propFix.enctype="encoding");i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,r){return i.isArray(r)?n.checked=i.inArray(i(n).val(),r)>=0:t}};i.support.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ui=/^(?:input|select|textarea)$/i,fe=/^key/,ee=/^(?:mouse|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i===o||n&&i.event.triggered===n.type?t:i.event.dispatch.apply(l.elem,arguments)},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)b=hr.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),h&&(c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;)if(h=hr.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,s,w,l,c,b,p=[e||r],h=k.call(u,"type")?u.type:u,y=k.call(u,"namespace")?u.namespace.split("."):[];if(s=c=e=e||r,3!==e.nodeType&&8!==e.nodeType&&!sr.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),v=0>h.indexOf(":")&&"on"+h,u=u[i.expando]?u:new i.Event(h,"object"==typeof u&&u),u.isTrigger=o?2:3,u.namespace=y.join("."),u.namespace_re=u.namespace?RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=null==f?[u]:i.makeArray(f,[u]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(w=l.delegateType||h,sr.test(w+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||r)&&p.push(c.defaultView||c.parentWindow||n)}for(b=0;(s=p[b++])&&!u.isPropagationStopped();)u.type=b>1?w:l.bindType||h,a=(i._data(s,"events")||{})[u.type]&&i._data(s,"handle"),a&&a.apply(s,f),a=v&&s[v],a&&i.acceptData(s)&&a.apply&&a.apply(s,f)===!1&&u.preventDefault();if(u.type=h,!o&&!u.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),f)===!1)&&i.acceptData(e)&&v&&e[h]&&!i.isWindow(e)){c=e[v];c&&(e[v]=null);i.event.triggered=h;try{e[h]()}catch(d){}i.event.triggered=t;c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||"click"!==n.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==n.type)){for(f=[],s=0;h>s;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return r.length>h&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=ee.test(u)?this.mouseHooks:fe.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return null==n.pageX&&null!=i.clientX&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=1&e?1:2&e?3:4&e?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){return this===cr()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return i.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,r){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?ct:g):this.type=n,r&&i.extend(this,r),this.timeStamp=n&&n.timeStamp||i.now(),this[i.expando]=!0,t):new i.Event(n,r)};i.Event.prototype={isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ct;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:(i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))}),t)},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:(i.event.remove(this,"._submit"),t)}});i.support.changeBubbles||(i.event.special.change={setup:function(){return ui.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):(i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ui.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))}),t)},handle:function(n){var i=n.target;return this!==i||n.isSimulated||n.isTrigger||"radio"!==i.type&&"checkbox"!==i.type?n.handleObj.handler.apply(this,arguments):t},teardown:function(){return i.event.remove(this,"._change"),!ui.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){0==u++&&r.addEventListener(n,f,!0)},teardown:function(){0==--u&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if("object"==typeof n){"string"!=typeof r&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(null==u&&null==f?(f=r,u=r=t):null==f&&("string"==typeof r?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=g;else if(!f)return this;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if("object"==typeof n){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||"function"==typeof r)&&(u=r,r=t),u===!1&&(u=g),this.each(function(){i.event.remove(this,n,u,r)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,r){var u=this[0];return u?i.event.trigger(n,r,u,!0):t}});var oe=/^.[^:#\[\.,]*$/,se=/^(?:parents|prev(?:Until|All))/,lr=i.expr.match.needsContext,he={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(fi(this,n||[],!0))},filter:function(n){return this.pushStack(fi(this,n||[],!1))},is:function(n){return!!fi(this,"string"==typeof n&&lr.test(n)?i(n):n||[],!1).length},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=lr.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(11>r.nodeType&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){r=u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r="string"==typeof n?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(he[n]||(f=i.unique(f)),se.test(n)&&(f=f.reverse())),this.pushStack(f)}});i.extend({filter:function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))},dir:function(n,r,u){for(var e=[],f=n[r];f&&9!==f.nodeType&&(u===t||1!==f.nodeType||!i(f).is(u));)1===f.nodeType&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});var yr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,pr=RegExp("<(?:"+yr+")[\\s/>]","i"),ei=/^\s+/,wr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,br=/<([\w:]+)/,kr=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,oi=/^(?:checkbox|radio)$/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,dr=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=vr(r),si=we.appendChild(r.createElement("div"));e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,f=0;null!=(r=e[f]);f++)t||1!==r.nodeType||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&hi(u(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return 1===r.nodeType?r.innerHTML.replace(ce,""):t;if(!("string"!=typeof n||ae.test(n)||!i.support.htmlSerialize&&pr.test(n)||!i.support.leadingWhitespace&&ei.test(n)||e[(br.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(wr,"<$1><\/$2>");try{for(;o>f;f++)r=this[f]||{},1===r.nodeType&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var t=i.map(this,function(n){return[n.nextSibling,n.parentNode]}),n=0;return this.domManip(arguments,function(r){var u=t[n++],f=t[n++];f&&(u&&u.parentNode!==f&&(u=this.nextSibling),i(this).remove(),f.insertBefore(r,u))},!0),n?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t,r){n=di.apply([],n);var h,f,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||!(1>=l||"string"!=typeof a||i.support.checkClone)&&ve.test(a))return this.each(function(i){var u=p.eq(i);y&&(n[0]=a.call(this,i,u.html()));u.domManip(n,t,r)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,!r&&this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(u(s,"script"),nu),c=o.length;l>e;e++)f=s,e!==w&&(f=i.clone(f,!0,!0),c&&i.merge(o,u(f,"script"))),t.call(this[e],f,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,tu),e=0;c>e;e++)f=o[e],dr.test(f.type||"")&&!i._data(f,"globalEval")&&i.contains(v,f)&&(f.src?i._evalUrl(f.src):i.globalEval((f.text||f.textContent||f.innerHTML||"").replace(pe,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),kt.apply(f,u.get());return this.pushStack(f)}});i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!pr.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(si.innerHTML=n.outerHTML,si.removeChild(o=si.firstChild)),!(i.support.noCloneEvent&&i.support.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=u(o),s=u(n),e=0;null!=(h=s[e]);++e)f[e]&&be(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;null!=(h=s[e]);e++)iu(h,f[e]);else iu(n,o);return f=u(o,"script"),f.length>0&&hi(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=vr(t),c=[],v=0;b>v;v++)if(o=n[v],o||0===o)if("object"===i.type(o))i.merge(c,o.nodeType?[o]:o);else if(le.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(br.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(wr,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&ei.test(o)&&c.push(t.createTextNode(ei.exec(o)[0])),!i.support.tbody)for(o="table"!==y||kr.test(o)?"<table>"!==l[1]||kr.test(o)?0:s:s.firstChild,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),ke),v=0;o=c[v++];)if((!f||-1===i.inArray(o,f))&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&hi(s),r))for(h=0;o=s[h++];)dr.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,f,u,e,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;null!=(r=n[c]);c++)if((t||i.acceptData(r))&&(u=r[s],e=u&&h[u])){if(e.events)for(f in e.events)a[f]?i.event.remove(r,f):i.removeEvent(r,f,e.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,b.push(u))}},_evalUrl:function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}});i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});var rt,v,y,ci=/alpha\([^)]*\)/i,de=/opacity\s*=\s*([^)]*)/,ge=/^(top|right|bottom|left)$/,no=/^(none|table(?!-c[ea]).+)/,ru=/^margin/,to=RegExp("^("+st+")(.*)$","i"),lt=RegExp("^("+st+")(?!px)[a-z%]+$","i"),io=RegExp("^([+-])=("+st+")","i"),uu={BODY:"block"},ro={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],eu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;e>f;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){ut(this)?i(this).show():i(this).hide()})}});i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=ou(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u===t)return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r];if(s=typeof u,"string"===s&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),!(null==u||"number"===s&&isNaN(u)||("number"!==s||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||""!==u||0!==r.indexOf("background")||(c[r]="inherit"),e&&"set"in e&&(u=e.set(n,u,f))===t)))try{c[r]=u}catch(l){}}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return r=i.cssProps[s]||(i.cssProps[s]=ou(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),"normal"===e&&r in fu&&(e=fu[r]),""===u||u?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e}});n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(""!==e||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),lt.test(e)&&ru.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return null==u&&f&&f[i]&&(u=f[i]),lt.test(u)&&!ge.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left="fontSize"===i?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),""===u?"auto":u});i.each(["height","width"],function(n,r){i.cssHooks[r]={get:function(n,u,f){return u?0===n.offsetWidth&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return lu(n,r,f)}):lu(n,r,f):t},set:function(n,t,u){var f=u&&v(n);return hu(n,t,u?cu(n,r,u,i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f),f):0)}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return de.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(ci,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=ci.test(f)?f.replace(ci,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,r){return r?i.swap(n,{display:"inline-block"},y,[n,"marginRight"]):t}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,r){i.cssHooks[r]={get:function(n,u){return u?(u=y(n,r),lt.test(u)?i(n).position()[r]+"px":u):t}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return 0>=n.offsetWidth&&0>=n.offsetHeight||!i.support.reliableHiddenOffsets&&"none"===(n.style&&n.style.display||i.css(n,"display"))},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};ru.test(n)||(i.cssHooks[n+t].set=hu)});var uo=/%20/g,fo=/\[\]$/,yu=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(yu,"\r\n")}}):{name:t.name,value:r.replace(yu,"\r\n")}}).get()}});i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():null==t?"":t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)li(u,n[u],r,e);return f.join("&").replace(uo,"+")};i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var w,c,ai=i.now(),vi=/\?/,so=/#.*$/,pu=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,co=/^(?:GET|HEAD)$/,lo=/^\/\//,wu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,bu=i.fn.load,ku={},yi={},du="*/".concat("*");try{c=hf.href}catch(go){c=r.createElement("a");c.href="";c=c.href}w=wu.exec(c.toLowerCase())||[];i.fn.load=function(n,r,u){if("string"!=typeof n&&bu)return bu.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&"object"==typeof r&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this};i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":du,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:gu(ku),ajaxTransport:gu(yi),ajax:function(n,r){function k(n,r,s,c){var a,rt,k,p,w,l=r;2!==o&&(o=2,g&&clearTimeout(g),y=t,d=c||"",f.readyState=n>0?4:0,a=n>=200&&300>n||304===n,s&&(p=ao(u,f,s)),p=vo(u,p,f,a),a?(u.ifModified&&(w=f.getResponseHeader("Last-Modified"),w&&(i.lastModified[e]=w),w=f.getResponseHeader("etag"),w&&(i.etag[e]=w)),204===n||"HEAD"===u.type?l="nocontent":304===n?l="notmodified":(l=p.state,rt=p.data,k=p.error,a=!k)):(k=l,(n||!l)&&(l="error",0>n&&(n=0))),f.status=n,f.statusText=(r||l)+"",a?tt.resolveWith(h,[rt,l,f]):tt.rejectWith(h,[f,l,k]),f.statusCode(b),b=t,v&&nt.trigger(a?"ajaxSuccess":"ajaxError",[f,u,a?rt:k]),it.fireWith(h,[f,l]),v&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(r=n,n=t);r=r||{};var l,a,e,d,g,v,y,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),b=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!p)for(p={};t=ho.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>o)for(t in n)b[t]=[b[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return y&&y.abort(t),k(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(so,"").replace(lo,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(l=wu.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]===w[1]&&l[2]===w[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(w[3]||("http:"===w[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),nf(ku,u,r,f),2===o)return f;v=u.global;v&&0==i.active++&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!co.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(vi.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=pu.test(e)?e.replace(pu,"$1_="+ai++):e+(vi.test(e)?"&":"?")+"_="+ai++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+du+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(y=nf(yi,u,r,f)){f.readyState=1;v&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;y.send(rt,k)}catch(et){if(!(2>o))throw et;k(-1,et)}}else k(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,r){return i.get(n,t,r,"script")}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script");u.async=!0;n.scriptCharset&&(u.charset=n.scriptCharset);u.src=n.url;u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))};f.insertBefore(u,f.firstChild)},abort:function(){u&&u.onload(t,!0)}}}});wi=[];at=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wi.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(at.test(r.url)?"url":"string"==typeof r.data&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(r.data)&&"data");return h||"jsonp"===r.dataTypes[0]?(e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(at,"$1"+e):r.jsonp!==!1&&(r.url+=(vi.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s;r[e]&&(r.jsonpCallback=u.jsonpCallback,wi.push(e));o&&i.isFunction(s)&&s(o[0]);o=s=t}),"script"):t});tf=0;vt=n.ActiveXObject&&function(){var n;for(n in nt)nt[n](t,!0)};i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&rf()||yo()}:rf;tt=i.ajaxSettings.xhr();i.support.cors=!!tt&&"withCredentials"in tt;tt=i.support.ajax=!!tt;tt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,l,c;try{if(u&&(f||4===o.readyState))if(u=t,h&&(o.onreadystatechange=i.noop,vt&&delete nt[h]),f)4!==o.readyState&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?1223===s&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?4===o.readyState?setTimeout(u):(h=++tf,vt&&(nt||(nt={},i(n).unload(vt)),nt[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var it,yt,po=/^(?:toggle|show|hide)$/,uf=RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),wo=/queueHooks$/,pt=[ko],ft={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=uf.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&uf.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(of,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}});i.Tween=f;f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var r,t=f.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(wt(t,!0),n,i,u)}});i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=of(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&wo.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.timers=[];i.fx=f.prototype.init;i.fx.tick=function(){var u,n=i.timers,r=0;for(it=i.now();n.length>r;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop();it=t};i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()};i.fx.interval=13;i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(yt);yt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fx.step={};i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return r=s.documentElement,i.contains(r,u)?(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=sf(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}):f};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");"static"===f&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=("absolute"===f||"fixed"===f)&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));null!=t.top&&(u.top=t.top-o.top+h);null!=t.left&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||ki;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||ki})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=sf(n);return e===t?o?r in o?o[r]:o.document.documentElement[f]:n[f]:(o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e,t)},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||"boolean"!=typeof f),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:9===r.nodeType?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})});i.fn.size=function(){return this.length};i.fn.andSelf=i.fn.addBack;"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=i:(n.jQuery=n.$=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}))})(window),function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.videojs=n()}}(function(){var n;return function t(n,i,r){function f(u,o){var h,c,s;if(!i[u]){if(!n[u]){if(h=typeof require=="function"&&require,!o&&h)return h(u,!0);if(e)return e(u,!0);c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[u]={exports:{}};n[u][0].call(s.exports,function(t){var i=n[u][1][t];return f(i?i:t)},s,s.exports,t,n,i,r)}return i[u].exports}for(var e=typeof require=="function"&&require,u=0;u<r.length;u++)f(r[u]);return f}({1:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(2),e=u(f),o=n(5),s=u(o);r=function(n){function t(i,r){return h(this,t),c(this,n.call(this,i,r))}return l(t,n),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(){this.player_.play()},t}(e["default"]);r.prototype.controlText_="Play Video";s["default"].registerComponent("BigPlayButton",r);i["default"]=r},{"2":2,"5":5}],2:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e;i.__esModule=!0;var s=n(3),h=u(s),c=n(5),f=u(c),l=n(85),o=u(l),a=n(136),r=u(a);e=function(n){function t(i,r){return v(this,t),y(this,n.call(this,i,r))}return p(t,n),t.prototype.createEl=function(){var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"button",n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},u;return n=r["default"]({className:this.buildCSSClass()},n),i!=="button"&&(o["default"].warn("Creating a Button with an HTML element of "+i+" is deprecated; use ClickableComponent instead."),n=r["default"]({tabIndex:0},n),t=r["default"]({role:"button"},t)),t=r["default"]({type:"button","aria-live":"polite"},t),u=f["default"].prototype.createEl.call(this,i,n,t),this.createControlTextEl(u),u},t.prototype.addChild=function(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=this.constructor.name;return o["default"].warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),f["default"].prototype.addChild.call(this,n,t)},t.prototype.handleKeyPress=function(t){t.which!==32&&t.which!==13&&n.prototype.handleKeyPress.call(this,t)},t}(h["default"]);f["default"].registerComponent("Button",e);i["default"]=e},{"136":136,"3":3,"5":5,"85":85}],3:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function g(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function nt(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function tt(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f;i.__esModule=!0;var l=n(5),e=r(l),a=n(80),v=u(a),y=n(81),o=u(y),p=n(82),s=u(p),w=n(85),b=r(w),k=n(92),h=r(k),d=n(136),c=r(d);f=function(n){function t(i,r){g(this,t);var u=nt(this,n.call(this,i,r));u.emitTapEvents();u.on("tap",u.handleClick);u.on("click",u.handleClick);u.on("focus",u.handleFocus);u.on("blur",u.handleBlur);return u}return tt(t,n),t.prototype.createEl=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div",i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},u;return i=c["default"]({className:this.buildCSSClass(),tabIndex:0},i),t==="button"&&b["default"].error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=c["default"]({role:"button","aria-live":"polite"},r),u=n.prototype.createEl.call(this,t,i,r),this.createControlTextEl(u),u},t.prototype.createControlTextEl=function(n){return this.controlTextEl_=v.createEl("span",{className:"vjs-control-text"}),n&&n.appendChild(this.controlTextEl_),this.controlText(this.controlText_,n),this.controlTextEl_},t.prototype.controlText=function(n){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.el(),t;return n?(t=this.localize(n),this.controlText_=n,this.controlTextEl_.innerHTML=t,i.setAttribute("title",t),this):this.controlText_||"Need Text"},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+n.prototype.buildCSSClass.call(this)},t.prototype.addChild=function(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return n.prototype.addChild.call(this,t,i)},t.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),this},t.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),this},t.prototype.handleClick=function(){},t.prototype.handleFocus=function(){o.on(h["default"],"keydown",s.bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){t.which===32||t.which===13?(t.preventDefault(),this.handleClick(t)):n.prototype.handleKeyPress&&n.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(){o.off(h["default"],"keydown",s.bind(this,this.handleKeyPress))},t}(e["default"]);e["default"].registerComponent("ClickableComponent",f);i["default"]=f},{"136":136,"5":5,"80":80,"81":81,"82":82,"85":85,"92":92}],4:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(2),e=u(f),o=n(5),s=u(o);r=function(n){function t(i,r){h(this,t);var u=c(this,n.call(this,i,r));return u.controlText(r&&r.controlText||u.localize("Close")),u}return l(t,n),t.prototype.buildCSSClass=function(){return"vjs-close-button "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},t}(e["default"]);s["default"].registerComponent("CloseButton",r);i["default"]=r},{"2":2,"5":5}],5:[function(n,t,i){"use strict";function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function c(n){return n&&n.__esModule?n:{"default":n}}function tt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var l;i.__esModule=!0;var v=n(93),r=c(v),y=n(80),u=h(y),p=n(82),f=h(p),w=n(84),b=h(w),k=n(81),e=h(k),d=n(85),o=c(d),g=n(89),s=c(g),nt=n(86),a=c(nt);l=function(){function n(t,i,r){if(tt(this,n),this.player_=!t&&this.play?t=this:t,this.options_=a["default"]({},this.options_),i=this.options_=a["default"](this.options_,i),this.id_=i.id||i.el&&i.el.id,!this.id_){var u=t&&t.id&&t.id()||"no_player";this.id_=u+"_component_"+b.newGUID()}this.name_=i.name||null;i.el?this.el_=i.el:i.createEl!==!1&&(this.el_=this.createEl());this.children_=[];this.childIndex_={};this.childNameIndex_={};i.initChildren!==!1&&this.initChildren();this.ready(r);i.reportTouchActivity!==!1&&this.enableTouchActivity()}return n.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var n=this.children_.length-1;n>=0;n--)this.children_[n].dispose&&this.children_[n].dispose();this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.off();this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_);u.removeElData(this.el_);this.el_=null},n.prototype.player=function(){return this.player_},n.prototype.options=function(n){return(o["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),!n)?this.options_:(this.options_=a["default"](this.options_,n),this.options_)},n.prototype.el=function(){return this.el_},n.prototype.createEl=function(n,t,i){return u.createEl(n,t,i)},n.prototype.localize=function(n){var r=this.player_.language&&this.player_.language(),u=this.player_.languages&&this.player_.languages(),t,f,i;return!r||!u?n:(t=u[r],t&&t[n])?t[n]:(f=r.split("-")[0],i=u[f],i&&i[n])?i[n]:n},n.prototype.contentEl=function(){return this.contentEl_||this.el_},n.prototype.id=function(){return this.id_},n.prototype.name=function(){return this.name_},n.prototype.children=function(){return this.children_},n.prototype.getChildById=function(n){return this.childIndex_[n]},n.prototype.getChild=function(n){return this.childNameIndex_[n]},n.prototype.addChild=function(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},h=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.children_.length,i=void 0,u=void 0,e,f,c,l;if(typeof t=="string"){if(u=t,r||(r={}),r===!0&&(o["default"].warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),r={}),e=r.componentClass||s["default"](u),r.name=u,f=n.getComponent(e),!f)throw new Error("Component "+e+" does not exist");if(typeof f!="function")return null;i=new f(this.player_||this,r)}else i=t;return this.children_.splice(h,0,i),typeof i.id=="function"&&(this.childIndex_[i.id()]=i),u=u||i.name&&i.name(),u&&(this.childNameIndex_[u]=i),typeof i.el=="function"&&i.el()&&(c=this.contentEl().children,l=c[h]||null,this.contentEl().insertBefore(i.el(),l)),i},n.prototype.removeChild=function(n){var i,t,r;if(typeof n=="string"&&(n=this.getChild(n)),n&&this.children_){for(i=!1,t=this.children_.length-1;t>=0;t--)if(this.children_[t]===n){i=!0;this.children_.splice(t,1);break}i&&(this.childIndex_[n.id()]=null,this.childNameIndex_[n.name()]=null,r=n.el(),r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(n.el()))}},n.prototype.initChildren=function(){var t=this,i=this.options_.children;i&&function(){var u=t.options_,f=function(n){var r=n.name,i=n.opts,f;(u[r]!==undefined&&(i=u[r]),i!==!1)&&(i===!0&&(i={}),i.playerOptions=t.options_.playerOptions,f=t.addChild(r,i),f&&(t[r]=f))},r=void 0,e=n.getComponent("Tech");r=Array.isArray(i)?i:Object.keys(i);r.concat(Object.keys(t.options_).filter(function(n){return!r.some(function(t){return typeof t=="string"?n===t:n===t.name})})).map(function(n){var r=void 0,u=void 0;return typeof n=="string"?(r=n,u=i[r]||t.options_[r]||{}):(r=n.name,u=n),{name:r,opts:u}}).filter(function(t){var i=n.getComponent(t.opts.componentClass||s["default"](t.name));return i&&!e.isTech(i)}).forEach(f)}()},n.prototype.buildCSSClass=function(){return""},n.prototype.on=function(n,t,i){var r=this;if(typeof n=="string"||Array.isArray(n))e.on(this.el_,n,f.bind(this,t));else(function(){var u=n,h=t,o=f.bind(r,i),c=function(){return r.off(u,h,o)},s;c.guid=o.guid;r.on("dispose",c);if(s=function(){return r.off("dispose",c)},s.guid=o.guid,n.nodeName){e.on(u,h,o);e.on(u,"dispose",s)}else if(typeof n.on=="function"){u.on(h,o);u.on("dispose",s)}})();return this},n.prototype.off=function(n,t,i){if(!n||typeof n=="string"||Array.isArray(n))e.off(this.el_,n,t);else{var u=n,o=t,r=f.bind(this,i);this.off("dispose",r);n.nodeName?(e.off(u,o,r),e.off(u,"dispose",r)):(u.off(o,r),u.off("dispose",r))}return this},n.prototype.one=function(n,t,i){var r=this,u=arguments;if(typeof n=="string"||Array.isArray(n))e.one(this.el_,n,f.bind(this,t));else(function(){var o=n,s=t,h=f.bind(r,i),e=function e(){r.off(o,s,e);h.apply(null,u)};e.guid=h.guid;r.on(o,s,e)})();return this},n.prototype.trigger=function(n,t){return e.trigger(this.el_,n,t),this},n.prototype.ready=function(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;return n&&(this.isReady_?t?n.call(this):this.setTimeout(n,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(n))),this},n.prototype.triggerReady=function(){this.isReady_=!0;this.setTimeout(function(){var n=this.readyQueue_;this.readyQueue_=[];n&&n.length>0&&n.forEach(function(n){n.call(this)},this);this.trigger("ready")},1)},n.prototype.$=function(n,t){return u.$(n,t||this.contentEl())},n.prototype.$$=function(n,t){return u.$$(n,t||this.contentEl())},n.prototype.hasClass=function(n){return u.hasElClass(this.el_,n)},n.prototype.addClass=function(n){return u.addElClass(this.el_,n),this},n.prototype.removeClass=function(n){return u.removeElClass(this.el_,n),this},n.prototype.toggleClass=function(n,t){return u.toggleElClass(this.el_,n,t),this},n.prototype.show=function(){return this.removeClass("vjs-hidden"),this},n.prototype.hide=function(){return this.addClass("vjs-hidden"),this},n.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},n.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},n.prototype.width=function(n,t){return this.dimension("width",n,t)},n.prototype.height=function(n,t){return this.dimension("height",n,t)},n.prototype.dimensions=function(n,t){return this.width(n,!0).height(t)},n.prototype.dimension=function(n,t,i){if(t!==undefined)return(t===null||t!==t)&&(t=0),this.el_.style[n]=(""+t).indexOf("%")!==-1||(""+t).indexOf("px")!==-1?t:t==="auto"?"":t+"px",i||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[n],u=r.indexOf("px");return u!==-1?parseInt(r.slice(0,u),10):parseInt(this.el_["offset"+s["default"](n)],10)},n.prototype.currentDimension=function(n){var t=0,i,u;if(n!=="width"&&n!=="height")throw new Error("currentDimension only accepts width or height value");return typeof r["default"].getComputedStyle=="function"?(i=r["default"].getComputedStyle(this.el_),t=i.getPropertyValue(n)||i[n]):this.el_.currentStyle&&(u="offset"+s["default"](n),t=this.el_[u]),parseFloat(t)},n.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},n.prototype.currentWidth=function(){return this.currentDimension("width")},n.prototype.currentHeight=function(){return this.currentDimension("height")},n.prototype.emitTapEvents=function(){var r=0,n=null,u=10,f=200,t=void 0,i;this.on("touchstart",function(i){i.touches.length===1&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},r=(new Date).getTime(),t=!0)});this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(n){var r=i.touches[0].pageX-n.pageX,f=i.touches[0].pageY-n.pageY,e=Math.sqrt(r*r+f*f);e>u&&(t=!1)}});i=function(){t=!1};this.on("touchleave",i);this.on("touchcancel",i);this.on("touchend",function(i){if(n=null,t===!0){var u=(new Date).getTime()-r;u<f&&(i.preventDefault(),this.trigger("tap"))}})},n.prototype.enableTouchActivity=function(){var n,t,i;if(this.player()&&this.player().reportUserActivity){n=f.bind(this.player(),this.player().reportUserActivity);t=void 0;this.on("touchstart",function(){n();this.clearInterval(t);t=this.setInterval(n,250)});i=function(){n();this.clearInterval(t)};this.on("touchmove",n);this.on("touchend",i);this.on("touchcancel",i)}},n.prototype.setTimeout=function(n,t){n=f.bind(this,n);var i=r["default"].setTimeout(n,t),u=function(){this.clearTimeout(i)};u.guid="vjs-timeout-"+i;this.on("dispose",u);return i},n.prototype.clearTimeout=function(n){r["default"].clearTimeout(n);var t=function(){};return t.guid="vjs-timeout-"+n,this.off("dispose",t),n},n.prototype.setInterval=function(n,t){n=f.bind(this,n);var i=r["default"].setInterval(n,t),u=function(){this.clearInterval(i)};u.guid="vjs-interval-"+i;this.on("dispose",u);return i},n.prototype.clearInterval=function(n){r["default"].clearInterval(n);var t=function(){};return t.guid="vjs-interval-"+n,this.off("dispose",t),n},n.registerComponent=function(t,i){return n.components_||(n.components_={}),n.components_[t]=i,i},n.getComponent=function(t){return n.components_&&n.components_[t]?n.components_[t]:r["default"]&&r["default"].videojs&&r["default"].videojs[t]?(o["default"].warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),r["default"].videojs[t]):void 0},n.extend=function(t){var u,i,r;t=t||{};o["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");u=t.init||t.init||this.prototype.init||this.prototype.init||function(){};i=function(){u.apply(this,arguments)};i.prototype=Object.create(this.prototype);i.prototype.constructor=i;i.extend=n.extend;for(r in t)t.hasOwnProperty(r)&&(i.prototype[r]=t[r]);return i},n}();l.registerComponent("Component",l);i["default"]=l},{"80":80,"81":81,"82":82,"84":84,"85":85,"86":86,"89":89,"93":93}],6:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function v(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(36),e=u(f),o=n(5),s=u(o),h=n(7),c=u(h);r=function(n){function t(i){var u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r;return l(this,t),u.tracks=i.audioTracks&&i.audioTracks(),r=a(this,n.call(this,i,u)),r.el_.setAttribute("aria-label","Audio Menu"),r}return v(t,n),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+n.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],i=this.player_.audioTracks&&this.player_.audioTracks(),n,r;if(!i)return t;for(n=0;n<i.length;n++)r=i[n],t.push(new c["default"](this.player_,{track:r,selectable:!0}));return t},t}(e["default"]);r.prototype.controlText_="Audio Track";s["default"].registerComponent("AudioTrackButton",r);i["default"]=r},{"36":36,"5":5,"7":7}],7:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(48),e=u(f),o=n(5),s=u(o),h=n(82),c=l(h);r=function(n){function t(i,r){var f,e,u;return a(this,t),f=r.track,e=i.audioTracks(),r.label=f.label||f.language||"Unknown",r.selected=f.enabled,u=v(this,n.call(this,i,r)),u.track=f,e&&function(){var n=c.bind(u,u.handleTracksChange);e.addEventListener("change",n);u.on("dispose",function(){e.removeEventListener("change",n)})}(),u}return y(t,n),t.prototype.handleClick=function(t){var r=this.player_.audioTracks(),i,u;if(n.prototype.handleClick.call(this,t),r)for(i=0;i<r.length;i++)u=r[i],u.enabled=u===this.track},t.prototype.handleTracksChange=function(){this.selected(this.track.enabled)},t}(e["default"]);s["default"].registerComponent("AudioTrackMenuItem",r);i["default"]=r},{"48":48,"5":5,"82":82}],8:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,u,r;i.__esModule=!0;f=n(5);u=e(f);n(12);n(32);n(33);n(35);n(34);n(10);n(18);n(9);n(38);n(40);n(11);n(25);n(27);n(29);n(24);n(6);n(13);n(21);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(u["default"]);r.prototype.options_={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]};u["default"].registerComponent("ControlBar",r);i["default"]=r},{"10":10,"11":11,"12":12,"13":13,"18":18,"21":21,"24":24,"25":25,"27":27,"29":29,"32":32,"33":33,"34":34,"35":35,"38":38,"40":40,"5":5,"6":6,"9":9}],9:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(2),e=u(f),o=n(5),s=u(o);r=function(n){function t(i,r){h(this,t);var u=c(this,n.call(this,i,r));u.on(i,"fullscreenchange",u.handleFullscreenChange);return u}return l(t,n),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(e["default"]);r.prototype.controlText_="Fullscreen";s["default"].registerComponent("FullscreenToggle",r);i["default"]=r},{"2":2,"5":5}],10:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function h(n){return n&&n.__esModule?n:{"default":n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function a(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(5),u=h(f),e=n(80),o=s(e);r=function(n){function t(i,r){c(this,t);var u=l(this,n.call(this,i,r));u.updateShowing();u.on(u.player(),"durationchange",u.updateShowing);return u}return a(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=o.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"<\/span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateShowing=function(){this.player().duration()===Infinity?this.show():this.hide()},t}(u["default"]);u["default"].registerComponent("LiveDisplay",r);i["default"]=r},{"5":5,"80":80}],11:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var e=n(2),o=f(e),s=n(5),h=f(s),c=n(80),u=l(c);r=function(n){function t(i,r){a(this,t);var u=v(this,n.call(this,i,r));u.on(i,"volumechange",u.update);i.tech_&&i.tech_.featuresVolumeControl===!1&&u.addClass("vjs-hidden");u.on(i,"loadstart",function(){this.update();i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")});return u}return y(t,n),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.muted(this.player_.muted()?!1:!0)},t.prototype.update=function(){var i=this.player_.volume(),n=3,r,t;for(i===0||this.player_.muted()?n=0:i<.33?n=1:i<.67&&(n=2),r=this.player_.muted()?"Unmute":"Mute",this.controlText()!==r&&this.controlText(r),t=0;t<4;t++)u.removeElClass(this.el_,"vjs-vol-"+t);u.addElClass(this.el_,"vjs-vol-"+n)},t}(o["default"]);r.prototype.controlText_="Mute";h["default"].registerComponent("MuteToggle",r);i["default"]=r},{"2":2,"5":5,"80":80}],12:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(2),e=u(f),o=n(5),s=u(o);r=function(n){function t(i,r){h(this,t);var u=c(this,n.call(this,i,r));u.on(i,"play",u.handlePlay);u.on(i,"pause",u.handlePause);return u}return l(t,n),t.prototype.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handlePlay=function(){this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")},t.prototype.handlePause=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")},t}(e["default"]);r.prototype.controlText_="Play";s["default"].registerComponent("PlayToggle",r);i["default"]=r},{"2":2,"5":5}],13:[function(n,t,i){"use strict";function p(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function w(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function b(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function k(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var f=n(47),e=r(f),o=n(49),s=r(o),h=n(14),c=r(h),l=n(5),a=r(l),v=n(80),y=p(v);u=function(n){function t(i,r){w(this,t);var u=b(this,n.call(this,i,r));u.updateVisibility();u.updateLabel();u.on(i,"loadstart",u.updateVisibility);u.on(i,"ratechange",u.updateLabel);return u}return k(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this);return this.labelEl_=y.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.labelEl_),t},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.prototype.createMenu=function(){var i=new s["default"](this.player()),t=this.playbackRates(),n;if(t)for(n=t.length-1;n>=0;n--)i.addChild(new c["default"](this.player(),{rate:t[n]+"x"}));return i},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(){for(var r=this.player().playbackRate(),t=this.playbackRates(),i=t[0],n=0;n<t.length;n++)if(t[n]>r){i=t[n];break}this.player().playbackRate(i)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(e["default"]);u.prototype.controlText_="Playback Rate";a["default"].registerComponent("PlaybackRateMenuButton",u);i["default"]=u},{"14":14,"47":47,"49":49,"5":5,"80":80}],14:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(48),e=u(f),o=n(5),s=u(o);r=function(n){function t(i,r){var f,e,u;h(this,t);f=r.rate;e=parseFloat(f,10);r.label=f;r.selected=e===1;u=c(this,n.call(this,i,r));u.label=f;u.rate=e;u.on(i,"ratechange",u.update);return u}return l(t,n),t.prototype.handleClick=function(){n.prototype.handleClick.call(this);this.player().playbackRate(this.rate)},t.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},t}(e["default"]);r.prototype.contentElType="button";s["default"].registerComponent("PlaybackRateMenuItem",r);i["default"]=r},{"48":48,"5":5}],15:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function h(n){return n&&n.__esModule?n:{"default":n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function a(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(5),u=h(f),e=n(80),o=s(e);r=function(n){function t(i,r){c(this,t);var u=l(this,n.call(this,i,r));u.partEls_=[];u.on(i,"progress",u.update);return u}return a(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"<\/span>: 0%<\/span>"})},t.prototype.update=function(){var t=this.player_.buffered(),h=this.player_.duration(),f=this.player_.bufferedEnd(),i=this.partEls_,e=function(n,t){var i=n/t||0;return(i>=1?1:i)*100+"%"},n,u;for(this.el_.style.width=e(f,h),n=0;n<t.length;n++){var s=t.start(n),c=t.end(n),r=i[n];r||(r=this.el_.appendChild(o.createEl()),i[n]=r);r.style.left=e(s,f);r.style.width=e(c-s,f)}for(u=i.length;u>t.length;u--)this.el_.removeChild(i[u-1]);i.length=t.length},t}(u["default"]);u["default"].registerComponent("LoadProgressBar",r);i["default"]=r},{"5":5,"80":80}],16:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function k(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function d(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function g(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e;i.__esModule=!0;var h=n(93),u=r(h),c=n(5),o=r(c),l=n(80),f=s(l),a=n(82),v=s(a),y=n(83),p=r(y),w=n(98),b=r(w);e=function(n){function t(i,r){k(this,t);var u=d(this,n.call(this,i,r));r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(u.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside);u.keepTooltipsInside&&(u.tooltip=f.createEl("div",{className:"vjs-time-tooltip"}),u.el().appendChild(u.tooltip),u.addClass("vjs-keep-tooltips-inside"));u.update(0,0);i.on("ready",function(){u.on(i.controlBar.progressControl.el(),"mousemove",b["default"](v.bind(u,u.handleMouseMove),25))});return u}return g(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.handleMouseMove=function(n){var t=this.player_.duration(),i=this.calculateDistance(n)*t,r=n.pageX-f.findElPosition(this.el().parentNode).left;this.update(i,r)},t.prototype.update=function(n,t){var i=p["default"](n,this.player_.duration());if(this.el().style.left=t+"px",this.el().setAttribute("data-current-time",i),this.keepTooltipsInside){var r=this.clampPosition_(t),f=t-r+1,e=parseFloat(u["default"].getComputedStyle(this.tooltip).width),o=e/2;this.tooltip.innerHTML=i;this.tooltip.style.right="-"+(o-f)+"px"}},t.prototype.calculateDistance=function(n){return f.getPointerPosition(this.el().parentNode,n).x},t.prototype.clampPosition_=function(n){if(!this.keepTooltipsInside)return n;var r=parseFloat(u["default"].getComputedStyle(this.player().el()).width),f=parseFloat(u["default"].getComputedStyle(this.tooltip).width),t=f/2,i=n;return n<t?i=Math.ceil(t):n>r-t&&(i=Math.floor(r-t)),i},t}(o["default"]);o["default"].registerComponent("MouseTimeDisplay",e);i["default"]=e},{"5":5,"80":80,"82":82,"83":83,"93":93,"98":98}],17:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var e=n(5),u=f(e),o=n(82),s=l(o),h=n(83),c=f(h);r=function(n){function t(i,r){a(this,t);var u=v(this,n.call(this,i,r));u.updateDataAttr();u.on(i,"timeupdate",u.updateDataAttr);return i.ready(s.bind(u,u.updateDataAttr)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(u.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),u.keepTooltipsInside&&u.addClass("vjs-keep-tooltips-inside"),u}return y(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"<\/span>: 0%<\/span>"})},t.prototype.updateDataAttr=function(){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",c["default"](n,this.player_.duration()))},t}(u["default"]);u["default"].registerComponent("PlayProgressBar",r);i["default"]=r},{"5":5,"82":82,"83":83}],18:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,u,r;i.__esModule=!0;f=n(5);u=e(f);n(19);n(16);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t}(u["default"]);r.prototype.options_={children:["seekBar"]};u["default"].registerComponent("ProgressControl",r);i["default"]=r},{"16":16,"19":19,"5":5}],19:[function(n,t,i){"use strict";function p(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function w(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function b(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function k(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var e=n(93),f=u(e),o=n(57),s=u(o),h=n(5),c=u(h),l=n(82),a=p(l),v=n(83),y=u(v);n(15);n(17);n(20);r=function(n){function t(i,r){w(this,t);var u=b(this,n.call(this,i,r));u.on(i,"timeupdate",u.updateProgress);u.on(i,"ended",u.updateProgress);return i.ready(a.bind(u,u.updateProgress)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(u.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),u.keepTooltipsInside&&(u.tooltipProgressBar=u.addChild("TooltipProgressBar")),u}return k(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},t.prototype.updateProgress=function(){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_);this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var i=parseFloat(f["default"].getComputedStyle(this.player().el()).width),n=parseFloat(f["default"].getComputedStyle(this.tooltipProgressBar.tooltip).width),t=this.tooltipProgressBar.el().style;t.maxWidth=Math.floor(i-n/2)+"px";t.minWidth=Math.ceil(n/2)+"px";t.right="-"+n/2+"px"}},t.prototype.updateAriaAttributes=function(n){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.setAttribute("aria-valuenow",(this.getPercent()*100).toFixed(2));n.setAttribute("aria-valuetext",y["default"](t,this.player_.duration()))},t.prototype.getPercent=function(){var n=this.player_.currentTime()/this.player_.duration();return n>=1?1:n},t.prototype.handleMouseDown=function(t){n.prototype.handleMouseDown.call(this,t);this.player_.scrubbing(!0);this.videoWasPlaying=!this.player_.paused();this.player_.pause()},t.prototype.handleMouseMove=function(n){var t=this.calculateDistance(n)*this.player_.duration();t===this.player_.duration()&&(t=t-.1);this.player_.currentTime(t)},t.prototype.handleMouseUp=function(t){n.prototype.handleMouseUp.call(this,t);this.player_.scrubbing(!1);this.videoWasPlaying&&this.player_.play()},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t}(s["default"]);r.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"};r.prototype.playerEvent="timeupdate";c["default"].registerComponent("SeekBar",r);i["default"]=r},{"15":15,"17":17,"20":20,"5":5,"57":57,"82":82,"83":83,"93":93}],20:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var e=n(5),u=f(e),o=n(82),s=l(o),h=n(83),c=f(h);r=function(n){function t(i,r){a(this,t);var u=v(this,n.call(this,i,r));u.updateDataAttr();u.on(i,"timeupdate",u.updateDataAttr);return i.ready(s.bind(u,u.updateDataAttr)),u}return y(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"><\/div>\n        <span class="vjs-control-text"><span>'+this.localize("Progress")+"<\/span>: 0%<\/span>"});return this.tooltip=t.querySelector(".vjs-time-tooltip"),t},t.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=c["default"](t,this.player_.duration());this.el_.setAttribute("data-current-time",n);this.tooltip.innerHTML=n},t}(u["default"]);u["default"].registerComponent("TooltipProgressBar",r);i["default"]=r},{"5":5,"82":82,"83":83}],21:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(22),e=u(f),o=n(5),s=u(o);r=function(n){function t(){return h(this,t),c(this,n.apply(this,arguments))}return l(t,n),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="&nbsp;",t},t}(e["default"]);s["default"].registerComponent("CustomControlSpacer",r);i["default"]=r},{"22":22,"5":5}],22:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,r,u;i.__esModule=!0;f=n(5);r=e(f);u=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(r["default"]);r["default"].registerComponent("Spacer",u);i["default"]=u},{"5":5}],23:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(31),e=u(f),o=n(5),s=u(o);r=function(n){function t(i,r){h(this,t);r.track={player:i,kind:r.kind,label:r.kind+" settings",selectable:!1,"default":!1,mode:"disabled"};r.selectable=!1;var u=c(this,n.call(this,i,r));return u.addClass("vjs-texttrack-settings"),u.controlText(", opens "+r.kind+" settings dialog"),u}return l(t,n),t.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show();this.player().getChild("textTrackSettings").el_.focus()},t}(e["default"]);s["default"].registerComponent("CaptionSettingsMenuItem",r);i["default"]=r},{"31":31,"5":5}],24:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function v(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(30),e=u(f),o=n(5),s=u(o),h=n(23),c=u(h);r=function(n){function t(i,r,u){l(this,t);var f=a(this,n.call(this,i,r,u));return f.el_.setAttribute("aria-label","Captions Menu"),f}return v(t,n),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.prototype.update=function(){var t=2;n.prototype.update.call(this);this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(t=1);this.items&&this.items.length>t?this.show():this.hide()},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||t.push(new c["default"](this.player_,{kind:this.kind_})),n.prototype.createItems.call(this,t)},t}(e["default"]);r.prototype.kind_="captions";r.prototype.controlText_="Captions";s["default"].registerComponent("CaptionsButton",r);i["default"]=r},{"23":23,"30":30,"5":5}],25:[function(n,t,i){"use strict";function d(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function g(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function nt(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function tt(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var e=n(30),o=r(e),s=n(5),h=r(s),c=n(31),l=r(c),a=n(26),v=r(a),y=n(49),p=r(y),w=n(80),f=d(w),b=n(89),k=r(b);u=function(n){function t(i,r,u){g(this,t);var f=nt(this,n.call(this,i,r,u));return f.el_.setAttribute("aria-label","Chapters Menu"),f}return tt(t,n),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var t=[],i=this.player_.textTracks(),n,r;if(!i)return t;for(n=0;n<i.length;n++)r=i[n],r.kind===this.kind_&&t.push(new l["default"](this.player_,{track:r}));return t},t.prototype.createMenu=function(){for(var w=this,l=this.player_.textTracks()||[],n=void 0,i=this.items||[],e,t,o,s,h,u,a,y,c,r=l.length-1;r>=0;r--)if(e=l[r],e.kind===this.kind_){n=e;break}if(t=this.menu,t===undefined?(t=new p["default"](this.player_),o=f.createEl("li",{className:"vjs-menu-title",innerHTML:k["default"](this.kind_),tabIndex:-1}),t.children_.unshift(o),f.insertElFirst(o,t.contentEl())):(i.forEach(function(n){return t.removeChild(n)}),i=[]),n&&(n.cues===null||n.cues===undefined)&&(n.mode="hidden",s=this.player_.remoteTextTrackEls().getTrackElementByTrack_(n),s&&s.addEventListener("load",function(){return w.update()})),n&&n.cues&&n.cues.length>0)for(h=n.cues,u=0,a=h.length;u<a;u++)y=h[u],c=new v["default"](this.player_,{cue:y,track:n}),i.push(c),t.addChild(c);return i.length>0&&this.show(),this.items=i,t},t}(o["default"]);u.prototype.kind_="chapters";u.prototype.controlText_="Chapters";h["default"].registerComponent("ChaptersButton",u);i["default"]=u},{"26":26,"30":30,"31":31,"49":49,"5":5,"80":80,"89":89}],26:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(48),e=u(f),o=n(5),s=u(o),h=n(82),c=l(h);r=function(n){function t(i,r){var u;a(this,t);var e=r.track,f=r.cue,o=i.currentTime();return r.label=f.text,r.selected=f.startTime<=o&&o<f.endTime,u=v(this,n.call(this,i,r)),u.track=e,u.cue=f,e.addEventListener("cuechange",c.bind(u,u.update)),u}return y(t,n),t.prototype.handleClick=function(){n.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)},t.prototype.update=function(){var n=this.cue,t=this.player_.currentTime();this.selected(n.startTime<=t&&t<n.endTime)},t}(e["default"]);s["default"].registerComponent("ChaptersTrackMenuItem",r);i["default"]=r},{"48":48,"5":5,"82":82}],27:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(30),e=u(f),o=n(5),s=u(o),h=n(82),c=l(h);r=function(n){function t(i,r,u){var f,e;return a(this,t),f=v(this,n.call(this,i,r,u)),f.el_.setAttribute("aria-label","Descriptions Menu"),e=i.textTracks(),e&&function(){var n=c.bind(f,f.handleTracksChange);e.addEventListener("change",n);f.on("dispose",function(){e.removeEventListener("change",n)})}(),f}return y(t,n),t.prototype.handleTracksChange=function(){for(var i=this.player().textTracks(),r=!1,t,n=0,u=i.length;n<u;n++)if(t=i[n],t.kind!==this.kind_&&t.mode==="showing"){r=!0;break}r?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+n.prototype.buildCSSClass.call(this)},t}(e["default"]);r.prototype.kind_="descriptions";r.prototype.controlText_="Descriptions";s["default"].registerComponent("DescriptionsButton",r);i["default"]=r},{"30":30,"5":5,"82":82}],28:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(31),e=u(f),o=n(5),s=u(o);r=function(n){function t(i,r){h(this,t);r.track={player:i,kind:r.kind,label:r.kind+" off","default":!1,mode:"disabled"};r.selectable=!0;var u=c(this,n.call(this,i,r));return u.selected(!0),u}return l(t,n),t.prototype.handleTracksChange=function(){for(var i=this.player().textTracks(),r=!0,t,n=0,u=i.length;n<u;n++)if(t=i[n],t.kind===this.track.kind&&t.mode==="showing"){r=!1;break}this.selected(r)},t}(e["default"]);s["default"].registerComponent("OffTextTrackMenuItem",r);i["default"]=r},{"31":31,"5":5}],29:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(30),e=u(f),o=n(5),s=u(o);r=function(n){function t(i,r,u){h(this,t);var f=c(this,n.call(this,i,r,u));return f.el_.setAttribute("aria-label","Subtitles Menu"),f}return l(t,n),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t}(e["default"]);r.prototype.kind_="subtitles";r.prototype.controlText_="Subtitles";s["default"].registerComponent("SubtitlesButton",r);i["default"]=r},{"30":30,"5":5}],30:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var f=n(36),e=r(f),o=n(5),s=r(o),h=n(31),c=r(h),l=n(28),a=r(l);u=function(n){function t(i){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return v(this,t),r.tracks=i.textTracks(),y(this,n.call(this,i,r))}return p(t,n),t.prototype.createItems=function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],t,i,r;if(n.push(new a["default"](this.player_,{kind:this.kind_})),t=this.player_.textTracks(),!t)return n;for(i=0;i<t.length;i++)r=t[i],r.kind===this.kind_&&n.push(new c["default"](this.player_,{track:r,selectable:!0}));return n},t}(e["default"]);s["default"].registerComponent("TextTrackButton",u);i["default"]=u},{"28":28,"31":31,"36":36,"5":5}],31:[function(n,t,i){"use strict";function w(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function b(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function k(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function d(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},o=n(48),s=r(o),h=n(5),c=r(h),l=n(82),a=w(l),v=n(93),f=r(v),y=n(92),p=r(y);u=function(n){function t(i,r){var s,u,o;return b(this,t),s=r.track,u=i.textTracks(),r.label=s.label||s.language||"Unknown",r.selected=s["default"]||s.mode==="showing",o=k(this,n.call(this,i,r)),o.track=s,u&&function(){var n=a.bind(o,o.handleTracksChange);u.addEventListener("change",n);o.on("dispose",function(){u.removeEventListener("change",n)})}(),u&&u.onchange===undefined&&function(){var n=void 0;o.on(["tap","click"],function(){if(e(f["default"].Event)!=="object")try{n=new f["default"].Event("change")}catch(t){}n||(n=p["default"].createEvent("Event"),n.initEvent("change",!0,!0));u.dispatchEvent(n)})}(),o}return d(t,n),t.prototype.handleClick=function(t){var f=this.track.kind,u=this.player_.textTracks(),i,r;if(n.prototype.handleClick.call(this,t),u)for(i=0;i<u.length;i++)(r=u[i],r.kind===f)&&(r.mode=r===this.track?"showing":"disabled")},t.prototype.handleTracksChange=function(){this.selected(this.track.mode==="showing")},t}(s["default"]);c["default"].registerComponent("TextTrackMenuItem",u);i["default"]=u},{"48":48,"5":5,"82":82,"92":92,"93":93}],32:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var e=n(5),u=f(e),o=n(80),s=l(o),h=n(83),c=f(h);r=function(n){function t(i,r){a(this,t);var u=v(this,n.call(this,i,r));u.on(i,"timeupdate",u.updateContent);return u}return y(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time <\/span>0:00'},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),i=this.localize("Current Time"),n=c["default"](t,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+i+"<\/span> "+n)},t}(u["default"]);u["default"].registerComponent("CurrentTimeDisplay",r);i["default"]=r},{"5":5,"80":80,"83":83}],33:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var e=n(5),u=f(e),o=n(80),s=l(o),h=n(83),c=f(h);r=function(n){function t(i,r){a(this,t);var u=v(this,n.call(this,i,r));u.on(i,"durationchange",u.updateContent);u.on(i,"timeupdate",u.updateContent);u.on(i,"loadedmetadata",u.updateContent);return u}return y(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"<\/span> 0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var n=this.player_.duration(),t,i;n&&this.duration_!==n&&(this.duration_=n,t=this.localize("Duration Time"),i=c["default"](n),this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"<\/span> "+i)},t}(u["default"]);u["default"].registerComponent("DurationDisplay",r);i["default"]=r},{"5":5,"80":80,"83":83}],34:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var e=n(5),u=f(e),o=n(80),s=l(o),h=n(83),c=f(h);r=function(n){function t(i,r){a(this,t);var u=v(this,n.call(this,i,r));u.on(i,"timeupdate",u.updateContent);u.on(i,"durationchange",u.updateContent);return u}return y(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"<\/span> -0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),n=c["default"](this.player_.remainingTime());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"<\/span> -"+n)}},t}(u["default"]);u["default"].registerComponent("RemainingTimeDisplay",r);i["default"]=r},{"5":5,"80":80,"83":83}],35:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,r,u;i.__esModule=!0;f=n(5);r=e(f);u=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/<\/span><\/div>"})},t}(r["default"]);r["default"].registerComponent("TimeDivider",u);i["default"]=u},{"5":5}],36:[function(n,t,i){"use strict";function a(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var e=n(47),o=u(e),s=n(5),h=u(s),c=n(82),l=a(c);r=function(n){function t(i,r){var e,u,o;if(v(this,t),e=r.tracks,u=f(this,n.call(this,i,r)),u.items.length<=1&&u.hide(),!e)return f(u);o=l.bind(u,u.update);e.addEventListener("removetrack",o);e.addEventListener("addtrack",o);u.player_.on("dispose",function(){e.removeEventListener("removetrack",o);e.removeEventListener("addtrack",o)});return u}return y(t,n),t}(o["default"]);h["default"].registerComponent("TrackButton",r);i["default"]=r},{"47":47,"5":5,"82":82}],37:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(57),e=u(f),o=n(5),s=u(o),h=n(82),c=l(h);n(39);r=function(n){function t(i,r){a(this,t);var u=v(this,n.call(this,i,r));u.on(i,"volumechange",u.updateARIAAttributes);return i.ready(c.bind(u,u.updateARIAAttributes)),u}return y(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},t.prototype.handleMouseMove=function(n){this.checkMuted();this.player_.volume(this.calculateDistance(n))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(){var n=(this.player_.volume()*100).toFixed(2);this.el_.setAttribute("aria-valuenow",n);this.el_.setAttribute("aria-valuetext",n+"%")},t}(e["default"]);r.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};r.prototype.playerEvent="volumechange";s["default"].registerComponent("VolumeBar",r);i["default"]=r},{"39":39,"5":5,"57":57,"82":82}],38:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,u,r;i.__esModule=!0;f=n(5);u=e(f);n(37);r=function(n){function t(i,r){o(this,t);var u=s(this,n.call(this,i,r));i.tech_&&i.tech_.featuresVolumeControl===!1&&u.addClass("vjs-hidden");u.on(i,"loadstart",function(){i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")});return u}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},t}(u["default"]);r.prototype.options_={children:["volumeBar"]};u["default"].registerComponent("VolumeControl",r);i["default"]=r},{"37":37,"5":5}],39:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,r,u;i.__esModule=!0;f=n(5);r=e(f);u=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"><\/span>'})},t}(r["default"]);r["default"].registerComponent("VolumeLevel",u);i["default"]=u},{"5":5}],40:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function b(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function k(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function d(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function g(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var o=n(82),f=b(o),s=n(5),h=r(s),c=n(54),l=r(c),a=n(53),v=r(a),y=n(11),e=r(y),p=n(37),w=r(p);u=function(n){function t(i){function f(){i.tech_&&i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r;k(this,t);u.inline===undefined&&(u.inline=!0);u.vertical===undefined&&(u.vertical=u.inline?!1:!0);u.volumeBar=u.volumeBar||{};u.volumeBar.vertical=!!u.vertical;r=d(this,n.call(this,i,u));r.on(i,"volumechange",r.volumeUpdate);r.on(i,"loadstart",r.volumeUpdate);f.call(r);r.on(i,"loadstart",f);r.on(r.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")});r.on(r.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")});r.on(r.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")});r.on(r.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")});return r}return g(t,n),t.prototype.buildCSSClass=function(){var t="";return t=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+n.prototype.buildCSSClass.call(this)+" "+t},t.prototype.createPopup=function(){var n=new l["default"](this.player_,{contentElType:"div"}),t=new w["default"](this.player_,this.options_.volumeBar);return n.addChild(t),this.menuContent=n,this.volumeBar=t,this.attachVolumeBarEvents(),n},t.prototype.handleClick=function(){e["default"].prototype.handleClick.call(this);n.prototype.handleClick.call(this)},t.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],f.bind(this,this.handleMouseDown))},t.prototype.handleMouseDown=function(){this.on(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove));this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},t.prototype.handleMouseUp=function(){this.off(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove))},t}(v["default"]);u.prototype.volumeUpdate=e["default"].prototype.update;u.prototype.controlText_="Mute";h["default"].registerComponent("VolumeMenuButton",u);i["default"]=u},{"11":11,"37":37,"5":5,"53":53,"54":54,"82":82}],41:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function v(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var e=n(5),o=u(e),s=n(50),f=u(s),h=n(86),c=u(h);r=function(n){function t(i,r){l(this,t);var u=a(this,n.call(this,i,r));u.on(i,"error",u.open);return u}return v(t,n),t.prototype.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var n=this.player().error();return n?this.localize(n.message):""},t}(f["default"]);r.prototype.options_=c["default"](f["default"].prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0});o["default"].registerComponent("ErrorDisplay",r);i["default"]=r},{"5":5,"50":50,"86":86}],42:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}var f,u,r;i.__esModule=!0;f=n(81);u=e(f);r=function(){};r.prototype.allowedEvents_={};r.prototype.on=function(n,t){var i=this.addEventListener;this.addEventListener=function(){};u.on(this,n,t);this.addEventListener=i};r.prototype.addEventListener=r.prototype.on;r.prototype.off=function(n,t){u.off(this,n,t)};r.prototype.removeEventListener=r.prototype.off;r.prototype.one=function(n,t){var i=this.addEventListener;this.addEventListener=function(){};u.one(this,n,t);this.addEventListener=i};r.prototype.trigger=function(n){var t=n.type||n;typeof n=="string"&&(n={type:t});n=u.fixEvent(n);this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](n);u.trigger(this,n)};r.prototype.dispatchEvent=r.prototype.trigger;i["default"]=r},{"81":81}],43:[function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}var u,f;i.__esModule=!0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e=n(85),o=s(e);u=function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":r(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(n.super_=t)};f=function(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=function(){n.apply(this,arguments)},f={},e;(typeof t=="undefined"?"undefined":r(t))==="object"?(typeof t.init=="function"&&(o["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."),t.constructor=t.init),t.constructor!==Object.prototype.constructor&&(i=t.constructor),f=t):typeof t=="function"&&(i=t);u(i,n);for(e in f)f.hasOwnProperty(e)&&(i.prototype[e]=f[e]);return i};i["default"]=f},{"85":85}],44:[function(n,t,i){"use strict";function c(n){return n&&n.__esModule?n:{"default":n}}var o,s,r,u;i.__esModule=!0;o=n(92);s=c(o);var h={},f=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=f[0],e=void 0;for(r=0;r<f.length;r++)if(f[r][1]in s["default"]){e=f[r];break}if(e)for(u=0;u<e.length;u++)h[l[u]]=e[u];i["default"]=h},{"92":92}],45:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,r,u;i.__esModule=!0;f=n(5);r=e(f);u=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(r["default"]);r["default"].registerComponent("LoadingSpinner",u);i["default"]=u},{"5":5}],46:[function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}function r(n){if(n instanceof r)return n;typeof n=="number"?this.code=n:typeof n=="string"?this.message=n:(typeof n=="undefined"?"undefined":f(n))==="object"&&(typeof n.code=="number"&&(this.code=n.code),o["default"](this,n));this.message||(this.message=r.defaultMessages[this.code]||"")}var u;i.__esModule=!0;var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e=n(136),o=s(e);for(r.prototype.code=0,r.prototype.message="",r.prototype.status=null,r.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],r.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},u=0;u<r.errorTypes.length;u++)r[r.errorTypes[u]]=u,r.prototype[r.errorTypes[u]]=u;i["default"]=r},{"136":136}],47:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function k(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function d(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function g(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var o=n(3),s=r(o),h=n(5),c=r(h),l=n(49),a=r(l),v=n(80),f=e(v),y=n(82),p=e(y),w=n(89),b=r(w);u=function(n){function t(i){var u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r;k(this,t);r=d(this,n.call(this,i,u));r.update();r.enabled_=!0;r.el_.setAttribute("aria-haspopup","true");r.el_.setAttribute("role","menuitem");r.on("keydown",r.handleSubmenuKeyPress);return r}return g(t,n),t.prototype.update=function(){var n=this.createMenu();this.menu&&this.removeChild(this.menu);this.menu=n;this.addChild(n);this.buttonPressed_=!1;this.el_.setAttribute("aria-expanded","false");this.items&&this.items.length===0?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createMenu=function(){var n=new a["default"](this.player_),i,t;if(this.options_.title&&(i=f.createEl("li",{className:"vjs-menu-title",innerHTML:b["default"](this.options_.title),tabIndex:-1}),n.children_.unshift(i),f.insertElFirst(i,n.contentEl())),this.items=this.createItems(),this.items)for(t=0;t<this.items.length;t++)n.addItem(this.items[t]);return n},t.prototype.createItems=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.one(this.menu.contentEl(),"mouseleave",p.bind(this,function(){this.unpressButton();this.el_.blur()}));this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.handleKeyPress=function(t){t.which===27||t.which===9?(this.buttonPressed_&&this.unpressButton(),t.which!==9&&t.preventDefault()):t.which===38||t.which===40?this.buttonPressed_||(this.pressButton(),t.preventDefault()):n.prototype.handleKeyPress.call(this,t)},t.prototype.handleSubmenuKeyPress=function(n){(n.which===27||n.which===9)&&(this.buttonPressed_&&this.unpressButton(),n.which!==9&&n.preventDefault())},t.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.el_.focus())},t.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,n.prototype.disable.call(this)},t.prototype.enable=function(){return this.enabled_=!0,n.prototype.enable.call(this)},t}(s["default"]);c["default"].registerComponent("MenuButton",u);i["default"]=u},{"3":3,"49":49,"5":5,"80":80,"82":82,"89":89}],48:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function v(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var f=n(3),e=r(f),o=n(5),s=r(o),h=n(136),c=r(h);u=function(n){function t(i,r){l(this,t);var u=a(this,n.call(this,i,r));return u.selectable=r.selectable,u.selected(r.selected),u.selectable?u.el_.setAttribute("role","menuitemcheckbox"):u.el_.setAttribute("role","menuitem"),u}return v(t,n),t.prototype.createEl=function(t,i,r){return n.prototype.createEl.call(this,"li",c["default"]({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},i),r)},t.prototype.handleClick=function(){this.selected(!0)},t.prototype.selected=function(n){this.selectable&&(n?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(" ")))},t}(e["default"]);s["default"].registerComponent("MenuItem",u);i["default"]=u},{"136":136,"3":3,"5":5}],49:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function v(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function w(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var e=n(5),f=v(e),o=n(80),s=r(o),h=n(82),c=r(h),l=n(81),a=r(l);u=function(n){function t(i,r){y(this,t);var u=p(this,n.call(this,i,r));u.focusedChild_=-1;u.on("keydown",u.handleKeyPress);return u}return w(t,n),t.prototype.addItem=function(n){this.addChild(n);n.on("click",c.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var i=this.options_.contentElType||"ul",t;this.contentEl_=s.createEl(i,{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});t.setAttribute("role","presentation");t.appendChild(this.contentEl_);a.on(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()});return t},t.prototype.handleKeyPress=function(n){n.which===37||n.which===40?(n.preventDefault(),this.stepForward()):(n.which===38||n.which===39)&&(n.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var n=0;this.focusedChild_!==undefined&&(n=this.focusedChild_+1);this.focus(n)},t.prototype.stepBack=function(){var n=0;this.focusedChild_!==undefined&&(n=this.focusedChild_-1);this.focus(n)},t.prototype.focus=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0,n=this.children().slice(),i=n.length&&n[0].className&&/vjs-menu-title/.test(n[0].className);i&&n.shift();n.length>0&&(t<0?t=0:t>=n.length&&(t=n.length-1),this.focusedChild_=t,n[t].el_.focus())},t}(f["default"]);f["default"].registerComponent("Menu",u);i["default"]=u},{"5":5,"80":80,"81":81,"82":82}],50:[function(n,t,i){"use strict";function a(n){return n&&n.__esModule?n:{"default":n}}function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(80),r=s(h),c=n(82),e=s(c),l=n(5),o=a(l);var u="vjs-modal-dialog",w=27,f=function(n){function t(i,f){v(this,t);var e=y(this,n.call(this,i,f));return e.opened_=e.hasBeenOpened_=e.hasBeenFilled_=!1,e.closeable(!e.options_.uncloseable),e.content(e.options_.content),e.contentEl_=r.createEl("div",{className:u+"-content"},{role:"document"}),e.descEl_=r.createEl("p",{className:u+"-description vjs-offscreen",id:e.el().getAttribute("aria-describedby")}),r.textContent(e.descEl_,e.description()),e.el_.appendChild(e.descEl_),e.el_.appendChild(e.contentEl_),e}return p(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.buildCSSClass=function(){return u+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(n){n.which===w&&this.closeable()&&this.close()},t.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},t.prototype.description=function(){var n=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(n+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),n},t.prototype.open=function(){if(!this.opened_){var n=this.player();if(this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!n.paused(),this.wasPlaying_&&n.pause(),this.closeable())this.on(this.el_.ownerDocument,"keydown",e.bind(this,this.handleKeyPress));n.controls(!1);this.show();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=!0}return this},t.prototype.opened=function(n){return typeof n=="boolean"&&this[n?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var n=this.player();this.trigger("beforemodalclose");this.opened_=!1;this.wasPlaying_&&n.play();this.closeable()&&this.off(this.el_.ownerDocument,"keydown",e.bind(this,this.handleKeyPress));n.controls(!0);this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");this.options_.temporary&&this.dispose()}return this},t.prototype.closeable=function(n){var i,t,r;if(typeof n=="boolean"){if(i=this.closeable_=!!n,t=this.getChild("closeButton"),i&&!t){r=this.contentEl_;this.contentEl_=this.el_;t=this.addChild("closeButton",{controlText:"Close Modal Dialog"});this.contentEl_=r;this.on(t,"close",this.close)}!i&&t&&(this.off(t,"close",this.close),this.removeChild(t),t.dispose())}return this.closeable_},t.prototype.fill=function(){return this.fillWith(this.content())},t.prototype.fillWith=function(n){var t=this.contentEl(),i=t.parentNode,u=t.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),r.insertContent(t,n),this.trigger("modalfill"),u?i.insertBefore(t,u):i.appendChild(t),this},t.prototype.empty=function(){return this.trigger("beforemodalempty"),r.emptyEl(this.contentEl()),this.trigger("modalempty"),this},t.prototype.content=function(n){return typeof n!="undefined"&&(this.content_=n),this.content_},t}(o["default"]);f.prototype.options_={temporary:!0};o["default"].registerComponent("ModalDialog",f);i["default"]=f},{"5":5,"80":80,"82":82}],51:[function(n,t,i){"use strict";function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function ci(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function li(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function ai(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var k,o,c;i.__esModule=!0;var it=n(5),s=r(it),rt=n(92),f=r(rt),ut=n(93),v=r(ut),ft=n(81),y=h(ft),et=n(80),u=h(et),ot=n(82),p=h(ot),st=n(84),ht=h(st),ct=n(78),lt=h(ct),at=n(85),e=r(at),vt=n(89),l=r(vt),yt=n(88),pt=n(79),wt=n(87),d=h(wt),bt=n(44),g=r(bt),kt=n(46),nt=r(kt),dt=n(145),gt=r(dt),ni=n(136),w=r(ni),ti=n(86),b=r(ti),ii=n(69),tt=r(ii),ri=n(50),ui=r(ri),fi=n(62),a=r(fi),ei=n(63),oi=r(ei),si=n(76),hi=r(si);n(61);n(59);n(55);n(68);n(45);n(1);n(4);n(8);n(41);n(71);n(60);k=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"];o=function(n){function t(i,r,f){var h,s,o,c;if(ci(this,t),i.id=i.id||"vjs_video_"+ht.newGUID(),r=w["default"](t.getTagSettings(i),r),r.initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,!r.language)if(typeof i.closest=="function")h=i.closest("[lang]"),h&&(r.language=h.getAttribute("lang"));else for(s=i;s&&s.nodeType===1;){if(u.getElAttributes(s).hasOwnProperty("lang")){r.language=s.getAttribute("lang");break}s=s.parentNode}if(o=li(this,n.call(this,null,r,f)),!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");o.tag=i;o.tagAttributes=i&&u.getElAttributes(i);o.language(o.options_.language);r.languages?function(){var n={};Object.getOwnPropertyNames(r.languages).forEach(function(t){n[t.toLowerCase()]=r.languages[t]});o.languages_=n}():o.languages_=t.prototype.options_.languages;o.cache_={};o.poster_=r.poster||"";o.controls_=!!r.controls;i.controls=!1;o.scrubbing_=!1;o.el_=o.createEl();c=b["default"](o.options_);r.plugins&&function(){var n=r.plugins;Object.getOwnPropertyNames(n).forEach(function(t){typeof this[t]=="function"?this[t](n[t]):e["default"].error("Unable to find plugin:",t)},o)}();o.options_.playerOptions=c;o.initChildren();o.isAudio(i.nodeName.toLowerCase()==="audio");o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled");o.el_.setAttribute("role","region");o.isAudio()?o.el_.setAttribute("aria-label","audio player"):o.el_.setAttribute("aria-label","video player");o.isAudio()&&o.addClass("vjs-audio");o.flexNotSupported_()&&o.addClass("vjs-no-flex");lt.IS_IOS||o.addClass("vjs-workinghover");t.players[o.id_]=o;o.userActive(!0);o.reportUserActivity();o.listenForUserActivity_();o.on("fullscreenchange",o.handleFullscreenChange_);o.on("stageclick",o.handleStageClick_);return o}return ai(t,n),t.prototype.dispose=function(){this.trigger("dispose");this.off("dispose");this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_);t.players[this.id_]=null;this.tag&&this.tag.player&&(this.tag.player=null);this.el_&&this.el_.player&&(this.el_.player=null);this.tech_&&this.tech_.dispose();n.prototype.dispose.call(this)},t.prototype.createEl=function(){var i=this.el_=n.prototype.createEl.call(this,"div"),t=this.tag,r,e,o,s,f,h;for(t.removeAttribute("width"),t.removeAttribute("height"),r=u.getElAttributes(t),Object.getOwnPropertyNames(r).forEach(function(n){n==="class"?i.className=r[n]:i.setAttribute(n,r[n])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=i.player=this,this.addClass("vjs-paused"),v["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0&&(this.styleEl_=d.createStyleElement("vjs-styles-dimensions"),e=u.$(".vjs-styles-defaults"),o=u.$("head"),o.insertBefore(this.styleEl_,e?e.nextSibling:o.firstChild)),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),s=t.getElementsByTagName("a"),f=0;f<s.length;f++)h=s.item(f),u.addElClass(h,"vjs-hidden"),h.setAttribute("hidden","hidden");return t.initNetworkState_=t.networkState,t.parentNode&&t.parentNode.insertBefore(i,t),u.insertElFirst(t,i),this.children_.unshift(t),this.el_=i,i},t.prototype.width=function(n){return this.dimension("width",n)},t.prototype.height=function(n){return this.dimension("height",n)},t.prototype.dimension=function(n,t){var i=n+"_",r;if(t===undefined)return this[i]||0;if(t==="")this[i]=undefined;else{if(r=parseFloat(t),isNaN(r))return e["default"].error('Improper value "'+t+'" supplied for for '+n),this;this[i]=r}return this.updateStyleEl_(),this},t.prototype.fluid=function(n){if(n===undefined)return!!this.fluid_;this.fluid_=!!n;n?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")},t.prototype.aspectRatio=function(n){if(n===undefined)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(n))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=n;this.fluid(!0);this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){var u,t;if(v["default"].VIDEOJS_NO_DYNAMIC_STYLE===!0){var f=typeof this.width_=="number"?this.width_:this.options_.width,e=typeof this.height_=="number"?this.height_:this.options_.height,i=this.tech_&&this.tech_.el();i&&(f>=0&&(i.width=f),e>=0&&(i.height=e));return}var r=void 0,o=void 0,s=void 0,n=void 0;s=this.aspectRatio_!==undefined&&this.aspectRatio_!=="auto"?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9";u=s.split(":");t=u[1]/u[0];r=this.width_!==undefined?this.width_:this.height_!==undefined?this.height_/t:this.videoWidth()||300;o=this.height_!==undefined?this.height_:r*t;n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions";this.addClass(n);d.setTextContent(this.styleEl_,"\n      ."+n+" {\n        width: "+r+"px;\n        height: "+o+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+t*100+"%;\n      }\n    ")},t.prototype.loadTech_=function(n,t){var f=this,i,r;this.tech_&&this.unloadTech_();n!=="Html5"&&this.tag&&(a["default"].getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null);this.techName_=n;this.isReady_=!1;i=w["default"]({source:t,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+n+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[n.toLowerCase()]);this.tag&&(i.tag=this.tag);t&&(this.currentType_=t.type,t.src===this.cache_.src&&this.cache_.currentTime>0&&(i.startTime=this.cache_.currentTime),this.cache_.src=t.src);r=a["default"].getTech(n);r||(r=s["default"].getComponent(n));this.tech_=new r(i);this.tech_.ready(p.bind(this,this.handleTechReady_),!0);tt["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_);k.forEach(function(n){f.on(f.tech_,n,f["handleTech"+l["default"](n)+"_"])});this.on(this.tech_,"loadstart",this.handleTechLoadStart_);this.on(this.tech_,"waiting",this.handleTechWaiting_);this.on(this.tech_,"canplay",this.handleTechCanPlay_);this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_);this.on(this.tech_,"playing",this.handleTechPlaying_);this.on(this.tech_,"ended",this.handleTechEnded_);this.on(this.tech_,"seeking",this.handleTechSeeking_);this.on(this.tech_,"seeked",this.handleTechSeeked_);this.on(this.tech_,"play",this.handleTechPlay_);this.on(this.tech_,"firstplay",this.handleTechFirstPlay_);this.on(this.tech_,"pause",this.handleTechPause_);this.on(this.tech_,"durationchange",this.handleTechDurationChange_);this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_);this.on(this.tech_,"error",this.handleTechError_);this.on(this.tech_,"loadedmetadata",this.updateStyleEl_);this.on(this.tech_,"posterchange",this.handleTechPosterChange_);this.on(this.tech_,"textdata",this.handleTechTextData_);this.usingNativeControls(this.techGet_("controls"));this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_();this.tech_.el().parentNode===this.el()||n==="Html5"&&this.tag||u.insertElFirst(this.tech_.el(),this.el());this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks();this.textTracks_=this.textTracks();this.audioTracks_=this.audioTracks();this.textTracksJson_=tt["default"].textTracksToJson(this.tech_);this.isReady_=!1;this.tech_.dispose();this.tech_=!1},t.prototype.tech=function(n){if(n&&n.IWillNotUseThisInPlugins)return this.tech_;var t="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";v["default"].alert(t);throw new Error(t);},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_();this.on(this.tech_,"mousedown",this.handleTechClick_);this.on(this.tech_,"touchstart",this.handleTechTouchStart_);this.on(this.tech_,"touchmove",this.handleTechTouchMove_);this.on(this.tech_,"touchend",this.handleTechTouchEnd_);this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_);this.off(this.tech_,"touchstart",this.handleTechTouchStart_);this.off(this.tech_,"touchmove",this.handleTechTouchMove_);this.off(this.tech_,"touchend",this.handleTechTouchEnd_);this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(n){e["default"]("deleting tag.poster throws in some browsers",n)}this.play()}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended");this.error(null);this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(n){return n!==undefined?(this.hasStarted_!==n&&(this.hasStarted_=n,n?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(!0);this.trigger("play")},t.prototype.handleTechWaiting_=function(){var n=this;this.addClass("vjs-waiting");this.trigger("waiting");this.one("timeupdate",function(){return n.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting");this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting");this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking");this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking");this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime);this.addClass("vjs-has-started");this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended");this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause();this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(n){n.button===0&&this.controls()&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(n){n.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(n,t){t&&this.isFullscreen(t.isFullscreen);this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var n=this.tech_.error();this.error(n)},t.prototype.handleTechTextData_=function(){var n=null;arguments.length>1&&(n=arguments[1]);this.trigger("textdata",n)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(n,t){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[n](t)},!0);else try{this.tech_&&this.tech_[n](t)}catch(i){e["default"](i);throw i;}},t.prototype.techGet_=function(n){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[n]()}catch(t){this.tech_[n]===undefined?e["default"]("Video.js: "+n+" method not defined for "+this.techName_+" playback technology.",t):t.name==="TypeError"?(e["default"]("Video.js: "+n+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1):e["default"](t);throw t;}return},t.prototype.play=function(){if(this.src()||this.currentSrc())this.techCall_("play");else this.tech_.one("loadstart",function(){this.play()});return this},t.prototype.pause=function(){return this.techCall_("pause"),this},t.prototype.paused=function(){return this.techGet_("paused")===!1?!1:!0},t.prototype.scrubbing=function(n){return n!==undefined?(this.scrubbing_=!!n,n?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},t.prototype.currentTime=function(n){return n!==undefined?(this.techCall_("setCurrentTime",n),this):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(n){return n===undefined?this.cache_.duration||0:(n=parseFloat(n)||0,n<0&&(n=Infinity),n!==this.cache_.duration&&(this.cache_.duration=n,n===Infinity?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.buffered=function(){var n=this.techGet_("buffered");return n&&n.length||(n=yt.createTimeRange(0,0)),n},t.prototype.bufferedPercent=function(){return pt.bufferedPercent(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),n=t.end(t.length-1);return n>i&&(n=i),n},t.prototype.volume=function(n){var t=void 0;return n!==undefined?(t=Math.max(0,Math.min(1,parseFloat(n))),this.cache_.volume=t,this.techCall_("setVolume",t),this):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(n){return n!==undefined?(this.techCall_("setMuted",n),this):this.techGet_("muted")||!1},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(n){return n!==undefined?(this.isFullscreen_=!!n,this):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var n=g["default"];if(this.isFullscreen(!0),n.requestFullscreen){y.on(f["default"],n.fullscreenchange,p.bind(this,function t(){this.isFullscreen(f["default"][n.fullscreenElement]);this.isFullscreen()===!1&&y.off(f["default"],n.fullscreenchange,t);this.trigger("fullscreenchange")}));this.el_[n.requestFullscreen]()}else this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"));return this},t.prototype.exitFullscreen=function(){var n=g["default"];return this.isFullscreen(!1),n.requestFullscreen?f["default"][n.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.enterFullWindow=function(){this.isFullWindow=!0;this.docOrigOverflow=f["default"].documentElement.style.overflow;y.on(f["default"],"keydown",p.bind(this,this.fullWindowOnEscKey));f["default"].documentElement.style.overflow="hidden";u.addElClass(f["default"].body,"vjs-full-window");this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(n){n.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1;y.off(f["default"],"keydown",this.fullWindowOnEscKey);f["default"].documentElement.style.overflow=this.docOrigOverflow;u.removeElClass(f["default"].body,"vjs-full-window");this.trigger("exitFullWindow")},t.prototype.canPlayType=function(n){for(var u=void 0,r,t,i=0,f=this.options_.techOrder;i<f.length;i++){if(r=l["default"](f[i]),t=a["default"].getTech(r),t||(t=s["default"].getComponent(r)),!t){e["default"].error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.');continue}if(t.isSupported()&&(u=t.canPlayType(n),u))return u}return""},t.prototype.selectSource=function(n){var f=this,t=this.options_.techOrder.map(l["default"]).map(function(n){return[n,a["default"].getTech(n)||s["default"].getComponent(n)]}).filter(function(n){var i=n[0],t=n[1];return t?t.isSupported():(e["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(n,t,i){var r=void 0;return n.some(function(n){return t.some(function(t){return r=i(n,t),r?!0:void 0})}),r},r=void 0,o=function(n){return function(t,i){return n(i,t)}},u=function(n,t){var i=n[0],r=n[1];if(r.canPlaySource(t,f.options_[i.toLowerCase()]))return{source:t,tech:i}};return r=this.options_.sourceOrder?i(n,t,o(u)):i(t,n,u),r||!1},t.prototype.src=function(n){if(n===undefined)return this.techGet_("src");var t=a["default"].getTech(this.techName_);return t||(t=s["default"].getComponent(this.techName_)),Array.isArray(n)?this.sourceList_(n):typeof n=="string"?this.src({src:n}):n instanceof Object&&(n.type&&!t.canPlaySource(n,this.options_[this.techName_.toLowerCase()])?this.sourceList_([n]):(this.cache_.src=n.src,this.currentType_=n.type||"",this.ready(function(){t.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",n):this.techCall_("src",n.src);this.options_.preload==="auto"&&this.load();this.options_.autoplay&&this.play()},!0))),this},t.prototype.sourceList_=function(n){var t=this.selectSource(n);t?t.tech===this.techName_?this.src(t.source):this.loadTech_(t.tech,t.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},t.prototype.load=function(){return this.techCall_("load"),this},t.prototype.reset=function(){return this.loadTech_(l["default"](this.options_.techOrder[0]),null),this.techCall_("reset"),this},t.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},t.prototype.currentType=function(){return this.currentType_||""},t.prototype.preload=function(n){return n!==undefined?(this.techCall_("setPreload",n),this.options_.preload=n,this):this.techGet_("preload")},t.prototype.autoplay=function(n){return n!==undefined?(this.techCall_("setAutoplay",n),this.options_.autoplay=n,this):this.techGet_("autoplay",n)},t.prototype.loop=function(n){return n!==undefined?(this.techCall_("setLoop",n),this.options_.loop=n,this):this.techGet_("loop")},t.prototype.poster=function(n){return n===undefined?this.poster_:(n||(n=""),this.poster_=n,this.techCall_("setPoster",n),this.trigger("posterchange"),this)},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(n){return n!==undefined?(n=!!n,this.controls_!==n&&(this.controls_=n,this.usingNativeControls()&&this.techCall_("setControls",n),n?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},t.prototype.usingNativeControls=function(n){return n!==undefined?(n=!!n,this.usingNativeControls_!==n&&(this.usingNativeControls_=n,n?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},t.prototype.error=function(n){return n===undefined?this.error_||null:n===null?(this.error_=n,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close(),this):(this.error_=new nt["default"](n),this.addClass("vjs-error"),e["default"].error("(CODE:"+this.error_.code+" "+nt["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},t.prototype.reportUserActivity=function(){this.userActivity_=!0},t.prototype.userActive=function(n){if(n!==undefined){if(n=!!n,n!==this.userActive_)if(this.userActive_=n,n)this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");else{if(this.userActivity_=!1,this.tech_)this.tech_.one("mousemove",function(n){n.stopPropagation();n.preventDefault()});this.removeClass("vjs-user-active");this.addClass("vjs-user-inactive");this.trigger("userinactive")}return this}return this.userActive_},t.prototype.listenForUserActivity_=function(){var t=void 0,r=void 0,u=void 0,n=p.bind(this,this.reportUserActivity),f=function(t){(t.screenX!==r||t.screenY!==u)&&(r=t.screenX,u=t.screenY,n())},e=function(){n();this.clearInterval(t);t=this.setInterval(n,250)},o=function(){n();this.clearInterval(t)},i;this.on("mousedown",e);this.on("mousemove",f);this.on("mouseup",o);this.on("keydown",n);this.on("keyup",n);i=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1;this.userActive(!0);this.clearTimeout(i);var n=this.options_.inactivityTimeout;n>0&&(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},n))}},250)},t.prototype.playbackRate=function(n){return n!==undefined?(this.techCall_("setPlaybackRate",n),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.isAudio=function(n){return n!==undefined?(this.isAudio_=!!n,this):!!this.isAudio_},t.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new hi["default"],this.videoTracks_)},t.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new oi["default"],this.audioTracks_)},t.prototype.textTracks=function(){if(this.tech_)return this.tech_.textTracks()},t.prototype.remoteTextTracks=function(){if(this.tech_)return this.tech_.remoteTextTracks()},t.prototype.remoteTextTrackEls=function(){if(this.tech_)return this.tech_.remoteTextTrackEls()},t.prototype.addTextTrack=function(n,t,i){if(this.tech_)return this.tech_.addTextTrack(n,t,i)},t.prototype.addRemoteTextTrack=function(n){if(this.tech_)return this.tech_.addRemoteTextTrack(n)},t.prototype.removeRemoteTextTrack=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=t.track,i=n===undefined?arguments[0]:n;if(this.tech_)return this.tech_.removeRemoteTextTrack(i)},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(n){return n===undefined?this.language_:(this.language_=String(n).toLowerCase(),this)},t.prototype.languages=function(){return b["default"](t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var i=b["default"](this.options_),r=i.tracks,n,t;for(i.tracks=[],n=0;n<r.length;n++)t=r[n],t=b["default"](t),t.player=undefined,i.tracks[n]=t;return i},t.prototype.createModal=function(n,t){var r=this,i;t=t||{};t.content=n||"";i=new ui["default"](this,t);this.addChild(i);i.on("dispose",function(){r.removeChild(i)});return i.open()},t.getTagSettings=function(n){var t={sources:[],tracks:[]},f=u.getElAttributes(n),h=f["data-setup"],o,i,a,r,s;if(h!==null){var c=gt["default"](h||"{}"),l=c[0],v=c[1];l&&e["default"].error(l);w["default"](f,v)}if(w["default"](t,f),n.hasChildNodes())for(o=n.childNodes,i=0,a=o.length;i<a;i++)r=o[i],s=r.nodeName.toLowerCase(),s==="source"?t.sources.push(u.getElAttributes(r)):s==="track"&&t.tracks.push(u.getElAttributes(r));return t},t.prototype.flexNotSupported_=function(){var n=f["default"].createElement("i");return!("flexBasis"in n.style||"webkitFlexBasis"in n.style||"mozFlexBasis"in n.style||"msFlexBasis"in n.style||"msFlexOrder"in n.style)},t}(s["default"]);o.players={};c=v["default"].navigator;o.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:c&&(c.languages&&c.languages[0]||c.userLanguage||c.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."};["ended","seeking","seekable","networkState","readyState"].forEach(function(n){o.prototype[n]=function(){return this.techGet_(n)}});k.forEach(function(n){o.prototype["handleTech"+l["default"](n)+"_"]=function(){return this.trigger(n)}});s["default"].registerComponent("Player",o);i["default"]=o},{"1":1,"136":136,"145":145,"4":4,"41":41,"44":44,"45":45,"46":46,"5":5,"50":50,"55":55,"59":59,"60":60,"61":61,"62":62,"63":63,"68":68,"69":69,"71":71,"76":76,"78":78,"79":79,"8":8,"80":80,"81":81,"82":82,"84":84,"85":85,"86":86,"87":87,"88":88,"89":89,"92":92,"93":93}],52:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}var r,u,f;i.__esModule=!0;r=n(51);u=e(r);f=function(n,t){u["default"].prototype[n]=t};i["default"]=f},{"51":51}],53:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r;i.__esModule=!0;var f=n(3),e=u(f),o=n(5),s=u(o);r=function(n){function t(i){var u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r;return h(this,t),r=c(this,n.call(this,i,u)),r.update(),r}return l(t,n),t.prototype.update=function(){var n=this.createPopup();this.popup&&this.removeChild(this.popup);this.popup=n;this.addChild(n);this.items&&this.items.length===0?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createPopup=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},t}(e["default"]);s["default"].registerComponent("PopupButton",r);i["default"]=r},{"3":3,"5":5}],54:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function v(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function p(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function w(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var e=n(5),f=v(e),o=n(80),s=r(o),h=n(82),c=r(h),l=n(81),a=r(l);u=function(n){function t(){return y(this,t),p(this,n.apply(this,arguments))}return w(t,n),t.prototype.addItem=function(n){this.addChild(n);n.on("click",c.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var i=this.options_.contentElType||"ul",t;this.contentEl_=s.createEl(i,{className:"vjs-menu-content"});t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});t.appendChild(this.contentEl_);a.on(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()});return t},t}(f["default"]);f["default"].registerComponent("Popup",u);i["default"]=u},{"5":5,"80":80,"81":81,"82":82}],55:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function w(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function b(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function k(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var o=n(3),s=e(o),h=n(5),c=e(h),l=n(82),a=r(l),v=n(80),f=r(v),y=n(78),p=r(y);u=function(n){function t(i,r){w(this,t);var u=b(this,n.call(this,i,r));u.update();i.on("posterchange",a.bind(u,u.update));return u}return k(t,n),t.prototype.dispose=function(){this.player().off("posterchange",this.update);n.prototype.dispose.call(this)},t.prototype.createEl=function(){var n=f.createEl("div",{className:"vjs-poster",tabIndex:-1});return p.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=f.createEl("img"),n.appendChild(this.fallbackImg_)),n},t.prototype.update=function(){var n=this.player().poster();this.setSrc(n);n?this.show():this.hide()},t.prototype.setSrc=function(n){if(this.fallbackImg_)this.fallbackImg_.src=n;else{var t="";n&&(t='url("'+n+'")');this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t}(s["default"]);c["default"].registerComponent("PosterImage",u);i["default"]=u},{"3":3,"5":5,"78":78,"80":80,"82":82}],56:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function p(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n,t){t&&(o=t);setTimeout(s,n)}var h;i.__esModule=!0;i.hasLoaded=i.autoSetupTimeout=i.autoSetup=undefined;var c=n(81),l=p(c),a=n(92),u=e(a),v=n(93),y=e(v);var r=!1,o=void 0,s=function(){var i=u["default"].getElementsByTagName("video"),e=u["default"].getElementsByTagName("audio"),n=[],s,l,h,a,c,v,t,y;if(i&&i.length>0)for(s=0,l=i.length;s<l;s++)n.push(i[s]);if(e&&e.length>0)for(h=0,a=e.length;h<a;h++)n.push(e[h]);if(n&&n.length>0)for(c=0,v=n.length;c<v;c++)if(t=n[c],t&&t.getAttribute)t.player===undefined&&(y=t.getAttribute("data-setup"),y!==null&&o(t));else{f(1);break}else r||f(1)};if(u["default"].readyState==="complete")r=!0;else l.one(y["default"],"load",function(){r=!0});h=function(){return r};i.autoSetup=s;i.autoSetupTimeout=f;i.hasLoaded=h},{"81":81,"92":92,"93":93}],57:[function(n,t,i){"use strict";function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function o(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u;i.__esModule=!0;var s=n(5),f=o(s),h=n(80),r=l(h),c=n(136),e=o(c);u=function(n){function t(i,r){a(this,t);var u=v(this,n.call(this,i,r));u.bar=u.getChild(u.options_.barName);u.vertical(!!u.options_.vertical);u.on("mousedown",u.handleMouseDown);u.on("touchstart",u.handleMouseDown);u.on("focus",u.handleFocus);u.on("blur",u.handleBlur);u.on("click",u.handleClick);u.on(i,"controlsvisible",u.update);u.on(i,u.playerEvent,u.update);return u}return y(t,n),t.prototype.createEl=function(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return i.className=i.className+" vjs-slider",i=e["default"]({tabIndex:0},i),r=e["default"]({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),n.prototype.createEl.call(this,t,i,r)},t.prototype.handleMouseDown=function(n){var t=this.bar.el_.ownerDocument;n.preventDefault();r.blockTextSelection();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(t,"mousemove",this.handleMouseMove);this.on(t,"mouseup",this.handleMouseUp);this.on(t,"touchmove",this.handleMouseMove);this.on(t,"touchend",this.handleMouseUp);this.handleMouseMove(n)},t.prototype.handleMouseMove=function(){},t.prototype.handleMouseUp=function(){var n=this.bar.el_.ownerDocument;r.unblockTextSelection();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(n,"mousemove",this.handleMouseMove);this.off(n,"mouseup",this.handleMouseUp);this.off(n,"touchmove",this.handleMouseMove);this.off(n,"touchend",this.handleMouseUp);this.update()},t.prototype.update=function(){var n,t,i;this.el_&&(n=this.getPercent(),t=this.bar,t)&&((typeof n!="number"||n!==n||n<0||n===Infinity)&&(n=0),i=(n*100).toFixed(2)+"%",this.vertical()?t.el().style.height=i:t.el().style.width=i)},t.prototype.calculateDistance=function(n){var t=r.getPointerPosition(this.el_,n);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(n){n.which===37||n.which===40?(n.preventDefault(),this.stepBack()):(n.which===38||n.which===39)&&(n.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(n){n.stopImmediatePropagation();n.preventDefault()},t.prototype.vertical=function(n){return n===undefined?this.vertical_||!1:(this.vertical_=!!n,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},t}(f["default"]);f["default"].registerComponent("Slider",u);i["default"]=u},{"136":136,"5":5,"80":80}],58:[function(n,t,i){"use strict";function r(n){return n.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},n.streamFromParts=function(n,t){return n+"&"+t},n.streamToParts=function(n){var r={connection:"",stream:""},t,i;return n?(t=n.search(/&(?!\w+=)/),i=void 0,t!==-1?i=t+1:(t=i=n.lastIndexOf("/")+1,t===0&&(t=i=n.length)),r.connection=n.substring(0,t),r.stream=n.substring(i,n.length),r):r},n.isStreamingType=function(t){return t in n.streamingFormats},n.RTMP_RE=/^rtmp[set]?:\/\//i,n.isStreamingSrc=function(t){return n.RTMP_RE.test(t)},n.rtmpSourceHandler={},n.rtmpSourceHandler.canPlayType=function(t){return n.isStreamingType(t)?"maybe":""},n.rtmpSourceHandler.canHandleSource=function(t){var i=n.rtmpSourceHandler.canPlayType(t.type);return i?i:n.isStreamingSrc(t.src)?"maybe":""},n.rtmpSourceHandler.handleSource=function(t,i){var r=n.streamToParts(t.src);i.setRtmpConnection(r.connection);i.setRtmpStream(r.stream)},n.registerSourceHandler(n.rtmpSourceHandler),n}i.__esModule=!0;i["default"]=r},{}],59:[function(n,t,i){"use strict";function p(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function ot(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function st(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function ht(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function ct(n){var t=n.charAt(0).toUpperCase()+n.slice(1);w["set"+t]=function(t){return this.el_.vjs_setProperty(n,t)}}function k(n){w[n]=function(){return this.el_.vjs_getProperty(n)}}var o,c;i.__esModule=!0;var d=n(62),l=e(d),g=n(80),s=p(g),nt=n(90),y=p(nt),h=n(88),tt=n(58),it=e(tt),rt=n(5),ut=e(rt),ft=n(93),u=e(ft),et=n(136),f=e(et);var a=u["default"].navigator,r=function(n){function t(i,r){ot(this,t);var f=st(this,n.call(this,i,r));i.source&&f.ready(function(){this.setSource(i.source)},!0);i.startTime&&f.ready(function(){this.load();this.play();this.currentTime(i.startTime)},!0);u["default"].videojs=u["default"].videojs||{};u["default"].videojs.Flash=u["default"].videojs.Flash||{};u["default"].videojs.Flash.onReady=t.onReady;u["default"].videojs.Flash.onEvent=t.onEvent;u["default"].videojs.Flash.onError=t.onError;f.on("seeked",function(){this.lastSeekTarget_=undefined});return f}return ht(t,n),t.prototype.createEl=function(){var n=this.options_,i;n.swf||(i="5.1.0",n.swf="//vjs.zencdn.net/swf/"+i+"/video-js.swf");var r=n.techId,u=f["default"]({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:n.autoplay,preload:n.preload,loop:n.loop,muted:n.muted},n.flashVars),e=f["default"]({wmode:"opaque",bgcolor:"#000000"},n.params),o=f["default"]({id:r,name:r,"class":"vjs-tech"},n.attributes);return this.el_=t.embed(n.swf,u,e,o),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0);this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(n){return n===undefined?this.currentSrc():this.setSrc(n)},t.prototype.setSrc=function(n){var t=this;n=y.getAbsoluteURL(n);this.el_.vjs_src(n);this.autoplay()&&this.setTimeout(function(){return t.play()},0)},t.prototype.seeking=function(){return this.lastSeekTarget_!==undefined},t.prototype.setCurrentTime=function(t){var i=this.seekable();i.length&&(t=t>i.start(0)?t:i.start(0),t=t<i.end(i.length-1)?t:i.end(i.length-1),this.lastSeekTarget_=t,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",t),n.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.duration=function(){if(this.readyState()===0)return NaN;var n=this.el_.vjs_getProperty("duration");return n>=0?n:Infinity},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var n=this.duration();return n===0?h.createTimeRange():h.createTimeRange(0,n)},t.prototype.buffered=function(){var n=this.el_.vjs_getProperty("buffered");return n.length===0?h.createTimeRange():h.createTimeRange(n[0][0],n[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t}(l["default"]),w=r.prototype,v="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),b="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(",");for(o=0;o<v.length;o++)k(v[o]),ct(v[o]);for(c=0;c<b.length;c++)k(b[c]);r.isSupported=function(){return r.version()[0]>=10};l["default"].withSourceHandlers(r);r.nativeSourceHandler={};r.nativeSourceHandler.canPlayType=function(n){return n in r.formats?"maybe":""};r.nativeSourceHandler.canHandleSource=function(n){function i(n){var t=y.getFileExtension(n);return t?"video/"+t:""}var t=void 0;return t=n.type?n.type.replace(/;.*/,"").toLowerCase():i(n.src),r.nativeSourceHandler.canPlayType(t)};r.nativeSourceHandler.handleSource=function(n,t){t.setSrc(n.src)};r.nativeSourceHandler.dispose=function(){};r.registerSourceHandler(r.nativeSourceHandler);r.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};r.onReady=function(n){var i=s.getEl(n),t=i&&i.tech;t&&t.el()&&r.checkReady(t)};r.checkReady=function(n){n.el()&&(n.el().vjs_getProperty?n.triggerReady():this.setTimeout(function(){r.checkReady(n)},50))};r.onEvent=function(n,t){var i=s.getEl(n).tech;i.trigger(t,Array.prototype.slice.call(arguments,2))};r.onError=function(n,t){var i=s.getEl(n).tech;if(t==="srcnotfound")return i.error(4);i.error("FLASH: "+t)};r.version=function(){var n="0,0,0";try{n=new u["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{a.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(n=(a.plugins["Shockwave Flash 2.0"]||a.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(i){}}return n.split(",")};r.embed=function(n,t,i,u){var f=r.getEmbedCode(n,t,i,u);return s.createEl("div",{innerHTML:f}).childNodes[0]};r.getEmbedCode=function(n,t,i,r){var u="",e="",o="";return t&&Object.getOwnPropertyNames(t).forEach(function(n){u+=n+"="+t[n]+"&amp;"}),i=f["default"]({movie:n,flashvars:u,allowScriptAccess:"always",allowNetworking:"all"},i),Object.getOwnPropertyNames(i).forEach(function(n){e+='<param name="'+n+'" value="'+i[n]+'" />'}),r=f["default"]({data:n,width:"100%",height:"100%"},r),Object.getOwnPropertyNames(r).forEach(function(n){o+=n+'="'+r[n]+'" '}),'<object type="application/x-shockwave-flash" '+o+">"+e+"<\/object>"};it["default"](r);ut["default"].registerComponent("Flash",r);l["default"].registerTech("Flash",r);i["default"]=r},{"136":136,"5":5,"58":58,"62":62,"80":80,"88":88,"90":90,"93":93}],60:[function(n,t,i){"use strict";function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function pt(n,t){return n.raw=t,n}function wt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function bt(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function kt(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r,o;i.__esModule=!0;var b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},k=pt(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]),d=n(62),c=f(d),g=n(5),nt=f(g),tt=n(80),l=h(tt),it=n(90),y=h(it),rt=n(82),a=h(rt),ut=n(85),p=f(ut),ft=n(146),et=f(ft),ot=n(78),u=h(ot),st=n(92),s=f(st),ht=n(93),w=f(ht),ct=n(136),lt=f(ct),at=n(86),vt=f(at),yt=n(89),v=f(yt);r=function(n){function t(i,r){var e,b,o,d;wt(this,t);var f=bt(this,n.call(this,i,r)),s=i.source,h=!1;if(s&&(f.el_.currentSrc!==s.src||i.tag&&i.tag.initNetworkState_===3)?f.setSource(s):f.handleLateInit_(f.el_),f.el_.hasChildNodes()){for(var l=f.el_.childNodes,w=l.length,c=[];w--;)e=l[w],b=e.nodeName.toLowerCase(),b==="track"&&(f.featuresNativeTextTracks?(f.remoteTextTrackEls().addTrackElement_(e),f.remoteTextTracks().addTrack_(e.track),h||f.el_.hasAttribute("crossorigin")||!y.isCrossOrigin(e.src)||(h=!0)):c.push(e));for(o=0;o<c.length;o++)f.el_.removeChild(c[o])}return d=["audio","video"],d.forEach(function(n){var r=f.el()[n+"Tracks"],i=f[n+"Tracks"](),t=v["default"](n);if(f["featuresNative"+t+"Tracks"]&&r&&r.addEventListener){f["handle"+t+"TrackChange_"]=function(){i.trigger({type:"change",target:i,currentTarget:i,srcElement:i})};f["handle"+t+"TrackAdd_"]=function(n){return i.addTrack(n.track)};f["handle"+t+"TrackRemove_"]=function(n){return i.removeTrack(n.track)};r.addEventListener("change",f["handle"+t+"TrackChange_"]);r.addEventListener("addtrack",f["handle"+t+"TrackAdd_"]);r.addEventListener("removetrack",f["handle"+t+"TrackRemove_"]);f["removeOld"+t+"Tracks_"]=function(){return f.removeOldTracks_(i,r)};f.on("loadstart",f["removeOld"+t+"Tracks_"])}}),f.featuresNativeTextTracks&&(h&&p["default"].warn(et["default"](k)),f.handleTextTrackChange_=a.bind(f,f.handleTextTrackChange),f.handleTextTrackAdd_=a.bind(f,f.handleTextTrackAdd),f.handleTextTrackRemove_=a.bind(f,f.handleTextTrackRemove),f.proxyNativeTextTracks_()),(u.TOUCH_ENABLED||u.IS_IPHONE||u.IS_NATIVE_ANDROID)&&i.nativeControlsForTouch===!0&&f.setControls(!0),f.proxyWebkitFullscreen_(),f.triggerReady(),f}return kt(t,n),t.prototype.dispose=function(){var i=this;["audio","video","text"].forEach(function(n){var r=v["default"](n),t=i.el_[n+"Tracks"];t&&t.removeEventListener&&(t.removeEventListener("change",i["handle"+r+"TrackChange_"]),t.removeEventListener("addtrack",i["handle"+r+"TrackAdd_"]),t.removeEventListener("removetrack",i["handle"+r+"TrackRemove_"]));t&&i.off("loadstart",i["removeOld"+r+"Tracks_"])});t.disposeMediaElement(this.el_);n.prototype.dispose.call(this)},t.prototype.createEl=function(){var n=this.options_.tag,f,c,e,o,i,r,h;for(n&&this.movingMediaElementInDOM!==!1||(n?(f=n.cloneNode(!0),n.parentNode.insertBefore(f,n),t.disposeMediaElement(n),n=f):(n=s["default"].createElement("video"),c=this.options_.tag&&l.getElAttributes(this.options_.tag),e=vt["default"]({},c),u.TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete e.controls,l.setElAttributes(n,lt["default"](e,{id:this.options_.techId,"class":"vjs-tech"}))),n.playerId=this.options_.playerId),o=["autoplay","preload","loop","muted"],i=o.length-1;i>=0;i--)r=o[i],h={},typeof this.options_[r]!="undefined"&&(h[r]=this.options_[r]),l.setElAttributes(n,h);return n},t.prototype.handleLateInit_=function(n){var r=this,i,t;if(n.networkState!==0&&n.networkState!==3){if(n.readyState===0&&(i=function(){var n=!1,i=function(){n=!0},t;r.on("loadstart",i);t=function(){n||this.trigger("loadstart")};r.on("loadedmetadata",t);return r.ready(function(){this.off("loadstart",i);this.off("loadedmetadata",t);n||this.trigger("loadstart")}),{v:void 0}}(),(typeof i=="undefined"?"undefined":b(i))==="object"))return i.v;t=["loadstart"];t.push("loadedmetadata");n.readyState>=2&&t.push("loadeddata");n.readyState>=3&&t.push("canplay");n.readyState>=4&&t.push("canplaythrough");this.ready(function(){t.forEach(function(n){this.trigger(n)},this)})}},t.prototype.proxyNativeTextTracks_=function(){var n=this.el().textTracks,t;if(n){for(t=0;t<n.length;t++)this.textTracks().addTrack_(n[t]);n.addEventListener&&(n.addEventListener("change",this.handleTextTrackChange_),n.addEventListener("addtrack",this.handleTextTrackAdd_),n.addEventListener("removetrack",this.handleTextTrackRemove_));this.on("loadstart",this.removeOldTextTracks_)}},t.prototype.handleTextTrackChange=function(){var n=this.textTracks();this.textTracks().trigger({type:"change",target:n,currentTarget:n,srcElement:n})},t.prototype.handleTextTrackAdd=function(n){this.textTracks().addTrack_(n.track)},t.prototype.handleTextTrackRemove=function(n){this.textTracks().removeTrack_(n.track)},t.prototype.removeOldTracks_=function(n,t){var f=[],i,e,o,r,u,s;if(t){for(i=0;i<n.length;i++){for(e=n[i],o=!1,r=0;r<t.length;r++)if(t[r]===e){o=!0;break}o||f.push(e)}for(u=0;u<f.length;u++)s=f[u],n.removeTrack_(s)}},t.prototype.removeOldTextTracks_=function(){var n=this.textTracks(),t=this.el().textTracks;this.removeOldTracks_(n,t)},t.prototype.play=function(){var n=this.el_.play();n!==undefined&&typeof n.then=="function"&&n.then(null,function(){})},t.prototype.setCurrentTime=function(n){try{this.el_.currentTime=n}catch(t){p["default"](t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){return this.el_.duration||0},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var i=this,n,t;if("webkitDisplayingFullscreen"in this.el_){n=function(){this.trigger("fullscreenchange",{isFullscreen:!1})};t=function(){this.one("webkitendfullscreen",n);this.trigger("fullscreenchange",{isFullscreen:!0})};this.on("webkitbeginfullscreen",t);this.on("dispose",function(){i.off("webkitbeginfullscreen",t);i.off("webkitendfullscreen",n)})}},t.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var n=w["default"].navigator&&w["default"].navigator.userAgent||"";if(/Android/.test(n)||!/Chrome|Mac OS X 10.5/.test(n))return!0}return!1},t.prototype.enterFullScreen=function(){var n=this.el_;n.paused&&n.networkState<=n.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){n.pause();n.webkitEnterFullScreen()},0)):n.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(n){if(n===undefined)return this.el_.src;this.setSrc(n)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(n){this.el_.controls=!!n},t.prototype.addTextTrack=function(t,i,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,r):n.prototype.addTextTrack.call(this,t,i,r)},t.prototype.addRemoteTextTrack=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},i;return this.featuresNativeTextTracks?(i=s["default"].createElement("track"),t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t["default"]&&(i["default"]=t["default"]),t.id&&(i.id=t.id),t.src&&(i.src=t.src),this.el().appendChild(i),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack_(i.track),i):n.prototype.addRemoteTextTrack.call(this,t)},t.prototype.removeRemoteTextTrack=function(t){var u,i,r;if(!this.featuresNativeTextTracks)return n.prototype.removeRemoteTextTrack.call(this,t);for(u=this.remoteTextTrackEls().getTrackElementByTrack_(t),this.remoteTextTrackEls().removeTrackElement_(u),this.remoteTextTracks().removeTrack_(t),i=this.$$("track"),r=i.length;r--;)(t===i[r]||t===i[r].track)&&this.el().removeChild(i[r])},t}(c["default"]);r.TEST_VID=s["default"].createElement("video");o=s["default"].createElement("track");o.kind="captions";o.srclang="en";o.label="English";r.TEST_VID.appendChild(o);r.isSupported=function(){try{r.TEST_VID.volume=.5}catch(n){return!1}return!!r.TEST_VID.canPlayType};r.canControlVolume=function(){try{var n=r.TEST_VID.volume;return r.TEST_VID.volume=n/2+.1,n!==r.TEST_VID.volume}catch(t){return!1}};r.canControlPlaybackRate=function(){if(u.IS_ANDROID&&u.IS_CHROME)return!1;try{var n=r.TEST_VID.playbackRate;return r.TEST_VID.playbackRate=n/2+.1,n!==r.TEST_VID.playbackRate}catch(t){return!1}};r.supportsNativeTextTracks=function(){var n=void 0;return n=!!r.TEST_VID.textTracks,n&&r.TEST_VID.textTracks.length>0&&(n=typeof r.TEST_VID.textTracks[0].mode!="number"),n&&u.IS_FIREFOX&&(n=!1),!n||"onremovetrack"in r.TEST_VID.textTracks||(n=!1),n};r.supportsNativeVideoTracks=function(){return!!r.TEST_VID.videoTracks};r.supportsNativeAudioTracks=function(){return!!r.TEST_VID.audioTracks};r.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"];r.prototype.featuresVolumeControl=r.canControlVolume();r.prototype.featuresPlaybackRate=r.canControlPlaybackRate();r.prototype.movingMediaElementInDOM=!u.IS_IOS;r.prototype.featuresFullscreenResize=!0;r.prototype.featuresProgressEvents=!0;r.prototype.featuresTimeupdateEvents=!0;r.prototype.featuresNativeTextTracks=r.supportsNativeTextTracks();r.prototype.featuresNativeVideoTracks=r.supportsNativeVideoTracks();r.prototype.featuresNativeAudioTracks=r.supportsNativeAudioTracks();var e=void 0,dt=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,gt=/^video\/mp4/i;r.patchCanPlayType=function(){u.ANDROID_VERSION>=4&&!u.IS_FIREFOX&&(e||(e=r.TEST_VID.constructor.prototype.canPlayType),r.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&dt.test(n)?"maybe":e.call(this,n)});u.IS_OLD_ANDROID&&(e||(e=r.TEST_VID.constructor.prototype.canPlayType),r.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&gt.test(n)?"maybe":e.call(this,n)})};r.unpatchCanPlayType=function(){var n=r.TEST_VID.constructor.prototype.canPlayType;return r.TEST_VID.constructor.prototype.canPlayType=e,e=null,n};r.patchCanPlayType();r.disposeMediaElement=function(n){if(n){for(n.parentNode&&n.parentNode.removeChild(n);n.hasChildNodes();)n.removeChild(n.firstChild);n.removeAttribute("src");typeof n.load=="function"&&function(){try{n.load()}catch(t){}}()}};r.resetMediaElement=function(n){if(n){for(var t=n.querySelectorAll("source"),i=t.length;i--;)n.removeChild(t[i]);n.removeAttribute("src");typeof n.load=="function"&&function(){try{n.load()}catch(t){}}()}};["paused","currentTime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultMuted","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(n){r.prototype[n]=function(){return this.el_[n]}});["volume","muted","src","poster","preload","autoplay","loop","playbackRate"].forEach(function(n){r.prototype["set"+v["default"](n)]=function(t){this.el_[n]=t}});["pause","load"].forEach(function(n){r.prototype[n]=function(){return this.el_[n]()}});c["default"].withSourceHandlers(r);r.nativeSourceHandler={};r.nativeSourceHandler.canPlayType=function(n){try{return r.TEST_VID.canPlayType(n)}catch(t){return""}};r.nativeSourceHandler.canHandleSource=function(n){if(n.type)return r.nativeSourceHandler.canPlayType(n.type);if(n.src){var t=y.getFileExtension(n.src);return r.nativeSourceHandler.canPlayType("video/"+t)}return""};r.nativeSourceHandler.handleSource=function(n,t){t.setSrc(n.src)};r.nativeSourceHandler.dispose=function(){};r.registerSourceHandler(r.nativeSourceHandler);nt["default"].registerComponent("Html5",r);c["default"].registerTech("Html5",r);i["default"]=r},{"136":136,"146":146,"5":5,"62":62,"78":78,"80":80,"82":82,"85":85,"86":86,"89":89,"90":90,"92":92,"93":93}],61:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function v(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f;i.__esModule=!0;var e=n(5),r=u(e),o=n(62),s=u(o),h=n(89),c=u(h);f=function(n){function t(i,u,f){var y,o,v,e,h;if(l(this,t),y=a(this,n.call(this,i,u,f)),u.playerOptions.sources&&u.playerOptions.sources.length!==0)i.src(u.playerOptions.sources);else for(o=0,v=u.playerOptions.techOrder;o<v.length;o++)if(e=c["default"](v[o]),h=s["default"].getTech(e),e||(h=r["default"].getComponent(e)),h&&h.isSupported()){i.loadTech_(e);break}return y}return v(t,n),t}(r["default"]);r["default"].registerComponent("MediaLoader",f);i["default"]=f},{"5":5,"62":62,"89":89}],62:[function(n,t,i){"use strict";function at(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function vt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function yt(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function pt(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function wt(n,t,i,r){var u=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{},e=n.textTracks(),f;return u.kind=t,i&&(u.label=i),r&&(u.language=r),u.tech=n,f=new d["default"](u),e.addTrack_(f),f}var r;i.__esModule=!0;var l=n(5),e=u(l),a=n(66),v=u(a),y=n(65),p=u(y),w=n(86),b=u(w),k=n(72),d=u(k),g=n(70),h=u(g),nt=n(76),tt=u(nt),it=n(63),rt=u(it),ut=n(82),o=at(ut),ft=n(85),c=u(ft),s=n(88),et=n(79),ot=n(46),st=u(ot),ht=n(93),f=u(ht),ct=n(92),lt=u(ct);r=function(n){function t(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(){},i;vt(this,t);r.reportTouchActivity=!1;i=yt(this,n.call(this,null,r,u));i.hasStarted_=!1;i.on("playing",function(){this.hasStarted_=!0});i.on("loadstart",function(){this.hasStarted_=!1});if(i.textTracks_=r.textTracks,i.videoTracks_=r.videoTracks,i.audioTracks_=r.audioTracks,i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),(r.nativeCaptions===!1||r.nativeTextTracks===!1)&&(i.featuresNativeTextTracks=!1),!i.featuresNativeTextTracks)i.on("ready",i.emulateTextTracks);return i.initTextTrackListeners(),i.initTrackListeners(),i.emitTapEvents(),i}return pt(t,n),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange);this.manualProgress=!0;this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(){this.stopTrackingProgress();this.progressInterval=this.setInterval(o.bind(this,function(){var n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress");this.bufferedPercent_=n;n===1&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(){this.duration_=this.duration()},t.prototype.buffered=function(){return s.createTimeRange(0,0)},t.prototype.bufferedPercent=function(){return et.bufferedPercent(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime();this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(["audio","video","text"]);this.manualProgress&&this.manualProgressOff();this.manualTimeUpdates&&this.manualTimeUpdatesOff();n.prototype.dispose.call(this)},t.prototype.clearTracks=function(n){var t=this;n=[].concat(n);n.forEach(function(n){for(var i=t[n+"Tracks"]()||[],u=i.length,r;u--;)r=i[u],n==="text"&&t.removeRemoteTextTrack(r),i.removeTrack_(r)})},t.prototype.reset=function(){},t.prototype.error=function(n){return n!==undefined&&(this.error_=new st["default"](n),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?s.createTimeRange(0,0):s.createTimeRange()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTextTrackListeners=function(){var t=o.bind(this,function(){this.trigger("texttrackchange")}),n=this.textTracks();if(n){n.addEventListener("removetrack",t);n.addEventListener("addtrack",t);this.on("dispose",o.bind(this,function(){n.removeEventListener("removetrack",t);n.removeEventListener("addtrack",t)}))}},t.prototype.initTrackListeners=function(){var n=this;["video","audio"].forEach(function(t){var i=function(){n.trigger(t+"trackchange")},r=n[t+"Tracks"]();r.addEventListener("removetrack",i);r.addEventListener("addtrack",i);n.on("dispose",function(){r.removeEventListener("removetrack",i);r.removeEventListener("addtrack",i)})})},t.prototype.emulateTextTracks=function(){var n=this,t=this.textTracks(),i,r;if(t){f["default"].WebVTT||this.el().parentNode===null||this.el().parentNode===undefined||function(){var t=lt["default"].createElement("script");t.src=n.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js";t.onload=function(){n.trigger("vttjsloaded")};t.onerror=function(){n.trigger("vttjserror")};n.on("dispose",function(){t.onload=null;t.onerror=null});f["default"].WebVTT=!0;n.el().parentNode.appendChild(t)}();i=function(){return n.trigger("texttrackchange")};r=function(){var n,r;for(i(),n=0;n<t.length;n++)r=t[n],r.removeEventListener("cuechange",i),r.mode==="showing"&&r.addEventListener("cuechange",i)};r();t.addEventListener("change",r);this.on("dispose",function(){t.removeEventListener("change",r)})}},t.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new tt["default"],this.videoTracks_},t.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new rt["default"],this.audioTracks_},t.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new h["default"],this.textTracks_},t.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new h["default"],this.remoteTextTracks_},t.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new p["default"],this.remoteTextTrackEls_},t.prototype.addTextTrack=function(n,t,i){if(!n)throw new Error("TextTrack kind is required but was not provided");return wt(this,n,t,i)},t.prototype.addRemoteTextTrack=function(n){var i=b["default"](n,{tech:this}),t=new v["default"](i);return this.remoteTextTrackEls().addTrackElement_(t),this.remoteTextTracks().addTrack_(t.track),this.textTracks().addTrack_(t.track),t},t.prototype.removeRemoteTextTrack=function(n){this.textTracks().removeTrack_(n);var t=this.remoteTextTrackEls().getTrackElementByTrack_(n);this.remoteTextTrackEls().removeTrackElement_(t);this.remoteTextTracks().removeTrack_(n)},t.prototype.setPoster=function(){},t.prototype.canPlayType=function(){return""},t.isTech=function(n){return n.prototype instanceof t||n instanceof t||n===t},t.registerTech=function(n,i){if(t.techs_||(t.techs_={}),!t.isTech(i))throw new Error("Tech "+n+" must be a Tech");return t.techs_[n]=i,i},t.getTech=function(n){return t.techs_&&t.techs_[n]?t.techs_[n]:f["default"]&&f["default"].videojs&&f["default"].videojs[n]?(c["default"].warn("The "+n+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),f["default"].videojs[n]):void 0},t}(e["default"]);r.prototype.textTracks_;r.prototype.audioTracks_;r.prototype.videoTracks_;r.prototype.featuresVolumeControl=!0;r.prototype.featuresFullscreenResize=!1;r.prototype.featuresPlaybackRate=!1;r.prototype.featuresProgressEvents=!1;r.prototype.featuresTimeupdateEvents=!1;r.prototype.featuresNativeTextTracks=!1;r.withSourceHandlers=function(n){n.registerSourceHandler=function(t,i){var r=n.sourceHandlers;r||(r=n.sourceHandlers=[]);i===undefined&&(i=r.length);r.splice(i,0,t)};n.canPlayType=function(t){for(var u=n.sourceHandlers||[],r=void 0,i=0;i<u.length;i++)if(r=u[i].canPlayType(t),r)return r;return""};n.selectSourceHandler=function(t,i){for(var u=n.sourceHandlers||[],f=void 0,r=0;r<u.length;r++)if(f=u[r].canHandleSource(t,i),f)return u[r];return null};n.canPlaySource=function(t,i){var r=n.selectSourceHandler(t,i);return r?r.canHandleSource(t,i):""};["seekable","duration"].forEach(function(n){var t=this[n];typeof t=="function"&&(this[n]=function(){return this.sourceHandler_&&this.sourceHandler_[n]?this.sourceHandler_[n].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},n.prototype);n.prototype.setSource=function(t){var i=n.selectSourceHandler(t,this.options_);if(i||(n.nativeSourceHandler?i=n.nativeSourceHandler:c["default"].error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),i!==n.nativeSourceHandler){this.currentSource_=t;this.off(this.el_,"loadstart",n.prototype.firstLoadStartListener_);this.off(this.el_,"loadstart",n.prototype.successiveLoadStartListener_);this.one(this.el_,"loadstart",n.prototype.firstLoadStartListener_)}this.sourceHandler_=i.handleSource(t,this,this.options_);this.on("dispose",this.disposeSourceHandler);return this};n.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",n.prototype.successiveLoadStartListener_)};n.prototype.successiveLoadStartListener_=function(){this.currentSource_=null;this.disposeSourceHandler();this.one(this.el_,"loadstart",n.prototype.successiveLoadStartListener_)};n.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&(this.off(this.el_,"loadstart",n.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",n.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose(),this.sourceHandler_=null)}};e["default"].registerComponent("Tech",r);e["default"].registerComponent("MediaTechController",r);r.registerTech("Tech",r);i["default"]=r},{"46":46,"5":5,"63":63,"65":65,"66":66,"70":70,"72":72,"76":76,"79":79,"82":82,"85":85,"86":86,"88":88,"92":92,"93":93}],63:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r,o;i.__esModule=!0;var s=n(74),u=f(s),h=n(78),c=v(h),l=n(92),a=f(l);r=function(n,t){for(var i=0;i<n.length;i++)t.id!==n[i].id&&(n[i].enabled=!1)};o=function(n){function t(){var l,v,f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],i,o,s,h;for(y(this,t),i=void 0,o=f.length-1;o>=0;o--)if(f[o].enabled){r(f,f[o]);break}if(c.IS_IE8){i=a["default"].createElement("custom");for(s in u["default"].prototype)s!=="constructor"&&(i[s]=u["default"].prototype[s]);for(h in t.prototype)h!=="constructor"&&(i[h]=t.prototype[h])}return i=(l=e(this,n.call(this,f,i)),l),i.changing_=!1,v=i,e(l,v)}return p(t,n),t.prototype.addTrack_=function(t){var i=this;(t.enabled&&r(this,t),n.prototype.addTrack_.call(this,t),t.addEventListener)&&t.addEventListener("enabledchange",function(){i.changing_||(i.changing_=!0,r(i,t),i.changing_=!1,i.trigger("change"))})},t.prototype.addTrack=function(n){this.addTrack_(n)},t.prototype.removeTrack=function(t){n.prototype.removeTrack_.call(this,t)},t}(u["default"]);i["default"]=o},{"74":74,"78":78,"92":92}],64:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f;i.__esModule=!0;var e=n(73),o=n(75),s=r(o),h=n(86),c=r(h),l=n(78),a=v(l);f=function(n){function t(){var f,h,l=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r;y(this,t);var o=c["default"](l,{kind:e.AudioTrackKind[l.kind]||""}),i=(f=u(this,n.call(this,o)),f),s=!1;if(a.IS_IE8)for(r in t.prototype)r!=="constructor"&&(i[r]=t.prototype[r]);return Object.defineProperty(i,"enabled",{get:function(){return s},set:function(n){typeof n=="boolean"&&n!==s&&(s=n,this.trigger("enabledchange"))}}),o.enabled&&(i.enabled=o.enabled),i.loaded_=!0,h=i,u(f,h)}return p(t,n),t}(s["default"]);i["default"]=f},{"73":73,"75":75,"78":78,"86":86}],65:[function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u;i.__esModule=!0;var f=n(78),r=h(f),e=n(92),o=s(e);u=function(){function n(){var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],t,i,u,e;if(c(this,n),t=this,r.IS_IE8){t=o["default"].createElement("custom");for(i in n.prototype)i!=="constructor"&&(t[i]=n.prototype[i])}for(t.trackElements_=[],Object.defineProperty(t,"length",{get:function(){return this.trackElements_.length}}),u=0,e=f.length;u<e;u++)t.addTrackElement_(f[u]);if(r.IS_IE8)return t}return n.prototype.addTrackElement_=function(n){this.trackElements_.push(n)},n.prototype.getTrackElementByTrack_=function(n){for(var i=void 0,t=0,r=this.trackElements_.length;t<r;t++)if(n===this.trackElements_[t].track){i=this.trackElements_[t];break}return i},n.prototype.removeTrackElement_=function(n){for(var t=0,i=this.trackElements_.length;t<i;t++)if(n===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},n}();i["default"]=u},{"78":78,"92":92}],66:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function w(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function b(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function k(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n(78),f=w(h),c=n(92),l=u(c),a=n(42),v=u(a),y=n(72),p=u(y);var o=0,s=2,r=function(n){function t(){var v=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},u,r,a;b(this,t);var h=e(this,n.call(this)),c=void 0,i=h;if(f.IS_IE8){i=l["default"].createElement("custom");for(u in t.prototype)u!=="constructor"&&(i[u]=t.prototype[u])}return(r=new p["default"](v),i.kind=r.kind,i.src=r.src,i.srclang=r.language,i.label=r.label,i["default"]=r["default"],Object.defineProperty(i,"readyState",{get:function(){return c}}),Object.defineProperty(i,"track",{get:function(){return r}}),c=o,r.addEventListener("loadeddata",function(){c=s;i.trigger({type:"load",target:i})}),f.IS_IE8)?(a=i,e(h,a)):h}return k(t,n),t}(v["default"]);r.prototype.allowedEvents_={load:"load"};r.NONE=o;r.LOADING=1;r.LOADED=s;r.ERROR=3;i["default"]=r},{"42":42,"72":72,"78":78,"92":92}],67:[function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u;i.__esModule=!0;var f=n(78),r=h(f),e=n(92),o=s(e);u=function(){function n(t){var i,u;if(c(this,n),i=this,r.IS_IE8){i=o["default"].createElement("custom");for(u in n.prototype)u!=="constructor"&&(i[u]=n.prototype[u])}return n.prototype.setCues_.call(i,t),Object.defineProperty(i,"length",{get:function(){return this.length_}}),r.IS_IE8?i:void 0}return n.prototype.setCues_=function(n){var i=this.length||0,t=0,r=n.length,u;if(this.cues_=n,this.length_=n.length,u=function(n){""+n in this||Object.defineProperty(this,""+n,{get:function(){return this.cues_[n]}})},i<r)for(t=i;t<r;t++)u.call(this,t)},n.prototype.getCueById=function(n){for(var r=null,i,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r},n}();i["default"]=u},{"78":78,"92":92}],68:[function(n,t,i){"use strict";function p(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function c(n){return n&&n.__esModule?n:{"default":n}}function w(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function b(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function k(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function e(n,t){return"rgba("+parseInt(n[1]+n[1],16)+","+parseInt(n[2]+n[2],16)+","+parseInt(n[3]+n[3],16)+","+t+")"}function o(n,t,i){try{n.style[t]=i}catch(r){return}}var s;i.__esModule=!0;var a=n(5),h=c(a),v=n(82),f=p(v),y=n(93),u=c(y);var r="#222",l="#ccc",d={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};s=function(n){function t(i,r,u){w(this,t);var e=b(this,n.call(this,i,r,u));i.on("loadstart",f.bind(e,e.toggleDisplay));i.on("texttrackchange",f.bind(e,e.updateDisplay));return i.ready(f.bind(e,function(){var o,t,e,n;if(i.tech_&&i.tech_.featuresNativeTextTracks){this.hide();return}i.on("fullscreenchange",f.bind(this,this.updateDisplay));for(o=this.options_.playerOptions.tracks||[],t=0;t<o.length;t++)this.player_.addRemoteTextTrack(o[t]);var h={captions:1,subtitles:1},s=this.player_.textTracks(),r=void 0,u=void 0;if(s){for(e=0;e<s.length;e++)n=s[e],n["default"]&&(n.kind!=="descriptions"||r?n.kind in h&&!u&&(u=n):r=n);u?u.mode="showing":r&&(r.mode="showing")}})),e}return k(t,n),t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"assertive","aria-atomic":"true"})},t.prototype.clearDisplay=function(){typeof u["default"].WebVTT=="function"&&u["default"].WebVTT.processCues(u["default"],[],this.el_)},t.prototype.updateDisplay=function(){var t=this.player_.textTracks(),n;if(this.clearDisplay(),t){for(var i=null,r=null,u=t.length;u--;)n=t[u],n.mode==="showing"&&(n.kind==="descriptions"?i=n:r=n);r?this.updateForTrack(r):i&&this.updateForTrack(i)}},t.prototype.updateForTrack=function(n){var t,f,s,h,c,i,a;if(typeof u["default"].WebVTT=="function"&&n.activeCues){for(t=this.player_.textTrackSettings.getValues(),f=[],s=0;s<n.activeCues.length;s++)f.push(n.activeCues[s]);for(u["default"].WebVTT.processCues(u["default"],f,this.el_),h=f.length;h--;)(c=f[h],c)&&(i=c.displayState,t.color&&(i.firstChild.style.color=t.color),t.textOpacity&&o(i.firstChild,"color",e(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(i.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&o(i.firstChild,"backgroundColor",e(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?o(i,"backgroundColor",e(t.windowColor,t.windowOpacity)):i.style.backgroundColor=t.windowColor),t.edgeStyle&&(t.edgeStyle==="dropshadow"?i.firstChild.style.textShadow="2px 2px 3px "+r+", 2px 2px 4px "+r+", 2px 2px 5px "+r:t.edgeStyle==="raised"?i.firstChild.style.textShadow="1px 1px "+r+", 2px 2px "+r+", 3px 3px "+r:t.edgeStyle==="depressed"?i.firstChild.style.textShadow="1px 1px "+l+", 0 1px "+l+", -1px -1px "+r+", 0 -1px "+r:t.edgeStyle==="uniform"&&(i.firstChild.style.textShadow="0 0 4px "+r+", 0 0 4px "+r+", 0 0 4px "+r+", 0 0 4px "+r)),t.fontPercent&&t.fontPercent!==1&&(a=u["default"].parseFloat(i.style.fontSize),i.style.fontSize=a*t.fontPercent+"px",i.style.height="auto",i.style.top="auto",i.style.bottom="2px"),t.fontFamily&&t.fontFamily!=="default"&&(t.fontFamily==="small-caps"?i.firstChild.style.fontVariant="small-caps":i.firstChild.style.fontFamily=d[t.fontFamily]))}},t}(h["default"]);h["default"].registerComponent("TextTrackDisplay",s);i["default"]=s},{"5":5,"82":82,"93":93}],69:[function(n,t,i){"use strict";i.__esModule=!0;var r=function(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i){return n[i]&&(t[i]=n[i]),t},{cues:n.cues&&Array.prototype.map.call(n.cues,function(n){return{startTime:n.startTime,endTime:n.endTime,text:n.text,id:n.id}})})},u=function(n){var t=n.$$("track"),i=Array.prototype.map.call(t,function(n){return n.track}),u=Array.prototype.map.call(t,function(n){var t=r(n.track);return n.src&&(t.src=n.src),t});return u.concat(Array.prototype.filter.call(n.textTracks(),function(n){return i.indexOf(n)===-1}).map(r))},f=function(n,t){return n.forEach(function(n){var i=t.addRemoteTextTrack(n).track;!n.src&&n.cues&&n.cues.forEach(function(n){return i.addCue(n)})}),t.textTracks()};i["default"]={textTracksToJson:u,jsonToTextTracks:f,trackToJson_:r}},{}],70:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function w(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o;i.__esModule=!0;var s=n(74),r=f(s),h=n(82),c=u(h),l=n(78),a=u(l),v=n(92),y=f(v);o=function(n){function t(){var o,s,h=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],i,u,f;if(p(this,t),i=void 0,a.IS_IE8){i=y["default"].createElement("custom");for(u in r["default"].prototype)u!=="constructor"&&(i[u]=r["default"].prototype[u]);for(f in t.prototype)f!=="constructor"&&(i[f]=t.prototype[f])}return i=(o=e(this,n.call(this,h,i)),o),s=i,e(o,s)}return w(t,n),t.prototype.addTrack_=function(t){n.prototype.addTrack_.call(this,t);t.addEventListener("modechange",c.bind(this,function(){this.trigger("change")}))},t.prototype.removeTrack_=function(n){for(var i=void 0,t=0,r=this.length;t<r;t++)if(this[t]===n){i=this[t];i.off&&i.off();this.tracks_.splice(t,1);break}i&&this.trigger({track:i,type:"removetrack"})},t.prototype.getTrackById=function(n){for(var r=null,i,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r},t}(r["default"]);i["default"]=o},{"74":74,"78":78,"82":82,"92":92}],71:[function(n,t,i){"use strict";function a(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function s(n){return n&&n.__esModule?n:{"default":n}}function g(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function nt(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function tt(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function it(n,t,i){return'\n    <div role="document">\n      <div role="heading" aria-level="1" id="'+t+'" class="vjs-control-text">Captions Settings Dialog<\/div>\n      <div id="'+i+'" class="vjs-control-text">Beginning of dialog window. Escape will cancel and close the window.<\/div>\n      <div class="vjs-tracksettings">\n        <div class="vjs-tracksettings-colors">\n          <fieldset class="vjs-fg-color vjs-tracksetting">\n            <legend>Text<\/legend>\n            <label class="vjs-label" for="captions-foreground-color-'+n+'">Color<\/label>\n            <select id="captions-foreground-color-'+n+'">\n              <option value="#FFF" selected>White<\/option>\n              <option value="#000">Black<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-text-opacity vjs-opacity">\n              <label class="vjs-label" for="captions-foreground-opacity-'+n+'">Transparency<\/label>\n              <select id="captions-foreground-opacity-'+n+'">\n                <option value="1" selected>Opaque<\/option>\n                <option value="0.5">Semi-Opaque<\/option>\n              <\/select>\n            <\/span>\n          <\/fieldset>\n          <fieldset class="vjs-bg-color vjs-tracksetting">\n            <legend>Background<\/legend>\n            <label class="vjs-label" for="captions-background-color-'+n+'">Color<\/label>\n            <select id="captions-background-color-'+n+'">\n              <option value="#000" selected>Black<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-bg-opacity vjs-opacity">\n              <label class="vjs-label" for="captions-background-opacity-'+n+'">Transparency<\/label>\n              <select id="captions-background-opacity-'+n+'">\n                <option value="1" selected>Opaque<\/option>\n                <option value="0.5">Semi-Transparent<\/option>\n                <option value="0">Transparent<\/option>\n              <\/select>\n            <\/span>\n          <\/fieldset>\n          <fieldset class="window-color vjs-tracksetting">\n            <legend>Window<\/legend>\n            <label class="vjs-label" for="captions-window-color-'+n+'">Color<\/label>\n            <select id="captions-window-color-'+n+'">\n              <option value="#000" selected>Black<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-window-opacity vjs-opacity">\n              <label class="vjs-label" for="captions-window-opacity-'+n+'">Transparency<\/label>\n              <select id="captions-window-opacity-'+n+'">\n                <option value="0" selected>Transparent<\/option>\n                <option value="0.5">Semi-Transparent<\/option>\n                <option value="1">Opaque<\/option>\n              <\/select>\n            <\/span>\n          <\/fieldset>\n        <\/div> <!-- vjs-tracksettings-colors -->\n        <div class="vjs-tracksettings-font">\n          <div class="vjs-font-percent vjs-tracksetting">\n            <label class="vjs-label" for="captions-font-size-'+n+'">Font Size<\/label>\n            <select id="captions-font-size-'+n+'">\n              <option value="0.50">50%<\/option>\n              <option value="0.75">75%<\/option>\n              <option value="1.00" selected>100%<\/option>\n              <option value="1.25">125%<\/option>\n              <option value="1.50">150%<\/option>\n              <option value="1.75">175%<\/option>\n              <option value="2.00">200%<\/option>\n              <option value="3.00">300%<\/option>\n              <option value="4.00">400%<\/option>\n            <\/select>\n          <\/div>\n          <div class="vjs-edge-style vjs-tracksetting">\n            <label class="vjs-label" for="captions-edge-style-'+n+'">Text Edge Style<\/label>\n            <select id="captions-edge-style-'+n+'">\n              <option value="none" selected>None<\/option>\n              <option value="raised">Raised<\/option>\n              <option value="depressed">Depressed<\/option>\n              <option value="uniform">Uniform<\/option>\n              <option value="dropshadow">Dropshadow<\/option>\n            <\/select>\n          <\/div>\n          <div class="vjs-font-family vjs-tracksetting">\n            <label class="vjs-label" for="captions-font-family-'+n+'">Font Family<\/label>\n            <select id="captions-font-family-'+n+'">\n              <option value="proportionalSansSerif" selected>Proportional Sans-Serif<\/option>\n              <option value="monospaceSansSerif">Monospace Sans-Serif<\/option>\n              <option value="proportionalSerif">Proportional Serif<\/option>\n              <option value="monospaceSerif">Monospace Serif<\/option>\n              <option value="casual">Casual<\/option>\n              <option value="script">Script<\/option>\n              <option value="small-caps">Small Caps<\/option>\n            <\/select>\n          <\/div>\n        <\/div> <!-- vjs-tracksettings-font -->\n        <div class="vjs-tracksettings-controls">\n          <button class="vjs-default-button">Defaults<\/button>\n          <button class="vjs-done-button">Done<\/button>\n        <\/div>\n      <\/div> <!-- vjs-tracksettings -->\n    <\/div> <!--  role="document" -->\n  '}function f(n){var t=void 0;return n.selectedOptions?t=n.selectedOptions[0]:n.options&&(t=n.options[n.options.selectedIndex]),t.value}function e(n,t){var i,r;if(t){for(i=void 0,i=0;i<n.options.length;i++)if(r=n.options[i],r.value===t)break;n.selectedIndex=i}}var c;i.__esModule=!0;var v=n(5),l=s(v),y=n(81),r=a(y),p=n(82),u=a(p),w=n(85),h=s(w),b=n(145),k=s(b),d=n(93),o=s(d);c=function(n){function t(i,f){g(this,t);var e=nt(this,n.call(this,i,f));e.hide();f.persistTextTrackSettings===undefined&&(e.options_.persistTextTrackSettings=e.options_.playerOptions.persistTextTrackSettings);r.on(e.$(".vjs-done-button"),"click",u.bind(e,function(){this.saveSettings();this.hide()}));r.on(e.$(".vjs-default-button"),"click",u.bind(e,function(){this.$(".vjs-fg-color > select").selectedIndex=0;this.$(".vjs-bg-color > select").selectedIndex=0;this.$(".window-color > select").selectedIndex=0;this.$(".vjs-text-opacity > select").selectedIndex=0;this.$(".vjs-bg-opacity > select").selectedIndex=0;this.$(".vjs-window-opacity > select").selectedIndex=0;this.$(".vjs-edge-style select").selectedIndex=0;this.$(".vjs-font-family select").selectedIndex=0;this.$(".vjs-font-percent select").selectedIndex=2;this.updateDisplay()}));r.on(e.$(".vjs-fg-color > select"),"change",u.bind(e,e.updateDisplay));r.on(e.$(".vjs-bg-color > select"),"change",u.bind(e,e.updateDisplay));r.on(e.$(".window-color > select"),"change",u.bind(e,e.updateDisplay));r.on(e.$(".vjs-text-opacity > select"),"change",u.bind(e,e.updateDisplay));r.on(e.$(".vjs-bg-opacity > select"),"change",u.bind(e,e.updateDisplay));r.on(e.$(".vjs-window-opacity > select"),"change",u.bind(e,e.updateDisplay));r.on(e.$(".vjs-font-percent select"),"change",u.bind(e,e.updateDisplay));r.on(e.$(".vjs-edge-style select"),"change",u.bind(e,e.updateDisplay));r.on(e.$(".vjs-font-family select"),"change",u.bind(e,e.updateDisplay));return e.options_.persistTextTrackSettings&&e.restoreSettings(),e}return tt(t,n),t.prototype.createEl=function(){var t=this.id_,i="TTsettingsDialogLabel-"+t,r="TTsettingsDialogDescription-"+t;return n.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:it(t,i,r),tabIndex:-1},{role:"dialog","aria-labelledby":i,"aria-describedby":r})},t.prototype.getValues=function(){var i=f(this.$(".vjs-edge-style select")),r=f(this.$(".vjs-font-family select")),u=f(this.$(".vjs-fg-color > select")),e=f(this.$(".vjs-text-opacity > select")),s=f(this.$(".vjs-bg-color > select")),h=f(this.$(".vjs-bg-opacity > select")),c=f(this.$(".window-color > select")),l=f(this.$(".vjs-window-opacity > select")),a=o["default"].parseFloat(f(this.$(".vjs-font-percent > select"))),n={fontPercent:a,fontFamily:r,textOpacity:e,windowColor:c,windowOpacity:l,backgroundOpacity:h,edgeStyle:i,color:u,backgroundColor:s},t;for(t in n)(n[t]===""||n[t]==="none"||t==="fontPercent"&&n[t]===1)&&delete n[t];return n},t.prototype.setValues=function(n){e(this.$(".vjs-edge-style select"),n.edgeStyle);e(this.$(".vjs-font-family select"),n.fontFamily);e(this.$(".vjs-fg-color > select"),n.color);e(this.$(".vjs-text-opacity > select"),n.textOpacity);e(this.$(".vjs-bg-color > select"),n.backgroundColor);e(this.$(".vjs-bg-opacity > select"),n.backgroundOpacity);e(this.$(".window-color > select"),n.windowColor);e(this.$(".vjs-window-opacity > select"),n.windowOpacity);var t=n.fontPercent;t&&(t=t.toFixed(2));e(this.$(".vjs-font-percent > select"),t)},t.prototype.restoreSettings=function(){var n=void 0,t=void 0,i;try{i=k["default"](o["default"].localStorage.getItem("vjs-text-track-settings"));n=i[0];t=i[1];n&&h["default"].error(n)}catch(r){h["default"].warn(r)}t&&this.setValues(t)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var n=this.getValues();try{Object.getOwnPropertyNames(n).length>0?o["default"].localStorage.setItem("vjs-text-track-settings",JSON.stringify(n)):o["default"].localStorage.removeItem("vjs-text-track-settings")}catch(t){h["default"].warn(t)}}},t.prototype.updateDisplay=function(){var n=this.player_.getChild("textTrackDisplay");n&&n.updateDisplay()},t}(l["default"]);l["default"].registerComponent("TextTrackSettings",c);i["default"]=c},{"145":145,"5":5,"81":81,"82":82,"85":85,"93":93}],72:[function(n,t,i){"use strict";function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function ft(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function et(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var v=n(67),o=u(v),y=n(82),s=h(y),f=n(73),p=n(85),e=u(p),w=n(93),r=u(w),b=n(75),k=u(b),d=n(90),g=n(147),nt=u(g),tt=n(86),it=u(tt),rt=n(78),ut=h(rt);var l=function(n,t){var i=new r["default"].WebVTT.Parser(r["default"],r["default"].vttjs,r["default"].WebVTT.StringDecoder()),u=[];i.oncue=function(n){t.addCue(n)};i.onparsingerror=function(n){u.push(n)};i.onflush=function(){t.trigger({type:"loadeddata",target:t})};i.parse(n);u.length>0&&(r["default"].console&&r["default"].console.groupCollapsed&&r["default"].console.groupCollapsed("Text Track parsing errors for "+t.src),u.forEach(function(n){return e["default"].error(n)}),r["default"].console&&r["default"].console.groupEnd&&r["default"].console.groupEnd());i.flush()},ot=function(n,t){var i={uri:n},u=d.isCrossOrigin(n);u&&(i.cors=u);nt["default"](i,s.bind(this,function(n,i,u){if(n)return e["default"].error(n,i);t.loaded_=!0;typeof r["default"].WebVTT!="function"?t.tech_&&function(){var n=function(){return l(u,t)};t.tech_.on("vttjsloaded",n);t.tech_.on("vttjserror",function(){e["default"].error("vttjs failed to load, stopping trying to process "+t.src);t.tech_.off("vttjsloaded",n)})}():l(u,t)}))},a=function(n){function t(){var a,y,u=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},i,l;if(ft(this,t),!u.tech)throw new Error("A tech was not provided.");var r=it["default"](u,{kind:f.TextTrackKind[u.kind]||"subtitles",language:u.language||u.srclang||""}),e=f.TextTrackMode[r.mode]||"disabled",w=r["default"];if((r.kind==="metadata"||r.kind==="chapters")&&(e="hidden"),i=(a=c(this,n.call(this,r)),a),i.tech_=r.tech,ut.IS_IE8)for(l in t.prototype)l!=="constructor"&&(i[l]=t.prototype[l]);i.cues_=[];i.activeCues_=[];var b=new o["default"](i.cues_),v=new o["default"](i.activeCues_),h=!1,p=s.bind(i,function(){this.activeCues;h&&(this.trigger("cuechange"),h=!1)});if(e!=="disabled")i.tech_.on("timeupdate",p);return Object.defineProperty(i,"default",{get:function(){return w},set:function(){}}),Object.defineProperty(i,"mode",{get:function(){return e},set:function(n){if(f.TextTrackMode[n]){if(e=n,e==="showing")this.tech_.on("timeupdate",p);this.trigger("modechange")}}}),Object.defineProperty(i,"cues",{get:function(){return this.loaded_?b:null},set:function(){}}),Object.defineProperty(i,"activeCues",{get:function(){var i,t,r,f,n,u;if(!this.loaded_)return null;if(this.cues.length===0)return v;for(i=this.tech_.currentTime(),t=[],r=0,f=this.cues.length;r<f;r++)n=this.cues[r],n.startTime<=i&&n.endTime>=i?t.push(n):n.startTime===n.endTime&&n.startTime<=i&&n.startTime+.5>=i&&t.push(n);if(h=!1,t.length!==this.activeCues_.length)h=!0;else for(u=0;u<t.length;u++)this.activeCues_.indexOf(t[u])===-1&&(h=!0);return this.activeCues_=t,v.setCues_(this.activeCues_),v},set:function(){}}),r.src?(i.src=r.src,ot(r.src,i)):i.loaded_=!0,y=i,c(a,y)}return et(t,n),t.prototype.addCue=function(n){var i=this.tech_.textTracks(),t;if(i)for(t=0;t<i.length;t++)i[t]!==this&&i[t].removeCue(n);this.cues_.push(n);this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(n){for(var i=!1,u,t=0,r=this.cues_.length;t<r;t++)u=this.cues_[t],u===n&&(this.cues_.splice(t,1),i=!0);i&&this.cues.setCues_(this.cues_)},t}(k["default"]);a.prototype.allowedEvents_={cuechange:"cuechange"};i["default"]=a},{"147":147,"67":67,"73":73,"75":75,"78":78,"82":82,"85":85,"86":86,"90":90,"93":93}],73:[function(n,t,i){"use strict";i.__esModule=!0;var r=i.VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},u=i.AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},f=i.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},e=i.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"}},{}],74:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r,e;i.__esModule=!0;var o=n(42),s=u(o),h=n(78),c=v(h),l=n(92),a=u(l);r=function(n){function t(){var o=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],s,i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null,e,r,u;if(y(this,t),e=f(this,n.call(this)),!i&&(i=e,c.IS_IE8)){i=a["default"].createElement("custom");for(r in t.prototype)r!=="constructor"&&(i[r]=t.prototype[r])}for(i.tracks_=[],Object.defineProperty(i,"length",{get:function(){return this.tracks_.length}}),u=0;u<o.length;u++)i.addTrack_(o[u]);return s=i,f(e,s)}return p(t,n),t.prototype.addTrack_=function(n){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}});this.tracks_.indexOf(n)===-1&&(this.tracks_.push(n),this.trigger({track:n,type:"addtrack"}))},t.prototype.removeTrack_=function(n){for(var i=void 0,t=0,r=this.length;t<r;t++)if(this[t]===n){i=this[t];i.off&&i.off();this.tracks_.splice(t,1);break}i&&this.trigger({track:i,type:"removetrack"})},t.prototype.getTrackById=function(n){for(var r=null,i,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r},t}(s["default"]);r.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(e in r.prototype.allowedEvents_)r.prototype["on"+e]=null;i["default"]=r},{"42":42,"78":78,"92":92}],75:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function w(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e;i.__esModule=!0;var o=n(78),s=u(o),h=n(92),c=r(h),l=n(84),a=u(l),v=n(42),y=r(v);e=function(n){function t(){var h,r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e,i,u,o,l,v;if(p(this,t),e=f(this,n.call(this)),i=e,s.IS_IE8){i=c["default"].createElement("custom");for(u in t.prototype)u!=="constructor"&&(i[u]=t.prototype[u])}o={id:r.id||"vjs_track_"+a.newGUID(),kind:r.kind||"",label:r.label||"",language:r.language||""};l=function(n){Object.defineProperty(i,n,{get:function(){return o[n]},set:function(){}})};for(v in o)l(v);return h=i,f(e,h)}return w(t,n),t}(y["default"]);i["default"]=e},{"42":42,"78":78,"84":84,"92":92}],76:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r,o;i.__esModule=!0;var s=n(74),u=f(s),h=n(78),c=v(h),l=n(92),a=f(l);r=function(n,t){for(var i=0;i<n.length;i++)t.id!==n[i].id&&(n[i].selected=!1)};o=function(n){function t(){var l,v,f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],i,o,s,h;for(y(this,t),i=void 0,o=f.length-1;o>=0;o--)if(f[o].selected){r(f,f[o]);break}if(c.IS_IE8){i=a["default"].createElement("custom");for(s in u["default"].prototype)s!=="constructor"&&(i[s]=u["default"].prototype[s]);for(h in t.prototype)h!=="constructor"&&(i[h]=t.prototype[h])}return i=(l=e(this,n.call(this,f,i)),l),i.changing_=!1,Object.defineProperty(i,"selectedIndex",{get:function(){for(var n=0;n<this.length;n++)if(this[n].selected)return n;return-1},set:function(){}}),v=i,e(l,v)}return p(t,n),t.prototype.addTrack_=function(t){var i=this;(t.selected&&r(this,t),n.prototype.addTrack_.call(this,t),t.addEventListener)&&t.addEventListener("selectedchange",function(){i.changing_||(i.changing_=!0,r(i,t),i.changing_=!1,i.trigger("change"))})},t.prototype.addTrack=function(n){this.addTrack_(n)},t.prototype.removeTrack=function(t){n.prototype.removeTrack_.call(this,t)},t}(u["default"]);i["default"]=o},{"74":74,"78":78,"92":92}],77:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f;i.__esModule=!0;var e=n(73),o=n(75),s=r(o),h=n(86),c=r(h),l=n(78),a=v(l);f=function(n){function t(){var f,h,l=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r;y(this,t);var o=c["default"](l,{kind:e.VideoTrackKind[l.kind]||""}),i=(f=u(this,n.call(this,o)),f),s=!1;if(a.IS_IE8)for(r in t.prototype)r!=="constructor"&&(i[r]=t.prototype[r]);return Object.defineProperty(i,"selected",{get:function(){return s},set:function(n){typeof n=="boolean"&&n!==s&&(s=n,this.trigger("selectedchange"))}}),o.selected&&(i.selected=o.selected),h=i,u(f,h)}return p(t,n),t}(s["default"]);i["default"]=f},{"73":73,"75":75,"78":78,"86":86}],78:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;i.BACKGROUND_SIZE_SUPPORTED=i.TOUCH_ENABLED=i.IE_VERSION=i.IS_IE8=i.IS_CHROME=i.IS_EDGE=i.IS_FIREFOX=i.IS_NATIVE_ANDROID=i.IS_OLD_ANDROID=i.ANDROID_VERSION=i.IS_ANDROID=i.IOS_VERSION=i.IS_IOS=i.IS_IPOD=i.IS_IPHONE=i.IS_IPAD=undefined;var l=n(92),f=e(l),a=n(93),u=e(a);var r=u["default"].navigator&&u["default"].navigator.userAgent||"",o=/AppleWebKit\/([\d.]+)/i.exec(r),v=o?parseFloat(o.pop()):null,s=i.IS_IPAD=/iPad/i.test(r),y=i.IS_IPHONE=/iPhone/i.test(r)&&!s,p=i.IS_IPOD=/iPod/i.test(r),b=i.IS_IOS=y||s||p,k=i.IOS_VERSION=function(){var n=r.match(/OS (\d+)_/i);return n&&n[1]?n[1]:null}(),h=i.IS_ANDROID=/Android/i.test(r),c=i.ANDROID_VERSION=function(){var n=r.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),t,i;return n?(t=n[1]&&parseFloat(n[1]),i=n[2]&&parseFloat(n[2]),t&&i)?parseFloat(n[1]+"."+n[2]):t?t:null:null}(),d=i.IS_OLD_ANDROID=h&&/webkit/i.test(r)&&c<2.3,g=i.IS_NATIVE_ANDROID=h&&c<5&&v<537,nt=i.IS_FIREFOX=/Firefox/i.test(r),w=i.IS_EDGE=/Edge/i.test(r),tt=i.IS_CHROME=!w&&/Chrome/i.test(r),it=i.IS_IE8=/MSIE\s8\.0/.test(r),rt=i.IE_VERSION=function(n){return n&&parseFloat(n[1])}(/MSIE\s(\d+)\.\d/.exec(r)),ut=i.TOUCH_ENABLED=!!("ontouchstart"in u["default"]||u["default"].DocumentTouch&&f["default"]instanceof u["default"].DocumentTouch),ft=i.BACKGROUND_SIZE_SUPPORTED="backgroundSize"in f["default"].createElement("video").style},{"92":92,"93":93}],79:[function(n,t,i){"use strict";function u(n,t){var f=0,e=void 0,u=void 0,i;if(!t)return 0;for(n&&n.length||(n=r.createTimeRange(0,0)),i=0;i<n.length;i++)e=n.start(i),u=n.end(i),u>t&&(u=t),f+=u-e;return f/t}i.__esModule=!0;i.bufferedPercent=u;var r=n(88)},{"88":88}],80:[function(n,t,i){"use strict";function ht(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function ct(n,t){return n.raw=t,n}function a(n){return typeof n=="string"&&/\S/.test(n)}function v(n){if(/\s/.test(n))throw new Error("class has illegal whitespace characters");}function lt(n){return new RegExp("(^|\\s)"+n+"($|\\s)")}function s(n){return!!n&&(typeof n=="undefined"?"undefined":o(n))==="object"&&n.nodeType===1}function y(n){return function(t,i){if(!a(t))return r["default"][n](null);a(i)&&(i=r["default"].querySelector(i));var u=s(i)?i:r["default"];return u[n]&&u[n](t)}}function at(n){return n.indexOf("#")===0&&(n=n.slice(1)),r["default"].getElementById(n)}function vt(){var u=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},n=r["default"].createElement(u);return Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];i.indexOf("aria-")!==-1||i==="role"||i==="type"?(et["default"].warn(st["default"](c,i,r)),n.setAttribute(i,r)):n[i]=r}),Object.getOwnPropertyNames(i).forEach(function(t){n.setAttribute(t,i[t])}),n}function yt(n,t){typeof n.textContent=="undefined"?n.innerText=t:n.textContent=t}function pt(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}function wt(n){var t=n[u];return t||(t=n[u]=ut.newGUID()),f[t]||(f[t]={}),f[t]}function bt(n){var t=n[u];return t?!!Object.getOwnPropertyNames(f[t]).length:!1}function kt(n){var t=n[u];if(t){delete f[t];try{delete n[u]}catch(i){n.removeAttribute?n.removeAttribute(u):n[u]=null}}}function h(n,t){return(v(t),n.classList)?n.classList.contains(t):lt(t).test(n.className)}function p(n,t){return n.classList?n.classList.add(t):h(n,t)||(n.className=(n.className+" "+t).trim()),n}function w(n,t){return n.classList?n.classList.remove(t):(v(t),n.className=n.className.split(/\s+/).filter(function(n){return n!==t}).join(" ")),n}function dt(n,t,i){var r=h(n,t);if(typeof i=="function"&&(i=i(n,t)),typeof i!="boolean"&&(i=!r),i!==r)return i?p(n,t):w(n,t),n}function gt(n,t){Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];r===null||typeof r=="undefined"||r===!1?n.removeAttribute(i):n.setAttribute(i,r===!0?"":r)})}function ni(n){var f={},i,t,r,u;if(n&&n.attributes&&n.attributes.length>0)for(i=n.attributes,t=i.length-1;t>=0;t--)r=i[t].name,u=i[t].value,(typeof n[r]=="boolean"||",autoplay,controls,loop,muted,default,".indexOf(","+r+",")!==-1)&&(u=u!==null?!0:!1),f[r]=u;return f}function ti(){r["default"].body.focus();r["default"].onselectstart=function(){return!1}}function ii(){r["default"].onselectstart=function(){return!0}}function b(n){var t=void 0;if(n.getBoundingClientRect&&n.parentNode&&(t=n.getBoundingClientRect()),!t)return{left:0,top:0};var u=r["default"].documentElement,i=r["default"].body,f=u.clientLeft||i.clientLeft||0,e=l["default"].pageXOffset||i.scrollLeft,o=t.left+e-f,s=u.clientTop||i.clientTop||0,h=l["default"].pageYOffset||i.scrollTop,c=t.top+h-s;return{left:Math.round(o),top:Math.round(c)}}function ri(n,t){var i={},r=b(n),o=n.offsetWidth,u=n.offsetHeight,s=r.top,h=r.left,f=t.pageY,e=t.pageX;return t.changedTouches&&(e=t.changedTouches[0].pageX,f=t.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(s-f+u)/u)),i.x=Math.max(0,Math.min(1,(e-h)/o)),i}function k(n){return!!n&&(typeof n=="undefined"?"undefined":o(n))==="object"&&n.nodeType===3}function d(n){while(n.firstChild)n.removeChild(n.firstChild);return n}function g(n){return typeof n=="function"&&(n=n()),(Array.isArray(n)?n:[n]).map(function(n){return(typeof n=="function"&&(n=n()),s(n)||k(n))?n:typeof n=="string"&&/\S/.test(n)?r["default"].createTextNode(n):void 0}).filter(function(n){return n})}function nt(n,t){return g(t).forEach(function(t){return n.appendChild(t)}),n}function ui(n,t){return nt(d(n),t)}var o,c,f,u,fi,ei;i.__esModule=!0;i.$$=i.$=undefined;o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};c=ct(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]);i.isEl=s;i.getEl=at;i.createEl=vt;i.textContent=yt;i.insertElFirst=pt;i.getElData=wt;i.hasElData=bt;i.removeElData=kt;i.hasElClass=h;i.addElClass=p;i.removeElClass=w;i.toggleElClass=dt;i.setElAttributes=gt;i.getElAttributes=ni;i.blockTextSelection=ti;i.unblockTextSelection=ii;i.findElPosition=b;i.getPointerPosition=ri;i.isTextNode=k;i.emptyEl=d;i.normalizeContent=g;i.appendContent=nt;i.insertContent=ui;var tt=n(92),r=e(tt),it=n(93),l=e(it),rt=n(84),ut=ht(rt),ft=n(85),et=e(ft),ot=n(146),st=e(ot);f={};u="vdata"+(new Date).getTime();fi=i.$=y("querySelector");ei=i.$$=y("querySelectorAll")},{"146":146,"84":84,"85":85,"92":92,"93":93}],81:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function l(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function a(n,t){var i=r.getElData(n);i.handlers[t].length===0&&(delete i.handlers[t],n.removeEventListener?n.removeEventListener(t,i.dispatcher,!1):n.detachEvent&&n.detachEvent("on"+t,i.dispatcher));Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled);Object.getOwnPropertyNames(i).length===0&&r.removeElData(n)}function e(n,t,i,r){i.forEach(function(i){n(t,i,r)})}function o(n){function t(){return!0}function i(){return!1}return n&&n.isPropagationStopped||function(){var r=n||g["default"].event,f,e,o;n={};for(f in r)f!=="layerX"&&f!=="layerY"&&f!=="keyLocation"&&f!=="webkitMovementX"&&f!=="webkitMovementY"&&(f==="returnValue"&&r.preventDefault||(n[f]=r[f]));n.target||(n.target=n.srcElement||u["default"]);n.relatedTarget||(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement);n.preventDefault=function(){r.preventDefault&&r.preventDefault();n.returnValue=!1;r.returnValue=!1;n.defaultPrevented=!0};n.defaultPrevented=!1;n.stopPropagation=function(){r.stopPropagation&&r.stopPropagation();n.cancelBubble=!0;r.cancelBubble=!0;n.isPropagationStopped=t};n.isPropagationStopped=i;n.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation();n.isImmediatePropagationStopped=t;n.stopPropagation()};n.isImmediatePropagationStopped=i;n.clientX!==null&&n.clientX!==undefined&&(e=u["default"].documentElement,o=u["default"].body,n.pageX=n.clientX+(e&&e.scrollLeft||o&&o.scrollLeft||0)-(e&&e.clientLeft||o&&o.clientLeft||0),n.pageY=n.clientY+(e&&e.scrollTop||o&&o.scrollTop||0)-(e&&e.clientTop||o&&o.clientTop||0));n.which=n.charCode||n.keyCode;n.button!==null&&n.button!==undefined&&(n.button=n.button&1?0:n.button&4?1:n.button&2?2:0)}(),n}function s(n,t,i){if(Array.isArray(t))return e(s,n,t,i);var u=r.getElData(n);u.handlers||(u.handlers={});u.handlers[t]||(u.handlers[t]=[]);i.guid||(i.guid=c.newGUID());u.handlers[t].push(i);u.dispatcher||(u.disabled=!1,u.dispatcher=function(t,i){var f,e,r,s;if(!u.disabled&&(t=o(t),f=u.handlers[t.type],f))for(e=f.slice(0),r=0,s=e.length;r<s;r++)if(t.isImmediatePropagationStopped())break;else try{e[r].call(n,t,i)}catch(h){k["default"].error(h)}});u.handlers[t].length===1&&(n.addEventListener?n.addEventListener(t,u.dispatcher,!1):n.attachEvent&&n.attachEvent("on"+t,u.dispatcher))}function h(n,t,i){var u,s,c,f,o;if(r.hasElData(n)&&(u=r.getElData(n),u.handlers)){if(Array.isArray(t))return e(h,n,t,i);if(s=function(t){u.handlers[t]=[];a(n,t)},!t){for(c in u.handlers)s(c);return}if(f=u.handlers[t],f){if(!i){s(t);return}if(i.guid)for(o=0;o<f.length;o++)f[o].guid===i.guid&&f.splice(o--,1);a(n,t)}}}function v(n,t,i){var e=r.hasElData(n)?r.getElData(n):{},u=n.parentNode||n.ownerDocument,f;return typeof t=="string"&&(t={type:t,target:n}),t=o(t),e.dispatcher&&e.dispatcher.call(n,t,i),u&&!t.isPropagationStopped()&&t.bubbles===!0?v.call(null,u,t,i):u||t.defaultPrevented||(f=r.getElData(t.target),t.target[t.type]&&(f.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),f.disabled=!1)),!t.defaultPrevented}function y(n,t,i){if(Array.isArray(t))return e(y,n,t,i);var r=function r(){h(n,t,r);i.apply(this,arguments)};r.guid=i.guid=i.guid||c.newGUID();s(n,t,r)}i.__esModule=!0;i.fixEvent=o;i.on=s;i.off=h;i.trigger=v;i.one=y;var p=n(80),r=l(p),w=n(84),c=l(w),b=n(85),k=f(b),d=n(93),g=f(d),nt=n(92),u=f(nt)},{"80":80,"84":84,"85":85,"92":92,"93":93}],82:[function(n,t,i){"use strict";i.__esModule=!0;i.bind=undefined;var r=n(84),u=i.bind=function(n,t,i){t.guid||(t.guid=r.newGUID());var u=function(){return t.apply(n,arguments)};return u.guid=i?i+"_"+t.guid:t.guid,u}},{"84":84}],83:[function(n,t,i){"use strict";function r(n){var u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:n;n=n<0?0:n;var t=Math.floor(n%60),i=Math.floor(n/60%60),r=Math.floor(n/3600),f=Math.floor(u/60%60),e=Math.floor(u/3600);return(isNaN(n)||n===Infinity)&&(r=i=t="-"),r=r>0||e>0?r+":":"",i=((r||f>=10)&&i<10?"0"+i:i)+":",t=t<10?"0"+t:t,r+i+t}i.__esModule=!0;i["default"]=r},{}],84:[function(n,t,i){"use strict";function u(){return r++}i.__esModule=!0;i.newGUID=u;var r=1},{}],85:[function(n,t,i){"use strict";function h(n){return n&&n.__esModule?n:{"default":n}}var r,u;i.__esModule=!0;i.logByType=undefined;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s=n(93),f=h(s),e=n(78);r=void 0;u=i.logByType=function(n,t){var u=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!!e.IE_VERSION&&e.IE_VERSION<11,i;(n!=="log"&&t.unshift(n.toUpperCase()+":"),r.history.push(t),t.unshift("VIDEOJS:"),i=f["default"].console&&f["default"].console[n],i)&&(u&&(t=t.map(function(n){if(n&&(typeof n=="undefined"?"undefined":o(n))==="object"||Array.isArray(n))try{return JSON.stringify(n)}catch(t){return String(n)}return String(n)}).join(" ")),i.apply?i[Array.isArray(t)?"apply":"call"](f["default"].console,t):i(t))};r=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];u("log",i)};r.history=[];r.error=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return u("error",i)};r.warn=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return u("warn",i)};i["default"]=r},{"78":78,"93":93}],86:[function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}function e(n){return!!n&&(typeof n=="undefined"?"undefined":r(n))==="object"&&n.toString()==="[object Object]"&&n.constructor===Object}function h(n,t){return e(t)?e(n)?void 0:o(t):t}function o(){var n=Array.prototype.slice.call(arguments);return n.unshift({}),n.push(h),f["default"].apply(null,n),n[0]}var r,u,f;i.__esModule=!0;r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};i["default"]=o;u=n(131);f=s(u)},{"131":131}],87:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}var r,u,e,o;i.__esModule=!0;i.setTextContent=i.createStyleElement=undefined;r=n(92);u=f(r);e=i.createStyleElement=function(n){var t=u["default"].createElement("style");return t.className=n,t};o=i.setTextContent=function(n,t){n.styleSheet?n.styleSheet.cssText=t:n.textContent=t}},{"92":92}],88:[function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}function h(n,t,i){if(t<0||t>i)throw new Error("Failed to execute '"+n+"' on 'TimeRanges': The index provided ("+t+") is greater than or equal to the maximum bound ("+i+").");}function u(n,t,i,r){return r===undefined&&(o["default"].warn("DEPRECATED: Function '"+n+"' on 'TimeRanges' called without an index argument."),r=0),h(n,r,i.length-1),i[r][t]}function r(n){return n===undefined||n.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty");},end:function(){throw new Error("This TimeRanges object is empty");}}:{length:n.length,start:u.bind(null,"start",0,n),end:u.bind(null,"end",1,n)}}function f(n,t){return Array.isArray(n)?r(n):n===undefined||t===undefined?r():r([[n,t]])}i.__esModule=!0;i.createTimeRange=undefined;i.createTimeRanges=f;var e=n(85),o=s(e);i.createTimeRange=f},{"85":85}],89:[function(n,t,i){"use strict";function r(n){return n.charAt(0).toUpperCase()+n.slice(1)}i.__esModule=!0;i["default"]=r},{}],90:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;i.isCrossOrigin=i.getFileExtension=i.getAbsoluteURL=i.parseUrl=undefined;var f=n(92),r=u(f),e=n(93),o=u(e);var s=i.parseUrl=function(n){var e=["protocol","hostname","port","pathname","search","hash","host"],u=r["default"].createElement("a"),o,i,t,f;for(u.href=n,o=u.host===""&&u.protocol!=="file:",i=void 0,o&&(i=r["default"].createElement("div"),i.innerHTML='<a href="'+n+'"><\/a>',u=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),r["default"].body.appendChild(i)),t={},f=0;f<e.length;f++)t[e[f]]=u[e[f]];return t.protocol==="http:"&&(t.host=t.host.replace(/:80$/,"")),t.protocol==="https:"&&(t.host=t.host.replace(/:443$/,"")),o&&r["default"].body.removeChild(i),t},h=i.getAbsoluteURL=function(n){if(!n.match(/^https?:\/\//)){var t=r["default"].createElement("div");t.innerHTML='<a href="'+n+'">x<\/a>';n=t.firstChild.href}return n},c=i.getFileExtension=function(n){if(typeof n=="string"){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(n);if(t)return t.pop().toLowerCase()}return""},l=i.isCrossOrigin=function(n){var t=o["default"].location,i=s(n),r=i.protocol===":"?t.protocol:i.protocol;return r+i.host!==t.protocol+t.host}},{"92":92,"93":93}],91:[function(t,i,r){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function u(n,t,i){var r=void 0;if(typeof n=="string"){if(n.indexOf("#")===0&&(n=n.slice(1)),u.getPlayers()[n])return t&&p["default"].warn('Player "'+n+'" is already initialised. Options will not be applied.'),i&&u.getPlayers()[n].ready(i),u.getPlayers()[n];r=e.getEl(n)}else r=n;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return r.player||s["default"].players[r.playerId]||new s["default"](r,t,i)}var h,l;r.__esModule=!0;var b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nt=t(93),a=f(nt),tt=t(92),v=f(tt),it=t(56),rt=o(it),ut=t(87),k=o(ut),ft=t(5),y=f(ft),et=t(42),ot=f(et),st=t(81),c=o(st),ht=t(51),s=f(ht),ct=t(52),lt=f(ct),at=t(86),vt=f(at),yt=t(82),pt=o(yt),wt=t(72),bt=f(wt),kt=t(64),dt=f(kt),gt=t(77),ni=f(gt),ti=t(88),ii=t(83),ri=f(ii),ui=t(85),p=f(ui),fi=t(80),e=o(fi),ei=t(78),d=o(ei),oi=t(90),g=o(oi),si=t(43),hi=f(si),ci=t(131),li=f(ci),ai=t(147),vi=f(ai),yi=t(62),w=f(yi);typeof HTMLVideoElement=="undefined"&&a["default"].document&&a["default"].document.createElement&&(v["default"].createElement("video"),v["default"].createElement("audio"),v["default"].createElement("track"));a["default"].VIDEOJS_NO_DYNAMIC_STYLE!==!0&&(h=e.$(".vjs-styles-defaults"),h||(h=k.createStyleElement("vjs-styles-defaults"),l=e.$("head"),l&&l.insertBefore(h,l.firstChild),k.setTextContent(h,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")));rt.autoSetupTimeout(1,u);u.VERSION="5.12.6";u.options=s["default"].prototype.options_;u.getPlayers=function(){return s["default"].players};u.players=s["default"].players;u.getComponent=y["default"].getComponent;u.registerComponent=function(n,t){w["default"].isTech(t)&&p["default"].warn("The "+n+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)");y["default"].registerComponent.call(y["default"],n,t)};u.getTech=w["default"].getTech;u.registerTech=w["default"].registerTech;u.browser=d;u.TOUCH_ENABLED=d.TOUCH_ENABLED;u.extend=hi["default"];u.mergeOptions=vt["default"];u.bind=pt.bind;u.plugin=lt["default"];u.addLanguage=function(n,t){var i;return n=(""+n).toLowerCase(),li["default"](u.options.languages,(i={},i[n]=t,i))[n]};u.log=p["default"];u.createTimeRange=u.createTimeRanges=ti.createTimeRanges;u.formatTime=ri["default"];u.parseUrl=g.parseUrl;u.isCrossOrigin=g.isCrossOrigin;u.EventTarget=ot["default"];u.on=c.on;u.one=c.one;u.off=c.off;u.trigger=c.trigger;u.xhr=vi["default"];u.TextTrack=bt["default"];u.AudioTrack=dt["default"];u.VideoTrack=ni["default"];u.isEl=e.isEl;u.isTextNode=e.isTextNode;u.createEl=e.createEl;u.hasClass=e.hasElClass;u.addClass=e.addElClass;u.removeClass=e.removeElClass;u.toggleClass=e.toggleElClass;u.setAttributes=e.setElAttributes;u.getAttributes=e.getElAttributes;u.emptyEl=e.emptyEl;u.appendContent=e.appendContent;u.insertContent=e.insertContent;typeof n=="function"&&n.amd?n("videojs",[],function(){return u}):(typeof r=="undefined"?"undefined":b(r))==="object"&&(typeof i=="undefined"?"undefined":b(i))==="object"&&(i.exports=u);r["default"]=u},{"131":131,"147":147,"42":42,"43":43,"5":5,"51":51,"52":52,"56":56,"62":62,"64":64,"72":72,"77":77,"78":78,"80":80,"81":81,"82":82,"83":83,"85":85,"86":86,"87":87,"88":88,"90":90,"92":92,"93":93}],92:[function(n,t){(function(i){var u=typeof i!="undefined"?i:typeof window!="undefined"?window:{},f=n(94),r;typeof document!="undefined"?t.exports=document:(r=u["__GLOBAL_DOCUMENT_CACHE@4"],r||(r=u["__GLOBAL_DOCUMENT_CACHE@4"]=f),t.exports=r)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"94":94}],93:[function(n,t){(function(n){t.exports=typeof window!="undefined"?window:typeof n!="undefined"?n:typeof self!="undefined"?self:{}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],94:[function(){},{}],95:[function(n,t){var i=n(111),r=i(Date,"now"),u=r||function(){return(new Date).getTime()};t.exports=u},{"111":111}],96:[function(n,t){function e(n,t,e){function nt(){o&&clearTimeout(o);s&&clearTimeout(s);a=0;s=o=b=undefined}function k(t,r){r&&clearTimeout(r);s=o=b=undefined;t&&(a=i(),w=n.apply(c,h),o||s||(h=c=undefined))}function d(){var n=t-(i()-l);n<=0||n>t?k(b,s):o=setTimeout(d,n)}function tt(){k(y,o)}function g(){var f,u,r;return h=arguments,l=i(),c=this,b=y&&(o||!p),v===!1?f=p&&!o:(s||p||(a=l),u=v-(l-a),r=u<=0||u>v,r?(s&&(s=clearTimeout(s)),a=l,w=n.apply(c,h)):s||(s=setTimeout(tt,u))),r&&o?o=clearTimeout(o):o||t===v||(o=setTimeout(d,t)),f&&(r=!0,w=n.apply(c,h)),!r||o||s||(h=c=undefined),w}var h,s,w,l,c,o,b,a=0,v=!1,y=!0,p;if(typeof n!="function")throw new TypeError(u);return t=t<0?0:+t||0,e===!0?(p=!0,y=!1):r(e)&&(p=!!e.leading,v="maxWait"in e&&f(+e.maxWait||0,t),y="trailing"in e?!!e.trailing:y),g.cancel=nt,g}var r=n(124),i=n(95),u="Expected a function",f=Math.max;t.exports=e},{"124":124,"95":95}],97:[function(n,t){function u(n,t){if(typeof n!="function")throw new TypeError(r);return t=i(t===undefined?n.length-1:+t||0,0),function(){for(var u=arguments,r=-1,o=i(u.length-t,0),f=Array(o),e;++r<o;)f[r]=u[t+r];switch(t){case 0:return n.call(this,f);case 1:return n.call(this,u[0],f);case 2:return n.call(this,u[0],u[1],f)}for(e=Array(t+1),r=-1;++r<t;)e[r]=u[r];return e[t]=f,n.apply(this,e)}}var r="Expected a function",i=Math.max;t.exports=u},{}],98:[function(n,t){function f(n,t,f){var e=!0,o=!0;if(typeof n!="function")throw new TypeError(u);return f===!1?e=!1:r(f)&&(e="leading"in f?!!f.leading:e,o="trailing"in f?!!f.trailing:o),i(n,t,{leading:e,maxWait:+t,trailing:o})}var i=n(96),r=n(124),u="Expected a function";t.exports=f},{"124":124,"96":96}],99:[function(n,t){function i(n,t){var i=-1,r=n.length;for(t||(t=Array(r));++i<r;)t[i]=n[i];return t}t.exports=i},{}],100:[function(n,t){function i(n,t){for(var i=-1,r=n.length;++i<r;)if(t(n[i],i,n)===!1)break;return n}t.exports=i},{}],101:[function(n,t){function i(n,t,i){var r,f,u;for(i||(i={}),r=-1,f=t.length;++r<f;)u=t[r],i[u]=n[u];return i}t.exports=i},{}],102:[function(n,t){var i=n(109),r=i();t.exports=r},{"109":109}],103:[function(n,t){function u(n,t){return i(n,t,r)}var i=n(102),r=n(130);t.exports=u},{"102":102,"130":130}],104:[function(n,t){function i(n,t,l,a,v){if(!o(n))return n;var y=e(t)&&(f(t)||h(t)),p=y?undefined:c(t);return r(p||t,function(r,f){if(p&&(f=r,r=t[f]),s(r))a||(a=[]),v||(v=[]),u(n,t,f,i,l,a,v);else{var o=n[f],e=l?l(o,r,f,n,t):undefined,h=e===undefined;h&&(e=r);e===undefined&&(!y||f in n)||!h&&(e===e?e===o:o!==o)||(n[f]=e)}}),n}var r=n(100),u=n(105),f=n(121),e=n(112),o=n(124),s=n(117),h=n(127),c=n(129);t.exports=i},{"100":100,"105":105,"112":112,"117":117,"121":121,"124":124,"127":127,"129":129}],105:[function(n,t){function h(n,t,h,c,l,a,v){for(var b=a.length,p=t[h];b--;)if(a[b]==p){n[h]=v[b];return}var y=n[h],w=l?l(y,p,h,n,t):undefined,k=w===undefined;k&&(w=p,u(p)&&(r(p)||o(p))?w=r(y)?y:u(y)?e(y):[]:f(p)||i(p)?w=i(y)?s(y):f(y)?y:{}:k=!1);a.push(p);v.push(w);k?n[h]=c(w,p,l,a,v):(w===w?w!==y:y===y)&&(n[h]=w)}var e=n(99),i=n(120),r=n(121),u=n(112),f=n(125),o=n(127),s=n(128);t.exports=h},{"112":112,"120":120,"121":121,"125":125,"127":127,"128":128,"99":99}],106:[function(n,t){function r(n){return function(t){return t==null?undefined:i(t)[n]}}var i=n(119);t.exports=r},{"119":119}],107:[function(n,t){function r(n,t,r){if(typeof n!="function")return i;if(t===undefined)return n;switch(r){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)};case 5:return function(i,r,u,f,e){return n.call(t,i,r,u,f,e)}}return function(){return n.apply(t,arguments)}}var i=n(133);t.exports=r},{"133":133}],108:[function(n,t){function f(n){return u(function(t,u){var h=-1,f=t==null?0:u.length,e=f>2?u[f-2]:undefined,c=f>2?u[2]:undefined,o=f>1?u[f-1]:undefined,s;for(typeof e=="function"?(e=i(e,o,5),f-=2):(e=typeof o=="function"?o:undefined,f-=e?1:0),c&&r(u[0],u[1],c)&&(e=f<3?undefined:e,f=1);++h<f;)s=u[h],s&&n(t,s,e);return t})}var i=n(107),r=n(115),u=n(97);t.exports=f},{"107":107,"115":115,"97":97}],109:[function(n,t){function r(n){return function(t,r,u){for(var o=i(t),s=u(t),h=s.length,f=n?h:-1,e;n?f--:++f<h;)if(e=s[f],r(o[e],e,o)===!1)break;return t}}var i=n(119);t.exports=r},{"119":119}],110:[function(n,t){var i=n(106),r=i("length");t.exports=r},{"106":106}],111:[function(n,t){function r(n,t){var r=n==null?undefined:n[t];return i(r)?r:undefined}var i=n(123);t.exports=r},{"123":123}],112:[function(n,t){function u(n){return n!=null&&r(i(n))}var i=n(110),r=n(116);t.exports=u},{"110":110,"116":116}],113:[function(n,t){var i=function(){try{Object({toString:0}+"")}catch(n){return function(){return!1}}return function(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}}();t.exports=i},{}],114:[function(n,t){function u(n,t){return n=typeof n=="number"||i.test(n)?+n:-1,t=t==null?r:t,n>-1&&n%1==0&&n<t}var i=/^\d+$/,r=9007199254740991;t.exports=u},{}],115:[function(n,t){function f(n,t,f){var o,e;return u(f)?(o=typeof t,o=="number"?i(f)&&r(t,f.length):o=="string"&&t in f)?(e=f[t],n===n?n===e:e!==e):!1:!1}var i=n(112),r=n(114),u=n(124);t.exports=f},{"112":112,"114":114,"124":124}],116:[function(n,t){function r(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=i}var i=9007199254740991;t.exports=r},{}],117:[function(n,t){function i(n){return!!n&&typeof n=="object"}t.exports=i},{}],118:[function(n,t){function c(n){for(var c=o(n),l=c.length,s=l&&n.length,y=!!s&&f(s)&&(r(n)||i(n)||e(n)),a=-1,v=[],t;++a<l;)t=c[a],(y&&u(t,s)||h.call(n,t))&&v.push(t);return v}var i=n(120),r=n(121),u=n(114),f=n(116),e=n(126),o=n(130),s=Object.prototype,h=s.hasOwnProperty;t.exports=c},{"114":114,"116":116,"120":120,"121":121,"126":126,"130":130}],119:[function(n,t){function f(n){if(u.unindexedChars&&r(n)){for(var t=-1,e=n.length,f=Object(n);++t<e;)f[t]=n.charAt(t);return f}return i(n)?n:Object(n)}var i=n(124),r=n(126),u=n(132);t.exports=f},{"124":124,"126":126,"132":132}],120:[function(n,t){function o(n){return u(n)&&r(n)&&f.call(n,"callee")&&!e.call(n,"callee")}var r=n(112),u=n(117),i=Object.prototype,f=i.hasOwnProperty,e=i.propertyIsEnumerable;t.exports=o},{"112":112,"117":117}],121:[function(n,t){var i=n(111),r=n(116),u=n(117),f="[object Array]",e=Object.prototype,o=e.toString,s=i(Array,"isArray"),h=s||function(n){return u(n)&&r(n.length)&&o.call(n)==f};t.exports=h},{"111":111,"116":116,"117":117}],122:[function(n,t){function e(n){return i(n)&&f.call(n)==r}var i=n(124),r="[object Function]",u=Object.prototype,f=u.toString;t.exports=e},{"124":124}],123:[function(n,t){function c(n){return n==null?!1:u(n)?r.test(i.call(n)):e(n)&&(f(n)?r:o).test(n)}var u=n(122),f=n(113),e=n(117),o=/^\[object .+?Constructor\]$/,s=Object.prototype,i=Function.prototype.toString,h=s.hasOwnProperty,r=RegExp("^"+i.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=c},{"113":113,"117":117,"122":122}],124:[function(n,t){function i(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}t.exports=i},{}],125:[function(n,t){function l(n){var u,t;return!(o(n)&&c.call(n)==h&&!e(n)&&!f(n))||!i.call(n,"constructor")&&(u=n.constructor,typeof u=="function"&&!(u instanceof u))?!1:s.ownLast?(r(n,function(n,r,u){return t=i.call(u,r),!1}),t!==!1):(r(n,function(n,i){t=i}),t===undefined||i.call(n,t))}var r=n(103),f=n(120),e=n(113),o=n(117),s=n(132),h="[object Object]",u=Object.prototype,i=u.hasOwnProperty,c=u.toString;t.exports=l},{"103":103,"113":113,"117":117,"120":120,"132":132}],126:[function(n,t){function e(n){return typeof n=="string"||i(n)&&f.call(n)==r}var i=n(117),r="[object String]",u=Object.prototype,f=u.toString;t.exports=e},{"117":117}],127:[function(n,t){function o(n){return e(n)&&f(n.length)&&!!i[u.call(n)]}var f=n(116),e=n(117),i={},r,u;i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0;i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;r=Object.prototype;u=r.toString;t.exports=o},{"116":116,"117":117}],128:[function(n,t){function u(n){return i(n,r(n))}var i=n(101),r=n(130);t.exports=u},{"101":101,"130":130}],129:[function(n,t){var u=n(111),f=n(112),e=n(124),i=n(118),o=n(132),r=u(Object,"keys"),s=r?function(n){var t=n==null?undefined:n.constructor;return typeof t=="function"&&t.prototype===n||(typeof n=="function"?o.enumPrototypes:f(n))?i(n):e(n)?r(n):[]}:i;t.exports=s},{"111":111,"112":112,"118":118,"124":124,"132":132}],130:[function(n,t){function nt(n){var a,t,rt,ot,ut;if(n==null)return[];b(n)||(n=Object(n));a=n.length;a=a&&w(a)&&(y(n)||v(n)||k(n))&&a||0;for(var ft=n.constructor,tt=-1,it=s(ft)&&ft.prototype||r,et=it===n,nt=Array(a),st=a>0,ht=f.enumErrorProps&&(n===l||n instanceof Error),ct=f.enumPrototypes&&s(n);++tt<a;)nt[tt]=tt+"";for(t in n)ct&&t=="prototype"||ht&&(t=="message"||t=="name")||st&&p(t,a)||t=="constructor"&&(et||!u.call(n,t))||nt.push(t);if(f.nonEnumShadows&&n!==r)for(rt=n===d?c:n===l?h:g.call(n),ot=i[rt]||i[e],rt==e&&(it=r),a=o.length;a--;)t=o[a],ut=ot[t],et&&ut||(ut?!u.call(n,t):n[t]===it[t])||nt.push(t);return nt}var a=n(100),v=n(120),y=n(121),s=n(122),p=n(114),w=n(116),b=n(124),k=n(126),f=n(132),h="[object Error]",e="[object Object]",c="[object String]",o=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],l=Error.prototype,r=Object.prototype,d=String.prototype,u=r.hasOwnProperty,g=r.toString,i={};i["[object Array]"]=i["[object Date]"]=i["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0};i["[object Boolean]"]=i[c]={constructor:!0,toString:!0,valueOf:!0};i[h]=i["[object Function]"]=i["[object RegExp]"]={constructor:!0,toString:!0};i[e]={constructor:!0};a(o,function(n){var t,r;for(t in i)u.call(i,t)&&(r=i[t],r[n]=u.call(r,n))});t.exports=nt},{"100":100,"114":114,"116":116,"120":120,"121":121,"122":122,"124":124,"126":126,"132":132}],131:[function(n,t){var i=n(104),r=n(108),u=r(i);t.exports=u},{"104":104,"108":108}],132:[function(n,t){var f=Array.prototype,u=Error.prototype,e=Object.prototype,r=e.propertyIsEnumerable,o=f.splice,i={};(function(n){var t=function(){this.x=n},e={"0":n,length:n},f=[],s;t.prototype={valueOf:n,y:n};for(s in new t)f.push(s);i.enumErrorProps=r.call(u,"message")||r.call(u,"name");i.enumPrototypes=r.call(t,"prototype");i.nonEnumShadows=!/valueOf/.test(f);i.ownLast=f[0]!="x";i.spliceObjects=(o.call(e,0,1),!e[0]);i.unindexedChars="x"[0]+Object("x")[0]!="xx"})(1,0);t.exports=i},{}],133:[function(n,t){function i(n){return n}t.exports=i},{}],134:[function(n,t){"use strict";var i=n(141);t.exports=function(){var r,u,f;if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},t=Symbol("test"),e=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(e)!=="[object Symbol]")return!1;r=42;n[t]=r;for(t in n)return!1;return i(n).length!==0?!1:typeof Object.keys=="function"&&Object.keys(n).length!==0?!1:typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0?!1:(u=Object.getOwnPropertySymbols(n),u.length!==1||u[0]!==t)?!1:Object.prototype.propertyIsEnumerable.call(n,t)?typeof Object.getOwnPropertyDescriptor=="function"&&(f=Object.getOwnPropertyDescriptor(n,t),f.value!==r||f.enumerable!==!0)?!1:!0:!1}},{"141":141}],135:[function(n,t){"use strict";var e=n(141),i=n(140),o=function(n){return typeof n!="undefined"&&n!==null},r=n(134)(),u=Object,s=i.call(Function.call,Array.prototype.push),f=i.call(Function.call,Object.prototype.propertyIsEnumerable),h=r?Object.getOwnPropertySymbols:null;t.exports=function(n){var v,l,c,t,a,y,w,i,p;if(!o(n))throw new TypeError("target must be an object");for(v=u(n),l=1;l<arguments.length;++l){if(c=u(arguments[l]),a=e(c),p=r&&(Object.getOwnPropertySymbols||h),p)for(y=p(c),t=0;t<y.length;++t)i=y[t],f(c,i)&&s(a,i);for(t=0;t<a.length;++t)i=a[t],w=c[i],f(c,i)&&(v[i]=w)}return v}},{"134":134,"140":140,"141":141}],136:[function(n,t){"use strict";var u=n(137),f=n(135),i=n(143),e=n(144),r=i();u(r,{implementation:f,getPolyfill:i,shim:e});t.exports=r},{"135":135,"137":137,"143":143,"144":144}],137:[function(n,t){"use strict";var u=n(141),f=n(138),e=typeof Symbol=="function"&&typeof Symbol()=="symbol",o=Object.prototype.toString,s=function(n){return typeof n=="function"&&o.call(n)==="[object Function]"},h=function(){var n={},t;try{Object.defineProperty(n,"x",{enumerable:!1,value:n});for(t in n)return!1;return n.x===n}catch(i){return!1}},i=Object.defineProperty&&h(),c=function(n,t,r,u){t in n&&(!s(u)||!u())||(i?Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):n[t]=r)},r=function(n,t){var r=arguments.length>2?arguments[2]:{},i=u(t);e&&(i=i.concat(Object.getOwnPropertySymbols(t)));f(i,function(i){c(n,i,t[i],r[i])})};r.supportsDescriptors=!!i;t.exports=r},{"138":138,"141":141}],138:[function(n,t){var i=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(n,t,u){var e,f,o;if(r.call(t)!=="[object Function]")throw new TypeError("iterator must be a function");if(e=n.length,e===+e)for(f=0;f<e;f++)t.call(u,n[f],f,n);else for(o in n)i.call(n,o)&&t.call(u,n[o],o,n)}},{}],139:[function(n,t){var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,u=Object.prototype.toString,f="[object Function]";t.exports=function(n){var t=this,o,s;if(typeof t!="function"||u.call(t)!==f)throw new TypeError(r+t);var h=i.call(arguments,1),e,l=function(){if(this instanceof e){var r=t.apply(this,h.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(n,h.concat(i.call(arguments)))},a=Math.max(0,t.length-h.length),c=[];for(o=0;o<a;o++)c.push("$"+o);return e=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),t.prototype&&(s=function(){},s.prototype=t.prototype,e.prototype=new s,s.prototype=null),e}},{}],140:[function(n,t){var i=n(139);t.exports=Function.prototype.bind||i},{"139":139}],141:[function(n,t){"use strict";var i=Object.prototype.hasOwnProperty,e=Object.prototype.toString,h=Array.prototype.slice,o=n(142),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(n){var t=n.constructor;return t&&t.prototype===n},a={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},v=function(){if(typeof window=="undefined")return!1;for(var n in window)try{if(!a["$"+n]&&i.call(window,n)&&window[n]!==null&&typeof window[n]=="object")try{f(window[n])}catch(t){return!0}}catch(t){return!0}return!1}(),y=function(n){if(typeof window=="undefined"||!v)return f(n);try{return f(n)}catch(t){return!1}},u=function(n){var a=n!==null&&typeof n=="object",v=e.call(n)==="[object Function]",p=o(n),k=a&&e.call(n)==="[object String]",u=[],w,f,s,h,b,t;if(!a&&!v&&!p)throw new TypeError("Object.keys called on a non-object");if(w=l&&v,k&&n.length>0&&!i.call(n,0))for(f=0;f<n.length;++f)u.push(String(f));if(p&&n.length>0)for(s=0;s<n.length;++s)u.push(String(s));else for(h in n)w&&h==="prototype"||!i.call(n,h)||u.push(String(h));if(c)for(b=y(n),t=0;t<r.length;++t)b&&r[t]==="constructor"||!i.call(n,r[t])||u.push(r[t]);return u};u.shim=function(){var t,n;return Object.keys?(t=function(){return(Object.keys(arguments)||"").length===2}(1,2),t||(n=Object.keys,Object.keys=function(t){return o(t)?n(h.call(t)):n(t)})):Object.keys=u,Object.keys||u};t.exports=u},{"142":142}],142:[function(n,t){"use strict";var i=Object.prototype.toString;t.exports=function(n){var r=i.call(n),t=r==="[object Arguments]";return t||(t=r!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&i.call(n.callee)==="[object Function]"),t}},{}],143:[function(n,t){"use strict";var i=n(135),r=function(){var n,f,i,e;if(!Object.assign)return!1;var r="abcdefghijklmnopqrst",t=r.split(""),u={};for(n=0;n<t.length;++n)u[t[n]]=t[n];f=Object.assign({},u);i="";for(e in f)i+=e;return r!==i},u=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch(t){return n[1]==="y"}return!1};t.exports=function(){return Object.assign?r()?i:u()?i:Object.assign:i}},{"135":135}],144:[function(n,t){"use strict";var i=n(137),r=n(143);t.exports=function(){var n=r();return i(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n}},{"137":137,"143":143}],145:[function(n,t){function i(n,t){var i,r=null;try{i=JSON.parse(n,t)}catch(u){r=u}return[r,i]}t.exports=i},{}],146:[function(n,t){function i(n){return n.replace(/\n\r?\s*/g,"")}t.exports=function(n){for(var r="",t=0;t<arguments.length;t++)r+=i(n[t])+(arguments[t+1]||"");return r}},{}],147:[function(n,t){"use strict";function c(n,t){for(var i=0;i<n.length;i++)t(n[i])}function l(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function u(n,t,i){var r=n;return o(t)?(i=t,typeof n=="string"&&(r={uri:n})):r=h(t,{uri:n}),r.callback=i,r}function i(n,t,i){return t=u(n,t,i),f(t)}function f(n){function d(){t.readyState===4&&p()}function g(){var n=undefined;if(t.response?n=t.response:t.responseType!=="text"&&t.responseType||(n=t.responseText||t.responseXML),k)try{n=JSON.parse(n)}catch(i){}return n}function c(n){clearTimeout(y);n instanceof Error||(n=new Error(""+(n||"Unknown XMLHttpRequest Error")));n.statusCode=0;u(n,h)}function p(){var r,i,e;w||(clearTimeout(y),r=n.useXDR&&t.status===undefined?200:t.status===1223?204:t.status,i=h,e=null,r!==0?(i={body:g(),statusCode:r,method:f,headers:{},url:a,rawRequest:t},t.getAllResponseHeaders&&(i.headers=s(t.getAllResponseHeaders()))):e=new Error("Internal XMLHttpRequest Error"),u(e,i,i.body))}var u=n.callback,h,t;if(typeof u=="undefined")throw new Error("callback argument missing");u=e(u);h={body:undefined,headers:{},statusCode:0,method:f,url:a,rawRequest:t};t=n.xhr||null;t||(t=n.cors||n.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var o,w,a=t.url=n.uri||n.url,f=t.method=n.method||"GET",b=n.body||n.data||null,r=t.headers=n.headers||{},v=!!n.sync,k=!1,y;if("json"in n&&(k=!0,r.accept||r.Accept||(r.Accept="application/json"),f!=="GET"&&f!=="HEAD"&&(r["content-type"]||r["Content-Type"]||(r["Content-Type"]="application/json"),b=JSON.stringify(n.json))),t.onreadystatechange=d,t.onload=p,t.onerror=c,t.onprogress=function(){},t.ontimeout=c,t.open(f,a,!v,n.username,n.password),v||(t.withCredentials=!!n.withCredentials),!v&&n.timeout>0&&(y=setTimeout(function(){w=!0;t.abort("timeout");var n=new Error("XMLHttpRequest timeout");n.code="ETIMEDOUT";c(n)},n.timeout)),t.setRequestHeader)for(o in r)r.hasOwnProperty(o)&&t.setRequestHeader(o,r[o]);else if(n.headers&&!l(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(t.responseType=n.responseType),"beforeSend"in n&&typeof n.beforeSend=="function"&&n.beforeSend(t),t.send(b),t}function a(){}var r=n(93),e=n(149),o=n(148),s=n(152),h=n(153);t.exports=i;i.XMLHttpRequest=r.XMLHttpRequest||a;i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:r.XDomainRequest;c(["get","put","post","patch","head","delete"],function(n){i[n==="delete"?"del":n]=function(t,i,r){return i=u(t,i,r),i.method=n.toUpperCase(),f(i)}})},{"148":148,"149":149,"152":152,"153":153,"93":93}],148:[function(n,t){function r(n){var t=i.call(n);return t==="[object Function]"||typeof n=="function"&&t!=="[object RegExp]"||typeof window!="undefined"&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}t.exports=r;var i=Object.prototype.toString},{}],149:[function(n,t){function i(n){var t=!1;return function(){if(!t)return t=!0,n.apply(this,arguments)}}t.exports=i;i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0})})},{}],150:[function(n,t){function f(n,t,i){if(!u(t))throw new TypeError("iterator must be a function");arguments.length<3&&(i=this);r.call(n)==="[object Array]"?e(n,t,i):typeof n=="string"?o(n,t,i):s(n,t,i)}function e(n,t,r){for(var u=0,f=n.length;u<f;u++)i.call(n,u)&&t.call(r,n[u],u,n)}function o(n,t,i){for(var r=0,u=n.length;r<u;r++)t.call(i,n.charAt(r),r,n)}function s(n,t,r){for(var u in n)i.call(n,u)&&t.call(r,n[u],u,n)}var u=n(148),r,i;t.exports=f;r=Object.prototype.toString;i=Object.prototype.hasOwnProperty},{"148":148}],151:[function(n,t,i){function r(n){return n.replace(/^\s*|\s*$/g,"")}i=t.exports=r;i.left=function(n){return n.replace(/^\s*/,"")};i.right=function(n){return n.replace(/\s*$/,"")}},{}],152:[function(n,t){var i=n(151),r=n(150),u=function(n){return Object.prototype.toString.call(n)==="[object Array]"};t.exports=function(n){if(!n)return{};var t={};return r(i(n).split("\n"),function(n){var e=n.indexOf(":"),r=i(n.slice(0,e)).toLowerCase(),f=i(n.slice(e+1));typeof t[r]=="undefined"?t[r]=f:u(t[r])?t[r].push(f):t[r]=[t[r],f]}),t}},{"150":150,"151":151}],153:[function(n,t){function r(){for(var u={},t,r,n=0;n<arguments.length;n++){t=arguments[n];for(r in t)i.call(t,r)&&(u[r]=t[r])}return u}t.exports=r;var i=Object.prototype.hasOwnProperty},{}]},{},[91])(91)}),function(n){var t=n.vttjs={},i=t.VTTCue,r=t.VTTRegion,u=n.VTTCue,f=n.VTTRegion;t.shim=function(){t.VTTCue=i;t.VTTRegion=r};t.restore=function(){t.VTTCue=u;t.VTTRegion=f}}(this),function(n,t){function s(n){if(typeof n!="string")return!1;var t=e[n.toLowerCase()];return t?n.toLowerCase():!1}function r(n){if(typeof n!="string")return!1;var t=o[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){for(var t=1,i,r;t<arguments.length;t++){i=arguments[t];for(r in i)n[r]=i[r]}return n}function u(n,t,u){var e=this,h=/MSIE\s8\.0/.test(navigator.userAgent),o={};h?e=document.createElement("custom"):o.enumerable=!0;e.hasBeenReset=!1;var c="",l=!1,a=n,v=t,y=u,p=null,w="",b=!0,k="auto",d="start",g=50,nt="middle",tt=50,it="middle";return Object.defineProperty(e,"id",i({},o,{get:function(){return c},set:function(n){c=""+n}})),Object.defineProperty(e,"pauseOnExit",i({},o,{get:function(){return l},set:function(n){l=!!n}})),Object.defineProperty(e,"startTime",i({},o,{get:function(){return a},set:function(n){if(typeof n!="number")throw new TypeError("Start time must be set to a number.");a=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"endTime",i({},o,{get:function(){return v},set:function(n){if(typeof n!="number")throw new TypeError("End time must be set to a number.");v=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"text",i({},o,{get:function(){return y},set:function(n){y=""+n;this.hasBeenReset=!0}})),Object.defineProperty(e,"region",i({},o,{get:function(){return p},set:function(n){p=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"vertical",i({},o,{get:function(){return w},set:function(n){var t=s(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");w=t;this.hasBeenReset=!0}})),Object.defineProperty(e,"snapToLines",i({},o,{get:function(){return b},set:function(n){b=!!n;this.hasBeenReset=!0}})),Object.defineProperty(e,"line",i({},o,{get:function(){return k},set:function(n){if(typeof n!="number"&&n!==f)throw new SyntaxError("An invalid number or illegal string was specified.");k=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"lineAlign",i({},o,{get:function(){return d},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");d=t;this.hasBeenReset=!0}})),Object.defineProperty(e,"position",i({},o,{get:function(){return g},set:function(n){if(n<0||n>100)throw new Error("Position must be between 0 and 100.");g=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"positionAlign",i({},o,{get:function(){return nt},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");nt=t;this.hasBeenReset=!0}})),Object.defineProperty(e,"size",i({},o,{get:function(){return tt},set:function(n){if(n<0||n>100)throw new Error("Size must be between 0 and 100.");tt=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"align",i({},o,{get:function(){return it},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");it=t;this.hasBeenReset=!0}})),e.displayState=undefined,h?e:void 0}var f="auto",e={"":!0,lr:!0,rl:!0},o={start:!0,middle:!0,end:!0,left:!0,right:!0};u.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};n.VTTCue=n.VTTCue||u;t.VTTCue=u}(this,this.vttjs||{}),function(n,t){function f(n){if(typeof n!="string")return!1;var t=u[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){return typeof n=="number"&&n>=0&&n<=100}function r(){var n=100,t=3,r=0,u=100,e=0,o=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");n=t}},lines:{enumerable:!0,get:function(){return t},set:function(n){if(typeof n!="number")throw new TypeError("Lines must be set to a number.");t=n}},regionAnchorY:{enumerable:!0,get:function(){return u},set:function(n){if(!i(n))throw new Error("RegionAnchorX must be between 0 and 100.");u=n}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(n){if(!i(n))throw new Error("RegionAnchorY must be between 0 and 100.");r=n}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(n){if(!i(n))throw new Error("ViewportAnchorY must be between 0 and 100.");o=n}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(n){if(!i(n))throw new Error("ViewportAnchorX must be between 0 and 100.");e=n}},scroll:{enumerable:!0,get:function(){return s},set:function(n){var t=f(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");s=t}}})}var u={"":!0,up:!0};n.VTTRegion=n.VTTRegion||r;t.VTTRegion=r}(this,this.vttjs||{}),function(n){function i(n,t){this.name="ParsingError";this.code=n.code;this.message=t||n.message}function c(n){function i(n,t,i,r){return(n|0)*3600+(t|0)*60+(i|0)+(r|0)/1e3}var t=n.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return t?t[3]?i(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?i(t[1],t[2],0,t[4]):i(0,t[1],t[2],t[4]):null}function u(){this.values=o(null)}function s(n,t,i,r){var f=r?n.split(r):[n],e,u,o,s;for(e in f)typeof f[e]=="string"&&(u=f[e].split(i),u.length===2)&&(o=u[0],s=u[1],t(o,s))}function v(n,t,r){function o(){var t=c(n);if(t===null)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+e);return n=n.replace(/^[^\sa-zA-Z-]+/,""),t}function h(n,t){var i=new u;s(n,function(n,t){var f,u,e;switch(n){case"region":for(f=r.length-1;f>=0;f--)if(r[f].id===t){i.set(n,r[f].region);break}break;case"vertical":i.alt(n,t,["rl","lr"]);break;case"line":u=t.split(",");e=u[0];i.integer(n,e);i.percent(n,e)?i.set("snapToLines",!1):null;i.alt(n,e,["auto"]);u.length===2&&i.alt("lineAlign",u[1],["start","middle","end"]);break;case"position":u=t.split(",");i.percent(n,u[0]);u.length===2&&i.alt("positionAlign",u[1],["start","middle","end"]);break;case"size":i.percent(n,t);break;case"align":i.alt(n,t,["start","middle","end","left","right"])}},/:/,/\s/);t.region=i.get("region",null);t.vertical=i.get("vertical","");t.line=i.get("line","auto");t.lineAlign=i.get("lineAlign","start");t.snapToLines=i.get("snapToLines",!0);t.size=i.get("size",100);t.align=i.get("align","middle");t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align);t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function f(){n=n.replace(/^\s+/,"")}var e=n;if(f(),t.startTime=o(),f(),n.substr(0,3)!=="-->")throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+e);n=n.substr(3);f();t.endTime=o();f();h(n,t)}function a(n,t){function h(){function i(n){return t=t.substr(n.length),n}if(!t)return null;var n=t.match(/^([^<]*)(<[^>]+>?)?/);return i(n[1]?n[1]:n[2])}function a(n){return y[n]}function v(n){while(i=n.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))n=n.replace(i[0],a);return n}function b(n,t){return!l[t.localName]||l[t.localName]===n.localName}function k(t,i){var u=p[t],r,f;return u?(r=n.document.createElement(u),r.localName=u,f=w[t],f&&i&&(r[f]=i.trim()),r):null}for(var s=n.document.createElement("div"),f=s,r,e=[],o,u,i;(r=h())!==null;){if(r[0]==="<"){if(r[1]==="/"){e.length&&e[e.length-1]===r.substr(2).replace(">","")&&(e.pop(),f=f.parentNode);continue}if(o=c(r.substr(1,r.length-2)),o){u=n.document.createProcessingInstruction("timestamp",o);f.appendChild(u);continue}if(i=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/),!i)continue;if(u=k(i[1],i[3]),!u)continue;if(!b(f,u))continue;i[2]&&(u.className=i[2].substr(1).replace("."," "));e.push(i[1]);f.appendChild(u);f=u;continue}f.appendChild(n.document.createTextNode(v(r)))}return s}function b(n){function o(n,t){for(var i=t.childNodes.length-1;i>=0;i--)n.push(t.childNodes[i])}function u(n){var t,i,r;return!n||!n.length?null:(t=n.pop(),i=t.textContent||t.innerText,i)?(r=i.match(/^.*(\n|\r)/),r)?(n.length=0,r[0]):i:t.tagName==="ruby"?u(n):t.childNodes?(o(n,t),u(n)):void 0}var f=[],r="",e,t,i;if(!n||!n.childNodes)return"ltr";for(o(f,n);r=u(f);)for(t=0;t<r.length;t++)for(e=r.charCodeAt(t),i=0;i<h.length;i++)if(h[i]===e)return"rtl";return"ltr"}function k(n){var t;if(typeof n.line=="number"&&(n.snapToLines||n.line>=0&&n.line<=100))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;var r=n.track,i=r.textTrackList,u=0;for(t=0;t<i.length&&i[t]!==r;t++)i[t].mode==="showing"&&u++;return++u*-1}function f(){}function e(n,t,i){var e=/MSIE\s8\.0/.test(navigator.userAgent),o="rgba(255, 255, 255, 1)",s="rgba(0, 0, 0, 0.8)",r,u;e&&(o="rgb(255, 255, 255)",s="rgb(0, 0, 0)");f.call(this);this.cue=t;this.cueDiv=a(n,t.text);r={color:o,backgroundColor:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};e||(r.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",r.unicodeBidi="plaintext");this.applyStyles(r,this.cueDiv);this.div=n.document.createElement("div");r={textAlign:t.align==="middle"?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"};e||(r.direction=b(this.cueDiv),r.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext");this.applyStyles(r);this.div.appendChild(this.cueDiv);u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}t.vertical===""?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")});this.move=function(n){this.applyStyles({top:this.formatStyle(n.top,"px"),bottom:this.formatStyle(n.bottom,"px"),left:this.formatStyle(n.left,"px"),right:this.formatStyle(n.right,"px"),height:this.formatStyle(n.height,"px"),width:this.formatStyle(n.width,"px")})}}function t(n){var e=/MSIE\s8\.0/.test(navigator.userAgent),i,r,f,u,t;n.div&&(r=n.div.offsetHeight,f=n.div.offsetWidth,u=n.div.offsetTop,t=(t=n.div.childNodes)&&(t=t[0])&&t.getClientRects&&t.getClientRects(),n=n.div.getBoundingClientRect(),i=t?Math.max(t[0]&&t[0].height||0,n.height/t.length):0);this.left=n.left;this.right=n.right;this.top=n.top||u;this.height=n.height||r;this.bottom=n.bottom||u+(n.height||r);this.width=n.width||f;this.lineHeight=i!==undefined?i:n.lineHeight;e&&!this.lineHeight&&(this.lineHeight=13)}function d(n,i,r,u){function p(n,i){for(var o,s=new t(n),h=1,e,f=0;f<i.length;f++){while(n.overlapsOppositeAxis(r,i[f])||n.within(r)&&n.overlapsAny(u))n.move(i[f]);if(n.within(r))return n;e=n.intersectPercentage(r);h>e&&(o=new t(n),h=e);n=new t(s)}return o||s}var s=new t(i),o=i.cue,e=k(o),f=[],c,a,y;if(o.snapToLines){switch(o.vertical){case"":f=["+y","-y"];c="height";break;case"rl":f=["+x","-x"];c="width";break;case"lr":f=["-x","+x"];c="width"}var l=s.lineHeight,h=l*Math.round(e),v=r[c]+l,w=f[0];Math.abs(h)>v&&(h=(h<0?-1:1)*Math.ceil(v/l)*l);e<0&&(h+=o.vertical===""?r.height:r.width,f=f.reverse());s.move(w,h)}else{a=s.lineHeight/r.height*100;switch(o.lineAlign){case"middle":e-=a/2;break;case"end":e-=a}switch(o.vertical){case"":i.applyStyles({top:i.formatStyle(e,"%")});break;case"rl":i.applyStyles({left:i.formatStyle(e,"%")});break;case"lr":i.applyStyles({right:i.formatStyle(e,"%")})}f=["+y","-x","+x","-y"];s=new t(i)}y=p(s,f);i.move(y.toCSSCompatValues(r))}function r(){}var o=Object.create||function(){function n(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=t,new n}}(),h;i.prototype=o(Error.prototype);i.prototype.constructor=i;i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};u.prototype={set:function(n,t){this.get(n)||t===""||(this.values[n]=t)},get:function(n,t,i){return i?this.has(n)?this.values[n]:t[i]:this.has(n)?this.values[n]:t},has:function(n){return n in this.values},alt:function(n,t,i){for(var r=0;r<i.length;++r)if(t===i[r]){this.set(n,t);break}},integer:function(n,t){/^-?\d+$/.test(t)&&this.set(n,parseInt(t,10))},percent:function(n,t){var i;return(i=t.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(t=parseFloat(t),t>=0&&t<=100)?(this.set(n,t),!0):!1}};var y={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},p={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},w={v:"title",lang:"lang"},l={rt:"ruby"};h=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];f.prototype.applyStyles=function(n,t){t=t||this.div;for(var i in n)n.hasOwnProperty(i)&&(t.style[i]=n[i])};f.prototype.formatStyle=function(n,t){return n===0?0:n+t};e.prototype=o(f.prototype);e.prototype.constructor=e;t.prototype.move=function(n,t){t=t!==undefined?t:this.lineHeight;switch(n){case"+x":this.left+=t;this.right+=t;break;case"-x":this.left-=t;this.right-=t;break;case"+y":this.top+=t;this.bottom+=t;break;case"-y":this.top-=t;this.bottom-=t}};t.prototype.overlaps=function(n){return this.left<n.right&&this.right>n.left&&this.top<n.bottom&&this.bottom>n.top};t.prototype.overlapsAny=function(n){for(var t=0;t<n.length;t++)if(this.overlaps(n[t]))return!0;return!1};t.prototype.within=function(n){return this.top>=n.top&&this.bottom<=n.bottom&&this.left>=n.left&&this.right<=n.right};t.prototype.overlapsOppositeAxis=function(n,t){switch(t){case"+x":return this.left<n.left;case"-x":return this.right>n.right;case"+y":return this.top<n.top;case"-y":return this.bottom>n.bottom}};t.prototype.intersectPercentage=function(n){var t=Math.max(0,Math.min(this.right,n.right)-Math.max(this.left,n.left)),i=Math.max(0,Math.min(this.bottom,n.bottom)-Math.max(this.top,n.top)),r=t*i;return r/(this.height*this.width)};t.prototype.toCSSCompatValues=function(n){return{top:this.top-n.top,bottom:n.bottom-this.bottom,left:this.left-n.left,right:n.right-this.right,height:this.height,width:this.width}};t.getSimpleBoxPosition=function(n){var t=n.div?n.div.offsetHeight:n.tagName?n.offsetHeight:0,r=n.div?n.div.offsetWidth:n.tagName?n.offsetWidth:0,i=n.div?n.div.offsetTop:n.tagName?n.offsetTop:0;return n=n.div?n.div.getBoundingClientRect():n.tagName?n.getBoundingClientRect():n,{left:n.left,right:n.right,top:n.top||i,height:n.height||t,bottom:n.bottom||i+(n.height||t),width:n.width||r}};r.StringDecoder=function(){return{decode:function(n){if(!n)return"";if(typeof n!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))}}};r.convertCueToDOMTree=function(n,t){return!n||!t?null:a(n,t)};var g=.05,nt="sans-serif",tt="1.5%";r.processCues=function(n,i,r){function h(n){for(var t=0;t<n.length;t++)if(n[t].hasBeenReset||!n[t].displayState)return!0;return!1}var u,f;if(!n||!i||!r)return null;while(r.firstChild)r.removeChild(r.firstChild);if(u=n.document.createElement("div"),u.style.position="absolute",u.style.left="0",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.margin=tt,r.appendChild(u),!h(i)){for(f=0;f<i.length;f++)u.appendChild(i[f].displayState);return}var o=[],s=t.getSimpleBoxPosition(u),c=Math.round(s.height*g*100)/100,l={font:c+"px "+nt};(function(){for(var r,h,f=0;f<i.length;f++)h=i[f],r=new e(n,h,l),u.appendChild(r.div),d(n,r,s,o),h.displayState=r.div,o.push(t.getSimpleBoxPosition(r))})()};r.Parser=function(n,t,i){i||(i=t,t={});t||(t={});this.window=n;this.vttjs=t;this.state="INITIAL";this.buffer="";this.decoder=i||new TextDecoder("utf8");this.regionList=[]};r.Parser.prototype={reportOrThrowError:function(n){if(n instanceof i)this.onparsingerror&&this.onparsingerror(n);else throw n;},parse:function(n){function o(){for(var i=t.buffer,n=0,r;n<i.length&&i[n]!=="\r"&&i[n]!=="\n";)++n;return r=i.substr(0,n),i[n]==="\r"&&++n,i[n]==="\n"&&++n,t.buffer=i.substr(n),r}function l(n){var i=new u,r;s(n,function(n,t){var f,r;switch(n){case"id":i.set(n,t);break;case"width":i.percent(n,t);break;case"lines":i.integer(n,t);break;case"regionanchor":case"viewportanchor":if(f=t.split(","),f.length!==2)break;if(r=new u,r.percent("x",f[0]),r.percent("y",f[1]),!r.has("x")||!r.has("y"))break;i.set(n+"X",r.get("x"));i.set(n+"Y",r.get("y"));break;case"scroll":i.alt(n,t,["up"])}},/=/,/\s/);i.has("id")&&(r=new(t.vttjs.VTTRegion||t.window.VTTRegion),r.width=i.get("width",100),r.lines=i.get("lines",3),r.regionAnchorX=i.get("regionanchorX",0),r.regionAnchorY=i.get("regionanchorY",100),r.viewportAnchorX=i.get("viewportanchorX",0),r.viewportAnchorY=i.get("viewportanchorY",100),r.scroll=i.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:i.get("id"),region:r}))}function a(n){s(n,function(n,t){switch(n){case"Region":l(t)}},/:/)}var t=this,r,e,f,c;n&&(t.buffer+=t.decoder.decode(n,{stream:!0}));try{if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;if(r=o(),e=r.match(/^WEBVTT([ \t].*)?$/),!e||!e[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;f?f=!1:r=o();switch(t.state){case"HEADER":/:/.test(r)?a(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",r.indexOf("-->")===-1){t.cue.id=r;continue}case"CUE":try{v(r,t.cue,t.regionList)}catch(h){t.reportOrThrowError(h);t.cue=null;t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":if(c=r.indexOf("-->")!==-1,!r||c&&(f=!0)){t.oncue&&t.oncue(t.cue);t.cue=null;t.state="ID";continue}t.cue.text&&(t.cue.text+="\n");t.cue.text+=r;continue;case"BADCUE":r||(t.state="ID");continue}}}catch(h){if(t.reportOrThrowError(h),t.state==="CUETEXT"&&t.cue&&t.oncue)t.oncue(t.cue);t.cue=null;t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var n=this;try{if(n.buffer+=n.decoder.decode(),(n.cue||n.state==="HEADER")&&(n.buffer+="\n\n",n.parse()),n.state==="INITIAL")throw new i(i.Errors.BadSignature);}catch(t){n.reportOrThrowError(t)}return n.onflush&&n.onflush(),this}};n.WebVTT=r}(this,this.vttjs||{});!function(){!function(n){var t=n&&n.videojs,i;t&&(t.CDN_VERSION="5.12.6",i="https:"===n.location.protocol?"https://":"http://",t.options.flash.swf=i+"vjs.zencdn.net/swf/5.1.0/video-js.swf")}(window),function(n,t,i,r,u,f,e){t&&t.HELP_IMPROVE_VIDEOJS!==!1&&(u.random()>.01||(f=t.location,e=t.videojs||{},n.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-3&utmn=1&utmhn="+r(f.hostname)+"&utmsr="+t.screen.availWidth+"x"+t.screen.availHeight+"&utmul="+(i.language||i.userLanguage||"").toLowerCase()+"&utmr="+r(f.href)+"&utmp="+r(f.hostname+f.pathname)+"&utmcc=__utma%3D1."+u.floor(1e10*u.random())+".1.1.1.1%3B&utme=8(vjsv*cdnv)9("+e.VERSION+"*"+e.CDN_VERSION+")"))}(new Image,window,navigator,encodeURIComponent,Math)}(),function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.videojsContribHls=n()}}(function(){var n;return function t(n,i,r){function f(u,o){var h,c,s;if(!i[u]){if(!n[u]){if(h=typeof require=="function"&&require,!o&&h)return h(u,!0);if(e)return e(u,!0);c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[u]={exports:{}};n[u][0].call(s.exports,function(t){var i=n[u][1][t];return f(i?i:t)},s,s.exports,t,n,i,r)}return i[u].exports}for(var e=typeof require=="function"&&require,u=0;u<r.length;u++)f(r[u]);return f}({1:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}var r;Object.defineProperty(i,"__esModule",{value:!0});r=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}();var o=n("global/window"),u=e(o),f=function(n,t){for(var u=n.cues,r,i=0;i<u.length;i++)if(r=u[i],t>=r.adStartTime&&t<=r.adEndTime)return r;return null},s=function(n,t){var a=arguments.length<=2||arguments[2]===undefined?0:arguments[2],e,i,s,o;if(n.segments)for(e=a,i=undefined,s=0;s<n.segments.length;s++){if(o=n.segments[s],i||(i=f(t,e+o.duration/2)),i){if("cueIn"in o){i.endTime=e;i.adEndTime=e;e+=o.duration;i=null;continue}if(e<i.endTime){e+=o.duration;continue}i.endTime+=o.duration}else if("cueOut"in o&&(i=new u["default"].VTTCue(e,e+o.duration,o.cueOut),i.adStartTime=e,i.adEndTime=e+parseFloat(o.cueOut),t.addCue(i)),"cueOutCont"in o){var h=undefined,c=undefined,v=o.cueOutCont.split("/").map(parseFloat),l=r(v,2);h=l[0];c=l[1];i=new u["default"].VTTCue(e,e+o.duration,"");i.adStartTime=e-h;i.adEndTime=i.adStartTime+c;t.addCue(i)}e+=o.duration}};i["default"]={updateAdCues:s,findAdCue:f};t.exports=i["default"]},{"global/window":27}],2:[function(n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var u=function(n,t){return n.start(t)+"-"+n.end(t)},f=function(n,t){var i=n.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},e=function(n){return n>=32&&n<126?String.fromCharCode(n):"."},r={hexDump:function(n){for(var r=Array.prototype.slice.call(n),t=16,u="",o=undefined,s=undefined,i=0;i<r.length/t;i++)o=r.slice(i*t,i*t+t).map(f).join(""),s=r.slice(i*t,i*t+t).map(e).join(""),u+=o+" "+s+"\n";return u},tagDump:function(n){return r.hexDump(n.bytes)},textRanges:function(n){for(var i="",t=undefined,t=0;t<n.length;t++)i+=u(n,t)+" ";return i}};i["default"]=r;t.exports=i["default"]},{}],3:[function(n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i["default"]={GOAL_BUFFER_LENGTH:30};t.exports=i["default"]},{}],4:[function(n,t,i){(function(t){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o,s,a;Object.defineProperty(i,"__esModule",{value:!0});o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();s=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var p=n("./playlist-loader"),h=u(p),w=n("./segment-loader"),c=u(w),b=n("./ranges"),k=u(b),d=typeof window!="undefined"?window.videojs:typeof t!="undefined"?t.videojs:null,r=u(d),g=n("./ad-cue-tags"),nt=u(g),tt=n("./sync-controller"),it=u(tt),rt=3e5,f=undefined,ut=function(n,t){if(typeof n!=typeof t||Object.keys(n).length!==Object.keys(t).length)return!0;for(var i in n)if(n[i]!==t[i])return!0;return!1},e=function(n){var t={codecCount:0,videoCodec:null,videoObjectTypeIndicator:null,audioProfile:null},i=undefined;return t.codecCount=n.split(",").length,t.codecCount=t.codecCount||2,i=/(^|\s|,)+(avc1)([^ ,]*)/i.exec(n),i&&(t.videoCodec=i[2],t.videoObjectTypeIndicator=i[3]),t.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(n),t.audioProfile=t.audioProfile&&t.audioProfile[2],t},l=function(n,t){var r="mp2t",i={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},f=[],o=undefined,u=null,s;if(!t)return[];t.segments&&t.segments.length&&t.segments[0].map&&(r="mp4");o=t.attributes||{};o.CODECS&&function(){var n=e(o.CODECS);Object.keys(n).forEach(function(t){i[t]=n[t]||i[t]})}();n.mediaGroups.AUDIO&&(f=n.mediaGroups.AUDIO[o.AUDIO]);for(s in f){if(u&&!!f[s].uri!=!!u.uri)return["video/"+r+'; codecs="'+i.videoCodec+i.videoObjectTypeIndicator+", mp4a.40."+i.audioProfile+'"',"audio/"+r+'; codecs="mp4a.40.'+i.audioProfile+'"'];u=f[s]}return u&&u.uri?["video/"+r+'; codecs="'+i.videoCodec+i.videoObjectTypeIndicator+'"',"audio/"+r+'; codecs="mp4a.40.'+i.audioProfile+'"']:["video/"+r+'; codecs="'+i.videoCodec+i.videoObjectTypeIndicator+", mp4a.40."+i.audioProfile+'"']};i.mimeTypesForPlaylist_=l;a=function(n){function t(n){var i=this,u;v(this,t);s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);var e=n.url,a=n.withCredentials,o=n.mode,l=n.tech,y=n.bandwidth,p=n.externHls,w=n.useCueTags;if(!e)throw new Error("A non-empty playlist URL is required");f=p;this.withCredentials=a;this.tech_=l;this.hls_=l.hls;this.mode_=o;this.useCueTags_=w;this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType="",this.tech_.textTracks().addTrack_(this.cueTagsTrack_));this.audioTracks_=[];this.requestOptions_={withCredentials:this.withCredentials,timeout:null};this.audioGroups_={};this.mediaSource=new r["default"].MediaSource({mode:o});this.audioinfo_=null;this.mediaSource.on("audioinfo",this.handleAudioinfoUpdate_.bind(this));this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_.bind(this));this.seekable_=r["default"].createTimeRanges();this.hasPlayed_=function(){return!1};this.syncController_=new it["default"];u={hls:this.hls_,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:function(){return i.seekable()},seeking:function(){return i.tech_.seeking()},setCurrentTime:function(n){return i.tech_.setCurrentTime(n)},hasPlayed:function(){return i.hasPlayed_()},bandwidth:y,syncController:this.syncController_};this.masterPlaylistLoader_=new h["default"](e,this.hls_,this.withCredentials);this.setupMasterPlaylistLoaderListeners_();this.audioPlaylistLoader_=null;this.mainSegmentLoader_=new c["default"](u);this.audioSegmentLoader_=new c["default"](u);this.setupSegmentLoaderListeners_();this.masterPlaylistLoader_.start()}return y(t,n),o(t,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var n=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var t=n.masterPlaylistLoader_.media(),i=n.masterPlaylistLoader_.targetDuration*1.5*1e3;n.requestOptions_.timeout=i;t.endList&&n.tech_.preload()!=="none"&&(n.mainSegmentLoader_.playlist(t,n.requestOptions_),n.mainSegmentLoader_.load());n.fillAudioTracks_();n.setupAudio();try{n.setupSourceBuffers_()}catch(u){return r["default"].log.warn("Failed to create SourceBuffers",u),n.mediaSource.endOfStream("decode")}n.setupFirstPlay();n.trigger("audioupdate");n.trigger("selectedinitialmedia")});this.masterPlaylistLoader_.on("loadedplaylist",function(){var t=n.masterPlaylistLoader_.media();if(!t){n.initialMedia_=n.selectPlaylist();n.masterPlaylistLoader_.media(n.initialMedia_);return}n.useCueTags_&&n.updateAdCues_(t);n.mainSegmentLoader_.playlist(t,n.requestOptions_);n.updateDuration();t.endList||function(){var t=function(){var t=n.seekable();t.length!==0&&n.mediaSource.addSeekableRange_(t.start(0),t.end(0))};n.duration()!==Infinity?function(){var i=function i(){if(n.duration()===Infinity)t();else n.tech_.one("durationchange",i)};n.tech_.one("durationchange",i)}():t()}()});this.masterPlaylistLoader_.on("error",function(){n.blacklistCurrentPlaylist(n.masterPlaylistLoader_.error)});this.masterPlaylistLoader_.on("mediachanging",function(){n.mainSegmentLoader_.abort();n.mainSegmentLoader_.pause()});this.masterPlaylistLoader_.on("mediachange",function(){var r=n.masterPlaylistLoader_.media(),u=n.masterPlaylistLoader_.targetDuration*1.5*1e3,t=undefined,i=undefined;n.requestOptions_.timeout=n.masterPlaylistLoader_.isLowestEnabledRendition_()?0:u;n.mainSegmentLoader_.playlist(r,n.requestOptions_);n.mainSegmentLoader_.load();t=n.activeAudioGroup();i=t.filter(function(n){return n.enabled})[0];i||(n.setupAudio(),n.trigger("audioupdate"));n.tech_.trigger({type:"mediachange",bubbles:!0})})}},{key:"setupSegmentLoaderListeners_",value:function(){var n=this;this.mainSegmentLoader_.on("progress",function(){n.masterPlaylistLoader_.media(n.selectPlaylist());n.trigger("progress")});this.mainSegmentLoader_.on("error",function(){n.blacklistCurrentPlaylist(n.mainSegmentLoader_.error())});this.mainSegmentLoader_.on("syncinfoupdate",function(){n.onSyncInfoUpdate_()});this.audioSegmentLoader_.on("syncinfoupdate",function(){n.onSyncInfoUpdate_()});this.audioSegmentLoader_.on("error",function(){r["default"].log.warn("Problem encountered with the current alternate audio track. Switching back to default.");n.audioSegmentLoader_.abort();n.audioPlaylistLoader_=null;n.setupAudio()})}},{key:"handleAudioinfoUpdate_",value:function(n){if(f.supportsAudioInfoChange_()||!this.audioInfo_||!ut(this.audioInfo_,n.info)){this.audioInfo_=n.info;return}var t="had different audio properties (channels, sample rate, etc.) or changed in some other way.  This behavior is currently unsupported in Firefox 48 and below due to an issue: \n\nhttps://bugzilla.mozilla.org/show_bug.cgi?id=1247138\n\n",i=this.activeAudioGroup().map(function(n){return n.enabled}).indexOf(!0),e=this.activeAudioGroup()[i],u=this.activeAudioGroup().filter(function(n){return n.properties_&&n.properties_["default"]})[0];this.audioPlaylistLoader_?(t="The audio track '"+e.label+"' that we tried to "+("switch to "+t+" Unfortunately this means we will have to ")+("return you to the main track '"+u.label+"'. Sorry!"),u.enabled=!0,this.activeAudioGroup().splice(i,1),this.trigger("audioupdate")):(t="The rendition that we tried to switch to "+t+"Unfortunately that means we will have to blacklist the current playlist and switch to another. Sorry!",this.blacklistCurrentPlaylist());r["default"].log.warn(t);this.setupAudio()}},{key:"mediaRequests_",value:function(){return this.audioSegmentLoader_.mediaRequests+this.mainSegmentLoader_.mediaRequests}},{key:"mediaTransferDuration_",value:function(){return this.audioSegmentLoader_.mediaTransferDuration+this.mainSegmentLoader_.mediaTransferDuration}},{key:"mediaBytesTransferred_",value:function(){return this.audioSegmentLoader_.mediaBytesTransferred+this.mainSegmentLoader_.mediaBytesTransferred}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"fillAudioTracks_",value:function(){var e=this.master(),n=e.mediaGroups||{},t,i,u,f;n&&n.AUDIO&&Object.keys(n.AUDIO).length!==0&&this.mode_==="html5"||(n.AUDIO={main:{"default":{"default":!0}}});for(t in n.AUDIO){this.audioGroups_[t]||(this.audioGroups_[t]=[]);for(i in n.AUDIO[t])u=n.AUDIO[t][i],f=new r["default"].AudioTrack({id:i,kind:u["default"]?"main":"alternative",enabled:!1,language:u.language,label:i}),f.properties_=u,this.audioGroups_[t].push(f)}(this.activeAudioGroup().filter(function(n){return n.properties_["default"]})[0]||this.activeAudioGroup()[0]).enabled=!0}},{key:"load",value:function(){this.mainSegmentLoader_.load();this.audioPlaylistLoader_&&this.audioSegmentLoader_.load()}},{key:"activeAudioGroup",value:function(){var n=this.masterPlaylistLoader_.media(),t=undefined;return n.attributes&&n.attributes.AUDIO&&(t=this.audioGroups_[n.attributes.AUDIO]),t||this.audioGroups_.main}},{key:"setupAudio",value:function(){var n=this,i=this.activeAudioGroup(),t=i.filter(function(n){return n.enabled})[0];if(t||(t=i.filter(function(n){return n.properties_["default"]})[0]||i[0],t.enabled=!0),this.audioPlaylistLoader_&&(this.audioPlaylistLoader_.dispose(),this.audioPlaylistLoader_=null),this.audioSegmentLoader_.pause(),!t.properties_.resolvedUri){this.mainSegmentLoader_.resetEverything();return}this.audioSegmentLoader_.resetEverything();this.audioPlaylistLoader_=new h["default"](t.properties_.resolvedUri,this.hls_,this.withCredentials);this.audioPlaylistLoader_.start();this.audioPlaylistLoader_.on("loadedmetadata",function(){var t=n.audioPlaylistLoader_.media();n.audioSegmentLoader_.playlist(t,n.requestOptions_);(!n.tech_.paused()||t.endList&&n.tech_.preload()!=="none")&&n.audioSegmentLoader_.load();t.endList||n.audioPlaylistLoader_.trigger("firstplay")});this.audioPlaylistLoader_.on("loadedplaylist",function(){var t=undefined;if(n.audioPlaylistLoader_&&(t=n.audioPlaylistLoader_.media()),!t){n.audioPlaylistLoader_.media(n.audioPlaylistLoader_.playlists.master.playlists[0]);return}n.audioSegmentLoader_.playlist(t,n.requestOptions_)});this.audioPlaylistLoader_.on("error",function(){r["default"].log.warn("Problem encountered loading the alternate audio track. Switching back to default.");n.audioSegmentLoader_.abort();n.setupAudio()})}},{key:"fastQualityChange_",value:function(){var n=this.selectPlaylist();n!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(n),this.mainSegmentLoader_.resetLoader(),this.audiosegmentloader_&&this.audioSegmentLoader_.resetLoader())}},{key:"play",value:function(){if(!this.setupFirstPlay())return this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_()&&this.load(),this.tech_.duration()===Infinity&&this.tech_.currentTime()<this.tech_.seekable().start(0)?this.tech_.setCurrentTime(this.tech_.seekable().start(0)):void 0}},{key:"setupFirstPlay",value:function(){var n=undefined,t=this.masterPlaylistLoader_.media();return t&&!this.tech_.paused()&&!this.hasPlayed_()?(t.endList||(this.trigger("firstplay"),n=this.seekable(),n.length&&this.tech_.setCurrentTime(n.end(0))),this.hasPlayed_=function(){return!0},this.load(),!0):!1}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(n){return r["default"].log.warn("Failed to create Source Buffers",n),this.mediaSource.endOfStream("decode")}this.tech_.autoplay()&&this.tech_.play();this.trigger("sourceopen")}},{key:"blacklistCurrentPlaylist",value:function(){var n=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=undefined,i=undefined;return(t=n.playlist||this.masterPlaylistLoader_.media(),!t)?(this.error=n,this.mediaSource.endOfStream("network")):(t.excludeUntil=Date.now()+rt,i=this.selectPlaylist(),i)?(r["default"].log.warn("Problem encountered with the current HLS playlist. Switching to another playlist."),this.masterPlaylistLoader_.media(i)):(r["default"].log.warn("Problem encountered with the current HLS playlist. No suitable alternatives found."),this.error=n,this.mediaSource.endOfStream("network"))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause();this.audioPlaylistLoader_&&this.audioSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(n){var t=k["default"].findRange(this.tech_.buffered(),n);if(!(this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media())||!this.masterPlaylistLoader_.media().segments)return 0;if(t&&t.length)return n;this.mainSegmentLoader_.abort();this.mainSegmentLoader_.resetEverything();this.audioPlaylistLoader_&&(this.audioSegmentLoader_.abort(),this.audioSegmentLoader_.resetEverything());this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioPlaylistLoader_&&this.audioSegmentLoader_.load())}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:f.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var i=undefined,n=undefined,t=undefined;if(this.masterPlaylistLoader_&&(i=this.masterPlaylistLoader_.media(),i)&&(n=f.Playlist.seekable(i),n.length!==0)&&(!this.audioPlaylistLoader_||(t=f.Playlist.seekable(this.audioPlaylistLoader_.media()),t.length!==0))){if(!t){this.seekable_=n;return}this.seekable_=r["default"].createTimeRanges([[t.start(0)>n.start(0)?t.start(0):n.start(0),t.end(0)<n.end(0)?t.end(0):n.end(0)]])}}},{key:"updateDuration",value:function(){var t=this,u=this.mediaSource.duration,n=f.Playlist.duration(this.masterPlaylistLoader_.media()),i=this.tech_.buffered(),r=function r(){t.mediaSource.duration=n;t.tech_.trigger("durationchange");t.mediaSource.removeEventListener("sourceopen",r)};i.length>0&&(n=Math.max(n,i.end(i.length-1)));u!==n&&(this.mediaSource.readyState!=="open"?this.mediaSource.addEventListener("sourceopen",r):r())}},{key:"dispose",value:function(){this.masterPlaylistLoader_.dispose();this.mainSegmentLoader_.dispose();this.audioPlaylistLoader_&&this.audioPlaylistLoader_.dispose();this.audioSegmentLoader_.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var t=this.masterPlaylistLoader_.media(),n=undefined;if(t&&this.mediaSource.readyState==="open"){if(n=l(this.masterPlaylistLoader_.master,t),n.length<1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+t.resolvedUri,this.mediaSource.endOfStream("decode");this.mainSegmentLoader_.mimeType(n[0]);n[1]&&this.audioSegmentLoader_.mimeType(n[1]);this.excludeIncompatibleVariants_(t)}}},{key:"excludeIncompatibleVariants_",value:function(n){var f=this.masterPlaylistLoader_.master,r=2,u=null,i=null,t=undefined;n.attributes&&n.attributes.CODECS&&(t=e(n.attributes.CODECS),u=t.videoCodec,i=t.audioProfile,r=t.codecCount);f.playlists.forEach(function(n){var t={codecCount:2,videoCodec:null,audioProfile:null},f;n.attributes&&n.attributes.CODECS&&(f=n.attributes.CODECS,t=e(f),window.MediaSource&&window.MediaSource.isTypeSupported&&!window.MediaSource.isTypeSupported('video/mp4; codecs="'+f+'"')&&(n.excludeUntil=Infinity));t.codecCount!==r&&(n.excludeUntil=Infinity);t.videoCodec!==u&&(n.excludeUntil=Infinity);(t.audioProfile==="5"&&i!=="5"||i==="5"&&t.audioProfile!=="5")&&(n.excludeUntil=Infinity)})}},{key:"updateAdCues_",value:function(n){var t=0,i=this.seekable();i.length&&(t=i.start(0));nt["default"].updateAdCues(n,this.cueTagsTrack_,t)}}]),t}(r["default"].EventTarget);i.MasterPlaylistController=a}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./ad-cue-tags":1,"./playlist-loader":6,"./ranges":8,"./segment-loader":12,"./sync-controller":15}],5:[function(n,t,i){(function(r){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var f;Object.defineProperty(i,"__esModule",{value:!0});f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var c=n("./ranges"),u=e(c),l=typeof window!="undefined"?window.videojs:typeof r!="undefined"?r.videojs:null,o=e(l),s=["seeking","seeked","pause","playing","error"],a=function(){function n(t){var i=this,r,u;h(this,n);this.tech_=t.tech;this.seekable=t.seekable;this.consecutiveUpdates=0;this.lastRecordedTime=null;this.timer_=null;this.checkCurrentTimeTimeout_=null;t.debug&&(this.logger_=o["default"].log.bind(o["default"],"playback-watcher ->"));this.logger_("initialize");r=function(){return i.waiting_()};u=function(){return i.cancelTimer_()};this.tech_.on("waiting",r);this.tech_.on(s,u);this.monitorCurrentTime_();this.dispose=function(){i.logger_("dispose");i.tech_.off("waiting",r);i.tech_.off(s,u);i.checkCurrentTimeTimeout_&&clearTimeout(i.checkCurrentTimeTimeout_);i.cancelTimer_()}}return f(n,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_();this.checkCurrentTimeTimeout_&&clearTimeout(this.checkCurrentTimeTimeout_);this.checkCurrentTimeTimeout_=setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var n=this.tech_.currentTime();this.consecutiveUpdates>=5&&n===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):n===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=n)}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0;this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_));this.timer_=null}},{key:"waiting_",value:function(){var i=this.seekable(),n=this.tech_.currentTime(),r,f,t,e;if(!this.tech_.seeking()&&this.timer_===null){if(this.fellOutOfLiveWindow_(i,n)){r=i.end(i.length-1);this.logger_("Fell out of live window at time "+n+". Seeking to "+("live point (seekable end) "+r));this.cancelTimer_();this.tech_.setCurrentTime(r);return}if(f=this.tech_.buffered(),t=u["default"].findNextRange(f,n),this.videoUnderflow_(t,f,n)){this.cancelTimer_();this.tech_.setCurrentTime(n);return}t.length>0&&(e=t.start(0)-n,this.logger_("Stopped at "+n+", setting timer for "+e+", seeking "+("to "+t.start(0))),this.timer_=setTimeout(this.skipTheGap_.bind(this),e*1e3,n))}}},{key:"fellOutOfLiveWindow_",value:function(n,t){return n.length&&n.start(0)>0&&t<n.start(0)?!0:!1}},{key:"videoUnderflow_",value:function(n,t,i){if(n.length===0){var r=this.gapFromVideoUnderflow_(t,i);if(r)return this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". "+("Seeking to current time "+i)),!0}return!1}},{key:"skipTheGap_",value:function(n){var r=this.tech_.buffered(),t=this.tech_.currentTime(),i=u["default"].findNextRange(r,t);(this.cancelTimer_(),i.length!==0&&t===n)&&(this.logger_("skipTheGap_:","currentTime:",t,"scheduled currentTime:",n,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+u["default"].TIME_FUDGE_FACTOR))}},{key:"gapFromVideoUnderflow_",value:function(n,t){for(var f=u["default"].findGaps(n),r,e,i=0;i<f.length;i++)if(r=f.start(i),e=f.end(i),t-r<4&&t-r>2)return{start:r,end:e};return null}},{key:"logger_",value:function(){}}]),n}();i["default"]=a;t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./ranges":8}],6:[function(n,t,i){(function(r){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var c=n("./resolve-url"),u=e(c),o=typeof window!="undefined"?window.videojs:typeof r!="undefined"?r.videojs:null,l=n("./stream"),a=e(l),v=n("m3u8-parser"),h=e(v),y=n("global/window"),f=e(y),p=function(n,t,i){var u=t.slice(),f=undefined,r=undefined;for(i=i||0,f=Math.min(n.length,t.length+i),r=i;r<f;r++)u[r-i]=o.mergeOptions(n[r],u[r-i]);return u},w=function(n,t){for(var h=!1,f=o.mergeOptions(n,{}),e=n.playlists.length,i=undefined,r=undefined,s=undefined;e--;)if(i=f.playlists[e],i.uri===t.uri){if(i.segments&&t.segments&&i.segments.length===t.segments.length&&i.mediaSequence===t.mediaSequence)continue;for(f.playlists[e]=o.mergeOptions(i,t),f.playlists[t.uri]=f.playlists[e],i.segments&&(f.playlists[e].segments=p(i.segments,t.segments,t.mediaSequence-i.mediaSequence)),s=0,f.playlists[e].segments&&(s=f.playlists[e].segments.length);s--;)r=f.playlists[e].segments[s],r.resolvedUri||(r.resolvedUri=u["default"](i.resolvedUri,r.uri)),r.key&&!r.key.resolvedUri&&(r.key.resolvedUri=u["default"](i.resolvedUri,r.key.uri)),r.map&&!r.map.resolvedUri&&(r.map.resolvedUri=u["default"](i.resolvedUri,r.map.uri));h=!0}return h?f:null},s=function s(n,t,i){var v=this,r=this,a=undefined,o=undefined,e=undefined,l=undefined,c=undefined;if(s.prototype.constructor.call(this),this.hls_=t,!n)throw new Error("A non-empty playlist URL is required");l=function(n,t,i){r.setBandwidth(e||n);e=null;i&&(r.state=i);r.error={playlist:r.master.playlists[t],status:n.status,message:"HLS playlist request error at URL: "+t,responseText:n.responseText,code:n.status>=500?4:2};r.trigger("error")};c=function(n,t){var i=undefined,u=undefined,s=undefined;r.setBandwidth(e||n);e=null;r.state="HAVE_METADATA";i=new h["default"].Parser;i.push(n.responseText);i.end();i.manifest.uri=t;s=w(r.master,i.manifest);u=(i.manifest.targetDuration||10)*1e3;r.targetDuration=i.manifest.targetDuration;s?(r.master=s,r.media_=r.master.playlists[i.manifest.uri]):u/=2;r.media().endList||(f["default"].clearTimeout(o),o=f["default"].setTimeout(function(){r.trigger("mediaupdatetimeout")},u));r.trigger("loadedplaylist")};r.state="HAVE_NOTHING";a=this.dispose;r.dispose=function(){r.stopRequest();f["default"].clearTimeout(o);a.call(this)};r.stopRequest=function(){if(e){var n=e;e=null;n.onreadystatechange=null;n.abort()}};r.enabledPlaylists_=function(){return r.master.playlists.filter(function(n){return!n.excludeUntil||n.excludeUntil<=Date.now()}).length};r.isLowestEnabledRendition_=function(){var n=r.media(),t;return!n||!n.attributes?!1:(t=r.media().attributes.BANDWIDTH||0,!(r.master.playlists.filter(function(n){var r=typeof n.excludeUntil=="undefined"||n.excludeUntil<=Date.now(),i;return r?(i=0,n&&n.attributes&&(i=n.attributes.BANDWIDTH),i<=t):!1}).length>1))};r.media=function(n){var f=r.state,t=undefined;if(!n)return r.media_;if(r.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+r.state);if(typeof n=="string"){if(!r.master.playlists[n])throw new Error("Unknown playlist URI: "+n);n=r.master.playlists[n]}if(t=!r.media_||n.uri!==r.media_.uri,r.master.playlists[n.uri].endList){e&&(e.onreadystatechange=null,e.abort(),e=null);r.state="HAVE_METADATA";r.media_=n;t&&(r.trigger("mediachanging"),r.trigger("mediachange"));return}if(t){if(r.state="SWITCHING_MEDIA",e){if(u["default"](r.master.uri,n.uri)===e.url)return;e.onreadystatechange=null;e.abort();e=null}this.media_&&this.trigger("mediachanging");e=this.hls_.xhr({uri:u["default"](r.master.uri,n.uri),withCredentials:i},function(t,i){if(e){if(t)return l(e,n.uri,f);c(i,n.uri);f==="HAVE_MASTER"?r.trigger("loadedmetadata"):r.trigger("mediachange")}})}};r.setBandwidth=function(n){r.bandwidth=n.bandwidth};r.on("mediaupdatetimeout",function(){r.state==="HAVE_METADATA"&&(r.state="HAVE_CURRENT_METADATA",e=this.hls_.xhr({uri:u["default"](r.master.uri,r.media().uri),withCredentials:i},function(n){if(e){if(n)return l(e,r.media().uri);c(e,r.media().uri)}}))});r.on("firstplay",function(){var n=r.media();n&&(n.syncInfo={mediaSequence:n.mediaSequence,time:0})});r.pause=function(){r.stopRequest();f["default"].clearTimeout(o)};r.load=function(){r.started?r.media().endList?r.trigger("loadedplaylist"):r.trigger("mediaupdatetimeout"):r.start()};r.start=function(){r.started=!0;e=v.hls_.xhr({uri:n,withCredentials:i},function(t,i){var o=undefined,s=undefined,a=undefined,v,y,l;if(e){if(e=null,t)return r.error={status:i.status,message:"HLS playlist request error at URL: "+n,responseText:i.responseText,code:2},r.trigger("error");if(o=new h["default"].Parser,o.push(i.responseText),o.end(),r.state="HAVE_MASTER",o.manifest.uri=n,o.manifest.playlists){for(r.master=o.manifest,a=r.master.playlists.length;a--;)s=r.master.playlists[a],r.master.playlists[s.uri]=s,s.resolvedUri=u["default"](r.master.uri,s.uri);for(v in r.master.mediaGroups.AUDIO)for(y in r.master.mediaGroups.AUDIO[v])l=r.master.mediaGroups.AUDIO[v][y],l.uri&&(l.resolvedUri=u["default"](r.master.uri,l.uri));r.trigger("loadedplaylist");e||r.media(o.manifest.playlists[0]);return}return r.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:f["default"].location.href,playlists:[{uri:n}]},r.master.playlists[n]=r.master.playlists[0],r.master.playlists[0].resolvedUri=n,c(i,n),r.trigger("loadedmetadata")}})}};s.prototype=new a["default"];i["default"]=s;t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./resolve-url":11,"./stream":14,"global/window":27,"m3u8-parser":64}],7:[function(n,t,i){(function(t){"use strict";function a(n){return n&&n.__esModule?n:{"default":n}}var r;Object.defineProperty(i,"__esModule",{value:!0});var f=typeof window!="undefined"?window.videojs:typeof t!="undefined"?t.videojs:null,v=n("global/window"),y=a(v),u={UNSAFE_LIVE_SEGMENTS:3},p=function(n,t){var r=0,u=t-n.mediaSequence,i=n.segments[u];if(i){if(typeof i.start!="undefined")return{result:i.start,precise:!0};if(typeof i.end!="undefined")return{result:i.end-i.duration,precise:!0}}while(u--){if(i=n.segments[u],typeof i.end!="undefined")return{result:r+i.end,precise:!0};if(r+=i.duration,typeof i.start!="undefined")return{result:r+i.start,precise:!0}}return{result:r,precise:!1}},w=function(n,t){for(var r=0,i=undefined,u=t-n.mediaSequence;u<n.segments.length;u++){if(i=n.segments[u],typeof i.start!="undefined")return{result:i.start-r,precise:!0};if(r+=i.duration,typeof i.end!="undefined")return{result:i.end-r,precise:!0}}return{result:-1,precise:!1}},o=function(n,t,i){var r=undefined,u=undefined;return(typeof t=="undefined"&&(t=n.mediaSequence+n.segments.length),t<n.mediaSequence)?0:(r=p(n,t),r.precise)?r.result:(u=w(n,t),u.precise)?u.result:r.result+i},e=function(n,t,i){if(!n)return 0;if(typeof i!="number"&&(i=0),typeof t=="undefined"){if(n.totalDuration)return n.totalDuration;if(!n.endList)return y["default"].Infinity}return o(n,t,i)};i.duration=e;r=function(n,t,i){var u=0,f,r;if(t>i&&(f=[i,t],t=f[0],i=f[1]),t<0){for(r=t;r<Math.min(0,i);r++)u+=n.targetDuration;t=0}for(r=t;r<i;r++)u+=n.segments[r].duration;return u};i.sumDurations=r;var b=function(n){var u,i,t,f,r;if(!n||!n.segments)return[null,null];for(u=n.syncInfo||null,i=null,t=0,f=n.segments.length;t<f;t++)if(r=n.segments[t],typeof r.start!="undefined"){i={mediaSequence:n.mediaSequence+t,time:r.start};break}return{expiredSync:u,segmentSync:i}},k=function(n,t,i){var u;if(t&&i){var e=t.mediaSequence-n.mediaSequence,o=i.mediaSequence-n.mediaSequence,u=undefined,f=undefined;return Math.abs(e)>Math.abs(o)?(u=o,f=-i.time):(u=e,f=t.time),Math.abs(f+r(n,u,0))}return t?(u=t.mediaSequence-n.mediaSequence,t.time+r(n,u,0)):i?(u=i.mediaSequence-n.mediaSequence,i.time-r(n,u,0)):void 0},s=function(n){if(!n||!n.segments)return f.createTimeRange();if(n.endList)return f.createTimeRange(0,e(n));var t=b(n),i=t.expiredSync,r=t.segmentSync;if(!i&&!r)return f.createTimeRange();var s=k(n,i,r),h=s,c=Math.max(0,n.segments.length-u.UNSAFE_LIVE_SEGMENTS),l=o(n,n.mediaSequence+c,s);return f.createTimeRange(h,l)};i.seekable=s;var h=function(n){return n-Math.floor(n)==0},c=function(n,t){var r,i,u,f;if(h(t))return t+n*.1;for(r=t.toString().split(".")[1].length,i=1;i<=r;i++)if(u=Math.pow(10,i),f=t*u,h(f)||i===r)return(f+n)/u},d=c.bind(null,1),g=c.bind(null,-1),l=function(n,t,i,u){var f=undefined,o=undefined,s=n.segments.length,e=t-u;if(e<0){if(i>0)for(f=i-1;f>=0;f--)if(o=n.segments[f],e+=g(o.duration),e>0)return{mediaIndex:f,startTime:u-r(n,i,f)};return{mediaIndex:0,startTime:t}}if(i<0){for(f=i;f<0;f++)if(e-=n.targetDuration,e<0)return{mediaIndex:0,startTime:t};i=0}for(f=i;f<s;f++)if(o=n.segments[f],e-=d(o.duration),e<0)return{mediaIndex:f,startTime:u+r(n,i,f)};return{mediaIndex:s-1,startTime:t}};i.getMediaInfoForTime_=l;u.duration=e;u.seekable=s;u.getMediaInfoForTime_=l;i["default"]=u}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"global/window":27}],8:[function(n,t,i){(function(n){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}var f;Object.defineProperty(i,"__esModule",{value:!0});f=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}();var h=typeof window!="undefined"?window.videojs:typeof n!="undefined"?n.videojs:null,r=s(h),u=1/30,c=function(n,t){var i=f(t,2),r=i[0],u=i[1];return Math.min(Math.max(r,n),u)},e=function(n,t){var u=[],i=undefined;if(n&&n.length)for(i=0;i<n.length;i++)t(n.start(i),n.end(i))&&u.push([n.start(i),n.end(i)]);return r["default"].createTimeRanges(u)},l=function(n,t){return e(n,function(n,i){return n-u<=t&&i+u>=t})},a=function(n,t){return e(n,function(n){return n-u>=t})},v=function(n){var i,t,u,f;if(n.length<2)return r["default"].createTimeRanges();for(i=[],t=1;t<n.length;t++)u=n.end(t-1),f=n.start(t),i.push([u,f]);return r["default"].createTimeRanges(i)},y=function(n,t){var i=undefined,u=undefined,r=undefined,f=[],e=[],o=function(n){return n[0]<=r&&n[1]>=r};if(n)for(i=0;i<n.length;i++)u=n.start(i),r=n.end(i),e.push([u,r]);if(t)for(i=0;i<t.length;i++)(u=t.start(i),r=t.end(i),e.some(o))||f.push(r);return f.length!==1?null:f[0]},o=function(n,t){var f=null,e=null,o=0,u=[],s=[],i;if(!n||!n.length||!t||!t.length)return r["default"].createTimeRange();for(i=n.length;i--;)u.push({time:n.start(i),type:"start"}),u.push({time:n.end(i),type:"end"});for(i=t.length;i--;)u.push({time:t.start(i),type:"start"}),u.push({time:t.end(i),type:"end"});for(u.sort(function(n,t){return n.time-t.time}),i=0;i<u.length;i++)u[i].type==="start"?(o++,o===2&&(f=u[i].time)):u[i].type==="end"&&(o--,o===1&&(e=u[i].time)),f!==null&&e!==null&&(s.push([f,e]),f=null,e=null);return r["default"].createTimeRanges(s)},p=function(n,t,i,r){for(var h=t.end(0)-t.start(0),l=n.end(0)-n.start(0),a=h-l,f=o(n,r),e=o(t,r),s=0,c=0,u=f.length;u--;)s+=f.end(u)-f.start(u),f.start(u)===i&&(s+=a);for(u=e.length;u--;)c+=e.end(u)-e.start(u);return Math.max(s,c)/h*100},w=function(n,t,i,u){var e=n+t,s=r["default"].createTimeRanges([[n,e]]),o=r["default"].createTimeRanges([[c(n,[i,e]),e]]),f;return o.start(0)===o.end(0)?0:(f=p(o,s,i,u),isNaN(f)||f===Infinity||f===-Infinity)?0:f};i["default"]={findRange:l,findNextRange:a,findGaps:v,findSoleUncommonTimeRangesEnd:y,getSegmentBufferedPercent:w,TIME_FUDGE_FACTOR:u};t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],9:[function(n,t,i){(function(n){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var e=typeof window!="undefined"?window.videojs:typeof n!="undefined"?n.videojs:null,r=f(e),o={errorInterval:30,getSource:function(n){var t=this.tech({IWillNotUseThisInPlugins:!0}),i=t.currentSource_;return n(i)}},u=function u(n,t){var s=0,f=0,i=r["default"].mergeOptions(o,t),h=function(){f&&n.currentTime(f)},l=function(t){if(t!==null&&t!==undefined){f=n.duration()!==Infinity&&n.currentTime()||0;n.one("loadedmetadata",h);n.src(t);n.play()}},c=function(){if(!(Date.now()-s<i.errorInterval*1e3)){if(!i.getSource||typeof i.getSource!="function"){r["default"].log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return s=Date.now(),i.getSource.call(n,l)}},e=function e(){n.off("loadedmetadata",h);n.off("error",c);n.off("dispose",e)},a=function(t){e();u(n,t)};n.on("error",c);n.on("dispose",e);n.reloadSourceOnError=a},s=function(n){u(this,n)};i["default"]=s;t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],10:[function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(i,"__esModule",{value:!0});var f=function(n,t,i){var r=typeof n.excludeUntil=="undefined"||n.excludeUntil<=Date.now();return typeof i=="undefined"?r:(i!==r&&(i?delete n.excludeUntil:n.excludeUntil=Infinity,t()),i)},r=function r(n,t,i){var s,e,o;u(this,r);s=n.masterPlaylistController_.fastQualityChange_.bind(n.masterPlaylistController_);t.attributes&&(e=t.attributes,e.RESOLUTION&&(o=e.RESOLUTION,this.width=o.width,this.height=o.height),this.bandwidth=e.BANDWIDTH);this.id=i;this.enabled=f.bind(this,t,s)},e=function(n){var t=n.playlists;n.representations=function(){return t.master.playlists.map(function(t,i){return new r(n,t,i)})}};i["default"]=e;t.exports=i["default"]},{}],11:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var f=n("url-toolkit"),u=r(f),e=n("global/window"),o=r(e),s=function(n,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(n)||(n=u["default"].buildAbsoluteURL(o["default"].location.href,n)),u["default"].buildAbsoluteURL(n,t))};i["default"]=s;t.exports=i["default"]},{"global/window":27,"url-toolkit":90}],12:[function(n,t,i){(function(r){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function w(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var h,c;Object.defineProperty(i,"__esModule",{value:!0});h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();c=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var l=n("./playlist"),b=typeof window!="undefined"?window.videojs:typeof r!="undefined"?r.videojs:null,u=o(b),k=n("./source-updater"),d=o(k),g=n("aes-decrypter"),nt=n("./config"),tt=o(nt),it=n("global/window"),f=o(it),rt=500,a="console",e=function(){f["default"].logit&&f["default"][a].log.apply(f["default"][a],arguments)},v=function(n,t,i){if(!n)return!1;var r=n.segments,u=i===r.length;return n.endList&&t.readyState==="open"&&u},ut=function(n){var t=undefined,i=undefined;return i=n.offset+n.length-1,t=n.offset,"bytes="+t+"-"+i},y=function(n){var t={};return"byterange"in n&&(t.Range=ut(n.byterange)),t},s=function(n){var t=n.byterange||{length:Infinity,offset:0};return[t.length,t.offset,n.resolvedUri].join(",")},ft=function(n){function t(n){var r=this,i;if(p(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),i=undefined,!n)throw new TypeError("Initialization options are required");if(typeof n.currentTime!="function")throw new TypeError("No currentTime getter specified");if(!n.mediaSource)throw new TypeError("No MediaSource specified");i=u["default"].mergeOptions(u["default"].options.hls,n);this.state="INIT";this.bandwidth=i.bandwidth;this.throughput={rate:0,count:0};this.roundTrip=NaN;this.resetStats_();this.mediaIndex=null;this.hasPlayed_=i.hasPlayed;this.currentTime_=i.currentTime;this.seekable_=i.seekable;this.seeking_=i.seeking;this.setCurrentTime_=i.setCurrentTime;this.mediaSource_=i.mediaSource;this.hls_=i.hls;this.checkBufferTimeout_=null;this.error_=void 0;this.currentTimeline_=-1;this.xhr_=null;this.pendingSegment_=null;this.mimeType_=null;this.sourceUpdater_=null;this.xhrOptions_=null;this.activeInitSegmentId_=null;this.initSegments_={};this.syncController_=i.syncController;this.syncPoint_={segmentIndex:0,time:0};this.syncController_.on("syncinfoupdate",function(){return r.trigger("syncinfoupdate")});this.fetchAtBuffer_=!1}return w(t,n),h(t,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0;this.mediaRequests=0;this.mediaTransferDuration=0;this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.state="DISPOSED";this.abort_();this.sourceUpdater_&&this.sourceUpdater_.dispose();this.resetStats_()}},{key:"abort",value:function(){this.state==="WAITING"&&(this.abort_(),this.paused()||(this.state="READY",this.fillBuffer_()))}},{key:"error",value:function(n){return typeof n!="undefined"&&(this.error_=n),this.pendingSegment_=null,this.error_}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),this.state==="INIT"&&this.mimeType_)return this.init_();this.sourceUpdater_&&(this.state==="READY"||this.state==="INIT")&&(this.state="READY",this.fillBuffer_())}}},{key:"playlist",value:function(n){var u=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],t,i,r;if(n)return t=this.playlist_,i=this.pendingSegment_,this.mediaIndex!==null?t&&t.uri===n.uri?(r=n.mediaSequence-t.mediaSequence,this.mediaIndex-=r,i&&!i.isSyncRequest&&(i.mediaIndex-=r),this.syncController_.saveExpiredSegmentInfo(t,n)):this.resyncLoader():this.hasPlayed_()||(n.syncInfo={mediaSequence:n.mediaSequence,time:0},this.trigger("syncinfoupdate")),this.playlist_=n,this.xhrOptions_=u,this.mimeType_&&this.state==="INIT"&&!this.paused()?this.init_():void 0}},{key:"pause",value:function(){this.checkBufferTimeout_&&(f["default"].clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return this.checkBufferTimeout_===null}},{key:"mimeType",value:function(n){this.mimeType_||(this.mimeType_=n,this.playlist_&&this.state==="INIT"&&!this.paused()&&this.init_())}},{key:"monitorBuffer_",value:function(){this.state==="READY"&&this.fillBuffer_();this.checkBufferTimeout_&&f["default"].clearTimeout(this.checkBufferTimeout_);this.checkBufferTimeout_=f["default"].setTimeout(this.monitorBuffer_.bind(this),rt)}},{key:"getSyncSegmentCandidate_",value:function(n){var i=this,t;return this.currentTimeline_===-1?0:(t=n.segments.map(function(n,t){return{timeline:n.timeline,segmentIndex:t}}).filter(function(n){return n.timeline===i.currentTimeline_}),t.length)?t[Math.min(t.length-1,1)].segmentIndex:Math.max(n.segments.length-1,0)}},{key:"checkBuffer_",value:function(n,t,i,r,u,f){var h=0,s=undefined,c,a,o;return(n.length&&(h=n.end(n.length-1)),c=Math.max(0,h-u),!t.segments.length)?null:(e("cB_","mediaIndex:",i,"hasPlayed:",r,"currentTime:",u,"syncPoint:",f,"fetchAtBuffer:",this.fetchAtBuffer_),e("cB_ 2","bufferedTime:",c),c>=tt["default"].GOAL_BUFFER_LENGTH)?null:!r&&c>=1?null:f===null?(i=this.getSyncSegmentCandidate_(t),e("getSync",i),this.generateSegmentInfo_(t,i,null,!0)):i!==null?(e("++",i+1),a=t.segments[i],s=a&&a.end?a.end:h,this.generateSegmentInfo_(t,i+1,s,!1)):(this.fetchAtBuffer_?(o=l.getMediaInfoForTime_(t,h,f.segmentIndex,f.time),i=o.mediaIndex,s=o.startTime):(o=l.getMediaInfoForTime_(t,u,f.segmentIndex,f.time),i=o.mediaIndex,s=o.startTime),e("gMIFT",i,"sos",s),this.generateSegmentInfo_(t,i,s,!1))}},{key:"generateSegmentInfo_",value:function(n,t,i,r){if(t<0||t>=n.segments.length)return null;var u=n.segments[t];return{uri:u.resolvedUri,mediaIndex:t,isSyncRequest:r,startOfSegment:i,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:u.duration}}},{key:"abort_",value:function(){this.xhr_&&this.xhr_.abort();this.pendingSegment_=null}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new d["default"](this.mediaSource_,this.mimeType_),this.resetEverything(),this.fillBuffer_()}},{key:"fillBuffer_",value:function(){var n,t;if(!this.sourceUpdater_.updating()&&(this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.mediaSource_.duration,this.currentTimeline_)),n=this.checkBuffer_(this.sourceUpdater_.buffered(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_),n)){if(t=v(this.playlist_,this.mediaSource_,n.mediaIndex),t){this.mediaSource_.endOfStream();return}(n.mediaIndex!==this.playlist_.segments.length-1||this.mediaSource_.readyState!=="ended"||this.seeking_())&&((n.timeline!==this.currentTimeline_||n.startOfSegment!==null&&n.startOfSegment<this.sourceUpdater_.timestampOffset())&&(this.syncController_.reset(),n.timestampOffset=n.startOfSegment),this.currentTimeline_=n.timeline,this.loadSegment_(n))}}},{key:"trimBuffer_",value:function(){var n=this.seekable_(),t=this.currentTime_(),i=undefined;return n.length&&n.start(0)>0&&n.start(0)<t?n.start(0):t-60}},{key:"loadSegment_",value:function(n){var t=undefined,r=undefined,f=undefined,e=undefined,i=0,o,h,c;i=this.trimBuffer_(n);i>0&&this.sourceUpdater_.remove(0,i);t=n.playlist.segments[n.mediaIndex];t.key&&(o=u["default"].mergeOptions(this.xhrOptions_,{uri:t.key.resolvedUri,responseType:"arraybuffer"}),r=this.hls_.xhr(o,this.handleResponse_.bind(this)));t.map&&!this.initSegments_[s(t.map)]&&(h=u["default"].mergeOptions(this.xhrOptions_,{uri:t.map.resolvedUri,responseType:"arraybuffer",headers:y(t.map)}),f=this.hls_.xhr(h,this.handleResponse_.bind(this)));this.pendingSegment_=n;c=u["default"].mergeOptions(this.xhrOptions_,{uri:n.uri,responseType:"arraybuffer",headers:y(t)});e=this.hls_.xhr(c,this.handleResponse_.bind(this));this.xhr_={keyXhr:r,initSegmentXhr:f,segmentXhr:e,abort:function(){this.segmentXhr&&(this.segmentXhr.onreadystatechange=null,this.segmentXhr.abort(),this.segmentXhr=null);this.initSegmentXhr&&(this.initSegmentXhr.onreadystatechange=null,this.initSegmentXhr.abort(),this.initSegmentXhr=null);this.keyXhr&&(this.keyXhr.onreadystatechange=null,this.keyXhr.abort(),this.keyXhr=null)}};this.state="WAITING"}},{key:"handleResponse_",value:function(n,t){var r=undefined,i=undefined,u=undefined;if(this.xhr_&&(t===this.xhr_.segmentXhr||t===this.xhr_.keyXhr||t===this.xhr_.initSegmentXhr)){if(r=this.pendingSegment_,i=r.playlist.segments[r.mediaIndex],t.timedout)return this.abort_(),this.bandwidth=1,this.roundTrip=NaN,this.state="READY",this.trigger("progress");if(!t.aborted&&n)return u=this.xhr_.keyXhr,this.abort_(),this.error({status:t.status,message:t===u?"HLS key request error at URL: "+i.key.uri:"HLS segment request error at URL: "+r.uri,code:2,xhr:t}),this.state="READY",this.pause(),this.trigger("error");if(!t.response){this.abort_();return}if(t===this.xhr_.segmentXhr&&(this.xhr_.segmentXhr=null,r.startOfAppend=Date.now(),this.roundTrip=t.roundTripTime,this.bandwidth=t.bandwidth,this.mediaBytesTransferred+=t.bytesReceived||0,this.mediaRequests+=1,this.mediaTransferDuration+=t.roundTripTime||0,i.key?r.encryptedBytes=new Uint8Array(t.response):r.bytes=new Uint8Array(t.response)),t===this.xhr_.keyXhr){if(u=this.xhr_.segmentXhr,this.xhr_.keyXhr=null,t.response.byteLength!==16)return this.abort_(),this.error({status:t.status,message:"Invalid HLS key at URL: "+i.key.uri,code:2,xhr:t}),this.state="READY",this.pause(),this.trigger("error");i.key.bytes=new Uint8Array(t.response);i.key.iv=i.key.iv||new Uint32Array([0,0,0,r.mediaIndex+r.playlist.mediaSequence])}t===this.xhr_.initSegmentXhr&&(this.xhr_.initSegmentXhr=null,i.map.bytes=new Uint8Array(t.response),this.initSegments_[s(i.map)]=i.map);this.xhr_.segmentXhr||this.xhr_.keyXhr||this.xhr_.initSegmentXhr||(this.xhr_=null,this.processResponse_())}}},{key:"resetEverything",value:function(){this.resetLoader();this.remove(0,Infinity)}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1;this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null;this.syncPoint_=null}},{key:"remove",value:function(n,t){this.sourceUpdater_&&this.sourceUpdater_.remove(n,t)}},{key:"processResponse_",value:function(){var n=undefined,t=undefined;this.state="DECRYPTING";n=this.pendingSegment_;t=n.playlist.segments[n.mediaIndex];t.key?g.decrypt(n.encryptedBytes,t.key.bytes,t.key.iv,function(t,i){n.bytes=i;this.handleSegment_()}.bind(this)):this.handleSegment_()}},{key:"handleSegment_",value:function(){var i=this,n,t;if(this.state="APPENDING",n=this.pendingSegment_,t=n.playlist.segments[n.mediaIndex],this.syncController_.probeSegmentInfo(n),n.isSyncRequest){this.pendingSegment_=null;this.state="READY";return}n.timestampOffset!==null&&n.timestampOffset!==this.sourceUpdater_.timestampOffset()&&this.sourceUpdater_.timestampOffset(n.timestampOffset);t.map&&function(){var n=s(t.map),r;i.activeInitSegmentId_&&i.activeInitSegmentId_===n||(r=i.initSegments_[n],i.sourceUpdater_.appendBuffer(r.bytes,function(){i.activeInitSegmentId_=n}))}();n.byteLength=n.bytes.byteLength;this.mediaSecondsLoaded+=typeof t.start=="number"&&typeof t.end=="number"?t.end-t.start:t.duration;this.sourceUpdater_.appendBuffer(n.bytes,this.handleUpdateEnd_.bind(this))}},{key:"handleUpdateEnd_",value:function(){var n=this.pendingSegment_,t,i;this.pendingSegment_=null;this.recordThroughput_(n);e("handleUpdateEnd_");n.isSyncRequest||(this.mediaIndex=n.mediaIndex,this.fetchAtBuffer_=!0);this.pendingSegment_=null;t=n.mediaIndex;t+=n.playlist.mediaSequence-this.playlist_.mediaSequence;i=v(n.playlist,this.mediaSource_,t+1);i&&this.mediaSource_.endOfStream();this.state="READY";this.trigger("progress");this.paused()||this.fillBuffer_()}},{key:"recordThroughput_",value:function(n){var t=this.throughput.rate,i=Date.now()-n.startOfAppend+1,r=Math.floor(n.byteLength/i*8e3);this.throughput.rate+=(r-t)/++this.throughput.count}}]),t}(u["default"].EventTarget);i["default"]=ft;t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./config":3,"./playlist":7,"./source-updater":13,"aes-decrypter":20,"global/window":27}],13:[function(n,t,i){(function(n){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var r;Object.defineProperty(i,"__esModule",{value:!0});r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var e=typeof window!="undefined"?window.videojs:typeof n!="undefined"?n.videojs:null,o=u(e),s=function(){function n(t,i){var r=this,u;f(this,n);u=function(){r.sourceBuffer_=t.addSourceBuffer(i);r.onUpdateendCallback_=function(){var n=r.pendingCallback_;r.pendingCallback_=null;n&&n();r.runCallback_()};r.sourceBuffer_.addEventListener("updateend",r.onUpdateendCallback_);r.runCallback_()};this.callbacks_=[];this.pendingCallback_=null;this.timestampOffset_=0;this.mediaSource=t;t.readyState==="closed"?t.addEventListener("sourceopen",u):u()}return r(n,[{key:"abort",value:function(n){var t=this;this.queueCallback_(function(){t.sourceBuffer_.abort()},n)}},{key:"appendBuffer",value:function(n,t){var i=this;this.queueCallback_(function(){i.sourceBuffer_.appendBuffer(n)},t)}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:o["default"].createTimeRanges()}},{key:"duration",value:function(n){var t=this;this.queueCallback_(function(){t.sourceBuffer_.duration=n})}},{key:"remove",value:function(n,t){var i=this;this.queueCallback_(function(){i.sourceBuffer_.remove(n,t)})}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating}},{key:"timestampOffset",value:function(n){var t=this;return typeof n!="undefined"&&(this.queueCallback_(function(){t.sourceBuffer_.timestampOffset=n}),this.timestampOffset_=n),this.timestampOffset_}},{key:"queueCallback_",value:function(n,t){this.callbacks_.push([n.bind(this),t]);this.runCallback_()}},{key:"runCallback_",value:function(){var n=undefined;this.sourceBuffer_&&!this.sourceBuffer_.updating&&this.callbacks_.length&&(n=this.callbacks_.shift(),this.pendingCallback_=n[1],n[0]())}},{key:"dispose",value:function(){this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_);this.sourceBuffer_&&this.mediaSource.readyState==="open"&&this.sourceBuffer_.abort()}}]),n}();i["default"]=s;t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],14:[function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();u=function(){function n(){f(this,n);this.listeners={}}return r(n,[{key:"on",value:function(n,t){this.listeners[n]||(this.listeners[n]=[]);this.listeners[n].push(t)}},{key:"off",value:function(n,t){var i=undefined;return this.listeners[n]?(i=this.listeners[n].indexOf(t),this.listeners[n].splice(i,1),i>-1):!1}},{key:"trigger",value:function(n){var i=undefined,t=undefined,r=undefined,u=undefined;if(i=this.listeners[n],i)if(arguments.length===2)for(r=i.length,t=0;t<r;++t)i[t].call(this,arguments[1]);else for(u=Array.prototype.slice.call(arguments,1),r=i.length,t=0;t<r;++t)i[t].apply(this,u)}},{key:"dispose",value:function(){this.listeners={}}},{key:"pipe",value:function(n){this.on("data",function(t){n.push(t)})}}]),n}();i["default"]=u;t.exports=i["default"]},{}],15:[function(n,t,i){(function(t){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,e,c;Object.defineProperty(i,"__esModule",{value:!0});f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();e=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var v=n("mux.js/lib/mp4/probe"),s=o(v),y=n("mux.js/lib/tools/ts-inspector.js"),p=n("./playlist"),w=typeof window!="undefined"?window.videojs:typeof t!="undefined"?t.videojs:null,b=o(w),h="console",r=function(){window.logit&&window[h].log.apply(window[h],arguments)},u=[{name:"VOD",run:function(n,t,i){return i!==Infinity?{time:0,segmentIndex:0}:null}},{name:"ProgramDateTime",run:function(n,t){if(n.datetimeToDisplayTime&&t.dateTimeObject){var i=t.dateTimeObject.getTime()/1e3,r=i+n.datetimeToDisplayTime;return{time:r,segmentIndex:0}}return null}},{name:"Segment",run:function(n,t,i,r){for(var e=t.segments,f,u=e.length-1;u>=0;u--)if(f=e[u],f.timeline===r&&typeof f.start!="undefined")return{time:f.start,segmentIndex:u};return null}},{name:"Discontinuity",run:function(n,t){var i,u,r;if(t.discontinuityStarts.length)for(i=0;i<t.discontinuityStarts.length;i++)if(u=t.discontinuityStarts[i],r=t.discontinuitySequence+i+1,n.discontinuities[r])return{time:n.discontinuities[r].time,segmentIndex:u};return null}},{name:"Playlist",run:function(n,t){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence}:null}}];i.syncPointStrategies=u;c=function(n){function t(){l(this,t);e(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);this.inspectCache_=undefined;this.timelines=[];this.discontinuities=[];this.datetimeToDisplayTime=null}return a(t,n),f(t,[{key:"getSyncPoint",value:function(n,t,i){for(var o,e,f=0;f<u.length;f++)if(o=u[f],e=o.run(this,n,t,i),e)return r("syncPoint found via <"+o.name+">:",e),e;return null}},{key:"saveExpiredSegmentInfo",value:function(n,t){for(var f=t.mediaSequence-n.mediaSequence,u,i=f-1;i>=0;i--)if(u=n.segments[i],typeof u.start!="undefined"){t.syncInfo={mediaSequence:n.mediaSequence+i,time:u.start};r("playlist sync:",t.syncInfo);this.trigger("syncinfoupdate");break}}},{key:"setDateTimeMapping",value:function(n){if(!this.datetimeToDisplayTime&&n.dateTimeObject){var t=n.dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-t}}},{key:"reset",value:function(){this.inspectCache_=undefined}},{key:"probeSegmentInfo",value:function(n){var i=n.playlist.segments[n.mediaIndex],t=undefined;t=i.map?this.probeMp4Segment_(n):this.probeTsSegment_(n);t&&this.calculateSegmentTimeMapping_(n,t)&&this.saveDiscontinuitySyncInfo_(n)}},{key:"probeMp4Segment_",value:function(n){var i=n.playlist.segments[n.mediaIndex],r=s["default"].timescale(i.map.bytes),t=s["default"].startTime(r,n.bytes);return n.timestampOffset!==null&&(n.timestampOffset-=t),{start:t,end:t+i.duration}}},{key:"probeTsSegment_",value:function(n){var t=y.inspect(n.bytes,this.inspectCache_),i=undefined,r=undefined;return t?(t.video&&t.video.length===2?(this.inspectCache_=t.video[1].dts,i=t.video[0].dtsTime,r=t.video[1].dtsTime):t.audio&&t.audio.length===2&&(this.inspectCache_=t.audio[1].dts,i=t.audio[0].dtsTime,r=t.audio[1].dtsTime),{start:i,end:r}):null}},{key:"calculateSegmentTimeMapping_",value:function(n,t){var u=n.playlist.segments[n.mediaIndex],i=this.timelines[n.timeline];if(n.timestampOffset!==null)r("tsO:",n.timestampOffset),i={time:n.timestampOffset,mapping:n.timestampOffset-t.start},this.timelines[n.timeline]=i,u.start=n.timestampOffset,u.end=t.end+i.mapping;else if(i)u.start=t.start+i.mapping,u.end=t.end+i.mapping;else return!1;return this.trigger("syncinfoupdate"),!0}},{key:"saveDiscontinuitySyncInfo_",value:function(n){var t=n.playlist,r=t.segments[n.mediaIndex],i;if(r.discontinuity)this.discontinuities[r.timeline]={time:r.start,accuracy:0};else if(t.discontinuityStarts.length)for(i=0;i<t.discontinuityStarts.length;i++){var e=t.discontinuityStarts[i],u=t.discontinuitySequence+i+1,f=e-n.mediaIndex;f>0&&(!this.discontinuities[u]||this.discontinuities[u].accuracy>f)&&(this.discontinuities[u]={time:r.end+p.sumDurations(t,n.mediaIndex+1,e),accuracy:f})}}}]),t}(b["default"].EventTarget);i["default"]=c}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./playlist":7,"mux.js/lib/mp4/probe":85,"mux.js/lib/tools/ts-inspector.js":87}],16:[function(n,t,i){(function(n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=typeof window!="undefined"?window.videojs:typeof n!="undefined"?n.videojs:null,u=function(){return function n(t,i){var f,u;return t=r.mergeOptions({timeout:45e3},t),n.beforeRequest&&typeof n.beforeRequest=="function"&&(f=n.beforeRequest(t),f&&(t=f)),u=r.xhr(t,function(n,t){!n&&u.response&&(u.responseTime=Date.now(),u.roundTripTime=u.responseTime-u.requestTime,u.bytesReceived=u.response.byteLength||u.response.length,u.bandwidth||(u.bandwidth=Math.floor(u.bytesReceived/u.roundTripTime*8e3)));u.timedout=n||u.timedout?u.timedout||n.code==="ETIMEDOUT":!1;n||t.statusCode===200||t.statusCode===206||t.statusCode===0||(n=new Error("XHR Failed with a response of: "+(u&&(u.response||u.responseText))));i(n,u)}),u.requestTime=Date.now(),u}};i["default"]=u;t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],17:[function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u;Object.defineProperty(i,"__esModule",{value:!0});u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var e=function(){for(var h=[[[],[],[],[],[]],[[],[],[],[],[]]],f=h[0],e=h[1],l=f[4],p=e[4],n=undefined,i=undefined,r=undefined,u=[],a=[],c=undefined,v=undefined,y=undefined,t=undefined,o=undefined,s=undefined,n=0;n<256;n++)a[(u[n]=n<<1^(n>>7)*283)^n]=n;for(i=r=0;!l[i];i^=c||1,r=a[r]||1)for(t=r^r<<1^r<<2^r<<3^r<<4,t=t>>8^t&255^99,l[i]=t,p[t]=i,y=u[v=u[c=u[i]]],s=y*16843009^v*65537^c*257^i*16843008,o=u[t]*257^t*16843008,n=0;n<4;n++)f[n][i]=o=o<<24^o>>>8,e[n][t]=s=s<<24^s>>>8;for(n=0;n<5;n++)f[n]=f[n].slice(0),e[n]=e[n].slice(0);return h},r=null,o=function(){function n(t){f(this,n);r||(r=e());this._tables=[[r[0][0].slice(),r[0][1].slice(),r[0][2].slice(),r[0][3].slice(),r[0][4].slice()],[r[1][0].slice(),r[1][1].slice(),r[1][2].slice(),r[1][3].slice(),r[1][4].slice()]];var u=undefined,c=undefined,i=undefined,h=undefined,v=undefined,s=this._tables[0][4],l=this._tables[1],o=t.length,a=1;if(o!==4&&o!==6&&o!==8)throw new Error("Invalid aes key size");for(h=t.slice(0),v=[],this._key=[h,v],u=o;u<4*o+28;u++)i=h[u-1],(u%o==0||o===8&&u%o==4)&&(i=s[i>>>24]<<24^s[i>>16&255]<<16^s[i>>8&255]<<8^s[i&255],u%o==0&&(i=i<<8^i>>>24^a<<24,a=a<<1^(a>>7)*283)),h[u]=h[u-o]^i;for(c=0;u;c++,u--)i=h[c&3?u:u-4],v[c]=u<=4||c<4?i:l[0][s[i>>>24]]^l[1][s[i>>16&255]]^l[2][s[i>>8&255]]^l[3][s[i&255]]}return u(n,[{key:"decrypt",value:function(n,t,i,r,u,f){for(var e=this._key[1],o=n^e[0],s=r^e[1],h=i^e[2],c=t^e[3],y=undefined,g=undefined,nt=undefined,tt=e.length/4-2,l=undefined,a=4,v=this._tables[1],p=v[0],w=v[1],b=v[2],k=v[3],d=v[4],l=0;l<tt;l++)y=p[o>>>24]^w[s>>16&255]^b[h>>8&255]^k[c&255]^e[a],g=p[s>>>24]^w[h>>16&255]^b[c>>8&255]^k[o&255]^e[a+1],nt=p[h>>>24]^w[c>>16&255]^b[o>>8&255]^k[s&255]^e[a+2],c=p[c>>>24]^w[o>>16&255]^b[s>>8&255]^k[h&255]^e[a+3],a+=4,o=y,s=g,h=nt;for(l=0;l<4;l++)u[(3&-l)+f]=d[o>>>24]<<24^d[s>>16&255]<<16^d[h>>8&255]<<8^d[c&255]^e[a++],y=o,o=s,s=h,h=c,c=y}}]),n}();i["default"]=o;t.exports=i["default"]},{}],18:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();u=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var h=n("./stream"),f=e(h),c=function(n){function t(){o(this,t);u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,f["default"]);this.jobs=[];this.delay=1;this.timeout_=null}return s(t,n),r(t,[{key:"processJob_",value:function(){this.jobs.shift()();this.timeout_=this.jobs.length?setTimeout(this.processJob_.bind(this),this.delay):null}},{key:"push",value:function(n){this.jobs.push(n);this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}]),t}(f["default"]);i["default"]=c;t.exports=i["default"]},{"./stream":21}],19:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var f;Object.defineProperty(i,"__esModule",{value:!0});f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var l=n("global/window"),e=u(l),a=n("./aes"),v=u(a),y=n("./async-stream"),p=u(y),w=n("pkcs7"),r=function(n){return n<<24|(n&65280)<<8|(n&16711680)>>8|n>>>24},b=function(n,t,i){var e=new Int32Array(n.buffer,n.byteOffset,n.byteLength>>2),b=new v["default"](Array.prototype.slice.call(t)),w=new Uint8Array(n.byteLength),f=new Int32Array(w.buffer),o=undefined,s=undefined,h=undefined,c=undefined,l=undefined,a=undefined,y=undefined,p=undefined,u=undefined;for(o=i[0],s=i[1],h=i[2],c=i[3],u=0;u<e.length;u+=4)l=r(e[u]),a=r(e[u+1]),y=r(e[u+2]),p=r(e[u+3]),b.decrypt(l,a,y,p,f,u),f[u]=r(f[u]^o),f[u+1]=r(f[u+1]^s),f[u+2]=r(f[u+2]^h),f[u+3]=r(f[u+3]^c),o=l,s=a,h=y,c=p;return w},o=function(){function n(t,i,u,f){c(this,n);var s=new DataView(i.buffer),a=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]),h=n.STEP,o=new Int32Array(t.buffer),l=new Uint8Array(t.byteLength),e=0;for(this.asyncStream_=new p["default"],this.asyncStream_.push(this.decryptChunk_(o.subarray(e,e+h),a,u,l)),e=h;e<o.length;e+=h)u=new Uint32Array([r(o[e-4]),r(o[e-3]),r(o[e-2]),r(o[e-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(e,e+h),a,u,l));this.asyncStream_.push(function(){f(null,w.unpad(l))})}return f(n,[{key:"decryptChunk_",value:function(n,t,i,r){return function(){var u=b(n,t,i);r.set(u,n.byteOffset)}}}],[{key:"STEP",get:function(){return 32e3}}]),n}();i.Decrypter=o;var s=function(){if(e["default"].msCrypto)return null;var n=e["default"].crypto;return n?(n.webkitSubtle&&(n.subtle=n.webkitSubtle),n.subtle?n:null):null},k=function(n,t,i,r){var u=s(),f={name:"AES-CBC",iv:i},e=u.subtle.importKey("raw",t,f,!0,["decrypt"]);return e.then(function(t){return u.subtle.decrypt(f,t,n)})["catch"](function(){return r(null,new Uint8Array)}).then(function(n){return r(null,new Uint8Array(n))})},d=function(n,t,i,r){return new o(n,t,i,r)},h=function(n,t,i,r){var u=s()?k:d;return u(n,t,i,r)};i.decrypt=h;i["default"]=h},{"./aes":17,"./async-stream":18,"global/window":27,pkcs7:23}],20:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var r=n("./decrypter"),f=n("./async-stream"),e=u(f);i["default"]={decrypt:r.decrypt,Decrypter:r.Decrypter,AsyncStream:e["default"]};t.exports=i["default"]},{"./async-stream":18,"./decrypter":19}],21:[function(n,t,i){arguments[4][14][0].apply(i,arguments)},{dup:14}],22:[function(n,t){"use strict";var i;t.exports=function(n){var r=i[n.byteLength%16||0],t=new Uint8Array(n.byteLength+r.length);return t.set(n),t.set(r,n.byteLength),t};i=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]]},{}],23:[function(n,t,i){"use strict";i.pad=n("./pad.js");i.unpad=n("./unpad.js")},{"./pad.js":22,"./unpad.js":24}],24:[function(n,t){"use strict";t.exports=function(n){return n.subarray(0,n.byteLength-n[n.byteLength-1])}},{}],25:[function(){},{}],26:[function(n,t){(function(i){var u=typeof i!="undefined"?i:typeof window!="undefined"?window:{},f=n("min-document"),r;typeof document!="undefined"?t.exports=document:(r=u["__GLOBAL_DOCUMENT_CACHE@4"],r||(r=u["__GLOBAL_DOCUMENT_CACHE@4"]=f),t.exports=r)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"min-document":25}],27:[function(n,t){(function(n){t.exports=typeof window!="undefined"?window:typeof n!="undefined"?n:typeof self!="undefined"?self:{}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],28:[function(n,t){function u(n,t){if(typeof n!="function")throw new TypeError(r);return t=i(t===undefined?n.length-1:+t||0,0),function(){for(var u=arguments,r=-1,o=i(u.length-t,0),f=Array(o),e;++r<o;)f[r]=u[t+r];switch(t){case 0:return n.call(this,f);case 1:return n.call(this,u[0],f);case 2:return n.call(this,u[0],u[1],f)}for(e=Array(t+1),r=-1;++r<t;)e[r]=u[r];return e[t]=f,n.apply(this,e)}}var r="Expected a function",i=Math.max;t.exports=u},{}],29:[function(n,t){function i(n,t){var i=-1,r=n.length;for(t||(t=Array(r));++i<r;)t[i]=n[i];return t}t.exports=i},{}],30:[function(n,t){function i(n,t){for(var i=-1,r=n.length;++i<r;)if(t(n[i],i,n)===!1)break;return n}t.exports=i},{}],31:[function(n,t){function i(n,t,i){var r,f,u;for(i||(i={}),r=-1,f=t.length;++r<f;)u=t[r],i[u]=n[u];return i}t.exports=i},{}],32:[function(n,t){var i=n("./createBaseFor"),r=i();t.exports=r},{"./createBaseFor":39}],33:[function(n,t){function u(n,t){return i(n,t,r)}var i=n("./baseFor"),r=n("../object/keysIn");t.exports=u},{"../object/keysIn":60,"./baseFor":32}],34:[function(n,t){function i(n,t,l,a,v){if(!o(n))return n;var y=e(t)&&(f(t)||h(t)),p=y?undefined:c(t);return r(p||t,function(r,f){if(p&&(f=r,r=t[f]),s(r))a||(a=[]),v||(v=[]),u(n,t,f,i,l,a,v);else{var o=n[f],e=l?l(o,r,f,n,t):undefined,h=e===undefined;h&&(e=r);e===undefined&&(!y||f in n)||!h&&(e===e?e===o:o!==o)||(n[f]=e)}}),n}var r=n("./arrayEach"),u=n("./baseMergeDeep"),f=n("../lang/isArray"),e=n("./isArrayLike"),o=n("../lang/isObject"),s=n("./isObjectLike"),h=n("../lang/isTypedArray"),c=n("../object/keys");t.exports=i},{"../lang/isArray":51,"../lang/isObject":54,"../lang/isTypedArray":57,"../object/keys":59,"./arrayEach":30,"./baseMergeDeep":35,"./isArrayLike":42,"./isObjectLike":47}],35:[function(n,t){function h(n,t,h,c,l,a,v){for(var b=a.length,p=t[h];b--;)if(a[b]==p){n[h]=v[b];return}var y=n[h],w=l?l(y,p,h,n,t):undefined,k=w===undefined;k&&(w=p,u(p)&&(r(p)||o(p))?w=r(y)?y:u(y)?e(y):[]:f(p)||i(p)?w=i(y)?s(y):f(y)?y:{}:k=!1);a.push(p);v.push(w);k?n[h]=c(w,p,l,a,v):(w===w?w!==y:y===y)&&(n[h]=w)}var e=n("./arrayCopy"),i=n("../lang/isArguments"),r=n("../lang/isArray"),u=n("./isArrayLike"),f=n("../lang/isPlainObject"),o=n("../lang/isTypedArray"),s=n("../lang/toPlainObject");t.exports=h},{"../lang/isArguments":50,"../lang/isArray":51,"../lang/isPlainObject":55,"../lang/isTypedArray":57,"../lang/toPlainObject":58,"./arrayCopy":29,"./isArrayLike":42}],36:[function(n,t){function r(n){return function(t){return t==null?undefined:i(t)[n]}}var i=n("./toObject");t.exports=r},{"./toObject":49}],37:[function(n,t){function r(n,t,r){if(typeof n!="function")return i;if(t===undefined)return n;switch(r){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)};case 5:return function(i,r,u,f,e){return n.call(t,i,r,u,f,e)}}return function(){return n.apply(t,arguments)}}var i=n("../utility/identity");t.exports=r},{"../utility/identity":63}],38:[function(n,t){function f(n){return u(function(t,u){var h=-1,f=t==null?0:u.length,e=f>2?u[f-2]:undefined,c=f>2?u[2]:undefined,o=f>1?u[f-1]:undefined,s;for(typeof e=="function"?(e=i(e,o,5),f-=2):(e=typeof o=="function"?o:undefined,f-=e?1:0),c&&r(u[0],u[1],c)&&(e=f<3?undefined:e,f=1);++h<f;)s=u[h],s&&n(t,s,e);return t})}var i=n("./bindCallback"),r=n("./isIterateeCall"),u=n("../function/restParam");t.exports=f},{"../function/restParam":28,"./bindCallback":37,"./isIterateeCall":45}],39:[function(n,t){function r(n){return function(t,r,u){for(var o=i(t),s=u(t),h=s.length,f=n?h:-1,e;n?f--:++f<h;)if(e=s[f],r(o[e],e,o)===!1)break;return t}}var i=n("./toObject");t.exports=r},{"./toObject":49}],40:[function(n,t){var i=n("./baseProperty"),r=i("length");t.exports=r},{"./baseProperty":36}],41:[function(n,t){function r(n,t){var r=n==null?undefined:n[t];return i(r)?r:undefined}var i=n("../lang/isNative");t.exports=r},{"../lang/isNative":53}],42:[function(n,t){function u(n){return n!=null&&r(i(n))}var i=n("./getLength"),r=n("./isLength");t.exports=u},{"./getLength":40,"./isLength":46}],43:[function(n,t){var i=function(){try{Object({toString:0}+"")}catch(n){return function(){return!1}}return function(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}}();t.exports=i},{}],44:[function(n,t){function u(n,t){return n=typeof n=="number"||i.test(n)?+n:-1,t=t==null?r:t,n>-1&&n%1==0&&n<t}var i=/^\d+$/,r=9007199254740991;t.exports=u},{}],45:[function(n,t){function f(n,t,f){var o,e;return u(f)?(o=typeof t,o=="number"?i(f)&&r(t,f.length):o=="string"&&t in f)?(e=f[t],n===n?n===e:e!==e):!1:!1}var i=n("./isArrayLike"),r=n("./isIndex"),u=n("../lang/isObject");t.exports=f},{"../lang/isObject":54,"./isArrayLike":42,"./isIndex":44}],46:[function(n,t){function r(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=i}var i=9007199254740991;t.exports=r},{}],47:[function(n,t){function i(n){return!!n&&typeof n=="object"}t.exports=i},{}],48:[function(n,t){function c(n){for(var c=o(n),l=c.length,s=l&&n.length,y=!!s&&f(s)&&(r(n)||i(n)||e(n)),a=-1,v=[],t;++a<l;)t=c[a],(y&&u(t,s)||h.call(n,t))&&v.push(t);return v}var i=n("../lang/isArguments"),r=n("../lang/isArray"),u=n("./isIndex"),f=n("./isLength"),e=n("../lang/isString"),o=n("../object/keysIn"),s=Object.prototype,h=s.hasOwnProperty;t.exports=c},{"../lang/isArguments":50,"../lang/isArray":51,"../lang/isString":56,"../object/keysIn":60,"./isIndex":44,"./isLength":46}],49:[function(n,t){function f(n){if(u.unindexedChars&&r(n)){for(var t=-1,e=n.length,f=Object(n);++t<e;)f[t]=n.charAt(t);return f}return i(n)?n:Object(n)}var i=n("../lang/isObject"),r=n("../lang/isString"),u=n("../support");t.exports=f},{"../lang/isObject":54,"../lang/isString":56,"../support":62}],50:[function(n,t){function o(n){return u(n)&&r(n)&&f.call(n,"callee")&&!e.call(n,"callee")}var r=n("../internal/isArrayLike"),u=n("../internal/isObjectLike"),i=Object.prototype,f=i.hasOwnProperty,e=i.propertyIsEnumerable;t.exports=o},{"../internal/isArrayLike":42,"../internal/isObjectLike":47}],51:[function(n,t){var i=n("../internal/getNative"),r=n("../internal/isLength"),u=n("../internal/isObjectLike"),f="[object Array]",e=Object.prototype,o=e.toString,s=i(Array,"isArray"),h=s||function(n){return u(n)&&r(n.length)&&o.call(n)==f};t.exports=h},{"../internal/getNative":41,"../internal/isLength":46,"../internal/isObjectLike":47}],52:[function(n,t){function e(n){return i(n)&&f.call(n)==r}var i=n("./isObject"),r="[object Function]",u=Object.prototype,f=u.toString;t.exports=e},{"./isObject":54}],53:[function(n,t){function c(n){return n==null?!1:u(n)?r.test(i.call(n)):e(n)&&(f(n)?r:o).test(n)}var u=n("./isFunction"),f=n("../internal/isHostObject"),e=n("../internal/isObjectLike"),o=/^\[object .+?Constructor\]$/,s=Object.prototype,i=Function.prototype.toString,h=s.hasOwnProperty,r=RegExp("^"+i.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=c},{"../internal/isHostObject":43,"../internal/isObjectLike":47,"./isFunction":52}],54:[function(n,t){function i(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}t.exports=i},{}],55:[function(n,t){function l(n){var u,t;return!(o(n)&&c.call(n)==h&&!e(n)&&!f(n))||!i.call(n,"constructor")&&(u=n.constructor,typeof u=="function"&&!(u instanceof u))?!1:s.ownLast?(r(n,function(n,r,u){return t=i.call(u,r),!1}),t!==!1):(r(n,function(n,i){t=i}),t===undefined||i.call(n,t))}var r=n("../internal/baseForIn"),f=n("./isArguments"),e=n("../internal/isHostObject"),o=n("../internal/isObjectLike"),s=n("../support"),h="[object Object]",u=Object.prototype,i=u.hasOwnProperty,c=u.toString;t.exports=l},{"../internal/baseForIn":33,"../internal/isHostObject":43,"../internal/isObjectLike":47,"../support":62,"./isArguments":50}],56:[function(n,t){function e(n){return typeof n=="string"||i(n)&&f.call(n)==r}var i=n("../internal/isObjectLike"),r="[object String]",u=Object.prototype,f=u.toString;t.exports=e},{"../internal/isObjectLike":47}],57:[function(n,t){function o(n){return e(n)&&f(n.length)&&!!i[u.call(n)]}var f=n("../internal/isLength"),e=n("../internal/isObjectLike"),i={},r,u;i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0;i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;r=Object.prototype;u=r.toString;t.exports=o},{"../internal/isLength":46,"../internal/isObjectLike":47}],58:[function(n,t){function u(n){return i(n,r(n))}var i=n("../internal/baseCopy"),r=n("../object/keysIn");t.exports=u},{"../internal/baseCopy":31,"../object/keysIn":60}],59:[function(n,t){var u=n("../internal/getNative"),f=n("../internal/isArrayLike"),e=n("../lang/isObject"),i=n("../internal/shimKeys"),o=n("../support"),r=u(Object,"keys"),s=r?function(n){var t=n==null?undefined:n.constructor;return typeof t=="function"&&t.prototype===n||(typeof n=="function"?o.enumPrototypes:f(n))?i(n):e(n)?r(n):[]}:i;t.exports=s},{"../internal/getNative":41,"../internal/isArrayLike":42,"../internal/shimKeys":48,"../lang/isObject":54,"../support":62}],60:[function(n,t){function nt(n){var a,t,rt,ot,ut;if(n==null)return[];b(n)||(n=Object(n));a=n.length;a=a&&w(a)&&(y(n)||v(n)||k(n))&&a||0;for(var ft=n.constructor,tt=-1,it=s(ft)&&ft.prototype||r,et=it===n,nt=Array(a),st=a>0,ht=f.enumErrorProps&&(n===l||n instanceof Error),ct=f.enumPrototypes&&s(n);++tt<a;)nt[tt]=tt+"";for(t in n)ct&&t=="prototype"||ht&&(t=="message"||t=="name")||st&&p(t,a)||t=="constructor"&&(et||!u.call(n,t))||nt.push(t);if(f.nonEnumShadows&&n!==r)for(rt=n===d?c:n===l?h:g.call(n),ot=i[rt]||i[e],rt==e&&(it=r),a=o.length;a--;)t=o[a],ut=ot[t],et&&ut||(ut?!u.call(n,t):n[t]===it[t])||nt.push(t);return nt}var a=n("../internal/arrayEach"),v=n("../lang/isArguments"),y=n("../lang/isArray"),s=n("../lang/isFunction"),p=n("../internal/isIndex"),w=n("../internal/isLength"),b=n("../lang/isObject"),k=n("../lang/isString"),f=n("../support"),h="[object Error]",e="[object Object]",c="[object String]",o=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],l=Error.prototype,r=Object.prototype,d=String.prototype,u=r.hasOwnProperty,g=r.toString,i={};i["[object Array]"]=i["[object Date]"]=i["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0};i["[object Boolean]"]=i[c]={constructor:!0,toString:!0,valueOf:!0};i[h]=i["[object Function]"]=i["[object RegExp]"]={constructor:!0,toString:!0};i[e]={constructor:!0};a(o,function(n){var t,r;for(t in i)u.call(i,t)&&(r=i[t],r[n]=u.call(r,n))});t.exports=nt},{"../internal/arrayEach":30,"../internal/isIndex":44,"../internal/isLength":46,"../lang/isArguments":50,"../lang/isArray":51,"../lang/isFunction":52,"../lang/isObject":54,"../lang/isString":56,"../support":62}],61:[function(n,t){var i=n("../internal/baseMerge"),r=n("../internal/createAssigner"),u=r(i);t.exports=u},{"../internal/baseMerge":34,"../internal/createAssigner":38}],62:[function(n,t){var f=Array.prototype,u=Error.prototype,e=Object.prototype,r=e.propertyIsEnumerable,o=f.splice,i={};(function(n){var t=function(){this.x=n},e={"0":n,length:n},f=[],s;t.prototype={valueOf:n,y:n};for(s in new t)f.push(s);i.enumErrorProps=r.call(u,"message")||r.call(u,"name");i.enumPrototypes=r.call(t,"prototype");i.nonEnumShadows=!/valueOf/.test(f);i.ownLast=f[0]!="x";i.spliceObjects=(o.call(e,0,1),!e[0]);i.unindexedChars="x"[0]+Object("x")[0]!="xx"})(1,0);t.exports=i},{}],63:[function(n,t){function i(n){return n}t.exports=i},{}],64:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var u=n("./line-stream"),f=r(u),e=n("./parse-stream"),o=r(e),s=n("./parser"),h=r(s);i["default"]={LineStream:f["default"],ParseStream:o["default"],Parser:h["default"]};t.exports=i["default"]},{"./line-stream":65,"./parse-stream":66,"./parser":67}],65:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();u=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var s=n("./stream"),h=f(s),c=function(n){function t(){e(this,t);u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);this.buffer=""}return o(t,n),r(t,[{key:"push",value:function(n){var t=undefined;for(this.buffer+=n,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}]),t}(h["default"]);i["default"]=c;t.exports=i["default"]},{"./stream":68}],66:[function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(i,"__esModule",{value:!0});var u=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),e=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var c=n("./stream"),l=o(c),a=function(){return new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')},r=function(n){for(var i=n.split(a()),r=i.length,u={},t=undefined;r--;)i[r]!==""&&(t=/([^=]*)=(.*)/.exec(i[r]).slice(1),t[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),u[t[0]]=t[1]);return u},v=function(n){function t(){s(this,t);e(Object.getPrototypeOf(t.prototype),"constructor",this).call(this)}return h(t,n),f(t,[{key:"push",value:function(n){var i=undefined,t=undefined,f,e,o;if(n=n.replace(/^[\u0000\s]+|[\u0000\s]+$/g,""),n.length!==0){if(n[0]!=="#"){this.trigger("data",{type:"uri",uri:n});return}if(n.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:n.slice(1)});return}if(n=n.replace("\r",""),i=/^#EXTM3U/.exec(n),i){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(i=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(n),i){t={type:"tag",tagType:"inf"};i[1]&&(t.duration=parseFloat(i[1]));i[2]&&(t.title=i[2]);this.trigger("data",t);return}if(i=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(n),i){t={type:"tag",tagType:"targetduration"};i[1]&&(t.duration=parseInt(i[1],10));this.trigger("data",t);return}if(i=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(n),i){t={type:"tag",tagType:"totalduration"};i[1]&&(t.duration=parseInt(i[1],10));this.trigger("data",t);return}if(i=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(n),i){t={type:"tag",tagType:"version"};i[1]&&(t.version=parseInt(i[1],10));this.trigger("data",t);return}if(i=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(n),i){t={type:"tag",tagType:"media-sequence"};i[1]&&(t.number=parseInt(i[1],10));this.trigger("data",t);return}if(i=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(n),i){t={type:"tag",tagType:"discontinuity-sequence"};i[1]&&(t.number=parseInt(i[1],10));this.trigger("data",t);return}if(i=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(n),i){t={type:"tag",tagType:"playlist-type"};i[1]&&(t.playlistType=i[1]);this.trigger("data",t);return}if(i=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(n),i){t={type:"tag",tagType:"byterange"};i[1]&&(t.length=parseInt(i[1],10));i[2]&&(t.offset=parseInt(i[2],10));this.trigger("data",t);return}if(i=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(n),i){t={type:"tag",tagType:"allow-cache"};i[1]&&(t.allowed=!/NO/.test(i[1]));this.trigger("data",t);return}if(i=/^#EXT-X-MAP:?(.*)$/.exec(n),i){if(t={type:"tag",tagType:"map"},i[1]&&(f=r(i[1]),f.URI&&(t.uri=f.URI),f.BYTERANGE)){var l=f.BYTERANGE.split("@"),s=u(l,2),h=s[0],c=s[1];t.byterange={};h&&(t.byterange.length=parseInt(h,10));c&&(t.byterange.offset=parseInt(c,10))}this.trigger("data",t);return}if(i=/^#EXT-X-STREAM-INF:?(.*)$/.exec(n),i){t={type:"tag",tagType:"stream-inf"};i[1]&&(t.attributes=r(i[1]),t.attributes.RESOLUTION&&(e=t.attributes.RESOLUTION.split("x"),o={},e[0]&&(o.width=parseInt(e[0],10)),e[1]&&(o.height=parseInt(e[1],10)),t.attributes.RESOLUTION=o),t.attributes.BANDWIDTH&&(t.attributes.BANDWIDTH=parseInt(t.attributes.BANDWIDTH,10)),t.attributes["PROGRAM-ID"]&&(t.attributes["PROGRAM-ID"]=parseInt(t.attributes["PROGRAM-ID"],10)));this.trigger("data",t);return}if(i=/^#EXT-X-MEDIA:?(.*)$/.exec(n),i){t={type:"tag",tagType:"media"};i[1]&&(t.attributes=r(i[1]));this.trigger("data",t);return}if(i=/^#EXT-X-ENDLIST/.exec(n),i){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(i=/^#EXT-X-DISCONTINUITY/.exec(n),i){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(i=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(n),i){t={type:"tag",tagType:"program-date-time"};i[1]&&(t.dateTimeString=i[1],t.dateTimeObject=new Date(i[1]));this.trigger("data",t);return}if(i=/^#EXT-X-KEY:?(.*)$/.exec(n),i){t={type:"tag",tagType:"key"};i[1]&&(t.attributes=r(i[1]),t.attributes.IV&&(t.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(t.attributes.IV=t.attributes.IV.substring(2)),t.attributes.IV=t.attributes.IV.match(/.{8}/g),t.attributes.IV[0]=parseInt(t.attributes.IV[0],16),t.attributes.IV[1]=parseInt(t.attributes.IV[1],16),t.attributes.IV[2]=parseInt(t.attributes.IV[2],16),t.attributes.IV[3]=parseInt(t.attributes.IV[3],16),t.attributes.IV=new Uint32Array(t.attributes.IV)));this.trigger("data",t);return}if(i=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(n),i){t={type:"tag",tagType:"cue-out-cont"};t.data=i[1]?i[1]:"";this.trigger("data",t);return}if(i=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(n),i){t={type:"tag",tagType:"cue-out"};t.data=i[1]?i[1]:"";this.trigger("data",t);return}if(i=/^#EXT-X-CUE-IN:?(.*)?$/.exec(n),i){t={type:"tag",tagType:"cue-in"};t.data=i[1]?i[1]:"";this.trigger("data",t);return}this.trigger("data",{type:"tag",data:n.slice(4)})}}}]),t}(l["default"]);i["default"]=v;t.exports=i["default"]},{"./stream":68}],67:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u,f;Object.defineProperty(i,"__esModule",{value:!0});u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();f=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var s=n("./stream"),h=r(s),c=n("./line-stream"),l=r(c),a=n("./parse-stream"),v=r(a),y=n("lodash-compat/object/merge"),p=r(y),w=function(n){function t(){e(this,t);f(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);this.lineStream=new l["default"];this.parseStream=new v["default"];this.lineStream.pipe(this.parseStream);var s=this,u=[],n={},i=undefined,r=undefined,c=function(){},h={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},o=0;this.manifest={allowCache:!0,discontinuityStarts:[]};this.parseStream.on("data",function(t){var e=undefined,f=undefined;({tag:function(){({"allow-cache":function(){this.manifest.allowCache=t.allowed;"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var i={};"length"in t&&(n.byterange=i,i.length=t.length,"offset"in t||(this.trigger("info",{message:"defaulting offset to zero"}),t.offset=0));"offset"in t&&(n.byterange=i,i.offset=t.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"}));"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"}));t.duration>0&&(n.duration=t.duration);t.duration===0&&(n.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"}));this.manifest.segments=u},key:function(){if(!t.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(t.attributes.METHOD==="NONE"){r=null;return}if(!t.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"});r={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI};typeof t.attributes.IV!="undefined"&&(r.iv=t.attributes.IV)},"media-sequence":function(){if(!isFinite(t.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number});return}this.manifest.mediaSequence=t.number},"discontinuity-sequence":function(){if(!isFinite(t.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number});return}this.manifest.discontinuitySequence=t.number;o=t.number},"playlist-type":function(){if(!/VOD|EVENT/.test(t.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist});return}this.manifest.playlistType=t.playlistType},map:function(){i={};t.uri&&(i.uri=t.uri);t.byterange&&(i.byterange=t.byterange)},"stream-inf":function(){if(this.manifest.playlists=u,this.manifest.mediaGroups=this.manifest.mediaGroups||h,!t.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}n.attributes||(n.attributes={});n.attributes=p["default"](n.attributes,t.attributes)},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||h,!(t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var n=this.manifest.mediaGroups[t.attributes.TYPE];n[t.attributes["GROUP-ID"]]=n[t.attributes["GROUP-ID"]]||{};e=n[t.attributes["GROUP-ID"]];f={"default":/yes/i.test(t.attributes.DEFAULT)};f.autoselect=f["default"]?!0:/yes/i.test(t.attributes.AUTOSELECT);t.attributes.LANGUAGE&&(f.language=t.attributes.LANGUAGE);t.attributes.URI&&(f.uri=t.attributes.URI);t.attributes["INSTREAM-ID"]&&(f.instreamId=t.attributes["INSTREAM-ID"]);e[t.attributes.NAME]=f},discontinuity:function(){o+=1;n.discontinuity=!0;this.manifest.discontinuityStarts.push(u.length)},"program-date-time":function(){this.manifest.dateTimeString=t.dateTimeString;this.manifest.dateTimeObject=t.dateTimeObject},targetduration:function(){if(!isFinite(t.duration)||t.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration});return}this.manifest.targetDuration=t.duration},totalduration:function(){if(!isFinite(t.duration)||t.duration<0){this.trigger("warn",{message:"ignoring invalid total duration: "+t.duration});return}this.manifest.totalDuration=t.duration},"cue-out":function(){n.cueOut=t.data},"cue-out-cont":function(){n.cueOutCont=t.data},"cue-in":function(){n.cueIn=t.data}}[t.tagType]||c).call(s)},uri:function(){n.uri=t.uri;u.push(n);!this.manifest.targetDuration||"duration"in n||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),n.duration=this.manifest.targetDuration);r&&(n.key=r);n.timeline=o;i&&(n.map=i);n={}},comment:function(){}})[t.type].call(s)})}return o(t,n),u(t,[{key:"push",value:function(n){this.lineStream.push(n)}},{key:"end",value:function(){this.lineStream.push("\n")}}]),t}(h["default"]);i["default"]=w;t.exports=i["default"]},{"./line-stream":65,"./parse-stream":66,"./stream":68,"lodash-compat/object/merge":61}],68:[function(n,t,i){arguments[4][14][0].apply(i,arguments)},{dup:14}],69:[function(n,t){"use strict";var r=n("../utils/stream.js"),i;i=function(){var n=new Uint8Array,t=0;i.prototype.init.call(this);this.setTimestamp=function(n){t=n};this.parseId3TagSize=function(n,t){var i=n[t+6]<<21|n[t+7]<<14|n[t+8]<<7|n[t+9],r=n[t+5],u=(r&16)>>4;return u?i+20:i+10};this.parseAdtsSize=function(n,t){var i=(n[t+5]&224)>>5,r=n[t+4]<<3,u=n[t+3]&6144;return u|r|i};this.push=function(i){var u=0,r=0,e,o,s,f;for(n.length?(f=n.length,n=new Uint8Array(i.byteLength+f),n.set(n.subarray(0,f)),n.set(i,f)):n=i;n.length-r>=3;){if(n[r]==="I".charCodeAt(0)&&n[r+1]==="D".charCodeAt(0)&&n[r+2]==="3".charCodeAt(0)){if(n.length-r<10)break;if(u=this.parseId3TagSize(n,r),u>n.length)break;o={type:"timed-metadata",data:n.subarray(r,r+u)};this.trigger("data",o);r+=u;continue}else if(n[r]&!0&&(n[r+1]&240)==240){if(n.length-r<7)break;if(u=this.parseAdtsSize(n,r),u>n.length)break;s={type:"audio",data:n.subarray(r,r+u),pts:t,dts:t};this.trigger("data",s);r+=u;continue}r++}e=n.length-r;n=e>0?n.subarray(r):new Uint8Array}};i.prototype=new r;t.exports=i},{"../utils/stream.js":89}],70:[function(n,t){"use strict";var r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=function(n){return n[0]<<21|n[1]<<14|n[2]<<7|n[3]},u=function(n,t,i){for(var u="",r=t;r<i;r++)u+="%"+("00"+n[r].toString(16)).slice(-2);return u},f=function(n,t,i){return unescape(u(n,t,i))},e=function(n,t){var i=n[t+6]<<21|n[t+7]<<14|n[t+8]<<7|n[t+9],r=n[t+5],u=(r&16)>>4;return u?i+20:i+10},o=function(n,t){var i=(n[t+5]&224)>>5,r=n[t+4]<<3,u=n[t+3]&6144;return u|r|i},s=function(n,t){return n[t]==="I".charCodeAt(0)&&n[t+1]==="D".charCodeAt(0)&&n[t+2]==="3".charCodeAt(0)?"timed-metadata":n[t]&!0&&(n[t+1]&240)==240?"audio":null},h=function(n){for(var t=0;t+5<n.length;){if(n[t]!==255||(n[t+1]&246)!=240){t++;continue}return r[(n[t+2]&60)>>>2]}return null},c=function(n){var t,o,e,h,u,c,r,s;t=10;n[5]&64&&(t+=4,t+=i(n.subarray(10,14)));do{if(o=i(n.subarray(t+4,t+8)),o<1)return null;if(h=String.fromCharCode(n[t],n[t+1],n[t+2],n[t+3]),h==="PRIV")for(e=n.subarray(t+10,t+o+10),u=0;u<e.byteLength;u++)if(e[u]===0){if(c=f(e,0,u),c==="com.apple.streaming.transportStreamTimestamp")return r=e.subarray(u+1),s=(r[3]&1)<<30|r[4]<<22|r[5]<<14|r[6]<<6|r[7]>>>2,s*=4,s+(r[7]&3);break}t+=10;t+=o}while(t<n.byteLength);return null};t.exports={parseId3TagSize:e,parseAdtsSize:o,parseType:s,parseSampleRate:h,parseAacTimestamp:c}},{}],71:[function(n,t){"use strict";var u=n("../utils/stream.js"),i,r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=function(){var n;i.prototype.init.call(this);this.push=function(t){var i=0,e=0,h,c,u,f,o,s;if(t.type==="audio")for(n?(f=n,n=new Uint8Array(f.byteLength+t.data.byteLength),n.set(f),n.set(t.data,f.byteLength)):n=t.data;i+5<n.length;){if(n[i]!==255||(n[i+1]&246)!=240){i++;continue}if(c=(~n[i+1]&1)*2,h=(n[i+3]&3)<<11|n[i+4]<<3|(n[i+5]&224)>>5,o=((n[i+6]&3)+1)*1024,s=o*9e4/r[(n[i+2]&60)>>>2],u=i+h,n.byteLength<u)return;if(this.trigger("data",{pts:t.pts+e*s,dts:t.dts+e*s,sampleCount:o,audioobjecttype:(n[i+2]>>>6&3)+1,channelcount:(n[i+2]&1)<<2|(n[i+3]&192)>>>6,samplerate:r[(n[i+2]&60)>>>2],samplingfrequencyindex:(n[i+2]&60)>>>2,samplesize:16,data:n.subarray(i+7+c,u)}),n.byteLength===u){n=undefined;return}e++;n=n.subarray(u)}};this.flush=function(){this.trigger("done")}};i.prototype=new u;t.exports=i},{"../utils/stream.js":89}],72:[function(n,t){"use strict";var u=n("../utils/stream.js"),e=n("../utils/exp-golomb.js"),r,i,f;i=function(){var r=0,t,n;i.prototype.init.call(this);this.push=function(i){var u;for(n?(u=new Uint8Array(n.byteLength+i.data.byteLength),u.set(n),u.set(i.data,n.byteLength),n=u):n=i.data;r<n.byteLength-3;r++)if(n[r+2]===1){t=r+5;break}while(t<n.byteLength)switch(n[t]){case 0:if(n[t-1]!==0){t+=2;break}else if(n[t-2]!==0){t++;break}r+3!==t-2&&this.trigger("data",n.subarray(r+3,t-2));do t++;while(n[t]!==1&&t<n.length);r=t-2;t+=3;break;case 1:if(n[t-1]!==0||n[t-2]!==0){t+=3;break}this.trigger("data",n.subarray(r+3,t-2));r=t-2;t+=3;break;default:t+=3}n=n.subarray(r);t-=r;r=0};this.flush=function(){n&&n.byteLength>3&&this.trigger("data",n.subarray(r+3));n=null;r=0;this.trigger("done")}};i.prototype=new u;f={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0};r=function(){var n=new i,t,s,h,c,u,l,o;r.prototype.init.call(this);t=this;this.push=function(t){t.type==="video"&&(s=t.trackId,h=t.pts,c=t.dts,n.push(t))};n.on("data",function(n){var i={trackId:s,pts:h,dts:c,data:n};switch(n[0]&31){case 5:i.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:i.nalUnitType="sei_rbsp";i.escapedRBSP=u(n.subarray(1));break;case 7:i.nalUnitType="seq_parameter_set_rbsp";i.escapedRBSP=u(n.subarray(1));i.config=l(i.escapedRBSP);break;case 8:i.nalUnitType="pic_parameter_set_rbsp";break;case 9:i.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",i)});n.on("done",function(){t.trigger("done")});this.flush=function(){n.flush()};o=function(n,t){for(var r=8,i=8,f,u=0;u<n;u++)i!==0&&(f=t.readExpGolomb(),i=(r+f+256)%256),r=i===0?r:i};u=function(n){for(var e=n.byteLength,i=[],t=1,u,f,r;t<e-2;)n[t]===0&&n[t+1]===0&&n[t+2]===3?(i.push(t+2),t+=2):t++;if(i.length===0)return n;for(u=e-i.length,f=new Uint8Array(u),r=0,t=0;t<u;r++,t++)r===i[0]&&(r++,i.shift()),f[t]=n[r];return f};l=function(n){var l=0,a=0,v=0,y=0,p=1,t,u,w,b,s,h,k,d,g,c,nt,i,tt,r;if(t=new e(n),u=t.readUnsignedByte(),b=t.readUnsignedByte(),w=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),f[u]&&(s=t.readUnsignedExpGolomb(),s===3&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(nt=s!==3?8:12,r=0;r<nt;r++)t.readBoolean()&&(r<6?o(16,t):o(64,t));if(t.skipUnsignedExpGolomb(),h=t.readUnsignedExpGolomb(),h===0)t.readUnsignedExpGolomb();else if(h===1)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),k=t.readUnsignedExpGolomb(),r=0;r<k;r++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),d=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),c=t.readBits(1),c===0&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(l=t.readUnsignedExpGolomb(),a=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){tt=t.readUnsignedByte();switch(tt){case 1:i=[1,1];break;case 2:i=[12,11];break;case 3:i=[10,11];break;case 4:i=[16,11];break;case 5:i=[40,33];break;case 6:i=[24,11];break;case 7:i=[20,11];break;case 8:i=[32,11];break;case 9:i=[80,33];break;case 10:i=[18,11];break;case 11:i=[15,11];break;case 12:i=[64,33];break;case 13:i=[160,99];break;case 14:i=[4,3];break;case 15:i=[3,2];break;case 16:i=[2,1];break;case 255:i=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}i&&(p=i[0]/i[1])}return{profileIdc:u,levelIdc:w,profileCompatibility:b,width:Math.ceil(((d+1)*16-l*2-a*2)*p),height:(2-c)*(g+1)*16-v*2-y*2}}};r.prototype=new u;t.exports={H264Stream:r,NalByteStream:i}},{"../utils/exp-golomb.js":88,"../utils/stream.js":89}],73:[function(n,t){"use strict";var r=n("../utils/stream.js"),i=function(n){this.numberOfTracks=0;this.metadataStream=n.metadataStream;this.videoTags=[];this.audioTags=[];this.videoTrack=null;this.audioTrack=null;this.pendingCaptions=[];this.pendingMetadata=[];this.pendingTracks=0;this.processedTracks=0;i.prototype.init.call(this);this.push=function(n){if(n.text)return this.pendingCaptions.push(n);if(n.frames)return this.pendingMetadata.push(n);n.track.type==="video"&&(this.videoTrack=n.track,this.videoTags=n.tags,this.pendingTracks++);n.track.type==="audio"&&(this.audioTrack=n.track,this.audioTags=n.tags,this.pendingTracks++)}};i.prototype=new r;i.prototype.flush=function(n){var u,t,i,f,r={tags:{},captions:[],metadata:[]};if(this.pendingTracks<this.numberOfTracks){if(n!=="VideoSegmentStream"&&n!=="AudioSegmentStream")return;if(this.pendingTracks===0&&(this.processedTracks++,this.processedTracks<this.numberOfTracks))return}if(this.processedTracks+=this.pendingTracks,this.pendingTracks=0,!(this.processedTracks<this.numberOfTracks)){for(this.videoTrack?f=this.videoTrack.timelineStartInfo.pts:this.audioTrack&&(f=this.audioTrack.timelineStartInfo.pts),r.tags.videoTags=this.videoTags,r.tags.audioTags=this.audioTags,i=0;i<this.pendingCaptions.length;i++)t=this.pendingCaptions[i],t.startTime=t.startPts-f,t.startTime/=9e4,t.endTime=t.endPts-f,t.endTime/=9e4,r.captions.push(t);for(i=0;i<this.pendingMetadata.length;i++)u=this.pendingMetadata[i],u.cueTime=u.pts-f,u.cueTime/=9e4,r.metadata.push(u);r.metadata.dispatchType=this.metadataStream.dispatchType;this.videoTrack=null;this.audioTrack=null;this.videoTags=[];this.audioTags=[];this.pendingCaptions.length=0;this.pendingMetadata.length=0;this.pendingTracks=0;this.processedTracks=0;this.trigger("data",r);this.trigger("done")}};t.exports=i},{"../utils/stream.js":89}],74:[function(n,t){"use strict";var i;i=function(n,t){var u=0,h=16384,f=function(n,t){var i,r=n.position+t;r<n.bytes.byteLength||(i=new Uint8Array(r*2),i.set(n.bytes.subarray(0,n.position),0),n.bytes=i,n.view=new DataView(n.bytes.buffer))},e=i.widthBytes||new Uint8Array(5),o=i.heightBytes||new Uint8Array(6),s=i.videocodecidBytes||new Uint8Array(12),r;if(!i.widthBytes){for(r=0;r<5;r++)e[r]="width".charCodeAt(r);for(r=0;r<6;r++)o[r]="height".charCodeAt(r);for(r=0;r<12;r++)s[r]="videocodecid".charCodeAt(r);i.widthBytes=e;i.heightBytes=o;i.videocodecidBytes=s}this.keyFrame=!1;switch(n){case i.VIDEO_TAG:this.length=16;h*=6;break;case i.AUDIO_TAG:this.length=13;this.keyFrame=!0;break;case i.METADATA_TAG:this.length=29;this.keyFrame=!0;break;default:throw new Error("Unknown FLV tag type");}this.bytes=new Uint8Array(h);this.view=new DataView(this.bytes.buffer);this.bytes[0]=n;this.position=this.length;this.keyFrame=t;this.pts=0;this.dts=0;this.writeBytes=function(n,t,i){var r=t||0,u;i=i||n.byteLength;u=r+i;f(this,i);this.bytes.set(n.subarray(r,u),this.position);this.position+=i;this.length=Math.max(this.length,this.position)};this.writeByte=function(n){f(this,1);this.bytes[this.position]=n;this.position++;this.length=Math.max(this.length,this.position)};this.writeShort=function(n){f(this,2);this.view.setUint16(this.position,n);this.position+=2;this.length=Math.max(this.length,this.position)};this.negIndex=function(n){return this.bytes[this.length-n]};this.nalUnitSize=function(){return u===0?0:this.length-(u+4)};this.startNalUnit=function(){if(u>0)throw new Error("Attempted to create new NAL wihout closing the old one");u=this.length;this.length+=4;this.position=this.length};this.endNalUnit=function(n){var t,i;this.length===u+4?this.length-=4:u>0&&(t=u+4,i=this.length-t,this.position=u,this.view.setUint32(this.position,i),this.position=this.length,n&&n.push(this.bytes.subarray(t,t+i)));u=0};this.writeMetaDataDouble=function(n,t){var i;if(f(this,2+n.length+9),this.view.setUint16(this.position,n.length),this.position+=2,n==="width")this.bytes.set(e,this.position),this.position+=5;else if(n==="height")this.bytes.set(o,this.position),this.position+=6;else if(n==="videocodecid")this.bytes.set(s,this.position),this.position+=12;else for(i=0;i<n.length;i++)this.bytes[this.position]=n.charCodeAt(i),this.position++;this.position++;this.view.setFloat64(this.position,t);this.position+=8;this.length=Math.max(this.length,this.position);++u};this.writeMetaDataBoolean=function(n,t){var i;for(f(this,2),this.view.setUint16(this.position,n.length),this.position+=2,i=0;i<n.length;i++)f(this,1),this.bytes[this.position]=n.charCodeAt(i),this.position++;f(this,2);this.view.setUint8(this.position,1);this.position++;this.view.setUint8(this.position,t?1:0);this.position++;this.length=Math.max(this.length,this.position);++u};this.finalize=function(){var n,r;switch(this.bytes[0]){case i.VIDEO_TAG:this.bytes[11]=(this.keyFrame||t?16:32)|7;this.bytes[12]=t?0:1;n=this.pts-this.dts;this.bytes[13]=(n&16711680)>>>16;this.bytes[14]=(n&65280)>>>8;this.bytes[15]=(n&255)>>>0;break;case i.AUDIO_TAG:this.bytes[11]=175;this.bytes[12]=t?0:1;break;case i.METADATA_TAG:this.position=11;this.view.setUint8(this.position,2);this.position++;this.view.setUint16(this.position,10);this.position+=2;this.bytes.set([111,110,77,101,116,97,68,97,116,97],this.position);this.position+=10;this.bytes[this.position]=8;this.position++;this.view.setUint32(this.position,u);this.position=this.length;this.bytes.set([0,0,9],this.position);this.position+=3;this.length=this.position}return r=this.length-11,this.bytes[1]=(r&16711680)>>>16,this.bytes[2]=(r&65280)>>>8,this.bytes[3]=(r&255)>>>0,this.bytes[4]=(this.dts&16711680)>>>16,this.bytes[5]=(this.dts&65280)>>>8,this.bytes[6]=(this.dts&255)>>>0,this.bytes[7]=(this.dts&4278190080)>>>24,this.bytes[8]=0,this.bytes[9]=0,this.bytes[10]=0,f(this,4),this.view.setUint32(this.length,this.length),this.length+=4,this.position+=4,this.bytes=this.bytes.subarray(0,this.length),this.frameTime=i.frameTime(this.bytes),this}};i.AUDIO_TAG=8;i.VIDEO_TAG=9;i.METADATA_TAG=18;i.isAudioFrame=function(n){return i.AUDIO_TAG===n[0]};i.isVideoFrame=function(n){return i.VIDEO_TAG===n[0]};i.isMetaData=function(n){return i.METADATA_TAG===n[0]};i.isKeyFrame=function(n){return i.isVideoFrame(n)?n[11]===23:i.isAudioFrame(n)?!0:i.isMetaData(n)?!0:!1};i.frameTime=function(n){var t=n[4]<<16;return t|=n[5]<<8,t|=n[6]<<0,t|n[7]<<24};t.exports=i},{}],75:[function(n,t){t.exports={tag:n("./flv-tag"),Transmuxer:n("./transmuxer")}},{"./flv-tag":74,"./transmuxer":76}],76:[function(n,t){"use strict";var o=n("../utils/stream.js"),i=n("./flv-tag.js"),r=n("../m2ts/m2ts.js"),l=n("../codecs/adts.js"),a=n("../codecs/h264").H264Stream,v=n("./coalesce-stream.js"),u,f,e,s,h,c;s=function(n,t){typeof t.pts=="number"&&(n.timelineStartInfo.pts=n.timelineStartInfo.pts===undefined?t.pts:Math.min(n.timelineStartInfo.pts,t.pts));typeof t.dts=="number"&&(n.timelineStartInfo.dts=n.timelineStartInfo.dts===undefined?t.dts:Math.min(n.timelineStartInfo.dts,t.dts))};h=function(n,t){var r=new i(i.METADATA_TAG);return r.dts=t,r.pts=t,r.writeMetaDataDouble("videocodecid",7),r.writeMetaDataDouble("width",n.width),r.writeMetaDataDouble("height",n.height),r};c=function(n,t){var u,r=new i(i.VIDEO_TAG,!0);for(r.dts=t,r.pts=t,r.writeByte(1),r.writeByte(n.profileIdc),r.writeByte(n.profileCompatibility),r.writeByte(n.levelIdc),r.writeByte(255),r.writeByte(225),r.writeShort(n.sps[0].length),r.writeBytes(n.sps[0]),r.writeByte(n.pps.length),u=0;u<n.pps.length;++u)r.writeShort(n.pps[u].length),r.writeBytes(n.pps[u]);return r};e=function(n){var t=[],r;e.prototype.init.call(this);this.push=function(i){s(n,i);n&&n.channelcount===undefined&&(n.audioobjecttype=i.audioobjecttype,n.channelcount=i.channelcount,n.samplerate=i.samplerate,n.samplingfrequencyindex=i.samplingfrequencyindex,n.samplesize=i.samplesize,n.extraData=n.audioobjecttype<<11|n.samplingfrequencyindex<<7|n.channelcount<<3);i.pts=Math.round(i.pts/90);i.dts=Math.round(i.dts/90);t.push(i)};this.flush=function(){var f,u,o,e=[];if(t.length===0){this.trigger("done","AudioSegmentStream");return}for(o=-Infinity;t.length;)f=t.shift(),(n.extraData!==r||f.pts-o>=1e3)&&(u=new i(i.METADATA_TAG),u.pts=f.pts,u.dts=f.dts,u.writeMetaDataDouble("audiocodecid",10),u.writeMetaDataBoolean("stereo",n.channelcount===2),u.writeMetaDataDouble("audiosamplerate",n.samplerate),u.writeMetaDataDouble("audiosamplesize",16),e.push(u),r=n.extraData,u=new i(i.AUDIO_TAG,!0),u.pts=f.pts,u.dts=f.dts,u.view.setUint16(u.position,n.extraData),u.position+=2,u.length=Math.max(u.length,u.position),e.push(u),o=f.pts),u=new i(i.AUDIO_TAG),u.pts=f.pts,u.dts=f.dts,u.writeBytes(f.data),e.push(u);r=null;this.trigger("data",{track:n,tags:e});this.trigger("done","AudioSegmentStream")}};e.prototype=new o;f=function(n){var u=[],r,t;f.prototype.init.call(this);this.finishFrame=function(i,u){u&&(r&&n&&n.newMetadata&&(u.keyFrame||i.length===0)&&(i.push(h(r,u.dts)),i.push(c(n,u.dts)),n.newMetadata=!1),u.endNalUnit(),i.push(u),t=null)};this.push=function(t){s(n,t);t.pts=Math.round(t.pts/90);t.dts=Math.round(t.dts/90);u.push(t)};this.flush=function(){for(var f,e=[];u.length;){if(u[0].nalUnitType==="access_unit_delimiter_rbsp")break;u.shift()}if(u.length===0){this.trigger("done","VideoSegmentStream");return}while(u.length)f=u.shift(),f.nalUnitType==="seq_parameter_set_rbsp"?(n.newMetadata=!0,r=f.config,n.width=r.width,n.height=r.height,n.sps=[f.data],n.profileIdc=r.profileIdc,n.levelIdc=r.levelIdc,n.profileCompatibility=r.profileCompatibility,t.endNalUnit()):f.nalUnitType==="pic_parameter_set_rbsp"?(n.newMetadata=!0,n.pps=[f.data],t.endNalUnit()):f.nalUnitType==="access_unit_delimiter_rbsp"?(t&&this.finishFrame(e,t),t=new i(i.VIDEO_TAG),t.pts=f.pts,t.dts=f.dts):(f.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(t.keyFrame=!0),t.endNalUnit()),t.startNalUnit(),t.writeBytes(f.data);t&&this.finishFrame(e,t);this.trigger("data",{track:n,tags:e});this.trigger("done","VideoSegmentStream")}};f.prototype=new o;u=function(n){var w=this,s,b,o,k,d,g,c,h,y,p,nt,t;u.prototype.init.call(this);n=n||{};this.metadataStream=new r.MetadataStream;n.metadataStream=this.metadataStream;s=new r.TransportPacketStream;b=new r.TransportParseStream;o=new r.ElementaryStream;k=new r.TimestampRolloverStream("video");d=new r.TimestampRolloverStream("audio");g=new r.TimestampRolloverStream("timed-metadata");c=new l;h=new a;t=new v(n);s.pipe(b).pipe(o);o.pipe(k).pipe(h);o.pipe(d).pipe(c);o.pipe(g).pipe(this.metadataStream).pipe(t);nt=new r.CaptionStream;h.pipe(nt).pipe(t);o.on("data",function(n){var i,r,u;if(n.type==="metadata"){for(i=n.tracks.length;i--;)n.tracks[i].type==="video"?r=n.tracks[i]:n.tracks[i].type==="audio"&&(u=n.tracks[i]);r&&!y&&(t.numberOfTracks++,y=new f(r),h.pipe(y).pipe(t));u&&!p&&(t.numberOfTracks++,p=new e(u),c.pipe(p).pipe(t))}});this.push=function(n){s.push(n)};this.flush=function(){s.flush()};t.on("data",function(n){w.trigger("data",n)});t.on("done",function(){w.trigger("done")});this.getFlvHeader=function(n,t,r){var f=new Uint8Array(9),e=new DataView(f.buffer),o,u,s;return(n=n||0,t=t===undefined?!0:t,r=r===undefined?!0:r,e.setUint8(0,70),e.setUint8(1,76),e.setUint8(2,86),e.setUint8(3,1),e.setUint8(4,(t?4:0)|(r?1:0)),e.setUint32(5,f.byteLength),n<=0)?(u=new Uint8Array(f.byteLength+4),u.set(f),u.set([0,0,0,0],f.byteLength),u):(o=new i(i.METADATA_TAG),o.pts=o.dts=0,o.writeMetaDataDouble("duration",n),s=o.finalize().length,u=new Uint8Array(f.byteLength+s),u.set(f),u.set(e.byteLength,s),u)}};u.prototype=new o;t.exports=u},{"../codecs/adts.js":71,"../codecs/h264":72,"../m2ts/m2ts.js":78,"../utils/stream.js":89,"./coalesce-stream.js":73,"./flv-tag.js":74}],77:[function(n,t){"use strict";var o=4,h=128,s=n("../utils/stream"),c=function(n){for(var t=0,r={payloadType:-1,payloadSize:0},u=0,i=0;t<n.byteLength;){if(n[t]===h)break;while(n[t]===255)u+=255,t++;for(u+=n[t++];n[t]===255;)i+=255,t++;if(i+=n[t++],!r.payload&&u===o){r.payloadType=u;r.payloadSize=i;r.payload=n.subarray(t,t+i);break}t+=i;u=0;i=0}return r},l=function(n){return n.payload[0]!==181?null:(n.payload[1]<<8|n.payload[2])!=49?null:String.fromCharCode(n.payload[3],n.payload[4],n.payload[5],n.payload[6])!=="GA94"?null:n.payload[7]!==3?null:n.payload.subarray(8,n.payload.length-1)},a=function(n,t){var u=[],r,e,i,f;if(!(t[0]&64))return u;for(e=t[0]&31,r=0;r<e;r++)i=r*3,f={type:t[i+2]&3,pts:n},t[i+2]&4&&(f.ccData=t[i+3]<<8|t[i+4],u.push(f));return u},u=function(){u.prototype.init.call(this);this.captionPackets_=[];this.field1_=new r;this.field1_.on("data",this.trigger.bind(this,"data"));this.field1_.on("done",this.trigger.bind(this,"done"))};u.prototype=new s;u.prototype.push=function(n){var t,i;n.nalUnitType==="sei_rbsp"&&(t=c(n.escapedRBSP),t.payloadType===o)&&(i=l(t),i)&&(this.captionPackets_=this.captionPackets_.concat(a(n.pts,i)))};u.prototype.flush=function(){if(!this.captionPackets_.length){this.field1_.flush();return}this.captionPackets_.forEach(function(n,t){n.presortIndex=t});this.captionPackets_.sort(function(n,t){return n.pts===t.pts?n.presortIndex-t.presortIndex:n.pts-t.pts});this.captionPackets_.forEach(this.field1_.push,this.field1_);this.captionPackets_.length=0;this.field1_.flush();return};var v={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608},f=function(n){return n===null?"":(n=v[n]||n,String.fromCharCode(n))},y=0,p=5152,w=5167,b=5157,k=5158,d=5159,g=5165,nt=5153,tt=5164,it=5166,i=14,e=function(){for(var n=[],t=i+1;t--;)n.push("");return n},r=function(){r.prototype.init.call(this);this.mode_="popOn";this.topRow_=0;this.startPts_=0;this.displayed_=e();this.nonDisplayed_=e();this.lastControlCode_=null;this.push=function(n){if(n.type===0){var u,f,t,r;if(u=n.ccData&32639,u===this.lastControlCode_){this.lastControlCode_=null;return}this.lastControlCode_=(u&61440)==4096?u:null;switch(u){case y:break;case p:this.mode_="popOn";break;case w:this.flushDisplayed(n.pts);f=this.displayed_;this.displayed_=this.nonDisplayed_;this.nonDisplayed_=f;this.startPts_=n.pts;break;case b:this.topRow_=i-1;this.mode_="rollUp";break;case k:this.topRow_=i-2;this.mode_="rollUp";break;case d:this.topRow_=i-3;this.mode_="rollUp";break;case g:this.flushDisplayed(n.pts);this.shiftRowsUp_();this.startPts_=n.pts;break;case nt:this.mode_==="popOn"?this.nonDisplayed_[i]=this.nonDisplayed_[i].slice(0,-1):this.displayed_[i]=this.displayed_[i].slice(0,-1);break;case tt:this.flushDisplayed(n.pts);this.displayed_=e();break;case it:this.nonDisplayed_=e();break;default:if(t=u>>>8,r=u&255,t>=16&&t<=23&&r>=64&&r<=127&&(t!==16||r<96)&&(t=32,r=null),(t===17||t===25)&&r>=48&&r<=63&&(t=9834,r=""),(t&240)==16)return;this[this.mode_](n.pts,t,r)}}}};r.prototype=new s;r.prototype.flushDisplayed=function(n){var t=this.displayed_.map(function(n){return n.trim()}).filter(function(n){return n.length}).join("\n");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:n,text:t})};r.prototype.popOn=function(n,t,r){var u=this.nonDisplayed_[i];u+=f(t);u+=f(r);this.nonDisplayed_[i]=u};r.prototype.rollUp=function(n,t,r){var u=this.displayed_[i];u===""&&(this.flushDisplayed(n),this.startPts_=n);u+=f(t);u+=f(r);this.displayed_[i]=u};r.prototype.shiftRowsUp_=function(){for(var n=0;n<this.topRow_;n++)this.displayed_[n]="";for(n=this.topRow_;n<i;n++)this.displayed_[n]=this.displayed_[n+1];this.displayed_[i]=""};t.exports={CaptionStream:u,Cea608Stream:r}},{"../utils/stream":89}],78:[function(n,t){"use strict";var s=n("../utils/stream.js"),a=n("./caption-stream"),i=n("./stream-types"),v=n("./timestamp-rollover-stream").TimestampRolloverStream,h=n("./stream-types.js"),f,u,e,r=188,c=71,l,o;f=function(){var t=new Uint8Array(r),n=0;f.prototype.init.call(this);this.push=function(i){var f=0,e=r,u;for(n?(u=new Uint8Array(i.byteLength+n),u.set(t.subarray(0,n)),u.set(i,n),n=0):u=i;e<u.byteLength;){if(u[f]===c&&u[e]===c){this.trigger("data",u.subarray(f,e));f+=r;e+=r;continue}f++;e++}f<u.byteLength&&(t.set(u.subarray(f),0),n=u.byteLength-f)};this.flush=function(){n===r&&t[0]===c&&(this.trigger("data",t),n=0);this.trigger("done")}};f.prototype=new s;u=function(){var t,i,r,n;u.prototype.init.call(this);n=this;this.packetsWaitingForPmt=[];this.programMapTable=undefined;t=function(n,t){var u=0;t.payloadUnitStartIndicator&&(u+=n[u]+1);t.type==="pat"?i(n.subarray(u),t):r(n.subarray(u),t)};i=function(t,i){i.section_number=t[7];i.last_section_number=t[8];n.pmtPid=(t[10]&31)<<8|t[11];i.pmtPid=n.pmtPid};r=function(t,i){var u,f,e,r;if(t[5]&1){for(n.programMapTable={},u=(t[1]&15)<<8|t[2],f=3+u-4,e=(t[10]&15)<<8|t[11],r=12+e;r<f;)n.programMapTable[(t[r+1]&31)<<8|t[r+2]]=t[r],r+=((t[r+3]&15)<<8|t[r+4])+5;for(i.programMapTable=n.programMapTable;n.packetsWaitingForPmt.length;)n.processPes_.apply(n,n.packetsWaitingForPmt.shift())}};this.push=function(n){var i={},r=4;i.payloadUnitStartIndicator=!!(n[1]&64);i.pid=n[1]&31;i.pid<<=8;i.pid|=n[2];(n[3]&48)>>>4>1&&(r+=n[r]+1);i.pid===0?(i.type="pat",t(n.subarray(r),i),this.trigger("data",i)):i.pid===this.pmtPid?(i.type="pmt",t(n.subarray(r),i),this.trigger("data",i)):this.programMapTable===undefined?this.packetsWaitingForPmt.push([n,r,i]):this.processPes_(n,r,i)};this.processPes_=function(n,t,i){i.streamType=this.programMapTable[i.pid];i.type="pes";i.data=n.subarray(t);this.trigger("data",i)}};u.prototype=new s;u.STREAM_TYPES={h264:27,adts:15};e=function(){var t=this,r={data:[],size:0},u={data:[],size:0},f={data:[],size:0},o=function(n,t){var i;t.dataAlignmentIndicator=(n[6]&4)!=0;i=n[7];i&192&&(t.pts=(n[9]&14)<<27|(n[10]&255)<<20|(n[11]&254)<<12|(n[12]&255)<<5|(n[13]&254)>>>3,t.pts*=4,t.pts+=(n[13]&6)>>>1,t.dts=t.pts,i&64&&(t.dts=(n[14]&14)<<27|(n[15]&255)<<20|(n[16]&254)<<12|(n[17]&255)<<5|(n[18]&254)>>>3,t.dts*=4,t.dts+=(n[18]&6)>>>1));t.data=n.subarray(9+n[8])},n=function(n,i){var f=new Uint8Array(n.size),r={type:i},e=0,u;if(n.data.length){for(r.trackId=n.data[0].pid;n.data.length;)u=n.data.shift(),f.set(u.data,e),e+=u.data.byteLength;o(f,r);n.size=0;t.trigger("data",r)}};e.prototype.init.call(this);this.push=function(e){({pat:function(){},pes:function(){var t,o;switch(e.streamType){case i.H264_STREAM_TYPE:case h.H264_STREAM_TYPE:t=r;o="video";break;case i.ADTS_STREAM_TYPE:t=u;o="audio";break;case i.METADATA_STREAM_TYPE:t=f;o="timed-metadata";break;default:return}e.payloadUnitStartIndicator&&n(t,o);t.data.push(e);t.size+=e.data.byteLength},pmt:function(){var u={type:"metadata",tracks:[]},r=e.programMapTable,i,n;for(i in r)r.hasOwnProperty(i)&&(n={timelineStartInfo:{baseMediaDecodeTime:0}},n.id=+i,r[i]===h.H264_STREAM_TYPE?(n.codec="avc",n.type="video"):r[i]===h.ADTS_STREAM_TYPE&&(n.codec="adts",n.type="audio"),u.tracks.push(n));t.trigger("data",u)}})[e.type]()};this.flush=function(){n(r,"video");n(u,"audio");n(f,"timed-metadata");this.trigger("done")}};e.prototype=new s;l={PAT_PID:0,MP2T_PACKET_LENGTH:r,TransportPacketStream:f,TransportParseStream:u,ElementaryStream:e,TimestampRolloverStream:v,CaptionStream:a.CaptionStream,Cea608Stream:a.Cea608Stream,MetadataStream:n("./metadata-stream")};for(o in i)i.hasOwnProperty(o)&&(l[o]=i[o]);t.exports=l},{"../utils/stream.js":89,"./caption-stream":77,"./metadata-stream":79,"./stream-types":81,"./stream-types.js":81,"./timestamp-rollover-stream":82}],79:[function(n,t){"use strict";var o=n("../utils/stream"),s=n("./stream-types"),f=function(n,t,i){for(var u="",r=t;r<i;r++)u+="%"+("00"+n[r].toString(16)).slice(-2);return u},i=function(n,t,i){return decodeURIComponent(f(n,t,i))},h=function(n,t,i){return unescape(f(n,t,i))},r=function(n){return n[0]<<21|n[1]<<14|n[2]<<7|n[3]},e={TXXX:function(n){var t;if(n.data[0]===3){for(t=1;t<n.data.length;t++)if(n.data[t]===0){n.description=i(n.data,1,t);n.value=i(n.data,t+1,n.data.length-1);break}n.data=n.value}},WXXX:function(n){var t;if(n.data[0]===3)for(t=1;t<n.data.length;t++)if(n.data[t]===0){n.description=i(n.data,1,t);n.url=i(n.data,t+1,n.data.length);break}},PRIV:function(n){for(var t=0;t<n.data.length;t++)if(n.data[t]===0){n.owner=h(n.data,0,t);break}n.privateData=n.data.subarray(t+1);n.data=n.privateData}},u;u=function(n){var f={debug:!!(n&&n.debug),descriptor:n&&n.descriptor},i=0,t=[],o=0,h;if(u.prototype.init.call(this),this.dispatchType=s.METADATA_STREAM_TYPE.toString(16),f.descriptor)for(h=0;h<f.descriptor.length;h++)this.dispatchType+=("00"+f.descriptor[h].toString(16)).slice(-2);this.push=function(n){var u,s,a,h,l,y,c,v;if(n.type==="timed-metadata"){if(n.dataAlignmentIndicator&&(o=0,t.length=0),t.length===0&&(n.data.length<10||n.data[0]!=="I".charCodeAt(0)||n.data[1]!=="D".charCodeAt(0)||n.data[2]!=="3".charCodeAt(0))){f.debug&&console.log("Skipping unrecognized metadata packet");return}if(t.push(n),o+=n.data.byteLength,t.length===1&&(i=r(n.data.subarray(6,10))+10),!(o<i)){for(u={data:new Uint8Array(i),frames:[],pts:t[0].pts,dts:t[0].dts},l=0;l<i;)u.data.set(t[0].data.subarray(0,i-l),l),l+=t[0].data.byteLength,o-=t[0].data.byteLength,t.shift();s=10;u.data[5]&64&&(s+=4,s+=r(u.data.subarray(10,14)),i-=r(u.data.subarray(16,20)));do{if(a=r(u.data.subarray(s+4,s+8)),a<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");y=String.fromCharCode(u.data[s],u.data[s+1],u.data[s+2],u.data[s+3]);h={id:y,data:u.data.subarray(s+10,s+a+10)};h.key=h.id;e[h.id]&&(e[h.id](h),h.owner==="com.apple.streaming.transportStreamTimestamp"&&(c=h.data,v=(c[3]&1)<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2,v*=4,v+=c[7]&3,h.timeStamp=v,u.pts===undefined&&u.dts===undefined&&(u.pts=h.timeStamp,u.dts=h.timeStamp),this.trigger("timestamp",h)));u.frames.push(h);s+=10;s+=a}while(s<i);this.trigger("data",u)}}}};u.prototype=new o;t.exports=u},{"../utils/stream":89,"./stream-types":81}],80:[function(n,t){"use strict";var u=n("./stream-types.js"),e=function(n){var t=n[1]&31;return t<<=8,t|n[2]},i=function(n){return!!(n[1]&64)},r=function(n){var t=0;return(n[3]&48)>>>4>1&&(t+=n[4]+1),t},o=function(n,t){var i=e(n);return i===0?"pat":i===t?"pmt":t?"pes":null},s=function(n){var u=i(n),t=4+r(n);return u&&(t+=n[t]+1),(n[t+10]&31)<<8|n[t+11]},h=function(n){var e={},c=i(n),t=4+r(n),o,s,h,f,u;if(c&&(t+=n[t]+1),n[t+5]&1){for(o=(n[t+1]&15)<<8|n[t+2],s=3+o-4,h=(n[t+10]&15)<<8|n[t+11],f=12+h;f<s;)u=t+f,e[(n[u+1]&31)<<8|n[u+2]]=n[u],f+=((n[u+3]&15)<<8|n[u+4])+5;return e}},c=function(n,t){var i=e(n),r=t[i];switch(r){case u.H264_STREAM_TYPE:return"video";case u.ADTS_STREAM_TYPE:return"audio";case u.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},l=function(n){var e=i(n),t,u,f;return e?(t=4+r(n),u={},f=n[t+7],f&192&&(u.pts=(n[t+9]&14)<<27|(n[t+10]&255)<<20|(n[t+11]&254)<<12|(n[t+12]&255)<<5|(n[t+13]&254)>>>3,u.pts*=4,u.pts+=(n[t+13]&6)>>>1,u.dts=u.pts,f&64&&(u.dts=(n[t+14]&14)<<27|(n[t+15]&255)<<20|(n[t+16]&254)<<12|(n[t+17]&255)<<5|(n[t+18]&254)>>>3,u.dts*=4,u.dts+=(n[t+18]&6)>>>1)),u):null},f=function(n){switch(n){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},a=function(n){for(var s=4+r(n),i=n.subarray(s),t=0,u=0,o=!1,e;u<i.byteLength-3;u++)if(i[u+2]===1){t=u+5;break}while(t<i.byteLength)switch(i[t]){case 0:if(i[t-1]!==0){t+=2;break}else if(i[t-2]!==0){t++;break}u+3!==t-2&&(e=f(i[u+3]&31),e==="slice_layer_without_partitioning_rbsp_idr"&&(o=!0));do t++;while(i[t]!==1&&t<i.length);u=t-2;t+=3;break;case 1:if(i[t-1]!==0||i[t-2]!==0){t+=3;break}e=f(i[u+3]&31);e==="slice_layer_without_partitioning_rbsp_idr"&&(o=!0);u=t-2;t+=3;break;default:t+=3}return i=i.subarray(u),t-=u,u=0,i&&i.byteLength>3&&(e=f(i[u+3]&31),e==="slice_layer_without_partitioning_rbsp_idr"&&(o=!0)),o};t.exports={parseType:o,parsePat:s,parsePmt:h,parsePayloadUnitStartIndicator:i,parsePesType:c,parsePesTime:l,videoPacketContainsKeyFrame:a}},{"./stream-types.js":81}],81:[function(n,t){"use strict";t.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},{}],82:[function(n,t){"use strict";var u=n("../utils/stream"),f=8589934592,e=4294967296,i=function(n,t){var i=1;for(n>t&&(i=-1);Math.abs(t-n)>e;)n+=i*f;return n},r=function(n){var u,t;r.prototype.init.call(this);this.type_=n;this.push=function(n){n.type===this.type_&&(t===undefined&&(t=n.dts),n.dts=i(n.dts,t),n.pts=i(n.pts,t),u=n.dts,this.trigger("data",n))};this.flush=function(){t=u;this.trigger("done")}};r.prototype=new u;t.exports={TimestampRolloverStream:r,handleRollover:i}},{"../utils/stream":89}],83:[function(n,t){t.exports={generator:n("./mp4-generator"),Transmuxer:n("./transmuxer").Transmuxer,AudioSegmentStream:n("./transmuxer").AudioSegmentStream,VideoSegmentStream:n("./transmuxer").VideoSegmentStream}},{"./mp4-generator":84,"./transmuxer":86}],84:[function(n,t){"use strict";var h=Math.pow(2,32)-1,r,c,l,f,a,v,y,p,e,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,o,i,s,ot,st,ht,ct,lt,at,vt,yt,u,pt,wt,bt;(function(){var n;if(i={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},typeof Uint8Array!="undefined"){for(n in i)i.hasOwnProperty(n)&&(i[n]=[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3)]);s=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]);st=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]);ot=new Uint8Array([0,0,0,1]);ht=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]);ct=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);lt={video:ht,audio:ct};yt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]);vt=new Uint8Array([0,0,0,0,0,0,0,0]);u=new Uint8Array([0,0,0,0,0,0,0,0]);pt=u;wt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]);bt=u;at=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})();r=function(n){for(var r=[],u=0,i,f,t=1;t<arguments.length;t++)r.push(arguments[t]);for(t=r.length;t--;)u+=r[t].byteLength;for(i=new Uint8Array(u+8),f=new DataView(i.buffer,i.byteOffset,i.byteLength),f.setUint32(0,i.byteLength),i.set(n,4),t=0,u=8;t<r.length;t++)i.set(r[t],u),u+=r[t].byteLength;return i};c=function(){return r(i.dinf,r(i.dref,yt))};l=function(n){return r(i.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,n.audioobjecttype<<3|n.samplingfrequencyindex>>>1,n.samplingfrequencyindex<<7|n.channelcount<<3,6,1,2]))};f=function(){return r(i.ftyp,s,ot,s,st)};tt=function(n){return r(i.hdlr,lt[n])};a=function(n){return r(i.mdat,n)};nt=function(n){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,n.duration>>>24&255,n.duration>>>16&255,n.duration>>>8&255,n.duration&255,85,196,0,0]);return n.samplerate&&(t[12]=n.samplerate>>>24&255,t[13]=n.samplerate>>>16&255,t[14]=n.samplerate>>>8&255,t[15]=n.samplerate&255),r(i.mdhd,t)};g=function(n){return r(i.mdia,nt(n),tt(n.type),y(n))};v=function(n){return r(i.mfhd,new Uint8Array([0,0,0,0,(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255]))};y=function(n){return r(i.minf,n.type==="video"?r(i.vmhd,at):r(i.smhd,vt),c(),rt(n))};p=function(n,t){for(var f=[],u=t.length;u--;)f[u]=ft(t[u]);return r.apply(null,[i.moof,v(n)].concat(f))};e=function(n){for(var t=n.length,u=[];t--;)u[t]=k(n[t]);return r.apply(null,[i.moov,b(4294967295)].concat(u).concat(w(n)))};w=function(n){for(var t=n.length,u=[];t--;)u[t]=et(n[t]);return r.apply(null,[i.mvex].concat(u))};b=function(n){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return r(i.mvhd,t)};it=function(n){for(var f=n.samples||[],e=new Uint8Array(4+f.length),u,t=0;t<f.length;t++)u=f[t].flags,e[t+4]=u.dependsOn<<4|u.isDependedOn<<2|u.hasRedundancy;return r(i.sdtp,e)};rt=function(n){return r(i.stbl,ut(n),r(i.stts,bt),r(i.stsc,pt),r(i.stsz,wt),r(i.stco,u))},function(){var n,t;ut=function(u){return r(i.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),u.type==="video"?n(u):t(u))};n=function(n){for(var u=n.sps||[],f=n.pps||[],e=[],o=[],t=0;t<u.length;t++)e.push((u[t].byteLength&65280)>>>8),e.push(u[t].byteLength&255),e=e.concat(Array.prototype.slice.call(u[t]));for(t=0;t<f.length;t++)o.push((f[t].byteLength&65280)>>>8),o.push(f[t].byteLength&255),o=o.concat(Array.prototype.slice.call(f[t]));return r(i.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(n.width&65280)>>8,n.width&255,(n.height&65280)>>8,n.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),r(i.avcC,new Uint8Array([1,n.profileIdc,n.profileCompatibility,n.levelIdc,255].concat([u.length]).concat(e).concat([f.length]).concat(o))),r(i.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))};t=function(n){return r(i.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(n.channelcount&65280)>>8,n.channelcount&255,(n.samplesize&65280)>>8,n.samplesize&255,0,0,0,0,(n.samplerate&65280)>>8,n.samplerate&255,0,0]),l(n))}}();d=function(n){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(n.id&4278190080)>>24,(n.id&16711680)>>16,(n.id&65280)>>8,n.id&255,0,0,0,0,(n.duration&4278190080)>>24,(n.duration&16711680)>>16,(n.duration&65280)>>8,n.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(n.width&65280)>>8,n.width&255,0,0,(n.height&65280)>>8,n.height&255,0,0]);return r(i.tkhd,t)};ft=function(n){var e,s,f,c,l,t,u;return(e=r(i.tfhd,new Uint8Array([0,0,0,58,(n.id&4278190080)>>24,(n.id&16711680)>>16,(n.id&65280)>>8,n.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),t=Math.floor(n.baseMediaDecodeTime/(h+1)),u=Math.floor(n.baseMediaDecodeTime%(h+1)),s=r(i.tfdt,new Uint8Array([1,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255])),l=92,n.type==="audio")?(f=o(n,l),r(i.traf,e,s,f)):(c=it(n),f=o(n,c.length+l),r(i.traf,e,s,f,c))};k=function(n){return n.duration=n.duration||4294967295,r(i.trak,d(n),g(n))};et=function(n){var t=new Uint8Array([0,0,0,0,(n.id&4278190080)>>24,(n.id&16711680)>>16,(n.id&65280)>>8,n.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return n.type!=="video"&&(t[t.length-1]=0),r(i.trex,t)},function(){var t,u,n;n=function(n,t){var i=0,r=0,u=0,f=0;return n.length&&(n[0].duration!==undefined&&(i=1),n[0].size!==undefined&&(r=2),n[0].flags!==undefined&&(u=4),n[0].compositionTimeOffset!==undefined&&(f=8)),[0,0,i|r|u|f,1,(n.length&4278190080)>>>24,(n.length&16711680)>>>16,(n.length&65280)>>>8,n.length&255,(t&4278190080)>>>24,(t&16711680)>>>16,(t&65280)>>>8,t&255]};u=function(t,u){var o,e,f,s;for(e=t.samples||[],u+=20+16*e.length,o=n(e,u),s=0;s<e.length;s++)f=e[s],o=o.concat([(f.duration&4278190080)>>>24,(f.duration&16711680)>>>16,(f.duration&65280)>>>8,f.duration&255,(f.size&4278190080)>>>24,(f.size&16711680)>>>16,(f.size&65280)>>>8,f.size&255,f.flags.isLeading<<2|f.flags.dependsOn,f.flags.isDependedOn<<6|f.flags.hasRedundancy<<4|f.flags.paddingValue<<1|f.flags.isNonSyncSample,f.flags.degradationPriority&61440,f.flags.degradationPriority&15,(f.compositionTimeOffset&4278190080)>>>24,(f.compositionTimeOffset&16711680)>>>16,(f.compositionTimeOffset&65280)>>>8,f.compositionTimeOffset&255]);return r(i.trun,new Uint8Array(o))};t=function(t,u){var o,e,f,s;for(e=t.samples||[],u+=20+8*e.length,o=n(e,u),s=0;s<e.length;s++)f=e[s],o=o.concat([(f.duration&4278190080)>>>24,(f.duration&16711680)>>>16,(f.duration&65280)>>>8,f.duration&255,(f.size&4278190080)>>>24,(f.size&16711680)>>>16,(f.size&65280)>>>8,f.size&255]);return r(i.trun,new Uint8Array(o))};o=function(n,i){return n.type==="audio"?t(n,i):u(n,i)}}();t.exports={ftyp:f,mdat:a,moof:p,moov:e,initSegment:function(n){var i=f(),r=e(n),t;return t=new Uint8Array(i.byteLength+r.byteLength),t.set(i),t.set(r,i.byteLength),t}}},{}],85:[function(n,t){"use strict";var i,r,u,f;i=function(n,t){var e=[],u,f,h,o,s;if(!t.length)return null;for(u=0;u<n.byteLength;)f=n[u]<<24,f|=n[u+1]<<16,f|=n[u+2]<<8,f|=n[u+3],h=r(n.subarray(u+4,u+8)),o=f>1?u+f:n.byteLength,h===t[0]&&(t.length===1?e.push(n.subarray(u+8,o)):(s=i(n.subarray(u+8,o),t.slice(1)),s.length&&(e=e.concat(s)))),u=o;return e};r=function(n){var t="";return t+=String.fromCharCode(n[0]),t+=String.fromCharCode(n[1]),t+=String.fromCharCode(n[2]),t+String.fromCharCode(n[3])};u=function(n){var t=i(n,["moov","trak"]);return t.reduce(function(n,t){var u,e,r,o,f;return(u=i(t,["tkhd"])[0],!u)?null:(e=u[0],r=e===0?12:20,o=u[r]<<24|u[r+1]<<16|u[r+2]<<8|u[r+3],f=i(t,["mdia","mdhd"])[0],!f)?null:(e=f[0],r=e===0?12:20,n[o]=f[r]<<24|f[r+1]<<16|f[r+2]<<8|f[r+3],n)},{})};f=function(n,t){var u,f,r;return u=i(t,["moof","traf"]),f=[].concat.apply([],u.map(function(t){return i(t,["tfhd"]).map(function(r){var f,e,u;return f=r[4]<<24|r[5]<<16|r[6]<<8|r[7],e=n[f]||9e4,u=i(t,["tfdt"]).map(function(n){var i,t;return i=n[0],t=n[4]<<24|n[5]<<16|n[6]<<8|n[7],i===1&&(t*=Math.pow(2,32),t+=n[8]<<24|n[9]<<16|n[10]<<8|n[11]),t})[0],u=u||Infinity,u/e})})),r=Math.min.apply(null,f),isFinite(r)?r:0};t.exports={parseType:r,timescale:u,startTime:f}},{}],86:[function(n,t){"use strict";var s=n("../utils/stream.js"),f=n("./mp4-generator.js"),i=n("../m2ts/m2ts.js"),p=n("../codecs/adts.js"),d=n("../codecs/h264").H264Stream,g=n("../aac"),l=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],a=["width","height","profileIdc","levelIdc","profileCompatibility"],e,r,h,u,w,b,c,o,v,y,k;w=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0}}};b=function(n){return n[0]==="I".charCodeAt(0)&&n[1]==="D".charCodeAt(0)&&n[2]==="3".charCodeAt(0)?!0:!1};y=function(n,t){var i;if(n.length!==t.length)return!1;for(i=0;i<n.length;i++)if(n[i]!==t[i])return!1;return!0};k=function(n){for(var i,r=0,t=0;t<n.length;t++)i=n[t],r+=i.data.byteLength;return r};r=function(n){var t=[],u=0,i=0;r.prototype.init.call(this);this.push=function(i){c(n,i);n&&l.forEach(function(t){n[t]=i[t]});t.push(i)};this.setEarliestDts=function(t){i=t-n.timelineStartInfo.baseMediaDecodeTime};this.flush=function(){var e,i,s,r;if(t.length===0){this.trigger("done","AudioSegmentStream");return}e=this.trimAdtsFramesByEarliestDts_(t);n.samples=this.generateSampleTable_(e);s=f.mdat(this.concatenateFrameData_(e));t=[];v(n);i=f.moof(u,[n]);r=new Uint8Array(i.byteLength+s.byteLength);u++;r.set(i);r.set(s,i.byteLength);o(n);this.trigger("data",{track:n,boxes:r});this.trigger("done","AudioSegmentStream")};this.trimAdtsFramesByEarliestDts_=function(t){return n.minSegmentDts>=i?t:(n.minSegmentDts=Infinity,t.filter(function(t){return t.dts>=i?(n.minSegmentDts=Math.min(n.minSegmentDts,t.dts),n.minSegmentPts=n.minSegmentDts,!0):!1}))};this.generateSampleTable_=function(n){for(var i,r=[],t=0;t<n.length;t++)i=n[t],r.push({size:i.data.byteLength,duration:1024});return r};this.concatenateFrameData_=function(n){for(var i,r=0,u=new Uint8Array(k(n)),t=0;t<n.length;t++)i=n[t],u.set(i.data,r),r+=i.data.byteLength;return u}};r.prototype=new s;e=function(n){var u=0,t=[],i,r;e.prototype.init.call(this);delete n.minPTS;this.gopCache_=[];this.push=function(u){c(n,u);u.nalUnitType!=="seq_parameter_set_rbsp"||i||(i=u.config,n.sps=[u.data],a.forEach(function(t){n[t]=i[t]},this));u.nalUnitType!=="pic_parameter_set_rbsp"||r||(r=u.data,n.pps=[u.data]);t.push(u)};this.flush=function(){for(var h,r,i,e,s,o;t.length;){if(t[0].nalUnitType==="access_unit_delimiter_rbsp")break;t.shift()}if(t.length===0){this.resetStream_();this.trigger("done","VideoSegmentStream");return}h=this.groupNalsIntoFrames_(t);i=this.groupFramesIntoGops_(h);i[0][0].keyFrame||(r=this.getGopForFusion_(t[0],n),r?(i.unshift(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.pts=r.pts,i.dts=r.dts,i.duration+=r.duration):i=this.extendFirstKeyFrame_(i));c(n,i);n.samples=this.generateSampleTable_(i);s=f.mdat(this.concatenateNalData_(i));this.gopCache_.unshift({gop:i.pop(),pps:n.pps,sps:n.sps});this.gopCache_.length=Math.min(6,this.gopCache_.length);t=[];v(n);this.trigger("timelineStartInfo",n.timelineStartInfo);e=f.moof(u,[n]);o=new Uint8Array(e.byteLength+s.byteLength);u++;o.set(e);o.set(s,e.byteLength);this.trigger("data",{track:n,boxes:o});this.resetStream_();this.trigger("done","VideoSegmentStream")};this.resetStream_=function(){o(n);i=undefined;r=undefined};this.getGopForFusion_=function(t){for(var o=Infinity,i,u,f,r,e=0;e<this.gopCache_.length;e++)(r=this.gopCache_[e],f=r.gop,n.pps&&y(n.pps[0],r.pps[0])&&n.sps&&y(n.sps[0],r.sps[0]))&&(f.dts<n.timelineStartInfo.dts||(i=t.dts-f.dts-f.duration,i>=-1e4&&i<=45e3&&(!u||o>i)&&(u=r,o=i)));return u?u.gop:null};this.extendFirstKeyFrame_=function(n){var t;return n[0][0].keyFrame||(t=n.shift(),n.byteLength-=t.byteLength,n.nalCount-=t.nalCount,n[0][0].dts=t.dts,n[0][0].pts=t.pts,n[0][0].duration+=t.duration),n};this.groupNalsIntoFrames_=function(n){var u,i,t=[],r=[];for(t.byteLength=0,u=0;u<n.length;u++)i=n[u],i.nalUnitType==="access_unit_delimiter_rbsp"?(t.length&&(t.duration=i.dts-t.dts,r.push(t)),t=[i],t.byteLength=i.data.byteLength,t.pts=i.pts,t.dts=i.dts):(i.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(t.keyFrame=!0),t.duration=i.dts-t.dts,t.byteLength+=i.data.byteLength,t.push(i));return r.length&&(!t.duration||t.duration<=0)&&(t.duration=r[r.length-1].duration),r.push(t),r};this.groupFramesIntoGops_=function(n){var u,r,t=[],i=[];for(t.byteLength=0,t.nalCount=0,t.duration=0,t.pts=n[0].pts,t.dts=n[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=n[0].pts,i.dts=n[0].dts,u=0;u<n.length;u++)r=n[u],r.keyFrame?(t.length&&(i.push(t),i.byteLength+=t.byteLength,i.nalCount+=t.nalCount,i.duration+=t.duration),t=[r],t.nalCount=r.length,t.byteLength=r.byteLength,t.pts=r.pts,t.dts=r.dts,t.duration=r.duration):(t.duration+=r.duration,t.nalCount+=r.length,t.byteLength+=r.byteLength,t.push(r));return i.length&&t.duration<=0&&(t.duration=i[i.length-1].duration),i.byteLength+=t.byteLength,i.nalCount+=t.nalCount,i.duration+=t.duration,i.push(t),i};this.generateSampleTable_=function(n,t){for(var f,i,e,r,o=t||0,s=[],u=0;u<n.length;u++)for(e=n[u],f=0;f<e.length;f++)r=e[f],i=w(),i.dataOffset=o,i.compositionTimeOffset=r.pts-r.dts,i.duration=r.duration,i.size=4*r.length,i.size+=r.byteLength,r.keyFrame&&(i.flags.dependsOn=2),o+=i.size,s.push(i);return s};this.concatenateNalData_=function(n){for(var i,r,e,o,u,f=0,h=n.byteLength,c=n.nalCount,l=h+4*c,s=new Uint8Array(l),a=new DataView(s.buffer),t=0;t<n.length;t++)for(e=n[t],i=0;i<e.length;i++)for(o=e[i],r=0;r<o.length;r++)u=o[r],a.setUint32(f,u.data.byteLength),f+=4,s.set(u.data,f),f+=u.data.byteLength;return s}};e.prototype=new s;c=function(n,t){typeof t.pts=="number"&&(n.timelineStartInfo.pts===undefined&&(n.timelineStartInfo.pts=t.pts),n.minSegmentPts=n.minSegmentPts===undefined?t.pts:Math.min(n.minSegmentPts,t.pts),n.maxSegmentPts=n.maxSegmentPts===undefined?t.pts:Math.max(n.maxSegmentPts,t.pts));typeof t.dts=="number"&&(n.timelineStartInfo.dts===undefined&&(n.timelineStartInfo.dts=t.dts),n.minSegmentDts=n.minSegmentDts===undefined?t.dts:Math.min(n.minSegmentDts,t.dts),n.maxSegmentDts=n.maxSegmentDts===undefined?t.dts:Math.max(n.maxSegmentDts,t.dts))};o=function(n){delete n.minSegmentDts;delete n.maxSegmentDts;delete n.minSegmentPts;delete n.maxSegmentPts};v=function(n){var t,i=n.minSegmentDts-n.timelineStartInfo.dts;n.baseMediaDecodeTime=n.timelineStartInfo.baseMediaDecodeTime;n.baseMediaDecodeTime+=i;n.baseMediaDecodeTime=Math.max(0,n.baseMediaDecodeTime);n.type==="audio"&&(t=n.samplerate/9e4,n.baseMediaDecodeTime*=t,n.baseMediaDecodeTime=Math.floor(n.baseMediaDecodeTime))};u=function(n,t){this.numberOfTracks=0;this.metadataStream=t;this.remuxTracks=typeof n.remux!="undefined"?!!n.remux:!0;this.pendingTracks=[];this.videoTrack=null;this.pendingBoxes=[];this.pendingCaptions=[];this.pendingMetadata=[];this.pendingBytes=0;this.emittedTracks=0;u.prototype.init.call(this);this.push=function(n){if(n.text)return this.pendingCaptions.push(n);if(n.frames)return this.pendingMetadata.push(n);this.pendingTracks.push(n.track);this.pendingBoxes.push(n.boxes);this.pendingBytes+=n.boxes.byteLength;n.track.type==="video"&&(this.videoTrack=n.track);n.track.type==="audio"&&(this.audioTrack=n.track)}};u.prototype=new s;u.prototype.flush=function(n){var s=0,i={captions:[],metadata:[],info:{}},r,u,o,e=0,t;if(this.pendingTracks.length<this.numberOfTracks){if(n!=="VideoSegmentStream"&&n!=="AudioSegmentStream")return;if(this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++;this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}for(this.videoTrack?(e=this.videoTrack.timelineStartInfo.pts,a.forEach(function(n){i.info[n]=this.videoTrack[n]},this)):this.audioTrack&&(e=this.audioTrack.timelineStartInfo.pts,l.forEach(function(n){i.info[n]=this.audioTrack[n]},this)),i.type=this.pendingTracks.length===1?this.pendingTracks[0].type:"combined",this.emittedTracks+=this.pendingTracks.length,o=f.initSegment(this.pendingTracks),i.initSegment=new Uint8Array(o.byteLength),i.initSegment.set(o),i.data=new Uint8Array(this.pendingBytes),t=0;t<this.pendingBoxes.length;t++)i.data.set(this.pendingBoxes[t],s),s+=this.pendingBoxes[t].byteLength;for(t=0;t<this.pendingCaptions.length;t++)r=this.pendingCaptions[t],r.startTime=r.startPts-e,r.startTime/=9e4,r.endTime=r.endPts-e,r.endTime/=9e4,i.captions.push(r);for(t=0;t<this.pendingMetadata.length;t++)u=this.pendingMetadata[t],u.cueTime=u.pts-e,u.cueTime/=9e4,i.metadata.push(u);i.metadata.dispatchType=this.metadataStream.dispatchType;this.pendingTracks.length=0;this.videoTrack=null;this.pendingBoxes.length=0;this.pendingCaptions.length=0;this.pendingBytes=0;this.pendingMetadata.length=0;this.trigger("data",i);this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)};h=function(n){var s=this,c=!0,f,t;h.prototype.init.call(this);n=n||{};this.baseMediaDecodeTime=n.baseMediaDecodeTime||0;this.transmuxPipeline_={};this.setupAacPipeline=function(){var f={};this.transmuxPipeline_=f;f.type="aac";f.metadataStream=new i.MetadataStream;f.aacStream=new g;f.audioTimestampRolloverStream=new i.TimestampRolloverStream("audio");f.timedMetadataTimestampRolloverStream=new i.TimestampRolloverStream("timed-metadata");f.adtsStream=new p;f.coalesceStream=new u(n,f.metadataStream);f.headOfPipeline=f.aacStream;f.aacStream.pipe(f.audioTimestampRolloverStream).pipe(f.adtsStream);f.aacStream.pipe(f.timedMetadataTimestampRolloverStream).pipe(f.metadataStream).pipe(f.coalesceStream);f.metadataStream.on("timestamp",function(n){f.aacStream.setTimestamp(n.timeStamp)});f.aacStream.on("data",function(n){n.type!=="timed-metadata"||f.audioSegmentStream||(t=t||{timelineStartInfo:{baseMediaDecodeTime:s.baseMediaDecodeTime},codec:"adts",type:"audio"},f.coalesceStream.numberOfTracks++,f.audioSegmentStream=new r(t),f.adtsStream.pipe(f.audioSegmentStream).pipe(f.coalesceStream))});f.coalesceStream.on("data",this.trigger.bind(this,"data"));f.coalesceStream.on("done",this.trigger.bind(this,"done"))};this.setupTsPipeline=function(){var o={};this.transmuxPipeline_=o;o.type="ts";o.metadataStream=new i.MetadataStream;o.packetStream=new i.TransportPacketStream;o.parseStream=new i.TransportParseStream;o.elementaryStream=new i.ElementaryStream;o.videoTimestampRolloverStream=new i.TimestampRolloverStream("video");o.audioTimestampRolloverStream=new i.TimestampRolloverStream("audio");o.timedMetadataTimestampRolloverStream=new i.TimestampRolloverStream("timed-metadata");o.adtsStream=new p;o.h264Stream=new d;o.captionStream=new i.CaptionStream;o.coalesceStream=new u(n,o.metadataStream);o.headOfPipeline=o.packetStream;o.packetStream.pipe(o.parseStream).pipe(o.elementaryStream);o.elementaryStream.pipe(o.videoTimestampRolloverStream).pipe(o.h264Stream);o.elementaryStream.pipe(o.audioTimestampRolloverStream).pipe(o.adtsStream);o.elementaryStream.pipe(o.timedMetadataTimestampRolloverStream).pipe(o.metadataStream).pipe(o.coalesceStream);o.h264Stream.pipe(o.captionStream).pipe(o.coalesceStream);o.elementaryStream.on("data",function(n){var i;if(n.type==="metadata"){for(i=n.tracks.length;i--;)f||n.tracks[i].type!=="video"?t||n.tracks[i].type!=="audio"||(t=n.tracks[i],t.timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime):(f=n.tracks[i],f.timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime);if(f&&!o.videoSegmentStream){o.coalesceStream.numberOfTracks++;o.videoSegmentStream=new e(f);o.videoSegmentStream.on("timelineStartInfo",function(n){t&&(t.timelineStartInfo=n,o.audioSegmentStream.setEarliestDts(n.dts))});o.h264Stream.pipe(o.videoSegmentStream).pipe(o.coalesceStream)}t&&!o.audioSegmentStream&&(o.coalesceStream.numberOfTracks++,o.audioSegmentStream=new r(t),o.adtsStream.pipe(o.audioSegmentStream).pipe(o.coalesceStream))}});o.coalesceStream.on("data",this.trigger.bind(this,"data"));o.coalesceStream.on("done",this.trigger.bind(this,"done"))};this.setBaseMediaDecodeTime=function(n){var i=this.transmuxPipeline_;this.baseMediaDecodeTime=n;t&&(t.timelineStartInfo.dts=undefined,t.timelineStartInfo.pts=undefined,o(t),t.timelineStartInfo.baseMediaDecodeTime=n);f&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[]),f.timelineStartInfo.dts=undefined,f.timelineStartInfo.pts=undefined,o(f),f.timelineStartInfo.baseMediaDecodeTime=n)};this.push=function(n){if(c){var t=b(n);t&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():t||this.transmuxPipeline_.type==="ts"||this.setupTsPipeline();c=!1}this.transmuxPipeline_.headOfPipeline.push(n)};this.flush=function(){c=!0;this.transmuxPipeline_.headOfPipeline.flush()}};h.prototype=new s;t.exports={Transmuxer:h,VideoSegmentStream:e,AudioSegmentStream:r,AUDIO_PROPERTIES:l,VIDEO_PROPERTIES:a}},{"../aac":69,"../codecs/adts.js":71,"../codecs/h264":72,"../m2ts/m2ts.js":78,"../utils/stream.js":89,"./mp4-generator.js":84}],87:[function(n,t){"use strict";var o=n("../m2ts/stream-types.js"),e=n("../m2ts/timestamp-rollover-stream.js").handleRollover,i={};i.ts=n("../m2ts/probe.js");i.aac=n("../aac/probe.js");var f=9e4,r=188,u=71,s=function(n){return n[0]==="I".charCodeAt(0)&&n[1]==="D".charCodeAt(0)&&n[2]==="3".charCodeAt(0)?!0:!1},h=function(n,t){for(var e=0,f=r,o,s;f<n.byteLength;){if(n[e]===u&&n[f]===u){o=n.subarray(e,f);s=i.ts.parseType(o,t.pid);switch(s){case"pat":t.pid||(t.pid=i.ts.parsePat(o));break;case"pmt":t.table||(t.table=i.ts.parsePmt(o))}if(t.pid&&t.table)return;e+=r;f+=r;continue}e++;f++}},c=function(n,t,f){for(var o=0,e=r,s,l,a,v,h,c=!1;e<n.byteLength;){if(n[o]===u&&n[e]===u){s=n.subarray(o,e);l=i.ts.parseType(s,t.pid);switch(l){case"pes":a=i.ts.parsePesType(s,t.table);v=i.ts.parsePayloadUnitStartIndicator(s);a==="audio"&&v&&(h=i.ts.parsePesTime(s),h.type="audio",f.audio.push(h),c=!0)}if(c)break;o+=r;e+=r;continue}o++;e++}for(e=n.byteLength,o=e-r,c=!1;o>=0;){if(n[o]===u&&n[e]===u){s=n.subarray(o,e);l=i.ts.parseType(s,t.pid);switch(l){case"pes":a=i.ts.parsePesType(s,t.table);v=i.ts.parsePayloadUnitStartIndicator(s);a==="audio"&&v&&(h=i.ts.parsePesTime(s),h.type="audio",f.audio.push(h),c=!0)}if(c)break;o-=r;e-=r;continue}o--;e--}},l=function(n,t,f){for(var s=0,o=r,e,v,y,a,c,p,w,b,l=!1,h={data:[],size:0};o<n.byteLength;){if(n[s]===u&&n[o]===u){e=n.subarray(s,o);v=i.ts.parseType(e,t.pid);switch(v){case"pes":if(y=i.ts.parsePesType(e,t.table),a=i.ts.parsePayloadUnitStartIndicator(e),y==="video"&&(a&&!l&&(c=i.ts.parsePesTime(e),c.type="video",f.video.push(c),l=!0),!f.firstKeyFrame)){if(a&&h.size!==0){for(p=new Uint8Array(h.size),w=0;h.data.length;)b=h.data.shift(),p.set(b,w),w+=b.byteLength;i.ts.videoPacketContainsKeyFrame(p)&&(f.firstKeyFrame=i.ts.parsePesTime(p),f.firstKeyFrame.type="video");h.size=0}h.data.push(e);h.size+=e.byteLength}}if(l&&f.firstKeyFrame)break;s+=r;o+=r;continue}s++;o++}for(o=n.byteLength,s=o-r,l=!1;s>=0;){if(n[s]===u&&n[o]===u){e=n.subarray(s,o);v=i.ts.parseType(e,t.pid);switch(v){case"pes":y=i.ts.parsePesType(e,t.table);a=i.ts.parsePayloadUnitStartIndicator(e);y==="video"&&a&&(c=i.ts.parsePesTime(e),c.type="video",f.video.push(c),l=!0)}if(l)break;s-=r;o-=r;continue}s--;o--}},a=function(n,t){var u,r,i;n.audio&&n.audio.length&&(u=t,typeof u=="undefined"&&(u=n.audio[0].dts),n.audio.forEach(function(n){n.dts=e(n.dts,u);n.pts=e(n.pts,u);n.dtsTime=n.dts/f;n.ptsTime=n.pts/f}));n.video&&n.video.length&&(r=t,typeof r=="undefined"&&(r=n.video[0].dts),n.video.forEach(function(n){n.dts=e(n.dts,r);n.pts=e(n.pts,r);n.dtsTime=n.dts/f;n.ptsTime=n.pts/f}),n.firstKeyFrame&&(i=n.firstKeyFrame,i.dts=e(i.dts,r),i.pts=e(i.pts,r),i.dtsTime=i.dts/f,i.ptsTime=i.dts/f))},v=function(n){for(var e=!1,h=0,o=null,u=null,r=0,t=0,s,l,c,a;n.length-t>=3;){l=i.aac.parseType(n,t);switch(l){case"timed-metadata":if(n.length-t<10){e=!0;break}if(r=i.aac.parseId3TagSize(n,t),r>n.length){e=!0;break}u===null&&(s=n.subarray(t,t+r),u=i.aac.parseAacTimestamp(s));t+=r;break;case"audio":if(n.length-t<7){e=!0;break}if(r=i.aac.parseAdtsSize(n,t),r>n.length){e=!0;break}o===null&&(s=n.subarray(t,t+r),o=i.aac.parseSampleRate(s));h++;t+=r;break;default:t++}if(e)return null}return o===null||u===null?null:(c=f/o,a={audio:[{type:"audio",dts:u,pts:u},{type:"audio",dts:u+h*1024*c,pts:u+h*1024*c}]},a)},y=function(n){var i={pid:null,table:null},t={},r,u;h(n,i);for(r in i.table)if(i.table.hasOwnProperty(r)){u=i.table[r];switch(u){case o.H264_STREAM_TYPE:t.video=[];l(n,i,t);t.video.length===0&&delete t.video;break;case o.ADTS_STREAM_TYPE:t.audio=[];c(n,i,t);t.audio.length===0&&delete t.audio}}return t},p=function(n,t){var r=s(n),i;return(i=r?v(n):y(n),!i||!i.audio&&!i.video)?null:(a(i,t),i)};t.exports={inspect:p}},{"../aac/probe.js":70,"../m2ts/probe.js":80,"../m2ts/stream-types.js":81,"../m2ts/timestamp-rollover-stream.js":82}],88:[function(n,t){"use strict";var i;i=function(n){var i=n.byteLength,r=0,t=0;this.length=function(){return 8*i};this.bitsAvailable=function(){return 8*i+t};this.loadWord=function(){var f=n.byteLength-i,e=new Uint8Array(4),u=Math.min(4,i);if(u===0)throw new Error("no bytes available");e.set(n.subarray(f,f+u));r=new DataView(e.buffer).getUint32(0);t=u*8;i-=u};this.skipBits=function(n){var u;t>n?(r<<=n,t-=n):(n-=t,u=Math.floor(n/8),n-=u*8,i-=u,this.loadWord(),r<<=n,t-=n)};this.readBits=function(n){var u=Math.min(t,n),f=r>>>32-u;return(t-=u,t>0?r<<=u:i>0&&this.loadWord(),u=n-u,u>0)?f<<u|this.readBits(u):f};this.skipLeadingZeros=function(){for(var n=0;n<t;++n)if((r&2147483648>>>n)!=0)return r<<=n,t-=n,n;return this.loadWord(),n+this.skipLeadingZeros()};this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.readUnsignedExpGolomb=function(){var n=this.skipLeadingZeros();return this.readBits(n+1)-1};this.readExpGolomb=function(){var n=this.readUnsignedExpGolomb();return 1&n?1+n>>>1:-1*(n>>>1)};this.readBoolean=function(){return this.readBits(1)===1};this.readUnsignedByte=function(){return this.readBits(8)};this.loadWord()};t.exports=i},{}],89:[function(n,t){"use strict";var i=function(){this.init=function(){var n={};this.on=function(t,i){n[t]||(n[t]=[]);n[t]=n[t].concat(i)};this.off=function(t,i){var r;return n[t]?(r=n[t].indexOf(i),n[t]=n[t].slice(),n[t].splice(r,1),r>-1):!1};this.trigger=function(t){var r,i,u,f;if(r=n[t],r)if(arguments.length===2)for(u=r.length,i=0;i<u;++i)r[i].call(this,arguments[1]);else{for(f=[],i=arguments.length,i=1;i<arguments.length;++i)f.push(arguments[i]);for(u=r.length,i=0;i<u;++i)r[i].apply(this,f)}};this.dispose=function(){n={}}}};i.prototype.pipe=function(n){this.on("data",function(t){n.push(t)});this.on("done",function(t){n.flush(t)});return n};i.prototype.push=function(n){this.trigger("data",n)};i.prototype.flush=function(n){this.trigger("done",n)};t.exports=i},{}],90:[function(t,i,r){(function(t){var u={buildAbsoluteURL:function(n,t){var r,h,c,i;if(t=t.trim(),/^[a-z]+:/i.test(t))return t;var e=null,o=null,s=/^([^#]*)(.*)$/.exec(t);if(s&&(o=s[2],t=s[1]),r=/^([^\?]*)(.*)$/.exec(t),r&&(e=r[2],t=r[1]),h=/^([^#]*)(.*)$/.exec(n),h&&(n=h[1]),c=/^([^\?]*)(.*)$/.exec(n),c&&(n=c[1]),i=/^(([a-z]+:)?\/\/[a-z0-9\.\-_~]+(:[0-9]+)?)?(\/.*)$/i.exec(n),!i)throw new Error("Error trying to parse base URL.");var a=i[2]||"",l=i[1]||"",v=i[4],f=null;return f=/^\/\//.test(t)?a+"//"+u.buildAbsolutePath("",t.substring(2)):/^\//.test(t)?l+"/"+u.buildAbsolutePath("",t.substring(1)):u.buildAbsolutePath(l+v,t),e&&(f+=e),o&&(f+=o),f},buildAbsolutePath:function(n,t){for(var o=t,f,e="",u=n.replace(/[^\/]*$/,o.replace(/(\/|^)(?:\.?\/+)+/g,"$1")),i,r=0;i=u.indexOf("/../",r),i>-1;r=i+f)f=/^\/(?:\.\.\/)*/.exec(u.slice(i))[0].length,e=(e+u.substring(r,i)).replace(new RegExp("(?:\\/+[^\\/]*){0,"+(f-1)/3+"}$"),"/");return e+u.substr(r)}};typeof r=="object"&&typeof i=="object"?i.exports=u:typeof n=="function"&&n.amd?n([],function(){return u}):typeof r=="object"?r.URLToolkit=u:t.URLToolkit=u})(this)},{}],91:[function(n,t,i){(function(r){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(i,"__esModule",{value:!0});var s=n("global/window"),e=f(s),h=typeof window!="undefined"?window.videojs:typeof r!="undefined"?r.videojs:null,u=f(h),c=function(n){Object.defineProperties(n.frame,{id:{get:function(){return u["default"].log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),n.value.key}},value:{get:function(){return u["default"].log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),n.value.data}},privateData:{get:function(){return u["default"].log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),n.value.data}}})},o=function(n){var t=undefined;return isNaN(n)||Math.abs(n)===Infinity?Number.MAX_VALUE:n},l=function(n,t,i){var h=e["default"].WebKitDataCue||e["default"].VTTCue,l,s,r,f,u;if(t&&t.forEach(function(n){this.inbandTextTrack_.addCue(new h(n.startTime+this.timestampOffset,n.endTime+this.timestampOffset,n.text))},n),i&&(l=o(n.mediaSource_.duration),i.forEach(function(n){var t=n.cueTime+this.timestampOffset;n.frames.forEach(function(n){var i=new h(t,t,n.value||n.url||n.data||"");i.frame=n;i.value=n;c(i);this.metadataTrack_.addCue(i)},this)},n),n.metadataTrack_&&n.metadataTrack_.cues&&n.metadataTrack_.cues.length)){for(s=n.metadataTrack_.cues,r=[],f=0;f<s.length;f++)r.push(s[f]);for(r.sort(function(n,t){return n.startTime-t.startTime}),u=0;u<r.length-1;u++)r[u].endTime!==r[u+1].startTime&&(r[u].endTime=r[u+1].startTime);r[r.length-1].endTime=l}};i["default"]={addTextTrackData:l,durationOfVideo:o};t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"global/window":27}],92:[function(n,t,i){"use strict";var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=function(n,t,i){for(var f=n.remoteTextTracks()||[],u,r=0;r<f.length;r++)u=f[r],u.kind===t&&u.label===i&&n.removeRemoteTextTrack(u)};i.removeExistingTrack=r;u=function(n){r(n,"captions","cc1");r(n,"metadata","Timed Metadata")};i.cleanupTextTracks=u},{}],93:[function(n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=function(n){return/mp4a\.\d+.\d+/i.test(n)},u=function(n){return/avc1\.[\da-f]+/i.test(n)},f=function(n){var t={type:"",parameters:{}},i=n.trim().split(";");return t.type=i.shift().trim(),i.forEach(function(n){var i=n.trim().split("="),r,u;i.length>1&&(r=i[0].replace(/"/g,"").trim(),u=i[1].replace(/"/g,"").trim(),t.parameters[r]=u)}),t};i["default"]={isAudioCodec:r,parseContentType:f,isVideoCodec:u};t.exports=i["default"]},{}],94:[function(n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=n("./cleanup-text-tracks"),u=function(n,t,i){var u=t.player_;i.captions&&i.captions.length&&!n.inbandTextTrack_&&(r.removeExistingTrack(u,"captions","cc1"),n.inbandTextTrack_=u.addRemoteTextTrack({kind:"captions",label:"cc1"},!1).track);i.metadata&&i.metadata.length&&!n.metadataTrack_&&(r.removeExistingTrack(u,"metadata","Timed Metadata",!0),n.metadataTrack_=u.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,n.metadataTrack_.inBandMetadataTrackDispatchType=i.metadata.dispatchType)};i["default"]=u;t.exports=i["default"]},{"./cleanup-text-tracks":92}],95:[function(n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i["default"]={TIME_BETWEEN_CHUNKS:4,BYTES_PER_CHUNK:4096};t.exports=i["default"]},{}],96:[function(n,t,i){(function(r){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o,s,e;Object.defineProperty(i,"__esModule",{value:!0});o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();s=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var v=n("global/document"),y=u(v),p=typeof window!="undefined"?window.videojs:typeof r!="undefined"?r.videojs:null,h=u(p),w=n("./flash-source-buffer"),b=u(w),k=n("./flash-constants"),c=u(k),d=n("./codec-utils"),g=n("./cleanup-text-tracks"),f=function(n){function t(){var n=this;l(this,t);s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);this.sourceBuffers=[];this.readyState="closed";this.on(["sourceopen","webkitsourceopen"],function(t){n.swfObj=y["default"].getElementById(t.swfId);n.player_=h["default"](n.swfObj.parentNode);n.tech_=n.swfObj.tech;n.readyState="open";n.tech_.on("seeking",function(){for(var t=n.sourceBuffers.length;t--;)n.sourceBuffers[t].abort()});if(n.tech_.hls)n.tech_.hls.on("dispose",function(){g.cleanupTextTracks(n.player_)});n.swfObj&&n.swfObj.vjs_load()})}return a(t,n),o(t,[{key:"addSeekableRange_",value:function(){}},{key:"addSourceBuffer",value:function(n){var i=d.parseContentType(n),t=undefined;if(i.type==="video/mp2t")t=new b["default"](this);else throw new Error("NotSupportedError (Video.js)");return this.sourceBuffers.push(t),t}},{key:"endOfStream",value:function(n){n==="network"?this.tech_.error(2):n==="decode"&&this.tech_.error(3);this.readyState!=="ended"&&(this.readyState="ended",this.swfObj.vjs_endOfStream())}}]),t}(h["default"].EventTarget);i["default"]=f;try{Object.defineProperty(f.prototype,"duration",{get:function(){return this.swfObj?this.swfObj.vjs_getProperty("duration"):NaN},set:function(n){var t=undefined,i=this.swfObj.vjs_getProperty("duration");if(this.swfObj.vjs_setProperty("duration",n),n<i)for(t=0;t<this.sourceBuffers.length;t++)this.sourceBuffers[t].remove(n,i);return n}})}catch(it){f.prototype.duration=NaN}for(e in c["default"])f[e]=c["default"][e];t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./cleanup-text-tracks":92,"./codec-utils":93,"./flash-constants":95,"./flash-source-buffer":97,"global/document":26}],97:[function(n,t,i){(function(r){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var c,l;Object.defineProperty(i,"__esModule",{value:!0});c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();l=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var w=n("global/window"),o=u(w),b=typeof window!="undefined"?window.videojs:typeof r!="undefined"?r.videojs:null,s=u(b),k=n("mux.js/lib/flv"),a=u(k),d=n("./remove-cues-from-track"),e=u(d),g=n("./create-text-tracks-if-necessary"),nt=u(g),tt=n("./add-text-track-data"),it=n("./flash-constants"),h=u(it),f=function(n){o["default"].setTimeout(n,h["default"].TIME_BETWEEN_CHUNKS)},v=function(n,t){(typeof t!="number"||t<0)&&(t=0);var i=Math.pow(10,t);return Math.round(n*i)/i},rt=function(n){function t(n){var i=this,r;y(this,t);l(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);r=undefined;this.chunkSize_=h["default"].BYTES_PER_CHUNK;this.buffer_=[];this.bufferSize_=0;this.basePtsOffset_=NaN;this.mediaSource_=n;this.updating=!1;this.timestampOffset_=0;this.segmentParser_=new a["default"].Transmuxer;this.segmentParser_.on("data",this.receiveBuffer_.bind(this));r=o["default"].btoa(String.fromCharCode.apply(null,Array.prototype.slice.call(this.segmentParser_.getFlvHeader())));this.mediaSource_.swfObj.vjs_appendBuffer(r);this.one("updateend",function(){i.mediaSource_.tech_.trigger("loadedmetadata")});Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(n){if(typeof n=="number"&&n>=0){this.timestampOffset_=n;this.segmentParser_=new a["default"].Transmuxer;this.segmentParser_.on("data",this.receiveBuffer_.bind(this));this.mediaSource_.swfObj.vjs_discontinuity();this.basePtsOffset_=NaN}}});Object.defineProperty(this,"buffered",{get:function(){if(!this.mediaSource_||!this.mediaSource_.swfObj||!("vjs_getProperty"in this.mediaSource_.swfObj))return s["default"].createTimeRange();var n=this.mediaSource_.swfObj.vjs_getProperty("buffered");return n&&n.length&&(n[0][0]=v(n[0][0],3),n[0][1]=v(n[0][1],3)),s["default"].createTimeRanges(n)}});this.mediaSource_.player_.on("seeked",function(){e["default"](0,Infinity,i.metadataTrack_);e["default"](0,Infinity,i.inbandTextTrack_)})}return p(t,n),c(t,[{key:"appendBuffer",value:function(n){var r=this,t=undefined,e=524288,i=0,u;if(this.updating){t=new Error("SourceBuffer.append() cannot be called while an update is in progress");t.name="InvalidStateError";t.code=11;throw t;}this.updating=!0;this.mediaSource_.readyState="open";this.trigger({type:"update"});u=function u(){r.segmentParser_.push(n.subarray(i,i+e));i+=e;i<n.byteLength?f(u):f(r.segmentParser_.flush.bind(r.segmentParser_))};u()}},{key:"abort",value:function(){this.buffer_=[];this.bufferSize_=0;this.mediaSource_.swfObj.vjs_abort();this.updating&&(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"remove",value:function(n,t){e["default"](n,t,this.metadataTrack_);e["default"](n,t,this.inbandTextTrack_);this.trigger({type:"update"});this.trigger({type:"updateend"})}},{key:"receiveBuffer_",value:function(n){var t=this;nt["default"](this,this.mediaSource_,n);tt.addTextTrackData(this,n.captions,n.metadata);f(function(){var i=t.convertTagsToData_(n);t.buffer_.length===0&&f(t.processBuffer_.bind(t));i&&(t.buffer_.push(i),t.bufferSize_+=i.byteLength)})}},{key:"processBuffer_",value:function(){var t=h["default"].BYTES_PER_CHUNK,n,r,u,i,e;if(!this.buffer_.length){this.updating!==!1&&(this.updating=!1,this.trigger({type:"updateend"}));return}for(n=this.buffer_[0].subarray(0,t),n.byteLength<t||this.buffer_[0].byteLength===t?this.buffer_.shift():this.buffer_[0]=this.buffer_[0].subarray(t),this.bufferSize_-=n.byteLength,r="",u=n.byteLength,i=0;i<u;i++)r+=String.fromCharCode(n[i]);e=o["default"].btoa(r);this.mediaSource_.swfObj.CallFunction('<invoke name="vjs_appendBuffer"returntype="javascript"><arguments><string>'+e+"<\/string><\/arguments><\/invoke>");this.bufferSize_!==0?f(this.processBuffer_.bind(this)):(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"convertTagsToData_",value:function(n){var o=0,s=this.mediaSource_.tech_,r=0,t=undefined,f=undefined,e=undefined,i=[],u=this.getOrderedTags_(n);for(isNaN(this.basePtsOffset_)&&u.length&&(this.basePtsOffset_=u[0].pts),s.seeking()&&(r=Math.max(r,s.currentTime()-this.timestampOffset)),r*=1e3,r+=this.basePtsOffset_,t=0;t<u.length;t++)u[t].pts>=r&&i.push(u[t]);if(i.length!==0){for(t=0;t<i.length;t++)o+=i[t].bytes.byteLength;for(e=new Uint8Array(o),t=0,f=0;t<i.length;t++)e.set(i[t].bytes,f),f+=i[t].bytes.byteLength;return e}}},{key:"getOrderedTags_",value:function(n){for(var t=n.tags.videoTags,i=n.tags.audioTags,r=undefined,u=[];t.length||i.length;)r=t.length?i.length?i[0].dts<t[0].dts?i.shift():t.shift():t.shift():i.shift(),u.push(r.finalize());return u}}]),t}(s["default"].EventTarget);i["default"]=rt;t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./add-text-track-data":91,"./create-text-tracks-if-necessary":94,"./flash-constants":95,"./remove-cues-from-track":99,"global/window":27,"mux.js/lib/flv":75}],98:[function(n,t,i){(function(r){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o,s;Object.defineProperty(i,"__esModule",{value:!0});o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();s=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var l=n("global/window"),a=u(l),v=n("global/document"),y=u(v),p=typeof window!="undefined"?window.videojs:typeof r!="undefined"?r.videojs:null,f=u(p),w=n("./virtual-source-buffer"),b=u(w),k=n("./add-text-track-data"),e=n("./codec-utils"),d=n("./cleanup-text-tracks"),g=function(n){return n.map(function(n){return n.replace(/avc1\.(\d+)\.(\d+)/i,function(n,t,i){var r=("00"+Number(t).toString(16)).slice(-2),u=("00"+Number(i).toString(16)).slice(-2);return"avc1."+r+"00"+u})})},nt=function(n){function t(){var n=this,i;h(this,t);s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);i=undefined;this.nativeMediaSource_=new a["default"].MediaSource;for(i in this.nativeMediaSource_)i in t.prototype||typeof this.nativeMediaSource_[i]!="function"||(this[i]=this.nativeMediaSource_[i].bind(this.nativeMediaSource_));this.duration_=NaN;Object.defineProperty(this,"duration",{get:function(){return this.duration_===Infinity?this.duration_:this.nativeMediaSource_.duration},set:function(n){if(this.duration_=n,n!==Infinity){this.nativeMediaSource_.duration=n;return}}});Object.defineProperty(this,"seekable",{get:function(){return this.duration_===Infinity?f["default"].createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}});Object.defineProperty(this,"readyState",{get:function(){return this.nativeMediaSource_.readyState}});Object.defineProperty(this,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}});this.sourceBuffers=[];this.activeSourceBuffers_=[];this.updateActiveSourceBuffers_=function(){var r,t,i,u;for(n.activeSourceBuffers_.length=0,r=!1,t=!0,i=0;i<n.player_.audioTracks().length;i++)if(u=n.player_.audioTracks()[i],u.enabled&&u.kind!=="main"){r=!0;t=!1;break}n.sourceBuffers.forEach(function(i){if(i.appendAudioInitSegment_=!0,i.videoCodec_&&i.audioCodec_)i.audioDisabled_=r;else if(i.videoCodec_&&!i.audioCodec_)i.audioDisabled_=!0,t=!1;else if(!i.videoCodec_&&i.audioCodec_&&(i.audioDisabled_=t,t))return;n.activeSourceBuffers_.push(i)})};this.onPlayerMediachange_=function(){n.sourceBuffers.forEach(function(n){n.appendAudioInitSegment_=!0})};["sourceopen","sourceclose","sourceended"].forEach(function(n){this.nativeMediaSource_.addEventListener(n,this.trigger.bind(this))},this);this.on("sourceopen",function(){var t=y["default"].querySelector('[src="'+n.url_+'"]');if(t){if(n.player_=f["default"](t.parentNode),n.player_.audioTracks&&n.player_.audioTracks()){n.player_.audioTracks().on("change",n.updateActiveSourceBuffers_);n.player_.audioTracks().on("addtrack",n.updateActiveSourceBuffers_);n.player_.audioTracks().on("removetrack",n.updateActiveSourceBuffers_)}n.player_.on("mediachange",n.onPlayerMediachange_)}});this.on("sourceended",function(){for(var u=k.durationOfVideo(n.duration),r,t,i=0;i<n.sourceBuffers.length;i++)r=n.sourceBuffers[i],t=r.metadataTrack_&&r.metadataTrack_.cues,t&&t.length&&(t[t.length-1].endTime=u)});this.on("sourceclose",function(){(this.sourceBuffers.forEach(function(n){n.transmuxer_&&n.transmuxer_.terminate()}),this.sourceBuffers.length=0,this.player_)&&(d.cleanupTextTracks(this.player_),this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&this.player_.off("mediachange",this.onPlayerMediachange_))})}return c(t,n),o(t,[{key:"addSeekableRange_",value:function(n,t){var i=undefined;if(this.duration!==Infinity){i=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity");i.name="InvalidStateError";i.code=11;throw i;}(t>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=t)}},{key:"addSourceBuffer",value:function(n){var i=undefined,r=e.parseContentType(n),t;return/^(video|audio)\/mp2t$/i.test(r.type)?(t=[],r.parameters&&r.parameters.codecs&&(t=r.parameters.codecs.split(","),t=g(t),t=t.filter(function(n){return e.isAudioCodec(n)||e.isVideoCodec(n)})),t.length===0&&(t=["avc1.4d400d","mp4a.40.2"]),i=new b["default"](this,t),this.sourceBuffers.length!==0&&(this.sourceBuffers[0].createRealSourceBuffers_(),i.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)):i=this.nativeMediaSource_.addSourceBuffer(n),this.sourceBuffers.push(i),i}}]),t}(f["default"].EventTarget);i["default"]=nt;t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./add-text-track-data":91,"./cleanup-text-tracks":92,"./codec-utils":93,"./virtual-source-buffer":102,"global/document":26,"global/window":27}],99:[function(n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=function(n,t,i){var u=undefined,r=undefined;if(i&&i.cues)for(u=i.cues.length;u--;)r=i.cues[u],r.startTime<=t&&r.endTime>=n&&i.removeCue(r)};i["default"]=r;t.exports=i["default"]},{}],100:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u;Object.defineProperty(i,"__esModule",{value:!0});u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var s=n("global/window"),r=f(s),h=n("mux.js/lib/mp4"),c=f(h),l=function(n){n.on("data",function(n){var i=n.initSegment,t;n.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};t=n.data;n.data=t.buffer;r["default"].postMessage({action:"data",segment:n,byteOffset:t.byteOffset,byteLength:t.byteLength},[n.data])});if(n.captionStream)n.captionStream.on("data",function(n){r["default"].postMessage({action:"caption",data:n})});n.on("done",function(){r["default"].postMessage({action:"done"})})},e=function(){function n(t){o(this,n);this.options=t||{};this.init()}return u(n,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose();this.transmuxer=new c["default"].Transmuxer(this.options);l(this.transmuxer)}},{key:"push",value:function(n){var t=new Uint8Array(n.data,n.byteOffset,n.byteLength);this.transmuxer.push(t)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(n){var t=n.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(t*9e4))}},{key:"flush",value:function(){this.transmuxer.flush()}}]),n}(),a=function(n){n.onmessage=function(n){if(n.data.action==="init"&&n.data.options){this.messageHandlers=new e(n.data.options);return}this.messageHandlers||(this.messageHandlers=new e);n.data&&n.data.action&&n.data.action!=="init"&&this.messageHandlers[n.data.action]&&this.messageHandlers[n.data.action](n.data)}};i["default"]=function(n){return new a(n)};t.exports=i["default"]},{"global/window":27,"mux.js/lib/mp4":83}],101:[function(n,t,i){(function(t){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}var s;Object.defineProperty(i,"__esModule",{value:!0});var v=n("global/window"),u=f(v),y=n("./flash-media-source"),h=f(y),p=n("./html-media-source"),c=f(p),w=typeof window!="undefined"?window.videojs:typeof t!="undefined"?t.videojs:null,r=f(w),l=0,b={mode:"auto"};r["default"].mediaSources={};var a=function(n,t){var i=r["default"].mediaSources[n];if(i)i.trigger({type:"sourceopen",swfId:t});else throw new Error("Media Source not found (Video.js)");},o=function(){return!!u["default"].MediaSource&&!!u["default"].MediaSource.isTypeSupported&&u["default"].MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},e=function(n){var t=r["default"].mergeOptions(b,n);return(this.MediaSource={open:a,supportsNativeMediaSources:o},t.mode==="html5"||t.mode==="auto"&&o())?new c["default"]:new h["default"]};i.MediaSource=e;e.open=a;e.supportsNativeMediaSources=o;s={createObjectURL:function(n){var t=undefined;return n instanceof c["default"]?(t=u["default"].URL.createObjectURL(n.nativeMediaSource_),n.url_=t,t):(n instanceof h["default"])?(t="blob:vjs-media-source/"+l,l++,r["default"].mediaSources[t]=n,t):(t=u["default"].URL.createObjectURL(n),n.url_=t,t)}};i.URL=s;r["default"].MediaSource=e;r["default"].URL=s}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./flash-media-source":96,"./html-media-source":98,"global/window":27}],102:[function(n,t,i){(function(r){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e,o;Object.defineProperty(i,"__esModule",{value:!0});e=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();o=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}};var a=typeof window!="undefined"?window.videojs:typeof r!="undefined"?r.videojs:null,f=u(a),v=n("./create-text-tracks-if-necessary"),y=u(v),p=n("./remove-cues-from-track"),s=u(p),w=n("./add-text-track-data"),b=n("webworkify"),k=u(b),d=n("./transmuxer-worker"),g=u(d),h=n("./codec-utils"),nt=function(n){function t(n,i){var r=this,u;c(this,t);o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,f["default"].EventTarget);this.timestampOffset_=0;this.pendingBuffers_=[];this.bufferUpdating_=!1;this.mediaSource_=n;this.codecs_=i;this.audioCodec_=null;this.videoCodec_=null;this.audioDisabled_=!1;this.appendAudioInitSegment_=!0;u={remux:!1};this.codecs_.forEach(function(n){h.isAudioCodec(n)?r.audioCodec_=n:h.isVideoCodec(n)&&(r.videoCodec_=n)});this.transmuxer_=k["default"](g["default"]);this.transmuxer_.postMessage({action:"init",options:u});this.transmuxer_.onmessage=function(n){return n.data.action==="data"?r.data_(n):n.data.action==="done"?r.done_(n):void 0};Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(n){typeof n=="number"&&n>=0&&(this.timestampOffset_=n,this.appendAudioInitSegment_=!0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:n}))}});Object.defineProperty(this,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(n){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=n);this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=n)}});Object.defineProperty(this,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}});Object.defineProperty(this,"buffered",{get:function(){var i=null,r=null,u=0,t=[],s=[];if(!this.videoBuffer_&&!this.audioBuffer_)return f["default"].createTimeRange();if(!this.videoBuffer_)return this.audioBuffer_.buffered;if(!this.audioBuffer_||this.audioDisabled_)return this.videoBuffer_.buffered;if(this.videoBuffer_.buffered.length===0&&this.audioBuffer_.buffered.length===0)return f["default"].createTimeRange();for(var e=this.videoBuffer_.buffered,o=this.audioBuffer_.buffered,n=e.length;n--;)t.push({time:e.start(n),type:"start"}),t.push({time:e.end(n),type:"end"});for(n=o.length;n--;)t.push({time:o.start(n),type:"start"}),t.push({time:o.end(n),type:"end"});for(t.sort(function(n,t){return n.time-t.time}),n=0;n<t.length;n++)t[n].type==="start"?(u++,u===2&&(i=t[n].time)):t[n].type==="end"&&(u--,u===1&&(r=t[n].time)),i!==null&&r!==null&&(s.push([i,r]),i=null,r=null);return f["default"].createTimeRanges(s)}})}return l(t,n),e(t,[{key:"data_",value:function(n){var t=n.data.segment;t.data=new Uint8Array(t.data,n.data.byteOffset,n.data.byteLength);t.initSegment=new Uint8Array(t.initSegment.data,t.initSegment.byteOffset,t.initSegment.byteLength);y["default"](this,this.mediaSource_,t);this.pendingBuffers_.push(t);return}},{key:"done_",value:function(){this.processPendingSegments_();return}},{key:"createRealSourceBuffers_",value:function(){var n=this,t=["audio","video"];t.forEach(function(i){if(n[i+"Codec_"]&&!n[i+"Buffer_"]){var r=null;n.mediaSource_[i+"Buffer_"]?r=n.mediaSource_[i+"Buffer_"]:(r=n.mediaSource_.nativeMediaSource_.addSourceBuffer(i+'/mp4;codecs="'+n[i+"Codec_"]+'"'),n.mediaSource_[i+"Buffer_"]=r);n[i+"Buffer_"]=r;["update","updatestart","updateend"].forEach(function(u){r.addEventListener(u,function(){if(i!=="audio"||!n.audioDisabled_){var r=t.every(function(t){return t==="audio"&&n.audioDisabled_?!0:i!==t&&n[t+"Buffer_"]&&n[t+"Buffer_"].updating?!1:!0});if(r)return n.trigger(u)}})})}})}},{key:"appendBuffer",value:function(n){this.bufferUpdating_=!0;this.transmuxer_.postMessage({action:"push",data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength},[n.buffer]);this.transmuxer_.postMessage({action:"flush"})}},{key:"remove",value:function(n,t){this.videoBuffer_&&this.videoBuffer_.remove(n,t);this.audioBuffer_&&this.audioBuffer_.remove(n,t);s["default"](n,t,this.metadataTrack_);s["default"](n,t,this.inbandTextTrack_)}},{key:"processPendingSegments_",value:function(){var n={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};n=this.pendingBuffers_.reduce(function(n,t){var i=t.type,r=t.data,u=t.initSegment;return n[i].segments.push(r),n[i].bytes+=r.byteLength,n[i].initSegment=u,t.captions&&(n.captions=n.captions.concat(t.captions)),t.info&&(n[i].info=t.info),t.metadata&&(n.metadata=n.metadata.concat(t.metadata)),n},n);this.videoBuffer_||this.audioBuffer_||(n.video.bytes===0&&(this.videoCodec_=null),n.audio.bytes===0&&(this.audioCodec_=null),this.createRealSourceBuffers_());n.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:n.audio.info});n.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:n.video.info});this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(n.audio.segments.unshift(n.audio.initSegment),n.audio.bytes+=n.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);this.videoBuffer_&&(n.video.segments.unshift(n.video.initSegment),n.video.bytes+=n.video.initSegment.byteLength,this.concatAndAppendSegments_(n.video,this.videoBuffer_),w.addTextTrackData(this,n.captions,n.metadata));!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(n.audio,this.audioBuffer_);this.pendingBuffers_.length=0;this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(n,t){var r=0,i=undefined;if(n.bytes){i=new Uint8Array(n.bytes);n.segments.forEach(function(n){i.set(n,r);r+=n.byteLength});try{t.appendBuffer(i)}catch(u){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR"})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort();this.audioBuffer_&&this.audioBuffer_.abort();this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"});this.pendingBuffers_.length=0;this.bufferUpdating_=!1}}]),t}(f["default"].EventTarget);i["default"]=nt;t.exports=i["default"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./add-text-track-data":91,"./codec-utils":93,"./create-text-tracks-if-necessary":94,"./remove-cues-from-track":99,"./transmuxer-worker":100,webworkify:103}],103:[function(n,t){var f=arguments[3],i=arguments[4],u=arguments[5],r=JSON.stringify;t.exports=function(n){for(var e,h=Object.keys(u),c,o,l,a,v,y,t=0,s=h.length;t<s;t++)if(o=h[t],u[o].exports===n){e=o;break}if(!e){for(e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),c={},t=0,s=h.length;t<s;t++)o=h[t],c[o]=o;i[e]=[Function(["require","module","exports"],"("+n+")(self)"),c]}return l=Math.floor(Math.pow(16,8)*Math.random()).toString(16),a={},a[e]=e,i[l]=[Function(["require"],"require("+r(e)+")(self)"),a],v="("+f+")({"+Object.keys(i).map(function(n){return r(n)+":["+i[n][0]+","+r(i[n][1])+"]"}).join(",")+"},{},["+r(l)+"])",y=window.URL||window.webkitURL||window.mozURL||window.msURL,new Worker(y.createObjectURL(new Blob([v],{type:"text/javascript"})))}},{}],104:[function(n,t){(function(i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function d(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function g(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var k=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=function(n,t,i){var e=!0,r,f,o;n:while(e){var u=n,s=t,h=i;if(e=!1,u===null&&(u=Function.prototype),r=Object.getOwnPropertyDescriptor(u,s),r===undefined){if(f=Object.getPrototypeOf(u),f===null)return undefined;n=f;t=s;i=h;e=!0;r=f=undefined;continue n}else return"value"in r?r.value:(o=r.get,o===undefined)?undefined:o.call(h)}},nt=n("global/document"),s=f(nt),tt=n("./playlist-loader"),it=f(tt),rt=n("./playlist"),ut=f(rt),ft=n("./xhr"),y=f(ft),h=n("aes-decrypter"),et=n("./bin-utils"),ot=f(et),c=n("videojs-contrib-media-sources"),st=n("m3u8-parser"),ht=f(st),ct=typeof window!="undefined"?window.videojs:typeof i!="undefined"?i.videojs:null,r=f(ct),lt=n("./master-playlist-controller"),at=n("./config"),p=f(at),vt=n("./rendition-mixin"),yt=f(vt),pt=n("global/window"),e=f(pt),wt=n("./playback-watcher"),bt=f(wt),kt=n("./reload-source-on-error"),dt=f(kt),u={PlaylistLoader:it["default"],Playlist:ut["default"],Decrypter:h.Decrypter,AsyncStream:h.AsyncStream,decrypt:h.decrypt,utils:ot["default"],xhr:y["default"]()},w,l,b;Object.defineProperty(u,"GOAL_BUFFER_LENGTH",{get:function(){return r["default"].log.warn("using Hls.GOAL_BUFFER_LENGTH is UNSAFE be sure you know what you are doing"),p["default"].GOAL_BUFFER_LENGTH},set:function(n){if(r["default"].log.warn("using Hls.GOAL_BUFFER_LENGTH is UNSAFE be sure you know what you are doing"),typeof n!="number"||n<=0){r["default"].log.warn("value passed to Hls.GOAL_BUFFER_LENGTH must be a number and greater than 0");return}p["default"].GOAL_BUFFER_LENGTH=n}});w=1.2;l=function(n,t){var i=undefined;return n?(i=e["default"].getComputedStyle(n),!i)?"":i[t]:""};u.STANDARD_PLAYLIST_SELECTOR=function(){var a=undefined,i=this.playlists.master.playlists.slice(),e=[],y=+new Date,r=undefined,n=undefined,o=undefined,f=undefined,s=undefined,v=undefined,h=undefined,c=undefined,t;for(i.sort(u.comparePlaylistBandwidth),i=i.filter(function(n){return typeof n.excludeUntil!="undefined"?y>=n.excludeUntil:!0}),r=i.length;r--;)(n=i[r],n.attributes&&n.attributes.BANDWIDTH)&&(a=n.attributes.BANDWIDTH*w,a<this.systemBandwidth&&(e.push(n),o||(o=n)));for(r=e.length,e.sort(u.comparePlaylistResolution),n=null,h=parseInt(l(this.tech_.el(),"width"),10),c=parseInt(l(this.tech_.el(),"height"),10);r--;)if(n=e[r],n.attributes&&n.attributes.RESOLUTION&&n.attributes.RESOLUTION.width&&n.attributes.RESOLUTION.height)if(t=n.attributes.RESOLUTION,t.width===h&&t.height===c){f=null;v=n;break}else if(t.width<h&&t.height<c)break;else(!f||t.width<s.width&&t.height<s.height)&&(f=n,s=f.attributes.RESOLUTION);return f||v||o||i[0]};u.canPlaySource=function(){return r["default"].log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};u.supportsNativeHls=function(){var t=s["default"].createElement("video"),n;return r["default"].getComponent("Html5").isSupported()?(n=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"],n.some(function(n){return/maybe|probably/i.test(t.canPlayType(n))})):!1}();u.isSupported=function(){return r["default"].log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};b=e["default"].navigator&&e["default"].navigator.userAgent||"";u.supportsAudioInfoChange_=function(){if(r["default"].browser.IS_FIREFOX){var n=/Firefox\/([\d.]+)/i.exec(b),t=parseInt(n[1],10);return t>=49}return!0};var gt=r["default"].getComponent("Component"),a=function(n){function t(n,i,u){var f=this,e;d(this,t);v(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,i);i.options_&&i.options_.playerId&&(e=r["default"](i.options_.playerId),e.hasOwnProperty("hls")||Object.defineProperty(e,"hls",{get:function(){return r["default"].log.warn("player.hls is deprecated. Use player.tech_.hls instead."),f}}));this.tech_=i;this.source_=n;this.stats={};this.ignoreNextSeekingEvent_=!1;this.options_=r["default"].mergeOptions(r["default"].options.hls||{},u.hls);this.setOptions_();this.on(s["default"],["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(){var n=s["default"].fullscreenElement||s["default"].webkitFullscreenElement||s["default"].mozFullScreenElement||s["default"].msFullscreenElement;n&&n.contains(f.tech_.el())&&f.masterPlaylistController_.fastQualityChange_()});this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())});this.on(this.tech_,"error",function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()});this.audioTrackChange_=function(){f.masterPlaylistController_.setupAudio()};this.on(this.tech_,"play",this.play)}return g(t,n),k(t,[{key:"setOptions_",value:function(){var n=this;this.options_.withCredentials=this.options_.withCredentials||!1;typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=4194304);["withCredentials","bandwidth"].forEach(function(t){typeof n.source_[t]!="undefined"&&(n.options_[t]=n.source_[t])});this.bandwidth=this.options_.bandwidth}},{key:"src",value:function(n){var t=this;if(n){this.setOptions_();this.options_.url=this.source_.src;this.options_.tech=this.tech_;this.options_.externHls=u;this.masterPlaylistController_=new lt.MasterPlaylistController(this.options_);this.playbackWatcher_=new bt["default"](r["default"].mergeOptions(this.options_,{seekable:function(){return t.seekable()}}));this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):u.STANDARD_PLAYLIST_SELECTOR.bind(this);this.playlists=this.masterPlaylistController_.masterPlaylistLoader_;this.mediaSource=this.masterPlaylistController_.mediaSource;Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(n){this.masterPlaylistController_.selectPlaylist=n.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(n){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=n;this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(n){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=n;this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t=1/(this.bandwidth||1),n=undefined;return n=this.throughput>0?1/this.throughput:0,Math.floor(1/(t+n))},set:function(){r["default"].log.error('The "systemBandwidth" property is read-only')}}});Object.defineProperties(this.stats,{bandwidth:{get:function(){return t.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return t.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return t.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return t.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return t.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0}});this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_));this.masterPlaylistController_.on("sourceopen",function(){t.tech_.audioTracks().addEventListener("change",t.audioTrackChange_)});this.masterPlaylistController_.on("selectedinitialmedia",function(){yt["default"](t)});this.masterPlaylistController_.on("audioupdate",function(){t.tech_.clearTracks("audio");t.masterPlaylistController_.activeAudioGroup().forEach(function(n){t.tech_.audioTracks().addTrack(n)})});this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")});this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0});this.tech_.el()&&this.tech_.src(r["default"].URL.createObjectURL(this.masterPlaylistController_.mediaSource))}}},{key:"activeAudioGroup_",value:function(){return this.masterPlaylistController_.activeAudioGroup()}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(n){this.masterPlaylistController_.setCurrentTime(n)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose();this.masterPlaylistController_&&this.masterPlaylistController_.dispose();this.tech_.audioTracks().removeEventListener("change",this.audioTrackChange_);v(Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(gt),o=function o(n){return{canHandleSource:function(t){return r["default"].options.hls&&r["default"].options.hls.mode&&r["default"].options.hls.mode!==n?!1:o.canPlayType(t.type)},handleSource:function(t,i,u){n==="flash"&&i.setTimeout(function(){i.trigger("loadstart")},1);var f=r["default"].mergeOptions(u,{hls:{mode:n}});return i.hls=new a(t,i,f),i.hls.xhr=y["default"](),r["default"].Hls.xhr.beforeRequest&&(i.hls.xhr.beforeRequest=r["default"].Hls.xhr.beforeRequest),i.hls.src(t.src),i.hls},canPlayType:function(n){return o.canPlayType(n)?"maybe":""}}};u.comparePlaylistBandwidth=function(n,t){var i=undefined,r=undefined;return n.attributes&&n.attributes.BANDWIDTH&&(i=n.attributes.BANDWIDTH),i=i||e["default"].Number.MAX_VALUE,t.attributes&&t.attributes.BANDWIDTH&&(r=t.attributes.BANDWIDTH),r=r||e["default"].Number.MAX_VALUE,i-r};u.comparePlaylistResolution=function(n,t){var i=undefined,r=undefined;return(n.attributes&&n.attributes.RESOLUTION&&n.attributes.RESOLUTION.width&&(i=n.attributes.RESOLUTION.width),i=i||e["default"].Number.MAX_VALUE,t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(r=t.attributes.RESOLUTION.width),r=r||e["default"].Number.MAX_VALUE,i===r&&n.attributes.BANDWIDTH&&t.attributes.BANDWIDTH)?n.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-r};o.canPlayType=function(n){return!r["default"].options.hls.overrideNative&&u.supportsNativeHls?!1:/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i.test(n)};(typeof r["default"].MediaSource=="undefined"||typeof r["default"].URL=="undefined")&&(r["default"].MediaSource=c.MediaSource,r["default"].URL=c.URL);c.MediaSource.supportsNativeMediaSources()&&r["default"].getComponent("Html5").registerSourceHandler(o("html5"),0);e["default"].Uint8Array&&r["default"].getComponent("Flash").registerSourceHandler(o("flash"));r["default"].HlsHandler=a;r["default"].HlsSourceHandler=o;r["default"].Hls=u;r["default"].m3u8=ht["default"];r["default"].registerComponent("Hls",u);r["default"].options.hls=r["default"].options.hls||{};r["default"].plugin("reloadSourceOnError",dt["default"]);t.exports={Hls:u,HlsHandler:a,HlsSourceHandler:o}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./bin-utils":2,"./config":3,"./master-playlist-controller":4,"./playback-watcher":5,"./playlist":7,"./playlist-loader":6,"./reload-source-on-error":9,"./rendition-mixin":10,"./xhr":16,"aes-decrypter":20,"global/document":26,"global/window":27,"m3u8-parser":64,"videojs-contrib-media-sources":101}]},{},[104])(104)}),function(n){"use strict";var t=function(n){for(var t,r,i=1;i<arguments.length;i++){t=arguments[i];for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r])}return n},i={count:10,counter:"counter",countdown:"countdown",countdown_text:"Next video in:",endcard:"player-endcard",related:"related-content",next:"next-video",getRelatedContent:function(n){n()},getNextVid:function(n){n()}},r=function(n){var e=this,o=this.el(),r=t({},i,n||{}),u=document.createElement("div"),f;u.id=r.endcard;u.style.display="none";o.appendChild(u);r.getRelatedContent(function(n){var t,i;if(n instanceof Array){for(t=document.createElement("div"),t.id=r.related,i=0;i<n.length;i++)t.appendChild(n[i]);u.appendChild(t)}else throw new TypeError("options.getRelatedContent must return an array");});r.getNextVid(function(n){if(typeof n!="undefined"){var t=document.createElement("div"),f=document.createElement("span"),i=document.createElement("div");f.id=r.counter;i.id=r.countdown;t.id=r.next;i.innerHTML=r.countdown_text;i.appendChild(f);t.appendChild(i);t.appendChild(n);u.appendChild(t)}});f=0;e.on("vast.contentEnd",function(){var t,o,n,i;if(u.style.display="block",t=document.getElementById(r.next),t!==null&&(o=t.getElementsByTagName("a")[0].href,n=r.count,counter.innerHTML=n,i=setInterval(function(){if(n--,n<=0){clearInterval(i);window.location=o;return}counter.innerHTML=n},1e3)),f===0){f++;e.on("playing",function(){u.style.display="none";clearInterval(i)})}})};n.plugin("endcard",r)}(window.videojs),function(n,t){typeof define=="function"&&define.amd?define("videojs-embed",["videojs"],function(n){return t(n)}):typeof exports=="object"?module.exports=t(require("video.js")):n["videojs-embed"]=t(videojs)}(this,function(n){n.plugin("embed",function(t){if(!t.embeddable)return!1;var r=this,i=n.getComponent("Component"),u=n.getComponent("Button");n.EmbedOverlayInput=n.extend(i,{constructor:function(n,t){i.call(this,n,t);this.location=t.location}});n.EmbedOverlayInput.prototype.setSrc=function(){this.el().value='<iframe src="'+this.location+'" width="560" height="315" frameborder="0" allowfullscreen><\/iframe>'};n.EmbedOverlay=n.extend(i,{constructor:function(t,r){i.call(this,t,r);this.input=new n.EmbedOverlayInput(t,{location:r.location,el:i.prototype.createEl("input",{className:"vjs-embedoverlay-input"},{type:"text"})});this.hide();t.addChild(this);this.el().appendChild(this.input.el());this.input.setSrc()}});n.EmbedOverlay.prototype.isVisible=!1;n.EmbedOverlay.prototype.show=function(){this.el().style.display="block";this.isVisible=!0;this.input.el().focus();this.input.el().select()};n.EmbedOverlay.prototype.hide=function(){this.el().style.display="none";this.isVisible=!1};n.EmbedOverlay.prototype.toggle=function(){this[this.isVisible?"hide":"show"]()};n.EmbedButton=n.extend(u,{constructor:function(t,r){u.call(this,t,r);this.on("click",this.onClick);this.overlay=new n.EmbedOverlay(t,{location:r.location,el:i.prototype.createEl("div",{className:"vjs-embedoverlay",innerHTML:'<div class="vjs-embedoverlay-content"><span class="vjs-embedoverlay-text">Embed code<\/span><\/div>'})})}});n.EmbedButton.prototype.onClick=function(){this.overlay.toggle()};r.ready(function(){var u=new n.EmbedButton(r,{location:t.location,el:i.prototype.createEl("div",{className:"vjs-menu-button  vjs-embed-button vjs-button vjs-control vjs-icon-share",innerHTML:'<div class=""><\/div>'},{role:"button"})});r.controlBar.addChild(u)})})}),function(n,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof exports=="object"?module.exports=t():n.returnExports=t()}(this,function(){var d=Array,n=d.prototype,f=Object,g=f.prototype,di=Function,pt=di.prototype,e=String,o=e.prototype,s=Number,ft=s.prototype,nt=n.slice,gi=n.splice,et=n.push,pu=n.unshift,nr=n.concat,wu=n.join,u=pt.call,wt=pt.apply,w=Math.max,ot=Math.min,bt=g.toString,kt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",tr=Function.prototype.toString,bu=/^\s*class /,ir=function(n){try{var t=tr.call(n),i=t.replace(/\/\/.*\n/g,""),r=i.replace(/\/\*[.\s\S]*\*\//g,""),u=r.replace(/\n/mg," ").replace(/ {2}/g," ");return bu.test(u)}catch(f){return!1}},ku=function(n){try{return ir(n)?!1:(tr.call(n),!0)}catch(t){return!1}},du="[object Function]",gu="[object GeneratorFunction]",h=function(n){if(!n||typeof n!="function"&&typeof n!="object")return!1;if(kt)return ku(n);if(ir(n))return!1;var t=bt.call(n);return t===du||t===gu},dt,nf=RegExp.prototype.exec,tf=function(n){try{return nf.call(n),!0}catch(t){return!1}},rf="[object RegExp]",ti,ii,er,or,sr,hr,cr,lr,ri,ct,ui,fi,ar,vr,fu,b,yi,ou,pi,wi,su,hu,cu,bi,lu,au,vu,ki,yu;dt=function(n){return typeof n!="object"?!1:kt?tf(n):bt.call(n)===rf};var c,uf=String.prototype.valueOf,ff=function(n){try{return uf.call(n),!0}catch(t){return!1}},ef="[object String]";c=function(n){return typeof n=="string"?!0:typeof n!="object"?!1:kt?ff(n):bt.call(n)===ef};var gt=f.defineProperty&&function(){var n,t;try{n={};f.defineProperty(n,"x",{enumerable:!1,value:n});for(t in n)return!1;return n.x===n}catch(i){return!1}}(),t=function(n){var t;return t=gt?function(n,t,i,r){!r&&t in n||f.defineProperty(n,t,{configurable:!0,enumerable:!1,writable:!0,value:i})}:function(n,t,i,r){!r&&t in n||(n[t]=i)},function(i,r,u){for(var f in r)n.call(r,f)&&t(i,f,r[f],u)}}(g.hasOwnProperty),st=function(n){var t=typeof n;return n===null||t!=="object"&&t!=="function"},tt=s.isNaN||function(n){return n!==n},i={ToInteger:function(n){var t=+n;return tt(t)?t=0:t!==0&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t},ToPrimitive:function(n){var t,i,r;if(st(n))return n;if((i=n.valueOf,h(i)&&(t=i.call(n),st(t)))||(r=n.toString,h(r)&&(t=r.call(n),st(t))))return t;throw new TypeError;},ToObject:function(n){if(n==null)throw new TypeError("can't convert "+n+" to object");return f(n)},ToUint32:function(n){return n>>>0}},ni=function(){};t(pt,{bind:function(n){var t=this,r;if(!h(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);var u=nt.call(arguments,1),i,o=function(){if(this instanceof i){var r=wt.call(t,this,nr.call(u,nt.call(arguments)));return f(r)===r?r:this}return wt.call(t,n,nr.call(u,nt.call(arguments)))},s=w(0,t.length-u.length),e=[];for(r=0;r<s;r++)et.call(e,"$"+r);return i=di("binder","return function ("+wu.call(e,",")+"){ return binder.apply(this, arguments); }")(o),t.prototype&&(ni.prototype=t.prototype,i.prototype=new ni,ni.prototype=null),i}});var v=u.bind(g.hasOwnProperty),rr=u.bind(g.toString),k=u.bind(nt),of=wt.bind(nt),a=u.bind(o.slice),l=u.bind(o.split),sf=u.bind(o.indexOf),y=u.bind(et),hf=u.bind(g.propertyIsEnumerable),ur=u.bind(n.sort),ht=d.isArray||function(n){return rr(n)==="[object Array]"},cf=[].unshift(0)!==1;t(n,{unshift:function(){return pu.apply(this,arguments),this.length}},cf);t(d,{isArray:ht});var fr=f("a"),p=fr[0]!=="a"||!(0 in fr),it=function(n){var t=!0,i=!0,r=!1;if(n)try{n.call("foo",function(n,i,r){typeof r!="object"&&(t=!1)});n.call([1],function(){"use strict";i=typeof this=="string"},"x")}catch(u){r=!0}return!!n&&!r&&t&&i};t(n,{forEach:function(n){var u=i.ToObject(this),r=p&&c(this)?l(this,""):u,t=-1,e=i.ToUint32(r.length),f;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.forEach callback must be a function");while(++t<e)t in r&&(typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u))}},!it(n.forEach));t(n,{map:function(n){var u=i.ToObject(this),r=p&&c(this)?l(this,""):u,e=i.ToUint32(r.length),o=d(e),f,t;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.map callback must be a function");for(t=0;t<e;t++)t in r&&(o[t]=typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u));return o}},!it(n.map));t(n,{filter:function(n){var u=i.ToObject(this),f=p&&c(this)?l(this,""):u,s=i.ToUint32(f.length),o=[],r,e,t;if(arguments.length>1&&(e=arguments[1]),!h(n))throw new TypeError("Array.prototype.filter callback must be a function");for(t=0;t<s;t++)t in f&&(r=f[t],(typeof e=="undefined"?n(r,t,u):n.call(e,r,t,u))&&y(o,r));return o}},!it(n.filter));t(n,{every:function(n){var u=i.ToObject(this),r=p&&c(this)?l(this,""):u,e=i.ToUint32(r.length),f,t;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.every callback must be a function");for(t=0;t<e;t++)if(t in r&&!(typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u)))return!1;return!0}},!it(n.every));t(n,{some:function(n){var u=i.ToObject(this),r=p&&c(this)?l(this,""):u,e=i.ToUint32(r.length),f,t;if(arguments.length>1&&(f=arguments[1]),!h(n))throw new TypeError("Array.prototype.some callback must be a function");for(t=0;t<e;t++)if(t in r&&(typeof f=="undefined"?n(r[t],t,u):n.call(f,r[t],t,u)))return!0;return!1}},!it(n.some));ti=!1;n.reduce&&(ti=typeof n.reduce.call("es5",function(n,t,i,r){return r})=="object");t(n,{reduce:function(n){var e=i.ToObject(this),r=p&&c(this)?l(this,""):e,f=i.ToUint32(r.length),t,u;if(!h(n))throw new TypeError("Array.prototype.reduce callback must be a function");if(f===0&&arguments.length===1)throw new TypeError("reduce of empty array with no initial value");if(t=0,arguments.length>=2)u=arguments[1];else do{if(t in r){u=r[t++];break}if(++t>=f)throw new TypeError("reduce of empty array with no initial value");}while(1);for(;t<f;t++)t in r&&(u=n(u,r[t],t,e));return u}},!ti);ii=!1;n.reduceRight&&(ii=typeof n.reduceRight.call("es5",function(n,t,i,r){return r})=="object");t(n,{reduceRight:function(n){var f=i.ToObject(this),u=p&&c(this)?l(this,""):f,e=i.ToUint32(u.length),r,t;if(!h(n))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(e===0&&arguments.length===1)throw new TypeError("reduceRight of empty array with no initial value");if(t=e-1,arguments.length>=2)r=arguments[1];else do{if(t in u){r=u[t--];break}if(--t<0)throw new TypeError("reduceRight of empty array with no initial value");}while(1);if(t<0)return r;do t in u&&(r=n(r,u[t],t,f));while(t--);return r}},!ii);er=n.indexOf&&[0,1].indexOf(1,2)!==-1;t(n,{indexOf:function(n){var r=p&&c(this)?l(this,""):i.ToObject(this),u=i.ToUint32(r.length),t;if(u===0)return-1;for(t=0,arguments.length>1&&(t=i.ToInteger(arguments[1])),t=t>=0?t:w(0,u+t);t<u;t++)if(t in r&&r[t]===n)return t;return-1}},er);or=n.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;t(n,{lastIndexOf:function(n){var r=p&&c(this)?l(this,""):i.ToObject(this),u=i.ToUint32(r.length),t;if(u===0)return-1;for(t=u-1,arguments.length>1&&(t=ot(t,i.ToInteger(arguments[1]))),t=t>=0?t:u-Math.abs(t);t>=0;t--)if(t in r&&n===r[t])return t;return-1}},or);sr=function(){var n=[1,2],t=n.splice();return n.length===2&&ht(t)&&t.length===0}();t(n,{splice:function(){return arguments.length===0?[]:gi.apply(this,arguments)}},!sr);hr=function(){var t={};return n.splice.call(t,0,0,1),t.length===1}();t(n,{splice:function(n,t){if(arguments.length===0)return[];var r=arguments;return this.length=w(i.ToInteger(this.length),0),arguments.length>0&&typeof t!="number"&&(r=k(arguments),r.length<2?y(r,this.length-n):r[1]=i.ToInteger(t)),gi.apply(this,r)}},!hr);cr=function(){var n=new d(1e5);return n[8]="x",n.splice(1,1),n.indexOf("x")===7}();lr=function(){var n=256,t=[];return t[n]="a",t.splice(n+1,0,"b"),t[n]==="a"}();t(n,{splice:function(n,t){for(var u=i.ToObject(this),b=[],s=i.ToUint32(u.length),p=i.ToInteger(n),l=p<0?w(s+p,0):ot(p,s),f=ot(w(i.ToInteger(t),0),s-l),r=0,o,a,h,c,d,g,y;r<f;)o=e(l+r),v(u,o)&&(b[r]=u[o]),r+=1;if(a=k(arguments,2),h=a.length,h<f){for(r=l,d=s-f;r<d;)o=e(r+f),c=e(r+h),v(u,o)?u[c]=u[o]:delete u[c],r+=1;for(r=s,g=s-f+h;r>g;)delete u[r-1],r-=1}else if(h>f)for(r=s-f;r>l;)o=e(r+f-1),c=e(r+h-1),v(u,o)?u[c]=u[o]:delete u[c],r-=1;for(r=l,y=0;y<a.length;++y)u[r]=a[y],r+=1;return u.length=s-f+h,b}},!cr||!lr);ri=n.join;try{ct=Array.prototype.join.call("123",",")!=="1,2,3"}catch(ao){ct=!0}ct&&t(n,{join:function(n){var t=typeof n=="undefined"?",":n;return ri.call(c(this)?l(this,""):this,t)}},ct);ui=[1,2].join(undefined)!=="1,2";ui&&t(n,{join:function(n){var t=typeof n=="undefined"?",":n;return ri.call(this,t)}},ui);fi=function(){for(var t=i.ToObject(this),r=i.ToUint32(t.length),n=0;n<arguments.length;)t[r+n]=arguments[n],n+=1;return t.length=r+n,r+n};ar=function(){var n={},t=Array.prototype.push.call(n,undefined);return t!==1||n.length!==1||typeof n[0]!="undefined"||!v(n,0)}();t(n,{push:function(){return ht(this)?et.apply(this,arguments):fi.apply(this,arguments)}},ar);vr=function(){var n=[],t=n.push(undefined);return t!==1||n.length!==1||typeof n[0]!="undefined"||!v(n,0)}();t(n,{push:fi},vr);t(n,{slice:function(){var n=c(this)?l(this,""):this;return of(n,arguments)}},p);var lf=function(){try{return[1,2].sort(null),[1,2].sort({}),!0}catch(n){}return!1}(),af=function(){try{return[1,2].sort(/a/),!1}catch(n){}return!0}(),vf=function(){try{return[1,2].sort(undefined),!0}catch(n){}return!1}();t(n,{sort:function(n){if(typeof n=="undefined")return ur(this);if(!h(n))throw new TypeError("Array.prototype.sort callback must be a function");return ur(this,n)}},lf||!vf||!af);var yf=!{toString:null}.propertyIsEnumerable("toString"),pf=function(){}.propertyIsEnumerable("prototype"),wf=!v("x","0"),ei=function(n){var t=n.constructor;return t&&t.prototype===n},bf={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0},kf=function(){if(typeof window=="undefined")return!1;for(var n in window)try{!bf["$"+n]&&v(window,n)&&window[n]!==null&&typeof window[n]=="object"&&ei(window[n])}catch(t){return!0}return!1}(),df=function(n){if(typeof window=="undefined"||!kf)return ei(n);try{return ei(n)}catch(t){return!1}},yr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],gf=yr.length,pr=function(n){return rr(n)==="[object Arguments]"},ne=function(n){return n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&!ht(n)&&h(n.callee)},wr=pr(arguments)?pr:ne;t(f,{keys:function(n){var s=h(n),o=wr(n),l=n!==null&&typeof n=="object",w=l&&c(n),t,a,i,r,p,u,f;if(!l&&!s&&!o)throw new TypeError("Object.keys called on a non-object");if(t=[],a=pf&&s,w&&wf||o)for(i=0;i<n.length;++i)y(t,e(i));if(!o)for(r in n)a&&r==="prototype"||!v(n,r)||y(t,e(r));if(yf)for(p=df(n),u=0;u<gf;u++)f=yr[u],p&&f==="constructor"||!v(n,f)||y(t,f);return t}});var te=f.keys&&function(){return f.keys(arguments).length===2}(1,2),ie=f.keys&&function(){var n=f.keys(arguments);return arguments.length!==1||n.length!==1||n[0]!==1}(1),br=f.keys;t(f,{keys:function(n){return wr(n)?br(k(n)):br(n)}},!te||ie);var lt=new Date(-0xc782b5b342b24).getUTCMonth()!==0,at=new Date(-0x55d318d56a724),kr=new Date(14496624e5),re=at.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT",oi,si,ue=at.getTimezoneOffset();ue<-720?(oi=at.toDateString()!=="Tue Jan 02 -45875",si=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(kr.toString())):(oi=at.toDateString()!=="Mon Jan 01 -45875",si=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(kr.toString()));var hi=u.bind(Date.prototype.getFullYear),ci=u.bind(Date.prototype.getMonth),dr=u.bind(Date.prototype.getDate),rt=u.bind(Date.prototype.getUTCFullYear),ut=u.bind(Date.prototype.getUTCMonth),li=u.bind(Date.prototype.getUTCDate),fe=u.bind(Date.prototype.getUTCDay),gr=u.bind(Date.prototype.getUTCHours),nu=u.bind(Date.prototype.getUTCMinutes),tu=u.bind(Date.prototype.getUTCSeconds),ee=u.bind(Date.prototype.getUTCMilliseconds),ai=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],vi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],iu=function(n,t){return dr(new Date(t,n,0))};t(Date.prototype,{getFullYear:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var n=hi(this);return n<0&&ci(this)>11?n+1:n},getMonth:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=hi(this),n=ci(this);return t<0&&n>11?0:n},getDate:function(){var r;if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=hi(this),i=ci(this),n=dr(this);return t<0&&i>11?i===12?n:(r=iu(0,t+1),r-n+1):n},getUTCFullYear:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var n=rt(this);return n<0&&ut(this)>11?n+1:n},getUTCMonth:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=rt(this),n=ut(this);return t<0&&n>11?0:n},getUTCDate:function(){var r;if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=rt(this),i=ut(this),n=li(this);return t<0&&i>11?i===12?n:(r=iu(0,t+1),r-n+1):n}},lt);t(Date.prototype,{toUTCString:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var u=fe(this),n=li(this),f=ut(this),e=rt(this),t=gr(this),i=nu(this),r=tu(this);return ai[u]+", "+(n<10?"0"+n:n)+" "+vi[f]+" "+e+" "+(t<10?"0"+t:t)+":"+(i<10?"0"+i:i)+":"+(r<10?"0"+r:r)+" GMT"}},lt||re);t(Date.prototype,{toDateString:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var t=this.getDay(),n=this.getDate(),i=this.getMonth(),r=this.getFullYear();return ai[t]+" "+vi[i]+" "+(n<10?"0"+n:n)+" "+r}},lt||oi);(lt||si)&&(Date.prototype.toString=function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var o=this.getDay(),n=this.getDate(),s=this.getMonth(),h=this.getFullYear(),t=this.getHours(),i=this.getMinutes(),r=this.getSeconds(),u=this.getTimezoneOffset(),f=Math.floor(Math.abs(u)/60),e=Math.floor(Math.abs(u)%60);return ai[o]+" "+vi[s]+" "+(n<10?"0"+n:n)+" "+h+" "+(t<10?"0"+t:t)+":"+(i<10?"0"+i:i)+":"+(r<10?"0"+r:r)+" GMT"+(u>0?"-":"+")+(f<10?"0"+f:f)+(e<10?"0"+e:e)},gt&&f.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var ru=-621987552e5,uu="-000001",oe=Date.prototype.toISOString&&new Date(ru).toISOString().indexOf(uu)===-1,se=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z",he=u.bind(Date.prototype.getTime);t(Date.prototype,{toISOString:function(){var n,i,t,r;if(!isFinite(this)||!isFinite(he(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");for(n=rt(this),i=ut(this),n+=Math.floor(i/12),i=(i%12+12)%12,t=[i+1,li(this),gr(this),nu(this),tu(this)],n=(n<0?"-":n>9999?"+":"")+a("00000"+Math.abs(n),0<=n&&n<=9999?-4:-6),r=0;r<t.length;++r)t[r]=a("00"+t[r],-2);return n+"-"+k(t,0,2).join("-")+"T"+k(t,2).join(":")+"."+a("000"+ee(this),-3)+"Z"}},oe||se);fu=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(ru).toJSON().indexOf(uu)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(n){return!1}}();fu||(Date.prototype.toJSON=function(){var n=f(this),r=i.ToPrimitive(n),t;if(typeof r=="number"&&!isFinite(r))return null;if(t=n.toISOString,!h(t))throw new TypeError("toISOString property is not callable");return t.call(n)});var ce=Date.parse("+033658-09-27T01:46:40.000Z")===1e15,le=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z")),ae=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));(ae||le||!ce)&&(b=Math.pow(2,31)-1,yi=tt(new Date(1970,0,1,0,0,0,b+1).getTime()),Date=function(n){var i=function(r,u,f,o,s,h,c){var l=arguments.length,a,v,y,w,p;return this instanceof n?(v=h,y=c,yi&&l>=7&&c>b&&(w=Math.floor(c/b)*b,p=Math.floor(w/1e3),v+=p,y-=p*1e3),a=l===1&&e(r)===r?new n(i.parse(r)):l>=7?new n(r,u,f,o,s,v,y):l>=6?new n(r,u,f,o,s,v):l>=5?new n(r,u,f,o,s):l>=4?new n(r,u,f,o):l>=3?new n(r,u,f):l>=2?new n(r,u):l>=1?new n(r instanceof n?+r:r):new n):a=n.apply(this,arguments),st(a)||t(a,{constructor:i},!0),a},o=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),h=[0,31,59,90,120,151,181,212,243,273,304,334,365],u=function(n,t){var i=t>1?1:0;return h[t]+Math.floor((n-1969+i)/4)-Math.floor((n-1901+i)/100)+Math.floor((n-1601+i)/400)+365*(n-1970)},c=function(t){var u=0,i=t,f,r;return yi&&i>b&&(f=Math.floor(i/b)*b,r=Math.floor(f/1e3),u+=r,i-=r*1e3),s(new n(1970,0,1,0,0,u,i))},r,f;for(r in n)v(n,r)&&(i[r]=n[r]);return t(i,{now:n.now,UTC:n.UTC},!0),i.prototype=n.prototype,t(i.prototype,{constructor:i},!0),f=function(t){var i=o.exec(t);if(i){var e=s(i[1]),f=s(i[2]||1)-1,h=s(i[3]||1)-1,y=s(i[4]||0),l=s(i[5]||0),a=s(i[6]||0),v=Math.floor(s(i[7]||0)*1e3),k=Boolean(i[4]&&!i[8]),p=i[9]==="-"?1:-1,w=s(i[10]||0),b=s(i[11]||0),r,d=l>0||a>0||v>0;return y<(d?24:25)&&l<60&&a<60&&v<1e3&&f>-1&&f<12&&w<24&&b<60&&h>-1&&h<u(e,f+1)-u(e,f)&&(r=((u(e,f)+h)*24+y+w*p)*60,r=((r+l+b*p)*60+a)*1e3+v,k&&(r=c(r)),-864e13<=r&&r<=864e13)?r:NaN}return n.parse.apply(this,arguments)},t(i,{parse:f}),i}(Date));Date.now||(Date.now=function(){return(new Date).getTime()});var ve=ft.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||1000000000000000128..toFixed(0)!=="1000000000000000128"),r={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(n,t){for(var u=-1,i=t;++u<r.size;)i+=n*r.data[u],r.data[u]=i%r.base,i=Math.floor(i/r.base)},divide:function(n){for(var i=r.size,t=0;--i>=0;)t+=r.data[i],r.data[i]=Math.floor(t/n),t=t%n*r.base},numToString:function(){for(var t=r.size,n="",i;--t>=0;)(n!==""||t===0||r.data[t]!==0)&&(i=e(r.data[t]),n===""?n=i:n+=a("0000000",0,7-i.length)+i);return n},pow:function eu(n,t,i){return t===0?i:t%2==1?eu(n,t-1,i*n):eu(n*n,t/2,i)},log:function(n){for(var i=0,t=n;t>=4096;)i+=12,t/=4096;while(t>=2)i+=1,t/=2;return i}},ye=function(n){var t,i,h,u,f,l,o,c;if(t=s(n),t=tt(t)?0:Math.floor(t),t<0||t>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(i=s(this),tt(i))return"NaN";if(i<=-1e21||i>=1e21)return e(i);if(h="",i<0&&(h="-",i=-i),u="0",i>1e-21)if(f=r.log(i*r.pow(2,69,1))-69,l=f<0?i*r.pow(2,-f,1):i/r.pow(2,f,1),l*=4503599627370496,f=52-f,f>0){for(r.multiply(0,l),o=t;o>=7;)r.multiply(1e7,0),o-=7;for(r.multiply(r.pow(10,o,1),0),o=f-1;o>=23;)r.divide(8388608),o-=23;r.divide(1<<o);r.multiply(1,1);r.divide(2);u=r.numToString()}else r.multiply(0,l),r.multiply(1<<-f,0),u=r.numToString()+a("0.00000000000000000000",2,2+t);return t>0?(c=u.length,u=c<=t?h+a("0.0000000000000000000",0,t-c+2)+u:h+a(u,0,c-t)+"."+a(u,c-t)):u=h+u,u};t(ft,{toFixed:ye},ve);ou=function(){try{return 1..toPrecision(undefined)==="1"}catch(n){return!0}}();pi=ft.toPrecision;t(ft,{toPrecision:function(n){return typeof n=="undefined"?pi.call(this):pi.call(this,n)}},ou);"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1?function(){var n=typeof/()??/.exec("")[1]=="undefined",t=Math.pow(2,32)-1;o.split=function(r,u){var o=String(this),c;if(typeof r=="undefined"&&u===0)return[];if(!dt(r))return l(this,r,u);var e=[],p=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),h=0,w,f,v,b,s=new RegExp(r.source,p+"g");for(n||(w=new RegExp("^"+s.source+"$(?!\\s)",p)),c=typeof u=="undefined"?t:i.ToUint32(u),f=s.exec(o);f;){if(v=f.index+f[0].length,v>h&&(y(e,a(o,h,f.index)),!n&&f.length>1&&f[0].replace(w,function(){for(var n=1;n<arguments.length-2;n++)typeof arguments[n]=="undefined"&&(f[n]=void 0)}),f.length>1&&f.index<o.length&&et.apply(e,k(f,1)),b=f[0].length,h=v,e.length>=c))break;s.lastIndex===f.index&&s.lastIndex++;f=s.exec(o)}return h===o.length?(b||!s.test(""))&&y(e,""):y(e,a(o,h)),e.length>c?k(e,0,c):e}}():"0".split(void 0,0).length&&(o.split=function(n,t){return typeof n=="undefined"&&t===0?[]:l(this,n,t)});wi=o.replace;su=function(){var n=[];return"x".replace(/x(.)?/g,function(t,i){y(n,i)}),n.length===1&&typeof n[0]=="undefined"}();su||(o.replace=function(n,t){var r=h(t),u=dt(n)&&/\)[*?]/.test(n.source),i;return r&&u?(i=function(i){var u=arguments.length,f=n.lastIndex,r;return n.lastIndex=0,r=n.exec(i)||[],n.lastIndex=f,y(r,arguments[u-2],arguments[u-1]),t.apply(this,r)},wi.call(this,n,i)):wi.call(this,n,t)});hu=o.substr;cu="".substr&&"0b".substr(-1)!=="b";t(o,{substr:function(n,t){var i=n;return n<0&&(i=w(this.length+n,0)),hu.call(this,i,t)}},cu);var vt="\t\n\x0b\f\r   ᠎             　\u2028\u2029﻿",yt="["+vt+"]",pe=new RegExp("^"+yt+yt+"*"),we=new RegExp(yt+yt+"*$"),be=o.trim&&(vt.trim()||!"​".trim());t(o,{trim:function(){if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");return e(this).replace(pe,"").replace(we,"")}},be);bi=u.bind(String.prototype.trim);lu=o.lastIndexOf&&"abcあい".lastIndexOf("あい",2)!==-1;t(o,{lastIndexOf:function(n){var u;if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");for(var f=e(this),o=e(n),h=arguments.length>1?s(arguments[1]):NaN,l=tt(h)?Infinity:i.ToInteger(h),c=ot(w(l,0),f.length),r=o.length,t=c+r;t>0;)if(t=w(0,t-r),u=sf(a(f,t,c+r),o),u!==-1)return t+u;return-1}},lu);au=o.lastIndexOf;t(o,{lastIndexOf:function(){return au.apply(this,arguments)}},o.lastIndexOf.length!==1);(parseInt(vt+"08")!==8||parseInt(vt+"0x16")!==22)&&(parseInt=function(n){var t=/^[\-+]?0[xX]/;return function(i,r){var u=bi(i),f=s(r)||(t.test(u)?16:10);return n(u,f)}}(parseInt));1/parseFloat("-0")!=-Infinity&&(parseFloat=function(n){return function(t){var i=bi(t),r=n(i);return r===0&&a(i,0,1)==="-"?-0:r}}(parseFloat));String(new RangeError("test"))!=="RangeError: test"&&(vu=function(){var n,t;if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");return(n=this.name,typeof n=="undefined"?n="Error":typeof n!="string"&&(n=e(n)),t=this.message,typeof t=="undefined"?t="":typeof t!="string"&&(t=e(t)),!n)?t:t?n+": "+t:n},Error.prototype.toString=vu);gt&&(ki=function(n,t){if(hf(n,t)){var i=Object.getOwnPropertyDescriptor(n,t);i.enumerable=!1;Object.defineProperty(n,t,i)}},ki(Error.prototype,"message"),Error.prototype.message!==""&&(Error.prototype.message=""),ki(Error.prototype,"name"));String(/a/mig)!=="/a/gim"&&(yu=function(){var n="/"+this.source+"/";return this.global&&(n+="g"),this.ignoreCase&&(n+="i"),this.multiline&&(n+="m"),n},RegExp.prototype.toString=yu)}),function(){function t(){var n=i();return n===-1?!1:n<9}function i(){var n=-1;if(navigator.appName=="Microsoft Internet Explorer"){var i=navigator.userAgent,r=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),t=r.exec(i);t!==null&&(n=parseFloat(t[1]))}return n}function n(n){return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}if(t()){if(Object.videoVastMonkeyPatched)return;(function(){var t=Object.defineProperty;Object.defineProperty=function(i,r,u){if(n(i))return t(i,r,u);if(u.get||u.set)throw new Error("browser doesn't support getters and setters");i[r]=u.value}})();Object.getOwnPropertyNames=function(n){var i=[],r,u=["length","name","arguments","caller","prototype","observe","unobserve"],t,f;if(typeof n=="undefined"||n===null)throw new TypeError("Cannot convert undefined or null to object");n=Object(n);for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&i.push(r);for(t=0,f=u.length;t<f;t++)u[t]in n&&i.push(u[t]);return i},function(){var t=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(i,r){return n(i)?t(i,r):{writable:!0,configurable:!0,enumerable:!1,value:i[r]}}}();Object.videoVastMonkeyPatched=!0}typeof Object.create!="function"&&(Object.create=function(){function n(){}var t=Object.prototype.hasOwnProperty;return function(i){var f,r,u;if(typeof i!="object")throw new TypeError("Object prototype may only be an Object or null");if(n.prototype=i,f=new n,n.prototype=null,arguments.length>1){r=Object(arguments[1]);for(u in r)t.call(r,u)&&(f[u]=r[u])}return f}}());typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=typeof"test".__proto__=="object"?function(n){return n.__proto__}:function(n){return n.constructor.prototype})}(),function e(n,t,i){function u(r,e){var s,h,o;if(!t[r]){if(!n[r]){if(s=typeof require=="function"&&require,!e&&s)return s(r,!0);if(f)return f(r,!0);h=new Error("Cannot find module '"+r+"'");throw h.code="MODULE_NOT_FOUND",h;}o=t[r]={exports:{}};n[r][0].call(o.exports,function(t){var i=n[r][1][t];return u(i?i:t)},o,o.exports,e,n,t,i)}return t[r].exports}for(var f=typeof require=="function"&&require,r=0;r<i.length;r++)u(i[r]);return u}({1:[function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var r,u;Object.defineProperty(i,"__esModule",{value:!0});r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();u=i.IVPAIDAdUnit=function(){function n(){f(this,n)}return r(n,[{key:"handshakeVersion",value:function(){var n=arguments.length<=0||arguments[0]===undefined?"2.0":arguments[0],t=arguments.length<=1||arguments[1]===undefined?undefined:arguments[1]}},{key:"initAd",value:function(){var n=arguments.length<=4||arguments[4]===undefined?{AdParameters:""}:arguments[4],t=arguments.length<=5||arguments[5]===undefined?{flashVars:""}:arguments[5],i=arguments.length<=6||arguments[6]===undefined?undefined:arguments[6]}},{key:"resizeAd",value:function(){var n=arguments.length<=3||arguments[3]===undefined?undefined:arguments[3]}},{key:"startAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0]}},{key:"stopAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0]}},{key:"pauseAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0]}},{key:"resumeAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0]}},{key:"expandAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0]}},{key:"collapseAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0]}},{key:"skipAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0]}},{key:"getAdLinear",value:function(){}},{key:"getAdWidth",value:function(){}},{key:"getAdHeight",value:function(){}},{key:"getAdExpanded",value:function(){}},{key:"getAdSkippableState",value:function(){}},{key:"getAdRemainingTime",value:function(){}},{key:"getAdDuration",value:function(){}},{key:"setAdVolume",value:function(){var n=arguments.length<=1||arguments[1]===undefined?undefined:arguments[1]}},{key:"getAdVolume",value:function(){}},{key:"getAdCompanions",value:function(){}},{key:"getAdIcons",value:function(){}}]),n}();Object.defineProperty(u,"EVENTS",{writable:!1,configurable:!1,value:["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdError"]})},{}],2:[function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":u(t))==="object"||typeof t=="function")?t:n}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":u(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n},f;Object.defineProperty(i,"__esModule",{value:!0});f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var r=n("./IVPAIDAdUnit").IVPAIDAdUnit,h=Object.getOwnPropertyNames(r.prototype).filter(function(n){return["constructor"].indexOf(n)===-1}),c=i.VPAIDAdUnit=function(n){function t(n){e(this,t);var i=o(this,Object.getPrototypeOf(t).call(this));return i._destroyed=!1,i._flash=n,i}return s(t,n),f(t,[{key:"_destroy",value:function(){var n=this;this._destroyed=!0;h.forEach(function(t){n._flash.removeCallbackByMethodName(t)});r.EVENTS.forEach(function(t){n._flash.offEvent(t)});this._flash=null}},{key:"isDestroyed",value:function(){return this._destroyed}},{key:"on",value:function(n,t){this._flash.on(n,t)}},{key:"off",value:function(n,t){this._flash.off(n,t)}},{key:"handshakeVersion",value:function(){var n=arguments.length<=0||arguments[0]===undefined?"2.0":arguments[0],t=arguments.length<=1||arguments[1]===undefined?undefined:arguments[1];this._flash.callFlashMethod("handshakeVersion",[n],t)}},{key:"initAd",value:function(n,t,i,r){var u=arguments.length<=4||arguments[4]===undefined?{AdParameters:""}:arguments[4],f=arguments.length<=5||arguments[5]===undefined?{flashVars:""}:arguments[5],e=arguments.length<=6||arguments[6]===undefined?undefined:arguments[6];this._flash.setSize(n,t);u=u||{AdParameters:""};f=f||{flashVars:""};this._flash.callFlashMethod("initAd",[this._flash.getWidth(),this._flash.getHeight(),i,r,u.AdParameters||"",f.flashVars||""],e)}},{key:"resizeAd",value:function(n,t,i){var r=arguments.length<=3||arguments[3]===undefined?undefined:arguments[3];this._flash.setSize(n,t);this._flash.callFlashMethod("resizeAd",[this._flash.getWidth(),this._flash.getHeight(),i],r)}},{key:"startAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0];this._flash.callFlashMethod("startAd",[],n)}},{key:"stopAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0];this._flash.callFlashMethod("stopAd",[],n)}},{key:"pauseAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0];this._flash.callFlashMethod("pauseAd",[],n)}},{key:"resumeAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0];this._flash.callFlashMethod("resumeAd",[],n)}},{key:"expandAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0];this._flash.callFlashMethod("expandAd",[],n)}},{key:"collapseAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0];this._flash.callFlashMethod("collapseAd",[],n)}},{key:"skipAd",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0];this._flash.callFlashMethod("skipAd",[],n)}},{key:"getAdLinear",value:function(n){this._flash.callFlashMethod("getAdLinear",[],n)}},{key:"getAdWidth",value:function(n){this._flash.callFlashMethod("getAdWidth",[],n)}},{key:"getAdHeight",value:function(n){this._flash.callFlashMethod("getAdHeight",[],n)}},{key:"getAdExpanded",value:function(n){this._flash.callFlashMethod("getAdExpanded",[],n)}},{key:"getAdSkippableState",value:function(n){this._flash.callFlashMethod("getAdSkippableState",[],n)}},{key:"getAdRemainingTime",value:function(n){this._flash.callFlashMethod("getAdRemainingTime",[],n)}},{key:"getAdDuration",value:function(n){this._flash.callFlashMethod("getAdDuration",[],n)}},{key:"setAdVolume",value:function(n){var t=arguments.length<=1||arguments[1]===undefined?undefined:arguments[1];this._flash.callFlashMethod("setAdVolume",[n],t)}},{key:"getAdVolume",value:function(n){this._flash.callFlashMethod("getAdVolume",[],n)}},{key:"getAdCompanions",value:function(n){this._flash.callFlashMethod("getAdCompanions",[],n)}},{key:"getAdIcons",value:function(n){this._flash.callFlashMethod("getAdIcons",[],n)}}]),t}(r)},{"./IVPAIDAdUnit":1}],3:[function(n,t){"use strict";function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function i(){if(this._destroyed)throw new Error("VPAIDFlashToJS is destroyed!");}function k(){this._loadLater&&(this.loadAdUnit(this._loadLater.url,this._loadLater.callback),delete this._loadLater)}function h(n,t){var i=arguments.length<=2||arguments[2]===undefined?!1:arguments[2];Object.defineProperty(u,n,{writable:i,configurable:!1,value:t})}var c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),r=n("swfobject"),f=n("./jsFlashBridge").JSFlashBridge,a=n("./VPAIDAdUnit").VPAIDAdUnit,v=n("./utils").noop,y=n("./utils").callbackTimeout,e=n("./utils").isPositiveInt,p=n("./utils").createElementWithID,w=n("./utils").unique("vpaid"),b=n("./flashTester.js").createFlashTester,o="10.1.0",s={isSupported:function(){return!0}},u=function(){function n(t,i){function b(n){return setTimeout(function(){i(new Error(n))},0),c}var u=arguments.length<=2||arguments[2]===undefined?{data:"VPAIDFlash.swf",width:800,height:400}:arguments[2],d=this,s=arguments.length<=3||arguments[3]===undefined?{wmode:"transparent",salign:"tl",align:"left",allowScriptAccess:"always",scale:"noScale",allowFullScreen:"true",quality:"high"}:arguments[3],h=arguments.length<=4||arguments[4]===undefined?{debug:!1,timeout:1e4}:arguments[4],c,a;if(l(this,n),c=this,this._vpaidParentEl=t,this._flashID=w(),this._destroyed=!1,i=i||v,u.width=e(u.width,800),u.height=e(u.height,400),p(t,this._flashID,!0),s.movie=u.data,s.FlashVars="flashid="+this._flashID+"&handler="+f.VPAID_FLASH_HANDLER+"&debug="+h.debug+"&salign="+s.salign,!n.isSupported())return b("user don't support flash or doesn't have the minimum required version of flash "+o);if(this.el=r.createSWF(u,s,this._flashID),!this.el)return b("swfobject failed to create object in element");a=y(h.timeout,function(n,t){k.call(d);i(n,t)},function(){i("vpaid flash load timeout "+h.timeout)});this._flash=new f(this.el,u.data,this._flashID,u.width,u.height,a)}return c(n,[{key:"destroy",value:function(){this._destroyAdUnit();this._flash&&(this._flash.destroy(),this._flash=null);this.el=null;this._destroyed=!0}},{key:"isDestroyed",value:function(){return this._destroyed}},{key:"_destroyAdUnit",value:function(){delete this._loadLater;this._adUnitLoad&&(this._adUnitLoad=null,this._flash.removeCallback(this._adUnitLoad));this._adUnit&&(this._adUnit._destroy(),this._adUnit=null)}},{key:"loadAdUnit",value:function(n,t){var r=this;i.call(this);this._adUnit&&this._destroyAdUnit();this._flash.isReady()?(this._adUnitLoad=function(n){n||(r._adUnit=new a(r._flash));r._adUnitLoad=null;t(n,r._adUnit)},this._flash.callFlashMethod("loadAdUnit",[n],this._adUnitLoad)):this._loadLater={url:n,callback:t}}},{key:"unloadAdUnit",value:function(){var n=arguments.length<=0||arguments[0]===undefined?undefined:arguments[0];i.call(this);this._destroyAdUnit();this._flash.callFlashMethod("unloadAdUnit",[],n)}},{key:"getFlashID",value:function(){return i.call(this),this._flash.getFlashID()}},{key:"getFlashURL",value:function(){return i.call(this),this._flash.getFlashURL()}}]),n}();h("isSupported",function(){return r.hasFlashPlayerVersion(o)&&s.isSupported()},!0);h("runFlashTest",function(n){s=b(document.body,n)});u.swfobject=r;t.exports=u},{"./VPAIDAdUnit":2,"./flashTester.js":4,"./jsFlashBridge":5,"./utils":8,swfobject:14}],4:[function(n,t,i){"use strict";function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var e;Object.defineProperty(i,"__esModule",{value:!0});e=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var h=n("swfobject"),u="vpaid_video_flash_tester",r="vpaid_video_flash_tester_el",o=n("./jsFlashBridge").JSFlashBridge,f=n("./utils"),c=n("./registry").MultipleValuesRegistry,l=function(){function n(t){var e=this,i=arguments.length<=1||arguments[1]===undefined?{data:"VPAIDFlash.swf",width:800,height:400}:arguments[1],u;s(this,n);this.parentEl=f.createElementWithID(t,r);f.hideFlashEl(this.parentEl);u={};u.movie=i.data;u.FlashVars="flashid="+r+"&handler="+o.VPAID_FLASH_HANDLER;u.allowScriptAccess="always";this.el=h.createSWF(i,u,r);this._handlers=new c;this._isSupported=!1;this.el&&(f.hideFlashEl(this.el),this._flash=new o(this.el,i.data,r,i.width,i.height,function(){var n=!0;e._isSupported=n;e._handlers.get("change").forEach(function(t){setTimeout(function(){t("change",n)},0)})}))}return e(n,[{key:"isSupported",value:function(){return this._isSupported}},{key:"on",value:function(n,t){this._handlers.add(n,t)}}]),n}(),a=i.createFlashTester=function(n,t){return window[u]||(window[u]=new l(n,t)),window[u]}},{"./jsFlashBridge":5,"./registry":7,"./utils":8,swfobject:14}],5:[function(n,t,i){"use strict";function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t,i){var r=this;setTimeout(function(){var u=r._callbacks.get(n);u&&(r._callbacks.remove(n),u(t,i))},0)}var u;Object.defineProperty(i,"__esModule",{value:!0});u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var c=n("./utils").unique,f=n("./utils").isPositiveInt,l=n("./utils").stringEndsWith,a=n("./registry").SingleValueRegistry,v=n("./registry").MultipleValuesRegistry,r=n("./jsFlashBridgeRegistry"),e="vpaid_video_flash_handler",o="AdError",y=i.JSFlashBridge=function(){function n(t,i,u,f,e,o){h(this,n);this._el=t;this._flashID=u;this._flashURL=i;this._width=f;this._height=e;this._handlers=new v;this._callbacks=new a;this._uniqueMethodIdentifier=c(this._flashID);this._ready=!1;this._handShakeHandler=o;r.addInstance(this._flashID,this)}return u(n,[{key:"on",value:function(n,t){this._handlers.add(n,t)}},{key:"off",value:function(n,t){return this._handlers.remove(n,t)}},{key:"offEvent",value:function(n){return this._handlers.removeByKey(n)}},{key:"offAll",value:function(){return this._handlers.removeAll()}},{key:"callFlashMethod",value:function(n){var u=arguments.length<=1||arguments[1]===undefined?[]:arguments[1],i=arguments.length<=2||arguments[2]===undefined?undefined:arguments[2],t="";i&&(t=this._uniqueMethodIdentifier()+"_"+n,this._callbacks.add(t,i));try{this._el[n]([t].concat(u))}catch(r){i?s.call(this,t,r):this._trigger(o,r)}}},{key:"removeCallback",value:function(n){return this._callbacks.removeByValue(n)}},{key:"removeCallbackByMethodName",value:function(n){var t=this;this._callbacks.filterKeys(function(t){return l(t,n)}).forEach(function(n){t._callbacks.remove(n)})}},{key:"removeAllCallbacks",value:function(){return this._callbacks.removeAll()}},{key:"_trigger",value:function(n,t){var i=this;this._handlers.get(n).forEach(function(r){n==="AdClickThru"?r(t):setTimeout(function(){i._handlers.get(n).length>0&&r(t)},0)})}},{key:"_callCallback",value:function(n,t,i,r){var u=this._callbacks.get(t);if(!u){i&&t===""&&this.trigger(o,i);return}s.call(this,t,i,r)}},{key:"_handShake",value:function(n,t){this._ready=!0;this._handShakeHandler&&(this._handShakeHandler(n,t),delete this._handShakeHandler)}},{key:"getSize",value:function(){return{width:this._width,height:this._height}}},{key:"setSize",value:function(n,t){this._width=f(n,this._width);this._height=f(t,this._height);this._el.setAttribute("width",this._width);this._el.setAttribute("height",this._height)}},{key:"getWidth",value:function(){return this._width}},{key:"setWidth",value:function(n){this.setSize(n,this._height)}},{key:"getHeight",value:function(){return this._height}},{key:"setHeight",value:function(n){this.setSize(this._width,n)}},{key:"getFlashID",value:function(){return this._flashID}},{key:"getFlashURL",value:function(){return this._flashURL}},{key:"isReady",value:function(){return this._ready}},{key:"destroy",value:function(){this.offAll();this.removeAllCallbacks();r.removeInstanceByID(this._flashID);this._el.parentElement&&this._el.parentElement.removeChild(this._el)}}]),n}();Object.defineProperty(y,"VPAID_FLASH_HANDLER",{writable:!1,configurable:!1,value:e});window[e]=function(n,t,i,u,f,e){var o=r.getInstanceByID(n);o&&(i==="handShake"?o._handShake(f,e):t!=="event"?o._callCallback(i,u,f,e):o._trigger(i,e))}},{"./jsFlashBridgeRegistry":6,"./registry":7,"./utils":8}],6:[function(n,t){"use strict";var u=n("./registry").SingleValueRegistry,r=new u,i={};Object.defineProperty(i,"addInstance",{writable:!1,configurable:!1,value:function(n,t){r.add(n,t)}});Object.defineProperty(i,"getInstanceByID",{writable:!1,configurable:!1,value:function(n){return r.get(n)}});Object.defineProperty(i,"removeInstanceByID",{writable:!1,configurable:!1,value:function(n){return r.remove(n)}});t.exports=i},{"./registry":7}],7:[function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var r,f,e;Object.defineProperty(i,"__esModule",{value:!0});r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();f=i.MultipleValuesRegistry=function(){function n(){u(this,n);this._registries={}}return r(n,[{key:"add",value:function(n,t){this._registries[n]||(this._registries[n]=[]);this._registries[n].indexOf(t)===-1&&this._registries[n].push(t)}},{key:"get",value:function(n){return this._registries[n]||[]}},{key:"filterKeys",value:function(n){return Object.keys(this._registries).filter(n)}},{key:"findByValue",value:function(n){var t=this;return Object.keys(this._registries).filter(function(i){return t._registries[i].indexOf(n)!==-1})}},{key:"remove",value:function(n,t){if(this._registries[n]){var i=this._registries[n].indexOf(t);if(!(i<0))return this._registries[n].splice(i,1)}}},{key:"removeByKey",value:function(n){var t=this._registries[n];return delete this._registries[n],t}},{key:"removeByValue",value:function(n){var t=this,i=this.findByValue(n);return i.map(function(i){return t.remove(i,n)})}},{key:"removeAll",value:function(){var n=this._registries;return this._registries={},n}},{key:"size",value:function(){return Object.keys(this._registries).length}}]),n}();e=i.SingleValueRegistry=function(){function n(){u(this,n);this._registries={}}return r(n,[{key:"add",value:function(n,t){this._registries[n]=t}},{key:"get",value:function(n){return this._registries[n]}},{key:"filterKeys",value:function(n){return Object.keys(this._registries).filter(n)}},{key:"findByValue",value:function(n){var t=this;return Object.keys(this._registries).filter(function(i){return t._registries[i]===n})}},{key:"remove",value:function(n){var t=this._registries[n];return delete this._registries[n],t}},{key:"removeByValue",value:function(n){var t=this,i=this.findByValue(n);return i.map(function(n){return t.remove(n)})}},{key:"removeAll",value:function(){var n=this._registries;return this._registries={},n}},{key:"size",value:function(){return Object.keys(this._registries).length}}]),n}()},{}],8:[function(n,t,i){"use strict";function u(n){var t=-1;return function(){return n+"_"+ ++t}}function r(){}function f(n,t,i){var u=setTimeout(function(){t=r;i()},n);return function(){clearTimeout(u);t.apply(this,arguments)}}function e(n,t){var r=arguments.length<=2||arguments[2]===undefined?!1:arguments[2],i=document.createElement("div");return i.id=t,r&&(n.innerHTML=""),n.appendChild(i),i}function o(n,t){return!isNaN(parseFloat(n))&&isFinite(n)&&n>0?n:t}function h(n,t){return s.call(n,t)}function c(n){n.style.position="absolute";n.style.left="-1px";n.style.top="-1px";n.style.width="1px";n.style.height="1px"}Object.defineProperty(i,"__esModule",{value:!0});i.unique=u;i.noop=r;i.callbackTimeout=f;i.createElementWithID=e;i.isPositiveInt=o;i.stringEndsWith=h;i.hideFlashEl=c;var s=function(){return String.prototype.endsWith?String.prototype.endsWith:function(n,t){var i=this.toString(),r;return(t===undefined||t>i.length)&&(t=i.length),t-=n.length,r=i.indexOf(n,t),r!==-1&&r===t}}()},{}],9:[function(n,t){"use strict";function i(){}function r(n,t,i){Object.defineProperty(n,t,{writable:!1,configurable:!1,value:i})}var u=["handshakeVersion","initAd","startAd","stopAd","skipAd","resizeAd","pauseAd","resumeAd","expandAd","collapseAd","subscribe","unsubscribe"],f;i.prototype.handshakeVersion=function(){};i.prototype.initAd=function(){};i.prototype.startAd=function(){};i.prototype.stopAd=function(){};i.prototype.skipAd=function(){};i.prototype.resizeAd=function(){};i.prototype.pauseAd=function(){};i.prototype.resumeAd=function(){};i.prototype.expandAd=function(){};i.prototype.collapseAd=function(){};i.prototype.subscribe=function(){};i.prototype.unsubscribe=function(){};i.prototype.getAdLinear=function(){};i.prototype.getAdWidth=function(){};i.prototype.getAdHeight=function(){};i.prototype.getAdExpanded=function(){};i.prototype.getAdSkippableState=function(){};i.prototype.getAdRemainingTime=function(){};i.prototype.getAdDuration=function(){};i.prototype.getAdVolume=function(){};i.prototype.getAdCompanions=function(){};i.prototype.getAdIcons=function(){};i.prototype.setAdVolume=function(){};r(i,"METHODS",u);r(i,"GETTERS",["getAdLinear","getAdWidth","getAdHeight","getAdExpanded","getAdSkippableState","getAdRemainingTime","getAdDuration","getAdVolume","getAdCompanions","getAdIcons"]);r(i,"SETTERS",["setAdVolume"]);r(i,"EVENTS",["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdError"]);f=u.filter(function(n){return["skipAd"].indexOf(n)===-1});r(i,"checkVPAIDInterface",function(n){return f.every(function(t){return typeof n[t]=="function"})});t.exports=i},{}],10:[function(n,t){"use strict";function i(n,t,i,r){this._isValid=s(n);this._isValid&&(this._creative=n,this._el=t,this._videoEl=i,this._iframe=r,this._subscribers=new o,l.call(this))}function l(){if(c.forEach(function(n){this._creative.subscribe(v.bind(this,n),n)}.bind(this)),this._creative.subscribe(a.bind(this),f),this._videoEl){var n=this._iframe.contentDocument.documentElement,t=this._videoEl;n.addEventListener("click",function(i){i.target===n&&t.click()})}}function a(n,t,i){this._subscribers.triggerSync(f,{url:n,id:t,playerHandles:i})}function v(n){this._subscribers.trigger(n,Array.prototype.slice(arguments,1))}function u(n,t,i,r){n?n(i,r):i&&t.trigger(h,i)}var r=n("./IVPAIDAdUnit"),o=n("./subscriber"),s=r.checkVPAIDInterface,e=n("./utils"),y=r.METHODS,h="AdError",f="AdClickThru",c=r.EVENTS.filter(function(n){return n!=f});i.prototype=Object.create(r.prototype);i.prototype.isValidVPAIDAd=function(){return this._isValid};r.METHODS.forEach(function(n){["subscribe","unsubscribe","initAd"].indexOf(n)===-1&&(i.prototype[n]=function(){var i=r.prototype[n].length,t=Array.prototype.slice.call(arguments),f=i===t.length?t.pop():undefined;setTimeout(function(){var i,r=null;try{i=this._creative[n].apply(this._creative,t)}catch(e){r=e}u(f,this._subscribers,r,i)}.bind(this),0)})});i.prototype.initAd=function(n,t,i,r,f,o,s){f=f||{};o=e.extend({slot:this._el,videoSlot:this._videoEl},o||{});setTimeout(function(){var e;try{this._creative.initAd(n,t,i,r,f,o)}catch(h){e=h}u(s,this._subscribers,e)}.bind(this),0)};i.prototype.subscribe=function(n,t,i){this._subscribers.subscribe(t,n,i)};i.prototype.unsubscribe=function(n,t){this._subscribers.unsubscribe(t,n)};i.prototype.on=i.prototype.subscribe;i.prototype.off=i.prototype.unsubscribe;r.GETTERS.forEach(function(n){i.prototype[n]=function(t){setTimeout(function(){var i,r=null;try{i=this._creative[n]()}catch(f){r=f}u(t,this._subscribers,r,i)}.bind(this),0)}});i.prototype.setAdVolume=function(n,t){setTimeout(function(){var r,i=null;try{this._creative.setAdVolume(n);r=this._creative.getAdVolume()}catch(f){i=f}i||(i=e.validate(r===n,"failed to apply volume: "+n));u(t,this._subscribers,i,r)}.bind(this),0)};i.prototype._destroy=function(){this.stopAd();this._subscribers.unsubscribeAll()};t.exports=i},{"./IVPAIDAdUnit":9,"./subscriber":12,"./utils":13}],11:[function(n,t){"use strict";function r(n,t,r,u){r=r||{};this._id=s();this._destroyed=!1;this._frameContainer=i.createElementInEl(n,"div");this._videoEl=t;this._vpaidOptions=u||{timeout:1e4};this._templateConfig={template:r.template||c,extraOptions:r.extraOptions||{}}}function a(n){var t=this[n];t&&(t.remove(),delete this[n])}function v(){f.call(this);delete this._adUnit}function u(){f.call(this);y.call(this)}function f(){a.call(this,"_frame");e.call(this)}function e(){this._onLoad&&(window.removeEventListener("message",this._onLoad),i.clearCallbackTimeout(this._onLoad),delete this._onLoad)}function y(){this._adUnit&&(this._adUnit.stopAd(),delete this._adUnit)}function p(){if(this._destroyed)throw new Error("VPAIDHTML5Client already destroyed!");}function o(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}var i=n("./utils"),s=i.unique("vpaidIframe"),h=n("./VPAIDAdUnit"),c='<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><\/head><body style="margin:0;padding:0"><div class="ad-element"><\/div><script type="text/javascript" src="{{iframeURL_JS}}"><\/script><script type="text/javascript">window.parent.postMessage(\'{"event": "ready", "id": "{{iframeID}}"}\', \'{{origin}}\');<\/script><\/body><\/html>',l="AdStopped";r.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,u.call(this))};r.prototype.isDestroyed=function(){return this._destroyed};r.prototype.loadAdUnit=function(n,t){function s(n){var c,f,u,s,a;if(n.origin===o())return(c=JSON.parse(n.data),c.id!==r.getID())?void 0:(r._frame.contentWindow?(s=r._frame.contentWindow.getVPAIDAd,u=i.validate(typeof s=="function","the ad didn't return a function to create an ad")):u="the iframe is not anymore in the DOM tree",u||(a=r._frame.contentWindow.document.querySelector(".ad-element"),f=new h(s(),a,r._videoEl,r._frame),f.subscribe(l,v.bind(r)),u=i.validate(f.isValidVPAIDAd(),"the add is not fully complaint with VPAID specification")),r._adUnit=f,e.call(r),t(u,u?null:f),!0)}function c(){t("timeout",null)}p.call(this);u.call(this);var r=this,f=i.createIframeWithContent(this._frameContainer,this._templateConfig.template,i.extend({iframeURL_JS:n,iframeID:this.getID(),origin:o()},this._templateConfig.extraOptions));this._frame=f;this._onLoad=i.callbackTimeout(this._vpaidOptions.timeout,s.bind(this),c.bind(this));window.addEventListener("message",this._onLoad)};r.prototype.unloadAdUnit=function(){u.call(this)};r.prototype.getID=function(){return this._id};t.exports=r;window.VPAIDHTML5Client=r},{"./VPAIDAdUnit":10,"./utils":13}],12:[function(n,t){"use strict";function i(){this._subscribers={}}i.prototype.subscribe=function(n,t,i){this.isHandlerAttached(n,t)||this.get(t).push({handler:n,context:i,eventName:t})};i.prototype.unsubscribe=function(n,t){this._subscribers[t]=this.get(t).filter(function(t){return n!==t.handler})};i.prototype.unsubscribeAll=function(){this._subscribers={}};i.prototype.trigger=function(n,t){var i=this,r=this.get(n).concat(this.get("*"));r.forEach(function(n){setTimeout(function(){i.isHandlerAttached(n.handler,n.eventName)&&n.handler.call(n.context,t)},0)})};i.prototype.triggerSync=function(n,t){var i=this.get(n).concat(this.get("*"));i.forEach(function(n){n.handler.call(n.context,t)})};i.prototype.get=function(n){return this._subscribers[n]||(this._subscribers[n]=[]),this._subscribers[n]};i.prototype.isHandlerAttached=function(n,t){return this.get(t).some(function(t){return n===t.handler})};t.exports=i},{}],13:[function(n,t){"use strict";function r(){}function s(n,t){return n?null:new Error(t)}function u(n){var t=i[n];t&&(clearTimeout(t),delete i[n])}function h(n,t,f){var e,o;return o=setTimeout(function(){t=r;delete o[e];f()},n),e=function(){t.apply(this,arguments)&&u(e)},i[e]=o,e}function c(n,t,i){var r=document.createElement(t);return i&&(r.id=i),n.appendChild(r),r}function l(n,t,i){var r=f(n,null,i.zIndex);if(o(r,e(t,i)))return r}function f(n,t,i){var r=document.createElement("iframe");return r.src=t||"about:blank",r.marginWidth="0",r.marginHeight="0",r.frameBorder="0",r.width="100%",r.height="100%",r.style.position="absolute",r.style.left="0",r.style.top="0",r.style.margin="0px",r.style.padding="0px",r.style.border="none",i&&(r.style.zIndex=i),r.setAttribute("SCROLLING","NO"),n.innerHTML="",n.appendChild(r),r}function e(n,t){return Object.keys(t).forEach(function(i){var r=typeof r=="object"?JSON.stringify(t[i]):t[i];n=n.replace(new RegExp("{{"+i+"}}","g"),r)}),n}function o(n,t){var i=n.contentWindow&&n.contentWindow.document;return i?(i.write(t),!0):!1}function a(n,t){return Object.keys(t).forEach(function(i){n[i]=t[i]}),n}function v(n){var t=-1;return function(){return n+"_"+ ++t}}var i={};t.exports={noop:r,validate:s,clearCallbackTimeout:u,callbackTimeout:h,createElementInEl:c,createIframeWithContent:l,createIframe:f,simpleTemplate:e,setIframeContent:o,extend:a,unique:v}},{}],14:[function(n,t){(function(n,i){typeof define=="function"&&define.amd?define(i):typeof t=="object"&&t.exports?t.exports=i():n.swfobject=i()})(this,function(){function w(){var n,i,u,r;if(!c&&document.getElementsByTagName("body")[0]){try{i=f("span");i.style.display="none";n=t.getElementsByTagName("body")[0].appendChild(i);n.parentNode.removeChild(n);n=null;i=null}catch(e){return}for(c=!0,u=y.length,r=0;r<u;r++)y[r]()}}function kt(n){c?n():y[y.length]=n}function ii(n){if(typeof u.addEventListener!==i)u.addEventListener("load",n,!1);else if(typeof t.addEventListener!==i)t.addEventListener("load",n,!1);else if(typeof u.attachEvent!==i)oi(u,"onload",n);else if(typeof u.onload=="function"){var r=u.onload;u.onload=function(){r();n()}}else u.onload=n}function ri(){var h=t.getElementsByTagName("body")[0],e=f(o),u,s;e.setAttribute("style","visibility: hidden;");e.setAttribute("type",b);u=h.appendChild(e);u?(s=0,function c(){if(typeof u.GetVariable!==i)try{var t=u.GetVariable("$version");t&&(t=t.split(" ")[1].split(","),n.pv=[r(t[0]),r(t[1]),r(t[2])])}catch(f){n.pv=[8,0,0]}else if(s<10){s++;setTimeout(c,10);return}h.removeChild(e);u=null;ft()}()):ft()}function ft(){var y=s.length,u,t,o,h,c;if(y>0)for(u=0;u<y;u++){var f=s[u].id,e=s[u].callbackFn,r={success:!1,id:f};if(n.pv[0]>0){if(t=l(f),t)if(!tt(s[u].swfVersion)||n.wk&&n.wk<312)if(s[u].expressInstall&&ot()){o={};o.data=s[u].expressInstall;o.width=t.getAttribute("width")||"0";o.height=t.getAttribute("height")||"0";t.getAttribute("class")&&(o.styleclass=t.getAttribute("class"));t.getAttribute("align")&&(o.align=t.getAttribute("align"));var p={},v=t.getElementsByTagName("param"),w=v.length;for(h=0;h<w;h++)v[h].getAttribute("name").toLowerCase()!=="movie"&&(p[v[h].getAttribute("name")]=v[h].getAttribute("value"));st(o,p,f,e)}else ui(t),e&&e(r);else a(f,!0),e&&(r.success=!0,r.ref=et(f),r.id=f,e(r))}else a(f,!0),e&&(c=et(f),c&&typeof c.SetVariable!==i&&(r.success=!0,r.ref=c,r.id=c.id),e(r))}}function et(n){var r=null,t=l(n);return t&&t.nodeName.toUpperCase()==="OBJECT"&&(r=typeof t.SetVariable!==i?t:t.getElementsByTagName(o)[0]||t),r}function ot(){return!g&&tt("6.0.65")&&(n.win||n.mac)&&!(n.wk&&n.wk<312)}function st(e,o,s,h){var c=l(s),y,a,v;s=lt(s);g=!0;it=h||null;wt={success:!1,id:s};c&&(c.nodeName.toUpperCase()==="OBJECT"?(p=ht(c),d=null):(p=c,d=s),e.id=vt,(typeof e.width===i||!/%$/.test(e.width)&&r(e.width)<310)&&(e.width="310"),(typeof e.height===i||!/%$/.test(e.height)&&r(e.height)<137)&&(e.height="137"),y=n.ie?"ActiveX":"PlugIn",a="MMredirectURL="+encodeURIComponent(u.location.toString().replace(/&/g,"%26"))+"&MMplayerType="+y+"&MMdoctitle="+encodeURIComponent(t.title.slice(0,47)+" - Flash Player Installation"),typeof o.flashvars!==i?o.flashvars+="&"+a:o.flashvars=a,n.ie&&c.readyState!=4&&(v=f("div"),s+="SWFObjectNew",v.setAttribute("id",s),c.parentNode.insertBefore(v,c),c.style.display="none",nt(c)),ct(e,o,s))}function ui(t){if(n.ie&&t.readyState!=4){t.style.display="none";var i=f("div");t.parentNode.insertBefore(i,t);i.parentNode.replaceChild(ht(t),i);nt(t)}else t.parentNode.replaceChild(ht(t),t)}function ht(t){var u=f("div"),e,i,s,r;if(n.win&&n.ie)u.innerHTML=t.innerHTML;else if(e=t.getElementsByTagName(o)[0],e&&(i=e.childNodes,i))for(s=i.length,r=0;r<s;r++)i[r].nodeType==1&&i[r].nodeName==="PARAM"||i[r].nodeType==8||u.appendChild(i[r].cloneNode(!0));return u}function fi(n,t){var i=f("div");return i.innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='"+n+"'>"+t+"<\/object>",i.firstChild}function ct(t,r,u){var a,v=l(u),e,s,c,h;if(u=lt(u),n.wk&&n.wk<312)return a;if(v){e=n.ie?f("div"):f(o);typeof t.id===i&&(t.id=u);for(h in r)r.hasOwnProperty(h)&&h.toLowerCase()!=="movie"&&ei(e,h,r[h]);n.ie&&(e=fi(t.data,e.innerHTML));for(s in t)t.hasOwnProperty(s)&&(c=s.toLowerCase(),c==="styleclass"?e.setAttribute("class",t[s]):c!=="classid"&&c!=="data"&&e.setAttribute(s,t[s]));n.ie?k[k.length]=t.id:(e.setAttribute("type",b),e.setAttribute("data",t.data));v.parentNode.replaceChild(e,v);a=e}return a}function ei(n,t,i){var r=f("param");r.setAttribute("name",t);r.setAttribute("value",i);n.appendChild(r)}function nt(t){var i=l(t);i&&i.nodeName.toUpperCase()==="OBJECT"&&(n.ie?(i.style.display="none",function r(){if(i.readyState==4){for(var n in i)typeof i[n]=="function"&&(i[n]=null);i.parentNode.removeChild(i)}else setTimeout(r,10)}()):i.parentNode.removeChild(i))}function dt(n){return n&&n.nodeType&&n.nodeType===1}function lt(n){return dt(n)?n.id:n}function l(n){if(dt(n))return n;var i=null;try{i=t.getElementById(n)}catch(r){}return i}function f(n){return t.createElement(n)}function r(n){return parseInt(n,10)}function oi(n,t,i){n.attachEvent(t,i);v[v.length]=[n,t,i]}function tt(t){t+="";var u=n.pv,i=t.split(".");return i[0]=r(i[0]),i[1]=r(i[1])||0,i[2]=r(i[2])||0,u[0]>i[0]||u[0]==i[0]&&u[1]>i[1]||u[0]==i[0]&&u[1]==i[1]&&u[2]>=i[2]?!0:!1}function gt(r,u,e,o){var l=t.getElementsByTagName("head")[0],s,c;l&&(s=typeof e=="string"?e:"screen",o&&(h=null,rt=null),h&&rt==s||(c=f("style"),c.setAttribute("type","text/css"),c.setAttribute("media",s),h=l.appendChild(c),n.ie&&typeof t.styleSheets!==i&&t.styleSheets.length>0&&(h=t.styleSheets[t.styleSheets.length-1]),rt=s),h&&(typeof h.addRule!==i?h.addRule(r,u):typeof t.createTextNode!==i&&h.appendChild(t.createTextNode(r+" {"+u+"}"))))}function a(n,t){if(bt){var i=t?"visible":"hidden",r=l(n);c&&r?r.style.visibility=i:typeof n=="string"&&gt("#"+n,"visibility:"+i)}}function ni(n){var t=/[\\\"<>\.;]/.exec(n)!==null;return t&&typeof encodeURIComponent!==i?encodeURIComponent(n):n}var i="undefined",o="object",at="Shockwave Flash",ti="ShockwaveFlash.ShockwaveFlash",b="application/x-shockwave-flash",vt="SWFObjectExprInst",yt="onreadystatechange",u=window,t=document,e=navigator,pt=!1,y=[],s=[],k=[],v=[],p,d,it,wt,c=!1,g=!1,h,rt,bt=!0,ut=!1,n=function(){var a=typeof t.getElementById!==i&&typeof t.getElementsByTagName!==i&&typeof t.createElement!==i,s=e.userAgent.toLowerCase(),h=e.platform.toLowerCase(),v=h?/win/.test(h):/win/.test(s),y=h?/mac/.test(h):/mac/.test(s),p=/webkit/.test(s)?parseFloat(s.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,c=e.appName==="Microsoft Internet Explorer",f=[0,0,0],n=null,l;if(typeof e.plugins!==i&&typeof e.plugins[at]===o)n=e.plugins[at].description,n&&typeof e.mimeTypes!==i&&e.mimeTypes[b]&&e.mimeTypes[b].enabledPlugin&&(pt=!0,c=!1,n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),f[0]=r(n.replace(/^(.*)\..*$/,"$1")),f[1]=r(n.replace(/^.*\.(.*)\s.*$/,"$1")),f[2]=/[a-zA-Z]/.test(n)?r(n.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0);else if(typeof u.ActiveXObject!==i)try{l=new ActiveXObject(ti);l&&(n=l.GetVariable("$version"),n&&(c=!0,n=n.split(" ")[1].split(","),f=[r(n[0]),r(n[1]),r(n[2])]))}catch(w){}return{w3:a,pv:f,wk:p,ie:c,win:v,mac:y}}(),hi=function(){n.w3&&((typeof t.readyState!==i&&(t.readyState==="complete"||t.readyState==="interactive")||typeof t.readyState===i&&(t.getElementsByTagName("body")[0]||t.body))&&w(),c||(typeof t.addEventListener!==i&&t.addEventListener("DOMContentLoaded",w,!1),n.ie&&(t.attachEvent(yt,function r(){t.readyState==="complete"&&(t.detachEvent(yt,r),w())}),u==top&&function f(){if(!c){try{t.documentElement.doScroll("left")}catch(n){setTimeout(f,0);return}w()}}()),n.wk&&function e(){if(!c){if(!/loaded|complete/.test(t.readyState)){setTimeout(e,0);return}w()}}()))}(),si;return y[0]=function(){pt?ri():ft()},si=function(){n.ie&&window.attachEvent("onunload",function(){for(var e=v.length,r,i,u,f,t=0;t<e;t++)v[t][0].detachEvent(v[t][1],v[t][2]);for(r=k.length,i=0;i<r;i++)nt(k[i]);for(u in n)n[u]=null;n=null;for(f in swfobject)swfobject[f]=null;swfobject=null})}(),{registerObject:function(t,i,r,u){if(n.w3&&t&&i){var f={};f.id=t;f.swfVersion=i;f.expressInstall=r;f.callbackFn=u;s[s.length]=f;a(t,!1)}else u&&u({success:!1,id:t})},getObjectById:function(t){if(n.w3)return et(t)},embedSWF:function(t,r,u,f,e,s,h,c,l,v){var y=lt(r),p={success:!1,id:y};n.w3&&!(n.wk&&n.wk<312)&&t&&r&&u&&f&&e?(a(y,!1),kt(function(){var n,k,w,d,b,g,nt,it;if(u+="",f+="",n={},l&&typeof l===o)for(k in l)n[k]=l[k];if(n.data=t,n.width=u,n.height=f,w={},c&&typeof c===o)for(d in c)w[d]=c[d];if(h&&typeof h===o)for(b in h)h.hasOwnProperty(b)&&(g=ut?encodeURIComponent(b):b,nt=ut?encodeURIComponent(h[b]):h[b],typeof w.flashvars!==i?w.flashvars+="&"+g+"="+nt:w.flashvars=g+"="+nt);if(tt(e))it=ct(n,w,r),n.id==y&&a(y,!0),p.success=!0,p.ref=it,p.id=it.id;else{if(s&&ot()){n.data=s;st(n,w,r,v);return}a(y,!0)}v&&v(p)})):v&&v(p)},switchOffAutoHideShow:function(){bt=!1},enableUriEncoding:function(n){ut=typeof n===i?!0:n},ua:n,getFlashPlayerVersion:function(){return{major:n.pv[0],minor:n.pv[1],release:n.pv[2]}},hasFlashPlayerVersion:tt,createSWF:function(t,i,r){return n.w3?ct(t,i,r):undefined},showExpressInstall:function(t,i,r,u){n.w3&&ot()&&st(t,i,r,u)},removeSWF:function(t){n.w3&&nt(t)},createCSS:function(t,i,r,u){n.w3&&gt(t,i,r,u)},addDomLoadEvent:kt,addLoadEvent:ii,getQueryParamValue:function(n){var r=t.location.search||t.location.hash,u,i;if(r){if(/\?/.test(r)&&(r=r.split("?")[1]),!n)return ni(r);for(u=r.split("&"),i=0;i<u.length;i++)if(u[i].substring(0,u[i].indexOf("="))==n)return ni(u[i].substring(u[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(g){var t=l(vt);t&&p&&(t.parentNode.replaceChild(p,t),d&&(a(d,!0),n.ie&&(p.style.display="block")),it&&it(wt));g=!1}},version:"2.3"}})},{}],15:[function(n,t){"use strict";function i(n){if(!(this instanceof i))return new i(n);this.initialize(n)}var r=n("./InLine"),u=n("./Wrapper");i.prototype.initialize=function(n){this.id=n.attr("id");this.sequence=n.attr("sequence");n.inLine&&(this.inLine=new r(n.inLine));n.wrapper&&(this.wrapper=new u(n.wrapper))};t.exports=i},{"./InLine":18,"./Wrapper":28}],16:[function(n,t){"use strict";function u(n){function s(n){var t=[];return f.isDefined(n)&&(n=f.isArray(n)?n:[n],n.forEach(function(n){t.push(new e(n))})),t}var t,o;if(!(this instanceof u))return new u(n);r.info("<Companion> found companion ad");r.debug("<Companion>  companionJTree:",n);this.creativeType=i.attr(n.staticResource,"creativeType");this.staticResource=i.keyValue(n.staticResource);r.info("<Companion>  creativeType: "+this.creativeType);r.info("<Companion>  staticResource: "+this.staticResource);t=null;i.keyValue(n.HTMLResource)?t=i.keyValue(n.HTMLResource):i.keyValue(n.hTMLResource)&&(t=i.keyValue(n.hTMLResource));t!==null&&r.info("<Companion> found html resource",t);this.htmlResource=t;o=null;i.keyValue(n.IFrameResource)?o=i.keyValue(n.IFrameResource):i.keyValue(n.iFrameresource)&&(o=i.keyValue(n.iFrameresource));o!==null&&r.info("<Companion> found iframe resource",o);this.iframeResource=o;this.id=i.attr(n,"id");this.width=i.attr(n,"width");this.height=i.attr(n,"height");this.expandedWidth=i.attr(n,"expandedWidth");this.expandedHeight=i.attr(n,"expandedHeight");this.scalable=i.attr(n,"scalable");this.maintainAspectRatio=i.attr(n,"maintainAspectRatio");this.minSuggestedDuration=i.attr(n,"minSuggestedDuration");this.apiFramework=i.attr(n,"apiFramework");this.companionClickThrough=i.keyValue(n.companionClickThrough);this.trackingEvents=s(n.trackingEvents&&n.trackingEvents.tracking);r.info("<Companion>  companionClickThrough: "+this.companionClickThrough)}var e=n("./TrackingEvent"),f=n("../../utils/utilityFunctions"),i=n("../../utils/xml"),r=n("../../utils/consoleLogger");t.exports=u},{"../../utils/consoleLogger":41,"../../utils/utilityFunctions":47,"../../utils/xml":48,"./TrackingEvent":21}],17:[function(n,t){"use strict";function i(n){if(!(this instanceof i))return new i(n);if(this.id=n.attr("id"),this.sequence=n.attr("sequence"),this.adId=n.attr("adId"),this.apiFramework=n.attr("apiFramework"),n.linear&&(this.linear=new u(n.linear)),n.companionAds){var e=[],t=n.companionAds&&n.companionAds.companion;r.isDefined(t)&&(t=r.isArray(t)?t:[t],t.forEach(function(n){e.push(new f(n))}));this.companionAds=e}}var u=n("./Linear"),f=n("./Companion"),r=n("../../utils/utilityFunctions");i.prototype.isSupported=function(){return this.linear?this.linear.isSupported():!0};i.parseCreatives=function(n){var t=[],u;return r.isDefined(n)&&r.isDefined(n.creative)&&(u=r.isArray(n.creative)?n.creative:[n.creative],u.forEach(function(n){t.push(new i(n))})),t};t.exports=i},{"../../utils/utilityFunctions":47,"./Companion":16,"./Linear":19}],18:[function(n,t){"use strict";function r(n){function t(n){return n?u.transformArray(u.isArray(n)?n:[n],function(n){return u.isNotEmptyString(n.keyValue)?{uri:n.keyValue,type:n.attr("type")}:undefined}):[]}if(!(this instanceof r))return new r(n);this.adTitle=i.keyValue(n.adTitle);this.adSystem=i.keyValue(n.adSystem);this.impressions=f.parseImpressions(n.impression);this.creatives=e.parseCreatives(n.creatives);this.description=i.keyValue(n.description);this.advertiser=i.keyValue(n.advertiser);this.surveys=t(n.survey);this.error=i.keyValue(n.error);this.pricing=i.keyValue(n.pricing);this.extensions=n.extensions}var f=n("./vastUtil"),e=n("./Creative"),u=n("../../utils/utilityFunctions"),i=n("../../utils/xml");r.prototype.isSupported=function(){var n,t;if(this.creatives.length===0)return!1;for(n=0,t=this.creatives.length;n<t;n+=1)if(!this.creatives[n].isSupported())return!1;return!0};t.exports=r},{"../../utils/utilityFunctions":47,"../../utils/xml":48,"./Creative":17,"./vastUtil":30}],19:[function(n,t){"use strict";function u(n){function t(n,t){var i=[];return r.isDefined(n)&&(n=r.isArray(n)?n:[n],n.forEach(function(n){i.push(new e(n,t))})),i}function h(n){var t=[];return r.isDefined(n)&&(n=r.isArray(n)?n:[n],n.forEach(function(n){t.push(new o(n))})),t}if(!(this instanceof u))return new u(n);this.duration=f.duration(i.keyValue(n.duration));this.mediaFiles=h(n.mediaFiles&&n.mediaFiles.mediaFile);this.trackingEvents=t(n.trackingEvents&&n.trackingEvents.tracking,this.duration);this.skipoffset=f.offset(i.attr(n,"skipoffset"),this.duration);n.videoClicks&&(this.videoClicks=new s(n.videoClicks));n.adParameters&&(this.adParameters=i.keyValue(n.adParameters),i.attr(n.adParameters,"xmlEncoded")&&(this.adParameters=i.decode(this.adParameters)))}var e=n("./TrackingEvent"),o=n("./MediaFile"),s=n("./VideoClicks"),r=n("../../utils/utilityFunctions"),f=n("./parsers"),i=n("../../utils/xml");u.prototype.isSupported=function(){for(var n=0,t=this.mediaFiles.length;n<t;n+=1)if(this.mediaFiles[n].isSupported())return!0;return!1};t.exports=u},{"../../utils/utilityFunctions":47,"../../utils/xml":48,"./MediaFile":20,"./TrackingEvent":21,"./VideoClicks":27,"./parsers":29}],20:[function(n,t){"use strict";function i(n){var t,r;if(!(this instanceof i))return new i(n);for(this.src=f.keyValue(n),t=0;t<u.length;t++)r=u[t],this[r]=n.attr(r)}var f=n("../../utils/xml"),r=n("./vastUtil"),u=["delivery","type","width","height","codec","id","bitrate","minBitrate","maxBitrate","scalable","maintainAspectRatio","apiFramework"];i.prototype.isSupported=function(){return r.isVPAID(this)?!!r.findSupportedVPAIDTech(this.type):this.type==="video/x-flv"?r.isFlashSupported():!0};t.exports=i},{"../../utils/xml":48,"./vastUtil":30}],21:[function(n,t){"use strict";function i(n,t){if(!(this instanceof i))return new i(n,t);this.name=n.attr("event");this.uri=u.keyValue(n);"progress"===this.name&&(this.offset=r.offset(n.attr("offset"),t))}var r=n("./parsers"),u=n("../../utils/xml");t.exports=i},{"../../utils/xml":48,"./parsers":29}],22:[function(n,t){"use strict";function u(n){if(!(this instanceof u))return new u(n);n=n||{};this.settings=r.extend({},n,{WRAPPER_LIMIT:5});this.errorURLMacros=[]}var s=n("./Ad"),i=n("./VASTError"),h=n("./VASTResponse"),c=n("./vastUtil"),f=n("../../utils/async"),l=n("../../utils/http").http,r=n("../../utils/utilityFunctions"),e=n("../../utils/xml"),o=n("../../utils/consoleLogger");u.prototype.getVASTResponse=function(n,t){function o(n,t){try{var i=e._buildVASTResponse(n);t(null,i)}catch(r){t(r)}}function s(n,t){return n?r.isFunction(t)?void 0:new i("on VASTClient.getVASTResponse, missing callback function"):new i("on VASTClient.getVASTResponse, missing ad tag URL")}var e=this,u=s(n,t);if(u){if(r.isFunction(t))return t(u);throw u;}f.waterfall([this._getVASTAd.bind(this,n),o],t)};u.prototype._getVASTAd=function(n,t){function l(n,t){var i=u._requestVASTXml.bind(u,n);f.waterfall([i,a],t)}function a(n,t){var u;try{u=e.toJXONTree(n);o.debug("built JXONTree from VAST response:",u);u.ads=r.isArray(u.ad)?u.ad:u.ad?[u.ad]:[];t(c(u),u)}catch(f){t(new i("on VASTClient.getVASTAd.buildVastWaterfall, error parsing xml",100),null)}}function c(n){var t=e.attr(n,"version");return n.ad?t&&t!=3&&t!=2?new i('on VASTClient.getVASTAd.validateVASTTree, not supported VAST version "'+t+'"',102):null:new i("on VASTClient.getVASTAd.validateVASTTree, no Ad in VAST tree",303)}function h(n,t,e){if(t.length>=u.WRAPPER_LIMIT)return e(new i("on VASTClient.getVASTAd.getAd, players wrapper limit reached (the limit is "+u.WRAPPER_LIMIT+")",302),t);f.waterfall([function(t){r.isString(n)?p(n,t):t(null,n)},v],function(n,i){return(i&&t.push(i),n)?e(n,t):i.wrapper?h(i.wrapper.VASTAdTagURI,t,e):e(null,t)})}function v(n,t){try{var r=new s(n);t(y(r),r)}catch(u){t(new i("on VASTClient.getVASTAd.buildAd, error parsing xml",100),null)}}function y(n){var t=n.wrapper,r=n.inLine,u="on VASTClient.getVASTAd.validateAd, ";return r&&t?new i(u+"InLine and Wrapper both found on the same Ad",101):!r&&!t?new i(u+"nor wrapper nor inline elements found on the Ad",101):r&&!r.isSupported()?new i(u+"could not find MediaFile that is supported by this video player",403):t&&!t.VASTAdTagURI?new i(u+"missing 'VASTAdTagURI' in wrapper",101):null}function p(n,t){u._requestVASTXml(n,function(n,r){if(n)return t(n);try{var u=e.toJXONTree(r);t(c(u),u.ad)}catch(f){t(new i("on VASTClient.getVASTAd.requestVASTAd, error parsing xml",100))}})}var u=this;l(n,function(n,i){function e(n,i){n?(u._trackError(n,i),f.length>0?h(f.shift(),[],e):t(n,i)):t(null,i)}var f=i&&r.isArray(i.ads)?i.ads:null;if(n)return u._trackError(n,f),t(n,f);h(f.shift(),[],e)})};u.prototype._requestVASTXml=function(n,t){function u(n,u,f){if(n){var e=r.isDefined(f)?"on VASTClient.requestVastXML, HTTP request error with status '"+f+"'":"on VASTClient.requestVastXML, Error getting the the VAST XML with he passed adTagXML fn";return t(new i(e,301),null)}t(null,u)}try{r.isFunction(n)?n(u):(o.info("requesting adTagUrl: "+n),l.get(n,u,{withCredentials:!0}))}catch(f){t(f)}};u.prototype._buildVASTResponse=function(n){function u(n,t){t.forEach(function(t){n.addAd(t)})}function f(n){var t=n.trackingEvents.progress;if(!n.hasLinear())throw new i("on VASTClient._buildVASTResponse, Received an Ad type that is not supported",200);if(n.duration===undefined)throw new i("on VASTClient._buildVASTResponse, Missing duration field in VAST response",101);t&&t.forEach(function(n){if(!r.isNumber(n.offset))throw new i("on VASTClient._buildVASTResponse, missing or wrong offset attribute on progress tracking event",101);})}var t=new h;return u(t,n),f(t),t};u.prototype._trackError=function(n,t){function u(n){n.wrapper&&n.wrapper.error&&i.push(n.wrapper.error);n.inLine&&n.inLine.error&&i.push(n.inLine.error)}if(r.isArray(t)&&t.length!==0){var i=[];t.forEach(u);c.track(i,{ERRORCODE:n.code||900})}};t.exports=u},{"../../utils/async":40,"../../utils/consoleLogger":41,"../../utils/http":43,"../../utils/utilityFunctions":47,"../../utils/xml":48,"./Ad":15,"./VASTError":23,"./VASTResponse":25,"./vastUtil":30}],23:[function(n,t){"use strict";function i(n,t){this.message="VAST Error: "+(n||"");t&&(this.code=t)}i.prototype=new Error;i.prototype.name="VAST Error";t.exports=i},{}],24:[function(n,t){"use strict";function i(n){if(!(this instanceof i))return new i(n);this.player=n}var h=n("./VASTResponse"),o=n("./VASTError"),c=n("./VASTTracker"),s=n("./vastUtil"),l=n("../../utils/async"),r=n("../../utils/dom"),u=n("../../utils/playerUtils"),e=n("../../utils/utilityFunctions"),f=n("../../utils/consoleLogger");i.prototype.playAd=function(n,t){var i=this;return(t=t||e.noop,!(n instanceof h))?t(new o("On VASTIntegrator, missing required VASTResponse")):(l.waterfall([function(t){t(null,n)},this._selectAdSource.bind(this),this._createVASTTracker.bind(this),this._addClickThrough.bind(this),this._addSkipButton.bind(this),this._setupEvents.bind(this),this._playSelectedAd.bind(this)],function(n,r){n&&r&&i._trackError(n,r);t(n,r)}),this._adUnit={_src:null,type:"VAST",pauseAd:function(){i.player.pause(!0)},resumeAd:function(){i.player.play(!0)},isPaused:function(){return i.player.paused(!0)},getSrc:function(){return this._src}},this._adUnit)};i.prototype._selectAdSource=function(n,t){var i,u=r.getDimension(this.player.el()).width;if(n.mediaFiles.sort(function(n,t){var i=Math.abs(u-n.width),r=Math.abs(u-t.width);return i-r}),i=this.player.selectSource(n.mediaFiles).source,i)return f.info("selected source: ",i),this._adUnit&&(this._adUnit._src=i),t(null,i,n);t(new o("Could not find Ad mediafile supported by this player",403),n)};i.prototype._createVASTTracker=function(n,t,i){try{i(null,n,new c(n.src,t),t)}catch(r){i(r,t)}};i.prototype._setupEvents=function(n,t,i,r){function a(){f.off("fullscreenchange",o);f.off("vast.adStart",c);f.off("pause",s);f.off("timeupdate",h);f.off("volumechange",l)}function o(){f.isFullscreen()?t.trackFullscreen():t.trackExitFullscreen()}function s(){if(!(Math.abs(f.duration()-f.currentTime())<2)){t.trackPause();u.once(f,["play","vast.adEnd","vast.adsCancel"],function(n){n.type==="play"&&t.trackResume()})}}function h(){var n=f.currentTime()*1e3;t.trackProgress(n)}function c(){t.trackImpressions();t.trackCreativeView()}function l(){var n=f.muted();n?t.trackMute():e&&t.trackUnmute();e=n}var e,f=this.player;f.on("fullscreenchange",o);f.on("vast.adStart",c);f.on("pause",s);f.on("timeupdate",h);f.on("volumechange",l);u.once(f,["vast.adEnd","vast.adsCancel"],a);u.once(f,["vast.adEnd","vast.adsCancel","vast.adSkip"],function(n){n.type==="vast.adEnd"&&t.trackComplete()});return r(null,n,i)};i.prototype._addSkipButton=function(n,t,i,f){function h(n,t){function e(){n.off("timeupdate",f);r.remove(i)}var i=c(n),f=l.bind(s,i,t,n);n.el().appendChild(i);n.on("timeupdate",f);u.once(n,["vast.adEnd","vast.adsCancel"],e)}function c(n){var i=window.document.createElement("div");return r.addClass(i,"vast-skip-button"),i.onclick=function(u){if(r.hasClass(i,"enabled")&&(t.trackSkip(),n.trigger("vast.adSkip")),window.Event.prototype.stopPropagation!==undefined)u.stopPropagation();else return!1},i}function l(n,t,i){var u=Math.ceil(t-i.currentTime());u>0?n.innerHTML="Vous pourrez passer l'annonce dans "+e.toFixedDigits(u,2)+"s":r.hasClass(n,"enabled")||(r.addClass(n,"enabled"),n.innerHTML="Passer l'annonce")}var o,s=this;e.isNumber(i.skipoffset)&&(o=i.skipoffset/1e3,h(this.player,o));f(null,n,t,i)};i.prototype._addClickThrough=function(n,t,i,f){function a(n,t,i){var u=window.document.createElement("a"),f=i.clickThrough;return r.addClass(u,"vast-blocker"),u.href=l(f,n),e.isString(f)&&(u.target="_blank"),u.onclick=function(i){if(n.paused())return n.play(),window.Event.prototype.stopPropagation!==undefined&&i.stopPropagation(),!1;n.pause();t.trackClick()},u}function v(n,t,i){n.href=l(t.clickThrough,i)}function l(t,i){var r={ASSETURI:n.src,CONTENTPLAYHEAD:s.formatProgress(i.currentTime()*1e3)};return t?s.parseURLMacro(t,r):"#"}function y(){o.off("timeupdate",c);r.remove(h)}var o=this.player,h=a(o,t,i),c=v.bind(this,h,i,o);o.el().insertBefore(h,o.controlBar.el());o.on("timeupdate",c);u.once(o,["vast.adEnd","vast.adsCancel"],y);return f(null,n,t,i)};i.prototype._playSelectedAd=function(n,t,i){function e(){u.once(r,["playing","vast.adsCancel"],function(n){function u(n){n.type==="ended"&&r.duration()-r.currentTime()>3||(r.off("ended",u),r.off("vast.adsCancel",u),r.off("vast.adSkip",u),(n.type==="ended"||n.type==="vast.adSkip")&&i(null,t))}if(n.type!=="vast.adsCancel"){f.debug("<VASTIntegrator._playSelectedAd/playAd> got playing event; triggering vast.adStart...");r.trigger("vast.adStart");r.on("ended",u);r.on("vast.adsCancel",u);r.on("vast.adSkip",u)}});f.debug("<VASTIntegrator._playSelectedAd/playAd> calling player.play()...");r.play()}var r=this.player;r.preload("auto");r.src(n);f.debug("<VASTIntegrator._playSelectedAd> waiting for durationchange to play the ad...");u.once(r,["durationchange","error","vast.adsCancel"],function(n){n.type==="durationchange"?(f.debug("<VASTIntegrator._playSelectedAd> got durationchange; calling playAd()"),e()):n.type==="error"&&i(new o("on VASTIntegrator, Player is unable to play the Ad",400),t)})};i.prototype._trackError=function(n,t){s.track(t.errorURLMacros,{ERRORCODE:n.code||900})};t.exports=i},{"../../utils/async":40,"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/playerUtils":45,"../../utils/utilityFunctions":47,"./VASTError":23,"./VASTResponse":25,"./VASTTracker":26,"./vastUtil":30}],25:[function(n,t){"use strict";function i(){if(!(this instanceof i))return new i;this._linearAdded=!1;this.ads=[];this.errorURLMacros=[];this.impressions=[];this.clickTrackings=[];this.customClicks=[];this.trackingEvents={};this.mediaFiles=[];this.clickThrough=undefined;this.adTitle="";this.duration=undefined;this.skipoffset=undefined}function u(n,t){t.forEach(function(t){n.push(t)})}var o=n("./Ad"),s=n("./VideoClicks"),h=n("./Linear"),f=n("./InLine"),c=n("./Wrapper"),r=n("../../utils/utilityFunctions"),e=n("../../utils/xml");window.InLine__A=f;i.prototype.addAd=function(n){var t,i;n instanceof o&&(t=n.inLine,i=n.wrapper,this.ads.push(n),t&&this._addInLine(t),i&&this._addWrapper(i))};i.prototype._addErrorTrackUrl=function(n){var t=n instanceof e.JXONTree?e.keyValue(n):n;t&&this.errorURLMacros.push(t)};i.prototype._addImpressions=function(n){r.isArray(n)&&u(this.impressions,n)};i.prototype._addClickThrough=function(n){r.isNotEmptyString(n)&&(this.clickThrough=n)};i.prototype._addClickTrackings=function(n){r.isArray(n)&&u(this.clickTrackings,n)};i.prototype._addCustomClicks=function(n){r.isArray(n)&&u(this.customClicks,n)};i.prototype._addTrackingEvents=function(n){var t=this.trackingEvents;n&&(n=r.isArray(n)?n:[n],n.forEach(function(n){t[n.name]||(t[n.name]=[]);t[n.name].push(n)}))};i.prototype._addTitle=function(n){r.isNotEmptyString(n)&&(this.adTitle=n)};i.prototype._addDuration=function(n){r.isNumber(n)&&(this.duration=n)};i.prototype._addVideoClicks=function(n){n instanceof s&&(this._addClickThrough(n.clickThrough),this._addClickTrackings(n.clickTrackings),this._addCustomClicks(n.customClicks))};i.prototype._addMediaFiles=function(n){r.isArray(n)&&u(this.mediaFiles,n)};i.prototype._addSkipoffset=function(n){n&&(this.skipoffset=n)};i.prototype._addAdParameters=function(n){n&&(this.adParameters=n)};i.prototype._addLinear=function(n){n instanceof h&&(this._addDuration(n.duration),this._addTrackingEvents(n.trackingEvents),this._addVideoClicks(n.videoClicks),this._addMediaFiles(n.mediaFiles),this._addSkipoffset(n.skipoffset),this._addAdParameters(n.adParameters),this._linearAdded=!0)};i.prototype._addInLine=function(n){var t=this;n instanceof f&&(this._addTitle(n.adTitle),this._addErrorTrackUrl(n.error),this._addImpressions(n.impressions),n.creatives.forEach(function(n){n.linear&&t._addLinear(n.linear)}))};i.prototype._addWrapper=function(n){var t=this;n instanceof c&&(this._addErrorTrackUrl(n.error),this._addImpressions(n.impressions),n.creatives.forEach(function(n){var i=n.linear;i&&(t._addVideoClicks(i.videoClicks),t.clickThrough=undefined,t._addTrackingEvents(i.trackingEvents))}))};i.prototype.hasLinear=function(){return this._linearAdded};t.exports=i},{"../../utils/utilityFunctions":47,"../../utils/xml":48,"./Ad":15,"./InLine":18,"./Linear":19,"./VideoClicks":27,"./Wrapper":28}],26:[function(n,t){"use strict";function i(n,t){if(!(this instanceof i))return new i(n,t);this.sanityCheck(n,t);this.initialize(n,t)}var u=n("./VASTError"),e=n("./VASTResponse"),f=n("./vastUtil"),r=n("../../utils/utilityFunctions");i.prototype.initialize=function(n,t){this.response=t;this.assetURI=n;this.progress=0;this.quartiles={firstQuartile:{tracked:!1,time:Math.round(25*t.duration)/100},midpoint:{tracked:!1,time:Math.round(50*t.duration)/100},thirdQuartile:{tracked:!1,time:Math.round(75*t.duration)/100}}};i.prototype.sanityCheck=function(n,t){if(!r.isString(n)||r.isEmptyString(n))throw new u("on VASTTracker constructor, missing required the URI of the ad asset being played");if(!(t instanceof e))throw new u("on VASTTracker constructor, missing required VAST response");};i.prototype.trackURLs=function(n,t){r.isArray(n)&&n.length>0&&(t=r.extend({ASSETURI:this.assetURI,CONTENTPLAYHEAD:f.formatProgress(this.progress)},t||{}),f.track(n,t))};i.prototype.trackEvent=function(n,t){function i(n){var t;return n&&(t=[],n.forEach(function(n){t.push(n.uri)})),t}this.trackURLs(i(this.response.trackingEvents[n]));t&&(this.response.trackingEvents[n]=undefined)};i.prototype.trackProgress=function(n){function o(t,i){return t>n&&Math.abs(i-t)>3e3}function u(n,t,r){i[n]&&r&&f.push({name:n,trackOnce:!!t})}function s(n){function i(n,t){var i=r[n];h(i,t)&&(i.tracked=!0,u(n,e,!0))}var r=t.quartiles,f=t.quartiles.firstQuartile,o=t.quartiles.midpoint,s=t.quartiles.thirdQuartile;f.tracked?o.tracked?s.tracked||i("thirdQuartile",n):i("midpoint",n):i("firstQuartile",n)}function h(n,t){var i=n.time;return t>=i&&t<=i+5e3}function c(n){if(r.isArray(i.progress)){var u=[];i.progress.forEach(function(i){i.offset<=n?t.trackURLs([i.uri]):u.push(i)});i.progress=u}}function l(){f.forEach(function(n){t.trackEvent(n.name,n.trackOnce)})}var t=this,f=[],e=!0,i=this.response.trackingEvents;r.isNumber(n)&&(u("start",e,n>0),u("rewind",!1,o(this.progress,n)),s(n),c(n),l(),this.progress=n)};["rewind","fullscreen","exitFullscreen","pause","resume","mute","unmute","acceptInvitation","acceptInvitationLinear","collapse","expand"].forEach(function(n){i.prototype["track"+r.capitalize(n)]=function(){this.trackEvent(n)}});["start","skip","close","closeLinear"].forEach(function(n){i.prototype["track"+r.capitalize(n)]=function(){this.trackEvent(n,!0)}});["firstQuartile","midpoint","thirdQuartile"].forEach(function(n){i.prototype["track"+r.capitalize(n)]=function(){this.quartiles[n].tracked=!0;this.trackEvent(n,!0)}});i.prototype.trackComplete=function(){this.quartiles.thirdQuartile.tracked&&this.trackEvent("complete",!0)};i.prototype.trackErrorWithCode=function(n){r.isNumber(n)&&this.trackURLs(this.response.errorURLMacros,{ERRORCODE:n})};i.prototype.trackImpressions=function(){this.trackURLs(this.response.impressions)};i.prototype.trackCreativeView=function(){this.trackEvent("creativeView")};i.prototype.trackClick=function(){this.trackURLs(this.response.clickTrackings)};t.exports=i},{"../../utils/utilityFunctions":47,"./VASTError":23,"./VASTResponse":25,"./vastUtil":30}],27:[function(n,t){"use strict";function i(n){function t(n){var t=[];return n&&(n=u.isArray(n)?n:[n],n.forEach(function(n){t.push(r.keyValue(n))})),t}if(!(this instanceof i))return new i(n);this.clickThrough=r.keyValue(n.clickThrough);this.clickTrackings=t(n.clickTracking);this.customClicks=t(n.customClick)}var u=n("../../utils/utilityFunctions"),r=n("../../utils/xml");t.exports=i},{"../../utils/utilityFunctions":47,"../../utils/xml":48}],28:[function(n,t){"use strict";function r(n){if(!(this instanceof r))return new r(n);this.adSystem=i.keyValue(n.adSystem);this.impressions=u.parseImpressions(n.impression);this.VASTAdTagURI=i.keyValue(n.vASTAdTagURI);this.creatives=f.parseCreatives(n.creatives);this.error=i.keyValue(n.error);this.extensions=n.extensions;this.followAdditionalWrappers=e.isDefined(i.attr(n,"followAdditionalWrappers"))?i.attr(n,"followAdditionalWrappers"):!0;this.allowMultipleAds=i.attr(n,"allowMultipleAds");this.fallbackOnNoAd=i.attr(n,"fallbackOnNoAd")}var u=n("./vastUtil"),f=n("./Creative"),e=n("../../utils/utilityFunctions"),i=n("../../utils/xml");t.exports=r},{"../../utils/utilityFunctions":47,"../../utils/xml":48,"./Creative":17,"./vastUtil":30}],29:[function(n,t){"use strict";var r=n("../../utils/utilityFunctions"),u=/(\d\d):(\d\d):(\d\d)(\.(\d\d\d))?/,i={duration:function(n){function f(n){return parseInt(n,10)*36e5}function e(n){return parseInt(n,10)*6e4}function o(n){return parseInt(n,10)*1e3}var t,i;return r.isString(n)&&(t=n.match(u),t&&(i=f(t[1])+e(t[2])+o(t[3])+parseInt(t[5]||0))),isNaN(i)?null:i},offset:function(n,t){function r(n){var t=/^\d+(\.\d+)?%$/g;return t.test(n)}function u(n,t){return t?f(t,parseFloat(n.replace("%",""))):null}function f(n,t){return n*t/100}return r(n)?u(n,t):i.duration(n)}};t.exports=i},{"../../utils/utilityFunctions":47}],30:[function(n,t){"use strict";var i=n("../../utils/utilityFunctions"),f=n("../vpaid/VPAIDHTML5Tech"),e=n("../vpaid/VPAIDFlashTech"),u=n("VPAIDFLASHClient/js/VPAIDFLASHClient"),r={track:function(n,t){var u=r.parseURLMacros(n,t),i=[];return u.forEach(function(n){var t=new Image;t.src=n;i.push(t)}),i},parseURLMacros:function(n,t){var i=[];return t=t||{},t.CACHEBUSTING||(t.CACHEBUSTING=Math.round(Math.random()*1e10)),n.forEach(function(n){i.push(r._parseURLMacro(n,t))}),i},parseURLMacro:function(n,t){return t=t||{},t.CACHEBUSTING||(t.CACHEBUSTING=Math.round(Math.random()*1e10)),r._parseURLMacro(n,t)},_parseURLMacro:function(n,t){return t=t||{},i.forEach(t,function(t,i){n=n.replace(new RegExp("\\["+i+"\\]","gm"),t)}),n},parseDuration:function(n){function u(n){return parseInt(n,10)*36e5}function f(n){return parseInt(n,10)*6e4}function e(n){return parseInt(n,10)*1e3}var t,r;return i.isString(n)&&(t=n.match(/(\d\d):(\d\d):(\d\d)(\.(\d\d\d))?/),t&&(r=u(t[1])+f(t[2])+e(t[3])+parseInt(t[5]||0))),isNaN(r)?null:r},parseImpressions:function(n){return n?(n=i.isArray(n)?n:[n],i.transformArray(n,function(n){return i.isNotEmptyString(n.keyValue)?n.keyValue:undefined})):[]},formatProgress:function(n){var t,r,u,f;return t=n/36e5,t=Math.floor(t),r=n/6e4%60,r=Math.floor(r),u=n/1e3%60,u=Math.floor(u),f=n%1e3,i.toFixedDigits(t,2)+":"+i.toFixedDigits(r,2)+":"+i.toFixedDigits(u,2)+"."+i.toFixedDigits(f,3)},parseOffset:function(n,t){function i(n){var t=/^\d+(\.\d+)?%$/g;return t.test(n)}function u(n,t){return t?f(t,parseFloat(n.replace("%",""))):null}function f(n,t){return n*t/100}return i(n)?u(n,t):r.parseDuration(n)},VPAID_techs:[e,f],isVPAID:function(n){return!!n&&n.apiFramework==="VPAID"},findSupportedVPAIDTech:function(n){for(var i,t=0,r=this.VPAID_techs.length;t<r;t+=1)if(i=this.VPAID_techs[t],i.supports(n))return i;return null},isFlashSupported:function(){return u.isSupported()},runFlashSupportCheck:function(n){u.runFlashTest({data:n})}};t.exports=r},{"../../utils/utilityFunctions":47,"../vpaid/VPAIDFlashTech":32,"../vpaid/VPAIDHTML5Tech":33,"VPAIDFLASHClient/js/VPAIDFLASHClient":3}],31:[function(n,t){"use strict";function i(n,t){function f(n,t){if(!n||!i.checkVPAIDInterface(n))throw new u("on VPAIDAdUnitWrapper, the passed VPAID adUnit does not fully implement the VPAID interface");if(!r.isObject(t))throw new u("on VPAIDAdUnitWrapper, expected options hash  but got '"+t+"'");if(!("responseTimeout"in t)||!r.isNumber(t.responseTimeout))throw new u("on VPAIDAdUnitWrapper, expected responseTimeout in options");}if(!(this instanceof i))return new i(n,t);f(n,t);this.options=r.extend({},t);this._adUnit=n}var u=n("../vast/VASTError"),r=n("../../utils/utilityFunctions");i.checkVPAIDInterface=function(n){function f(n){return r.isFunction(n.subscribe)||r.isFunction(n.addEventListener)||r.isFunction(n.on)}function e(n){return r.isFunction(n.unsubscribe)||r.isFunction(n.removeEventListener)||r.isFunction(n.off)}for(var i=["handshakeVersion","initAd","startAd","stopAd","resizeAd","pauseAd","expandAd","collapseAd"],t=0,u=i.length;t<u;t++)if(!n||!r.isFunction(n[i[t]]))return!1;return f(n)&&e(n)};i.prototype.adUnitAsyncCall=function(){function e(n,t,i){if(!r.isString(n)||!r.isFunction(i[n]))throw new u("on VPAIDAdUnitWrapper.adUnitAsyncCall, invalid method name");if(!r.isFunction(t))throw new u("on VPAIDAdUnitWrapper.adUnitAsyncCall, missing callback");}function o(){return function(){i&&clearTimeout(i);t.apply(this,arguments)}}var n=r.arrayLikeObjToArray(arguments),f=n.shift(),t=n.pop(),i;e(f,t,this._adUnit);n.push(o());this._adUnit[f].apply(this._adUnit,n);i=setTimeout(function(){i=null;t(new u("on VPAIDAdUnitWrapper, timeout while waiting for a response on call '"+f+"'"));t=r.noop},this.options.responseTimeout)};i.prototype.on=function(n,t){var i=this._adUnit.addEventListener||this._adUnit.subscribe||this._adUnit.on;i.call(this._adUnit,n,t)};i.prototype.off=function(n,t){var i=this._adUnit.removeEventListener||this._adUnit.unsubscribe||this._adUnit.off;i.call(this._adUnit,n,t)};i.prototype.waitForEvent=function(n,t,i){function e(n,t){if(!r.isString(n))throw new u("on VPAIDAdUnitWrapper.waitForEvent, missing evt name");if(!r.isFunction(t))throw new u("on VPAIDAdUnitWrapper.waitForEvent, missing callback");}function o(){var n=r.arrayLikeObjToArray(arguments);f&&(clearTimeout(f),f=null);n.unshift(null);t.apply(i,n)}var f;e(n,t);i=i||null;this.on(n,o);f=setTimeout(function(){t(new u("on VPAIDAdUnitWrapper.waitForEvent, timeout while waiting for event '"+n+"'"));f=null;t=r.noop},this.options.responseTimeout)};i.prototype.handshakeVersion=function(n,t){this.adUnitAsyncCall("handshakeVersion",n,t)};i.prototype.initAd=function(n,t,i,r,u,f){this.waitForEvent("AdLoaded",f);this._adUnit.initAd(n,t,i,r,u)};i.prototype.resizeAd=function(n,t,i,r){this.adUnitAsyncCall("resizeAd",n,t,i,r)};i.prototype.startAd=function(n){this.waitForEvent("AdStarted",n);this._adUnit.startAd()};i.prototype.stopAd=function(n){this.waitForEvent("AdStopped",n);this._adUnit.stopAd()};i.prototype.pauseAd=function(n){this.waitForEvent("AdPaused",n);this._adUnit.pauseAd()};i.prototype.resumeAd=function(n){this.waitForEvent("AdPlaying",n);this._adUnit.resumeAd()};i.prototype.expandAd=function(n){this.waitForEvent("AdExpandedChange",n);this._adUnit.expandAd()};i.prototype.collapseAd=function(n){this.waitForEvent("AdExpandedChange",n);this._adUnit.collapseAd()};i.prototype.skipAd=function(n){this.waitForEvent("AdSkipped",n);this._adUnit.skipAd()};["adLinear","adWidth","adHeight","adExpanded","adSkippableState","adRemainingTime","adDuration","adVolume","adCompanions","adIcons"].forEach(function(n){var t="get"+r.capitalize(n);i.prototype[t]=function(n){this.adUnitAsyncCall(t,n)}});i.prototype.setAdVolume=function(n,t){this.adUnitAsyncCall("setAdVolume",n,t)};t.exports=i},{"../../utils/utilityFunctions":47,"../vast/VASTError":23}],32:[function(n,t){"use strict";function i(n,t){function u(n){if(!n||!f.isString(n.src))throw new r("on VPAIDFlashTech, invalid MediaFile");}if(!(this instanceof i))return new i(n);u(n);this.name="vpaid-flash";this.mediaFile=n;this.containerEl=null;this.vpaidFlashClient=null;this.settings=t}var o=n("../../utils/mimetypes"),r=n("../vast/VASTError"),s=n("VPAIDFLASHClient/js/VPAIDFLASHClient"),f=n("../../utils/utilityFunctions"),e=n("../../utils/dom"),u=n("../../utils/consoleLogger");i.VPAIDFLASHClient=s;i.supports=function(n){return o.flash.indexOf(n)>-1&&i.VPAIDFLASHClient.isSupported()};i.prototype.loadAdUnit=function(n,t,o){function c(n,t){if(!e.isDomElement(n))throw new r("on VPAIDFlashTech.loadAdUnit, invalid dom container element");if(!f.isFunction(t))throw new r("on VPAIDFlashTech.loadAdUnit, missing valid callback");}var s=this,h=this.settings&&this.settings.vpaidFlashLoaderPath?{data:this.settings.vpaidFlashLoaderPath}:undefined;c(n,o);this.containerEl=n;u.debug("<VPAIDFlashTech.loadAdUnit> loading VPAIDFLASHClient with opts:",h);this.vpaidFlashClient=new i.VPAIDFLASHClient(n,function(n){if(n)return o(n);u.info("<VPAIDFlashTech.loadAdUnit> calling VPAIDFLASHClient.loadAdUnit(); that.mediaFile:",s.mediaFile);s.vpaidFlashClient.loadAdUnit(s.mediaFile.src,o)},h)};i.prototype.unloadAdUnit=function(){if(this.vpaidFlashClient){try{this.vpaidFlashClient.destroy()}catch(n){u.error("VAST ERROR: trying to unload the VPAID adunit")}this.vpaidFlashClient=null}this.containerEl&&(e.remove(this.containerEl),this.containerEl=null)};t.exports=i},{"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/mimetypes":44,"../../utils/utilityFunctions":47,"../vast/VASTError":23,"VPAIDFLASHClient/js/VPAIDFLASHClient":3}],33:[function(n,t){"use strict";function i(n){function t(n){if(!n||!f.isString(n.src))throw new u(i.INVALID_MEDIA_FILE);}if(!(this instanceof i))return new i(n);t(n);this.name="vpaid-html5";this.containerEl=null;this.videoEl=null;this.vpaidHTMLClient=null;this.mediaFile=n}var o=n("../../utils/mimetypes"),u=n("../vast/VASTError"),s=n("VPAIDHTML5Client/js/VPAIDHTML5Client"),f=n("../../utils/utilityFunctions"),e=n("../../utils/dom"),h=n("../../utils/consoleLogger"),r;i.VPAIDHTML5Client=s;i.supports=function(n){return!f.isOldIE()&&o.html5.indexOf(n)>-1};i.prototype.loadAdUnit=function(n,t,r){function o(n,t,r){if(!e.isDomElement(n))throw new u(i.INVALID_DOM_CONTAINER_EL);if(!e.isDomElement(t)||t.tagName.toLowerCase()!=="video")throw new u(i.INVALID_DOM_CONTAINER_EL);if(!f.isFunction(r))throw new u(i.MISSING_CALLBACK);}o(n,t,r);this.containerEl=n;this.videoEl=t;this.vpaidHTMLClient=new i.VPAIDHTML5Client(n,t,{});this.vpaidHTMLClient.loadAdUnit(this.mediaFile.src,r)};i.prototype.unloadAdUnit=function(){if(this.vpaidHTMLClient){try{this.vpaidHTMLClient.destroy()}catch(n){h.error("VAST ERROR: trying to unload the VPAID adunit")}this.vpaidHTMLClient=null}this.containerEl&&(e.remove(this.containerEl),this.containerEl=null)};r="on VPAIDHTML5Tech";i.INVALID_MEDIA_FILE=r+", invalid MediaFile";i.INVALID_DOM_CONTAINER_EL=r+", invalid container HtmlElement";i.INVALID_DOM_VIDEO_EL=r+", invalid HTMLVideoElement";i.MISSING_CALLBACK=r+", missing valid callback";t.exports=i},{"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/mimetypes":44,"../../utils/utilityFunctions":47,"../vast/VASTError":23,"VPAIDHTML5Client/js/VPAIDHTML5Client":11}],34:[function(n,t){"use strict";function i(n,t){function u(){var t=document.createElement("div");return r.addClass(t,"VPAID-container"),n.el().insertBefore(t,n.controlBar.el()),t}if(!(this instanceof i))return new i(n);this.VIEW_MODE={NORMAL:"normal",FULLSCREEN:"fullscreen",THUMBNAIL:"thumbnail"};this.player=n;this.containerEl=u(n);this.options={responseTimeout:5e3,VPAID_VERSION:"2.0"};this.settings=t}function a(n,t,i){var f=n.el().querySelector(".vjs-tech"),u=r.getDimension(f),e=n.isFullscreen()?i.FULLSCREEN:i.NORMAL;t.resizeAd(u.width,u.height,e,s)}function s(n){n&&o.error("ERROR: "+n.message,n)}var h=n("../../utils/mimetypes"),f=n("../vast/VASTError"),c=n("../vast/VASTResponse"),v=n("../vast/VASTTracker"),e=n("../vast/vastUtil"),y=n("./VPAIDAdUnitWrapper"),l=n("../../utils/async"),r=n("../../utils/dom"),p=n("../../utils/playerUtils"),u=n("../../utils/utilityFunctions"),o=n("../../utils/consoleLogger");i.prototype.playAd=function(n,t){function a(n,r,u){n&&u&&s._trackError(u,n.code);i.trigger("vpaid.adEnd");t(n,u)}function v(){i.trigger("vpaid.adEnd")}function y(){e&&e.unloadAdUnit();r.removeClass(i.el(),"vjs-vpaid-ad")}var s,i,e,h;if(!(n instanceof c))return t(new f("on VASTIntegrator.playAd, missing required VASTResponse"));s=this;i=this.player;o.debug("<VPAIDIntegrator.playAd> looking for supported tech...");e=this._findSupportedTech(n,this.settings);t=t||u.noop;this._adUnit=null;r.addClass(i.el(),"vjs-vpaid-ad");i.on("vast.adsCancel",v);i.one("vpaid.adEnd",function(){i.off("vast.adsCancel",v);y()});return e?(o.info("<VPAIDIntegrator.playAd> found tech: ",e),l.waterfall([function(t){t(null,e,n)},this._loadAdUnit.bind(this),this._playAdUnit.bind(this),this._finishPlaying.bind(this)],a),this._adUnit={_paused:!0,type:"VPAID",pauseAd:function(){i.trigger("vpaid.pauseAd");i.pause(!0)},resumeAd:function(){i.trigger("vpaid.resumeAd")},isPaused:function(){return this._paused},getSrc:function(){return e.mediaFile}}):(o.debug("<VPAIDIntegrator.playAd> could not find suitable tech"),h=new f("on VPAIDIntegrator.playAd, could not find a supported mediaFile",403),a(h,this._adUnit,n)),this._adUnit};i.prototype._findSupportedTech=function(n,t){var s;if(!(n instanceof c))return null;for(var l=n.mediaFiles.filter(e.isVPAID),r=t&&t.preferredTech,o=[],i,f,v,u=0,a=l.length;u<a;u+=1)if(i=l[u],f=e.findSupportedVPAIDTech(i.type),f){if(v=r?i.type===r||h[r]&&h[r].indexOf(i.type)>-1:!1,v)return new f(i,t);o.push({mediaFile:i,tech:f})}return o.length?(s=o[0],new s.tech(s.mediaFile,t)):null};i.prototype._createVPAIDAdUnitWrapper=function(n,t,i){return new y(n,{src:t,responseTimeout:i})};i.prototype._loadAdUnit=function(n,t,i){var f=this,u=this.player,e=u.el().querySelector(".vjs-tech"),o=this.settings.responseTimeout||this.options.responseTimeout;n.loadAdUnit(this.containerEl,e,function(e,s){if(e)return i(e,s,t);try{var c=f._createVPAIDAdUnitWrapper(s,n.mediaFile.src,o),h="vjs-"+n.name+"-ad";r.addClass(u.el(),h);u.one("vpaid.adEnd",function(){r.removeClass(u.el(),h)});i(null,c,t)}catch(l){i(l,s,t)}})};i.prototype._playAdUnit=function(n,t,i){l.waterfall([function(i){i(null,n,t)},this._handshake.bind(this),this._initAd.bind(this),this._setupEvents.bind(this),this._addSkipButton.bind(this),this._linkPlayerControls.bind(this),this._startAd.bind(this)],i)};i.prototype._handshake=function(n,t,i){function r(n){var t=u(n);return t>=1&&t<=2}function u(n){var t=n.split(".");return parseInt(t[0],10)}n.handshakeVersion(this.options.VPAID_VERSION,function(u,e){return u?i(u,n,t):e&&r(e)?i(null,n,t):i(new f('on VPAIDIntegrator._handshake, unsupported version "'+e+'"'),n,t)})};i.prototype._initAd=function(n,t,i){var f=this.player.el().querySelector(".vjs-tech"),u=r.getDimension(f);n.initAd(u.width,u.height,this.VIEW_MODE.NORMAL,-1,{AdParameters:t.adParameters||""},function(r){i(r,n,t)})};i.prototype._createVASTTracker=function(n,t){return new v(n,t)};i.prototype._setupEvents=function(n,t,i){function c(){s._adUnit&&s._adUnit.isPaused()&&(s._adUnit._paused=!1);f.trigger("play")}function b(){s._adUnit&&(s._adUnit._paused=!0);f.trigger("pause")}function y(){n.pauseAd(u.noop)}function p(){n.resumeAd(u.noop)}var w=n.options.src,o=this._createVASTTracker(w,t),f=this.player,s=this;n.on("AdSkipped",function(){f.trigger("vpaid.AdSkipped");o.trackSkip()});n.on("AdImpression",function(){f.trigger("vpaid.AdImpression");o.trackImpressions()});n.on("AdStarted",function(){f.trigger("vpaid.AdStarted");o.trackCreativeView();c()});n.on("AdVideoStart",function(){f.trigger("vpaid.AdVideoStart");o.trackStart();c()});n.on("AdPlaying",function(){f.trigger("vpaid.AdPlaying");o.trackResume();c()});n.on("AdPaused",function(){f.trigger("vpaid.AdPaused");o.trackPause();b()});n.on("AdVideoFirstQuartile",function(){f.trigger("vpaid.AdVideoFirstQuartile");o.trackFirstQuartile()});n.on("AdVideoMidpoint",function(){f.trigger("vpaid.AdVideoMidpoint");o.trackMidpoint()});n.on("AdVideoThirdQuartile",function(){f.trigger("vpaid.AdVideoThirdQuartile");o.trackThirdQuartile()});n.on("AdVideoComplete",function(){f.trigger("vpaid.AdVideoComplete");o.trackComplete()});n.on("AdClickThru",function(i){function c(t){var i={ASSETURI:n.options.src,CONTENTPLAYHEAD:0};return t?e.parseURLMacro(t,i):null}f.trigger("vpaid.AdClickThru");var r=i.url,h=i.playerHandles,s=u.isNotEmptyString(r)?r:c(t.clickThrough);o.trackClick();h&&s&&window.open(s,"_blank")});n.on("AdUserAcceptInvitation",function(){f.trigger("vpaid.AdUserAcceptInvitation");o.trackAcceptInvitation();o.trackAcceptInvitationLinear()});n.on("AdUserClose",function(){f.trigger("vpaid.AdUserClose");o.trackClose();o.trackCloseLinear()});n.on("AdUserMinimize",function(){f.trigger("vpaid.AdUserMinimize");o.trackCollapse()});n.on("AdError",function(){f.trigger("vpaid.AdError");o.trackErrorWithCode(901)});n.on("AdVolumeChange",function(){f.trigger("vpaid.AdVolumeChange");var t=f.volume();n.getAdVolume(function(n,i){t!==i&&(i===0&&t>0&&o.trackMute(),i>0&&t===0&&o.trackUnmute(),f.volume(i))})});var l=a.bind(this,f,n,this.VIEW_MODE),h=u.throttle(l,100),v=this.settings.autoResize;v&&(r.addEventListener(window,"resize",h),r.addEventListener(window,"orientationchange",h));f.on("vast.resize",l);f.on("vpaid.pauseAd",y);f.on("vpaid.resumeAd",p);f.one("vpaid.adEnd",function(){f.off("vast.resize",l);f.off("vpaid.pauseAd",y);f.off("vpaid.resumeAd",p);v&&(r.removeEventListener(window,"resize",h),r.removeEventListener(window,"orientationchange",h))});i(null,n,t)};i.prototype._addSkipButton=function(n,t,i){function s(){e.trigger("vpaid.AdSkippableStateChange");n.getAdSkippableState(function(n,t){t?f||h(e):o(e)})}function h(n){f=c(n);n.el().appendChild(f)}function o(){r.remove(f);f=null}function c(){var t=window.document.createElement("div");return r.addClass(t,"vast-skip-button"),r.addClass(t,"enabled"),t.innerHTML="Skip ad",t.onclick=function(t){if(n.skipAd(u.noop),window.Event.prototype.stopPropagation!==undefined)t.stopPropagation();else return!1},t}var f,e=this.player;n.on("AdSkippableStateChange",s);p.once(e,["vast.adEnd","vast.adsCancel"],o);i(null,n,t)};i.prototype._linkPlayerControls=function(n,t,i){function u(n,t){function i(){var i=n.muted()?0:n.volume();t.setAdVolume(i,s)}function r(){n.trigger("vpaid.AdVolumeChange");var i=n.volume();t.getAdVolume(function(t,r){t?s(t):i!==r&&n.volume(r)})}n.on("volumechange",i);t.on("AdVolumeChange",r);n.one("vpaid.adEnd",function(){n.off("volumechange",i)})}function f(n,t,i){var u=a.bind(r,n,t,i);n.on("fullscreenchange",u);n.one("vpaid.adEnd",function(){n.off("fullscreenchange",u)})}var r=this;u(this.player,n);f(this.player,n,this.VIEW_MODE);i(null,n,t)};i.prototype._startAd=function(n,t,i){var r=this.player;n.startAd(function(u){u||r.trigger("vast.adStart");i(u,n,t)})};i.prototype._finishPlaying=function(n,t,i){function r(r){i(r,n,t)}var u=this.player;n.on("AdStopped",function(){u.trigger("vpaid.AdStopped");r(null)});n.on("AdError",function(n){var t=n?n.message:"on VPAIDIntegrator, error while waiting for the adUnit to finish playing";r(new f(t))})};i.prototype._trackError=function(n,t){e.track(n.errorURLMacros,{ERRORCODE:t||901})};t.exports=i},{"../../utils/async":40,"../../utils/consoleLogger":41,"../../utils/dom":42,"../../utils/mimetypes":44,"../../utils/playerUtils":45,"../../utils/utilityFunctions":47,"../vast/VASTError":23,"../vast/VASTResponse":25,"../vast/VASTTracker":26,"../vast/vastUtil":30,"./VPAIDAdUnitWrapper":31}],35:[function(n,t){"use strict";var u=n("../../utils/dom"),i=document.createElement("div"),r;i.className="vjs-ads-label vjs-control vjs-label-hidden";i.innerHTML="Advertisement";r=function(n){return{init:function(t,r){r.el=i;n.call(this,t,r);setTimeout(function(){var n=t.controlBar&&(t.controlBar.getChild("timerControls")||t.controlBar.getChild("currentTimeDisplay"));n&&t.controlBar.el().insertBefore(i,n.el());u.removeClass(i,"vjs-label-hidden")},0)},el:function(){return i}}};t.exports=r},{"../../utils/dom":42}],36:[function(n){"use strict";var t=videojs.getComponent("Component"),i=n("./ads-label")(t);videojs.registerComponent("AdsLabel",videojs.extend(t,i))},{"./ads-label":35}],37:[function(n,t){"use strict";var i=document.createElement("div"),r=function(n){return{init:function(t,r){r.el=i;i.className="vjs-black-poster";n.call(this,t,r);var u=t.getChild("posterImage");setTimeout(function(){u&&t&&t.el()&&t.el().insertBefore(i,u.el())},0)},el:function(){return i}}};t.exports=r},{}],38:[function(n){"use strict";var t=videojs.getComponent("Component"),i=n("./black-poster")(t);videojs.registerComponent("BlackPoster",videojs.extend(t,i))},{"./black-poster":37}],39:[function(n,t){"use strict";var h=n("../ads/vast/VASTClient"),u=n("../ads/vast/VASTError"),e=n("../ads/vast/vastUtil"),c=n("../ads/vast/VASTIntegrator"),l=n("../ads/vpaid/VPAIDIntegrator"),o=n("../utils/async"),s=n("../utils/dom"),i=n("../utils/playerUtils"),r=n("../utils/utilityFunctions"),f=n("../utils/consoleLogger");t.exports=function(n){function k(){function n(){t.vast&&t.vast.adUnit&&(t.vast.adUnit=null)}function f(){e();v&&(i.restorePlayerSnapshot(t,v),v=null)}function e(){i.once(t,["playing","vast.reset","vast.firstPlay"],function(n){if(n.type==="playing"){t.trigger("vast.contentStart");i.once(t,["ended","vast.reset","vast.firstPlay"],function(n){n.type==="ended"&&t.trigger("vast.contentEnd")})}})}function h(n){if(a.adsEnabled)return n(null);n(new u("Ads are not enabled"))}function c(n){if(l())if(v=i.getPlayerSnapshot(t),t.pause(),b(),t.paused())n(null);else i.once(t,["playing"],function(){t.pause();n(null)});else n(new u("video content has been playing before preroll ad"))}function l(){return!r.isIPhone()||t.currentTime()<=a.iosPrerollCancelTimeout}function w(n){function f(){r&&(clearTimeout(r),r=null)}var r;p=!1;r=setTimeout(function(){y(new u("timeout while waiting for the video to start playing",402))},a.adCancelTimeout);i.once(t,["vast.adStart","vast.adsCancel"],f);n(null)}function b(){s.addClass(t.el(),"vjs-vast-ad-loading");i.once(t,["vast.adStart","vast.adsCancel"],k)}function k(){setTimeout(function(){s.removeClass(t.el(),"vjs-vast-ad-loading")},100)}i.removeNativePoster(t);i.once(t,["vast.adsCancel","vast.adEnd"],function(){n();f()});o.waterfall([h,c,w,d],function(n,i){n?y(n,i):t.trigger("vast.adEnd")})}function w(){t.trigger("vast.adsCancel");p=!0}function d(n){o.waterfall([g,nt],n)}function g(n){b.getVASTResponse(a.adTagUrl?a.adTagUrl():a.adTagXML,n)}function nt(n,u){function s(){e||t.controlBar.getChild("AdsLabel")||t.controlBar.addChild("AdsLabel")}function h(){t.controlBar.removeChild("AdsLabel");e=!0}function v(){function f(){t.duration()-n>r&&(t.pause(!0),t.play(!0),t.currentTime(n))}function e(){var i=t.currentTime(),f=Math.abs(i-n);f>r?(u+=1,u>=2&&t.pause(!0),t.currentTime(n)):n=i}function o(){t.off("timeupdate",e);t.off("ended",f)}var r=3,n=0,u=0;t.on("timeupdate",e);t.on("ended",f);i.once(t,["vast.adEnd","vast.adsCancel","vast.adError"],o)}if(!p){var o=tt(n)?new l(t,a):new c(t),e=!1;i.once(t,["vast.adStart","vast.adsCancel"],function(n){n.type==="vast.adStart"&&s()});i.once(t,["vast.adEnd","vast.adsCancel"],h);r.isIDevice()&&v();t.vast.vastResponse=n;f.debug("calling adIntegrator.playAd() with vastResponse:",n);t.vast.adUnit=o.playAd(n,u)}}function y(n,i){t.trigger({type:"vast.adError",error:n});w();f.error("AD ERROR:",n.message,n,i)}function tt(n){for(var r=n.mediaFiles,t=0,i=r.length;t<i;t++)if(e.isVPAID(r[t]))return!0;return!1}var v,t=this,b=new h,p=!1,a=r.extend({},{timeout:500,iosPrerollCancelTimeout:2e3,adCancelTimeout:3e3,playAdAlways:!1,adsEnabled:!0,autoResize:!0,vpaidFlashLoaderPath:"/VPAIDFlash.swf",verbosity:0},n||{});if(r.isUndefined(a.adTagUrl)&&r.isDefined(a.url)&&(a.adTagUrl=a.url),r.isString(a.adTagUrl)&&(a.adTagUrl=r.echoFn(a.adTagUrl)),r.isDefined(a.adTagXML)&&!r.isFunction(a.adTagXML))return y(new u("on VideoJS VAST plugin, the passed adTagXML option does not contain a function"));if(!r.isDefined(a.adTagUrl)&&!r.isFunction(a.adTagXML))return y(new u("on VideoJS VAST plugin, missing adTagUrl on options object"));if(f.setVerbosity(a.verbosity),e.runFlashSupportCheck(a.vpaidFlashLoaderPath),i.prepareForAds(t),a.playAdAlways)t.on("vast.contentEnd",function(){setTimeout(function(){t.trigger("vast.reset")},0)});t.on("vast.firstPlay",k);t.on("vast.reset",function(){v=null;w()});return t.vast={isEnabled:function(){return a.adsEnabled},enable:function(){a.adsEnabled=!0},disable:function(){a.adsEnabled=!1}},t.vast}},{"../ads/vast/VASTClient":22,"../ads/vast/VASTError":23,"../ads/vast/VASTIntegrator":24,"../ads/vast/vastUtil":30,"../ads/vpaid/VPAIDIntegrator":34,"../utils/async":40,"../utils/consoleLogger":41,"../utils/dom":42,"../utils/playerUtils":45,"../utils/utilityFunctions":47}],40:[function(n,t){var r=n("./utilityFunctions"),i={};i.setImmediate=function(n){setTimeout(n,0)};i.iterator=function(n){var t=function(i){var r=function(){return n.length&&n[i].apply(null,arguments),r.next()};return r.next=function(){return i<n.length-1?t(i+1):null},r};return t(0)};i.waterfall=function(n,t){var f,u;if(t=t||function(){},!r.isArray(n))return f=new Error("First argument to waterfall must be an array of functions"),t(f);if(!n.length)return t();u=function(n){return function(r){if(r)t.apply(null,arguments),t=function(){};else{var f=Array.prototype.slice.call(arguments,1),e=n.next();e?f.push(u(e)):f.push(t);i.setImmediate(function(){n.apply(null,f)})}}};u(i.iterator(n))()};i.when=function(n,t){if(!r.isFunction(t))throw new Error("async.when error: missing callback argument");var i=r.isFunction(n)?n:function(){return!!n};return function(){var n=r.arrayLikeObjToArray(arguments),u=n.pop();return i.apply(null,n)?t.apply(this,arguments):(n.unshift(null),u.apply(null,n))}};t.exports=i},{"./utilityFunctions":47}],41:[function(n,t){"use strict";function e(n){u=n}function i(n,t){t.length>0&&typeof t[0]=="string"&&(t[0]=f+t[0]);n.apply?n.apply(console,Array.prototype.slice.call(t)):n(Array.prototype.slice.call(t))}function o(){u<4||(typeof console.debug=="undefined"?i(console.log,arguments):i(console.debug,arguments))}function s(){u<3||i(console.log,arguments)}function h(){u<2||i(console.info,arguments)}function c(){u<1||i(console.warn,arguments)}function l(){i(console.error,arguments)}var u=0,f="[videojs-vast-vpaid] ",r={setVerbosity:e,debug:o,log:s,info:h,warn:c,error:l};typeof console!="undefined"&&console.log||(r.debug=function(){},r.log=function(){},r.info=function(){},r.warn=function(){},r.error=function(){});t.exports=r},{}],42:[function(n,t){"use strict";var r=n("./utilityFunctions"),i={};i.isVisible=function(n){var t=window.getComputedStyle(n);return t.visibility!=="hidden"};i.isHidden=function(n){var t=window.getComputedStyle(n);return t.display==="none"};i.isShown=function(n){return!i.isHidden(n)};i.hide=function(n){n.__prev_style_display_=n.style.display;n.style.display="none"};i.show=function(n){i.isHidden(n)&&(n.style.display=n.__prev_style_display_);n.__prev_style_display_=undefined};i.hasClass=function(n,t){var u,i,f;if(r.isNotEmptyString(t)){if(n.classList)return n.classList.contains(t);for(u=r.isString(n.getAttribute("class"))?n.getAttribute("class").split(/\s+/):[],t=t||"",i=0,f=u.length;i<f;i+=1)if(u[i]===t)return!0}return!1};i.addClass=function(n,t){var i;if(r.isNotEmptyString(t)){if(n.classList)return n.classList.add(t);i=r.isString(n.getAttribute("class"))?n.getAttribute("class").split(/\s+/):[];r.isString(t)&&r.isNotEmptyString(t.replace(/\s+/,""))&&(i.push(t),n.setAttribute("class",i.join(" ")))}};i.removeClass=function(n,t){var u,f,i,e;if(r.isNotEmptyString(t)){if(n.classList)return n.classList.remove(t);if(u=r.isString(n.getAttribute("class"))?n.getAttribute("class").split(/\s+/):[],f=[],r.isString(t)&&r.isNotEmptyString(t.replace(/\s+/,""))){for(i=0,e=u.length;i<e;i+=1)t!==u[i]&&f.push(u[i]);n.setAttribute("class",f.join(" "))}}};i.addEventListener=function(n,t,u){if(r.isArray(n)){r.forEach(n,function(n){i.addEventListener(n,t,u)});return}if(r.isArray(t)){r.forEach(t,function(t){i.addEventListener(n,t,u)});return}n.addEventListener?n.addEventListener(t,u,!1):n.attachEvent&&n.attachEvent("on"+t,u)};i.removeEventListener=function(n,t,u){if(r.isArray(n)){r.forEach(n,function(n){i.removeEventListener(n,t,u)});return}if(r.isArray(t)){r.forEach(t,function(t){i.removeEventListener(n,t,u)});return}n.removeEventListener?n.removeEventListener(t,u,!1):n.detachEvent?n.detachEvent("on"+t,u):n["on"+t]=null};i.dispatchEvent=function(n,t){n.dispatchEvent?n.dispatchEvent(t):n.fireEvent("on"+t.eventType,t)};i.isDescendant=function(n,t){for(var i=t.parentNode;i!==null;){if(i===n)return!0;i=i.parentNode}return!1};i.getTextContent=function(n){return n.textContent||n.text};i.prependChild=function(n,t){return t.parentNode&&t.parentNode.removeChild(t),n.insertBefore(t,n.firstChild)};i.remove=function(n){n&&n.parentNode&&n.parentNode.removeChild(n)};i.isDomElement=function(n){return n instanceof Element};i.click=function(n,t){i.addEventListener(n,"click",t)};i.once=function(n,t,r){function u(){r.apply(null,arguments);i.removeEventListener(n,t,u)}i.addEventListener(n,t,u)};i.getDimension=function(n){var t;return!r.isOldIE()&&n.getBoundingClientRect?(t=n.getBoundingClientRect(),{width:t.width,height:t.height}):{width:n.offsetWidth,height:n.offsetHeight}};t.exports=i},{"./utilityFunctions":47}],43:[function(n,t){"use strict";function r(n){this.message="HttpRequest Error: "+(n||"")}function u(n){if(!i.isFunction(n))throw new r("Missing XMLHttpRequest factory method");this.createXhr=n}function f(){var n=new XMLHttpRequest;return"withCredentials"in n||(n=new XDomainRequest),n}var o=n("./urlUtils"),i=n("./utilityFunctions"),e;r.prototype=new Error;r.prototype.name="HttpRequest Error";u.prototype.run=function(n,t,u,f){function l(n,t,u){if(!i.isString(n)||i.isEmptyString(n))throw new r("Invalid url '"+n+"'");if(!i.isFunction(t))throw new r("Invalid handler '"+t+"' for the http request");if(i.isDefined(u)&&!i.isObject(u))throw new r("Invalid options map '"+u+"'");}function a(n,t){i.forEach(t,function(t,r){i.isDefined(t)&&n.setRequestHeader(r,t)})}function c(){u(-1,null,null,"")}l(t,u,f);var h,s,e=this.createXhr();f=f||{};h=i.isNumber(f.timeout)?f.timeout:0;e.open(n,o.urlParts(t).href,!0);f.headers&&a(e,f.headers);f.withCredentials&&(e.withCredentials=!0);e.onload=function(){var n,t,r;e.getAllResponseHeaders||(e.getAllResponseHeaders=function(){return null});e.status||(e.status=200);i.isDefined(s)&&(clearTimeout(s),s=undefined);n=e.statusText||"";t="response"in e?e.response:e.responseText;r=e.status===1223?204:e.status;u(r,t,e.getAllResponseHeaders(),n)};e.onerror=c;e.onabort=c;e.send();h>0&&(s=setTimeout(function(){e&&e.abort()},h))};u.prototype.get=function(n,t,i){function u(n,i,u,e){f(n)?t(null,i,n,u,e):t(new r(e),i,n,u,e)}function f(n){return 200<=n&&n<300}this.run("GET",n,u,i)};e=new u(f);t.exports={http:e,HttpRequest:u,HttpRequestError:r,createXhr:f}},{"./urlUtils":46,"./utilityFunctions":47}],44:[function(n,t){"use strict";t.exports={html5:["text/javascript","text/javascript1.0","text/javascript1.2","text/javascript1.4","text/jscript","application/javascript","application/x-javascript","text/ecmascript","text/ecmascript1.0","text/ecmascript1.2","text/ecmascript1.4","text/livescript","application/ecmascript","application/x-ecmascript",],flash:["application/x-shockwave-flash"]}},{}],45:[function(n,t){"use strict";var u=n("./dom"),r=n("./utilityFunctions"),i={};i.getPlayerSnapshot=function(n){function u(n){var t=n.remoteTextTracks?n.remoteTextTracks():[],i;return t&&r.isArray(t.tracks_)&&(t=t.tracks_),r.isArray(t)||(t=[]),i=[],t.forEach(function(n){i.push({track:n,mode:n.mode});n.mode="disabled"}),i}var t=n.el().querySelector(".vjs-tech"),i={ended:n.ended(),src:n.currentSrc(),currentTime:n.currentTime(),type:n.currentType(),playing:!n.paused(),suppressedTracks:u(n)};return t&&(i.nativePoster=t.poster,i.style=t.getAttribute("style")),i};i.restorePlayerSnapshot=function(n,t){function o(){var t=setTimeout(function(){n.trigger("canplay")},1e3);n.one("canplay",function(){clearTimeout(t)})}function s(n,t){return n.src()?n.src()!==t.src:n.currentSrc()!==t.src}function u(){var n=t.suppressedTracks;n.forEach(function(n){n.track.mode=n.mode})}function f(){if(!i.isReadyToResume(n)&&e--)setTimeout(f,50);else try{if(n.currentTime()!==t.currentTime){if(t.playing)n.one("seeked",function(){n.play()});n.currentTime(t.currentTime)}else t.playing&&n.play()}catch(r){videojs.log.warn("Failed to resume the content after an advertisement",r)}}var r=n.el().querySelector(".vjs-tech"),e=20;if(t.nativePoster&&(r.poster=t.nativePoster),"style"in t&&r.setAttribute("style",t.style||""),s(n,t)){n.one("contentloadedmetadata",u);n.one("canplay",f);o();n.src({src:t.src,type:t.type});n.load()}else u(),t.playing&&n.play()};i.isReadyToResume=function(n){return n.readyState()>1?!0:n.seekable()===undefined?!0:n.seekable().length>0?!0:!1};i.prepareForAds=function(n){function o(){return n.vast&&n.vast.adUnit}function l(){s()&&(e=!1,n.trigger("vast.firstPlay"))}function a(){e=!0;f.show();h()}function s(){return e}function v(){return{muted:n.muted(),volume:n.volume()}}function h(){t&&(n.currentTime(0),y(t),t=null)}function y(t){r.isObject(t)&&(n.volume(t.volume),n.muted(t.muted))}function i(){u.hasClass(f.el(),"vjs-hidden")||f.hide()}function p(){u.addClass(n.el(),"vjs-ad-playing")}function c(){u.removeClass(n.el(),"vjs-ad-playing")}var f=n.addChild("blackPoster"),e=!0,t;n.on("play",l);n.on("vast.reset",a);n.on("vast.firstPlay",h);n.on("error",i);n.on("vast.adStart",i);n.on("vast.adsCancel",i);n.on("vast.adError",i);n.on("vast.adStart",p);n.on("vast.adEnd",c);n.on("vast.adsCancel",c)};i.removeNativePoster=function(n){var t=n.el().querySelector(".vjs-tech");t&&t.removeAttribute("poster")};i.once=function(n,t,i){function r(){i.apply(null,arguments);t.forEach(function(t){n.off(t,r)})}t.forEach(function(t){n.on(t,r)})};t.exports=i},{"./dom":42,"./utilityFunctions":47}],46:[function(n,t){"use strict";function f(n){var t=n;return u&&(i.setAttribute("href",t),t=i.href),i.setAttribute("href",t),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:r.isNotEmptyString(i.port)?i.port:80,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}function e(n,t){var u,i;return t=r.isFunction(t)?t:function(){return!0},n=n.trim().replace(/^\?/,""),u=n.split("&"),i={},r.forEach(u,function(n){var r,u,f;n!==""&&(r=n.split("="),u=r[0],f=r[1],t(u,f)&&(i[u]=f))}),i}function o(n){var t=[];return r.forEach(n,function(n,i){t.push(i+"="+n)}),t.join("&")}var r=n("./utilityFunctions"),i=document.createElement("a"),u=document.documentMode;t.exports={urlParts:f,queryStringToObj:e,objToQueryString:o}},{"./utilityFunctions":47}],47:[function(n,t){"use strict";function y(){}function u(n){return n===null}function p(n){return n!==undefined}function w(n){return n===undefined}function r(n){return typeof n=="object"}function f(n){return typeof n=="function"}function b(n){return typeof n=="number"}function k(n){return i.isObject(n)&&n.window===n}function e(n){return Object.prototype.toString.call(n)==="[object Array]"}function d(n){if(n===null||i.isWindow(n)||i.isFunction(n)||i.isUndefined(n))return!1;var t=n.length;return n.nodeType===c&&t?!0:i.isString(n)||i.isArray(n)||t===0||typeof t=="number"&&t>0&&t-1 in n}function g(n){return typeof n=="string"}function nt(n){return i.isString(n)&&n.length===0}function tt(n){return i.isString(n)&&n.length!==0}function it(n){return Array.prototype.slice.call(n)}function o(n,t,i){var r,u,s;if(n)if(f(n))for(r in n)r!=="prototype"&&r!=="length"&&r!=="name"&&(!n.hasOwnProperty||n.hasOwnProperty(r))&&t.call(i,n[r],r,n);else if(e(n))for(s=typeof n!="object",r=0,u=n.length;r<u;r++)(s||r in n)&&t.call(i,n[r],r,n);else if(n.forEach&&n.forEach!==o)n.forEach(t,i,n);else for(r in n)n.hasOwnProperty(r)&&t.call(i,n[r],r,n);return n}function rt(n,t){return t=t||"_",n.replace(l,function(n,i){return(i?t:"")+n.toLowerCase()})}function ut(n){return i.isString(n)?a.test(n.trim()):!1}function s(n){for(var i,t,f=1;f<arguments.length;f++){i=arguments[f];for(t in i)i.hasOwnProperty(t)&&(n[t]=r(n[t])&&!u(n[t])&&r(i[t])?s({},n[t],i[t]):i[t])}return n}function ft(n){return n.charAt(0).toUpperCase()+n.slice(1)}function et(n){return n.charAt(0).toLowerCase()+n.slice(1)}function ot(n,t){var r=[];return n.forEach(function(n,u){var f=t(n,u);i.isDefined(f)&&r.push(f)}),r}function st(n,t){var r=n+"";if(t=i.isNumber(t)?t:0,n=i.isNumber(n)?n:parseInt(n,10),i.isNumber(n)&&!isNaN(n)){for(r=n+"";r.length<t;)r="0"+r;return r}return"NaN"}function ht(n,t){var i=(new Date).getTime()-(t+1);return function(){var r=(new Date).getTime();r-i>=t&&(i=r,n.apply(this,arguments))}}function ct(n,t){var i;return function(){i&&clearTimeout(i);i=setTimeout(function(){n.apply(this,arguments);i=undefined},t)}}function h(n,t,i){for(var u=t(n),f,r=0;r<u.length;r++){if(i(u[r]))return u[r];if(f=h(u[r],t,i),f)return f}}function lt(n){return function(){return n}}function at(n){return(i.isNumber(n)&&(n=n+""),!i.isString(n))?!1:v.test(n.trim())}function vt(){var n=i.getInternetExplorerVersion(navigator);return n===-1?!1:n<10}function yt(n){var t=-1;if(n.appName=="Microsoft Internet Explorer"){var r=n.userAgent,u=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),i=u.exec(r);i!==null&&(t=parseFloat(i[1]))}return t}function pt(){return/iP(hone|ad)/.test(i._UA)}function wt(){return/iP(hone|ad|od)|Android|Windows Phone/.test(i._UA)}function bt(){return/iP(hone|od)/.test(i._UA)}function kt(){return/Android/.test(i._UA)}var c=1,l=/[A-Z]/g,a=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/i,v=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i={_UA:navigator.userAgent,noop:y,isNull:u,isDefined:p,isUndefined:w,isObject:r,isFunction:f,isNumber:b,isWindow:k,isArray:e,isArrayLike:d,isString:g,isEmptyString:nt,isNotEmptyString:tt,arrayLikeObjToArray:it,forEach:o,snake_case:rt,isValidEmail:ut,extend:s,capitalize:ft,decapitalize:et,transformArray:ot,toFixedDigits:st,throttle:ht,debounce:ct,treeSearch:h,echoFn:lt,isISO8601:at,isOldIE:vt,getInternetExplorerVersion:yt,isIDevice:pt,isMobile:wt,isIPhone:bt,isAndroid:kt};t.exports=i},{}],48:[function(n,t){"use strict";var r=n("./utilityFunctions"),i={};i.strToXMLDoc=function(n){function i(n){var i=new DOMParser,t;try{if(t=i.parseFromString(n,"application/xml"),u(t)||r.isEmptyString(n))throw new Error;}catch(f){throw new Error("xml.strToXMLDOC: Error parsing the string: '"+n+"'");}return t}function u(n){try{var i=new DOMParser,r=i.parseFromString("INVALID","text/xml"),t=r.getElementsByTagName("parsererror")[0].namespaceURI;return t==="http://www.w3.org/1999/xhtml"?n.getElementsByTagName("parsererror").length>0:n.getElementsByTagNameNS(t,"parsererror").length>0}catch(u){}}if(typeof window.DOMParser=="undefined"){var t=new ActiveXObject("Microsoft.XMLDOM");return t.async=!1,t.loadXML(n),t}return i(n)};i.parseText=function(n){return/^\s*$/.test(n)?null:/^(?:true|false)$/i.test(n)?n.toLowerCase()==="true":isFinite(n)?parseFloat(n):r.isISO8601(n)?new Date(n):n.trim()};i.JXONTree=function(n){var c=i.parseText,f,t,u,s,e,l,h,o;if(n.documentElement)return new i.JXONTree(n.documentElement);if(n.hasChildNodes()){for(f="",e=0;e<n.childNodes.length;e++)t=n.childNodes.item(e),(t.nodeType-1|1)==3?f+=t.nodeType===3?t.nodeValue.trim():t.nodeValue:t.nodeType!==1||t.prefix||(u=r.decapitalize(t.nodeName),s=new i.JXONTree(t),this.hasOwnProperty(u)?(this[u].constructor!==Array&&(this[u]=[this[u]]),this[u].push(s)):this[u]=s);f&&(this.keyValue=c(f))}if(l=typeof n.hasAttributes=="undefined"?n.attributes.length>0:n.hasAttributes(),l)for(o=0;o<n.attributes.length;o++)h=n.attributes.item(o),this["@"+r.decapitalize(h.name)]=c(h.value.trim())};i.JXONTree.prototype.attr=function(n){return this["@"+r.decapitalize(n)]};i.toJXONTree=function(n){var t=i.strToXMLDoc(n);return new i.JXONTree(t)};i.keyValue=function(n){return n?n.keyValue:undefined};i.attr=function(n,t){return n?n["@"+r.decapitalize(t)]:undefined};i.encode=function(n){return r.isString(n)?n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"):undefined};i.decode=function(n){return r.isString(n)?n.replace(/&apos;/g,"'").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"):undefined};t.exports=i},{"./utilityFunctions":47}],49:[function(n){"use strict";n("./plugin/components/ads-label_5");n("./plugin/components/black-poster_5");var t=n("./plugin/videojs.vast.vpaid");videojs.plugin("vastClient",t)},{"./plugin/components/ads-label_5":36,"./plugin/components/black-poster_5":38,"./plugin/videojs.vast.vpaid":39}]},{},[49]),function(n){var t=function(n){var t=document.createElement("a"),i;return t.id="vjs-logobrand-link",t.href=n.destination,t.target="_blank",i=document.createElement("img"),i.id="vjs-logobrand-img",i.src=n.image,t.appendChild(i),t};n.plugin("logobrand",function(n){var i=this.controlBar.addChild("button"),r;i.addClass("vjs-logobrand");r=t(n);$(i.el()).html(r)})}(window.videojs)