412a17da96378fd44c4ccab76e2ea667aed882cd37534b80b3b183992bcd69fa

Source Code:

!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(w,t){var h=[],f=w.document,u=h.slice,v=h.concat,a=h.push,i=h.indexOf,n={},e=n.toString,y=n.hasOwnProperty,g={},r="1.12.4",k=function(t,e){return new k.fn.init(t,e)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,s=/^-ms-/,l=/-([\da-z])/gi,c=function(t,e){return e.toUpperCase()};function p(t){var e=!!t&&"length"in t&&t.length,n=k.type(t);return"function"!==n&&!k.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}k.fn=k.prototype={jquery:r,constructor:k,selector:"",length:0,toArray:function(){return u.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:u.call(this)},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return k.each(this,t)},map:function(n){return this.pushStack(k.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:h.sort,splice:h.splice},k.extend=k.fn.extend=function(){var t,e,n,r,i,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||k.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(i=arguments[a]))for(r in i)t=s[r],s!==(n=i[r])&&(c&&n&&(k.isPlainObject(n)||(e=k.isArray(n)))?(e?(e=!1,o=t&&k.isArray(t)?t:[]):o=t&&k.isPlainObject(t)?t:{},s[r]=k.extend(c,o,n)):void 0!==n&&(s[r]=n));return s},k.extend({expando:"jQuery"+(r+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===k.type(t)},isArray:Array.isArray||function(t){return"array"===k.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!k.isArray(t)&&0<=e-parseFloat(e)+1},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==k.type(t)||t.nodeType||k.isWindow(t))return!1;try{if(t.constructor&&!y.call(t,"constructor")&&!y.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(!g.ownFirst)for(e in t)return y.call(t,e);for(e in t);return void 0===e||y.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[e.call(t)]||"object":typeof t},globalEval:function(t){t&&k.trim(t)&&(w.execScript||function(t){w.eval.call(w,t)})(t)},camelCase:function(t){return t.replace(s,"ms-").replace(l,c)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,r=0;if(p(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(o,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(p(Object(t))?k.merge(n,"string"==typeof t?[t]:t):a.call(n,t)),n},inArray:function(t,e,n){var r;if(e){if(i)return i.call(e,t,n);for(r=e.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;)t[i++]=e[r++];if(n!=n)for(;void 0!==e[r];)t[i++]=e[r++];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,s=!n;i<o;i++)!e(t[i],i)!==s&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,s=[];if(p(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&s.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&s.push(i);return v.apply([],s)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(i=t[e],e=t,t=i),k.isFunction(t))return n=u.call(arguments,2),(r=function(){return t.apply(e||this,n.concat(u.call(arguments)))}).guid=t.guid=t.guid||k.guid++,r},now:function(){return+new Date},support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=h[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){n["[object "+e+"]"]=e.toLowerCase()});var d=function(n){var t,f,_,o,i,v,h,y,T,l,c,C,w,s,k,g,a,u,m,x="sizzle"+1*new Date,b=n.document,E=0,r=0,p=ot(),d=ot(),S=ot(),j=function(t,e){return t===e&&(c=!0),0},A=1<<31,N={}.hasOwnProperty,e=[],P=e.pop,D=e.push,O=e.push,L=e.slice,M=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",B="\\["+R+"*("+F+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+R+"*\\]",H=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",V=new RegExp(R+"+","g"),q=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),W=new RegExp("^"+R+"*,"+R+"*"),z=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),U=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),$=new RegExp(H),X=new RegExp("^"+F+"$"),Y={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,tt=/'|\\/g,et=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),nt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},rt=function(){C()};try{O.apply(e=L.call(b.childNodes),b.childNodes),e[b.childNodes.length].nodeType}catch(t){O={apply:e.length?function(t,e){D.apply(t,L.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function it(t,e,n,r){var i,o,s,a,l,c,u,h,p=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!r&&((e?e.ownerDocument||e:b)!==w&&C(e),e=e||w,k)){if(11!==d&&(c=Q.exec(t)))if(i=c[1]){if(9===d){if(!(s=e.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(p&&(s=p.getElementById(i))&&m(e,s)&&s.id===i)return n.push(s),n}else{if(c[2])return O.apply(n,e.getElementsByTagName(t)),n;if((i=c[3])&&f.getElementsByClassName&&e.getElementsByClassName)return O.apply(n,e.getElementsByClassName(i)),n}if(f.qsa&&!S[t+" "]&&(!g||!g.test(t))){if(1!==d)p=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(tt,"\\$&"):e.setAttribute("id",a=x),o=(u=v(t)).length,l=X.test(a)?"#"+a:"[id='"+a+"']";o--;)u[o]=l+" "+vt(u[o]);h=u.join(","),p=Z.test(t)&&dt(e.parentNode)||e}if(h)try{return O.apply(n,p.querySelectorAll(h)),n}catch(t){}finally{a===x&&e.removeAttribute("id")}}}return y(t.replace(q,"$1"),e,n,r)}function ot(){var r=[];return function t(e,n){return r.push(e+" ")>_.cacheLength&&delete t[r.shift()],t[e+" "]=n}}function st(t){return t[x]=!0,t}function at(t){var e=w.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var n=t.split("|"),r=n.length;r--;)_.attrHandle[n[r]]=e}function ct(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||A)-(~t.sourceIndex||A);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ut(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ht(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function pt(s){return st(function(o){return o=+o,st(function(t,e){for(var n,r=s([],t.length,o),i=r.length;i--;)t[n=r[i]]&&(t[n]=!(e[n]=t[n]))})})}function dt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=it.support={},i=it.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},C=it.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:b;return r!==w&&9===r.nodeType&&r.documentElement&&(s=(w=r).documentElement,k=!i(w),(n=w.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",rt,!1):n.attachEvent&&n.attachEvent("onunload",rt)),f.attributes=at(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=at(function(t){return t.appendChild(w.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=J.test(w.getElementsByClassName),f.getById=at(function(t){return s.appendChild(t).id=x,!w.getElementsByName||!w.getElementsByName(x).length}),f.getById?(_.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var n=e.getElementById(t);return n?[n]:[]}},_.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var n=t.replace(et,nt);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}}),_.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},_.find.CLASS=f.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&k)return e.getElementsByClassName(t)},a=[],g=[],(f.qsa=J.test(w.querySelectorAll))&&(at(function(t){s.appendChild(t).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+x+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")}),at(function(t){var e=w.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(f.matchesSelector=J.test(u=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&at(function(t){f.disconnectedMatch=u.call(t,"div"),u.call(t,"[s!='']:x"),a.push("!=",H)}),g=g.length&&new RegExp(g.join("|")),a=a.length&&new RegExp(a.join("|")),e=J.test(s.compareDocumentPosition),m=e||J.test(s.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},j=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===n?t===w||t.ownerDocument===b&&m(b,t)?-1:e===w||e.ownerDocument===b&&m(b,e)?1:l?M(l,t)-M(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!i||!o)return t===w?-1:e===w?1:i?-1:o?1:l?M(l,t)-M(l,e):0;if(i===o)return ct(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?ct(s[r],a[r]):s[r]===b?-1:a[r]===b?1:0}),w},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==w&&C(t),e=e.replace(U,"='$1']"),f.matchesSelector&&k&&!S[e+" "]&&(!a||!a.test(e))&&(!g||!g.test(e)))try{var n=u.call(t,e);if(n||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<it(e,w,null,[t]).length},it.contains=function(t,e){return(t.ownerDocument||t)!==w&&C(t),m(t,e)},it.attr=function(t,e){(t.ownerDocument||t)!==w&&C(t);var n=_.attrHandle[e.toLowerCase()],r=n&&N.call(_.attrHandle,e.toLowerCase())?n(t,e,!k):void 0;return void 0!==r?r:f.attributes||!k?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},it.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},it.uniqueSort=function(t){var e,n=[],r=0,i=0;if(c=!f.detectDuplicates,l=!f.sortStable&&t.slice(0),t.sort(j),c){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return l=null,t},o=it.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=o(e);return n},(_=it.selectors={cacheLength:50,createPseudo:st,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||it.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&$.test(n)&&(e=v(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=p[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&p(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(t){var e=it.attr(t,n);return null==e?"!="===r:!r||(e+="","="===r?e===i:"!="===r?e!==i:"^="===r?i&&0===e.indexOf(i):"*="===r?i&&-1<e.indexOf(i):"$="===r?i&&e.slice(-i.length)===i:"~="===r?-1<(" "+e.replace(V," ")+" ").indexOf(i):"|="===r&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,t,e,v,y){var g="nth"!==f.slice(0,3),m="last"!==f.slice(-4),b="of-type"===t;return 1===v&&0===y?function(t){return!!t.parentNode}:function(t,e,n){var r,i,o,s,a,l,c=g!==m?"nextSibling":"previousSibling",u=t.parentNode,h=b&&t.nodeName.toLowerCase(),p=!n&&!b,d=!1;if(u){if(g){for(;c;){for(s=t;s=s[c];)if(b?s.nodeName.toLowerCase()===h:1===s.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[m?u.firstChild:u.lastChild],m&&p){for(d=(a=(r=(i=(o=(s=u)[x]||(s[x]={}))[s.uniqueID]||(o[s.uniqueID]={}))[f]||[])[0]===E&&r[1])&&r[2],s=a&&u.childNodes[a];s=++a&&s&&s[c]||(d=a=0)||l.pop();)if(1===s.nodeType&&++d&&s===t){i[f]=[E,a,d];break}}else if(p&&(d=a=(r=(i=(o=(s=t)[x]||(s[x]={}))[s.uniqueID]||(o[s.uniqueID]={}))[f]||[])[0]===E&&r[1]),!1===d)for(;(s=++a&&s&&s[c]||(d=a=0)||l.pop())&&((b?s.nodeName.toLowerCase()!==h:1!==s.nodeType)||!++d||(p&&((i=(o=s[x]||(s[x]={}))[s.uniqueID]||(o[s.uniqueID]={}))[f]=[E,d]),s!==t)););return(d-=y)===v||d%v==0&&0<=d/v}}},PSEUDO:function(t,o){var e,s=_.pseudos[t]||_.setFilters[t.toLowerCase()]||it.error("unsupported pseudo: "+t);return s[x]?s(o):1<s.length?(e=[t,t,"",o],_.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,e){for(var n,r=s(t,o),i=r.length;i--;)t[n=M(t,r[i])]=!(e[n]=r[i])}):function(t){return s(t,0,e)}):s}},pseudos:{not:st(function(t){var r=[],i=[],a=h(t.replace(q,"$1"));return a[x]?st(function(t,e,n,r){for(var i,o=a(t,null,r,[]),s=t.length;s--;)(i=o[s])&&(t[s]=!(e[s]=i))}):function(t,e,n){return r[0]=t,a(r,null,n,i),r[0]=null,!i.pop()}}),has:st(function(e){return function(t){return 0<it(e,t).length}}),contains:st(function(e){return e=e.replace(et,nt),function(t){return-1<(t.textContent||t.innerText||o(t)).indexOf(e)}}),lang:st(function(n){return X.test(n||"")||it.error("unsupported lang: "+n),n=n.replace(et,nt).toLowerCase(),function(t){var e;do{if(e=k?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===s},focus:function(t){return t===w.activeElement&&(!w.hasFocus||w.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,n){return[n<0?n+e:n]}),even:pt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:pt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:pt(function(t,e,n){for(var r=n<0?n+e:n;0<=--r;)t.push(r);return t}),gt:pt(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[t]=ut(t);for(t in{submit:!0,reset:!0})_.pseudos[t]=ht(t);function ft(){}function vt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function yt(a,t,e){var l=t.dir,c=e&&"parentNode"===l,u=r++;return t.first?function(t,e,n){for(;t=t[l];)if(1===t.nodeType||c)return a(t,e,n)}:function(t,e,n){var r,i,o,s=[E,u];if(n){for(;t=t[l];)if((1===t.nodeType||c)&&a(t,e,n))return!0}else for(;t=t[l];)if(1===t.nodeType||c){if((r=(i=(o=t[x]||(t[x]={}))[t.uniqueID]||(o[t.uniqueID]={}))[l])&&r[0]===E&&r[1]===u)return s[2]=r[2];if((i[l]=s)[2]=a(t,e,n))return!0}}}function gt(i){return 1<i.length?function(t,e,n){for(var r=i.length;r--;)if(!i[r](t,e,n))return!1;return!0}:i[0]}function mt(t,e,n,r,i){for(var o,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,r,i)||(s.push(o),c&&e.push(a)));return s}function bt(d,f,v,y,g,t){return y&&!y[x]&&(y=bt(y)),g&&!g[x]&&(g=bt(g,t)),st(function(t,e,n,r){var i,o,s,a=[],l=[],c=e.length,u=t||function(t,e,n){for(var r=0,i=e.length;r<i;r++)it(t,e[r],n);return n}(f||"*",n.nodeType?[n]:n,[]),h=!d||!t&&f?u:mt(u,a,d,n,r),p=v?g||(t?d:c||y)?[]:e:h;if(v&&v(h,p,n,r),y)for(i=mt(p,l),y(i,[],n,r),o=i.length;o--;)(s=i[o])&&(p[l[o]]=!(h[l[o]]=s));if(t){if(g||d){if(g){for(i=[],o=p.length;o--;)(s=p[o])&&i.push(h[o]=s);g(null,p=[],i,r)}for(o=p.length;o--;)(s=p[o])&&-1<(i=g?M(t,s):a[o])&&(t[i]=!(e[i]=s))}}else p=mt(p===e?p.splice(c,p.length):p),g?g(null,e,p,r):O.apply(e,p)})}function _t(t){for(var i,e,n,r=t.length,o=_.relative[t[0].type],s=o||_.relative[" "],a=o?1:0,l=yt(function(t){return t===i},s,!0),c=yt(function(t){return-1<M(i,t)},s,!0),u=[function(t,e,n){var r=!o&&(n||e!==T)||((i=e).nodeType?l(t,e,n):c(t,e,n));return i=null,r}];a<r;a++)if(e=_.relative[t[a].type])u=[yt(gt(u),e)];else{if((e=_.filter[t[a].type].apply(null,t[a].matches))[x]){for(n=++a;n<r&&!_.relative[t[n].type];n++);return bt(1<a&&gt(u),1<a&&vt(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(q,"$1"),e,a<n&&_t(t.slice(a,n)),n<r&&_t(t=t.slice(n)),n<r&&vt(t))}u.push(e)}return gt(u)}return ft.prototype=_.filters=_.pseudos,_.setFilters=new ft,v=it.tokenize=function(t,e){var n,r,i,o,s,a,l,c=d[t+" "];if(c)return e?0:c.slice(0);for(s=t,a=[],l=_.preFilter;s;){for(o in n&&!(r=W.exec(s))||(r&&(s=s.slice(r[0].length)||s),a.push(i=[])),n=!1,(r=z.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(q," ")}),s=s.slice(n.length)),_.filter)!(r=Y[o].exec(s))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return e?s.length:s?it.error(t):d(t,a).slice(0)},h=it.compile=function(t,e){var n,y,g,m,b,r,i=[],o=[],s=S[t+" "];if(!s){for(e||(e=v(t)),n=e.length;n--;)(s=_t(e[n]))[x]?i.push(s):o.push(s);(s=S(t,(y=o,m=0<(g=i).length,b=0<y.length,r=function(t,e,n,r,i){var o,s,a,l=0,c="0",u=t&&[],h=[],p=T,d=t||b&&_.find.TAG("*",i),f=E+=null==p?1:Math.random()||.1,v=d.length;for(i&&(T=e===w||e||i);c!==v&&null!=(o=d[c]);c++){if(b&&o){for(s=0,e||o.ownerDocument===w||(C(o),n=!k);a=y[s++];)if(a(o,e||w,n)){r.push(o);break}i&&(E=f)}m&&((o=!a&&o)&&l--,t&&u.push(o))}if(l+=c,m&&c!==l){for(s=0;a=g[s++];)a(u,h,e,n);if(t){if(0<l)for(;c--;)u[c]||h[c]||(h[c]=P.call(r));h=mt(h)}O.apply(r,h),i&&!t&&0<h.length&&1<l+g.length&&it.uniqueSort(r)}return i&&(E=f,T=p),u},m?st(r):r))).selector=t}return s},y=it.select=function(t,e,n,r){var i,o,s,a,l,c="function"==typeof t&&t,u=!r&&v(t=c.selector||t);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(s=o[0]).type&&f.getById&&9===e.nodeType&&k&&_.relative[o[1].type]){if(!(e=(_.find.ID(s.matches[0].replace(et,nt),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=Y.needsContext.test(t)?0:o.length;i--&&(s=o[i],!_.relative[a=s.type]);)if((l=_.find[a])&&(r=l(s.matches[0].replace(et,nt),Z.test(o[0].type)&&dt(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&vt(o)))return O.apply(n,r),n;break}}return(c||h(t,u))(r,e,!k,n,!e||Z.test(t)&&dt(e.parentNode)||e),n},f.sortStable=x.split("").sort(j).join("")===x,f.detectDuplicates=!!c,C(),f.sortDetached=at(function(t){return 1&t.compareDocumentPosition(w.createElement("div"))}),at(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||lt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),f.attributes&&at(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||lt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),at(function(t){return null==t.getAttribute("disabled")})||lt(I,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),it}(w);k.find=d,k.expr=d.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=d.uniqueSort,k.text=d.getText,k.isXMLDoc=d.isXML,k.contains=d.contains;var m=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&k(t).is(n))break;r.push(t)}return r},b=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},_=k.expr.match.needsContext,T=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,C=/^.[^:#\[\.,]*$/;function x(t,n,r){if(k.isFunction(n))return k.grep(t,function(t,e){return!!n.call(t,e,t)!==r});if(n.nodeType)return k.grep(t,function(t){return t===n!==r});if("string"==typeof n){if(C.test(n))return k.filter(n,t,r);n=k.filter(n,t)}return k.grep(t,function(t){return-1<k.inArray(t,n)!==r})}k.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?k.find.matchesSelector(r,t)?[r]:[]:k.find.matches(t,k.grep(e,function(t){return 1===t.nodeType}))},k.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(k(t).filter(function(){for(e=0;e<i;e++)if(k.contains(r[e],this))return!0}));for(e=0;e<i;e++)k.find(t,r[e],n);return(n=this.pushStack(1<i?k.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(x(this,t||[],!1))},not:function(t){return this.pushStack(x(this,t||[],!0))},is:function(t){return!!x(this,"string"==typeof t&&_.test(t)?k(t):t||[],!1).length}});var E,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(k.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||E,"string"==typeof t){if(!(r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:S.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:f,!0)),T.test(r[1])&&k.isPlainObject(e))for(r in e)k.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}if((i=f.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return E.find(t);this.length=1,this[0]=i}return this.context=f,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):k.isFunction(t)?void 0!==n.ready?n.ready(t):t(k):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),k.makeArray(t,this))}).prototype=k.fn,E=k(f);var j=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function N(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e,n=k(t,this),r=n.length;return this.filter(function(){for(e=0;e<r;e++)if(k.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],s=_.test(t)||"string"!=typeof t?k(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&k.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?k.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?k.inArray(this[0],k(t)):k.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return m(t,"parentNode")},parentsUntil:function(t,e,n){return m(t,"parentNode",n)},next:function(t){return N(t,"nextSibling")},prev:function(t){return N(t,"previousSibling")},nextAll:function(t){return m(t,"nextSibling")},prevAll:function(t){return m(t,"previousSibling")},nextUntil:function(t,e,n){return m(t,"nextSibling",n)},prevUntil:function(t,e,n){return m(t,"previousSibling",n)},siblings:function(t){return b((t.parentNode||{}).firstChild,t)},children:function(t){return b(t.firstChild)},contents:function(t){return k.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:k.merge([],t.childNodes)}},function(r,i){k.fn[r]=function(t,e){var n=k.map(this,i,t);return"Until"!==r.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=k.filter(e,n)),1<this.length&&(A[r]||(n=k.uniqueSort(n)),j.test(r)&&(n=n.reverse())),this.pushStack(n)}});var P,D,O=/\S+/g;function L(){f.addEventListener?(f.removeEventListener("DOMContentLoaded",M),w.removeEventListener("load",M)):(f.detachEvent("onreadystatechange",M),w.detachEvent("onload",M))}function M(){(f.addEventListener||"load"===w.event.type||"complete"===f.readyState)&&(L(),k.ready())}for(D in k.Callbacks=function(r){var t,n;r="string"==typeof r?(t=r,n={},k.each(t.match(O)||[],function(t,e){n[e]=!0}),n):k.extend({},r);var i,e,o,s,a=[],l=[],c=-1,u=function(){for(s=r.once,o=i=!0;l.length;c=-1)for(e=l.shift();++c<a.length;)!1===a[c].apply(e[0],e[1])&&r.stopOnFalse&&(c=a.length,e=!1);r.memory||(e=!1),i=!1,s&&(a=e?[]:"")},h={add:function(){return a&&(e&&!i&&(c=a.length-1,l.push(e)),function n(t){k.each(t,function(t,e){k.isFunction(e)?r.unique&&h.has(e)||a.push(e):e&&e.length&&"string"!==k.type(e)&&n(e)})}(arguments),e&&!i&&u()),this},remove:function(){return k.each(arguments,function(t,e){for(var n;-1<(n=k.inArray(e,a,n));)a.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<k.inArray(t,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=e="",this},disabled:function(){return!a},lock:function(){return s=!0,e||h.disable(),this},locked:function(){return!!s},fireWith:function(t,e){return s||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),i||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!o}};return h},k.extend({Deferred:function(t){var o=[["resolve","done",k.Callbacks("once memory"),"resolved"],["reject","fail",k.Callbacks("once memory"),"rejected"],["notify","progress",k.Callbacks("memory")]],i="pending",s={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var i=arguments;return k.Deferred(function(r){k.each(o,function(t,e){var n=k.isFunction(i[t])&&i[t];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&k.isFunction(t.promise)?t.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[e[0]+"With"](this===s?r.promise():this,n?[t]:arguments)})}),i=null}).promise()},promise:function(t){return null!=t?k.extend(t,s):s}},a={};return s.pipe=s.then,k.each(o,function(t,e){var n=e[2],r=e[3];s[e[1]]=n.add,r&&n.add(function(){i=r},o[1^t][2].disable,o[2][2].lock),a[e[0]]=function(){return a[e[0]+"With"](this===a?s:this,arguments),this},a[e[0]+"With"]=n.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(t){var i,e,n,r=0,o=u.call(arguments),s=o.length,a=1!==s||t&&k.isFunction(t.promise)?s:0,l=1===a?t:k.Deferred(),c=function(e,n,r){return function(t){n[e]=this,r[e]=1<arguments.length?u.call(arguments):t,r===i?l.notifyWith(n,r):--a||l.resolveWith(n,r)}};if(1<s)for(i=new Array(s),e=new Array(s),n=new Array(s);r<s;r++)o[r]&&k.isFunction(o[r].promise)?o[r].promise().progress(c(r,e,i)).done(c(r,n,o)).fail(l.reject):--a;return a||l.resolveWith(n,o),l.promise()}}),k.fn.ready=function(t){return k.ready.promise().done(t),this},k.extend({isReady:!1,readyWait:1,holdReady:function(t){t?k.readyWait++:k.ready(!0)},ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0)!==t&&0<--k.readyWait||(P.resolveWith(f,[k]),k.fn.triggerHandler&&(k(f).triggerHandler("ready"),k(f).off("ready")))}}),k.ready.promise=function(t){if(!P)if(P=k.Deferred(),"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll)w.setTimeout(k.ready);else if(f.addEventListener)f.addEventListener("DOMContentLoaded",M),w.addEventListener("load",M);else{f.attachEvent("onreadystatechange",M),w.attachEvent("onload",M);var n=!1;try{n=null==w.frameElement&&f.documentElement}catch(t){}n&&n.doScroll&&function e(){if(!k.isReady){try{n.doScroll("left")}catch(t){return w.setTimeout(e,50)}L(),k.ready()}}()}return P.promise(t)},k.ready.promise(),k(g))break;g.ownFirst="0"===D,g.inlineBlockNeedsLayout=!1,k(function(){var t,e,n,r;(n=f.getElementsByTagName("body")[0])&&n.style&&(e=f.createElement("div"),(r=f.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",g.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))}),function(){var t=f.createElement("div");g.deleteExpando=!0;try{delete t.test}catch(t){g.deleteExpando=!1}t=null}();var I,R=function(t){var e=k.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)},F=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,B=/([A-Z])/g;function H(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(B,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:F.test(n)?k.parseJSON(n):n)}catch(t){}k.data(t,e,n)}else n=void 0}return n}function V(t){var e;for(e in t)if(("data"!==e||!k.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function q(t,e,n,r){if(R(t)){var i,o,s=k.expando,a=t.nodeType,l=a?k.cache:t,c=a?t[s]:t[s]&&s;if(c&&l[c]&&(r||l[c].data)||void 0!==n||"string"!=typeof e)return c||(c=a?t[s]=h.pop()||k.guid++:s),l[c]||(l[c]=a?{}:{toJSON:k.noop}),"object"!=typeof e&&"function"!=typeof e||(r?l[c]=k.extend(l[c],e):l[c].data=k.extend(l[c].data,e)),o=l[c],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[k.camelCase(e)]=n),"string"==typeof e?null==(i=o[e])&&(i=o[k.camelCase(e)]):i=o,i}}function W(t,e,n){if(R(t)){var r,i,o=t.nodeType,s=o?k.cache:t,a=o?t[k.expando]:k.expando;if(s[a]){if(e&&(r=n?s[a]:s[a].data)){i=(e=k.isArray(e)?e.concat(k.map(e,k.camelCase)):e in r?[e]:(e=k.camelCase(e))in r?[e]:e.split(" ")).length;for(;i--;)delete r[e[i]];if(n?!V(r):!k.isEmptyObject(r))return}(n||(delete s[a].data,V(s[a])))&&(o?k.cleanData([t],!0):g.deleteExpando||s!=s.window?delete s[a]:s[a]=void 0)}}}k.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?k.cache[t[k.expando]]:t[k.expando])&&!V(t)},data:function(t,e,n){return q(t,e,n)},removeData:function(t,e){return W(t,e)},_data:function(t,e,n){return q(t,e,n,!0)},_removeData:function(t,e){return W(t,e,!0)}}),k.fn.extend({data:function(t,e){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=k.data(o),1===o.nodeType&&!k._data(o,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&H(o,r=k.camelCase(r.slice(5)),i[r]);k._data(o,"parsedAttrs",!0)}return i}return"object"==typeof t?this.each(function(){k.data(this,t)}):1<arguments.length?this.each(function(){k.data(this,t,e)}):o?H(o,t,k.data(o,t)):void 0},removeData:function(t){return this.each(function(){k.removeData(this,t)})}}),k.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=k._data(t,e),n&&(!r||k.isArray(n)?r=k._data(t,e,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=k.queue(t,e),r=n.length,i=n.shift(),o=k._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){k.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return k._data(t,n)||k._data(t,n,{empty:k.Callbacks("once memory").add(function(){k._removeData(t,e+"queue"),k._removeData(t,n)})})}}),k.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?k.queue(this[0],e):void 0===n?this:this.each(function(){var t=k.queue(this,e,n);k._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&k.dequeue(this,e)})},dequeue:function(t){return this.each(function(){k.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=k.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=k._data(o[s],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}}),g.shrinkWrapBlocks=function(){return null!=I?I:(I=!1,(e=f.getElementsByTagName("body")[0])&&e.style?(t=f.createElement("div"),(n=f.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(f.createElement("div")).style.width="5px",I=3!==t.offsetWidth),e.removeChild(n),I):void 0);var t,e,n};var z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+z+")([a-z%]*)$","i"),$=["Top","Right","Bottom","Left"],X=function(t,e){return t=e||t,"none"===k.css(t,"display")||!k.contains(t.ownerDocument,t)};function Y(t,e,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return k.css(t,e,"")},l=a(),c=n&&n[3]||(k.cssNumber[e]?"":"px"),u=(k.cssNumber[e]||"px"!==c&&+l)&&U.exec(k.css(t,e));if(u&&u[3]!==c)for(c=c||u[3],n=n||[],u=+l||1;u/=o=o||".5",k.style(t,e,u+c),o!==(o=a()/l)&&1!==o&&--s;);return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var K,G,J,Q=function(t,e,n,r,i,o,s){var a=0,l=t.length,c=null==n;if("object"===k.type(n))for(a in i=!0,n)Q(t,e,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,k.isFunction(r)||(s=!0),c&&(s?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(k(t),n)})),e))for(;a<l;a++)e(t[a],n,s?r:r.call(t[a],a,e(t[a],n)));return i?t:c?e.call(t):l?e(t[0],n):o},Z=/^(?:checkbox|radio)$/i,tt=/<([\w:-]+)/,et=/^$|\/(?:java|ecma)script/i,nt=/^\s+/,rt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function it(t){var e=rt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}K=f.createElement("div"),G=f.createDocumentFragment(),J=f.createElement("input"),K.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",g.leadingWhitespace=3===K.firstChild.nodeType,g.tbody=!K.getElementsByTagName("tbody").length,g.htmlSerialize=!!K.getElementsByTagName("link").length,g.html5Clone="<:nav></:nav>"!==f.createElement("nav").cloneNode(!0).outerHTML,J.type="checkbox",J.checked=!0,G.appendChild(J),g.appendChecked=J.checked,K.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!K.cloneNode(!0).lastChild.defaultValue,G.appendChild(K),(J=f.createElement("input")).setAttribute("type","radio"),J.setAttribute("checked","checked"),J.setAttribute("name","t"),K.appendChild(J),g.checkClone=K.cloneNode(!0).cloneNode(!0).lastChild.checked,g.noCloneEvent=!!K.addEventListener,K[k.expando]=1,g.attributes=!K.getAttribute(k.expando);var ot={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:g.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};function st(t,e){var n,r,i=0,o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n[i]);i++)!e||k.nodeName(r,e)?o.push(r):k.merge(o,st(r,e));return void 0===e||e&&k.nodeName(t,e)?k.merge([t],o):o}function at(t,e){for(var n,r=0;null!=(n=t[r]);r++)k._data(n,"globalEval",!e||k._data(e[r],"globalEval"))}ot.optgroup=ot.option,ot.tbody=ot.tfoot=ot.colgroup=ot.caption=ot.thead,ot.th=ot.td;var lt=/<|&#?\w+;/,ct=/<tbody/i;function ut(t){Z.test(t.type)&&(t.defaultChecked=t.checked)}function ht(t,e,n,r,i){for(var o,s,a,l,c,u,h,p=t.length,d=it(e),f=[],v=0;v<p;v++)if((s=t[v])||0===s)if("object"===k.type(s))k.merge(f,s.nodeType?[s]:s);else if(lt.test(s)){for(l=l||d.appendChild(e.createElement("div")),c=(tt.exec(s)||["",""])[1].toLowerCase(),h=ot[c]||ot._default,l.innerHTML=h[1]+k.htmlPrefilter(s)+h[2],o=h[0];o--;)l=l.lastChild;if(!g.leadingWhitespace&&nt.test(s)&&f.push(e.createTextNode(nt.exec(s)[0])),!g.tbody)for(o=(s="table"!==c||ct.test(s)?"<table>"!==h[1]||ct.test(s)?0:l:l.firstChild)&&s.childNodes.length;o--;)k.nodeName(u=s.childNodes[o],"tbody")&&!u.childNodes.length&&s.removeChild(u);for(k.merge(f,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=d.lastChild}else f.push(e.createTextNode(s));for(l&&d.removeChild(l),g.appendChecked||k.grep(st(f,"input"),ut),v=0;s=f[v++];)if(r&&-1<k.inArray(s,r))i&&i.push(s);else if(a=k.contains(s.ownerDocument,s),l=st(d.appendChild(s),"script"),a&&at(l),n)for(o=0;s=l[o++];)et.test(s.type||"")&&n.push(s);return l=null,d}!function(){var t,e,n=f.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(g[t]=e in w)||(n.setAttribute(e,"t"),g[t]=!1===n.attributes[e].expando);n=null}();var pt=/^(?:input|select|textarea)$/i,dt=/^key/,ft=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,vt=/^(?:focusinfocus|focusoutblur)$/,yt=/^([^.]*)(?:\.(.+)|)/;function gt(){return!0}function mt(){return!1}function bt(){try{return f.activeElement}catch(t){}}function _t(t,e,n,r,i,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)_t(t,a,n,r,e[a],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=mt;else if(!i)return t;return 1===o&&(s=i,(i=function(t){return k().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=k.guid++)),t.each(function(){k.event.add(this,e,i,r,n)})}k.event={global:{},add:function(t,e,n,r,i){var o,s,a,l,c,u,h,p,d,f,v,y=k._data(t);if(y){for(n.handler&&(n=(l=n).handler,i=l.selector),n.guid||(n.guid=k.guid++),(s=y.events)||(s=y.events={}),(u=y.handle)||((u=y.handle=function(t){return void 0===k||t&&k.event.triggered===t.type?void 0:k.event.dispatch.apply(u.elem,arguments)}).elem=t),a=(e=(e||"").match(O)||[""]).length;a--;)d=v=(o=yt.exec(e[a])||[])[1],f=(o[2]||"").split(".").sort(),d&&(c=k.event.special[d]||{},d=(i?c.delegateType:c.bindType)||d,c=k.event.special[d]||{},h=k.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:f.join(".")},l),(p=s[d])||((p=s[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,f,u)||(t.addEventListener?t.addEventListener(d,u,!1):t.attachEvent&&t.attachEvent("on"+d,u))),c.add&&(c.add.call(t,h),h.handler.guid||(h.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,h):p.push(h),k.event.global[d]=!0);t=null}},remove:function(t,e,n,r,i){var o,s,a,l,c,u,h,p,d,f,v,y=k.hasData(t)&&k._data(t);if(y&&(u=y.events)){for(c=(e=(e||"").match(O)||[""]).length;c--;)if(d=v=(a=yt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),d){for(h=k.event.special[d]||{},p=u[d=(r?h.delegateType:h.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=p.length;o--;)s=p[o],!i&&v!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||r&&r!==s.selector&&("**"!==r||!s.selector)||(p.splice(o,1),s.selector&&p.delegateCount--,h.remove&&h.remove.call(t,s));l&&!p.length&&(h.teardown&&!1!==h.teardown.call(t,f,y.handle)||k.removeEvent(t,d,y.handle),delete u[d])}else for(d in u)k.event.remove(t,d+e[c],n,r,!0);k.isEmptyObject(u)&&(delete y.handle,k._removeData(t,"events"))}},trigger:function(t,e,n,r){var i,o,s,a,l,c,u,h=[n||f],p=y.call(t,"type")?t.type:t,d=y.call(t,"namespace")?t.namespace.split("."):[];if(s=c=n=n||f,3!==n.nodeType&&8!==n.nodeType&&!vt.test(p+k.event.triggered)&&(-1<p.indexOf(".")&&(p=(d=p.split(".")).shift(),d.sort()),o=p.indexOf(":")<0&&"on"+p,(t=t[k.expando]?t:new k.Event(p,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:k.makeArray(e,[t]),l=k.event.special[p]||{},r||!l.trigger||!1!==l.trigger.apply(n,e))){if(!r&&!l.noBubble&&!k.isWindow(n)){for(a=l.delegateType||p,vt.test(a+p)||(s=s.parentNode);s;s=s.parentNode)h.push(s),c=s;c===(n.ownerDocument||f)&&h.push(c.defaultView||c.parentWindow||w)}for(u=0;(s=h[u++])&&!t.isPropagationStopped();)t.type=1<u?a:l.bindType||p,(i=(k._data(s,"events")||{})[t.type]&&k._data(s,"handle"))&&i.apply(s,e),(i=o&&s[o])&&i.apply&&R(s)&&(t.result=i.apply(s,e),!1===t.result&&t.preventDefault());if(t.type=p,!r&&!t.isDefaultPrevented()&&(!l._default||!1===l._default.apply(h.pop(),e))&&R(n)&&o&&n[p]&&!k.isWindow(n)){(c=n[o])&&(n[o]=null),k.event.triggered=p;try{n[p]()}catch(t){}k.event.triggered=void 0,c&&(n[o]=c)}return t.result}},dispatch:function(t){t=k.event.fix(t);var e,n,r,i,o,s,a=u.call(arguments),l=(k._data(this,"events")||{})[t.type]||[],c=k.event.special[t.type]||{};if((a[0]=t).delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(s=k.event.handlers.call(this,t,l),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(r=[],n=0;n<a;n++)void 0===r[i=(o=e[n]).selector+" "]&&(r[i]=o.needsContext?-1<k(i,this).index(l):k.find(i,this,null,[l]).length),r[i]&&r.push(o);r.length&&s.push({elem:l,handlers:r})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},fix:function(t){if(t[k.expando])return t;var e,n,r,i=t.type,o=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=ft.test(i)?this.mouseHooks:dt.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,t=new k.Event(o),e=r.length;e--;)t[n=r[e]]=o[n];return t.target||(t.target=o.srcElement||f),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button,s=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=(r=t.target.ownerDocument||f).documentElement,n=r.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?e.toElement:s),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==bt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===bt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(k.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return k.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n){var r=k.extend(new k.Event,n,{type:t,isSimulated:!0});k.event.trigger(r,null,e),r.isDefaultPrevented()&&n.preventDefault()}},k.removeEvent=f.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)}:function(t,e,n){var r="on"+e;t.detachEvent&&(void 0===t[r]&&(t[r]=null),t.detachEvent(r,n))},k.Event=function(t,e){if(!(this instanceof k.Event))return new k.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?gt:mt):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||k.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:mt,isPropagationStopped:mt,isImmediatePropagationStopped:mt,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=gt,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=gt,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=gt,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,i){k.event.special[t]={delegateType:i,bindType:i,handle:function(t){var e,n=t.relatedTarget,r=t.handleObj;return n&&(n===this||k.contains(this,n))||(t.type=r.origType,e=r.handler.apply(this,arguments),t.type=i),e}}}),g.submit||(k.event.special.submit={setup:function(){if(k.nodeName(this,"form"))return!1;k.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=k.nodeName(e,"input")||k.nodeName(e,"button")?k.prop(e,"form"):void 0;n&&!k._data(n,"submit")&&(k.event.add(n,"submit._submit",function(t){t._submitBubble=!0}),k._data(n,"submit",!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&k.event.simulate("submit",this.parentNode,t))},teardown:function(){if(k.nodeName(this,"form"))return!1;k.event.remove(this,"._submit")}}),g.change||(k.event.special.change={setup:function(){if(pt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(k.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._justChanged=!0)}),k.event.add(this,"click._change",function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),k.event.simulate("change",this,t)})),!1;k.event.add(this,"beforeactivate._change",function(t){var e=t.target;pt.test(e.nodeName)&&!k._data(e,"change")&&(k.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||k.event.simulate("change",this.parentNode,t)}),k._data(e,"change",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return k.event.remove(this,"._change"),!pt.test(this.nodeName)}}),g.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(t){k.event.simulate(r,t.target,k.event.fix(t))};k.event.special[r]={setup:function(){var t=this.ownerDocument||this,e=k._data(t,r);e||t.addEventListener(n,i,!0),k._data(t,r,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=k._data(t,r)-1;e?k._data(t,r,e):(t.removeEventListener(n,i,!0),k._removeData(t,r))}}}),k.fn.extend({on:function(t,e,n,r){return _t(this,t,e,n,r)},one:function(t,e,n,r){return _t(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,k(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=mt),this.each(function(){k.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){k.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return k.event.trigger(t,e,n,!0)}});var Tt=/ jQuery\d+="(?:null|\d+)"/g,Ct=new RegExp("<(?:"+rt+")[\\s/>]","i"),wt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,kt=/<script|<style|<link/i,xt=/checked\s*(?:[^=]|=\s*.checked.)/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,jt=it(f).appendChild(f.createElement("div"));function At(t,e){return k.nodeName(t,"table")&&k.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function Nt(t){return t.type=(null!==k.find.attr(t,"type"))+"/"+t.type,t}function Pt(t){var e=Et.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Dt(t,e){if(1===e.nodeType&&k.hasData(t)){var n,r,i,o=k._data(t),s=k._data(e,o),a=o.events;if(a)for(n in delete s.handle,s.events={},a)for(r=0,i=a[n].length;r<i;r++)k.event.add(e,n,a[n][r]);s.data&&(s.data=k.extend({},s.data))}}function Ot(t,e){var n,r,i;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!g.noCloneEvent&&e[k.expando]){for(r in(i=k._data(e)).events)k.removeEvent(e,r,i.handle);e.removeAttribute(k.expando)}"script"===n&&e.text!==t.text?(Nt(e).text=t.text,Pt(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),g.html5Clone&&t.innerHTML&&!k.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Z.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}function Lt(n,r,i,o){r=v.apply([],r);var t,e,s,a,l,c,u=0,h=n.length,p=h-1,d=r[0],f=k.isFunction(d);if(f||1<h&&"string"==typeof d&&!g.checkClone&&xt.test(d))return n.each(function(t){var e=n.eq(t);f&&(r[0]=d.call(this,t,e.html())),Lt(e,r,i,o)});if(h&&(t=(c=ht(r,n[0].ownerDocument,!1,n,o)).firstChild,1===c.childNodes.length&&(c=t),t||o)){for(s=(a=k.map(st(c,"script"),Nt)).length;u<h;u++)e=c,u!==p&&(e=k.clone(e,!0,!0),s&&k.merge(a,st(e,"script"))),i.call(n[u],e,u);if(s)for(l=a[a.length-1].ownerDocument,k.map(a,Pt),u=0;u<s;u++)e=a[u],et.test(e.type||"")&&!k._data(e,"globalEval")&&k.contains(l,e)&&(e.src?k._evalUrl&&k._evalUrl(e.src):k.globalEval((e.text||e.textContent||e.innerHTML||"").replace(St,"")));c=t=null}return n}function Mt(t,e,n){for(var r,i=e?k.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(st(r)),r.parentNode&&(n&&k.contains(r.ownerDocument,r)&&at(st(r,"script")),r.parentNode.removeChild(r));return t}k.extend({htmlPrefilter:function(t){return t.replace(wt,"<$1></$2>")},clone:function(t,e,n){var r,i,o,s,a,l=k.contains(t.ownerDocument,t);if(g.html5Clone||k.isXMLDoc(t)||!Ct.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(jt.innerHTML=t.outerHTML,jt.removeChild(o=jt.firstChild)),!(g.noCloneEvent&&g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(r=st(o),a=st(t),s=0;null!=(i=a[s]);++s)r[s]&&Ot(i,r[s]);if(e)if(n)for(a=a||st(t),r=r||st(o),s=0;null!=(i=a[s]);s++)Dt(i,r[s]);else Dt(t,o);return 0<(r=st(o,"script")).length&&at(r,!l&&st(t,"script")),r=a=i=null,o},cleanData:function(t,e){for(var n,r,i,o,s=0,a=k.expando,l=k.cache,c=g.attributes,u=k.event.special;null!=(n=t[s]);s++)if((e||R(n))&&(o=(i=n[a])&&l[i])){if(o.events)for(r in o.events)u[r]?k.event.remove(n,r):k.removeEvent(n,r,o.handle);l[i]&&(delete l[i],c||void 0===n.removeAttribute?n[a]=void 0:n.removeAttribute(a),h.push(i))}}}),k.fn.extend({domManip:Lt,detach:function(t){return Mt(this,t,!0)},remove:function(t){return Mt(this,t)},text:function(t){return Q(this,function(t){return void 0===t?k.text(this):this.empty().append((this[0]&&this[0].ownerDocument||f).createTextNode(t))},null,t,arguments.length)},append:function(){return Lt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||At(this,t).appendChild(t)})},prepend:function(){return Lt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=At(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Lt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Lt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&k.cleanData(st(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&k.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return Q(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Tt,""):void 0;if("string"==typeof t&&!kt.test(t)&&(g.htmlSerialize||!Ct.test(t))&&(g.leadingWhitespace||!nt.test(t))&&!ot[(tt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(k.cleanData(st(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return Lt(this,arguments,function(t){var e=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(st(this)),e&&e.replaceChild(t,this))},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){k.fn[t]=function(t){for(var e,n=0,r=[],i=k(t),o=i.length-1;n<=o;n++)e=n===o?this:this.clone(!0),k(i[n])[s](e),a.apply(r,e.get());return this.pushStack(r)}});var It,Rt={HTML:"block",BODY:"block"};function Ft(t,e){var n=k(e.createElement(t)).appendTo(e.body),r=k.css(n[0],"display");return n.detach(),r}function Bt(t){var e=f,n=Rt[t];return n||("none"!==(n=Ft(t,e))&&n||((e=((It=(It||k("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||It[0].contentDocument).document).write(),e.close(),n=Ft(t,e),It.detach()),Rt[t]=n),n}var Ht=/^margin/,Vt=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),qt=function(t,e,n,r){var i,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=s[o];return i},Wt=f.documentElement;!function(){var r,i,o,s,a,l,c=f.createElement("div"),u=f.createElement("div");function t(){var t,e,n=f.documentElement;n.appendChild(c),u.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",r=o=l=!1,i=a=!0,w.getComputedStyle&&(e=w.getComputedStyle(u),r="1%"!==(e||{}).top,l="2px"===(e||{}).marginLeft,o="4px"===(e||{width:"4px"}).width,u.style.marginRight="50%",i="4px"===(e||{marginRight:"4px"}).marginRight,(t=u.appendChild(f.createElement("div"))).style.cssText=u.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",u.style.width="1px",a=!parseFloat((w.getComputedStyle(t)||{}).marginRight),u.removeChild(t)),u.style.display="none",(s=0===u.getClientRects().length)&&(u.style.display="",u.innerHTML="<table><tr><td></td><td>t</td></tr></table>",u.childNodes[0].style.borderCollapse="separate",(t=u.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===t[0].offsetHeight)&&(t[0].style.display="",t[1].style.display="none",s=0===t[0].offsetHeight)),n.removeChild(c)}u.style&&(u.style.cssText="float:left;opacity:.5",g.opacity="0.5"===u.style.opacity,g.cssFloat=!!u.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,(c=f.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerHTML="",c.appendChild(u),g.boxSizing=""===u.style.boxSizing||""===u.style.MozBoxSizing||""===u.style.WebkitBoxSizing,k.extend(g,{reliableHiddenOffsets:function(){return null==r&&t(),s},boxSizingReliable:function(){return null==r&&t(),o},pixelMarginRight:function(){return null==r&&t(),i},pixelPosition:function(){return null==r&&t(),r},reliableMarginRight:function(){return null==r&&t(),a},reliableMarginLeft:function(){return null==r&&t(),l}}))}();var zt,Ut,$t=/^(top|right|bottom|left)$/;function Xt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}w.getComputedStyle?(zt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=w),e.getComputedStyle(t)},Ut=function(t,e,n){var r,i,o,s,a=t.style;return""!==(s=(n=n||zt(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==s||k.contains(t.ownerDocument,t)||(s=k.style(t,e)),n&&!g.pixelMarginRight()&&Vt.test(s)&&Ht.test(e)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o),void 0===s?s:s+""}):Wt.currentStyle&&(zt=function(t){return t.currentStyle},Ut=function(t,e,n){var r,i,o,s,a=t.style;return null==(s=(n=n||zt(t))?n[e]:void 0)&&a&&a[e]&&(s=a[e]),Vt.test(s)&&!$t.test(e)&&(r=a.left,(o=(i=t.runtimeStyle)&&i.left)&&(i.left=t.currentStyle.left),a.left="fontSize"===e?"1em":s,s=a.pixelLeft+"px",a.left=r,o&&(i.left=o)),void 0===s?s:s+""||"auto"});var Yt=/alpha\([^)]*\)/i,Kt=/opacity\s*=\s*([^)]*)/i,Gt=/^(none|table(?!-c[ea]).+)/,Jt=new RegExp("^("+z+")(.*)$","i"),Qt={position:"absolute",visibility:"hidden",display:"block"},Zt={letterSpacing:"0",fontWeight:"400"},te=["Webkit","O","Moz","ms"],ee=f.createElement("div").style;function ne(t){if(t in ee)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=te.length;n--;)if((t=te[n]+e)in ee)return t}function re(t,e){for(var n,r,i,o=[],s=0,a=t.length;s<a;s++)(r=t[s]).style&&(o[s]=k._data(r,"olddisplay"),n=r.style.display,e?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&X(r)&&(o[s]=k._data(r,"olddisplay",Bt(r.nodeName)))):(i=X(r),(n&&"none"!==n||!i)&&k._data(r,"olddisplay",i?n:k.css(r,"display"))));for(s=0;s<a;s++)(r=t[s]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[s]||"":"none"));return t}function ie(t,e,n){var r=Jt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function oe(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=k.css(t,n+$[o],!0,i)),r?("content"===n&&(s-=k.css(t,"padding"+$[o],!0,i)),"margin"!==n&&(s-=k.css(t,"border"+$[o]+"Width",!0,i))):(s+=k.css(t,"padding"+$[o],!0,i),"padding"!==n&&(s+=k.css(t,"border"+$[o]+"Width",!0,i)));return s}function se(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=zt(t),s=g.boxSizing&&"border-box"===k.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Ut(t,e,o))<0||null==i)&&(i=t.style[e]),Vt.test(i))return i;r=s&&(g.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+oe(t,e,n||(s?"border":"content"),r,o)+"px"}function ae(t,e,n,r,i){return new ae.prototype.init(t,e,n,r,i)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ut(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:g.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=k.camelCase(e),l=t.style;if(e=k.cssProps[a]||(k.cssProps[a]=ne(a)||a),s=k.cssHooks[e]||k.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(t,!1,r))?i:l[e];if("string"===(o=typeof n)&&(i=U.exec(n))&&i[1]&&(n=Y(t,e,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(k.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(s&&"set"in s&&void 0===(n=s.set(t,n,r)))))try{l[e]=n}catch(t){}}},css:function(t,e,n,r){var i,o,s,a=k.camelCase(e);return e=k.cssProps[a]||(k.cssProps[a]=ne(a)||a),(s=k.cssHooks[e]||k.cssHooks[a])&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=Ut(t,e,r)),"normal"===o&&e in Zt&&(o=Zt[e]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),k.each(["height","width"],function(t,i){k.cssHooks[i]={get:function(t,e,n){if(e)return Gt.test(k.css(t,"display"))&&0===t.offsetWidth?qt(t,Qt,function(){return se(t,i,n)}):se(t,i,n)},set:function(t,e,n){var r=n&&zt(t);return ie(0,e,n?oe(t,i,n,g.boxSizing&&"border-box"===k.css(t,"boxSizing",!1,r),r):0)}}}),g.opacity||(k.cssHooks.opacity={get:function(t,e){return Kt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,r=t.currentStyle,i=k.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=r&&r.filter||n.filter||"";((n.zoom=1)<=e||""===e)&&""===k.trim(o.replace(Yt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||r&&!r.filter)||(n.filter=Yt.test(o)?o.replace(Yt,i):o+" "+i)}}),k.cssHooks.marginRight=Xt(g.reliableMarginRight,function(t,e){if(e)return qt(t,{display:"inline-block"},Ut,[t,"marginRight"])}),k.cssHooks.marginLeft=Xt(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||(k.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-qt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(i,o){k.cssHooks[i+o]={expand:function(t){for(var e=0,n={},r="string"==typeof t?t.split(" "):[t];e<4;e++)n[i+$[e]+o]=r[e]||r[e-2]||r[0];return n}},Ht.test(i)||(k.cssHooks[i+o].set=ie)}),k.fn.extend({css:function(t,e){return Q(this,function(t,e,n){var r,i,o={},s=0;if(k.isArray(e)){for(r=zt(t),i=e.length;s<i;s++)o[e[s]]=k.css(t,e[s],!1,r);return o}return void 0!==n?k.style(t,e,n):k.css(t,e)},t,e,1<arguments.length)},show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){X(this)?k(this).show():k(this).hide()})}}),((k.Tween=ae).prototype={constructor:ae,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var t=ae.propHooks[this.prop];return t&&t.get?t.get(this):ae.propHooks._default.get(this)},run:function(t){var e,n=ae.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ae.propHooks._default.set(this),this}}).init.prototype=ae.prototype,(ae.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[k.cssProps[t.prop]]&&!k.cssHooks[t.prop]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=ae.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=ae.prototype.init,k.fx.step={};var le,ce,ue,he,pe,de,fe,ve=/^(?:toggle|show|hide)$/,ye=/queueHooks$/;function ge(){return w.setTimeout(function(){le=void 0}),le=k.now()}function me(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=$[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function be(t,e,n){for(var r,i=(_e.tweeners[e]||[]).concat(_e.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,e,t))return r}function _e(o,t,e){var n,s,r=0,i=_e.prefilters.length,a=k.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var t=le||ge(),e=Math.max(0,c.startTime+c.duration-t),n=1-(e/c.duration||0),r=0,i=c.tweens.length;r<i;r++)c.tweens[r].run(n);return a.notifyWith(o,[c,n,e]),n<1&&i?e:(a.resolveWith(o,[c]),!1)},c=a.promise({elem:o,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},e),originalProperties:t,originalOptions:e,startTime:le||ge(),duration:e.duration,tweens:[],createTween:function(t,e){var n=k.Tween(o,c.opts,t,e,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var e=0,n=t?c.tweens.length:0;if(s)return this;for(s=!0;e<n;e++)c.tweens[e].run(1);return t?(a.notifyWith(o,[c,1,0]),a.resolveWith(o,[c,t])):a.rejectWith(o,[c,t]),this}}),u=c.props;for(!function(t,e){var n,r,i,o,s;for(n in t)if(i=e[r=k.camelCase(n)],o=t[n],k.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(s=k.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(u,c.opts.specialEasing);r<i;r++)if(n=_e.prefilters[r].call(c,o,u,c.opts))return k.isFunction(n.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=k.proxy(n.stop,n)),n;return k.map(u,be,c),k.isFunction(c.opts.start)&&c.opts.start.call(o,c),k.fx.timer(k.extend(l,{elem:o,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}k.Animation=k.extend(_e,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return Y(n.elem,t,U.exec(e),n),n}]},tweener:function(t,e){k.isFunction(t)?(e=t,t=["*"]):t=t.match(O);for(var n,r=0,i=t.length;r<i;r++)n=t[r],_e.tweeners[n]=_e.tweeners[n]||[],_e.tweeners[n].unshift(e)},prefilters:[function(e,t,n){var r,i,o,s,a,l,c,u=this,h={},p=e.style,d=e.nodeType&&X(e),f=k._data(e,"fxshow");for(r in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(c=k.css(e,"display"))?k._data(e,"olddisplay")||Bt(e.nodeName):c)&&"none"===k.css(e,"float")&&(g.inlineBlockNeedsLayout&&"inline"!==Bt(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",g.shrinkWrapBlocks()||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),t)if(i=t[r],ve.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!f||void 0===f[r])continue;d=!0}h[r]=f&&f[r]||k.style(e,r)}else c=void 0;if(k.isEmptyObject(h))"inline"===("none"===c?Bt(e.nodeName):c)&&(p.display=c);else for(r in f?"hidden"in f&&(d=f.hidden):f=k._data(e,"fxshow",{}),o&&(f.hidden=!d),d?k(e).show():u.done(function(){k(e).hide()}),u.done(function(){var t;for(t in k._removeData(e,"fxshow"),h)k.style(e,t,h[t])}),h)s=be(d?f[r]:0,r,u),r in f||(f[r]=s.start,d&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}],prefilter:function(t,e){e?_e.prefilters.unshift(t):_e.prefilters.push(t)}}),k.speed=function(t,e,n){var r=t&&"object"==typeof t?k.extend({},t):{complete:n||!n&&e||k.isFunction(t)&&t,duration:t,easing:n&&e||e&&!k.isFunction(e)&&e};return r.duration=k.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in k.fx.speeds?k.fx.speeds[r.duration]:k.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){k.isFunction(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(t,e,n,r){return this.filter(X).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(e,t,n,r){var i=k.isEmptyObject(e),o=k.speed(t,n,r),s=function(){var t=_e(this,k.extend({},e),o);(i||k._data(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(i,t,o){var s=function(t){var e=t.stop;delete t.stop,e(o)};return"string"!=typeof i&&(o=t,t=i,i=void 0),t&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var t=!0,e=null!=i&&i+"queueHooks",n=k.timers,r=k._data(this);if(e)r[e]&&r[e].stop&&s(r[e]);else for(e in r)r[e]&&r[e].stop&&ye.test(e)&&s(r[e]);for(e=n.length;e--;)n[e].elem!==this||null!=i&&n[e].queue!==i||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||k.dequeue(this,i)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=k._data(this),n=e[s+"queue"],r=e[s+"queueHooks"],i=k.timers,o=n?n.length:0;for(e.finish=!0,k.queue(this,s,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===s&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),k.each(["toggle","show","hide"],function(t,r){var i=k.fn[r];k.fn[r]=function(t,e,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(me(r,!0),t,e,n)}}),k.each({slideDown:me("show"),slideUp:me("hide"),slideToggle:me("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){k.fn[t]=function(t,e,n){return this.animate(r,t,e,n)}}),k.timers=[],k.fx.tick=function(){var t,e=k.timers,n=0;for(le=k.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||k.fx.stop(),le=void 0},k.fx.timer=function(t){k.timers.push(t),t()?k.fx.start():k.timers.pop()},k.fx.interval=13,k.fx.start=function(){ce||(ce=w.setInterval(k.fx.tick,k.fx.interval))},k.fx.stop=function(){w.clearInterval(ce),ce=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(r,t){return r=k.fx&&k.fx.speeds[r]||r,t=t||"fx",this.queue(t,function(t,e){var n=w.setTimeout(t,r);e.stop=function(){w.clearTimeout(n)}})},he=f.createElement("input"),pe=f.createElement("div"),de=f.createElement("select"),fe=de.appendChild(f.createElement("option")),(pe=f.createElement("div")).setAttribute("className","t"),pe.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ue=pe.getElementsByTagName("a")[0],he.setAttribute("type","checkbox"),pe.appendChild(he),(ue=pe.getElementsByTagName("a")[0]).style.cssText="top:1px",g.getSetAttribute="t"!==pe.className,g.style=/top/.test(ue.getAttribute("style")),g.hrefNormalized="/a"===ue.getAttribute("href"),g.checkOn=!!he.value,g.optSelected=fe.selected,g.enctype=!!f.createElement("form").enctype,de.disabled=!0,g.optDisabled=!fe.disabled,(he=f.createElement("input")).setAttribute("value",""),g.input=""===he.getAttribute("value"),he.value="t",he.setAttribute("type","radio"),g.radioValue="t"===he.value;var Te=/\r/g,Ce=/[\x20\t\r\n\f]+/g;k.fn.extend({val:function(n){var r,t,i,e=this[0];return arguments.length?(i=k.isFunction(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=i?n.call(this,t,k(this).val()):n)?e="":"number"==typeof e?e+="":k.isArray(e)&&(e=k.map(e,function(t){return null==t?"":t+""})),(r=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,e,"value")||(this.value=e))})):e?(r=k.valHooks[e.type]||k.valHooks[e.nodeName.toLowerCase()])&&"get"in r&&void 0!==(t=r.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(Te,""):null==t?"":t:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:k.trim(k.text(t)).replace(Ce," ")}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,s=o?null:[],a=o?i+1:r.length,l=i<0?a:o?i:0;l<a;l++)if(((n=r[l]).selected||l===i)&&(g.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!k.nodeName(n.parentNode,"optgroup"))){if(e=k(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=k.makeArray(e),s=i.length;s--;)if(r=i[s],-1<k.inArray(k.valHooks.option.get(r),o))try{r.selected=n=!0}catch(t){r.scrollHeight}else r.selected=!1;return n||(t.selectedIndex=-1),i}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(t,e){if(k.isArray(e))return t.checked=-1<k.inArray(k(t).val(),e)}},g.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var we,ke,xe=k.expr.attrHandle,Ee=/^(?:checked|selected)$/i,Se=g.getSetAttribute,je=g.input;k.fn.extend({attr:function(t,e){return Q(this,k.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){k.removeAttr(this,t)})}}),k.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?k.prop(t,e,n):(1===o&&k.isXMLDoc(t)||(e=e.toLowerCase(),i=k.attrHooks[e]||(k.expr.match.bool.test(e)?ke:we)),void 0!==n?null===n?void k.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=k.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&k.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(O);if(o&&1===t.nodeType)for(;n=o[i++];)r=k.propFix[n]||n,k.expr.match.bool.test(n)?je&&Se||!Ee.test(n)?t[r]=!1:t[k.camelCase("default-"+n)]=t[r]=!1:k.attr(t,n,""),t.removeAttribute(Se?n:r)}}),ke={set:function(t,e,n){return!1===e?k.removeAttr(t,n):je&&Se||!Ee.test(n)?t.setAttribute(!Se&&k.propFix[n]||n,n):t[k.camelCase("default-"+n)]=t[n]=!0,n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(t,e){var o=xe[e]||k.find.attr;je&&Se||!Ee.test(e)?xe[e]=function(t,e,n){var r,i;return n||(i=xe[e],xe[e]=r,r=null!=o(t,e,n)?e.toLowerCase():null,xe[e]=i),r}:xe[e]=function(t,e,n){if(!n)return t[k.camelCase("default-"+e)]?e.toLowerCase():null}}),je&&Se||(k.attrHooks.value={set:function(t,e,n){if(!k.nodeName(t,"input"))return we&&we.set(t,e,n);t.defaultValue=e}}),Se||(we={set:function(t,e,n){var r=t.getAttributeNode(n);if(r||t.setAttributeNode(r=t.ownerDocument.createAttribute(n)),r.value=e+="","value"===n||e===t.getAttribute(n))return e}},xe.id=xe.name=xe.coords=function(t,e,n){var r;if(!n)return(r=t.getAttributeNode(e))&&""!==r.value?r.value:null},k.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:we.set},k.attrHooks.contenteditable={set:function(t,e,n){we.set(t,""!==e&&e,n)}},k.each(["width","height"],function(t,n){k.attrHooks[n]={set:function(t,e){if(""===e)return t.setAttribute(n,"auto"),e}}})),g.style||(k.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Ae=/^(?:input|select|textarea|button|object)$/i,Ne=/^(?:a|area)$/i;k.fn.extend({prop:function(t,e){return Q(this,k.prop,t,e,1<arguments.length)},removeProp:function(t){return t=k.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),k.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,i=k.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):Ae.test(t.nodeName)||Ne.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.hrefNormalized||k.each(["href","src"],function(t,e){k.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),g.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),g.enctype||(k.propFix.enctype="encoding");var Pe=/[\t\r\n\f]/g;function De(t){return k.attr(t,"class")||""}k.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,l=0;if(k.isFunction(e))return this.each(function(t){k(this).addClass(e.call(this,t,De(this)))});if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[l++];)if(i=De(n),r=1===n.nodeType&&(" "+i+" ").replace(Pe," ")){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=k.trim(r))&&k.attr(n,"class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,l=0;if(k.isFunction(e))return this.each(function(t){k(this).removeClass(e.call(this,t,De(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[l++];)if(i=De(n),r=1===n.nodeType&&(" "+i+" ").replace(Pe," ")){for(s=0;o=t[s++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(a=k.trim(r))&&k.attr(n,"class",a)}return this},toggleClass:function(i,e){var o=typeof i;return"boolean"==typeof e&&"string"===o?e?this.addClass(i):this.removeClass(i):k.isFunction(i)?this.each(function(t){k(this).toggleClass(i.call(this,t,De(this),e),e)}):this.each(function(){var t,e,n,r;if("string"===o)for(e=0,n=k(this),r=i.match(O)||[];t=r[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==i&&"boolean"!==o||((t=De(this))&&k._data(this,"__className__",t),k.attr(this,"class",t||!1===i?"":k._data(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+De(n)+" ").replace(Pe," ").indexOf(e))return!0;return!1}}),k.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(t,n){k.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),k.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var Oe=w.location,Le=k.now(),Me=/\?/,Ie=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;k.parseJSON=function(t){if(w.JSON&&w.JSON.parse)return w.JSON.parse(t+"");var i,o=null,e=k.trim(t+"");return e&&!k.trim(e.replace(Ie,function(t,e,n,r){return i&&e&&(o=0),0===o?t:(i=n||e,o+=!r-!n,"")}))?Function("return "+e)():k.error("Invalid JSON: "+t)},k.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{w.DOMParser?e=(new w.DOMParser).parseFromString(t,"text/xml"):((e=new w.ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t))}catch(t){e=void 0}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+t),e};var Re=/#.*$/,Fe=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,He=/^(?:GET|HEAD)$/,Ve=/^\/\//,qe=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,We={},ze={},Ue="*/".concat("*"),$e=Oe.href,Xe=qe.exec($e.toLowerCase())||[];function Ye(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,r=0,i=t.toLowerCase().match(O)||[];if(k.isFunction(e))for(;n=i[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function Ke(e,i,o,s){var a={},l=e===ze;function c(t){var r;return a[t]=!0,k.each(e[t]||[],function(t,e){var n=e(i,o,s);return"string"!=typeof n||l||a[n]?l?!(r=n):void 0:(i.dataTypes.unshift(n),c(n),!1)}),r}return c(i.dataTypes[0])||!a["*"]&&c("*")}function Ge(t,e){var n,r,i=k.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&k.extend(!0,t,n),t}k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$e,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Xe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ue,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":k.parseJSON,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ge(Ge(t,k.ajaxSettings),e):Ge(k.ajaxSettings,t)},ajaxPrefilter:Ye(We),ajaxTransport:Ye(ze),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,u,h,p,d,f,i,v=k.ajaxSetup({},e),y=v.context||v,g=v.context&&(y.nodeType||y.jquery)?k(y):k.event,m=k.Deferred(),b=k.Callbacks("once memory"),_=v.statusCode||{},o={},s={},T=0,a="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===T){if(!i)for(i={};e=Be.exec(h);)i[e[1].toLowerCase()]=e[2];e=i[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===T?h:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return T||(t=s[n]=s[n]||t,o[t]=e),this},overrideMimeType:function(t){return T||(v.mimeType=t),this},statusCode:function(t){var e;if(t)if(T<2)for(e in t)_[e]=[_[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||a;return f&&f.abort(e),l(0,e),this}};if(m.promise(C).complete=b.add,C.success=C.done,C.error=C.fail,v.url=((t||v.url||$e)+"").replace(Re,"").replace(Ve,Xe[1]+"//"),v.type=e.method||e.type||v.method||v.type,v.dataTypes=k.trim(v.dataType||"*").toLowerCase().match(O)||[""],null==v.crossDomain&&(n=qe.exec(v.url.toLowerCase()),v.crossDomain=!(!n||n[1]===Xe[1]&&n[2]===Xe[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(Xe[3]||("http:"===Xe[1]?"80":"443")))),v.data&&v.processData&&"string"!=typeof v.data&&(v.data=k.param(v.data,v.traditional)),Ke(We,v,e,C),2===T)return C;for(r in(d=k.event&&v.global)&&0==k.active++&&k.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!He.test(v.type),u=v.url,v.hasContent||(v.data&&(u=v.url+=(Me.test(u)?"&":"?")+v.data,delete v.data),!1===v.cache&&(v.url=Fe.test(u)?u.replace(Fe,"$1_="+Le++):u+(Me.test(u)?"&":"?")+"_="+Le++)),v.ifModified&&(k.lastModified[u]&&C.setRequestHeader("If-Modified-Since",k.lastModified[u]),k.etag[u]&&C.setRequestHeader("If-None-Match",k.etag[u])),(v.data&&v.hasContent&&!1!==v.contentType||e.contentType)&&C.setRequestHeader("Content-Type",v.contentType),C.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Ue+"; q=0.01":""):v.accepts["*"]),v.headers)C.setRequestHeader(r,v.headers[r]);if(v.beforeSend&&(!1===v.beforeSend.call(y,C,v)||2===T))return C.abort();for(r in a="abort",{success:1,error:1,complete:1})C[r](v[r]);if(f=Ke(ze,v,e,C)){if(C.readyState=1,d&&g.trigger("ajaxSend",[C,v]),2===T)return C;v.async&&0<v.timeout&&(p=w.setTimeout(function(){C.abort("timeout")},v.timeout));try{T=1,f.send(o,l)}catch(t){if(!(T<2))throw t;l(-1,t)}}else l(-1,"No Transport");function l(t,e,n,r){var i,o,s,a,l,c=e;2!==T&&(T=2,p&&w.clearTimeout(p),f=void 0,h=r||"",C.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var r,i,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){l.unshift(s);break}if(l[0]in n)o=l[0];else{for(s in n){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}(v,C,n)),a=function(t,e,n,r){var i,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(i in c)if((a=i.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(v,a,C,i),i?(v.ifModified&&((l=C.getResponseHeader("Last-Modified"))&&(k.lastModified[u]=l),(l=C.getResponseHeader("etag"))&&(k.etag[u]=l)),204===t||"HEAD"===v.type?c="nocontent":304===t?c="notmodified":(c=a.state,o=a.data,i=!(s=a.error))):(s=c,!t&&c||(c="error",t<0&&(t=0))),C.status=t,C.statusText=(e||c)+"",i?m.resolveWith(y,[o,c,C]):m.rejectWith(y,[C,c,s]),C.statusCode(_),_=void 0,d&&g.trigger(i?"ajaxSuccess":"ajaxError",[C,v,i?o:s]),b.fireWith(y,[C,c]),d&&(g.trigger("ajaxComplete",[C,v]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,i){k[i]=function(t,e,n,r){return k.isFunction(e)&&(r=r||n,n=e,e=void 0),k.ajax(k.extend({url:t,type:i,dataType:r,data:e,success:n},k.isPlainObject(t)&&t))}}),k._evalUrl=function(t){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(e){if(k.isFunction(e))return this.each(function(t){k(this).wrapAll(e.call(this,t))});if(this[0]){var t=k(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(n){return k.isFunction(n)?this.each(function(t){k(this).wrapInner(n.call(this,t))}):this.each(function(){var t=k(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=k.isFunction(e);return this.each(function(t){k(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){k.nodeName(this,"body")||k(this).replaceWith(this.childNodes)}).end()}}),k.expr.filters.hidden=function(t){return g.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:function(t){if(!k.contains(t.ownerDocument||f,t))return!0;for(;t&&1===t.nodeType;){if("none"===((e=t).style&&e.style.display||k.css(e,"display"))||"hidden"===t.type)return!0;t=t.parentNode}var e;return!1}(t)},k.expr.filters.visible=function(t){return!k.expr.filters.hidden(t)};var Je=/%20/g,Qe=/\[\]$/,Ze=/\r?\n/g,tn=/^(?:submit|button|image|reset|file)$/i,en=/^(?:input|select|textarea|keygen)/i;function nn(n,t,r,i){var e;if(k.isArray(t))k.each(t,function(t,e){r||Qe.test(n)?i(n,e):nn(n+"["+("object"==typeof e&&null!=e?t:"")+"]",e,r,i)});else if(r||"object"!==k.type(t))i(n,t);else for(e in t)nn(n+"["+e+"]",t[e],r,i)}k.param=function(t,e){var n,r=[],i=function(t,e){e=k.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=k.ajaxSettings&&k.ajaxSettings.traditional),k.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){i(this.name,this.value)});else for(n in t)nn(n,t[n],e,i);return r.join("&").replace(Je,"+")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&en.test(this.nodeName)&&!tn.test(t)&&(this.checked||!Z.test(t))}).map(function(t,e){var n=k(this).val();return null==n?null:k.isArray(n)?k.map(n,function(t){return{name:e.name,value:t.replace(Ze,"\r\n")}}):{name:e.name,value:n.replace(Ze,"\r\n")}}).get()}}),k.ajaxSettings.xhr=void 0!==w.ActiveXObject?function(){return this.isLocal?ln():8<f.documentMode?an():/^(get|post|head|put|delete|options)$/i.test(this.type)&&an()||ln()}:an;var rn=0,on={},sn=k.ajaxSettings.xhr();function an(){try{return new w.XMLHttpRequest}catch(t){}}function ln(){try{return new w.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}w.attachEvent&&w.attachEvent("onunload",function(){for(var t in on)on[t](void 0,!0)}),g.cors=!!sn&&"withCredentials"in sn,(sn=g.ajax=!!sn)&&k.ajaxTransport(function(l){var c;if(!l.crossDomain||g.cors)return{send:function(t,o){var e,s=l.xhr(),a=++rn;if(s.open(l.type,l.url,l.async,l.username,l.password),l.xhrFields)for(e in l.xhrFields)s[e]=l.xhrFields[e];for(e in l.mimeType&&s.overrideMimeType&&s.overrideMimeType(l.mimeType),l.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)void 0!==t[e]&&s.setRequestHeader(e,t[e]+"");s.send(l.hasContent&&l.data||null),c=function(t,e){var n,r,i;if(c&&(e||4===s.readyState))if(delete on[a],c=void 0,s.onreadystatechange=k.noop,e)4!==s.readyState&&s.abort();else{i={},n=s.status,"string"==typeof s.responseText&&(i.text=s.responseText);try{r=s.statusText}catch(t){r=""}n||!l.isLocal||l.crossDomain?1223===n&&(n=204):n=i.text?200:404}i&&o(n,r,i,s.getAllResponseHeaders())},l.async?4===s.readyState?w.setTimeout(c):s.onreadystatechange=on[a]=c:c()},abort:function(){c&&c(void 0,!0)}}}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),k.ajaxTransport("script",function(e){if(e.crossDomain){var r,i=f.head||k("head")[0]||f.documentElement;return{send:function(t,n){(r=f.createElement("script")).async=!0,e.scriptCharset&&(r.charset=e.scriptCharset),r.src=e.url,r.onload=r.onreadystatechange=function(t,e){(e||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),r=null,e||n(200,"success"))},i.insertBefore(r,i.firstChild)},abort:function(){r&&r.onload(void 0,!0)}}}});var cn=[],un=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=cn.pop()||k.expando+"_"+Le++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,s=!1!==t.jsonp&&(un.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&un.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=k.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(un,"$1"+r):!1!==t.jsonp&&(t.url+=(Me.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=w[r],w[r]=function(){o=arguments},n.always(function(){void 0===i?k(w).removeProp(r):w[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,cn.push(r)),o&&k.isFunction(i)&&i(o[0]),o=i=void 0}),"script"}),k.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||f;var r=T.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=ht([t],e,i),i&&i.length&&k(i).remove(),k.merge([],r.childNodes))};var hn=k.fn.load;function pn(t){return k.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}k.fn.load=function(t,e,n){if("string"!=typeof t&&hn)return hn.apply(this,arguments);var r,i,o,s=this,a=t.indexOf(" ");return-1<a&&(r=k.trim(t.slice(a,t.length)),t=t.slice(0,a)),k.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),0<s.length&&k.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(r?k("<div>").append(k.parseHTML(t)).find(r):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k.expr.filters.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(t,e,n){var r,i,o,s,a,l,c=k.css(t,"position"),u=k(t),h={};"static"===c&&(t.style.position="relative"),a=u.offset(),o=k.css(t,"top"),l=k.css(t,"left"),("absolute"===c||"fixed"===c)&&-1<k.inArray("auto",[o,l])?(s=(r=u.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),k.isFunction(e)&&(e=e.call(t,n,k.extend({},a))),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+i),"using"in e?e.using.call(t,h):u.css(h)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(t=o.documentElement,k.contains(t,i)?(void 0!==i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=pn(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},r=this[0];return"fixed"===k.css(r,"position")?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),k.nodeName(t[0],"html")||(n=t.offset()),n.top+=k.css(t[0],"borderTopWidth",!0),n.left+=k.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-k.css(r,"marginTop",!0),left:e.left-n.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&!k.nodeName(t,"html")&&"static"===k.css(t,"position");)t=t.offsetParent;return t||Wt})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var o=/Y/.test(i);k.fn[e]=function(t){return Q(this,function(t,e,n){var r=pn(t);if(void 0===n)return r?i in r?r[i]:r.document.documentElement[e]:t[e];r?r.scrollTo(o?k(r).scrollLeft():n,o?n:k(r).scrollTop()):t[e]=n},e,t,arguments.length,null)}}),k.each(["top","left"],function(t,n){k.cssHooks[n]=Xt(g.pixelPosition,function(t,e){if(e)return e=Ut(t,n),Vt.test(e)?k(t).position()[n]+"px":e})}),k.each({Height:"height",Width:"width"},function(o,s){k.each({padding:"inner"+o,content:s,"":"outer"+o},function(r,t){k.fn[t]=function(t,e){var n=arguments.length&&(r||"boolean"!=typeof t),i=r||(!0===t||!0===e?"margin":"border");return Q(this,function(t,e,n){var r;return k.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+o],r["scroll"+o],t.body["offset"+o],r["offset"+o],r["client"+o])):void 0===n?k.css(t,e,i):k.style(t,e,n,i)},s,n?t:void 0,n,null)}})}),k.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),k.fn.size=function(){return this.length},k.fn.andSelf=k.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var dn=w.jQuery,fn=w.$;return k.noConflict=function(t){return w.$===k&&(w.$=fn),t&&w.jQuery===k&&(w.jQuery=dn),k},t||(w.jQuery=w.$=k),k}),window.VIDEOJS_NO_DYNAMIC_STYLE=!0,function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.videojs=e()}(this,function(){var p="6.6.2",t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,d="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},r={},i=(Object.freeze||Object)({default:r}),o=i&&r||i,s=void 0!==t?t:"undefined"!=typeof window?window:{};"undefined"!=typeof document?n=document:(n=s["__GLOBAL_DOCUMENT_CACHE@4"])||(n=s["__GLOBAL_DOCUMENT_CACHE@4"]=o);var a,l,c,u,f=n,h=d.navigator&&d.navigator.userAgent||"",v=/AppleWebKit\/([\d.]+)/i.exec(h),y=v?parseFloat(v.pop()):null,g=/iPad/i.test(h),m=/iPhone/i.test(h)&&!g,b=/iPod/i.test(h),_=m||g||b,T=(a=h.match(/OS (\d+)_/i))&&a[1]?a[1]:null,C=/Android/i.test(h),w=function(){var t=h.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return e&&n?parseFloat(t[1]+"."+t[2]):e||null}(),k=C&&/webkit/i.test(h)&&w<2.3,x=C&&w<5&&y<537,E=/Firefox/i.test(h),S=/Edge/i.test(h),j=!S&&/Chrome/i.test(h),A=(l=h.match(/Chrome\/(\d+)/))&&l[1]?parseFloat(l[1]):null,N=/MSIE\s8\.0/.test(h),P=(c=/MSIE\s(\d+)\.\d/.exec(h),!(u=c&&parseFloat(c[1]))&&/Trident\/7.0/i.test(h)&&/rv:11.0/.test(h)&&(u=11),u),D=/Safari/i.test(h)&&!j&&!C&&!S,O=D||_,L=it()&&("ontouchstart"in d||d.DocumentTouch&&d.document instanceof d.DocumentTouch),M=it()&&"backgroundSize"in d.document.createElement("video").style,I=(Object.freeze||Object)({IS_IPAD:g,IS_IPHONE:m,IS_IPOD:b,IS_IOS:_,IOS_VERSION:T,IS_ANDROID:C,ANDROID_VERSION:w,IS_OLD_ANDROID:k,IS_NATIVE_ANDROID:x,IS_FIREFOX:E,IS_EDGE:S,IS_CHROME:j,CHROME_VERSION:A,IS_IE8:N,IE_VERSION:P,IS_SAFARI:D,IS_ANY_SAFARI:O,TOUCH_ENABLED:L,BACKGROUND_SIZE_SUPPORTED:M}),R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},B=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},H=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},V=function(t,e){return t.raw=e,t},q=Object.prototype.toString,W=function(t){return $(t)?Object.keys(t):[]};function z(e,n){W(e).forEach(function(t){return n(e[t],t)})}function U(n){for(var t=arguments.length,e=Array(1<t?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[n].concat(e)):(e.forEach(function(t){t&&z(t,function(t,e){n[e]=t})}),n)}function $(t){return!!t&&"object"===(void 0===t?"undefined":R(t))}function X(t){return $(t)&&"[object Object]"===q.call(t)&&t.constructor===Object}var Y=void 0,K="info",G=[],J=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!!P&&P<11,r=Y.levels[K],i=new RegExp("^("+r+")$");if("log"!==t&&e.unshift(t.toUpperCase()+":"),G&&G.push([].concat(e)),e.unshift("VIDEOJS:"),d.console){var o=d.console[t];o||"debug"!==t||(o=d.console.info||d.console.log),o&&r&&i.test(t)&&(n&&(e=e.map(function(e){if($(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}).join(" ")),o.apply?o[Array.isArray(e)?"apply":"call"](d.console,e):o(e))}};(Y=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];J("log",e)}).levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:K},Y.level=function(t){if("string"==typeof t){if(!Y.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');K=t}return K},Y.history=function(){return G?[].concat(G):[]},Y.history.clear=function(){G&&(G.length=0)},Y.history.disable=function(){null!==G&&(G.length=0,G=null)},Y.history.enable=function(){null===G&&(G=[])},Y.error=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return J("error",e)},Y.warn=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return J("warn",e)},Y.debug=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return J("debug",e)};var Q=Y;var Z=function(t){for(var e="",n=0;n<arguments.length;n++)e+=t[n].replace(/\n\r?\s*/g,"")+(arguments[n+1]||"");return e};function tt(t,e){if(!t||!e)return"";if("function"==typeof d.getComputedStyle){var n=d.getComputedStyle(t);return n?n[e]:""}return t.currentStyle[e]||""}var et=V(["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 ","."]);function nt(t){return"string"==typeof t&&/\S/.test(t)}function rt(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function it(){return f===d.document&&void 0!==f.createElement}function ot(t){return $(t)&&1===t.nodeType}function st(){try{return d.parent!==d.self}catch(t){return!0}}function at(r){return function(t,e){if(!nt(t))return f[r](null);nt(e)&&(e=f.querySelector(e));var n=ot(e)?e:f;return n[r]&&n[r](t)}}function lt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"div",n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],i=f.createElement(t);return Object.getOwnPropertyNames(n).forEach(function(t){var e=n[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(Q.warn(Z(et,t,e)),i.setAttribute(t,e)):"textContent"===t?ct(i,e):i[t]=e}),Object.getOwnPropertyNames(e).forEach(function(t){i.setAttribute(t,e[t])}),r&&jt(i,r),i}function ct(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function ut(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function ht(t,e){return rt(e),t.classList?t.classList.contains(e):(n=e,new RegExp("(^|\\s)"+n+"($|\\s)")).test(t.className);var n}function pt(t,e){return t.classList?t.classList.add(e):ht(t,e)||(t.className=(t.className+" "+e).trim()),t}function dt(t,e){return t.classList?t.classList.remove(e):(rt(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function ft(t,e,n){var r=ht(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!r),n!==r)return n?pt(t,e):dt(t,e),t}function vt(n,r){Object.getOwnPropertyNames(r).forEach(function(t){var e=r[t];null==e||!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})}function yt(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&0<t.attributes.length)for(var r=t.attributes,i=r.length-1;0<=i;i--){var o=r[i].name,s=r[i].value;"boolean"!=typeof t[o]&&-1===n.indexOf(","+o+",")||(s=null!==s),e[o]=s}return e}function gt(t,e){return t.getAttribute(e)}function mt(t,e,n){t.setAttribute(e,n)}function bt(t,e){t.removeAttribute(e)}function _t(){f.body.focus(),f.onselectstart=function(){return!1}}function Tt(){f.onselectstart=function(){return!0}}function Ct(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(tt(t,"height"))),n.width||(n.width=parseFloat(tt(t,"width"))),n}}function wt(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=f.documentElement,r=f.body,i=n.clientLeft||r.clientLeft||0,o=d.pageXOffset||r.scrollLeft,s=e.left+o-i,a=n.clientTop||r.clientTop||0,l=d.pageYOffset||r.scrollTop,c=e.top+l-a;return{left:Math.round(s),top:Math.round(c)}}function kt(t,e){var n={},r=wt(t),i=t.offsetWidth,o=t.offsetHeight,s=r.top,a=r.left,l=e.pageY,c=e.pageX;return e.changedTouches&&(c=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(s-l+o)/o)),n.x=Math.max(0,Math.min(1,(c-a)/i)),n}function xt(t){return $(t)&&3===t.nodeType}function Et(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function St(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),ot(t)||xt(t)?t:"string"==typeof t&&/\S/.test(t)?f.createTextNode(t):void 0}).filter(function(t){return t})}function jt(e,t){return St(t).forEach(function(t){return e.appendChild(t)}),e}function At(t,e){return jt(Et(t),e)}function Nt(t){return void 0===t.button&&void 0===t.buttons||(0===t.button&&void 0===t.buttons||(9===P||0===t.button&&1===t.buttons))}var Pt=at("querySelector"),Dt=at("querySelectorAll"),Ot=(Object.freeze||Object)({isReal:it,isEl:ot,isInFrame:st,createEl:lt,textContent:ct,prependTo:ut,hasClass:ht,addClass:pt,removeClass:dt,toggleClass:ft,setAttributes:vt,getAttributes:yt,getAttribute:gt,setAttribute:mt,removeAttribute:bt,blockTextSelection:_t,unblockTextSelection:Tt,getBoundingClientRect:Ct,findPosition:wt,getPointerPosition:kt,isTextNode:xt,emptyEl:Et,normalizeContent:St,appendContent:jt,insertContent:At,isSingleLeftClick:Nt,$:Pt,$$:Dt}),Lt=1;function Mt(){return Lt++}var It={},Rt="vdata"+(new Date).getTime();function Ft(t){var e=t[Rt];return e||(e=t[Rt]=Mt()),It[e]||(It[e]={}),It[e]}function Bt(t){var e=t[Rt];return!!e&&!!Object.getOwnPropertyNames(It[e]).length}function Ht(e){var t=e[Rt];if(t){delete It[t];try{delete e[Rt]}catch(t){e.removeAttribute?e.removeAttribute(Rt):e[Rt]=null}}}function Vt(t,e){var n=Ft(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Ht(t)}function qt(e,n,t,r){t.forEach(function(t){e(n,t,r)})}function Wt(t){function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped){var r=t||d.event;for(var i in t={},r)"layerX"!==i&&"layerY"!==i&&"keyLocation"!==i&&"webkitMovementX"!==i&&"webkitMovementY"!==i&&("returnValue"===i&&r.preventDefault||(t[i]=r[i]));if(t.target||(t.target=t.srcElement||f),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){r.preventDefault&&r.preventDefault(),t.returnValue=!1,r.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),t.cancelBubble=!0,r.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&void 0!==t.clientX){var o=f.documentElement,s=f.body;t.pageX=t.clientX+(o&&o.scrollLeft||s&&s.scrollLeft||0)-(o&&o.clientLeft||s&&s.clientLeft||0),t.pageY=t.clientY+(o&&o.scrollTop||s&&s.scrollTop||0)-(o&&o.clientTop||s&&s.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var zt=!1;!function(){try{var t=Object.defineProperty({},"passive",{get:function(){zt=!0}});d.addEventListener("test",null,t),d.removeEventListener("test",null,t)}catch(t){}}();var Ut=["touchstart","touchmove"];function $t(s,t,e){if(Array.isArray(t))return qt($t,s,t,e);var a=Ft(s);if(a.handlers||(a.handlers={}),a.handlers[t]||(a.handlers[t]=[]),e.guid||(e.guid=Mt()),a.handlers[t].push(e),a.dispatcher||(a.disabled=!1,a.dispatcher=function(t,e){if(!a.disabled){t=Wt(t);var n=a.handlers[t.type];if(n)for(var r=n.slice(0),i=0,o=r.length;i<o&&!t.isImmediatePropagationStopped();i++)try{r[i].call(s,t,e)}catch(t){Q.error(t)}}}),1===a.handlers[t].length)if(s.addEventListener){var n=!1;zt&&-1<Ut.indexOf(t)&&(n={passive:!0}),s.addEventListener(t,a.dispatcher,n)}else s.attachEvent&&s.attachEvent("on"+t,a.dispatcher)}function Xt(t,e,n){if(Bt(t)){var r=Ft(t);if(r.handlers){if(Array.isArray(e))return qt(Xt,t,e,n);var i=function(t,e){r.handlers[e]=[],Vt(t,e)};if(void 0!==e){var o=r.handlers[e];if(o)if(n){if(n.guid)for(var s=0;s<o.length;s++)o[s].guid===n.guid&&o.splice(s--,1);Vt(t,e)}else i(t,e)}else for(var a in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},a)&&i(t,a)}}}function Yt(t,e,n){var r=Bt(t)?Ft(t):{},i=t.parentNode||t.ownerDocument;if("string"==typeof e&&(e={type:e,target:t}),e=Wt(e),r.dispatcher&&r.dispatcher.call(t,e,n),i&&!e.isPropagationStopped()&&!0===e.bubbles)Yt.call(null,i,e,n);else if(!i&&!e.defaultPrevented){var o=Ft(e.target);e.target[e.type]&&(o.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),o.disabled=!1)}return!e.defaultPrevented}function Kt(e,n,r){if(Array.isArray(n))return qt(Kt,e,n,r);var t=function t(){Xt(e,n,t),r.apply(this,arguments)};t.guid=r.guid=r.guid||Mt(),$t(e,n,t)}var Gt=(Object.freeze||Object)({fixEvent:Wt,on:$t,off:Xt,trigger:Yt,one:Kt}),Jt=!1,Qt=void 0,Zt=function(){if(it()){var t=f.getElementsByTagName("video"),e=f.getElementsByTagName("audio"),n=f.getElementsByTagName("video-js"),r=[];if(t&&0<t.length)for(var i=0,o=t.length;i<o;i++)r.push(t[i]);if(e&&0<e.length)for(var s=0,a=e.length;s<a;s++)r.push(e[s]);if(n&&0<n.length)for(var l=0,c=n.length;l<c;l++)r.push(n[l]);if(r&&0<r.length)for(var u=0,h=r.length;u<h;u++){var p=r[u];if(!p||!p.getAttribute){te(1);break}void 0===p.player&&null!==p.getAttribute("data-setup")&&Qt(p)}else Jt||te(1)}};function te(t,e){e&&(Qt=e),d.setTimeout(Zt,t)}it()&&"complete"===f.readyState?Jt=!0:Kt(d,"load",function(){Jt=!0});var ee=function(t){var e=f.createElement("style");return e.className=t,e},ne=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},re=function(t,e,n){e.guid||(e.guid=Mt());var r=function(){return e.apply(t,arguments)};return r.guid=n?n+"_"+e.guid:e.guid,r},ie=function(e,n){var r=Date.now();return function(){var t=Date.now();n<=t-r&&(e.apply(void 0,arguments),r=t)}},oe=function(){};oe.prototype.allowedEvents_={},oe.prototype.addEventListener=oe.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},$t(this,t,e),this.addEventListener=n},oe.prototype.removeEventListener=oe.prototype.off=function(t,e){Xt(this,t,e)},oe.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},Kt(this,t,e),this.addEventListener=n},oe.prototype.dispatchEvent=oe.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=Wt(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),Yt(this,t)};var se=function(e){return e instanceof oe||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},ae=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},le=function(t){if(!t.nodeName&&!se(t))throw new Error("Invalid target; must be a DOM node or evented object.")},ce=function(t){if(!ae(t))throw new Error("Invalid event type; must be a non-empty string or array.")},ue=function(t){if("function"!=typeof t)throw new Error("Invalid listener; must be a function.")},he=function(t,e){var n=e.length<3||e[0]===t||e[0]===t.eventBusEl_,r=void 0,i=void 0,o=void 0;return n?(r=t.eventBusEl_,3<=e.length&&e.shift(),i=e[0],o=e[1]):(r=e[0],i=e[1],o=e[2]),le(r),ce(i),ue(o),{isTargetingSelf:n,target:r,type:i,listener:o=re(t,o)}},pe=function(t,e,n,r){le(t),t.nodeName?Gt[e](t,n,r):t[e](n,r)},de={on:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=he(this,n),o=i.isTargetingSelf,s=i.target,a=i.type,l=i.listener;if(pe(s,"on",a,l),!o){var c=function(){return t.off(s,a,l)};c.guid=l.guid;var u=function(){return t.off("dispose",c)};u.guid=l.guid,pe(this,"on","dispose",c),pe(s,"on","dispose",u)}},one:function(){for(var i=this,t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=he(this,e),o=r.isTargetingSelf,s=r.target,a=r.type,l=r.listener;if(o)pe(s,"one",a,l);else{var c=function t(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];i.off(s,a,t),l.apply(null,n)};c.guid=l.guid,pe(s,"one",a,c)}},off:function(t,e,n){if(!t||ae(t))Xt(this.eventBusEl_,t,e);else{var r=t,i=e;le(r),ce(i),ue(n),n=re(this,n),this.off("dispose",n),r.nodeName?(Xt(r,i,n),Xt(r,"dispose",n)):se(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(t,e){return Yt(this.eventBusEl_,t,e)}};function fe(t){var e=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).eventBusKey;if(e){if(!t[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');t.eventBusEl_=t[e]}else t.eventBusEl_=lt("span",{className:"vjs-event-bus"});return U(t,de),t.on("dispose",function(){t.off(),d.setTimeout(function(){t.eventBusEl_=null},0)}),t}var ve={state:{},setState:function(t){var n=this;"function"==typeof t&&(t=t());var r=void 0;return z(t,function(t,e){n.state[e]!==t&&((r=r||{})[e]={from:n.state[e],to:t}),n.state[e]=t}),r&&se(this)&&this.trigger({changes:r,type:"statechanged"}),r}};function ye(t,e){return U(t,ve),t.state=U({},t.state,e),"function"==typeof t.handleStateChanged&&se(t)&&t.on("statechanged",t.handleStateChanged),t}function ge(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function me(){for(var n={},t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.forEach(function(t){t&&z(t,function(t,e){X(t)?(X(n[e])||(n[e]={}),n[e]=me(n[e],t)):n[e]=t})}),n}var be=function(){function c(t,e,n){if(F(this,c),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=me({},this.options_),e=this.options_=me(this.options_,e),this.id_=e.id||e.el&&e.el.id,!this.id_){var r=t&&t.id&&t.id()||"no_player";this.id_=r+"_component_"+Mt()}this.name_=e.name||null,e.el?this.el_=e.el:!1!==e.createEl&&(this.el_=this.createEl()),!1!==e.evented&&fe(this,{eventBusKey:this.el_?"el_":null}),ye(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},!(this.childNameIndex_={})!==e.initChildren&&this.initChildren(),this.ready(n),!1!==e.reportTouchActivity&&this.enableTouchActivity()}return c.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;0<=t;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Ht(this.el_),this.el_=null),this.player_=null},c.prototype.player=function(){return this.player_},c.prototype.options=function(t){return Q.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t&&(this.options_=me(this.options_,t)),this.options_},c.prototype.el=function(){return this.el_},c.prototype.createEl=function(t,e,n){return lt(t,e,n)},c.prototype.localize=function(t,i){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:t,n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[n],s=n&&n.split("-")[0],a=r&&r[s],l=e;return o&&o[t]?l=o[t]:a&&a[t]&&(l=a[t]),i&&(l=l.replace(/\{(\d+)\}/g,function(t,e){var n=i[e-1],r=n;return void 0===n&&(r=t),r})),l},c.prototype.contentEl=function(){return this.contentEl_||this.el_},c.prototype.id=function(){return this.id_},c.prototype.name=function(){return this.name_},c.prototype.children=function(){return this.children_},c.prototype.getChildById=function(t){return this.childIndex_[t]},c.prototype.getChild=function(t){if(t)return t=ge(t),this.childNameIndex_[t]},c.prototype.addChild=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,i=void 0;if("string"==typeof t){i=ge(t);var o=e.componentClass||i;e.name=i;var s=c.getComponent(o);if(!s)throw new Error("Component "+o+" does not exist");if("function"!=typeof s)return null;r=new s(this.player_||this,e)}else r=t;if(this.children_.splice(n,0,r),"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(i=i||r.name&&ge(r.name()))&&(this.childNameIndex_[i]=r),"function"==typeof r.el&&r.el()){var a=this.contentEl().children[n]||null;this.contentEl().insertBefore(r.el(),a)}return r},c.prototype.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;0<=n;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var r=t.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},c.prototype.initChildren=function(){var i=this,r=this.options_.children;if(r){var o=this.options_,t=void 0,n=c.getComponent("Tech");(t=Array.isArray(r)?r:Object.keys(r)).concat(Object.keys(this.options_).filter(function(e){return!t.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(t){var e=void 0,n=void 0;return"string"==typeof t?n=r[e=t]||i.options_[e]||{}:(e=t.name,n=t),{name:e,opts:n}}).filter(function(t){var e=c.getComponent(t.opts.componentClass||ge(t.name));return e&&!n.isTech(e)}).forEach(function(t){var e=t.name,n=t.opts;if(void 0!==o[e]&&(n=o[e]),!1!==n){!0===n&&(n={}),n.playerOptions=i.options_.playerOptions;var r=i.addChild(e,n);r&&(i[e]=r)}})}},c.prototype.buildCSSClass=function(){return""},c.prototype.ready=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},c.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&0<t.length&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},c.prototype.$=function(t,e){return Pt(t,e||this.contentEl())},c.prototype.$$=function(t,e){return Dt(t,e||this.contentEl())},c.prototype.hasClass=function(t){return ht(this.el_,t)},c.prototype.addClass=function(t){pt(this.el_,t)},c.prototype.removeClass=function(t){dt(this.el_,t)},c.prototype.toggleClass=function(t,e){ft(this.el_,t,e)},c.prototype.show=function(){this.removeClass("vjs-hidden")},c.prototype.hide=function(){this.addClass("vjs-hidden")},c.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},c.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},c.prototype.getAttribute=function(t){return gt(this.el_,t)},c.prototype.setAttribute=function(t,e){mt(this.el_,t,e)},c.prototype.removeAttribute=function(t){bt(this.el_,t)},c.prototype.width=function(t,e){return this.dimension("width",t,e)},c.prototype.height=function(t,e){return this.dimension("height",t,e)},c.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},c.prototype.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 r=this.el_.style[t],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+ge(t)],10)},c.prototype.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"==typeof d.getComputedStyle){var n=d.getComputedStyle(this.el_);e=n.getPropertyValue(t)||n[t]}if(0===(e=parseFloat(e))){var r="offset"+ge(t);e=this.el_[r]}return e},c.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},c.prototype.currentWidth=function(){return this.currentDimension("width")},c.prototype.currentHeight=function(){return this.currentDimension("height")},c.prototype.focus=function(){this.el_.focus()},c.prototype.blur=function(){this.el_.blur()},c.prototype.emitTapEvents=function(){var e=0,r=null,i=void 0;this.on("touchstart",function(t){1===t.touches.length&&(r={pageX:t.touches[0].pageX,pageY:t.touches[0].pageY},e=(new Date).getTime(),i=!0)}),this.on("touchmove",function(t){if(1<t.touches.length)i=!1;else if(r){var e=t.touches[0].pageX-r.pageX,n=t.touches[0].pageY-r.pageY;10<Math.sqrt(e*e+n*n)&&(i=!1)}});var t=function(){i=!1};this.on("touchleave",t),this.on("touchcancel",t),this.on("touchend",function(t){!(r=null)===i&&((new Date).getTime()-e<200&&(t.preventDefault(),this.trigger("tap")))})},c.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=re(this.player(),this.player().reportUserActivity),n=void 0;this.on("touchstart",function(){e(),this.clearInterval(n),n=this.setInterval(e,250)});var t=function(t){e(),this.clearInterval(n)};this.on("touchmove",e),this.on("touchend",t),this.on("touchcancel",t)}},c.prototype.setTimeout=function(t,e){var n=this;t=re(this,t);var r=d.setTimeout(t,e),i=function(){return n.clearTimeout(r)};return i.guid="vjs-timeout-"+r,this.on("dispose",i),r},c.prototype.clearTimeout=function(t){d.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},c.prototype.setInterval=function(t,e){var n=this;t=re(this,t);var r=d.setInterval(t,e),i=function(){return n.clearInterval(r)};return i.guid="vjs-interval-"+r,this.on("dispose",i),r},c.prototype.clearInterval=function(t){d.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},c.prototype.requestAnimationFrame=function(t){var e=this;if(this.supportsRaf_){t=re(this,t);var n=d.requestAnimationFrame(t),r=function(){return e.cancelAnimationFrame(n)};return r.guid="vjs-raf-"+n,this.on("dispose",r),n}return this.setTimeout(t,1e3/60)},c.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){d.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},c.registerComponent=function(t,e){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n=c.getComponent("Tech"),r=n&&n.isTech(e),i=c===e||c.prototype.isPrototypeOf(e.prototype);if(r||!i){var o=void 0;throw o=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+o+".")}t=ge(t),c.components_||(c.components_={});var s=c.getComponent("Player");if("Player"===t&&s&&s.players){var a=s.players,l=Object.keys(a);if(a&&0<l.length&&l.map(function(t){return a[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return c.components_[t]=e},c.getComponent=function(t){if(t)return t=ge(t),c.components_&&c.components_[t]?c.components_[t]:void 0},c}();function _e(t,e,n,r){return function(t,e,n){if("number"!=typeof e||e<0||n<e)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}(t,r,n.length-1),n[r][e]}function Te(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:_e.bind(null,"start",0,t),end:_e.bind(null,"end",1,t)}}function Ce(t,e){return Array.isArray(t)?Te(t):void 0===t||void 0===e?Te():Te([[t,e]])}function we(t,e){var n=0,r=void 0,i=void 0;if(!e)return 0;t&&t.length||(t=Ce(0,0));for(var o=0;o<t.length;o++)r=t.start(o),e<(i=t.end(o))&&(i=e),n+=i-r;return n/e}be.prototype.supportsRaf_="function"==typeof d.requestAnimationFrame&&"function"==typeof d.cancelAnimationFrame,be.registerComponent("Component",be);for(var ke={},xe=[["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"]],Ee=xe[0],Se=void 0,je=0;je<xe.length;je++)if(xe[je][1]in f){Se=xe[je];break}if(Se)for(var Ae=0;Ae<Se.length;Ae++)ke[Ee[Ae]]=Se[Ae];function Ne(t){if(t instanceof Ne)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:$(t)&&("number"==typeof t.code&&(this.code=t.code),U(this,t)),this.message||(this.message=Ne.defaultMessages[this.code]||"")}Ne.prototype.code=0,Ne.prototype.message="",Ne.prototype.status=null,Ne.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ne.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 Pe=0;Pe<Ne.errorTypes.length;Pe++)Ne[Ne.errorTypes[Pe]]=Pe,Ne.prototype[Ne.errorTypes[Pe]]=Pe;var De=function(t,e){var n,r=null;try{n=JSON.parse(t,e)}catch(t){r=t}return[r,n]};function Oe(t){return void 0!==t&&"function"==typeof t.then}function Le(t){Oe(t)&&t.then(null,function(t){})}var Me=function(r){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,e,n){return r[e]&&(t[e]=r[e]),t},{cues:r.cues&&Array.prototype.map.call(r.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},Ie=function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=Me(t.track);return t.src&&(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===n.indexOf(t)}).map(Me))},Re=function(t,n){return t.forEach(function(t){var e=n.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return e.addCue(t)})}),n.textTracks()},Fe="vjs-modal-dialog",Be=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.opened_=n.hasBeenOpened_=n.hasBeenFilled_=!1,n.closeable(!n.options_.uncloseable),n.content(n.options_.content),n.contentEl_=lt("div",{className:Fe+"-content"},{role:"document"}),n.descEl_=lt("p",{className:Fe+"-description vjs-control-text",id:n.el().getAttribute("aria-describedby")}),ct(n.descEl_,n.description()),n.el_.appendChild(n.descEl_),n.el_.appendChild(n.contentEl_),n}return B(i,r),i.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},i.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,r.prototype.dispose.call(this)},i.prototype.buildCSSClass=function(){return Fe+" vjs-hidden "+r.prototype.buildCSSClass.call(this)},i.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},i.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},i.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},i.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",re(this,this.handleKeyPress)),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},i.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},i.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",re(this,this.handleKeyPress)),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},i.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},i.prototype.fill=function(){this.fillWith(this.content())},i.prototype.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,r=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),At(e,t),this.trigger("modalfill"),r?n.insertBefore(e,r):n.appendChild(e);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},i.prototype.empty=function(){this.trigger("beforemodalempty"),Et(this.contentEl()),this.trigger("modalempty")},i.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},i.prototype.conditionalFocus_=function(){var t=f.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&&(this.previouslyActiveEl_=t,this.focus(),this.on(f,"keydown",this.handleKeyDown))},i.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(f,"keydown",this.handleKeyDown)},i.prototype.handleKeyDown=function(t){if(9===t.which){for(var e=this.focusableEls_(),n=this.el_.querySelector(":focus"),r=void 0,i=0;i<e.length;i++)if(n===e[i]){r=i;break}f.activeElement===this.el_&&(r=0),t.shiftKey&&0===r?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||r!==e.length-1||(e[0].focus(),t.preventDefault())}},i.prototype.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(t){return(t instanceof d.HTMLAnchorElement||t instanceof d.HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof d.HTMLInputElement||t instanceof d.HTMLSelectElement||t instanceof d.HTMLTextAreaElement||t instanceof d.HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof d.HTMLIFrameElement||t instanceof d.HTMLObjectElement||t instanceof d.HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")})},i}(be);Be.prototype.options_={pauseOnOpen:!0,temporary:!0},be.registerComponent("ModalDialog",Be);var He=function(o){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;F(this,s);var n=H(this,o.call(this));if(!e&&(e=n,N))for(var r in e=f.createElement("custom"),s.prototype)"constructor"!==r&&(e[r]=s.prototype[r]);e.tracks_=[],Object.defineProperty(e,"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)e.addTrack(t[i]);return H(n,e)}return B(s,o),s.prototype.addTrack=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},s.prototype.removeTrack=function(t){for(var e=void 0,n=0,r=this.length;n<r;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack"})},s.prototype.getTrackById=function(t){for(var e=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===t){e=i;break}}return e},s}(oe);for(var Ve in He.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},He.prototype.allowedEvents_)He.prototype["on"+Ve]=null;var qe=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].enabled=!1)},We=function(s){function a(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];F(this,a);for(var n=void 0,r=e.length-1;0<=r;r--)if(e[r].enabled){qe(e,e[r]);break}if(N){for(var i in n=f.createElement("custom"),He.prototype)"constructor"!==i&&(n[i]=He.prototype[i]);for(var o in a.prototype)"constructor"!==o&&(n[o]=a.prototype[o])}return(n=t=H(this,s.call(this,e,n))).changing_=!1,H(t,n)}return B(a,s),a.prototype.addTrack=function(t){var e=this;t.enabled&&qe(this,t),s.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",function(){e.changing_||(e.changing_=!0,qe(e,t),e.changing_=!1,e.trigger("change"))})},a}(He),ze=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].selected=!1)},Ue=function(s){function a(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];F(this,a);for(var n=void 0,r=e.length-1;0<=r;r--)if(e[r].selected){ze(e,e[r]);break}if(N){for(var i in n=f.createElement("custom"),He.prototype)"constructor"!==i&&(n[i]=He.prototype[i]);for(var o in a.prototype)"constructor"!==o&&(n[o]=a.prototype[o])}return(n=t=H(this,s.call(this,e,n))).changing_=!1,Object.defineProperty(n,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),H(t,n)}return B(a,s),a.prototype.addTrack=function(t){var e=this;t.selected&&ze(this,t),s.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){e.changing_||(e.changing_=!0,ze(e,t),e.changing_=!1,e.trigger("change"))})},a}(He),$e=function(o){function s(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];F(this,s);var n=void 0;if(N){for(var r in n=f.createElement("custom"),He.prototype)"constructor"!==r&&(n[r]=He.prototype[r]);for(var i in s.prototype)"constructor"!==i&&(n[i]=s.prototype[i])}return t=H(this,o.call(this,e,n)),H(n=t,n)}return B(s,o),s.prototype.addTrack=function(t){o.prototype.addTrack.call(this,t),t.addEventListener("modechange",re(this,function(){this.trigger("change")}));-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",re(this,function(){this.trigger("selectedlanguagechange")}))},s}(He),Xe=function(){function o(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];F(this,o);var e=this;if(N)for(var n in e=f.createElement("custom"),o.prototype)"constructor"!==n&&(e[n]=o.prototype[n]);e.trackElements_=[],Object.defineProperty(e,"length",{get:function(){return this.trackElements_.length}});for(var r=0,i=t.length;r<i;r++)e.addTrackElement_(t[r]);if(N)return e}return o.prototype.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},o.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,n=0,r=this.trackElements_.length;n<r;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},o.prototype.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;e<n;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},o}(),Ye=function(){function r(t){F(this,r);var e=this;if(N)for(var n in e=f.createElement("custom"),r.prototype)"constructor"!==n&&(e[n]=r.prototype[n]);if(r.prototype.setCues_.call(e,t),Object.defineProperty(e,"length",{get:function(){return this.length_}}),N)return e}return r.prototype.setCues_=function(t){var e=this.length||0,n=0,r=t.length;this.cues_=t,this.length_=t.length;var i=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<r)for(n=e;n<r;n++)i.call(this,n)},r.prototype.getCueById=function(t){for(var e=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===t){e=i;break}}return e},r}(),Ke={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Ge={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Je={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Qe={disabled:"disabled",hidden:"hidden",showing:"showing"},Ze=function(a){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};F(this,l);var e=H(this,a.call(this)),n=e;if(N)for(var r in n=f.createElement("custom"),l.prototype)"constructor"!==r&&(n[r]=l.prototype[r]);var i={id:t.id||"vjs_track_"+Mt(),kind:t.kind||"",label:t.label||"",language:t.language||""},o=function(t){Object.defineProperty(n,t,{get:function(){return i[t]},set:function(){}})};for(var s in i)o(s);return H(e,n)}return B(l,a),l}(oe),tn=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=f.createElement("a");n.href=t;var r=""===n.host&&"file:"!==n.protocol,i=void 0;r&&((i=f.createElement("div")).innerHTML='<a href="'+t+'"></a>',n=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),f.body.appendChild(i));for(var o={},s=0;s<e.length;s++)o[e[s]]=n[e[s]];return"http:"===o.protocol&&(o.host=o.host.replace(/:80$/,"")),"https:"===o.protocol&&(o.host=o.host.replace(/:443$/,"")),o.protocol||(o.protocol=d.location.protocol),r&&f.body.removeChild(i),o},en=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},nn=function(t){var e=d.location,n=tn(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host},rn=(Object.freeze||Object)({parseUrl:tn,getAbsoluteURL:function(t){if(!t.match(/^https?:\/\//)){var e=f.createElement("div");e.innerHTML='<a href="'+t+'">x</a>',t=e.firstChild.href}return t},getFileExtension:en,isCrossOrigin:nn}),on=function(t){var e=sn.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)},sn=Object.prototype.toString;var an=e(function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}}),ln=function(t,e,n){if(!on(e))throw new TypeError("iterator must be a function");arguments.length<3&&(n=this);"[object Array]"===cn.call(t)?function(t,e,n){for(var r=0,i=t.length;r<i;r++)un.call(t,r)&&e.call(n,t[r],r,t)}(t,e,n):"string"==typeof t?function(t,e,n){for(var r=0,i=t.length;r<i;r++)e.call(n,t.charAt(r),r,t)}(t,e,n):function(t,e,n){for(var r in t)un.call(t,r)&&e.call(n,t[r],r,t)}(t,e,n)},cn=Object.prototype.toString,un=Object.prototype.hasOwnProperty;var hn=function(t){if(!t)return{};var o={};return ln(an(t).split("\n"),function(t){var e,n=t.indexOf(":"),r=an(t.slice(0,n)).toLowerCase(),i=an(t.slice(n+1));void 0===o[r]?o[r]=i:(e=o[r],"[object Array]"===Object.prototype.toString.call(e)?o[r].push(i):o[r]=[o[r],i])}),o},pn=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var r in n)dn.call(n,r)&&(t[r]=n[r])}return t},dn=Object.prototype.hasOwnProperty;var fn=yn;function vn(t,e,n){var r=t;return on(e)?(n=e,"string"==typeof t&&(r={uri:t})):r=pn(e,{uri:t}),r.callback=n,r}function yn(t,e,n){return gn(e=vn(t,e,n))}function gn(r){if(void 0===r.callback)throw new Error("callback argument missing");var i=!1,o=function(t,e,n){i||(i=!0,r.callback(t,e,n))};function e(t){return clearTimeout(l),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,o(t,v)}function t(){if(!s){var t;clearTimeout(l),t=r.useXDR&&void 0===a.status?200:1223===a.status?204:a.status;var e=v,n=null;return 0!==t?(e={body:function(){var t=void 0;if(t=a.response?a.response:a.responseText||function(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}(a),f)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:t,method:u,headers:{},url:c,rawRequest:a},a.getAllResponseHeaders&&(e.headers=hn(a.getAllResponseHeaders()))):n=new Error("Internal XMLHttpRequest Error"),o(n,e,e.body)}}var n,s,a=r.xhr||null;a||(a=r.cors||r.useXDR?new yn.XDomainRequest:new yn.XMLHttpRequest);var l,c=a.url=r.uri||r.url,u=a.method=r.method||"GET",h=r.body||r.data,p=a.headers=r.headers||{},d=!!r.sync,f=!1,v={body:void 0,headers:{},statusCode:0,method:u,url:c,rawRequest:a};if("json"in r&&!1!==r.json&&(f=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==u&&"HEAD"!==u&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(!0===r.json?h:r.json))),a.onreadystatechange=function(){4===a.readyState&&setTimeout(t,0)},a.onload=t,a.onerror=e,a.onprogress=function(){},a.onabort=function(){s=!0},a.ontimeout=e,a.open(u,c,!d,r.username,r.password),d||(a.withCredentials=!!r.withCredentials),!d&&0<r.timeout&&(l=setTimeout(function(){if(!s){s=!0,a.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",e(t)}},r.timeout)),a.setRequestHeader)for(n in p)p.hasOwnProperty(n)&&a.setRequestHeader(n,p[n]);else if(r.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(r.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in r&&(a.responseType=r.responseType),"beforeSend"in r&&"function"==typeof r.beforeSend&&r.beforeSend(a),a.send(h||null),a}yn.XMLHttpRequest=d.XMLHttpRequest||function(){},yn.XDomainRequest="withCredentials"in new yn.XMLHttpRequest?yn.XMLHttpRequest:d.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],function(r){yn["delete"===r?"del":r]=function(t,e,n){return(e=vn(t,e,n)).method=r.toUpperCase(),gn(e)}});var mn=function(t,e){var n=new d.WebVTT.Parser(d,d.vttjs,d.WebVTT.StringDecoder()),r=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){r.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),0<r.length&&(d.console&&d.console.groupCollapsed&&d.console.groupCollapsed("Text Track parsing errors for "+e.src),r.forEach(function(t){return Q.error(t)}),d.console&&d.console.groupEnd&&d.console.groupEnd()),n.flush()},bn=function(t,i){var e={uri:t},n=nn(t);n&&(e.cors=n),fn(e,re(this,function(t,e,n){if(t)return Q.error(t,e);if(i.loaded_=!0,"function"!=typeof d.WebVTT){if(i.tech_){var r=function(){return mn(n,i)};i.tech_.on("vttjsloaded",r),i.tech_.on("vttjserror",function(){Q.error("vttjs failed to load, stopping trying to process "+i.src),i.tech_.off("vttjsloaded",r)})}}else mn(n,i)}))},_n=function(h){function p(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(F(this,p),!e.tech)throw new Error("A tech was not provided.");var n=me(e,{kind:Je[e.kind]||"subtitles",language:e.language||e.srclang||""}),r=Qe[n.mode]||"disabled",i=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden");var o=t=H(this,h.call(this,n));if(o.tech_=n.tech,N)for(var s in p.prototype)"constructor"!==s&&(o[s]=p.prototype[s]);o.cues_=[],o.activeCues_=[];var a=new Ye(o.cues_),l=new Ye(o.activeCues_),c=!1,u=re(o,function(){this.activeCues,c&&(this.trigger("cuechange"),c=!1)});return"disabled"!==r&&o.tech_.ready(function(){o.tech_.on("timeupdate",u)},!0),Object.defineProperty(o,"default",{get:function(){return i},set:function(){}}),Object.defineProperty(o,"mode",{get:function(){return r},set:function(t){var e=this;Qe[t]&&("showing"===(r=t)&&this.tech_.ready(function(){e.tech_.on("timeupdate",u)},!0),this.trigger("modechange"))}}),Object.defineProperty(o,"cues",{get:function(){return this.loaded_?a:null},set:function(){}}),Object.defineProperty(o,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return l;for(var t=this.tech_.currentTime(),e=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];i.startTime<=t&&i.endTime>=t?e.push(i):i.startTime===i.endTime&&i.startTime<=t&&i.startTime+.5>=t&&e.push(i)}if(c=!1,e.length!==this.activeCues_.length)c=!0;else for(var o=0;o<e.length;o++)-1===this.activeCues_.indexOf(e[o])&&(c=!0);return this.activeCues_=e,l.setCues_(this.activeCues_),l},set:function(){}}),n.src?(o.src=n.src,bn(n.src,o)):o.loaded_=!0,H(t,o)}return B(p,h),p.prototype.addCue=function(t){var e=t;if(d.vttjs&&!(t instanceof d.vttjs.VTTCue)){for(var n in e=new d.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)n in e||(e[n]=t[n]);e.id=t.id,e.originalCue_=t}for(var r=this.tech_.textTracks(),i=0;i<r.length;i++)r[i]!==this&&r[i].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},p.prototype.removeCue=function(t){for(var e=this.cues_.length;e--;){var n=this.cues_[e];if(n===t||n.originalCue_&&n.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},p}(Ze);_n.prototype.allowedEvents_={cuechange:"cuechange"};var Tn=function(s){function a(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};F(this,a);var n=me(e,{kind:Ge[e.kind]||""}),r=t=H(this,s.call(this,n)),i=!1;if(N)for(var o in a.prototype)"constructor"!==o&&(r[o]=a.prototype[o]);return Object.defineProperty(r,"enabled",{get:function(){return i},set:function(t){"boolean"==typeof t&&t!==i&&(i=t,this.trigger("enabledchange"))}}),n.enabled&&(r.enabled=n.enabled),r.loaded_=!0,H(t,r)}return B(a,s),a}(Ze),Cn=function(s){function a(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};F(this,a);var n=me(e,{kind:Ke[e.kind]||""}),r=t=H(this,s.call(this,n)),i=!1;if(N)for(var o in a.prototype)"constructor"!==o&&(r[o]=a.prototype[o]);return Object.defineProperty(r,"selected",{get:function(){return i},set:function(t){"boolean"==typeof t&&t!==i&&(i=t,this.trigger("selectedchange"))}}),n.selected&&(r.selected=n.selected),H(t,r)}return B(a,s),a}(Ze),wn=0,kn=2,xn=function(s){function a(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};F(this,a);var e=H(this,s.call(this)),n=void 0,r=e;if(N)for(var i in r=f.createElement("custom"),a.prototype)"constructor"!==i&&(r[i]=a.prototype[i]);var o=new _n(t);return r.kind=o.kind,r.src=o.src,r.srclang=o.language,r.label=o.label,r.default=o.default,Object.defineProperty(r,"readyState",{get:function(){return n}}),Object.defineProperty(r,"track",{get:function(){return o}}),n=wn,o.addEventListener("loadeddata",function(){n=kn,r.trigger({type:"load",target:r})}),N?H(e,r):e}return B(a,s),a}(oe);xn.prototype.allowedEvents_={load:"load"},xn.NONE=wn,xn.LOADING=1,xn.LOADED=kn,xn.ERROR=3;var En={audio:{ListClass:We,TrackClass:Tn,capitalName:"Audio"},video:{ListClass:Ue,TrackClass:Cn,capitalName:"Video"},text:{ListClass:$e,TrackClass:_n,capitalName:"Text"}};Object.keys(En).forEach(function(t){En[t].getterName=t+"Tracks",En[t].privateName=t+"Tracks_"});var Sn={remoteText:{ListClass:$e,TrackClass:_n,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Xe,TrackClass:xn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},jn=me(En,Sn);Sn.names=Object.keys(Sn),En.names=Object.keys(En),jn.names=[].concat(Sn.names).concat(En.names);var An=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function Nn(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function Pn(t){function e(t,e,n,r){return 3600*(0|t)+60*(0|e)+(0|n)+(0|r)/1e3}var n=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):59<n[1]?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function Dn(){this.values=An(null)}function On(t,e,n,r){var i=r?t.split(r):[t];for(var o in i)if("string"==typeof i[o]){var s=i[o].split(n);if(2===s.length)e(s[0],s[1])}}function Ln(e,t,o){var n,r,s,i=e;function a(){var t=Pn(e);if(null===t)throw new Nn(Nn.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function l(){e=e.replace(/^\s+/,"")}if(l(),t.startTime=a(),l(),"--\x3e"!==e.substr(0,3))throw new Nn(Nn.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),l(),t.endTime=a(),l(),n=e,r=t,s=new Dn,On(n,function(t,e){switch(t){case"region":for(var n=o.length-1;0<=n;n--)if(o[n].id===e){s.set(t,o[n].region);break}break;case"vertical":s.alt(t,e,["rl","lr"]);break;case"line":var r=e.split(","),i=r[0];s.integer(t,i),s.percent(t,i)&&s.set("snapToLines",!1),s.alt(t,i,["auto"]),2===r.length&&s.alt("lineAlign",r[1],["start","middle","end"]);break;case"position":r=e.split(","),s.percent(t,r[0]),2===r.length&&s.alt("positionAlign",r[1],["start","middle","end"]);break;case"size":s.percent(t,e);break;case"align":s.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),r.region=s.get("region",null),r.vertical=s.get("vertical",""),r.line=s.get("line","auto"),r.lineAlign=s.get("lineAlign","start"),r.snapToLines=s.get("snapToLines",!0),r.size=s.get("size",100),r.align=s.get("align","middle"),r.position=s.get("position",{start:0,left:0,middle:50,end:100,right:100},r.align),r.positionAlign=s.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},r.align)}((Nn.prototype=An(Error.prototype)).constructor=Nn).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Dn.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var r=0;r<n.length;++r)if(e===n[r]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(e=parseFloat(e))&&e<=100)&&(this.set(t,e),!0)}};var Mn={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},In={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},Rn={v:"title",lang:"lang"},Fn={rt:"ruby"};function Bn(o,n){function t(){if(!n)return null;var t,e=n.match(/^([^<]*)(<[^>]+>?)?/);return t=e[1]?e[1]:e[2],n=n.substr(t.length),t}function e(t){return Mn[t]}function r(t){for(;f=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(f[0],e);return t}function i(t,e){var n=In[t];if(!n)return null;var r=o.document.createElement(n);r.localName=n;var i=Rn[t];return i&&e&&(r[i]=e.trim()),r}for(var s,a,l,c=o.document.createElement("div"),u=c,h=[];null!==(s=t());)if("<"!==s[0])u.appendChild(o.document.createTextNode(r(s)));else{if("/"===s[1]){h.length&&h[h.length-1]===s.substr(2).replace(">","")&&(h.pop(),u=u.parentNode);continue}var p,d=Pn(s.substr(1,s.length-2));if(d){p=o.document.createProcessingInstruction("timestamp",d),u.appendChild(p);continue}var f=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!f)continue;if(!(p=i(f[1],f[3])))continue;if(a=u,Fn[(l=p).localName]&&Fn[l.localName]!==a.localName)continue;f[2]&&(p.className=f[2].substr(1).replace("."," ")),h.push(f[1]),u.appendChild(p),u=p}return c}var Hn=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function Vn(t){for(var e=0;e<Hn.length;e++){var n=Hn[e];if(t>=n[0]&&t<=n[1])return!0}return!1}function qn(){}function Wn(t,e,n){var r=/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)";r&&(i="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),qn.call(this),this.cue=e,this.cueDiv=Bn(t,e.text);var s={color:i,backgroundColor:o,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};r||(s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=t.document.createElement("div"),s={textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},r||(s.direction=function(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function i(t,e){for(var n=e.childNodes.length-1;0<=n;n--)t.push(e.childNodes[n])}function o(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var r=n.match(/^.*(\n|\r)/);return r?r[t.length=0]:n}return"ruby"===e.tagName?o(t):e.childNodes?(i(t,e),o(t)):void 0}for(i(e,t);n=o(e);)for(var r=0;r<n.length;r++)if(Vn(n.charCodeAt(r)))return"rtl";return"ltr"}(this.cueDiv),s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(s),this.div.appendChild(this.cueDiv);var a=0;switch(e.positionAlign){case"start":a=e.position;break;case"middle":a=e.position-e.size/2;break;case"end":a=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(a,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(a,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function zn(t){var e,n,r,i,o=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){n=t.div.offsetHeight,r=t.div.offsetWidth,i=t.div.offsetTop;var s=(s=t.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&&s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||i,this.height=t.height||n,this.bottom=t.bottom||i+(t.height||n),this.width=t.width||r,this.lineHeight=void 0!==e?e:t.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function Un(t,e,a,l){var n=new zn(e),r=e.cue,i=function(t){if("number"==typeof t.line&&(t.snapToLines||0<=t.line&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,r=0,i=0;i<n.length&&n[i]!==e;i++)"showing"===n[i].mode&&r++;return-1*++r}(r),o=[];if(r.snapToLines){var s;switch(r.vertical){case"":o=["+y","-y"],s="height";break;case"rl":o=["+x","-x"],s="width";break;case"lr":o=["-x","+x"],s="width"}var c=n.lineHeight,u=c*Math.round(i),h=a[s]+c,p=o[0];Math.abs(u)>h&&(u=u<0?-1:1,u*=Math.ceil(h/c)*c),i<0&&(u+=""===r.vertical?a.height:a.width,o=o.reverse()),n.move(p,u)}else{var d=n.lineHeight/a.height*100;switch(r.lineAlign){case"middle":i-=d/2;break;case"end":i-=d}switch(r.vertical){case"":e.applyStyles({top:e.formatStyle(i,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(i,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(i,"%")})}o=["+y","-x","+x","-y"],n=new zn(e)}var f=function(t,e){for(var n,r=new zn(t),i=1,o=0;o<e.length;o++){for(;t.overlapsOppositeAxis(a,e[o])||t.within(a)&&t.overlapsAny(l);)t.move(e[o]);if(t.within(a))return t;var s=t.intersectPercentage(a);s<i&&(n=new zn(t),i=s),t=new zn(r)}return n||r}(n,o);e.move(f.toCSSCompatValues(a))}function $n(){}qn.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},qn.prototype.formatStyle=function(t,e){return 0===t?0:t+e},(Wn.prototype=An(qn.prototype)).constructor=Wn,zn.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},zn.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},zn.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},zn.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},zn.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},zn.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},zn.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},zn.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,r=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||r,height:t.height||e,bottom:t.bottom||r+(t.height||e),width:t.width||n}},$n.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},$n.convertCueToDOMTree=function(t,e){return t&&e?Bn(t,e):null};$n.processCues=function(r,i,t){if(!r||!i||!t)return null;for(;t.firstChild;)t.removeChild(t.firstChild);var o=r.document.createElement("div");if(o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin="1.5%",t.appendChild(o),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(i)){var s=[],a=zn.getSimpleBoxPosition(o),l={font:Math.round(.05*a.height*100)/100+"px sans-serif"};!function(){for(var t,e,n=0;n<i.length;n++)e=i[n],t=new Wn(r,e,l),o.appendChild(t.div),Un(0,t,a,s),e.displayState=t.div,s.push(zn.getSimpleBoxPosition(t))}()}else for(var e=0;e<i.length;e++)o.appendChild(i[e].displayState)},($n.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(t){if(!(t instanceof Nn))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){var o=this;function e(){for(var t=o.buffer,e=0;e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var n=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,o.buffer=t.substr(e),n}function n(t){t.match(/X-TIMESTAMP-MAP/)?On(t,function(t,e){switch(t){case"X-TIMESTAMP-MAP":n=e,r=new Dn,On(n,function(t,e){switch(t){case"MPEGT":r.integer(t+"S",e);break;case"LOCA":r.set(t+"L",Pn(e))}},/[^\d]:/,/,/),o.ontimestampmap&&o.ontimestampmap({MPEGTS:r.get("MPEGTS"),LOCAL:r.get("LOCAL")})}var n,r},/=/):On(t,function(t,e){switch(t){case"Region":!function(t){var i=new Dn;if(On(t,function(t,e){switch(t){case"id":i.set(t,e);break;case"width":i.percent(t,e);break;case"lines":i.integer(t,e);break;case"regionanchor":case"viewportanchor":var n=e.split(",");if(2!==n.length)break;var r=new Dn;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;i.set(t+"X",r.get("x")),i.set(t+"Y",r.get("y"));break;case"scroll":i.alt(t,e,["up"])}},/=/,/\s/),i.has("id")){var e=new(o.vttjs.VTTRegion||o.window.VTTRegion);e.width=i.get("width",100),e.lines=i.get("lines",3),e.regionAnchorX=i.get("regionanchorX",0),e.regionAnchorY=i.get("regionanchorY",100),e.viewportAnchorX=i.get("viewportanchorX",0),e.viewportAnchorY=i.get("viewportanchorY",100),e.scroll=i.get("scroll",""),o.onregion&&o.onregion(e),o.regionList.push({id:i.get("id"),region:e})}}(e)}},/:/)}t&&(o.buffer+=o.decoder.decode(t,{stream:!0}));try{var r;if("INITIAL"===o.state){if(!/\r\n|\n/.test(o.buffer))return this;var i=(r=e()).match(/^WEBVTT([ \t].*)?$/);if(!i||!i[0])throw new Nn(Nn.Errors.BadSignature);o.state="HEADER"}for(var s=!1;o.buffer;){if(!/\r\n|\n/.test(o.buffer))return this;switch(s?s=!1:r=e(),o.state){case"HEADER":/:/.test(r)?n(r):r||(o.state="ID");continue;case"NOTE":r||(o.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){o.state="NOTE";break}if(!r)continue;if(o.cue=new(o.vttjs.VTTCue||o.window.VTTCue)(0,0,""),o.state="CUE",-1===r.indexOf("--\x3e")){o.cue.id=r;continue}case"CUE":try{Ln(r,o.cue,o.regionList)}catch(t){o.reportOrThrowError(t),o.cue=null,o.state="BADCUE";continue}o.state="CUETEXT";continue;case"CUETEXT":var a=-1!==r.indexOf("--\x3e");if(!r||a&&(s=!0)){o.oncue&&o.oncue(o.cue),o.cue=null,o.state="ID";continue}o.cue.text&&(o.cue.text+="\n"),o.cue.text+=r;continue;case"BADCUE":r||(o.state="ID");continue}}}catch(t){o.reportOrThrowError(t),"CUETEXT"===o.state&&o.cue&&o.oncue&&o.oncue(o.cue),o.cue=null,o.state="INITIAL"===o.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new Nn(Nn.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var Xn=$n,Yn="auto",Kn={"":!0,lr:!0,rl:!0},Gn={start:!0,middle:!0,end:!0,left:!0,right:!0};function Jn(t){return"string"==typeof t&&(!!Gn[t.toLowerCase()]&&t.toLowerCase())}function Qn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function Zn(t,e,n){var r=this,i=/MSIE\s8\.0/.test(navigator.userAgent),o={};i?r=document.createElement("custom"):o.enumerable=!0,r.hasBeenReset=!1;var s="",a=!1,l=t,c=e,u=n,h=null,p="",d=!0,f="auto",v="start",y=50,g="middle",m=50,b="middle";if(Object.defineProperty(r,"id",Qn({},o,{get:function(){return s},set:function(t){s=""+t}})),Object.defineProperty(r,"pauseOnExit",Qn({},o,{get:function(){return a},set:function(t){a=!!t}})),Object.defineProperty(r,"startTime",Qn({},o,{get:function(){return l},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");l=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"endTime",Qn({},o,{get:function(){return c},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");c=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"text",Qn({},o,{get:function(){return u},set:function(t){u=""+t,this.hasBeenReset=!0}})),Object.defineProperty(r,"region",Qn({},o,{get:function(){return h},set:function(t){h=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"vertical",Qn({},o,{get:function(){return p},set:function(t){var e,n="string"==typeof(e=t)&&!!Kn[e.toLowerCase()]&&e.toLowerCase();if(!1===n)throw new SyntaxError("An invalid or illegal string was specified.");p=n,this.hasBeenReset=!0}})),Object.defineProperty(r,"snapToLines",Qn({},o,{get:function(){return d},set:function(t){d=!!t,this.hasBeenReset=!0}})),Object.defineProperty(r,"line",Qn({},o,{get:function(){return f},set:function(t){if("number"!=typeof t&&t!==Yn)throw new SyntaxError("An invalid number or illegal string was specified.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"lineAlign",Qn({},o,{get:function(){return v},set:function(t){var e=Jn(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"position",Qn({},o,{get:function(){return y},set:function(t){if(t<0||100<t)throw new Error("Position must be between 0 and 100.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",Qn({},o,{get:function(){return g},set:function(t){var e=Jn(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",Qn({},o,{get:function(){return m},set:function(t){if(t<0||100<t)throw new Error("Size must be between 0 and 100.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",Qn({},o,{get:function(){return b},set:function(t){var e=Jn(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),r.displayState=void 0,i)return r}Zn.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var tr=Zn,er={"":!0,up:!0};function nr(t){return"number"==typeof t&&0<=t&&t<=100}var rr=function(){var e=100,n=3,r=0,i=100,o=0,s=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!nr(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!nr(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!nr(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!nr(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!nr(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return a},set:function(t){var e,n="string"==typeof(e=t)&&!!er[e.toLowerCase()]&&e.toLowerCase();if(!1===n)throw new SyntaxError("An invalid or illegal string was specified.");a=n}}})},ir=e(function(t){var e=t.exports={WebVTT:Xn,VTTCue:tr,VTTRegion:rr};d.vttjs=e,d.WebVTT=e.WebVTT;var n=e.VTTCue,r=e.VTTRegion,i=d.VTTCue,o=d.VTTRegion;e.shim=function(){d.VTTCue=n,d.VTTRegion=r},e.restore=function(){d.VTTCue=i,d.VTTRegion=o},d.VTTCue||e.shim()});var or=function(e){function i(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){};F(this,i),n.reportTouchActivity=!1;var r=H(this,e.call(this,null,n,t));return r.hasStarted_=!1,r.on("playing",function(){this.hasStarted_=!0}),r.on("loadstart",function(){this.hasStarted_=!1}),jn.names.forEach(function(t){var e=jn[t];n&&n[e.getterName]&&(r[e.privateName]=n[e.getterName])}),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===n["native"+t+"Tracks"]&&(r["featuresNative"+t+"Tracks"]=!1)}),!1===n.nativeCaptions||!1===n.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new jn.text.ListClass,r.initTrackListeners(),n.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}return B(i,e),i.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},i.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},i.prototype.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(re(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),1===(this.bufferedPercent_=t)&&this.stopTrackingProgress()}),500)},i.prototype.onDurationChange=function(t){this.duration_=this.duration()},i.prototype.buffered=function(){return Ce(0,0)},i.prototype.bufferedPercent=function(){return we(this.buffered(),this.duration_)},i.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},i.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},i.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},i.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},i.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},i.prototype.dispose=function(){this.clearTracks(En.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},i.prototype.clearTracks=function(t){var i=this;(t=[].concat(t)).forEach(function(t){for(var e=i[t+"Tracks"]()||[],n=e.length;n--;){var r=e[n];"text"===t&&i.removeRemoteTextTrack(r),e.removeTrack(r)}})},i.prototype.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var n=t[e];this.removeRemoteTextTrack(n)}},i.prototype.reset=function(){},i.prototype.error=function(t){return void 0!==t&&(this.error_=new Ne(t),this.trigger("error")),this.error_},i.prototype.played=function(){return this.hasStarted_?Ce(0,0):Ce()},i.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},i.prototype.initTrackListeners=function(){var i=this;En.names.forEach(function(t){var e=En[t],n=function(){i.trigger(t+"trackchange")},r=i[e.getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),i.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})},i.prototype.addWebVttScript_=function(){var t=this;if(!d.WebVTT)if(f.body.contains(this.el())){if(!this.options_["vtt.js"]&&X(ir)&&0<Object.keys(ir).length)return void this.trigger("vttjsloaded");var e=f.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/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}),d.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},i.prototype.emulateTextTracks=function(){var t=this,n=this.textTracks(),e=this.remoteTextTracks(),r=function(t){return n.addTrack(t.track)},i=function(t){return n.removeTrack(t.track)};e.on("addtrack",r),e.on("removetrack",i),this.addWebVttScript_();var o=function(){return t.trigger("texttrackchange")},s=function(){o();for(var t=0;t<n.length;t++){var e=n[t];e.removeEventListener("cuechange",o),"showing"===e.mode&&e.addEventListener("cuechange",o)}};s(),n.addEventListener("change",s),n.addEventListener("addtrack",s),n.addEventListener("removetrack",s),this.on("dispose",function(){e.off("addtrack",r),e.off("removetrack",i),n.removeEventListener("change",s),n.removeEventListener("addtrack",s),n.removeEventListener("removetrack",s);for(var t=0;t<n.length;t++){n[t].removeEventListener("cuechange",o)}})},i.prototype.addTextTrack=function(t,e,n){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{},o=t.textTracks();i.kind=e,n&&(i.label=n),r&&(i.language=r),i.tech=t;var s=new jn.text.TrackClass(i);return o.addTrack(s),s}(this,t,e,n)},i.prototype.createRemoteTextTrack=function(t){var e=me(t,{tech:this});return new Sn.remoteTextEl.TrackClass(e)},i.prototype.addRemoteTextTrack=function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],r=this.createRemoteTextTrack(e);return!0!==n&&!1!==n&&(Q.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==n&&this.ready(function(){return t.autoRemoteTextTracks_.addTrack(r.track)}),r},i.prototype.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},i.prototype.getVideoPlaybackQuality=function(){return{}},i.prototype.setPoster=function(){},i.prototype.playsinline=function(){},i.prototype.setPlaysinline=function(){},i.prototype.canPlayType=function(){return""},i.canPlayType=function(){return""},i.canPlaySource=function(t,e){return i.canPlayType(t.type)},i.isTech=function(t){return t.prototype instanceof i||t instanceof i||t===i},i.registerTech=function(t,e){if(i.techs_||(i.techs_={}),!i.isTech(e))throw new Error("Tech "+t+" must be a Tech");if(!i.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!i.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=ge(t),i.techs_[t]=e,"Tech"!==t&&i.defaultTechOrder_.push(t),e},i.getTech=function(t){if(t)return t=ge(t),i.techs_&&i.techs_[t]?i.techs_[t]:d&&d.videojs&&d.videojs[t]?(Q.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),d.videojs[t]):void 0},i}(be);jn.names.forEach(function(t){var e=jn[t];or.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),or.prototype.featuresVolumeControl=!0,or.prototype.featuresFullscreenResize=!1,or.prototype.featuresPlaybackRate=!1,or.prototype.featuresProgressEvents=!1,or.prototype.featuresTimeupdateEvents=!1,or.prototype.featuresNativeTextTracks=!1,or.withSourceHandlers=function(i){i.registerSourceHandler=function(t,e){var n=i.sourceHandlers;n||(n=i.sourceHandlers=[]),void 0===e&&(e=n.length),n.splice(e,0,t)},i.canPlayType=function(t){for(var e=i.sourceHandlers||[],n=void 0,r=0;r<e.length;r++)if(n=e[r].canPlayType(t))return n;return""},i.selectSourceHandler=function(t,e){for(var n=i.sourceHandlers||[],r=0;r<n.length;r++)if(n[r].canHandleSource(t,e))return n[r];return null},i.canPlaySource=function(t,e){var n=i.selectSourceHandler(t,e);return n?n.canHandleSource(t,e):""};["seekable","duration"].forEach(function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},i.prototype),i.prototype.setSource=function(t){var e=i.selectSourceHandler(t,this.options_);e||(i.nativeSourceHandler?e=i.nativeSourceHandler:Q.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),e!==i.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=e.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},i.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},be.registerComponent("Tech",or),or.registerTech("Tech",or),or.defaultTechOrder_=[];var sr={};function ar(t,e,n){t.setTimeout(function(){return function n(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];var i=arguments[2];var o=arguments[3];var s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:[];var a=5<arguments.length&&void 0!==arguments[5]&&arguments[5];var e=t[0],l=t.slice(1);if("string"==typeof e)n(r,sr[e],i,o,s,a);else if(e){var c=e(o);c.setSource(U({},r),function(t,e){if(t)return n(r,l,i,o,s,a);s.push(c),n(e,r.type===e.type?l:sr[e.type],i,o,s,a)})}else l.length?n(r,l,i,o,s,a):a?i(r,s):n(r,sr["*"],i,o,s,!0)}(e,sr[e.type],n,t)},1)}var lr={buffered:1,currentTime:1,duration:1,seekable:1,played:1},cr={setCurrentTime:1};function ur(n){return function(t,e){return e[n]?e[n](t):t}}var hr=function(c){function u(t,e,n){F(this,u);var r=me({createEl:!1},e),i=H(this,c.call(this,t,r,n));if(e.playerOptions.sources&&0!==e.playerOptions.sources.length)t.src(e.playerOptions.sources);else for(var o=0,s=e.playerOptions.techOrder;o<s.length;o++){var a=ge(s[o]),l=or.getTech(a);if(a||(l=be.getComponent(a)),l&&l.isSupported()){t.loadTech_(a);break}}return i}return B(u,c),u}(be);be.registerComponent("MediaLoader",hr);var pr=function(i){function r(t,e){F(this,r);var n=H(this,i.call(this,t,e));return n.emitTapEvents(),n.enable(),n}return B(r,i),r.prototype.createEl=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"div",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};e=U({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},e),"button"===t&&Q.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),n=U({role:"button","aria-live":"polite"},n),this.tabIndex_=e.tabIndex;var r=i.prototype.createEl.call(this,t,e,n);return this.createControlTextEl(r),r},r.prototype.dispose=function(){this.controlTextEl_=null,i.prototype.dispose.call(this)},r.prototype.createControlTextEl=function(t){return this.controlTextEl_=lt("span",{className:"vjs-control-text"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},r.prototype.controlText=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===t)return this.controlText_||"Need Text";var n=this.localize(t);this.controlText_=t,ct(this.controlTextEl_,n),this.nonIconControl||e.setAttribute("title",n)},r.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+i.prototype.buildCSSClass.call(this)},r.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},r.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},r.prototype.handleClick=function(t){},r.prototype.handleFocus=function(t){$t(f,"keydown",re(this,this.handleKeyPress))},r.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):i.prototype.handleKeyPress&&i.prototype.handleKeyPress.call(this,t)},r.prototype.handleBlur=function(t){Xt(f,"keydown",re(this,this.handleKeyPress))},r}(be);be.registerComponent("ClickableComponent",pr);var dr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.update(),t.on("posterchange",re(n,n.update)),n}return B(i,r),i.prototype.dispose=function(){this.player().off("posterchange",this.update),r.prototype.dispose.call(this)},i.prototype.createEl=function(){var t=lt("div",{className:"vjs-poster",tabIndex:-1});return M||(this.fallbackImg_=lt("img"),t.appendChild(this.fallbackImg_)),t},i.prototype.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},i.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},i.prototype.handleClick=function(t){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},i}(pr);be.registerComponent("PosterImage",dr);var fr="#222",vr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function yr(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function gr(t,e,n){try{t.style[e]=n}catch(t){return}}var mr=function(i){function o(n,t,e){F(this,o);var r=H(this,i.call(this,n,t,e));return n.on("loadstart",re(r,r.toggleDisplay)),n.on("texttrackchange",re(r,r.updateDisplay)),n.on("loadstart",re(r,r.preselectTrack)),n.ready(re(r,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",re(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e<t.length;e++)this.player_.addRemoteTextTrack(t[e],!0);this.preselectTrack()}})),r}return B(o,i),o.prototype.preselectTrack=function(){for(var t={captions:1,subtitles:1},e=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage,r=void 0,i=void 0,o=void 0,s=0;s<e.length;s++){var a=e[s];n&&n.enabled&&n.language===a.language?a.kind===n.kind?o=a:o||(o=a):n&&!n.enabled?i=r=o=null:a.default&&("descriptions"!==a.kind||r?a.kind in t&&!i&&(i=a):r=a)}o?o.mode="showing":i?i.mode="showing":r&&(r.mode="showing")},o.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},o.prototype.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},o.prototype.clearDisplay=function(){"function"==typeof d.WebVTT&&d.WebVTT.processCues(d,[],this.el_)},o.prototype.updateDisplay=function(){var t=this.player_.textTracks();this.clearDisplay();for(var e=null,n=null,r=t.length;r--;){var i=t[r];"showing"===i.mode&&("descriptions"===i.kind?e=i:n=i)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):e&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(e))},o.prototype.updateForTrack=function(t){if("function"==typeof d.WebVTT&&t.activeCues){for(var e=this.player_.textTrackSettings.getValues(),n=[],r=0;r<t.activeCues.length;r++)n.push(t.activeCues[r]);d.WebVTT.processCues(d,n,this.el_);for(var i=n.length;i--;){var o=n[i];if(o){var s=o.displayState;if(e.color&&(s.firstChild.style.color=e.color),e.textOpacity&&gr(s.firstChild,"color",yr(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(s.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&gr(s.firstChild,"backgroundColor",yr(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?gr(s,"backgroundColor",yr(e.windowColor,e.windowOpacity)):s.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+fr:"raised"===e.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+fr:"depressed"===e.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+fr:"uniform"===e.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+fr)),e.fontPercent&&1!==e.fontPercent){var a=d.parseFloat(s.style.fontSize);s.style.fontSize=a*e.fontPercent+"px",s.style.height="auto",s.style.top="auto",s.style.bottom="2px"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=vr[e.fontFamily])}}}},o}(be);be.registerComponent("TextTrackDisplay",mr);var br=function(t){function e(){return F(this,e),H(this,t.apply(this,arguments))}return B(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},e}(be);be.registerComponent("LoadingSpinner",br);var _r=function(e){function t(){return F(this,t),H(this,e.apply(this,arguments))}return B(t,e),t.prototype.createEl=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};e=U({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},e),n=U({type:"button","aria-live":"polite"},n);var r=be.prototype.createEl.call(this,"button",e,n);return this.createControlTextEl(r),r},t.prototype.addChild=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return Q.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),be.prototype.addChild.call(this,t,e)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(pr);be.registerComponent("Button",_r);var Tr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.mouseused_=!1,n.on("mousedown",n.handleMouseDown),n}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-big-play-button"},i.prototype.handleClick=function(t){var e=this.player_.play();if(!(this.mouseused_&&t.clientX&&t.clientY)){var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(r){var i=function(){return r.focus()};Oe(e)?e.then(i,function(){}):this.setTimeout(i,1)}else this.player_.focus()}},i.prototype.handleKeyPress=function(t){this.mouseused_=!1,r.prototype.handleKeyPress.call(this,t)},i.prototype.handleMouseDown=function(t){this.mouseused_=!0},i}(_r);Tr.prototype.controlText_="Play Video",be.registerComponent("BigPlayButton",Tr);var Cr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.controlText(e&&e.controlText||n.localize("Close")),n}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-close-button "+r.prototype.buildCSSClass.call(this)},i.prototype.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},i}(_r);be.registerComponent("CloseButton",Cr);var wr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.on(t,"play",n.handlePlay),n.on(t,"pause",n.handlePause),n.on(t,"ended",n.handleEnded),n}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-play-control "+r.prototype.buildCSSClass.call(this)},i.prototype.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},i.prototype.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},i.prototype.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},i.prototype.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},i.prototype.handleEnded=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},i}(_r);function kr(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t;t=t<0?0:t;var n=Math.floor(t%60),r=Math.floor(t/60%60),i=Math.floor(t/3600),o=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(i=r=n="-"),(i=0<i||0<s?i+":":"")+(r=((i||10<=o)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)}wr.prototype.controlText_="Play",be.registerComponent("PlayToggle",wr);var xr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.throttledUpdateContent=ie(re(n,n.updateContent),25),n.on(t,"timeupdate",n.throttledUpdateContent),n}return B(i,r),i.prototype.createEl=function(t){var e=this.buildCSSClass(),n=r.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control"});return this.contentEl_=lt("div",{className:e+"-display"},{"aria-live":"off"},lt("span",{className:"vjs-control-text",textContent:this.localize(this.controlText_)})),this.updateTextNode_(),n.appendChild(this.contentEl_),n},i.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,r.prototype.dispose.call(this)},i.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=f.createTextNode(this.formattedTime_||"0:00"),this.contentEl_.appendChild(this.textNode_)}},i.prototype.formatTime_=function(t){return kr(t)},i.prototype.updateFormattedTime_=function(t){var e=this.formatTime_(t);e!==this.formattedTime_&&(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))},i.prototype.updateContent=function(t){},i}(be);xr.prototype.controlText_="Time",be.registerComponent("TimeDisplay",xr);var Er=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.on(t,"ended",n.handleEnded),n}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-current-time"},i.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(e)},i.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},i}(xr);Er.prototype.controlText_="Current Time",be.registerComponent("CurrentTimeDisplay",Er);var Sr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.on(t,"durationchange",n.updateContent),n.on(t,"loadedmetadata",n.throttledUpdateContent),n}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-duration"},i.prototype.updateContent=function(t){var e=this.player_.duration();e&&this.duration_!==e&&(this.duration_=e,this.updateFormattedTime_(e))},i}(xr);Sr.prototype.controlText_="Duration Time",be.registerComponent("DurationDisplay",Sr);var jr=function(t){function e(){return F(this,e),H(this,t.apply(this,arguments))}return B(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},e}(be);be.registerComponent("TimeDivider",jr);var Ar=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.on(t,"durationchange",n.throttledUpdateContent),n.on(t,"ended",n.handleEnded),n}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-remaining-time"},i.prototype.formatTime_=function(t){return"-"+r.prototype.formatTime_.call(this,t)},i.prototype.updateContent=function(t){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},i.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(0)},i}(xr);Ar.prototype.controlText_="Remaining Time",be.registerComponent("RemainingTimeDisplay",Ar);var Nr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.updateShowing(),n.on(n.player(),"durationchange",n.updateShowing),n}return B(i,r),i.prototype.createEl=function(){var t=r.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=lt("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},i.prototype.dispose=function(){this.contentEl_=null,r.prototype.dispose.call(this)},i.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},i}(be);be.registerComponent("LiveDisplay",Nr);var Pr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}return B(i,r),i.prototype.enabled=function(){return this.enabled_},i.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},i.prototype.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},i.prototype.createEl=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e.className=e.className+" vjs-slider",e=U({tabIndex:0},e),n=U({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),r.prototype.createEl.call(this,t,e,n)},i.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;t.preventDefault(),_t(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},i.prototype.handleMouseMove=function(t){},i.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;Tt(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},i.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!=t||t<0||t===1/0)&&(t=0);var n=(100*t).toFixed(2)+"%",r=e.el().style;return this.vertical()?r.height=n:r.width=n,t}}},i.prototype.calculateDistance=function(t){var e=kt(this.el_,t);return this.vertical()?e.y:e.x},i.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},i.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},i.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},i.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},i.prototype.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},i}(be);be.registerComponent("Slider",Pr);var Dr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.partEls_=[],n.on(t,"progress",n.update),n}return B(i,r),i.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},i.prototype.dispose=function(){this.partEls_=null,r.prototype.dispose.call(this)},i.prototype.update=function(t){var e=this.player_.buffered(),n=this.player_.duration(),r=this.player_.bufferedEnd(),i=this.partEls_,o=function(t,e){var n=t/e||0;return 100*(1<=n?1:n)+"%"};this.el_.style.width=o(r,n);for(var s=0;s<e.length;s++){var a=e.start(s),l=e.end(s),c=i[s];c||(c=this.el_.appendChild(lt()),i[s]=c),c.style.left=o(a,r),c.style.width=o(l-a,r)}for(var u=i.length;u>e.length;u--)this.el_.removeChild(i[u-1]);i.length=e.length},i}(be);be.registerComponent("LoadProgressBar",Dr);var Or=function(t){function e(){return F(this,e),H(this,t.apply(this,arguments))}return B(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},e.prototype.update=function(t,e,n){var r=Ct(this.el_),i=Ct(this.player_.el()),o=t.width*e;if(i&&r){var s=t.left-i.left+o,a=t.width-o+(i.right-t.right),l=r.width/2;s<l?l+=l-s:a<l&&(l=a),l<0?l=0:l>r.width&&(l=r.width),this.el_.style.right="-"+l+"px",ct(this.el_,n)}},e}(be);be.registerComponent("TimeTooltip",Or);var Lr=function(t){function e(){return F(this,e),H(this,t.apply(this,arguments))}return B(e,t),e.prototype.createEl=function(){return t.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>"})},e.prototype.update=function(n,r){var i=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var t=kr(i.player_.scrubbing()?i.player_.getCache().currentTime:i.player_.currentTime(),i.player_.duration()),e=i.getChild("timeTooltip");e&&e.update(n,r,t)})},e}(be);Lr.prototype.options_={children:[]},P&&!(8<P)||_||C||Lr.prototype.options_.children.push("timeTooltip"),be.registerComponent("PlayProgressBar",Lr);var Mr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.update=ie(re(n,n.update),25),n}return B(i,r),i.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.prototype.update=function(n,r){var i=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var t=i.player_.duration(),e=kr(r*t,t);i.el_.style.left=n.width*r+"px",i.getChild("timeTooltip").update(n,r,e)})},i}(be);Mr.prototype.options_={children:["timeTooltip"]},be.registerComponent("MouseTimeDisplay",Mr);var Ir=30,Rr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.update=ie(re(n,n.update),Ir),n.on(t,"timeupdate",n.update),n.on(t,"ended",n.handleEnded),n.updateInterval=null,n.on(t,["playing"],function(){n.clearInterval(n.updateInterval),n.updateInterval=n.setInterval(function(){n.requestAnimationFrame(function(){n.update()})},Ir)}),n.on(t,["ended","pause","waiting"],function(){n.clearInterval(n.updateInterval)}),n.on(t,["timeupdate","ended"],n.update),n}return B(i,r),i.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},i.prototype.update_=function(t,e){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*e).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[kr(t,n),kr(n,n)],"{1} of {2}")),this.bar.update(Ct(this.el_),e)},i.prototype.update=function(t){var e=r.prototype.update.call(this);return this.update_(this.getCurrentTime_(),e),e},i.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},i.prototype.handleEnded=function(t){this.update_(this.player_.duration(),1)},i.prototype.getPercent=function(){var t=this.getCurrentTime_()/this.player_.duration();return 1<=t?1:t},i.prototype.handleMouseDown=function(t){Nt(t)&&(this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),r.prototype.handleMouseDown.call(this,t))},i.prototype.handleMouseMove=function(t){if(Nt(t)){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)}},i.prototype.enable=function(){r.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},i.prototype.disable=function(){r.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},i.prototype.handleMouseUp=function(t){r.prototype.handleMouseUp.call(this,t),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Le(this.player_.play())},i.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},i.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},i.prototype.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},i.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):r.prototype.handleKeyPress&&r.prototype.handleKeyPress.call(this,t)},i}(Pr);Rr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},P&&!(8<P)||_||C||Rr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Rr.prototype.playerEvent="timeupdate",be.registerComponent("SeekBar",Rr);var Fr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.handleMouseMove=ie(re(n,n.handleMouseMove),25),n.throttledHandleMouseSeek=ie(re(n,n.handleMouseSeek),25),n.enable(),n}return B(i,r),i.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i.prototype.handleMouseMove=function(t){var e=this.getChild("seekBar"),n=e.getChild("mouseTimeDisplay"),r=e.el(),i=Ct(r),o=kt(r,t).x;1<o?o=1:o<0&&(o=0),n&&n.update(i,o)},i.prototype.handleMouseSeek=function(t){this.getChild("seekBar").handleMouseMove(t)},i.prototype.enabled=function(){return this.enabled_},i.prototype.disable=function(){this.children().forEach(function(t){return t.disable&&t.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},i.prototype.enable=function(){this.children().forEach(function(t){return t.enable&&t.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},i.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},i.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},i}(be);Fr.prototype.options_={children:["seekBar"]},be.registerComponent("ProgressControl",Fr);var Br=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.on(t,"fullscreenchange",n.handleFullscreenChange),n}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+r.prototype.buildCSSClass.call(this)},i.prototype.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},i.prototype.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},i}(_r);Br.prototype.controlText_="Fullscreen",be.registerComponent("FullscreenToggle",Br);var Hr=function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},Vr=function(t){function e(){return F(this,e),H(this,t.apply(this,arguments))}return B(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(be);be.registerComponent("VolumeLevel",Vr);var qr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.on("slideractive",n.updateLastVolume_),n.on(t,"volumechange",n.updateARIAAttributes),t.ready(function(){return n.updateARIAAttributes()}),n}return B(i,r),i.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},i.prototype.handleMouseDown=function(t){Nt(t)&&r.prototype.handleMouseDown.call(this,t)},i.prototype.handleMouseMove=function(t){Nt(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},i.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},i.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},i.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},i.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},i.prototype.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},i.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},i.prototype.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",function(){0===t.player_.volume()&&t.player_.lastVolume_(e)})},i}(Pr);qr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},qr.prototype.playerEvent="volumechange",be.registerComponent("VolumeBar",qr);var Wr=function(r){function i(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};F(this,i),e.vertical=e.vertical||!1,(void 0===e.volumeBar||X(e.volumeBar))&&(e.volumeBar=e.volumeBar||{},e.volumeBar.vertical=e.vertical);var n=H(this,r.call(this,t,e));return Hr(n,t),n.throttledHandleMouseMove=ie(re(n,n.handleMouseMove),25),n.on("mousedown",n.handleMouseDown),n.on("touchstart",n.handleMouseDown),n.on(n.volumeBar,["focus","slideractive"],function(){n.volumeBar.addClass("vjs-slider-active"),n.addClass("vjs-slider-active"),n.trigger("slideractive")}),n.on(n.volumeBar,["blur","sliderinactive"],function(){n.volumeBar.removeClass("vjs-slider-active"),n.removeClass("vjs-slider-active"),n.trigger("sliderinactive")}),n}return B(i,r),i.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),r.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},i.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},i.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},i.prototype.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},i}(be);Wr.prototype.options_={children:["volumeBar"]},be.registerComponent("VolumeControl",Wr);var zr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return Hr(n,t),n.on(t,["loadstart","volumechange"],n.update),n}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-mute-control "+r.prototype.buildCSSClass.call(this)},i.prototype.handleClick=function(t){var e=this.player_.volume(),n=this.player_.lastVolume_();if(0===e){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},i.prototype.update=function(t){this.updateIcon_(),this.updateControlText_()},i.prototype.updateIcon_=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var n=0;n<4;n++)dt(this.el_,"vjs-vol-"+n);pt(this.el_,"vjs-vol-"+e)},i.prototype.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},i}(_r);zr.prototype.controlText_="Mute",be.registerComponent("MuteToggle",zr);var Ur=function(r){function i(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};F(this,i),void 0!==e.inline?e.inline=e.inline:e.inline=!0,(void 0===e.volumeControl||X(e.volumeControl))&&(e.volumeControl=e.volumeControl||{},e.volumeControl.vertical=!e.inline);var n=H(this,r.call(this,t,e));return Hr(n,t),n.on(n.volumeControl,["slideractive"],n.sliderActive_),n.on(n.muteToggle,"focus",n.sliderActive_),n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_),n.on(n.muteToggle,"blur",n.sliderInactive_),n}return B(i,r),i.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},i.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},i.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),r.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},i}(be);Ur.prototype.options_={children:["muteToggle","volumeControl"]},be.registerComponent("VolumePanel",Ur);var $r=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return e&&(n.menuButton_=e.menuButton),n.focusedChild_=-1,n.on("keydown",n.handleKeyPress),n}return B(i,r),i.prototype.addItem=function(e){this.addChild(e),e.on("click",re(this,function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())}))},i.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=lt(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var e=r.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return e.appendChild(this.contentEl_),$t(e,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),e},i.prototype.dispose=function(){this.contentEl_=null,r.prototype.dispose.call(this)},i.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},i.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},i.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},i.prototype.focus=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),0<e.length&&(t<0?t=0:t>=e.length&&(t=e.length-1),e[this.focusedChild_=t].el_.focus())},i}(be);be.registerComponent("Menu",$r);var Xr=function(i){function o(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};F(this,o);var n=H(this,i.call(this,t,e));n.menuButton_=new _r(t,e),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var r=_r.prototype.buildCSSClass();return n.menuButton_.el_.className=n.buildCSSClass()+" "+r,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0,n.on(n.menuButton_,"tap",n.handleClick),n.on(n.menuButton_,"click",n.handleClick),n.on(n.menuButton_,"focus",n.handleFocus),n.on(n.menuButton_,"blur",n.handleBlur),n.on("keydown",n.handleSubmenuKeyPress),n}return B(o,i),o.prototype.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},o.prototype.createMenu=function(){var t=new $r(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=lt("li",{className:"vjs-menu-title",innerHTML:ge(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,t.children_.unshift(e),ut(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},o.prototype.createItems=function(){},o.prototype.createEl=function(){return i.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},o.prototype.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+_r.prototype.buildCSSClass()+" "+i.prototype.buildCSSClass.call(this)},o.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+i.prototype.buildCSSClass.call(this)},o.prototype.controlText=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(t,e)},o.prototype.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",re(this,function(t){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},o.prototype.focus=function(){this.menuButton_.focus()},o.prototype.blur=function(){this.menuButton_.blur()},o.prototype.handleFocus=function(){$t(f,"keydown",re(this,this.handleKeyPress))},o.prototype.handleBlur=function(){Xt(f,"keydown",re(this,this.handleKeyPress))},o.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&&this.unpressButton(),9!==t.which&&(t.preventDefault(),this.menuButton_.el_.focus())):38!==t.which&&40!==t.which||this.buttonPressed_||(this.pressButton(),t.preventDefault())},o.prototype.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.buttonPressed_&&this.unpressButton(),9!==t.which&&(t.preventDefault(),this.menuButton_.el_.focus()))},o.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),_&&st())return;this.menu.focus()}},o.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},o.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},o.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},o}(be);be.registerComponent("MenuButton",Xr);var Yr=function(o){function s(t,e){F(this,s);var n=e.tracks,r=H(this,o.call(this,t,e));if(r.items.length<=1&&r.hide(),!n)return H(r);var i=re(r,r.update);return n.addEventListener("removetrack",i),n.addEventListener("addtrack",i),r.player_.on("ready",i),r.player_.on("dispose",function(){n.removeEventListener("removetrack",i),n.removeEventListener("addtrack",i)}),r}return B(s,o),s}(Xr);be.registerComponent("TrackButton",Yr);var Kr=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.selectable=e.selectable,n.selected(e.selected),n.selectable?n.el_.setAttribute("role","menuitemcheckbox"):n.el_.setAttribute("role","menuitem"),n}return B(i,r),i.prototype.createEl=function(t,e,n){return this.nonIconControl=!0,r.prototype.createEl.call(this,"li",U({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},e),n)},i.prototype.handleClick=function(t){this.selected(!0)},i.prototype.selected=function(t){this.selectable&&(t?(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("")))},i}(pr);be.registerComponent("MenuItem",Kr);var Gr=function(l){function c(t,e){F(this,c);var n=e.track,r=t.textTracks();e.label=n.label||n.language||"Unknown",e.selected="showing"===n.mode;var i=H(this,l.call(this,t,e));i.track=n;var o=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];i.handleTracksChange.apply(i,e)},s=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];i.handleSelectedLanguageChange.apply(i,e)};if(t.on(["loadstart","texttrackchange"],o),r.addEventListener("change",o),r.addEventListener("selectedlanguagechange",s),i.on("dispose",function(){t.off(["loadstart","texttrackchange"],o),r.removeEventListener("change",o),r.removeEventListener("selectedlanguagechange",s)}),void 0===r.onchange){var a=void 0;i.on(["tap","click"],function(){if("object"!==R(d.Event))try{a=new d.Event("change")}catch(t){}a||(a=f.createEvent("Event")).initEvent("change",!0,!0),r.dispatchEvent(a)})}return i.handleTracksChange(),i}return B(c,l),c.prototype.handleClick=function(t){var e=this.track.kind,n=this.track.kinds,r=this.player_.textTracks();if(n||(n=[e]),l.prototype.handleClick.call(this,t),r)for(var i=0;i<r.length;i++){var o=r[i];o===this.track&&-1<n.indexOf(o.kind)?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled")}},c.prototype.handleTracksChange=function(t){this.selected("showing"===this.track.mode)},c.prototype.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},c.prototype.dispose=function(){this.track=null,l.prototype.dispose.call(this)},c}(Kr);be.registerComponent("TextTrackMenuItem",Gr);var Jr=function(n){function r(t,e){return F(this,r),e.track={player:t,kind:e.kind,kinds:e.kinds,default:!1,mode:"disabled"},e.kinds||(e.kinds=[e.kind]),e.label?e.track.label=e.label:e.track.label=e.kinds.join(" and ")+" off",e.selectable=!0,H(this,n.call(this,t,e))}return B(r,n),r.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!0,r=0,i=e.length;r<i;r++){var o=e[r];if(-1<this.options_.kinds.indexOf(o.kind)&&"showing"===o.mode){n=!1;break}}this.selected(n)},r.prototype.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),n=!0,r=0,i=e.length;r<i;r++){var o=e[r];if(-1<["captions","descriptions","subtitles"].indexOf(o.kind)&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},r}(Gr);be.registerComponent("OffTextTrackMenuItem",Jr);var Qr=function(n){function r(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return F(this,r),e.tracks=t.textTracks(),H(this,n.call(this,t,e))}return B(r,n),r.prototype.createItems=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Gr,n=void 0;this.label_&&(n=this.label_+" off"),t.push(new Jr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var o=r[i];if(-1<this.kinds_.indexOf(o.kind)){var s=new e(this.player_,{track:o,selectable:!0});s.addClass("vjs-"+o.kind+"-menu-item"),t.push(s)}}return t},r}(Yr);be.registerComponent("TextTrackButton",Qr);var Zr=function(s){function a(t,e){F(this,a);var n=e.track,r=e.cue,i=t.currentTime();e.selectable=!0,e.label=r.text,e.selected=r.startTime<=i&&i<r.endTime;var o=H(this,s.call(this,t,e));return o.track=n,o.cue=r,n.addEventListener("cuechange",re(o,o.update)),o}return B(a,s),a.prototype.handleClick=function(t){s.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},a.prototype.update=function(t){var e=this.cue,n=this.player_.currentTime();this.selected(e.startTime<=n&&n<e.endTime)},a}(Kr);be.registerComponent("ChaptersTrackMenuItem",Zr);var ti=function(r){function i(t,e,n){return F(this,i),H(this,r.call(this,t,e,n))}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-chapters-button "+r.prototype.buildCSSClass.call(this)},i.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+r.prototype.buildWrapperCSSClass.call(this)},i.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),r.prototype.update.call(this)},i.prototype.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},i.prototype.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;0<=e;e--){var n=t[e];if(n.kind===this.kind_)return n}},i.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(ge(this.kind_))},i.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),r.prototype.createMenu.call(this)},i.prototype.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,r=e.length;n<r;n++){var i=e[n],o=new Zr(this.player_,{track:this.track_,cue:i});t.push(o)}return t},i}(Qr);ti.prototype.kind_="chapters",ti.prototype.controlText_="Chapters",be.registerComponent("ChaptersButton",ti);var ei=function(s){function a(t,e,n){F(this,a);var r=H(this,s.call(this,t,e,n)),i=t.textTracks(),o=re(r,r.handleTracksChange);return i.addEventListener("change",o),r.on("dispose",function(){i.removeEventListener("change",o)}),r}return B(a,s),a.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!1,r=0,i=e.length;r<i;r++){var o=e[r];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},a.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+s.prototype.buildCSSClass.call(this)},a.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+s.prototype.buildWrapperCSSClass.call(this)},a}(Qr);ei.prototype.kind_="descriptions",ei.prototype.controlText_="Descriptions",be.registerComponent("DescriptionsButton",ei);var ni=function(r){function i(t,e,n){return F(this,i),H(this,r.call(this,t,e,n))}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+r.prototype.buildCSSClass.call(this)},i.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+r.prototype.buildWrapperCSSClass.call(this)},i}(Qr);ni.prototype.kind_="subtitles",ni.prototype.controlText_="Subtitles",be.registerComponent("SubtitlesButton",ni);var ri=function(r){function i(t,e){F(this,i),e.track={player:t,kind:e.kind,label:e.kind+" settings",selectable:!1,default:!1,mode:"disabled"},e.selectable=!1,e.name="CaptionSettingsMenuItem";var n=H(this,r.call(this,t,e));return n.addClass("vjs-texttrack-settings"),n.controlText(", opens "+e.kind+" settings dialog"),n}return B(i,r),i.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},i}(Gr);be.registerComponent("CaptionSettingsMenuItem",ri);var ii=function(r){function i(t,e,n){return F(this,i),H(this,r.call(this,t,e,n))}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-captions-button "+r.prototype.buildCSSClass.call(this)},i.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+r.prototype.buildWrapperCSSClass.call(this)},i.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(t.push(new ri(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),r.prototype.createItems.call(this,t)},i}(Qr);ii.prototype.kind_="captions",ii.prototype.controlText_="Captions",be.registerComponent("CaptionsButton",ii);var oi=function(i){function t(){return F(this,t),H(this,i.apply(this,arguments))}return B(t,i),t.prototype.createEl=function(t,e,n){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(r+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n      "),r+="</span>",i.prototype.createEl.call(this,t,U({innerHTML:r},e),n)},t}(Gr);be.registerComponent("SubsCapsMenuItem",oi);var si=function(r){function i(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};F(this,i);var n=H(this,r.call(this,t,e));return n.label_="subtitles",-1<["en","en-us","en-ca","fr-ca"].indexOf(n.player_.language_)&&(n.label_="captions"),n.menuButton_.controlText(ge(n.label_)),n}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+r.prototype.buildCSSClass.call(this)},i.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+r.prototype.buildWrapperCSSClass.call(this)},i.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(t.push(new ri(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=r.prototype.createItems.call(this,t,oi)},i}(Qr);si.prototype.kinds_=["captions","subtitles"],si.prototype.controlText_="Subtitles",be.registerComponent("SubsCapsButton",si);var ai=function(s){function a(t,e){F(this,a);var n=e.track,r=t.audioTracks();e.label=n.label||n.language||"Unknown",e.selected=n.enabled;var i=H(this,s.call(this,t,e));i.track=n;var o=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];i.handleTracksChange.apply(i,e)};return r.addEventListener("change",o),i.on("dispose",function(){r.removeEventListener("change",o)}),i}return B(a,s),a.prototype.handleClick=function(t){var e=this.player_.audioTracks();s.prototype.handleClick.call(this,t);for(var n=0;n<e.length;n++){var r=e[n];r.enabled=r===this.track}},a.prototype.handleTracksChange=function(t){this.selected(this.track.enabled)},a}(Kr);be.registerComponent("AudioTrackMenuItem",ai);var li=function(n){function r(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return F(this,r),e.tracks=t.audioTracks(),H(this,n.call(this,t,e))}return B(r,n),r.prototype.buildCSSClass=function(){return"vjs-audio-button "+n.prototype.buildCSSClass.call(this)},r.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+n.prototype.buildWrapperCSSClass.call(this)},r.prototype.createItems=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var e=this.player_.audioTracks(),n=0;n<e.length;n++){var r=e[n];t.push(new ai(this.player_,{track:r,selectable:!0}))}return t},r}(Yr);li.prototype.controlText_="Audio Track",be.registerComponent("AudioTrackButton",li);var ci=function(o){function s(t,e){F(this,s);var n=e.rate,r=parseFloat(n,10);e.label=n,e.selected=1===r,e.selectable=!0;var i=H(this,o.call(this,t,e));return i.label=n,i.rate=r,i.on(t,"ratechange",i.update),i}return B(s,o),s.prototype.handleClick=function(t){o.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},s.prototype.update=function(t){this.selected(this.player().playbackRate()===this.rate)},s}(Kr);ci.prototype.contentElType="button",be.registerComponent("PlaybackRateMenuItem",ci);var ui=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.updateVisibility(),n.updateLabel(),n.on(t,"loadstart",n.updateVisibility),n.on(t,"ratechange",n.updateLabel),n}return B(i,r),i.prototype.createEl=function(){var t=r.prototype.createEl.call(this);return this.labelEl_=lt("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},i.prototype.dispose=function(){this.labelEl_=null,r.prototype.dispose.call(this)},i.prototype.buildCSSClass=function(){return"vjs-playback-rate "+r.prototype.buildCSSClass.call(this)},i.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+r.prototype.buildWrapperCSSClass.call(this)},i.prototype.createMenu=function(){var t=new $r(this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;0<=n;n--)t.addChild(new ci(this.player(),{rate:e[n]+"x"}));return t},i.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},i.prototype.handleClick=function(t){for(var e=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>e){r=n[i];break}this.player().playbackRate(r)},i.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},i.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0<this.playbackRates().length},i.prototype.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},i.prototype.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},i}(Xr);ui.prototype.controlText_="Playback Rate",be.registerComponent("PlaybackRateMenuButton",ui);var hi=function(t){function e(){return F(this,e),H(this,t.apply(this,arguments))}return B(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(be);be.registerComponent("Spacer",hi);var pi=function(e){function t(){return F(this,t),H(this,e.apply(this,arguments))}return B(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(hi);be.registerComponent("CustomControlSpacer",pi);var di=function(t){function e(){return F(this,e),H(this,t.apply(this,arguments))}return B(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},e}(be);di.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},be.registerComponent("ControlBar",di);var fi=function(r){function i(t,e){F(this,i);var n=H(this,r.call(this,t,e));return n.on(t,"error",n.open),n}return B(i,r),i.prototype.buildCSSClass=function(){return"vjs-error-display "+r.prototype.buildCSSClass.call(this)},i.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},i}(Be);fi.prototype.options_=me(Be.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),be.registerComponent("ErrorDisplay",fi);var vi="vjs-text-track-settings",yi=["#000","Black"],gi=["#00F","Blue"],mi=["#0FF","Cyan"],bi=["#0F0","Green"],_i=["#F0F","Magenta"],Ti=["#F00","Red"],Ci=["#FFF","White"],wi=["#FF0","Yellow"],ki=["1","Opaque"],xi=["0.5","Semi-Transparent"],Ei=["0","Transparent"],Si={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[yi,Ci,Ti,bi,gi,wi,_i,mi]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[ki,xi,Ei]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Ci,yi,Ti,bi,gi,wi,_i,mi]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[ki,xi]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Ei,xi,ki]}};function ji(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}Si.windowColor.options=Si.backgroundColor.options;var Ai=function(r){function i(t,e){F(this,i),e.temporary=!1;var n=H(this,r.call(this,t,e));return n.updateDisplay=re(n,n.updateDisplay),n.fill(),n.hasBeenOpened_=n.hasBeenFilled_=!0,n.endDialog=lt("p",{className:"vjs-control-text",textContent:n.localize("End of dialog window.")}),n.el().appendChild(n.endDialog),n.setDefaults(),void 0===e.persistTextTrackSettings&&(n.options_.persistTextTrackSettings=n.options_.playerOptions.persistTextTrackSettings),n.on(n.$(".vjs-done-button"),"click",function(){n.saveSettings(),n.close()}),n.on(n.$(".vjs-default-button"),"click",function(){n.setDefaults(),n.updateDisplay()}),z(Si,function(t){n.on(n.$(t.selector),"change",n.updateDisplay)}),n.options_.persistTextTrackSettings&&n.restoreSettings(),n}return B(i,r),i.prototype.dispose=function(){this.endDialog=null,r.prototype.dispose.call(this)},i.prototype.createElSelect_=function(t){var n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"label",i=Si[t],o=i.id.replace("%s",this.id_);return["<"+e+' id="'+o+'" class="'+("label"===e?"vjs-label":"")+'">',this.localize(i.label),"</"+e+">",'<select aria-labelledby="'+(""!==r?r+" ":"")+o+'">'].concat(i.options.map(function(t){var e=o+"-"+t[1];return['<option id="'+e+'" value="'+t[0]+'" ','aria-labelledby="'+(""!==r?r+" ":"")+o+" "+e+'">',n.localize(t[1]),"</option>"].join("")})).concat("</select>").join("")},i.prototype.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},i.prototype.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},i.prototype.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},i.prototype.createElColors_=function(){return lt("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},i.prototype.createElFont_=function(){return lt("div",{className:'vjs-track-settings-font">',innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},i.prototype.createElControls_=function(){var t=this.localize("restore all settings to the default values");return lt("div",{className:"vjs-track-settings-controls",innerHTML:['<button class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},i.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},i.prototype.label=function(){return this.localize("Caption Settings Dialog")},i.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},i.prototype.buildCSSClass=function(){return r.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},i.prototype.getValues=function(){var s=this;return function(n,r){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;return W(n).reduce(function(t,e){return r(t,n[e],e)},t)}(Si,function(t,e,n){var r,i,o=(r=s.$(e.selector),i=e.parser,ji(r.options[r.options.selectedIndex].value,i));return void 0!==o&&(t[n]=o),t},{})},i.prototype.setValues=function(n){var r=this;z(Si,function(t,e){!function(t,e,n){if(e)for(var r=0;r<t.options.length;r++)if(ji(t.options[r].value,n)===e){t.selectedIndex=r;break}}(r.$(t.selector),n[e],t.parser)})},i.prototype.setDefaults=function(){var n=this;z(Si,function(t){var e=t.hasOwnProperty("default")?t.default:0;n.$(t.selector).selectedIndex=e})},i.prototype.restoreSettings=function(){var t=void 0;try{t=JSON.parse(d.localStorage.getItem(vi))}catch(t){Q.warn(t)}t&&this.setValues(t)},i.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?d.localStorage.setItem(vi,JSON.stringify(t)):d.localStorage.removeItem(vi)}catch(t){Q.warn(t)}}},i.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},i.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(f,"keydown",this.handleKeyDown);var t=this.player_.controlBar,e=t&&t.subsCapsButton,n=t&&t.captionsButton;e?e.focus():n&&n.focus()},i}(Be);be.registerComponent("TextTrackSettings",Ai);var Ni=V(["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."]),Pi=function(u){function h(t,e){F(this,h);var n=H(this,u.call(this,t,e)),r=t.source,i=!1;if(r&&(n.el_.currentSrc!==r.src||t.tag&&3===t.tag.initNetworkState_)?n.setSource(r):n.handleLateInit_(n.el_),n.el_.hasChildNodes()){for(var o=n.el_.childNodes,s=o.length,a=[];s--;){var l=o[s];"track"===l.nodeName.toLowerCase()&&(n.featuresNativeTextTracks?(n.remoteTextTrackEls().addTrackElement_(l),n.remoteTextTracks().addTrack(l.track),n.textTracks().addTrack(l.track),i||n.el_.hasAttribute("crossorigin")||!nn(l.src)||(i=!0)):a.push(l))}for(var c=0;c<a.length;c++)n.el_.removeChild(a[c])}return n.proxyNativeTracks_(),n.featuresNativeTextTracks&&i&&Q.warn(Z(Ni)),n.restoreMetadataTracksInIOSNativePlayer_(),(L||m||x)&&!0===t.nativeControlsForTouch&&n.setControls(!0),n.proxyWebkitFullscreen_(),n.triggerReady(),n}return B(h,u),h.prototype.dispose=function(){h.disposeMediaElement(this.el_),this.options_=null,u.prototype.dispose.call(this)},h.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var r=this.textTracks(),i=void 0,t=function(){i=[];for(var t=0;t<r.length;t++){var e=r[t];"metadata"===e.kind&&i.push({track:e,storedMode:e.mode})}};t(),r.addEventListener("change",t),this.on("dispose",function(){return r.removeEventListener("change",t)});var e=function t(){for(var e=0;e<i.length;e++){var n=i[e];"disabled"===n.track.mode&&n.track.mode!==n.storedMode&&(n.track.mode=n.storedMode)}r.removeEventListener("change",t)};this.on("webkitbeginfullscreen",function(){r.removeEventListener("change",t),r.removeEventListener("change",e),r.addEventListener("change",e)}),this.on("webkitendfullscreen",function(){r.removeEventListener("change",t),r.addEventListener("change",t),r.removeEventListener("change",e)})},h.prototype.proxyNativeTracks_=function(){var s=this;En.names.forEach(function(t){var e=En[t],i=s.el()[e.getterName],o=s[e.getterName]();if(s["featuresNative"+e.capitalName+"Tracks"]&&i&&i.addEventListener){var r={change:function(t){o.trigger({type:"change",target:o,currentTarget:o,srcElement:o})},addtrack:function(t){o.addTrack(t.track)},removetrack:function(t){o.removeTrack(t.track)}},n=function(){for(var t=[],e=0;e<o.length;e++){for(var n=!1,r=0;r<i.length;r++)if(i[r]===o[e]){n=!0;break}n||t.push(o[e])}for(;t.length;)o.removeTrack(t.shift())};Object.keys(r).forEach(function(e){var n=r[e];i.addEventListener(e,n),s.on("dispose",function(t){return i.removeEventListener(e,n)})}),s.on("loadstart",n),s.on("dispose",function(t){return s.off("loadstart",n)})}})},h.prototype.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){var e=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(e,t),h.disposeMediaElement(t),t=e}else{t=f.createElement("video");var n=me({},this.options_.tag&&yt(this.options_.tag));L&&!0===this.options_.nativeControlsForTouch||delete n.controls,vt(t,U(n,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&mt(t,"preload",this.options_.preload);for(var r=["loop","muted","playsinline","autoplay"],i=0;i<r.length;i++){var o=r[i],s=this.options_[o];void 0!==s&&(s?mt(t,o,o):bt(t,o),t[o]=s)}return t},h.prototype.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,n=function(){e=!0};this.on("loadstart",n);var r=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),e||this.trigger("loadstart")})}var i=["loadstart"];i.push("loadedmetadata"),2<=t.readyState&&i.push("loadeddata"),3<=t.readyState&&i.push("canplay"),4<=t.readyState&&i.push("canplaythrough"),this.ready(function(){i.forEach(function(t){this.trigger(t)},this)})}},h.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){Q(t,"Video is not ready. (Video.js)")}},h.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&C&&j&&0===this.el_.currentTime){return this.on("timeupdate",function t(){0<e.el_.currentTime&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN}return this.el_.duration||NaN},h.prototype.width=function(){return this.el_.offsetWidth},h.prototype.height=function(){return this.el_.offsetHeight},h.prototype.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){t.off("webkitbeginfullscreen",n),t.off("webkitendfullscreen",e)})}},h.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=d.navigator&&d.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},h.prototype.enterFullScreen=function(){var t=this.el_;t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},h.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},h.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},h.prototype.reset=function(){h.resetMediaElement(this.el_)},h.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},h.prototype.setControls=function(t){this.el_.controls=!!t},h.prototype.addTextTrack=function(t,e,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,e,n):u.prototype.addTextTrack.call(this,t,e,n)},h.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return u.prototype.createRemoteTextTrack.call(this,t);var e=f.createElement("track");return t.kind&&(e.kind=t.kind),t.label&&(e.label=t.label),(t.language||t.srclang)&&(e.srclang=t.language||t.srclang),t.default&&(e.default=t.default),t.id&&(e.id=t.id),t.src&&(e.src=t.src),e},h.prototype.addRemoteTextTrack=function(t,e){var n=u.prototype.addRemoteTextTrack.call(this,t,e);return this.featuresNativeTextTracks&&this.el().appendChild(n),n},h.prototype.removeRemoteTextTrack=function(t){if(u.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var e=this.$$("track"),n=e.length;n--;)t!==e[n]&&t!==e[n].track||this.el().removeChild(e[n])},h.prototype.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),d.performance&&"function"==typeof d.performance.now?t.creationTime=d.performance.now():d.performance&&d.performance.timing&&"number"==typeof d.performance.timing.navigationStart&&(t.creationTime=d.Date.now()-d.performance.timing.navigationStart),t},h}(or);if(it()){Pi.TEST_VID=f.createElement("video");var Di=f.createElement("track");Di.kind="captions",Di.srclang="en",Di.label="English",Pi.TEST_VID.appendChild(Di)}Pi.isSupported=function(){try{Pi.TEST_VID.volume=.5}catch(t){return!1}return!(!Pi.TEST_VID||!Pi.TEST_VID.canPlayType)},Pi.canPlayType=function(t){return Pi.TEST_VID.canPlayType(t)},Pi.canPlaySource=function(t,e){return Pi.canPlayType(t.type)},Pi.canControlVolume=function(){try{var t=Pi.TEST_VID.volume;return Pi.TEST_VID.volume=t/2+.1,t!==Pi.TEST_VID.volume}catch(t){return!1}},Pi.canControlPlaybackRate=function(){if(C&&j&&A<58)return!1;try{var t=Pi.TEST_VID.playbackRate;return Pi.TEST_VID.playbackRate=t/2+.1,t!==Pi.TEST_VID.playbackRate}catch(t){return!1}},Pi.supportsNativeTextTracks=function(){return O},Pi.supportsNativeVideoTracks=function(){return!(!Pi.TEST_VID||!Pi.TEST_VID.videoTracks)},Pi.supportsNativeAudioTracks=function(){return!(!Pi.TEST_VID||!Pi.TEST_VID.audioTracks)},Pi.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Pi.prototype.featuresVolumeControl=Pi.canControlVolume(),Pi.prototype.featuresPlaybackRate=Pi.canControlPlaybackRate(),Pi.prototype.movingMediaElementInDOM=!_,Pi.prototype.featuresFullscreenResize=!0,Pi.prototype.featuresProgressEvents=!0,Pi.prototype.featuresTimeupdateEvents=!0,Pi.prototype.featuresNativeTextTracks=Pi.supportsNativeTextTracks(),Pi.prototype.featuresNativeVideoTracks=Pi.supportsNativeVideoTracks(),Pi.prototype.featuresNativeAudioTracks=Pi.supportsNativeAudioTracks();var Oi=Pi.TEST_VID&&Pi.TEST_VID.constructor.prototype.canPlayType,Li=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,Mi=/^video\/mp4/i;Pi.patchCanPlayType=function(){4<=w&&!E?Pi.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Li.test(t)?"maybe":Oi.call(this,t)}:k&&(Pi.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Mi.test(t)?"maybe":Oi.call(this,t)})},Pi.unpatchCanPlayType=function(){var t=Pi.TEST_VID.constructor.prototype.canPlayType;return Pi.TEST_VID.constructor.prototype.canPlayType=Oi,t},Pi.patchCanPlayType(),Pi.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},Pi.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){Pi.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Pi.prototype["set"+ge(e)]=function(t){(this.el_[e]=t)?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){Pi.prototype[t]=function(){return this.el_[t]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(e){Pi.prototype["set"+ge(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(t){Pi.prototype[t]=function(){return this.el_[t]()}}),or.withSourceHandlers(Pi),Pi.nativeSourceHandler={},Pi.nativeSourceHandler.canPlayType=function(t){try{return Pi.TEST_VID.canPlayType(t)}catch(t){return""}},Pi.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return Pi.nativeSourceHandler.canPlayType(t.type);if(t.src){var n=en(t.src);return Pi.nativeSourceHandler.canPlayType("video/"+n)}return""},Pi.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},Pi.nativeSourceHandler.dispose=function(){},Pi.registerSourceHandler(Pi.nativeSourceHandler),or.registerTech("Html5",Pi);var Ii=V(["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "],["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "]),Ri=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","resize","volumechange","texttrackchange"],Fi=function(u){function h(t,e,n){if(F(this,h),t.id=t.id||"vjs_video_"+Mt(),(e=U(h.getTagSettings(t),e)).initChildren=!1,e.createEl=!1,e.evented=!1,e.reportTouchActivity=!1,!e.language)if("function"==typeof t.closest){var r=t.closest("[lang]");r&&r.getAttribute&&(e.language=r.getAttribute("lang"))}else for(var i=t;i&&1===i.nodeType;){if(yt(i).hasOwnProperty("lang")){e.language=i.getAttribute("lang");break}i=i.parentNode}var o=H(this,u.call(this,null,e,n));if(o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,!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?");if(o.tag=t,o.tagAttributes=t&&yt(t),o.language(o.options_.language),e.languages){var s={};Object.getOwnPropertyNames(e.languages).forEach(function(t){s[t.toLowerCase()]=e.languages[t]}),o.languages_=s}else o.languages_=h.prototype.options_.languages;o.cache_={},o.poster_=e.poster||"",o.controls_=!!e.controls,o.cache_.lastVolume=1,t.controls=!1,t.removeAttribute("controls"),o.scrubbing_=!1,o.el_=o.createEl(),fe(o,{eventBusKey:"el_"});var a=me(o.options_);if(e.plugins){var l=e.plugins;Object.keys(l).forEach(function(t){if("function"!=typeof this[t])throw new Error('plugin "'+t+'" does not exist');this[t](l[t])},o)}o.options_.playerOptions=a,o.middleware_=[],o.initChildren(),o.isAudio("audio"===t.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),_||o.addClass("vjs-workinghover"),h.players[o.id_]=o;var c=p.split(".")[0];return o.addClass("vjs-v"+c),o.userActive(!0),o.reportUserActivity(),o.listenForUserActivity_(),o.on("fullscreenchange",o.handleFullscreenChange_),o.on("stageclick",o.handleStageClick_),o.changingSrc_=!1,o.playWaitingForReady_=!1,o.playOnLoadstart_=null,o.forceAutoplayInChrome_(),o}return B(h,u),h.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),h.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(),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),u.prototype.dispose.call(this)},h.prototype.createEl=function(){var e=this.tag,n=void 0,t=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();t?n=this.el_=e.parentNode:r||(n=this.el_=u.prototype.createEl.call(this,"div"));var i=yt(e);if(r){for(n=this.el_=e,e=this.tag=f.createElement("video");n.children.length;)e.appendChild(n.firstChild);ht(n,"video-js")||pt(n,"video-js"),n.appendChild(e),t=this.playerElIngest_=n}if(e.setAttribute("tabindex","-1"),e.removeAttribute("width"),e.removeAttribute("height"),Object.getOwnPropertyNames(i).forEach(function(t){"class"===t?(n.className+=" "+i[t],r&&(e.className+=" "+i[t])):(n.setAttribute(t,i[t]),r&&e.setAttribute(t,i[t]))}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=n.player=this,this.addClass("vjs-paused"),!0!==d.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=ee("vjs-styles-dimensions");var o=Pt(".vjs-styles-defaults"),s=Pt("head");s.insertBefore(this.styleEl_,o?o.nextSibling:s.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var a=e.getElementsByTagName("a"),l=0;l<a.length;l++){var c=a.item(l);pt(c,"vjs-hidden"),c.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!t&&e.parentNode.insertBefore(n,e),ut(e,n),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_=n},h.prototype.width=function(t,e){return this.dimension("width",t,e)},h.prototype.height=function(t,e){return this.dimension("height",t,e)},h.prototype.dimension=function(t,e,n){var r=t+"_";if(void 0===e)return this[r]||0;if(""===e)return this[r]=void 0,void this.updateStyleEl_();var i=parseFloat(e);isNaN(i)?Q.error('Improper value "'+e+'" supplied for for '+t):(this[r]=i,this.updateStyleEl_(),this.isReady_&&!n&&this.trigger("playerresize"))},h.prototype.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},h.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},h.prototype.updateStyleEl_=function(){if(!0!==d.VIDEOJS_NO_DYNAMIC_STYLE){var t=void 0,e=void 0,n=void 0,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:0<this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),i=r[1]/r[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/i:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*i,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),ne(this.styleEl_,"\n      ."+n+" {\n        width: "+t+"px;\n        height: "+e+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*i+"%;\n      }\n    ")}else{var o="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,a=this.tech_&&this.tech_.el();a&&(0<=o&&(a.width=o),0<=s&&(a.height=s))}},h.prototype.loadTech_=function(t,e){var n=this;this.tech_&&this.unloadTech_();var r=ge(t),i=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==r&&this.tag&&(or.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var o={source:e,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",autoplay:this.options_.autoplay,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"]};jn.names.forEach(function(t){var e=jn[t];o[e.getterName]=n[e.privateName]}),U(o,this.options_[r]),U(o,this.options_[i]),U(o,this.options_[t.toLowerCase()]),this.tag&&(o.tag=this.tag),e&&e.src===this.cache_.src&&0<this.cache_.currentTime&&(o.startTime=this.cache_.currentTime);var s=or.getTech(t);if(!s)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new s(o),this.tech_.ready(re(this,this.handleTechReady_),!0),Re(this.textTracksJson_||[],this.tech_),Ri.forEach(function(t){n.on(n.tech_,t,n["handleTech"+ge(t)+"_"])}),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()||"Html5"===r&&this.tag||ut(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},h.prototype.unloadTech_=function(){var n=this;jn.names.forEach(function(t){var e=jn[t];n[e.privateName]=n[e.getterName]()}),this.textTracksJson_=Ie(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},h.prototype.tech=function(t){return void 0===t&&Q.warn(Z(Ii)),this.tech_},h.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_)},h.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_)},h.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(t){Q("deleting tag.poster throws in some browsers",t)}},h.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},h.prototype.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},h.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},h.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},h.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},h.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},h.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},h.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},h.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},h.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(Q.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},h.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},h.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},h.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},h.prototype.handleTechClick_=function(t){Nt(t)&&this.controls_&&(this.paused()?this.play():this.pause())},h.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},h.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},h.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},h.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},h.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},h.prototype.handleStageClick_=function(){this.reportUserActivity()},h.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},h.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t)},h.prototype.handleTechTextData_=function(){var t=null;1<arguments.length&&(t=arguments[1]),this.trigger("textdata",t)},h.prototype.getCache=function(){return this.cache_},h.prototype.techCall_=function(i,o){this.ready(function(){if(i in cr)return t=this.middleware_,e=this.tech_,r=o,e[n=i](t.reduce(ur(n),r));var t,e,n,r;try{this.tech_&&this.tech_[i](o)}catch(t){throw Q(t),t}},!0)},h.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in lr)return t=this.middleware_,n=this.tech_,r=e,t.reduceRight(ur(r),n[r]());var t,n,r;try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Q("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Q("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Q(t),t}}},h.prototype.play=function(){var t=this;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return this.techGet_("play");this.playOnLoadstart_=function(){t.playOnLoadstart_=null,Le(t.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){t.playWaitingForReady_=!1,Le(t.play())})}},h.prototype.pause=function(){this.techCall_("pause")},h.prototype.paused=function(){return!1!==this.techGet_("paused")},h.prototype.played=function(){return this.techGet_("played")||Ce(0,0)},h.prototype.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},h.prototype.currentTime=function(t){return void 0!==t?(t<0&&(t=0),void this.techCall_("setCurrentTime",t)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},h.prototype.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))<0&&(t=1/0),t!==this.cache_.duration&&((this.cache_.duration=t)===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},h.prototype.remainingTime=function(){return this.duration()-this.currentTime()},h.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},h.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=Ce(0,0)),t},h.prototype.bufferedPercent=function(){return we(this.buffered(),this.duration())},h.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return e<n&&(n=e),n},h.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(0<e&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},h.prototype.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},h.prototype.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},h.prototype.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},h.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},h.prototype.isFullscreen=function(t){if(void 0===t)return!!this.isFullscreen_;this.isFullscreen_=!!t},h.prototype.requestFullscreen=function(){var n=ke;this.isFullscreen(!0),n.requestFullscreen?($t(f,n.fullscreenchange,re(this,function t(e){this.isFullscreen(f[n.fullscreenElement]),!1===this.isFullscreen()&&Xt(f,n.fullscreenchange,t),this.trigger("fullscreenchange")})),this.el_[n.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},h.prototype.exitFullscreen=function(){var t=ke;this.isFullscreen(!1),t.requestFullscreen?f[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},h.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=f.documentElement.style.overflow,$t(f,"keydown",re(this,this.fullWindowOnEscKey)),f.documentElement.style.overflow="hidden",pt(f.body,"vjs-full-window"),this.trigger("enterFullWindow")},h.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},h.prototype.exitFullWindow=function(){this.isFullWindow=!1,Xt(f,"keydown",this.fullWindowOnEscKey),f.documentElement.style.overflow=this.docOrigOverflow,dt(f.body,"vjs-full-window"),this.trigger("exitFullWindow")},h.prototype.canPlayType=function(t){for(var e=void 0,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],o=or.getTech(i);if(o||(o=be.getComponent(i)),o){if(o.isSupported()&&(e=o.canPlayType(t)))return e}else Q.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},h.prototype.selectSource=function(t){var n,r=this,e=this.options_.techOrder.map(function(t){return[t,or.getTech(t)]}).filter(function(t){var e=t[0],n=t[1];return n?n.isSupported():(Q.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(t,n,r){var i=void 0;return t.some(function(e){return n.some(function(t){if(i=r(e,t))return!0})}),i},o=function(t,e){var n=t[0];if(t[1].canPlaySource(e,r.options_[n.toLowerCase()]))return{source:e,tech:n}};return(this.options_.sourceOrder?i(t,e,(n=o,function(t,e){return n(e,t)})):i(e,t,o))||!1},h.prototype.src=function(t){var i=this;if(void 0===t)return this.cache_.src||"";var o=function e(t){if(Array.isArray(t)){var n=[];t.forEach(function(t){t=e(t),Array.isArray(t)?n=n.concat(t):$(t)&&n.push(t)}),t=n}else t="string"==typeof t&&t.trim()?[{src:t}]:$(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[t]:[];return t}(t);o.length?(this.cache_.sources=o,this.changingSrc_=!0,this.cache_.source=o[0],ar(this,o[0],function(t,e){var n,r;if(i.middleware_=e,i.src_(t))return 1<o.length?i.src(o.slice(1)):(i.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void i.triggerReady());i.changingSrc_=!1,i.cache_.src=t.src,n=e,r=i.tech_,n.forEach(function(t){return t.setTech&&t.setTech(r)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},h.prototype.src_=function(t){var e,n,r=this.selectSource([t]);return!r||(e=r.tech,n=this.techName_,ge(e)!==ge(n)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source)):this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),"auto"===this.options_.preload&&this.load()},!0),!1)},h.prototype.load=function(){this.techCall_("load")},h.prototype.reset=function(){this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},h.prototype.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},h.prototype.currentSource=function(){return this.cache_.source||{}},h.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},h.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},h.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},h.prototype.autoplay=function(t){return void 0!==t?(this.techCall_("setAutoplay",t),this.options_.autoplay=t,void this.ready(this.forceAutoplayInChrome_)):this.techGet_("autoplay",t)},h.prototype.forceAutoplayInChrome_=function(){this.paused()&&(this.autoplay()||this.options_.autoplay)&&j&&!C&&this.play()},h.prototype.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},h.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},h.prototype.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),this.poster_=t,this.techCall_("setPoster",t),this.trigger("posterchange")},h.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},h.prototype.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),this.controls_?(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_()))},h.prototype.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},h.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new Ne(t),this.addClass("vjs-error"),Q.error("(CODE:"+this.error_.code+" "+Ne.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},h.prototype.reportUserActivity=function(t){this.userActivity_=!0},h.prototype.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},h.prototype.listenForUserActivity_=function(){var e=void 0,n=void 0,r=void 0,i=re(this,this.reportUserActivity);this.on("mousedown",function(){i(),this.clearInterval(e),e=this.setInterval(i,250)}),this.on("mousemove",function(t){t.screenX===n&&t.screenY===r||(n=t.screenX,r=t.screenY,i())}),this.on("mouseup",function(t){i(),this.clearInterval(e)}),this.on("keydown",i),this.on("keyup",i);var o=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var t=this.options_.inactivityTimeout;t<=0||(o=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},h.prototype.playbackRate=function(t){if(void 0===t)return this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},h.prototype.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},h.prototype.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},h.prototype.addTextTrack=function(t,e,n){if(this.tech_)return this.tech_.addTextTrack(t,e,n)},h.prototype.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},h.prototype.removeRemoteTextTrack=function(){var t=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).track,e=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(e)},h.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},h.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},h.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},h.prototype.language=function(t){if(void 0===t)return this.language_;this.language_=String(t).toLowerCase()},h.prototype.languages=function(){return me(h.prototype.options_.languages,this.languages_)},h.prototype.toJSON=function(){var t=me(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var r=e[n];(r=me(r)).player=void 0,t.tracks[n]=r}return t},h.prototype.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var r=new Be(this,e);return this.addChild(r),r.on("dispose",function(){n.removeChild(r)}),r.open(),r},h.getTagSettings=function(t){var e={sources:[],tracks:[]},n=yt(t),r=n["data-setup"];if(ht(t,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=De(r||"{}"),o=i[0],s=i[1];o&&Q.error(o),U(n,s)}if(U(e,n),t.hasChildNodes())for(var a=t.childNodes,l=0,c=a.length;l<c;l++){var u=a[l],h=u.nodeName.toLowerCase();"source"===h?e.sources.push(yt(u)):"track"===h&&e.tracks.push(yt(u))}return e},h.prototype.flexNotSupported_=function(){var t=f.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},h}(be);jn.names.forEach(function(t){var e=jn[t];Fi.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),Fi.players={};var Bi=d.navigator;Fi.prototype.options_={techOrder:or.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Bi&&(Bi.languages&&Bi.languages[0]||Bi.userLanguage||Bi.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(t){Fi.prototype[t]=function(){return this.techGet_(t)}}),Ri.forEach(function(t){Fi.prototype["handleTech"+ge(t)+"_"]=function(){return this.trigger(t)}}),be.registerComponent("Player",Fi);var Hi="plugin",Vi="activePlugins_",qi={},Wi=function(t){return qi.hasOwnProperty(t)},zi=function(t){return Wi(t)?qi[t]:void 0},Ui=function(t,e){t[Vi]=t[Vi]||{},t[Vi][e]=!0},$i=function(t,e,n){var r=(n?"before":"")+"pluginsetup";t.trigger(r,e),t.trigger(r+":"+e.name,e)},Xi=function(i,o){return o.prototype.name=i,function(){$i(this,{name:i,plugin:o,instance:null},!0);for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=new(Function.prototype.bind.apply(o,[null].concat([this].concat(e))));return this[i]=function(){return r},$i(this,r.getEventHash()),r}},Yi=function(){function o(t){if(F(this,o),this.constructor===o)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,fe(this),delete this.trigger,ye(this,this.constructor.defaultState),Ui(t,this.name),this.dispose=re(this,this.dispose),t.on("dispose",this.dispose)}return o.prototype.version=function(){return this.constructor.VERSION},o.prototype.getEventHash=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},o.prototype.trigger=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Yt(this.eventBusEl_,t,this.getEventHash(e))},o.prototype.handleStateChanged=function(t){},o.prototype.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e[Vi][t]=!1,this.player=this.state=null,e[t]=Xi(t,qi[t])},o.isBasic=function(t){var e="string"==typeof t?zi(t):t;return"function"==typeof e&&!o.prototype.isPrototypeOf(e.prototype)},o.registerPlugin=function(t,e){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(void 0===t?"undefined":R(t))+".");if(Wi(t))Q.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Fi.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof e)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(void 0===e?"undefined":R(e))+".");var n,r,i;return qi[t]=e,t!==Hi&&(o.isBasic(e)?Fi.prototype[t]=(n=t,r=e,i=function(){$i(this,{name:n,plugin:r,instance:null},!0);var t=r.apply(this,arguments);return Ui(this,n),$i(this,{name:n,plugin:r,instance:t}),t},Object.keys(r).forEach(function(t){i[t]=r[t]}),i):Fi.prototype[t]=Xi(t,e)),e},o.deregisterPlugin=function(t){if(t===Hi)throw new Error("Cannot de-register base plugin.");Wi(t)&&(delete qi[t],delete Fi.prototype[t])},o.getPlugins=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Object.keys(qi),n=void 0;return t.forEach(function(t){var e=zi(t);e&&((n=n||{})[t]=e)}),n},o.getPluginVersion=function(t){var e=zi(t);return e&&e.VERSION||""},o}();Yi.getPlugin=zi,Yi.BASE_PLUGIN_NAME=Hi,Yi.registerPlugin(Hi,Yi),Fi.prototype.usingPlugin=function(t){return!!this[Vi]&&!0===this[Vi][t]},Fi.prototype.hasPlugin=function(t){return!!Wi(t)};function Ki(t,n,e){var r=void 0;if("string"==typeof t){var i=Ki.getPlayers();if(0===t.indexOf("#")&&(t=t.slice(1)),i[t])return n&&Q.warn('Player "'+t+'" is already initialised. Options will not be applied.'),e&&i[t].ready(e),i[t];r=Pt("#"+t)}else r=t;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(r.player||Fi.players[r.playerId])return r.player||Fi.players[r.playerId];ot(r)&&!f.body.contains(r)&&Q.warn("The element supplied is not included in the DOM"),n=n||{},Ki.hooks("beforesetup").forEach(function(t){var e=t(r,me(n));$(e)&&!Array.isArray(e)?n=me(n,e):Q.error("please return an object in beforesetup hooks")});var o=new(be.getComponent("Player"))(r,n,e);return Ki.hooks("setup").forEach(function(t){return t(o)}),o}if("undefined"==typeof HTMLVideoElement&&it()&&(f.createElement("video"),f.createElement("audio"),f.createElement("track"),f.createElement("video-js")),Ki.hooks_={},Ki.hooks=function(t,e){return Ki.hooks_[t]=Ki.hooks_[t]||[],e&&(Ki.hooks_[t]=Ki.hooks_[t].concat(e)),Ki.hooks_[t]},Ki.hook=function(t,e){Ki.hooks(t,e)},Ki.hookOnce=function(n,t){Ki.hooks(n,[].concat(t).map(function(e){return function t(){return Ki.removeHook(n,t),e.apply(void 0,arguments)}}))},Ki.removeHook=function(t,e){var n=Ki.hooks(t).indexOf(e);return!(n<=-1)&&(Ki.hooks_[t]=Ki.hooks_[t].slice(),Ki.hooks_[t].splice(n,1),!0)},!0!==d.VIDEOJS_NO_DYNAMIC_STYLE&&it()){var Gi=Pt(".vjs-styles-defaults");if(!Gi){Gi=ee("vjs-styles-defaults");var Ji=Pt("head");Ji&&Ji.insertBefore(Gi,Ji.firstChild),ne(Gi,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}return te(1,Ki),Ki.VERSION=p,Ki.options=Fi.prototype.options_,Ki.getPlayers=function(){return Fi.players},Ki.players=Fi.players,Ki.getComponent=be.getComponent,Ki.registerComponent=function(t,e){or.isTech(e)&&Q.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),be.registerComponent.call(be,t,e)},Ki.getTech=or.getTech,Ki.registerTech=or.registerTech,Ki.use=function(t,e){sr[t]=sr[t]||[],sr[t].push(e)},Ki.browser=I,Ki.TOUCH_ENABLED=L,Ki.extend=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=function(){t.apply(this,arguments)},r={};for(var i in"object"===(void 0===e?"undefined":R(e))?(e.constructor!==Object.prototype.constructor&&(n=e.constructor),r=e):"function"==typeof e&&(n=e),function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":R(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)}(n,t),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},Ki.mergeOptions=me,Ki.bind=re,Ki.registerPlugin=Yi.registerPlugin,Ki.plugin=function(t,e){return Q.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Yi.registerPlugin(t,e)},Ki.getPlugins=Yi.getPlugins,Ki.getPlugin=Yi.getPlugin,Ki.getPluginVersion=Yi.getPluginVersion,Ki.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),Ki.options.languages=me(Ki.options.languages,((n={})[t]=e,n)),Ki.options.languages[t]},Ki.log=Q,Ki.createTimeRange=Ki.createTimeRanges=Ce,Ki.formatTime=kr,Ki.parseUrl=tn,Ki.isCrossOrigin=nn,Ki.EventTarget=oe,Ki.on=$t,Ki.one=Kt,Ki.off=Xt,Ki.trigger=Yt,Ki.xhr=fn,Ki.TextTrack=_n,Ki.AudioTrack=Tn,Ki.VideoTrack=Cn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(t){Ki[t]=function(){return Q.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),Ot[t].apply(null,arguments)}}),Ki.computedStyle=tt,Ki.dom=Ot,Ki.url=rn,Ki});var currentPlVideoSize,plPlayerElement=document.getElementById("pl-player"),plPlayer=plPlayerElement?videojs("pl-player"):null;function setRatio(t,e,n){var r="landscape";return 1<e/t&&Object.keys(n.portrait).length&&(r="portrait"),r}function closest(t,e){var n,r,i=0;if(e.length){for(n=e[0];i<e.length;i++)r=Math.abs(t-n.diff),Math.abs(t-e[i].diff)<r&&(n=e[i]),r=null;return n.size}return!1}function startVideo(){plPlayerElement.classList.add("show");var t=JSON.parse(plPlayerElement.getAttribute("data-playlist")),e=Math.max(document.documentElement.clientWidth,window.innerWidth||0),n=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(0<Object.keys(t).length){var r=setRatio(e,n,t),i="portrait"==r?n:e,o=[];for(var s in t[r]){var a=s.split("x"),l=a[0];"portrait"==r&&(l=a[1]);var c=i-l;o.push({size:s,diff:c})}var u=closest(0,o);u!==currentPlVideoSize&&(currentPlVideoSize=u,plPlayer.src(t[r][currentPlVideoSize]),plPlayer.play())}}plPlayerElement&&(startVideo(),window.addEventListener("optimizedResize",startVideo));var throttle=function(t,e,n){n=n||window;var r=!1;n.addEventListener(t,function(){r||(r=!0,requestAnimationFrame(function(){n.dispatchEvent(new CustomEvent(e)),r=!1}))})};throttle("resize","optimizedResize");