webpackJsonp([0],{"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(t,e,n){var i=n("lOnJ");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"+tPU":function(t,e,n){n("xGkn");for(var i=n("7KvD"),r=n("hJx8"),s=n("/bQp"),a=n("dSzd")("toStringTag"),A="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),o=0;o=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}(s.path||""),h=e&&e.path||"/",d=u.path?C(u.path,h,n||s.append):h,f=function(t,e,n){void 0===e&&(e={});var i,r=n||c;try{i=r(t||"")}catch(t){i={}}for(var s in e){var a=e[s];i[s]=Array.isArray(a)?a.map(l):l(a)}return i}(u.query,s.query,i&&i.options.parseQuery),p=s.hash||u.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:f,hash:p}}var V,G=[String,Object],$=[String,Array],W=function(){},z={name:"RouterLink",props:{to:{type:G,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:$,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,s=n.resolve(this.to,i,this.append),a=s.location,A=s.route,o=s.href,u={},l=n.options.linkActiveClass,c=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,p=null==c?"router-link-exact-active":c,g=null==this.activeClass?h:this.activeClass,m=null==this.exactActiveClass?p:this.exactActiveClass,y=A.redirectedFrom?f(null,j(A.redirectedFrom),null,n):A;u[m]=v(i,y,this.exactPath),u[g]=this.exact||this.exactPath?u[m]:function(t,e){return 0===t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,y);var B=u[m]?this.ariaCurrentValue:null,b=function(t){X(t)&&(e.replace?n.replace(a,W):n.push(a,W))},w={click:X};Array.isArray(this.event)?this.event.forEach(function(t){w[t]=b}):w[this.event]=b;var C={class:u},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:o,route:A,navigate:b,isActive:u[g],isExactActive:u[m]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?t():t("span",{},_)}if("a"===this.tag)C.on=w,C.attrs={href:o,"aria-current":B};else{var T=function t(e){if(e)for(var n,i=0;i-1&&(A.params[h]=n.params[h]);return A.path=K(l.path,A.params),o(l,A,a)}if(A.path){A.params={};for(var d=0;d=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}var bt={redirected:2,aborted:4,cancelled:8,duplicated:16};function wt(t,e){return _t(t,e,bt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return Tt.forEach(function(n){n in t&&(e[n]=t[n])}),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function Ct(t,e){return _t(t,e,bt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function _t(t,e,n,i){var r=new Error(i);return r._isRouter=!0,r.from=t,r.to=e,r.type=n,r}var Tt=["params","query","hash"];function Et(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function St(t,e){return Et(t)&&t._isRouter&&(null==e||t.type===e)}function kt(t){return function(e,n,i){var r=!1,s=0,a=null;Ut(t,function(t,e,n,A){if("function"==typeof t&&void 0===t.cid){r=!0,s++;var o,u=xt(function(e){var r;((r=e).__esModule||Ft&&"Module"===r[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:V.extend(e),n.components[A]=e,--s<=0&&i()}),l=xt(function(t){var e="Failed to resolve async component "+A+": "+t;a||(a=Et(t)?t:new Error(e),i(a))});try{o=t(u,l)}catch(t){l(t)}if(o)if("function"==typeof o.then)o.then(u,l);else{var c=o.component;c&&"function"==typeof c.then&&c.then(u,l)}}}),r||i()}}function Ut(t,e){return It(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function It(t){return Array.prototype.concat.apply([],t)}var Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function xt(t){var e=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var Qt=function(t,e){this.router=t,this.base=function(t){if(!t)if(Y){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Lt(t,e,n,i){var r=Ut(t,function(t,i,r,s){var a=function(t,e){"function"!=typeof t&&(t=V.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,i,r,s)}):n(a,i,r,s)});return It(i?r.reverse():r)}function Ot(t,e){if(e)return function(){return t.apply(e,arguments)}}Qt.prototype.listen=function(t){this.cb=t},Qt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Qt.prototype.onError=function(t){this.errorCbs.push(t)},Qt.prototype.transitionTo=function(t,e,n){var i,r=this;try{i=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach(function(e){e(t)}),t}var s=this.current;this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.router.afterHooks.forEach(function(t){t&&t(i,s)}),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},function(t){n&&n(t),t&&!r.ready&&(St(t,bt.redirected)&&s===g||(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)})))})},Qt.prototype.confirmTransition=function(t,e,n){var r=this,s=this.current;this.pending=t;var a,A,o=function(t){!St(t)&&Et(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):(i(),console.error(t))),n&&n(t)},u=t.matched.length-1,l=s.matched.length-1;if(v(t,s)&&u===l&&t.matched[u]===s.matched[l])return this.ensureURL(),o(((A=_t(a=s,t,bt.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".')).name="NavigationDuplicated",A));var c=function(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,i=mt&&n;i&&this.listeners.push(At());var r=function(){var n=t.current,r=Pt(t.base);t.current===g&&r===t._startLocation||t.transitionTo(r,function(t){i&&ot(e,t,n,!0)})};window.addEventListener("popstate",r),this.listeners.push(function(){window.removeEventListener("popstate",r)})}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){vt(_(i.base+t.fullPath)),ot(i.router,t,r,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){yt(_(i.base+t.fullPath)),ot(i.router,t,r,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(Pt(this.base)!==this.current.fullPath){var e=_(this.base+this.current.fullPath);t?vt(e):yt(e)}},e.prototype.getCurrentLocation=function(){return Pt(this.base)},e}(Qt);function Pt(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Ht=function(t){function e(e,n,i){t.call(this,e,n),i&&function(t){var e=Pt(t);if(!/^\/#/.test(e))return window.location.replace(_(t+"/#"+e)),!0}(this.base)||Rt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=mt&&e;n&&this.listeners.push(At());var i=function(){var e=t.current;Rt()&&t.transitionTo(Mt(),function(i){n&&ot(t.router,i,e,!0),mt||jt(i.fullPath)})},r=mt?"popstate":"hashchange";window.addEventListener(r,i),this.listeners.push(function(){window.removeEventListener(r,i)})}},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){Kt(t.fullPath),ot(i.router,t,r,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){jt(t.fullPath),ot(i.router,t,r,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Mt()!==e&&(t?Kt(e):jt(e))},e.prototype.getCurrentLocation=function(){return Mt()},e}(Qt);function Rt(){var t=Mt();return"/"===t.charAt(0)||(jt("/"+t),!1)}function Mt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Nt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Kt(t){mt?vt(Nt(t)):window.location.hash=t}function jt(t){mt?yt(Nt(t)):window.location.replace(Nt(t))}var Vt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,function(){var t=e.current;e.index=n,e.updateRoute(i),e.router.afterHooks.forEach(function(e){e&&e(i,t)})},function(t){St(t,bt.duplicated)&&(e.index=n)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Qt),Gt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!mt&&!1!==t.fallback,this.fallback&&(e="hash"),Y||(e="abstract"),this.mode=e,e){case"history":this.history=new Dt(this,t.base);break;case"hash":this.history=new Ht(this,t.base,this.fallback);break;case"abstract":this.history=new Vt(this,t.base);break;default:0}},$t={currentRoute:{configurable:!0}};function Wt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Gt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},$t.currentRoute.get=function(){return this.history&&this.history.current},Gt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()}),!this.app){this.app=t;var n=this.history;if(n instanceof Dt||n instanceof Ht){var i=function(t){n.setupListeners(),function(t){var i=n.current,r=e.options.scrollBehavior;mt&&r&&"fullPath"in t&&ot(e,t,i,!1)}(t)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Gt.prototype.beforeEach=function(t){return Wt(this.beforeHooks,t)},Gt.prototype.beforeResolve=function(t){return Wt(this.resolveHooks,t)},Gt.prototype.afterEach=function(t){return Wt(this.afterHooks,t)},Gt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Gt.prototype.onError=function(t){this.history.onError(t)},Gt.prototype.push=function(t,e,n){var i=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){i.history.push(t,e,n)});this.history.push(t,e,n)},Gt.prototype.replace=function(t,e,n){var i=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){i.history.replace(t,e,n)});this.history.replace(t,e,n)},Gt.prototype.go=function(t){this.history.go(t)},Gt.prototype.back=function(){this.go(-1)},Gt.prototype.forward=function(){this.go(1)},Gt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Gt.prototype.resolve=function(t,e,n){var i=j(t,e=e||this.history.current,n,this),r=this.match(i,e),s=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:function(t,e,n){var i="hash"===n?"#"+e:e;return t?_(t+"/"+i):i}(this.history.base,s,this.mode),normalizedTo:i,resolved:r}},Gt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Gt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Gt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Gt.prototype,$t),Gt.install=q,Gt.version="3.5.1",Gt.isNavigationFailure=St,Gt.NavigationFailureType=bt,Gt.START_LOCATION=g,Y&&window.Vue&&window.Vue.use(Gt),e.a=Gt},"21It":function(t,e,n){"use strict";var i=n("FtD3");t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"2IcF":function(t,e){e.entityMap={lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},"2KxR":function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},"3Eo+":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},"3X7g":function(t,e,n){"use strict";(function(t){e.c=o,e.b=function(t){o(function(){o(t)})},e.a=function(t){A.call(s,t)};var i=n("o69Z"),r=Date.now();var s=i.j?t:window,a=s.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-r)),i=setTimeout(t,n);return r=e+n,i},A=s.cancelAnimationFrame||s.clearTimeout;function o(t){return a.call(s,t)}}).call(e,n("DuR2"))},"3fs2":function(t,e,n){var i=n("RY/4"),r=n("dSzd")("iterator"),s=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||s[i(t)]}},"4PMK":function(t,e,n){"use strict";e.a=function(t){if(!Object(r.e)(t))return;return t=String(t),Object(s.b)(t)?t+"px":t},e.b=function(t){if("number"==typeof t)return t;if(r.d){if(-1!==t.indexOf("rem"))return function(t){return+(t=t.replace(/rem/g,""))*function(){if(!i){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;i=parseFloat(e)}return i}()}(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)};var i,r=n("o69Z"),s=n("mRXp")},"4mcu":function(t,e){t.exports=function(){}},"52gC":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"5VQ+":function(t,e,n){"use strict";var i=n("cGG2");t.exports=function(t,e){i.forEach(t,function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])})}},"63pp":function(t,e,n){"use strict";var i,r,s,a=n("awF4"),A=n.n(a),o=n("dwO+"),u=n.n(o),l=n("lt8z"),c=n.n(l),h=n("M1I4"),d=n.n(h),f=n("86MP"),p=n.n(f),g=n("I/+Z"),m=n.n(g),v=n("ljAp"),y=n.n(v),B=n("OWA6"),b=n.n(B),w=n("ciWi"),C=n.n(w),_=n("kx0S"),T=n.n(_),E=n("j/rp"),S=n.n(E),k=n("fx5k"),U=n.n(k),I=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=A.a.location&&A.a.location.href||"");var n="function"==typeof A.a.URL,i=/^\/\//.test(t),r=!A.a.location&&!/\/\//i.test(t);if(n?t=new A.a.URL(t,A.a.location||"http://example.com"):/\/\//i.test(t)||(t=U.a.buildAbsoluteURL(A.a.location&&A.a.location.href||"",t)),n){var s=new URL(e,t);return r?s.href.slice("http://example.com".length):i?s.href.slice(s.protocol.length):s.href}return U.a.buildAbsoluteURL(t,e)},F=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(n,1),n>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var n=e.length,i=0;i-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(F),L=String.fromCharCode(9),O=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),n={};return e[1]&&(n.length=parseInt(e[1],10)),e[2]&&(n.offset=parseInt(e[2],10)),n},D=function(t){for(var e,n=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},r=n.length;r--;)""!==n[r]&&((e=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),i[e[0]]=e[1]);return i},P=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}p()(e,t);var n=e.prototype;return n.push=function(t){var e,n,i=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce(function(e,n){var i=n(t);return i===t?e:e.concat([i])},[t]).forEach(function(t){for(var r=0;r0&&(a.duration=t.duration),0===t.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=s},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:Object(x.a)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(i.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,u=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){n={},t.uri&&(n.uri=t.uri),t.byterange&&(n.byterange=t.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=s,this.manifest.mediaGroups=this.manifest.mediaGroups||o,t.attributes?(a.attributes||(a.attributes={}),c()(a.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||o,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var n=this.manifest.mediaGroups[t.attributes.TYPE];n[t.attributes["GROUP-ID"]]=n[t.attributes["GROUP-ID"]]||{},e=n[t.attributes["GROUP-ID"]],(d={default:/yes/i.test(t.attributes.DEFAULT)}).default?d.autoselect=!0:d.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(d.language=t.attributes.LANGUAGE),t.attributes.URI&&(d.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(d.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(d.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(d.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=d}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){u+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(s.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),a.dateTimeString=t.dateTimeString,a.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,R.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=t.data},"cue-out-cont":function(){a.cueOutCont=t.data},"cue-in":function(){a.cueIn=t.data},skip:function(){this.manifest.skip=H(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;A=!0;var n=this.manifest.segments.length,i=H(t.attributes);a.parts=a.parts||[],a.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=h),h=i.byterange.offset+i.byterange.length);var r=a.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(t,n){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var e=this.manifest.serverControl=H(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),R.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,n=H(t.attributes),i=n.type&&"PART"===n.type;a.preloadHints=a.preloadHints||[],a.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?h:0,i&&(h=n.byterange.offset+n.byterange.length)));var r=a.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+e,t.attributes,["TYPE","URI"]),n.type)for(var s=0;s=0&&(f.minimumUpdatePeriod=1e3*u),e&&(f.locations=e),"dynamic"===A&&(f.suggestedPresentationDelay=o);var p=0===f.playlists.length;return c.length&&(f.mediaGroups.AUDIO.audio=function(t,e,n){var i;void 0===e&&(e={}),void 0===n&&(n=!1);var r=t.reduce(function(t,r){var s=r.attributes.role&&r.attributes.role.value||"",a=r.attributes.lang||"",A=r.attributes.label||"main";if(a&&!r.attributes.label){var o=s?" ("+s+")":"";A=""+r.attributes.lang+o}t[A]||(t[A]={language:a,autoselect:!0,default:"main"===s,playlists:[],uri:""});var u=vt(function(t,e){var n,i=t.attributes,r=t.segments,s=t.sidx,a={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:r,mediaSequence:r.length?r[0].number:1};return i.contentProtection&&(a.contentProtection=i.contentProtection),s&&(a.sidx=s),e&&(a.attributes.AUDIO="audio",a.attributes.SUBTITLES="subs"),a}(r,n),e);return t[A].playlists.push(u),void 0===i&&"main"===s&&((i=r).default=!0),t},{});i||(r[Object.keys(r)[0]].default=!0);return r}(c,n,p)),h.length&&(f.mediaGroups.SUBTITLES.subs=function(t,e){return void 0===e&&(e={}),t.reduce(function(t,n){var i=n.attributes.lang||"text";return t[i]||(t[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),t[i].playlists.push(vt(function(t){var e,n=t.attributes,i=t.segments;void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var r=((e={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,e);return n.codecs&&(r.CODECS=n.codecs),{attributes:r,uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1}}(n),e)),t},{})}(h,n)),d.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=d.reduce(function(t,e){return e?(e.forEach(function(e){var n=e.channel,i=e.language;t[i]={autoselect:!1,default:!1,instreamId:n,language:i},e.hasOwnProperty("aspectRatio")&&(t[i].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[i].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[i]["3D"]=e["3D"])}),t):t},{})),f},_t=function(t,e,n){var i=t.NOW,r=t.clientOffset,s=t.availabilityStartTime,a=t.timescale,A=void 0===a?1:a,o=t.start,u=void 0===o?0:o,l=t.minimumUpdatePeriod,c=(i+r)/1e3+(void 0===l?0:l)-(s+u);return Math.ceil((c*A-e)/n)},Tt=function(t,e){for(var n=t.type,i=void 0===n?"static":n,r=t.minimumUpdatePeriod,s=void 0===r?0:r,a=t.media,A=void 0===a?"":a,o=t.sourceDuration,u=t.timescale,l=void 0===u?1:u,c=t.startNumber,h=void 0===c?1:c,d=t.periodIndex,f=[],p=-1,g=0;gp&&(p=B);var b=void 0;if(y<0){var w=g+1;b=w===e.length?"dynamic"===i&&s>0&&A.indexOf("$Number$")>0?_t(t,p,v):(o*l-p)/v:(e[w].t-p)/v}else b=y+1;for(var C=h+f.length+b,_=h+f.length;_=r?s:""+new Array(r-s.length+1).join("0")+s)}}(e))},kt=function(t,e){var n={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,r=void 0===i?{sourceURL:"",range:""}:i,s=lt({baseUrl:t.baseUrl,source:St(r.sourceURL,n),range:r.range});return function(t,e){return t.duration||e?t.duration?dt(t):Tt(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodIndex}]}(t,e).map(function(e){n.Number=e.number,n.Time=e.time;var i=St(t.media||"",n),r={uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:I(t.baseUrl||"",i),map:s,number:e.number};return t.presentationTimeOffset&&(r.presentationTimeOffset=t.presentationTimeOffset),r})},Ut=function(t,e){var n=t.duration,i=t.segmentUrls,r=void 0===i?[]:i;if(!n&&!e||n&&e)throw new Error(ot);var s,a=r.map(function(e){return function(t,e){var n=t.baseUrl,i=t.initialization,r=void 0===i?{}:i,s=lt({baseUrl:n,source:r.sourceURL,range:r.range}),a=lt({baseUrl:n,source:e.media,range:e.mediaRange});return a.map=s,a}(t,e)});return n&&(s=dt(t)),e&&(s=Tt(t,e)),s.map(function(t,e){if(a[e]){var n=a[e];return n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n}}).filter(function(t){return t})},It=function(t){var e,n,i=t.attributes,r=t.segmentInfo;r.template?(n=kt,e=et(i,r.template),r.template.presentationTimeOffset&&(e.presentationTimeOffset=r.template.presentationTimeOffset/r.template.timescale)):r.base?(n=ft,e=et(i,r.base)):r.list&&(n=Ut,e=et(i,r.list));var s={attributes:i};if(!n)return s;var a=n(e,r.timeline);if(e.duration){var A=e,o=A.duration,u=A.timescale,l=void 0===u?1:u;e.duration=o/l}else a.length?e.duration=a.reduce(function(t,e){return Math.max(t,Math.ceil(e.duration))},0):e.duration=0;return s.attributes=e,s.segments=a,r.base&&e.indexRange&&(s.sidx=a[0],s.segments=[]),s},Ft=function(t,e){return it(t.childNodes).filter(function(t){return t.tagName===e})},xt=function(t){return t.textContent.trim()},Qt=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var n=e.slice(1),i=n[0],r=n[1],s=n[2],a=n[3],A=n[4],o=n[5];return 31536e3*parseFloat(i||0)+2592e3*parseFloat(r||0)+86400*parseFloat(s||0)+3600*parseFloat(a||0)+60*parseFloat(A||0)+parseFloat(o||0)},Lt={mediaPresentationDuration:function(t){return Qt(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return Qt(t)},suggestedPresentationDelay:function(t){return Qt(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return Qt(t)},start:function(t){return Qt(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?Qt(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},Ot=function(t){return t&&t.attributes?it(t.attributes).reduce(function(t,e){var n=Lt[e.name]||Lt.DEFAULT;return t[e.name]=n(e.value),t},{}):{}},Dt={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},Pt=function(t,e){return e.length?nt(t.map(function(t){return e.map(function(e){return I(t,xt(e))})})):t},Ht=function(t){var e=Ft(t,"SegmentTemplate")[0],n=Ft(t,"SegmentList")[0],i=n&&Ft(n,"SegmentURL").map(function(t){return et({tag:"SegmentURL"},Ot(t))}),r=Ft(t,"SegmentBase")[0],s=n||e,a=s&&Ft(s,"SegmentTimeline")[0],A=n||r||e,o=A&&Ft(A,"Initialization")[0],u=e&&Ot(e);u&&o?u.initialization=o&&Ot(o):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var l={template:u,timeline:a&&Ft(a,"S").map(function(t){return Ot(t)}),list:n&&et(Ot(n),{segmentUrls:i,initialization:Ot(o)}),base:r&&et(Ot(r),{initialization:Ot(o)})};return Object.keys(l).forEach(function(t){l[t]||delete l[t]}),l},Rt=function(t,e,n){return function(i){var r,s=Ot(i),a=Pt(e,Ft(i,"BaseURL")),A=Ft(i,"Role")[0],o={role:Ot(A)},u=et(t,s,o),l=Ft(i,"Accessibility")[0],c="urn:scte:dash:cc:cea-608:2015"===(r=Ot(l)).schemeIdUri?r.value.split(";").map(function(t){var e,n;if(n=t,/^CC\d=/.test(t)){var i=t.split("=");e=i[0],n=i[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:n}}):"urn:scte:dash:cc:cea-708:2015"===r.schemeIdUri?r.value.split(";").map(function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var n=t.split("="),i=n[0],r=n[1],s=void 0===r?"":r;e.channel=i,e.language=t,s.split(",").forEach(function(t){var n=t.split(":"),i=n[0],r=n[1];"lang"===i?e.language=r:"er"===i?e.easyReader=Number(r):"war"===i?e.aspectRatio=Number(r):"3D"===i&&(e["3D"]=Number(r))})}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e}):void 0;c&&(u=et(u,{captionServices:c}));var h=Ft(i,"Label")[0];if(h&&h.childNodes.length){var d=h.childNodes[0].nodeValue.trim();u=et(u,{label:d})}var f=Ft(i,"ContentProtection").reduce(function(t,e){var n=Ot(e),i=Dt[n.schemeIdUri];if(i){t[i]={attributes:n};var r=Ft(e,"cenc:pssh")[0];if(r){var s=xt(r),a=s&&Object(x.a)(s);t[i].pssh=a}}return t},{});Object.keys(f).length&&(u=et(u,{contentProtection:f}));var p=Ht(i),g=Ft(i,"Representation"),m=et(n,p);return nt(g.map(function(t,e,n){return function(i){var r=Ft(i,"BaseURL"),s=Pt(e,r),a=et(t,Ot(i)),A=Ht(i);return s.map(function(t){return{segmentInfo:et(n,A),attributes:et(a,{baseUrl:t})}})}}(u,a,m)))}},Mt=function(t,e){void 0===e&&(e={});var n=e,i=n.manifestUri,r=void 0===i?"":i,s=n.NOW,a=void 0===s?Date.now():s,o=n.clientOffset,u=void 0===o?0:o,l=Ft(t,"Period");if(!l.length)throw new Error(rt);var c=Ft(t,"Location"),h=Ot(t),d=Pt([r],Ft(t,"BaseURL"));return h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=a,h.clientOffset=u,c.length&&(h.locations=c.map(xt)),{locations:h.locations,representationInfo:nt(l.map(function(t,e){return function(n,i){var r=Pt(e,Ft(n,"BaseURL")),s=Ot(n),a=parseInt(s.id,10),o=A.a.isNaN(a)?i:a,u=et(t,{periodIndex:o}),l=Ft(n,"AdaptationSet"),c=Ht(n);return nt(l.map(Rt(u,r,c)))}}(h,d)))}},Nt=function(t){if(""===t)throw new Error(st);var e,n,i=new Z.DOMParser;try{n=(e=i.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(t){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(at);return n},Kt=function(t,e){void 0===e&&(e={});var n=Mt(Nt(t),e),i=n.representationInfo.map(It);return Ct(i,n.locations,e.sidxMapping)},jt=function(t){return function(t){var e=Ft(t,"UTCTiming")[0];if(!e)return null;var n=Ot(e);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(ut)}return n}(Nt(t))},Vt=n("GlnR"),Gt=n.n(Vt),$t=function(t){return t instanceof Uint8Array?t:(Array.isArray(t)||(e=t,ArrayBuffer.isView(e))||t instanceof ArrayBuffer||(t="number"!=typeof t||"number"==typeof t&&t!=t?0:[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0));var e},Wt=A.a.BigInt||Number,zt=[Wt("0x1"),Wt("0x100"),Wt("0x10000"),Wt("0x1000000"),Wt("0x100000000"),Wt("0x10000000000"),Wt("0x1000000000000"),Wt("0x100000000000000"),Wt("0x10000000000000000")],Xt=(i=new Uint16Array([65484]),255===(r=new Uint8Array(i.buffer,i.byteOffset,i.byteLength))[0]||r[0],function(t,e){var n=void 0===e?{}:e,i=n.signed,r=void 0!==i&&i,s=n.le,a=void 0!==s&&s;t=$t(t);var A=a?"reduce":"reduceRight",o=(t[A]?t[A]:Array.prototype[A]).call(t,function(e,n,i){var r=a?i:Math.abs(i+1-t.length);return e+Wt(n)*zt[r]},Wt(0));if(r){var u=zt[t.length]/Wt(2)-Wt(1);(o=Wt(o))>u&&(o-=u,o-=u,o-=Wt(2))}return Number(o)}),qt=function(t,e){var n=(void 0===e?{}:e).le,i=void 0!==n&&n;("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&t!=t)&&(t=0),t=Wt(t);for(var r,s=(r=t,Math.ceil(function(t){return t.toString(2).length}(r)/8)),a=new Uint8Array(new ArrayBuffer(s)),A=0;A=e.length&&o.call(e,function(e,n){return e===(A[n]?A[n]&t[s+n]:t[s+n])})},te=$t([73,68,51]),ee=function t(e,n){return void 0===n&&(n=0),(e=$t(e)).length-n<10||!Zt(e,te,{offset:n})?n:(n+=function(t,e){void 0===e&&(e=0);var n=(t=$t(t))[e+5],i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&n)>>4?i+20:i+10}(e,n),t(e,n))},ne=(new Uint8Array([79,112,117,115,72,101,97,100]),function(t){return"string"==typeof t?Jt(t):t}),ie=function(t){t=$t(t);for(var e=[],n=0;t.length>n;){var i=t[n],r=0,a=0,A=t[++a];for(a++;128&A;)r=(127&A)<<7,A=t[a],a++;r+=127&A;for(var o=0;o>>0,A=e.subarray(s+4,s+8);if(0===a)break;var o=s+a;if(o>e.length){if(i)break;o=e.length}var u=e.subarray(s+8,o);Zt(A,n[0])&&(1===n.length?r.push(u):r.push.apply(r,t(u,n.slice(1),i))),s=o}return r},se={EBML:$t([26,69,223,163]),DocType:$t([66,130]),Segment:$t([24,83,128,103]),SegmentInfo:$t([21,73,169,102]),Tracks:$t([22,84,174,107]),Track:$t([174]),TrackNumber:$t([215]),DefaultDuration:$t([35,227,131]),TrackEntry:$t([174]),TrackType:$t([131]),FlagDefault:$t([136]),CodecID:$t([134]),CodecPrivate:$t([99,162]),VideoTrack:$t([224]),AudioTrack:$t([225]),Cluster:$t([31,67,182,117]),Timestamp:$t([231]),TimestampScale:$t([42,215,177]),BlockGroup:$t([160]),BlockDuration:$t([155]),Block:$t([161]),SimpleBlock:$t([163])},ae=[128,64,32,16,8,4,2,1],Ae=function(t,e,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=function(t){for(var e=1,n=0;n=n.length)return n.length;var r=Ae(n,i,!1);if(Zt(e.bytes,r.bytes))return i;var s=Ae(n,i+r.length);return t(e,n,i+s.length+s.value+r.length)},le=function t(e,n){n=function(t){return Array.isArray(t)?t.map(function(t){return oe(t)}):[oe(t)]}(n),e=$t(e);var i=[];if(!n.length)return i;for(var r=0;re.length?e.length:A+a.value,u=e.subarray(A,o);Zt(n[0],s.bytes)&&(1===n.length?i.push(u):i=i.concat(t(u,n.slice(1)))),r+=s.length+a.length+u.length}return i},ce=$t([0,0,0,1]),he=$t([0,0,1]),de=$t([0,0,3]),fe=function(t){for(var e=[],n=1;n>1&63),-1!==n.indexOf(o)&&(r=s+A),s+=A+("h264"===e?1:2)}else s++}return t.subarray(0,0)},ge={webm:$t([119,101,98,109]),matroska:$t([109,97,116,114,111,115,107,97]),flac:$t([102,76,97,67]),ogg:$t([79,103,103,83]),ac3:$t([11,119]),riff:$t([82,73,70,70]),avi:$t([65,86,73]),wav:$t([87,65,86,69]),"3gp":$t([102,116,121,112,51,103]),mp4:$t([102,116,121,112]),fmp4:$t([115,116,121,112]),mov:$t([102,116,121,112,113,116]),moov:$t([109,111,111,118]),moof:$t([109,111,111,102])},me={aac:function(t){var e=ee(t);return Zt(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=ee(t);return Zt(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=le(t,[se.EBML,se.DocType])[0];return Zt(e,ge.webm)},mkv:function(t){var e=le(t,[se.EBML,se.DocType])[0];return Zt(e,ge.matroska)},mp4:function(t){return!me["3gp"](t)&&!me.mov(t)&&(!(!Zt(t,ge.mp4,{offset:4})&&!Zt(t,ge.fmp4,{offset:4}))||(!(!Zt(t,ge.moof,{offset:4})&&!Zt(t,ge.moov,{offset:4}))||void 0))},mov:function(t){return Zt(t,ge.mov,{offset:4})},"3gp":function(t){return Zt(t,ge["3gp"],{offset:4})},ac3:function(t){var e=ee(t);return Zt(t,ge.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+1880?o:0)}if(A.a.console){var u=A.a.console[n];u||"debug"!==n||(u=A.a.console.info||A.a.console.log),u&&s&&a.test(n)&&u[Array.isArray(r)?"apply":"call"](A.a.console,r)}}};var Fe=function t(e){var n,i="info",r=function(){for(var t=arguments.length,e=new Array(t),r=0;r1?e-1:0),i=1;i=0)throw new Error("class has illegal whitespace characters")}function dn(){return u.a===A.a.document}function fn(t){return Pe(t)&&1===t.nodeType}function pn(){try{return A.a.parent!==A.a.self}catch(t){return!0}}function gn(t){return function(e,n){if(!cn(e))return u.a[t](null);cn(n)&&(n=u.a.querySelector(n));var i=fn(n)?n:u.a;return i[t]&&i[t](e)}}function mn(t,e,n,i){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===n&&(n={});var r=u.a.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(Fe.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+t+" to "+n+"."),r.setAttribute(t,n)):"textContent"===t?vn(r,n):r[t]===n&&"tabIndex"!==t||(r[t]=n)}),Object.getOwnPropertyNames(n).forEach(function(t){r.setAttribute(t,n[t])}),i&&Pn(r,i),r}function vn(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function yn(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function Bn(t,e){return hn(e),t.classList?t.classList.contains(e):(n=e,new RegExp("(^|\\s)"+n+"($|\\s)")).test(t.className);var n}function bn(t,e){return t.classList?t.classList.add(e):Bn(t,e)||(t.className=(t.className+" "+e).trim()),t}function wn(t,e){return t?(t.classList?t.classList.remove(e):(hn(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t):(Fe.warn("removeClass was called with an element that doesn't exist"),null)}function Cn(t,e,n){var i=Bn(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!i),n!==i)return n?bn(t,e):wn(t,e),t}function _n(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var i=e[n];null===i||void 0===i||!1===i?t.removeAttribute(n):t.setAttribute(n,!0===i?"":i)})}function Tn(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var i=t.attributes,r=i.length-1;r>=0;r--){var s=i[r].name,a=i[r].value;"boolean"!=typeof t[s]&&-1===n.indexOf(","+s+",")||(a=null!==a),e[s]=a}return e}function En(t,e){return t.getAttribute(e)}function Sn(t,e,n){t.setAttribute(e,n)}function kn(t,e){t.removeAttribute(e)}function Un(){u.a.body.focus(),u.a.onselectstart=function(){return!1}}function In(){u.a.onselectstart=function(){return!0}}function Fn(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n.height||(n.height=parseFloat(Re(t,"height"))),n.width||(n.width=parseFloat(Re(t,"width"))),n}}function xn(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};for(var e=t.offsetWidth,n=t.offsetHeight,i=0,r=0;t.offsetParent&&t!==u.a[_e.fullscreenElement];)i+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{left:i,top:r,width:e,height:n}}function Qn(t,e){var n={x:0,y:0};if(on)for(var i=t;i&&"html"!==i.nodeName.toLowerCase();){var r=Re(i,"transform");if(/^matrix/.test(r)){var s=r.slice(7,-1).split(/,\s/).map(Number);n.x+=s[4],n.y+=s[5]}else if(/^matrix3d/.test(r)){var a=r.slice(9,-1).split(/,\s/).map(Number);n.x+=a[12],n.y+=a[13]}i=i.parentNode}var A={},o=xn(e.target),u=xn(t),l=u.width,c=u.height,h=e.offsetY-(u.top-o.top),d=e.offsetX-(u.left-o.left);return e.changedTouches&&(d=e.changedTouches[0].pageX-u.left,h=e.changedTouches[0].pageY+u.top,on&&(d-=n.x,h-=n.y)),A.y=1-Math.max(0,Math.min(1,h/c)),A.x=Math.max(0,Math.min(1,d/l)),A}function Ln(t){return Pe(t)&&3===t.nodeType}function On(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Dn(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),fn(t)||Ln(t)?t:"string"==typeof t&&/\S/.test(t)?u.a.createTextNode(t):void 0}).filter(function(t){return t})}function Pn(t,e){return Dn(e).forEach(function(e){return t.appendChild(e)}),t}function Hn(t,e){return Pn(On(t),e)}function Rn(t){return void 0===t.button&&void 0===t.buttons||(0===t.button&&void 0===t.buttons||("mouseup"===t.type&&0===t.button&&0===t.buttons||0===t.button&&1===t.buttons))}var Mn,Nn=gn("querySelector"),Kn=gn("querySelectorAll"),jn=Object.freeze({__proto__:null,isReal:dn,isEl:fn,isInFrame:pn,createEl:mn,textContent:vn,prependTo:yn,hasClass:Bn,addClass:bn,removeClass:wn,toggleClass:Cn,setAttributes:_n,getAttributes:Tn,getAttribute:En,setAttribute:Sn,removeAttribute:kn,blockTextSelection:Un,unblockTextSelection:In,getBoundingClientRect:Fn,findPosition:xn,getPointerPosition:Qn,isTextNode:Ln,emptyEl:On,normalizeContent:Dn,appendContent:Pn,insertContent:Hn,isSingleLeftClick:Rn,$:Nn,$$:Kn}),Vn=!1,Gn=function(){if(!1!==Mn.options.autoSetup){var t=Array.prototype.slice.call(u.a.getElementsByTagName("video")),e=Array.prototype.slice.call(u.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(u.a.getElementsByTagName("video-js")),i=t.concat(e,n);if(i&&i.length>0)for(var r=0,s=i.length;r-1&&(r={passive:!0}),t.addEventListener(e,i.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,i.dispatcher)}function Ai(t,e,n){if(ti.has(t)){var i=ti.get(t);if(i.handlers){if(Array.isArray(e))return ni(Ai,t,e,n);var r=function(t,e){i.handlers[e]=[],ei(t,e)};if(void 0!==e){var s=i.handlers[e];if(s)if(n){if(n.guid)for(var a=0;a=e&&(t.apply(void 0,arguments),n=i)}},gi=function(t,e,n,i){var r;void 0===i&&(i=A.a);var s=function(){var s=this,a=arguments,A=function(){r=null,A=null,n||t.apply(s,a)};!r&&n&&t.apply(s,a),i.clearTimeout(r),r=i.setTimeout(A,e)};return s.cancel=function(){i.clearTimeout(r),r=null},s},mi=function(){};mi.prototype.allowedEvents_={},mi.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},ai(this,t,e),this.addEventListener=n},mi.prototype.addEventListener=mi.prototype.on,mi.prototype.off=function(t,e){Ai(this,t,e)},mi.prototype.removeEventListener=mi.prototype.off,mi.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},ui(this,t,e),this.addEventListener=n},mi.prototype.any=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},li(this,t,e),this.addEventListener=n},mi.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=ii(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),oi(this,t)},mi.prototype.dispatchEvent=mi.prototype.trigger,mi.prototype.queueTrigger=function(t){var e=this;ci||(ci=new Map);var n=t.type||t,i=ci.get(this);i||(i=new Map,ci.set(this,i));var r=i.get(n);i.delete(n),A.a.clearTimeout(r);var s=A.a.setTimeout(function(){0===i.size&&(i=null,ci.delete(e)),e.trigger(t)},0);i.set(n,s)};var vi=function(t){return"function"==typeof t.name?t.name():"string"==typeof t.name?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t},yi=function(t){return t instanceof mi||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]})},Bi=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},bi=function(t,e,n){if(!t||!t.nodeName&&!yi(t))throw new Error("Invalid target for "+vi(e)+"#"+n+"; must be a DOM node or evented object.")},wi=function(t,e,n){if(!Bi(t))throw new Error("Invalid event type for "+vi(e)+"#"+n+"; must be a non-empty string or array.")},Ci=function(t,e,n){if("function"!=typeof t)throw new Error("Invalid listener for "+vi(e)+"#"+n+"; must be a function.")},_i=function(t,e,n){var i,r,s,a=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return a?(i=t.eventBusEl_,e.length>=3&&e.shift(),r=e[0],s=e[1]):(i=e[0],r=e[1],s=e[2]),bi(i,t,n),wi(r,t,n),Ci(s,t,n),{isTargetingSelf:a,target:i,type:r,listener:s=fi(t,s)}},Ti=function(t,e,n,i){bi(t,t,e),t.nodeName?hi[e](t,n,i):t[e](n,i)},Ei={on:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),ti.has(this.el_)&&ti.delete(this.el_),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(t){return t?(this.options_=xi(this.options_,t),this.options_):this.options_},e.el=function(){return this.el_},e.createEl=function(t,e,n){return mn(t,e,n)},e.localize=function(t,e,n){void 0===n&&(n=t);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),s=r&&r[i],a=i&&i.split("-")[0],A=r&&r[a],o=n;return s&&s[t]?o=s[t]:A&&A[t]&&(o=A[t]),e&&(o=o.replace(/\{(\d+)\}/g,function(t,n){var i=e[n-1],r=i;return void 0===i&&(r=t),r})),o},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(t){return this.childIndex_[t]},e.getChild=function(t){if(t)return this.childNameIndex_[t]},e.getDescendant=function(){for(var t=arguments.length,e=new Array(t),n=0;n=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[Fi(t.name())]=null,this.childNameIndex_[Ii(t.name())]=null;var i=t.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},e.initChildren=function(){var e=this,n=this.options_.children;if(n){var i,r=this.options_,s=t.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(t){return!i.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var i,r;return"string"==typeof t?r=n[i=t]||e.options_[i]||{}:(i=t.name,r=t),{name:i,opts:r}}).filter(function(e){var n=t.getComponent(e.opts.componentClass||Fi(e.name));return n&&!s.isTech(n)}).forEach(function(t){var n=t.name,i=t.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=e.options_.playerOptions;var s=e.addChild(n,i);s&&(e[n]=s)}})}},e.buildCSSClass=function(){return""},e.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},e.$=function(t,e){return Nn(t,e||this.contentEl())},e.$$=function(t,e){return Kn(t,e||this.contentEl())},e.hasClass=function(t){return Bn(this.el_,t)},e.addClass=function(t){bn(this.el_,t)},e.removeClass=function(t){wn(this.el_,t)},e.toggleClass=function(t,e){Cn(this.el_,t,e)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(t){return En(this.el_,t)},e.setAttribute=function(t,e){Sn(this.el_,t,e)},e.removeAttribute=function(t){kn(this.el_,t)},e.width=function(t,e){return this.dimension("width",t,e)},e.height=function(t,e){return this.dimension("height",t,e)},e.dimensions=function(t,e){this.width(t,!0),this.height(e)},e.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[t],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+Fi(t)],10)},e.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if(e=Re(this.el_,t),0===(e=parseFloat(e))||isNaN(e)){var n="offset"+Fi(t);e=this.el_[n]}return e},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(t){this.player_&&(t.stopPropagation(),this.player_.handleKeyDown(t))},e.handleKeyPress=function(t){this.handleKeyDown(t)},e.emitTapEvents=function(){var t,e=0,n=null;this.on("touchstart",function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e=A.a.performance.now(),t=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)t=!1;else if(n){var i=e.touches[0].pageX-n.pageX,r=e.touches[0].pageY-n.pageY;Math.sqrt(i*i+r*r)>10&&(t=!1)}});var i=function(){t=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(i){(n=null,!0===t)&&(A.a.performance.now()-e<200&&(i.preventDefault(),this.trigger("tap")))})},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=fi(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.setTimeout=function(t,e){var n,i=this;return t=fi(this,t),this.clearTimersOnDispose_(),n=A.a.setTimeout(function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),t()},e),this.setTimeoutIds_.add(n),n},e.clearTimeout=function(t){return this.setTimeoutIds_.has(t)&&(this.setTimeoutIds_.delete(t),A.a.clearTimeout(t)),t},e.setInterval=function(t,e){t=fi(this,t),this.clearTimersOnDispose_();var n=A.a.setInterval(t,e);return this.setIntervalIds_.add(n),n},e.clearInterval=function(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),A.a.clearInterval(t)),t},e.requestAnimationFrame=function(t){var e,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),t=fi(this,t),e=A.a.requestAnimationFrame(function(){n.rafIds_.has(e)&&n.rafIds_.delete(e),t()}),this.rafIds_.add(e),e):this.setTimeout(t,1e3/60)},e.requestNamedAnimationFrame=function(t,e){var n=this;if(!this.namedRafs_.has(t)){this.clearTimersOnDispose_(),e=fi(this,e);var i=this.requestAnimationFrame(function(){e(),n.namedRafs_.has(t)&&n.namedRafs_.delete(t)});return this.namedRafs_.set(t,i),t}},e.cancelNamedAnimationFrame=function(t){this.namedRafs_.has(t)&&(this.cancelAnimationFrame(this.namedRafs_.get(t)),this.namedRafs_.delete(t))},e.cancelAnimationFrame=function(t){return this.supportsRaf_?(this.rafIds_.has(t)&&(this.rafIds_.delete(t),A.a.cancelAnimationFrame(t)),t):this.clearTimeout(t)},e.clearTimersOnDispose_=function(){var t=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(e){var n=e[0],i=e[1];t[n].forEach(function(e,n){return t[i](n)})}),t.clearingTimersOnDispose_=!1}))},t.registerComponent=function(e,n){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var i,r=t.getComponent("Tech"),s=r&&r.isTech(n),a=t===n||t.prototype.isPrototypeOf(n.prototype);if(s||!a)throw i=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+i+".");e=Fi(e),t.components_||(t.components_={});var A=t.getComponent("Player");if("Player"===e&&A&&A.players){var o=A.players,u=Object.keys(o);if(o&&u.length>0&&u.map(function(t){return o[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=n,t.components_[Ii(e)]=n,n},t.getComponent=function(e){if(e&&t.components_)return t.components_[e]},t}();function Hi(t,e,n,i){return function(t,e,n){if("number"!=typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}(t,i,n.length-1),n[i][e]}function Ri(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:Hi.bind(null,"start",0,t),end:Hi.bind(null,"end",1,t)}}function Mi(t,e){return Array.isArray(t)?Ri(t):void 0===t||void 0===e?Ri():Ri([[t,e]])}function Ni(t,e){var n,i,r=0;if(!e)return 0;t&&t.length||(t=Mi(0,0));for(var s=0;se&&(i=e),r+=i-n;return r/e}function Ki(t){if(t instanceof Ki)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:Pe(t)&&("number"==typeof t.code&&(this.code=t.code),De(this,t)),this.message||(this.message=Ki.defaultMessages[this.code]||"")}Pi.prototype.supportsRaf_="function"==typeof A.a.requestAnimationFrame&&"function"==typeof A.a.cancelAnimationFrame,Pi.registerComponent("Component",Pi),Ki.prototype.code=0,Ki.prototype.message="",Ki.prototype.status=null,Ki.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ki.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var ji=0;ji=0;i--)if(e[i].enabled){Zi(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,n}p()(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.enabled&&Zi(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){n.changing_||(n.changing_=!0,Zi(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Yi),er=function(t,e){for(var n=0;n=0;i--)if(e[i].selected){er(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,Object.defineProperty(d()(n),"selectedIndex",{get:function(){for(var t=0;t0&&(A.a.console&&A.a.console.groupCollapsed&&A.a.console.groupCollapsed("Text Track parsing errors for "+e.src),i.forEach(function(t){return Fe.error(t)}),A.a.console&&A.a.console.groupEnd&&A.a.console.groupEnd()),n.flush()},mr=function(t,e){var n={uri:t},i=fr(t);i&&(n.cors=i);var r="use-credentials"===e.tech_.crossOrigin();r&&(n.withCredentials=r),b()(n,fi(this,function(t,n,i){if(t)return Fe.error(t,n);e.loaded_=!0,"function"!=typeof A.a.WebVTT?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],function(t){if("vttjserror"!==t.type)return gr(i,e);Fe.error("vttjs failed to load, stopping trying to process "+e.src)}):gr(i,e)}))},vr=function(t){function e(e){var n;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var i=xi(e,{kind:or[e.kind]||"subtitles",language:e.language||e.srclang||""}),r=ur[i.mode]||"disabled",s=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=t.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new sr(n.cues_),A=new sr(n.activeCues_),o=!1,u=fi(d()(n),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1))});return n.tech_.one("dispose",function(){n.tech_.off("timeupdate",u)}),"disabled"!==r&&n.tech_.on("timeupdate",u),Object.defineProperties(d()(n),{default:{get:function(){return s},set:function(){}},mode:{get:function(){return r},set:function(t){ur[t]&&r!==t&&(r=t,this.preload_||"disabled"===r||0!==this.cues.length||mr(this.src,this),this.tech_.off("timeupdate",u),"disabled"!==r&&this.tech_.on("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return A;for(var t=this.tech_.currentTime(),e=[],n=0,i=this.cues.length;n=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(o=!1,e.length!==this.activeCues_.length)o=!0;else for(var s=0;s0)return void this.trigger("vttjsloaded");var e=u.a.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){e.onload=null,e.onerror=null}),A.a.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var t=this,e=this.textTracks(),n=this.remoteTextTracks(),i=function(t){return e.addTrack(t.track)},r=function(t){return e.removeTrack(t.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var s=function(){return t.trigger("texttrackchange")},a=function(){s();for(var t=0;t=0;r--){var s=t[r];s[e]&&s[e](i,n)}}(t,n,A,a),A}var Qr={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Lr={setCurrentTime:1,setMuted:1,setVolume:1},Or={play:1,pause:1};function Dr(t){return function(e,n){return e===Ir?Ir:n[t]?n[t](e):e}}var Pr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Hr=function(t){void 0===t&&(t="");var e=dr(t);return Pr[e.toLowerCase()]||""};function Rr(t){if(!t.type){var e=Hr(t.src);e&&(t.type=e)}return t}var Mr=function(t){function e(e,n,i){var r,s=xi({createEl:!1},n);if(r=t.call(this,e,s,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)e.src(n.playerOptions.sources);else for(var a=0,A=n.playerOptions.techOrder;a