PageSourceSearch

https://primanews.ro/assets/js/vendors.js

js primanews.ro collected 2026-10-02 12:00:23 UTC 812,290 bytes, 1 lines download raw bytes

vendor: 2,448 bytes, line 1
1!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(T,R){"use strict";function v(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function m(e){return null!=e&&e===e.window}var t=[],U=Object.getPrototypeOf,a=t.slice,j=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},B=t.push,F=t.indexOf,H={},q=H.toString,V=H.hasOwnProperty,W=V.toString,$=W.call(Object),g={},w=T.document,z={type:!0,src:!0,nonce:!0,noModule:!0};function G(e,t,i){var n,r,s=(i=i||w).createElement("script");if(s.text=e,t)for(n in z)(r=t[n]||t.getAttribute&&t.getAttribute(n))&&s.setAttribute(n,r);i.head.appendChild(s).parentNode.removeChild(s)}function f(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?H[q.call(e)]||"object":typeof e}var e="3.6.1",S=function(e,t){return new S.fn.init(e,t)};function X(e){var t=!!e&&"length"in e&&e.length,i=f(e);return!v(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:e,constructor:S,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=S.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return S.each(this,e)},map:function(i){return this.pushStack(S.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:B,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,i,n,r,s=arguments[0]||{},o=1,a=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[o]||{},o++),"object"==typeof s||v(s)||(s={}),o===a&&(s=this,o--);o<a;o++)if(null!=(e=arguments[o]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(l&&i&&(S.isPlainObject(i)||(n=Array.isArray(i)))?(r=s[t],r=n&&!Array.isArray(r)?[]:n||S.isPlainObject(r)?r:{}
vendor: 11,458 bytes, line 1
1,n=!1,s[t]=S.extend(l,r,i)):void 0!==i&&(s[t]=i));return s},S.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==q.call(e)||(e=U(e))&&("function"!=typeof(e=V.call(e,"constructor")&&e.constructor)||W.call(e)!==$))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,i){G(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(X(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},makeArray:function(e,t){t=t||[];return null!=e&&(X(Object(e))?S.merge(t,"string"==typeof e?[e]:e):B.call(t,e)),t},inArray:function(e,t,i){return null==t?-1:F.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;n<i;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,i){for(var n=[],r=0,s=e.length,o=!i;r<s;r++)!t(e[r],r)!=o&&n.push(e[r]);return n},map:function(e,t,i){var n,r,s=0,o=[];if(X(e))for(n=e.length;s<n;s++)null!=(r=t(e[s],s,i))&&o.push(r);else for(s in e)null!=(r=t(e[s],s,i))&&o.push(r);return j(o)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){H["[object "+t+"]"]=t.toLowerCase()});function n(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&S(e).is(i))break;n.push(e)}return n}function K(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}var e=function(R){function d(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function U(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function j(){w()}var e,h,b,s,B,p,F,H,T,l,u,w,S,i,k,f,n,r,m,C="sizzle"+ +new Date,c=R.document,E=0,q=0,V=P(),W=P(),$=P(),g=P(),z=function(e,t){return e===t&&(u=!0),0},G={}.hasOwnProperty,t=[],X=t.pop,K=t.push,x=t.push,Y=t.slice,v=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},Q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",o="[\\x20\\t\\r\\n\\f]",a="(?:\\\\[\\da-fA-F]{1,6}"+o+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",J="\\["+o+"*("+a+")(?:"+o+"*([*^$|!~]?=)"+o+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+a+"))|)"+o+"*\\]",Z=":("+a+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+J+")*)|.*)\\)|)",ee=new RegExp(o+"+","g"),y=new RegExp("^"+o+"+|((?:^|[^\\\\])(?:\\\\.)*)"+o+"+$","g"),te=new RegExp("^"+o+"*,"+o+"*"),ie=new RegExp("^"+o+"*([>+~]|"+o+")"+o+"*"),ne=new RegExp(o+"|>"),re=new RegExp(Z),se=new RegExp("^"+a+"$"),_={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+o+"*(even|odd|(([+-]|)(\\d*)n|)"+o+"*(?:([+-]|)"+o+"*(\\d+)|))"+o+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+o+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+o+"*((?:-\\d)?\\d*)"+o+"*\\)|)(?=[^-]|$)","i")},oe=/HTML$/i,ae=/^(?:input|select|textarea|button)$/i,le=/^h\d$/i,A=/^[^{]+\{\s*\[native \w/,ue=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ce=/[+~]/,I=new RegExp("\\\\[\\da-fA-F]{1,6}"+o+"?|\\\\([^\\r\\n\\f])","g"),de=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,he=ve(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{x.apply(t=Y.call(c.childNodes),c.childNodes),t[c.childNodes.length].nodeType}catch(e){x={apply:t.length?function(e,t){K.apply(e,Y.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function L(t,e,i,n){var r,s,o,a,l,u,c=e&&e.ownerDocument,d=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return i;if(!n&&(w(e),e=e||S,k)){if(11!==d&&(a=ue.exec(t)))if(r=a[1]){if(9===d){if(!(u=e.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(c&&(u=c.getElementById(r))&&m(e,u)&&u.id===r)return i.push(u),i}else{if(a[2])return x.apply(i,e.getElementsByTagName(t)),i;if((r=a[3])&&h.getElementsByClassName&&e.getElementsByClassName)return x.apply(i,e.getElementsByClassName(r)),i}if(h.qsa&&!g[t+" "]&&(!f||!f.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(u=t,c=e,1===d&&(ne.test(t)||ie.test(t))){for((c=ce.test(t)&&ge(e.parentNode)||e)===e&&h.scope||((o=e.getAttribute("id"))?o=o.replace(de,U):e.setAttribute("id",o=C)),s=(l=p(t)).length;s--;)l[s]=(o?"#"+o:":scope")+" "+M(l[s]);u=l.join(",")}try{return x.apply(i,c.querySelectorAll(u)),i}catch(e){g(t,!0)}finally{o===C&&e.removeAttribute("id")}}}return H(t.replace(y,"$1"),e,i,n)}function P(){var i=[];function n(e,t){return i.push(e+" ")>b.cacheLength&&delete n[i.shift()],n[e+" "]=t}return n}function O(e){return e[C]=!0,e}function D(e){var t=S.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function pe(e,t){for(var i=e.split("|"),n=i.length;n--;)b.attrHandle[i[n]]=t}function fe(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&he(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function N(o){return O(function(s){return s=+s,O(function(e,t){for(var i,n=o([],e.length,s),r=n.length;r--;)e[i=n[r]]&&(e[i]=!(t[i]=e[i]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=L.support={},B=L.isXML=function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!oe.test(t||e&&e.nodeName||"HTML")},w=L.setDocument=function(e){var e=e?e.ownerDocument||e:c;return e!=S&&9===e.nodeType&&e.documentElement&&(i=(S=e).documentElement,k=!B(S),c!=S&&(e=S.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",j,!1):e.attachEvent&&e.attachEvent("onunload",j)),h.scope=D(function(e){return i.appendChild(e).appendChild(S.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=D(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=D(function(e){return e.appendChild(S.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=A.test(S.getElementsByClassName),h.getById=D(function(e){return i.appendChild(e).id=C,!S.getElementsByName||!S.getElementsByName(C).length}),h.getById?(b.filter.ID=function(e){var t=e.replace(I,d);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&k)return(t=t.getElementById(e))?[t]:[]}):(b.filter.ID=function(e){var t=e.replace(I,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var i,n,r,s=t.getElementById(e);if(s){if((i=s.getAttributeNode("id"))&&i.value===e)return[s];for(r=t.getElementsByName(e),n=0;s=r[n++];)if((i=s.getAttributeNode("id"))&&i.value===e)return[s]}return[]}}),b.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,s=t.getElementsByTagName(e);if("*"!==e)return s;for(;i=s[r++];)1===i.nodeType&&n.push(i);return n},b.find.CLASS=h.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},n=[],f=[],(h.qsa=A.test(S.querySelectorAll))&&(D(function(e){var t;i.appendChild(e).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+o+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||f.push("\\["+o+"*(?:value|"+Q+")"),e.querySelectorAll("[id~="+C+"-]").length||f.push("~="),(t=S.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+o+"*name"+o+"*="+o+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||f.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")}),D(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=S.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&f.push("name"+o+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),f.push(",.*:")})),(h.matchesSelector=A.test(r=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&D(function(e){h.disconnectedMatch=r.call(e,"*"),r.call(e,"[s!='']:x"),n.push("!=",Z)}),f=f.length&&new RegExp(f.join("|")),n=n.length&&new RegExp(n.join("|")),e=A.test(i.compareDocumentPosition),m=e||A.test(i.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(i.contains?i.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},z=e?function(e,t){var i;return e===t?(u=!0,0):(i=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===i?e==S||e.ownerDocument==c&&m(c,e)?-1:t==S||t.ownerDocument==c&&m(c,t)?1:l?v(l,e)-v(l,t):0:4&i?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,n=0,r=e.parentNode,s=t.parentNode,o=[e],a=[t];if(!r||!s)return e==S?-1:t==S?1:r?-1:s?1:l?v(l,e)-v(l,t):0;if(r===s)return fe(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;o[n]===a[n];)n++;return n?fe(o[n],a[n]):o[n]==c?-1:a[n]==c?1:0}),S},L.matches=function(e,t){return L(e,null,null,t)},L.matchesSelector=function(e,t){if(w(e),h.matchesSelector&&k&&!g[t+" "]&&(!n||!n.test(t))&&(!f||!f.test(t)))try{var i=r.call(e,t);if(i||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){g(t,!0)}return 0<L(t,S,null,[e]).length},L.contains=function(e,t){return(e.ownerDocument||e)!=S&&w(e),m(e,t)},L.attr=function(e,t){(e.ownerDocument||e)!=S&&w(e);var i=b.attrHandle[t.toLowerCase()],i=i&&G.call(b.attrHandle,t.toLowerCase())?i(e,t,!k):void 0;return void 0!==i?i:h.attributes||!k?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},L.escape=function(e){return(e+"").replace(de,U)},L.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},L.uniqueSort=function(e){var t,i=[],n=0,r=0;if(u=!h.detectDuplicates,l=!h.sortStable&&e.slice(0),e.sort(z),u){for(;t=e[r++];)t===e[r]&&(n=i.push(r));for(;n--;)e.splice(i[n],1)}return l=null,e},s=L.getText=function(e){var t,i="",n=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=s(e)}
vendor: 15,811 bytes, line 1
1else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)i+=s(t);return i},(b=L.selectors={cacheLength:50,createPseudo:O,match:_,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(I,d),e[3]=(e[3]||e[4]||e[5]||"").replace(I,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||L.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&L.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return _.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&re.test(i)&&(t=(t=p(i,!0))&&i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(I,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=V[e+" "];return t||(t=new RegExp("(^|"+o+")"+e+"("+o+"|$)"))&&V(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(e){e=L.attr(e,t);return null==e?"!="===i:!i||(e+="","="===i?e===n:"!="===i?e!==n:"^="===i?n&&0===e.indexOf(n):"*="===i?n&&-1<e.indexOf(n):"$="===i?n&&e.slice(-n.length)===n:"~="===i?-1<(" "+e.replace(ee," ")+" ").indexOf(n):"|="===i&&(e===n||e.slice(0,n.length+1)===n+"-"))}},CHILD:function(f,e,t,m,g){var y="nth"!==f.slice(0,3),v="last"!==f.slice(-4),_="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,i){var n,r,s,o,a,l,u=y!=v?"nextSibling":"previousSibling",c=e.parentNode,d=_&&e.nodeName.toLowerCase(),h=!i&&!_,p=!1;if(c){if(y){for(;u;){for(o=e;o=o[u];)if(_?o.nodeName.toLowerCase()===d:1===o.nodeType)return!1;l=u="only"===f&&!l&&"nextSibling"}return!0}if(l=[v?c.firstChild:c.lastChild],v&&h){for(p=(a=(n=(r=(s=(o=c)[C]||(o[C]={}))[o.uniqueID]||(s[o.uniqueID]={}))[f]||[])[0]===E&&n[1])&&n[2],o=a&&c.childNodes[a];o=++a&&o&&o[u]||(p=a=0,l.pop());)if(1===o.nodeType&&++p&&o===e){r[f]=[E,a,p];break}}else if(!1===(p=h?a=(n=(r=(s=(o=e)[C]||(o[C]={}))[o.uniqueID]||(s[o.uniqueID]={}))[f]||[])[0]===E&&n[1]:p))for(;(o=++a&&o&&o[u]||(p=a=0,l.pop()))&&((_?o.nodeName.toLowerCase()!==d:1!==o.nodeType)||!++p||(h&&((r=(s=o[C]||(o[C]={}))[o.uniqueID]||(s[o.uniqueID]={}))[f]=[E,p]),o!==e)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(e,s){var t,o=b.pseudos[e]||b.setFilters[e.toLowerCase()]||L.error("unsupported pseudo: "+e);return o[C]?o(s):1<o.length?(t=[e,e,"",s],b.setFilters.hasOwnProperty(e.toLowerCase())?O(function(e,t){for(var i,n=o(e,s),r=n.length;r--;)e[i=v(e,n[r])]=!(t[i]=n[r])}):function(e){return o(e,0,t)}):o}},pseudos:{not:O(function(e){var n=[],r=[],a=F(e.replace(y,"$1"));return a[C]?O(function(e,t,i,n){for(var r,s=a(e,null,n,[]),o=e.length;o--;)(r=s[o])&&(e[o]=!(t[o]=r))}):function(e,t,i){return n[0]=e,a(n,null,i,r),n[0]=null,!r.pop()}}),has:O(function(t){return function(e){return 0<L(t,e).length}}),contains:O(function(t){return t=t.replace(I,d),function(e){return-1<(e.textContent||s(e)).indexOf(t)}}),lang:O(function(i){return se.test(i||"")||L.error("unsupported lang: "+i),i=i.replace(I,d).toLowerCase(),function(e){var t;do{if(t=k?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=R.location&&R.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===i},focus:function(e){return e===S.activeElement&&(!S.hasFocus||S.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return le.test(e.nodeName)},input:function(e){return ae.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:N(function(){return[0]}),last:N(function(e,t){return[t-1]}),eq:N(function(e,t,i){return[i<0?i+t:i]}),even:N(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:N(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:N(function(e,t,i){for(var n=i<0?i+t:t<i?t:i;0<=--n;)e.push(n);return e}),gt:N(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=function(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}(e);function ye(){}function M(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function ve(o,e,t){var a=e.dir,l=e.next,u=l||a,c=t&&"parentNode"===u,d=q++;return e.first?function(e,t,i){for(;e=e[a];)if(1===e.nodeType||c)return o(e,t,i);return!1}:function(e,t,i){var n,r,s=[E,d];if(i){for(;e=e[a];)if((1===e.nodeType||c)&&o(e,t,i))return!0}else for(;e=e[a];)if(1===e.nodeType||c)if(r=(r=e[C]||(e[C]={}))[e.uniqueID]||(r[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[a]||e;else{if((n=r[u])&&n[0]===E&&n[1]===d)return s[2]=n[2];if((r[u]=s)[2]=o(e,t,i))return!0}return!1}}function _e(r){return 1<r.length?function(e,t,i){for(var n=r.length;n--;)if(!r[n](e,t,i))return!1;return!0}:r[0]}function be(e,t,i,n,r){for(var s,o=[],a=0,l=e.length,u=null!=t;a<l;a++)!(s=e[a])||i&&!i(s,n,r)||(o.push(s),u&&t.push(a));return o}function Te(p,f,m,g,y,e){return g&&!g[C]&&(g=Te(g)),y&&!y[C]&&(y=Te(y,e)),O(function(e,t,i,n){var r,s,o,a=[],l=[],u=t.length,c=e||function(e,t,i){for(var n=0,r=t.length;n<r;n++)L(e,t[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),d=!p||!e&&f?c:be(c,a,p,i,n),h=m?y||(e?p:u||g)?[]:t:d;if(m&&m(d,h,i,n),g)for(r=be(h,l),g(r,[],i,n),s=r.length;s--;)(o=r[s])&&(h[l[s]]=!(d[l[s]]=o));if(e){if(y||p){if(y){for(r=[],s=h.length;s--;)(o=h[s])&&r.push(d[s]=o);y(null,h=[],r,n)}for(s=h.length;s--;)(o=h[s])&&-1<(r=y?v(e,o):a[s])&&(e[r]=!(t[r]=o))}}else h=be(h===t?h.splice(u,h.length):h),y?y(null,t,h,n):x.apply(t,h)})}function we(g,y){function e(e,t,i,n,r){var s,o,a,l=0,u="0",c=e&&[],d=[],h=T,p=e||_&&b.find.TAG("*",r),f=E+=null==h?1:Math.random()||.1,m=p.length;for(r&&(T=t==S||t||r);u!==m&&null!=(s=p[u]);u++){if(_&&s){for(o=0,t||s.ownerDocument==S||(w(s),i=!k);a=g[o++];)if(a(s,t||S,i)){n.push(s);break}r&&(E=f)}v&&((s=!a&&s)&&l--,e)&&c.push(s)}if(l+=u,v&&u!==l){for(o=0;a=y[o++];)a(c,d,t,i);if(e){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=X.call(n));d=be(d)}x.apply(n,d),r&&!e&&0<d.length&&1<l+y.length&&L.uniqueSort(n)}return r&&(E=f,T=h),c}var v=0<y.length,_=0<g.length;return v?O(e):e}return ye.prototype=b.filters=b.pseudos,b.setFilters=new ye,p=L.tokenize=function(e,t){var i,n,r,s,o,a,l,u=W[e+" "];if(u)return t?0:u.slice(0);for(o=e,a=[],l=b.preFilter;o;){for(s in i&&!(n=te.exec(o))||(n&&(o=o.slice(n[0].length)||o),a.push(r=[])),i=!1,(n=ie.exec(o))&&(i=n.shift(),r.push({value:i,type:n[0].replace(y," ")}),o=o.slice(i.length)),b.filter)!(n=_[s].exec(o))||l[s]&&!(n=l[s](n))||(i=n.shift(),r.push({value:i,type:s,matches:n}),o=o.slice(i.length));if(!i)break}return t?o.length:o?L.error(e):W(e,a).slice(0)},F=L.compile=function(e,t){var i,n=[],r=[],s=$[e+" "];if(!s){for(i=(t=t||p(e)).length;i--;)((s=function e(t){for(var n,i,r,s=t.length,o=b.relative[t[0].type],a=o||b.relative[" "],l=o?1:0,u=ve(function(e){return e===n},a,!0),c=ve(function(e){return-1<v(n,e)},a,!0),d=[function(e,t,i){return e=!o&&(i||t!==T)||((n=t).nodeType?u:c)(e,t,i),n=null,e}];l<s;l++)if(i=b.relative[t[l].type])d=[ve(_e(d),i)];else{if((i=b.filter[t[l].type].apply(null,t[l].matches))[C]){for(r=++l;r<s&&!b.relative[t[r].type];r++);return Te(1<l&&_e(d),1<l&&M(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(y,"$1"),i,l<r&&e(t.slice(l,r)),r<s&&e(t=t.slice(r)),r<s&&M(t))}d.push(i)}return _e(d)}(t[i]))[C]?n:r).push(s);(s=$(e,we(r,n))).selector=e}return s},H=L.select=function(e,t,i,n){var r,s,o,a,l,u="function"==typeof e&&e,c=!n&&p(e=u.selector||e);if(i=i||[],1===c.length){if(2<(s=c[0]=c[0].slice(0)).length&&"ID"===(o=s[0]).type&&9===t.nodeType&&k&&b.relative[s[1].type]){if(!(t=(b.find.ID(o.matches[0].replace(I,d),t)||[])[0]))return i;u&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(r=_.needsContext.test(e)?0:s.length;r--&&(o=s[r],!b.relative[a=o.type]);)if((l=b.find[a])&&(n=l(o.matches[0].replace(I,d),ce.test(s[0].type)&&ge(t.parentNode)||t))){if(s.splice(r,1),e=n.length&&M(s))break;return x.apply(i,n),i}}return(u||F(e,c))(n,t,!k,i,!t||ce.test(e)&&ge(t.parentNode)||t),i},h.sortStable=C.split("").sort(z).join("")===C,h.detectDuplicates=!!u,w(),h.sortDetached=D(function(e){return 1&e.compareDocumentPosition(S.createElement("fieldset"))}),D(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||pe("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&D(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||pe("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),D(function(e){return null==e.getAttribute("disabled")})||pe(Q,function(e,t,i){if(!i)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),L}(T),Y=(S.find=e,S.expr=e.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=e.uniqueSort,S.text=e.getText,S.isXMLDoc=e.isXML,S.contains=e.contains,S.escapeSelector=e.escape,S.expr.match.needsContext);function l(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Q=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(e,i,n){return v(i)?S.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?S.grep(e,function(e){return e===i!==n}):"string"!=typeof i?S.grep(e,function(e){return-1<F.call(i,e)!==n}):S.filter(i,e,n)}S.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?S.find.matchesSelector(n,e)?[n]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,i,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<n;t++)if(S.contains(r[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)S.find(e,r[t],i);return 1<n?S.uniqueSort(i):i},filter:function(e){return this.pushStack(J(this,e||[],!1))},not:function(e){return this.pushStack(J(this,e||[],!0))},is:function(e){return!!J(this,"string"==typeof e&&Y.test(e)?S(e):e||[],!1).length}});var Z,ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,te=((S.fn.init=function(e,t,i){if(e){if(i=i||Z,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==i.ready?i.ready(e):e(S):S.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:ee.exec(e))||!n[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:w,!0)),Q.test(n[1])&&S.isPlainObject(t))for(var n in t)v(this[n])?this[n](t[n]):this.attr(n,t[n])}else(i=w.getElementById(n[2]))&&(this[0]=i,this.length=1)}return this}).prototype=S.fn,Z=S(w),/^(?:parents|prev(?:Until|All))/),ie={children:!0,contents:!0,next:!0,prev:!0};function ne(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,r=this.length,s=[],o="string"!=typeof e&&S(e);if(!Y.test(e))for(;n<r;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(o?-1<o.index(i):1===i.nodeType&&S.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(1<s.length?S.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?F.call(S(e),this[0]):F.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return n(e,"parentNode")},parentsUntil:function(e,t,i){return n(e,"parentNode",i)},next:function(e){return ne(e,"nextSibling")},prev:function(e){return ne(e,"previousSibling")},nextAll:function(e){return n(e,"nextSibling")},prevAll:function(e){return n(e,"previousSibling")},nextUntil:function(e,t,i){return n(e,"nextSibling",i)},prevUntil:function(e,t,i){return n(e,"previousSibling",i)},siblings:function(e){return K((e.parentNode||{}).firstChild,e)},children:function(e){return K(e.firstChild)},contents:function(e){return null!=e.contentDocument&&U(e.contentDocument)?e.contentDocument:(l(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(n,r){S.fn[n]=function(e,t){var i=S.map(this,r,e);return(t="Until"!==n.slice(-5)?e:t)&&"string"==typeof t&&(i=S.filter(t,i)),1<this.length&&(ie[n]||S.uniqueSort(i),te.test(n))&&i.reverse(),this.pushStack(i)}});var k=/[^\x20\t\r\n\f]+/g;function c(e){return e}function re(e){throw e}function se(e,t,i,n){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(i):e&&v(r=e.then)?r.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}S.Callbacks=function(n){var e,i;n="string"==typeof n?(e=n,i={},S.each(e.match(k)||[],function(e,t){i[t]=!0}),i):S.extend({},n);function r(){for(a=a||n.once,o=s=!0;u.length;c=-1)for(t=u.shift();++c<l.length;)!1===l[c].apply(t[0],t[1])&&n.stopOnFalse&&(c=l.length,t=!1);n.memory||(t=!1),s=!1,a&&(l=t?[]:"")}var s,t,o,a,l=[],u=[],c=-1,d={add:function(){return l&&(t&&!s&&(c=l.length-1,u.push(t)),function i(e){S.each(e,function(e,t){v(t)?n.unique&&d.has(t)||l.push(t):t&&t.length&&"string"!==f(t)&&i(t)})}(arguments),t)&&!s&&r(),this},remove:function(){return S.each(arguments,function(e,t){for(var i;-1<(i=S.inArray(t,l,i));)l.splice(i,1),i<=c&&c--}),this},has:function(e){return e?-1<S.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=u=[],l=t="",this},disabled:function(){return!l},lock:function(){return a=u=[],t||s||(l=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),s)||r(),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},S.extend({Deferred:function(e){var s=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var r=arguments;return S.Deferred(function(n){S.each(s,function(e,t){var i=v(r[t[4]])&&r[t[4]];a[t[1]](function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[t[0]+"With"](this,i?[e]:arguments)})}),r=null}).promise()},then:function(t,i,n){var l=0;function u(r,s,o,a){return function(){function e(){var e,t;if(!(r<l)){if((e=o.apply(i,n))===s.promise())throw new TypeError("Thenable self
1-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?a?t.call(e,u(l,s,c,a),u(l,s,re,a)):(l++,t.call(e,u(l,s,c,a),u(l,s,re,a),u(l,s,c,s.notifyWith))):(o!==c&&(i=void 0,n=[e]),(a||s.resolveWith)(i,n))}}var i=this,n=arguments,t=a?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),l<=r+1&&(o!==re&&(i=void 0,n=[e]),s.rejectWith(i,n))}};r?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),T.setTimeout(t))}}return S.Deferred(function(e){s[0][3].add(u(0,e,v(n)?n:c,e.notifyWith)),s[1][3].add(u(0,e,v(t)?t:c)),s[2][3].add(u(0,e,v(i)?i:re))}).promise()},promise:function(e){return null!=e?S.extend(e,o):o}},a={};return S.each(s,function(e,t){var i=t[2],n=t[5];o[t[1]]=i.add,n&&i.add(function(){r=n},s[3-e][2].disable,s[3-e][3].disable,s[0][2].lock,s[0][3].lock),i.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=i.fireWith}),o.promise(a),e&&e.call(a,a),a},when:function(e){function t(t){return function(e){r[t]=this,s[t]=1<arguments.length?a.call(arguments):e,--i||o.resolveWith(r,s)}}var i=arguments.length,n=i,r=Array(n),s=a.call(arguments),o=S.Deferred();if(i<=1&&(se(e,o.done(t(n)).resolve,o.reject,!i),"pending"===o.state()||v(s[n]&&s[n].then)))return o.then();for(;n--;)se(s[n],t(n),o.reject);return o.promise()}});var oe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,ae=(S.Deferred.exceptionHook=function(e,t){T.console&&T.console.warn&&e&&oe.test(e.name)&&T.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){T.setTimeout(function(){throw e})},S.Deferred());function le(){w.removeEventListener("DOMContentLoaded",le),T.removeEventListener("load",le),S.ready()}S.fn.ready=function(e){return ae.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||ae.resolveWith(w,[S])}}),S.ready.then=ae.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?T.setTimeout(S.ready):(w.addEventListener("DOMContentLoaded",le),T.addEventListener("load",le));function d(e,t,i,n,r,s,o){var a=0,l=e.length,u=null==i;if("object"===f(i))for(a in r=!0,i)d(e,t,a,i[a],!0,s,o);else if(void 0!==n&&(r=!0,v(n)||(o=!0),t=u?o?(t.call(e,n),null):(u=t,function(e,t,i){return u.call(S(e),i)}):t))for(;a<l;a++)t(e[a],i,o?n:n.call(e[a],a,t(e[a],i)));return r?e:u?t.call(e):l?t(e[0],i):s}var ue=/^-ms-/,ce=/-([a-z])/g;function de(e,t){return t.toUpperCase()}function _(e){return e.replace(ue,"ms-").replace(ce,de)}function y(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function he(){this.expando=S.expando+he.uid++}he.uid=1,he.prototype={cache:function(e){var t=e[this.expando];return t||(t={},y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,r=this.cache(e);if("string"==typeof t)r[_(t)]=i;else for(n in t)r[_(n)]=t[n];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][_(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(_):(t=_(t))in n?[t]:t.match(k)||[]).length;for(;i--;)delete n[t[i]]}void 0!==t&&!S.isEmptyObject(n)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var b=new he,u=new he,pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,fe=/[A-Z]/g;function me(e,t,i){var n,r;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(fe,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:pe.test(r)?JSON.parse(r):r)}catch(e){}u.set(e,t,i)}else i=void 0;return i}S.extend({hasData:function(e){return u.hasData(e)||b.hasData(e)},data:function(e,t,i){return u.access(e,t,i)},removeData:function(e,t){u.remove(e,t)},_data:function(e,t,i){return b.access(e,t,i)},_removeData:function(e,t){b.remove(e,t)}}),S.fn.extend({data:function(i,e){var t,n,r,s=this[0],o=s&&s.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){u.set(this,i)}):d(this,function(e){var t;if(s&&void 0===e)return void 0!==(t=u.get(s,i))||void 0!==(t=me(s,i))?t:void 0;this.each(function(){u.set(this,i,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=u.get(s),1===s.nodeType)&&!b.get(s,"hasDataAttrs")){for(t=o.length;t--;)o[t]&&0===(n=o[t].name).indexOf("data-")&&(n=_(n.slice(5)),me(s,n,r[n]));b.set(s,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){u.remove(this,e)})}}),S.extend({queue:function(e,t,i){var n;if(e)return n=b.get(e,t=(t||"fx")+"queue"),i&&(!n||Array.isArray(i)?n=b.access(e,t,S.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=S.queue(e,t),n=i.length,r=i.shift(),s=S._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete s.stop,r.call(e,function(){S.dequeue(e,t)},s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return b.get(e,i)||b.access(e,i,{empty:S.Callbacks("once memory").add(function(){b.remove(e,[t+"queue",i])})})}}),S.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===i?this:this.each(function(){var e=S.queue(this,t,i);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function i(){--r||s.resolveWith(o,[o])}var n,r=1,s=S.Deferred(),o=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=b.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(i));return i(),s.promise(t)}});function ge(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&E(e)&&"none"===S.css(e,"display")}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ye=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),h=["Top","Right","Bottom","Left"],C=w.documentElement,E=function(e){return S.contains(e.ownerDocument,e)},ve={composed:!0};C.getRootNode&&(E=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});function _e(e,t,i,n){var r,s,o=20,a=n?function(){return n.cur()}:function(){return S.css(e,t,"")},l=a(),u=i&&i[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==u&&+l)&&ye.exec(S.css(e,t));if(c&&c[3]!==u){for(u=u||c[3],c=+(l/=2)||1;o--;)S.style(e,t,c+u),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),c/=s;S.style(e,t,(c*=2)+u),i=i||[]}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n)&&(n.unit=u,n.start=c,n.end=r),r}var be={};function x(e,t){for(var i,n,r,s,o,a=[],l=0,u=e.length;l<u;l++)(n=e[l]).style&&(i=n.style.display,t?("none"===i&&(a[l]=b.get(n,"display")||null,a[l]||(n.style.display="")),""===n.style.display&&ge(n)&&(a[l]=(o=s=void 0,s=(r=n).ownerDocument,r=r.nodeName,(o=be[r])||(s=s.body.appendChild(s.createElement(r)),o=S.css(s,"dis
vendor: 4,621 bytes, line 1
1play"),s.parentNode.removeChild(s),be[r]=o="none"===o?"block":o),o))):"none"!==i&&(a[l]="none",b.set(n,"display",i)));for(l=0;l<u;l++)null!=a[l]&&(e[l].style.display=a[l]);return e}S.fn.extend({show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ge(this)?S(this).show():S(this).hide()})}});var Te=/^(?:checkbox|radio)$/i,we=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^module$|\/(?:java|ecma)script/i,A=(O=w.createDocumentFragment().appendChild(w.createElement("div")),(s=w.createElement("input")).setAttribute("type","radio"),s.setAttribute("checked","checked"),s.setAttribute("name","t"),O.appendChild(s),g.checkClone=O.cloneNode(!0).cloneNode(!0).lastChild.checked,O.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!O.cloneNode(!0).lastChild.defaultValue,O.innerHTML="<option></option>",g.option=!!O.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function I(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&l(e,t)?S.merge([e],i):i}function ke(e,t){for(var i=0,n=e.length;i<n;i++)b.set(e[i],"globalEval",!t||b.get(t[i],"globalEval"))}A.tbody=A.tfoot=A.colgroup=A.caption=A.thead,A.th=A.td,g.option||(A.optgroup=A.option=[1,"<select multiple='multiple'>","</select>"]);var Ce=/<|&#?\w+;/;function Ee(e,t,i,n,r){for(var s,o,a,l,u,c=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((s=e[h])||0===s)if("object"===f(s))S.merge(d,s.nodeType?[s]:s);else if(Ce.test(s)){for(o=o||c.appendChild(t.createElement("div")),a=(we.exec(s)||["",""])[1].toLowerCase(),a=A[a]||A._default,o.innerHTML=a[1]+S.htmlPrefilter(s)+a[2],u=a[0];u--;)o=o.lastChild;S.merge(d,o.childNodes),(o=c.firstChild).textContent=""}else d.push(t.createTextNode(s));for(c.textContent="",h=0;s=d[h++];)if(n&&-1<S.inArray(s,n))r&&r.push(s);else if(l=E(s),o=I(c.appendChild(s),"script"),l&&ke(o),i)for(u=0;s=o[u++];)Se.test(s.type||"")&&i.push(s);return c}var xe=/^([^.]*)(?:\.(.+)|)/;function i(){return!0}function p(){return!1}function Ae(e,t){return e===function(){try{return w.activeElement}catch(e){}}()==("focus"===t)}function Ie(e,t,i,n,r,s){var o,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Ie(e,a,i,n,t[a],s);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=p;else if(!r)return e;return 1===s&&(o=r,(r=function(e){return S().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=S.guid++)),e.each(function(){S.event.add(this,t,r,n,i)})}function Le(e,r,s){s?(b.set(e,r,!1),S.event.add(e,r,{namespace:!1,handler:function(e){var t,i,n=b.get(this,r);if(1&e.isTrigger&&this[r]){if(n.length)(S.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=a.call(arguments),b.set(this,r,n),t=s(this,r),this[r](),n!==(i=b.get(this,r))||t?b.set(this,r,!1):i={},n!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else n.length&&(b.set(this,r,{value:S.event.trigger(S.extend(n[0],S.Event.prototype),n.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===b.get(e,r)&&S.event.add(e,r,i)}S.event={global:{},add:function(t,e,i,n,r){var s,o,a,l,u,c,d,h,p,f=b.get(t);if(y(t))for(i.handler&&(i=(s=i).handler,r=s.selector),r&&S.find.matchesSelector(C,r),i.guid||(i.guid=S.guid++),a=(a=f.events)||(f.events=Object.create(null)),o=(o=f.handle)||(f.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(k)||[""]).length;l--;)d=p=(h=xe.exec(e[l])||[])[1],h=(h[2]||"").split(".").sort(),d&&(u=S.event.special[d]||{},d=(r?u.delegateType:u.bindType)||d,u=S.event.special[d]||{},p=S.extend({type:d,origType:p,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&S.expr.match.needsContext.test(r),namespace:h.join(".")},s),(c=a[d])||((c=a[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,h,o))||t.addEventListener&&t.addEventListener(d,o),u.add&&(u.add.call(t,p),p.handler.guid||(p.handler.guid=i.guid)),r?c.splice(c.delegateCount++,0,p):c.push(p),S.event.global[d]=!0)},remove:function(e,t,i,n,r){var s,o,a,l,u,c,d,h,p,f,m,g=b.hasData(e)&&b.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(k)||[""]).length;u--;)if(p=m=(a=xe.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=S.event.special[p]||{},h=l[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.
vendor: 4,203 bytes, line 1
1join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;s--;)c=h[s],!r&&m!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(h.splice(s,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||S.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)S.event.remove(e,p+t[u],i,n,!0);S.isEmptyObject(l)&&b.remove(e,"handle events")}},dispatch:function(e){var t,i,n,r,s,o=new Array(arguments.length),a=S.event.fix(e),e=(b.get(this,"events")||Object.create(null))[a.type]||[],l=S.event.special[a.type]||{};for(o[0]=a,t=1;t<arguments.length;t++)o[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=S.event.handlers.call(this,a,e),t=0;(n=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=n.elem,i=0;(r=n.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==r.namespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(r=((S.event.special[r.origType]||{}).handle||r.handler).apply(n.elem,o))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var i,n,r,s,o,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(s=[],o={},i=0;i<l;i++)void 0===o[r=(n=t[i]).selector+" "]&&(o[r]=n.needsContext?-1<S(r,this).index(u):S.find(r,this,null,[u]).length),o[r]&&s.push(n);s.length&&a.push({elem:u,handlers:s})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return Te.test(e.type)&&e.click&&l(e,"input")&&Le(e,"click",i),!1},trigger:function(e){e=this||e;return Te.test(e.type)&&e.click&&l(e,"input")&&Le(e,"click"),!0},_default:function(e){e=e.target;return Te.test(e.type)&&e.click&&l(e,"input")&&b.get(e,"click")||l(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?i:p,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=i,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=i,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=i,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(t,e){S.event.special[t]={setup:function(){return Le(this,t,Ae),!1},trigger:function(){return Le(this,t),!0},_default:function(e){return b.get(e.target,t)},delegateType:e}}
vendor: 5,530 bytes, line 1
1),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){S.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return i&&(i===this||S.contains(this,i))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=r),t}}}),S.fn.extend({on:function(e,t,i,n){return Ie(this,e,t,i,n)},one:function(e,t,i,n){return Ie(this,e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)n=e.handleObj,S(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=p),this.each(function(){S.event.remove(this,e,i,t)});for(r in e)this.off(r,t,e[r])}return this}});var Pe=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ne(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ue(e,t){var i,n,r,s;if(1===t.nodeType){if(b.hasData(e)&&(s=b.get(e).events))for(r in b.remove(t,"handle events"),s)for(i=0,n=s[r].length;i<n;i++)S.event.add(t,r,s[r][i]);u.hasData(e)&&(e=u.access(e),e=S.extend({},e),u.set(t,e))}}function L(i,n,r,s){n=j(n);var e,t,o,a,l,u,c=0,d=i.length,h=d-1,p=n[0],f=v(p);if(f||1<d&&"string"==typeof p&&!g.checkClone&&Oe.test(p))return i.each(function(e){var t=i.eq(e);f&&(n[0]=p.call(this,e,t.html())),L(t,n,r,s)});if(d&&(t=(e=Ee(n,i[0].ownerDocument,!1,i,s)).firstChild,1===e.childNodes.length&&(e=t),t||s)){for(a=(o=S.map(I(e,"script"),Me)).length;c<d;c++)l=e,c!==h&&(l=S.clone(l,!0,!0),a)&&S.merge(o,I(l,"script")),r.call(i[c],l,c);if(a)for(u=o[o.length-1].ownerDocument,S.map(o,Re),c=0;c<a;c++)l=o[c],Se.test(l.type||"")&&!b.access(l,"globalEval")&&S.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?S._evalUrl&&!l.noModule&&S._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):G(l.textContent.replace(De,""),l,u))}return i}function je(e,t,i){for(var n,r=t?S.filter(t,e):e,s=0;null!=(n=r[s]);s++)i||1!==n.nodeType||S.cleanData(I(n)),n.parentNode&&(i&&E(n)&&ke(I(n,"script")),n.parentNode.removeChild(n));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,r,s,o,a,l,u,c=e.cloneNode(!0),d=E(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(o=I(c),n=0,r=(s=I(e)).length;n<r;n++)a=s[n],l=o[n],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&Te.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(i)for(s=s||I(e),o=o||I(c),n=0,r=s.length;n<r;n++)Ue(s[n],o[n]);else Ue(e,c);return 0<(o=I(c,"script")).length&&ke(o,!d&&I(e,"script")),c},cleanData:function(e){for(var t,i,n,r=S.event.special,s=0;void 0!==(i=e[s]);s++)if(y(i)){if(t=i[b.expando]){if(t.events)for(n in t.events)r[n]?S.event.remove(i,n):S.removeEvent(i,n,t.handle);i[b.expando]=void 0}i[u.expando]&&(i[u.expando]=void 0)}}}),S.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return d(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)})},prepend:function(){return L(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Ne(this,e)).insertBefore(e,t.firstChild)})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(I(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return d(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Pe.test(e)&&!A[(we.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(S.cleanData(I(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var i=[];return L(this,arguments,function(e){var t=this.parentNode;S.inArray(this,i)<0&&(S.cleanData(I(this)),t)&&t.replaceChild(e,this)},i)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,o){S.fn[e]=function(e){for(var t,i=[],n=S(e),r=n.length-1,s=0;s<=r;s++)t=s===r?this:this.clone(!0),S(n[s])[o](t),B.apply(i,t.get());return this.pushStack(i)}});function Be(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:T).getComputedStyle(e)}function Fe(e,t,i){var n,r={};for(n in t)r[n]=e.style[n],e.style[n]=t[n];for(n in i=i.call(e),t)e.style[n]=r[n];return i}var He,qe,Ve,We,$e,ze,Ge,r,Xe=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),Ke=/^--/,Ye=new RegExp(h.join("|"),"i"),s="[\\x20\\t\\r\\n\\f]",Qe=new RegExp("^"+s+"+|((?:^|[^\\\\])(?:\\\\.)*)"+s+"+$","g");function Je(){var e;r&&(Ge.style.cssText="position:absolute;
1left:-11111px;width:60px;margin-top:1px;padding:0;border:0",r.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",C.appendChild(Ge).appendChild(r),e=T.getComputedStyle(r),He="1%"!==e.top,ze=12===Ze(e.marginLeft),r.style.right="60%",We=36===Ze(e.right),qe=36===Ze(e.width),r.style.position="absolute",Ve=12===Ze(r.offsetWidth/3),C.removeChild(Ge),r=null)}function Ze(e){return Math.round(parseFloat(e))}function et(e,t,i){var n,r=Ke.test(t),s=e.style;return(i=i||Be(e))&&(n=i.getPropertyValue(t)||i[t],""!==(n=r?n.replace(Qe,"$1"):n)||E(e)||(n=S.style(e,t)),!g.pixelBoxStyles())&&Xe.test(n)&&Ye.test(t)&&(r=s.width,e=s.minWidth,t=s.maxWidth,s.minWidth=s.maxWidth=s.width=n,n=i.width,s.width=r,s.minWidth=e,s.maxWidth=t),void 0!==n?n+"":n}function tt(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}Ge=w.createElement("div"),(r=w.createElement("div")).style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===r.style.backgroundClip,S.extend(g,{boxSizingReliable:function(){return Je(),qe},pixelBoxStyles:function(){return Je(),We},pixelPosition:function(){return Je(),He},reliableMarginLeft:function(){return Je(),ze},scrollboxSize:function(){return Je(),Ve},reliableTrDimensions:function(){var e,t,i;return null==$e&&(e=w.createElement("table"),t=w.createElement("tr"),i=w.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",
vendor: 2,244 bytes, line 1
1i.style.height="9px",i.style.display="block",C.appendChild(e).appendChild(t).appendChild(i),i=T.getComputedStyle(t),$e=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,C.removeChild(e)),$e}}));var it=["Webkit","Moz","ms"],nt=w.createElement("div").style,rt={};function st(e){var t=S.cssProps[e]||rt[e];return t||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=it.length;i--;)if((e=it[i]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"};function ut(e,t,i){var n=ye.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function ct(e,t,i,n,r,s){var o="width"===t?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;o<4;o+=2)"margin"===i&&(l+=S.css(e,i+h[o],!0,r)),n?("content"===i&&(l-=S.css(e,"padding"+h[o],!0,r)),"margin"!==i&&(l-=S.css(e,"border"+h[o]+"Width",!0,r))):(l+=S.css(e,"padding"+h[o],!0,r),"padding"!==i?l+=S.css(e,"border"+h[o]+"Width",!0,r):a+=S.css(e,"border"+h[o]+"Width",!0,r));return!n&&0<=s&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-a-.5))||0),l}function dt(e,t,i){var n=Be(e),r=(!g.boxSizingReliable()||i)&&"border-box"===S.css(e,"boxSizing",!1,n),s=r,o=et(e,t,n),a="offset"+t[0].toUpperCase()+t.slice(1);if(Xe.test(o)){if(!i)return o;o="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&l(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===S.css(e,"display",!1,n))&&e.getClientRects().length&&(r="border-box"===S.css(e,"boxSizing",!1,n),s=a in e)&&(o=e[a]),(o=parseFloat(o)||0)+ct(e,t,i||(r?"border":"content"),s,n,o)+"px"}function o(e,t,i,n,r){return new o.prototype.init(e,t,i,n,r)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=et(e,"opacity"))?"1":t}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,o,a=_(t),l=Ke.test(t),u=e.style;
vendor: 4,826 bytes, line 1
1if(l||(t=st(a)),o=S.cssHooks[t]||S.cssHooks[a],void 0===i)return o&&"get"in o&&void 0!==(r=o.get(e,!1,n))?r:u[t];"string"===(s=typeof i)&&(r=ye.exec(i))&&r[1]&&(i=_e(e,t,r),s="number"),null==i||i!=i||("number"!==s||l||(i+=r&&r[3]||(S.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==i||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(i=o.set(e,i,n)))||(l?u.setProperty(t,i):u[t]=i)}},css:function(e,t,i,n){var r,s=_(t);return Ke.test(t)||(t=st(s)),"normal"===(r=void 0===(r=(s=S.cssHooks[t]||S.cssHooks[s])&&"get"in s?s.get(e,!0,i):r)?et(e,t,n):r)&&t in lt&&(r=lt[t]),(""===i||i)&&(s=parseFloat(r),!0===i||isFinite(s))?s||0:r}}),S.each(["height","width"],function(e,o){S.cssHooks[o]={get:function(e,t,i){if(t)return!ot.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?dt(e,o,i):Fe(e,at,function(){return dt(e,o,i)})},set:function(e,t,i){var n=Be(e),r=!g.scrollboxSize()&&"absolute"===n.position,s=(r||i)&&"border-box"===S.css(e,"boxSizing",!1,n),i=i?ct(e,o,i,s,n):0;return s&&r&&(i-=Math.ceil(e["offset"+o[0].toUpperCase()+o.slice(1)]-parseFloat(n[o])-ct(e,o,"border",!1,n)-.5)),i&&(s=ye.exec(t))&&"px"!==(s[3]||"px")&&(e.style[o]=t,t=S.css(e,o)),ut(0,t,i)}}}),S.cssHooks.marginLeft=tt(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(et(e,"marginLeft"))||e.getBoundingClientRect().left-Fe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(r,s){S.cssHooks[r+s]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[r+h[t]+s]=n[t]||n[t-2]||n[0];return i}},"margin"!==r&&(S.cssHooks[r+s].set=ut)}),S.fn.extend({css:function(e,t){return d(this,function(e,t,i){var n,r,s={},o=0;if(Array.isArray(t)){for(n=Be(e),r=t.length;o<r;o++)s[t[o]]=S.css(e,t[o],!1,n);return s}return void 0!==i?S.style(e,t,i):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=o).prototype={constructor:o,init:function(e,t,i,n,r,s){this.elem=e,this.prop=i,this.easing=r||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=s||(S.cssNumber[i]?"":"px")},cur:function(){var e=o.propHooks[this.prop];return(e&&e.get?e:o.propHooks._default).get(this)},run:function(e){var t,i=o.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:o.propHooks._default).set(this),this}}).init.prototype=o.prototype,(o.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=S.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[st(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=o.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=o.prototype.init,S.fx.step={};var P,ht,O,pt=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;function mt(){ht&&(!1===w.hidden&&T.requestAnimationFrame?T.requestAnimationFrame(mt):T.setTimeout(mt,S.fx.interval),S.fx.tick())}function gt(){return T.setTimeout(function(){P=void 0}),P=Date.now()}function yt(e,t){var i,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=h[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function vt(e,t,i){for(var n,r=(D.tweeners[t]||[]).concat(D.tweeners["*"]),s=0,o=r.length;s<o;s++)if(n=r[s].call(i,t,e))return n}function D(r,e,t){var i,s,n,o,a,l,u,c=0,d=D.prefilters.length,h=S.Deferred().always(function(){delete p.elem}),p=function(){if(!s){for(var e=P||gt(),e=Math.max(0,f.startTime+f.duration-e),t=1-(e/f.duration||0),i=0,n=f.tweens.length;i<n;i++)f.tweens[i].run(t);if(h.notifyWith(r,[f,t,e]),t<1&&n)return e;n||h.notifyWith(r,[f,1,0]),h.resolveWith(r,[f])}return!1},f=h.promise({elem:r,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:P||gt(),duration:t.duration,tweens:[],createTween:function(e,t){t=S.Tween(r,f.opts,e,t,f.opts.specialEasing[e]||f.opts.easing);return f.tweens.push(t),t},stop:function(e){var t=0,i=e?f.tweens.length:0;if(!s){for(s=!0;t<i;t++)f.tweens[t].run(1);e?(h.notifyWith(r,[f,1,0]),h.resolveWith(r,[f,e])):h.rejectWith(r,[f,e])}return this}}),m=f.props,g=m,y=f.opts.specialEasing;for(n in g)if(a=y[o=_(n)],l=g[n],Array.isArray(l)&&(a=l[1],l=g[n]=l[0]),n!==o&&(g[o]=l,delete g[n]),(u=S.cssHooks[o])&&"expand"in u)for(n in l=u.expand(l),delete g[o],l)n in g||(g[n]=l[n],y[n]=a);else y[o]=a;for(;c<d;
vendor: 4,197 bytes, line 1
1c++)if(i=D.prefilters[c].call(f,r,m,f.opts))return v(i.stop)&&(S._queueHooks(f.elem,f.opts.queue).stop=i.stop.bind(i)),i;return S.map(m,vt,f),v(f.opts.start)&&f.opts.start.call(r,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),S.fx.timer(S.extend(p,{elem:r,anim:f,queue:f.opts.queue})),f}S.Animation=S.extend(D,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return _e(i.elem,e,ye.exec(t),i),i}]},tweener:function(e,t){for(var i,n=0,r=(e=v(e)?(t=e,["*"]):e.match(k)).length;n<r;n++)i=e[n],D.tweeners[i]=D.tweeners[i]||[],D.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,r,s,o,a,l,u,c="width"in t||"height"in t,d=this,h={},p=e.style,f=e.nodeType&&ge(e),m=b.get(e,"fxshow");for(n in i.queue||(null==(o=S._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always(function(){d.always(function(){o.unqueued--,S.queue(e,"fx").length||o.empty.fire()})})),t)if(r=t[n],pt.test(r)){if(delete t[n],s=s||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;f=!0}h[n]=m&&m[n]||S.style(e,n)}if((l=!S.isEmptyObject(t))||!S.isEmptyObject(h))for(n in c&&1===e.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=b.get(e,"display")),"none"===(c=S.css(e,"display"))&&(u?c=u:(x([e],!0),u=e.style.display||u,c=S.css(e,"display"),x([e]))),"inline"===c||"inline-block"===c&&null!=u)&&"none"===S.css(e,"float")&&(l||(d.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block"),i.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]})),l=!1,h)l||(m?"hidden"in m&&(f=m.hidden):m=b.access(e,"fxshow",{display:u}),s&&(m.hidden=!f),f&&x([e],!0),d.done(function(){for(n in f||x([e]),b.remove(e,"fxshow"),h)S.style(e,n,h[n])})),l=vt(f?m[n]:0,n,d),n in m||(m[n]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?D.prefilters.unshift(e):D.prefilters.push(e)}}),S.speed=function(e,t,i){var n=e&&"object"==typeof e?S.extend({},e):{complete:i||!i&&t||v(e)&&e,duration:e,easing:i&&t||t&&!v(t)&&t};return S.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in S.fx.speeds?n.duration=S.fx.speeds[n.duration]:n.duration=S.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&S.dequeue(this,n.queue)},n},S.fn.extend({fadeTo:function(e,t,i,n){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(t,e,i,n){function r(){var e=D(this,S.extend({},t),o);(s||b.get(this,"finish"))&&e.stop(!0)}var s=S.isEmptyObject(t),o=S.speed(e,i,n);return r.finish=r,s||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(r,e,s){function o(e){var t=e.stop;delete e.stop,t(s)}return"string"!=typeof r&&(s=e,e=r,r=void 0),e&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",i=S.timers,n=b.get(this);if(t)n[t]&&n[t].stop&&o(n[t]);else for(t in n)n[t]&&n[t].stop&&ft.test(t)&&o(n[t]);for(t=i.length;t--;)i[t].elem!==this||null!=r&&i[t].queue!==r||(i[t].anim.stop(s),e=!1,i.splice(t,1));!e&&s||S.dequeue(this,r)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var e,t=b.get(this),i=t[o+"queue"],n=t[o+"queueHooks"],r=S.timers,s=i?i.length:0;for(t.finish=!0,S.queue(this,o,[]),n&&n.stop&&n.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===o&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,n){var r=S.fn[n];S.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(yt(n,!0),e,t,i)}}),S.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){S.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),S.timers=[],S.fx.tick=function(){var e,t=0,i=S.timers;for(P=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||S.fx.stop(),P=void 0}
vendor: 8,356 bytes, line 1
1,S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){ht||(ht=!0,mt())},S.fx.stop=function(){ht=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(n,e){return n=S.fx&&S.fx.speeds[n]||n,this.queue(e=e||"fx",function(e,t){var i=T.setTimeout(e,n);t.stop=function(){T.clearTimeout(i)}})},O=w.createElement("input"),e=w.createElement("select").appendChild(w.createElement("option")),O.type="checkbox",g.checkOn=""!==O.value,g.optSelected=e.selected,(O=w.createElement("input")).value="t",O.type="radio",g.radioValue="t"===O.value;var _t,bt=S.expr.attrHandle,Tt=(S.fn.extend({attr:function(e,t){return d(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,i){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?S.prop(e,t,i):(1===s&&S.isXMLDoc(e)||(r=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?_t:void 0)),void 0!==i?null===i?void S.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):!(r&&"get"in r&&null!==(n=r.get(e,t)))&&null==(n=S.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){var i;if(!g.radioValue&&"radio"===t&&l(e,"input"))return i=e.value,e.setAttribute("type",t),i&&(e.value=i),t}}},removeAttr:function(e,t){var i,n=0,r=t&&t.match(k);if(r&&1===e.nodeType)for(;i=r[n++];)e.removeAttribute(i)}}),_t={set:function(e,t,i){return!1===t?S.removeAttr(e,i):e.setAttribute(i,i),i}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var o=bt[t]||S.find.attr;bt[t]=function(e,t,i){var n,r,s=t.toLowerCase();return i||(r=bt[s],bt[s]=n,n=null!=o(e,t,i)?s:null,bt[s]=r),n}}),/^(?:input|select|textarea|button)$/i),wt=/^(?:a|area)$/i;function N(e){return(e.match(k)||[]).join(" ")}function M(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(k)||[]}S.fn.extend({prop:function(e,t){return d(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,i){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&S.isXMLDoc(e)||(t=S.propFix[t]||t,r=S.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):Tt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode)&&e.parentNode.selectedIndex}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,i,n,r,s,o;return v(t)?this.each(function(e){S(this).addClass(t.call(this,e,M(this)))}):(e=St(t)).length?this.each(function(){if(n=M(this),i=1===this.nodeType&&" "+N(n)+" "){for(s=0;s<e.length;s++)r=e[s],i.indexOf(" "+r+" ")<0&&(i+=r+" ");o=N(i),n!==o&&this.setAttribute("class",o)}}):this},removeClass:function(t){var e,i,n,r,s,o;return v(t)?this.each(function(e){S(this).removeClass(t.call(this,e,M(this)))}):arguments.length?(e=St(t)).length?this.each(function(){if(n=M(this),i=1===this.nodeType&&" "+N(n)+" "){for(s=0;s<e.length;s++)for(r=e[s];-1<i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");o=N(i),n!==o&&this.setAttribute("class",o)}}):this:this.attr("class","")},toggleClass:function(t,i){var e,n,r,s,o=typeof t,a="string"==o||Array.isArray(t);return v(t)?this.each(function(e){S(this).toggleClass(t.call(this,e,M(this),i),i)}):"boolean"==typeof i&&a?i?this.addClass(t):this.removeClass(t):(e=St(t),this.each(function(){if(a)for(s=S(this),r=0;r<e.length;r++)n=e[r],s.hasClass(n)?s.removeClass(n):s.addClass(n);else void 0!==t&&"boolean"!=o||((n=M(this))&&b.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",!n&&!1!==t&&b.get(this,"__className__")||""))}))},hasClass:function(e){for(var t,i=0,n=" "+e+" ";t=this[i++];)if(1===t.nodeType&&-1<(" "+N(M(t))+" ").indexOf(n))return!0;return!1}});function kt(e){e.stopPropagation()}var Ct=/\r/g,Et=(S.fn.extend({val:function(t){var i,e,n,r=this[0];return arguments.length?(n=v(t),this.each(function(e){1!==this.nodeType||(null==(e=n?t.call(this,e,S(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=S.map(e,function(e){return null==e?"":e+""})),(i=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value"))||(this.value=e)})):r?(i=S.valHooks[r.type]||S.valHooks[r.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(r,"value"))?e:"string"==typeof(e=r.value)?e.replace(Ct,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:N(S.text(e))}},select:{get:function(e){for(var t,i=e.options,n=e.selectedIndex,r="select-one"===e.type,s=r?null:[],o=r?n+1:i.length,a=n<0?o:r?n:0;a<o;a++)if(((t=i[a]).selected||a===n)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(t=S(t).val(),r)return t;s.push(t)}return s},set:function(e,t){for(var i,n,r=e.options,s=S.makeArray(t),o=r.length;o--;)((n=r[o]).selected=-1<S.inArray(S.valHooks.option.get(n),s))&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},g.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in T,/^(?:focusinfocus|focusoutblur)$/),xt=(S.extend(S.event,{trigger:function(e,t,i,n){var r,s,o,a,l,u,c,d=[i||w],h=V.call(e,"type")?e.type:e,p=V.call(e,"namespace")?e.namespace.split("."):[],f=c=s=i=i||w;if(3!==i.nodeType&&8!==i.nodeType&&!Et.test(h+S.event.triggered)&&(-1<h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),a=h.indexOf(":")<0&&"on"+h,(e=e[S.expando]?e:new S.Event(h,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:S.makeArray(t,[e]),u=S.event.special[h]||{},n||!u.trigger||!1!==u.trigger.apply(i,t))){if(!n&&!u.noBubble&&!m(i)){for(o=u.delegateType||h,Et.test(o+h)||(f=f.parentNode);f;f=f.parentNode)d.push(f),s=f;s===(i.ownerDocument||w)&&d.push(s.defaultView||s.parentWindow||T)}for(r=0;(f=d[r++])&&!e.isPropagationStopped();)c=f,e.type=1<r?o:u.bindType||h,(l=(b.get(f,"events")||Object.create(null))[e.type]&&b.get(f,"handle"))&&l.apply(f,t),(l=a&&f[a])&&l.apply&&y(f)&&(e.result=l.apply(f,t),!1===e.result)&&e.preventDefault();return e.type=h,n||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),t)||!y(i)||a&&v(i[h])&&!m(i)&&((s=i[a])&&(i[a]=null),S.event.triggered=h,e.isPropagationStopped()&&c.addEventListener(h,kt),i[h](),e.isPropagationStopped()&&c.removeEventListener(h,kt),S.event.triggered=void 0,s)&&(i[a]=s),e.result}},simulate:function(e,t,i){i=S.extend(new S.Event,i,{type:e,isSimulated:!0});S.event.trigger(i,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return S.event.trigger(e,t,i,!0)}}),g.focusin||S.each({focus:"focusin",blur:"focusout"},function(i,n){function r(e){S.event.simulate(n,e.target,S.event.fix(e))}S.event.special[n]={setup:function(){var e=this.ownerDocument||this.document||this,t=b.access(e,n);t||e.addEventListener(i,r,!0),b.access(e,n,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=b.access(e,n)-1;t?b.access(e,n,t):(e.removeEventListener(i,r,!0),b.remove(e,n))}}}),T.location),At={guid:Date.now()},It=/\?/,Lt=(S.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new T.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||S.error("Invalid XML: "+(i?S.map(i.childNodes,function(e){return e.textContent}).join("\n"):e)),t},/\[\]$/),Pt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;
vendor: 4,853 bytes, line 1
1S.param=function(e,t){function i(e,t){t=v(t)?t():t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var n,r=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)!function i(n,e,r,s){if(Array.isArray(e))S.each(e,function(e,t){r||Lt.test(n)?s(n,t):i(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,s)});else if(r||"object"!==f(e))s(n,e);else for(var t in e)i(n+"["+t+"]",e[t],r,s)}(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Dt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!Te.test(e))}).map(function(e,t){var i=S(this).val();return null==i?null:Array.isArray(i)?S.map(i,function(e){return{name:t.name,value:e.replace(Pt,"\r\n")}}):{name:t.name,value:i.replace(Pt,"\r\n")}}).get()}});var Nt=/%20/g,Mt=/#.*$/,Rt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,Bt=/^\/\//,Ft={},Ht={},qt="*/".concat("*"),Vt=w.createElement("a");function Wt(s){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,n=0,r=e.toLowerCase().match(k)||[];if(v(t))for(;i=r[n++];)"+"===i[0]?(i=i.slice(1)||"*",(s[i]=s[i]||[]).unshift(t)):(s[i]=s[i]||[]).push(t)}}function $t(t,n,r,s){var o={},a=t===Ht;function l(e){var i;return o[e]=!0,S.each(t[e]||[],function(e,t){t=t(n,r,s);return"string"!=typeof t||a||o[t]?a?!(i=t):void 0:(n.dataTypes.unshift(t),l(t),!1)}),i}return l(n.dataTypes[0])||!o["*"]&&l("*")}function zt(e,t){var i,n,r=S.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n=n||{})[i]=t[i]);return n&&S.extend(!0,e,n),e}Vt.href=xt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,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":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,S.ajaxSettings),t):zt(S.ajaxSettings,e)},ajaxPrefilter:Wt(Ft),ajaxTransport:Wt(Ht),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,u,c,i,d,h,p,n,f=S.ajaxSetup({},t=t||{}),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?S(m):S.event,y=S.Deferred(),v=S.Callbacks("once memory"),_=f.statusCode||{},r={},s={},o="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(h){if(!i)for(i={};t=Ut.exec(c);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?c:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,r[e]=t),this},overrideMimeType:function(e){return null==h&&(f.mimeType=e),this},statusCode:function(e){if(e)if(h)b.always(e[b.status]);else for(var t in e)_[t]=[_[t],e[t]];return this},abort:function(e){e=e||o;return l&&l.abort(e),a(0,e),this}};if(y.promise(b),f.url=((e||f.url||xt.href)+"").replace(Bt,xt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(k)||[""],null==f.crossDomain){e=w.createElement("a");try{e.href=f.url,e.href=e.href,f.crossDomain=Vt.protocol+"//"+Vt.host!=e.protocol+"//"+e.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=S.param(f.data,f.traditional)),$t(Ft,f,t,b),!h){for(n in(p=S.event&&f.global)&&0==S.active++&&S.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!jt.test(f.type),u=f.url.replace(Mt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Nt,"+")):(e=f.url.slice(u.length),f.data&&(f.processData||"string"==typeof f.data)&&(u+=(It.test(u)?"&":"?")+f.data,delete f.data),!1===f.cache&&(u=u.replace(Rt,"$1"),e=(It.test(u)?"&":"?")+"_="+At.guid+++e),f.url=u+e),f.ifModified&&(S.lastModified[u]&&b.setRequestHeader("If-Modified-Since",S.lastModified[u]),S.etag[u])&&b.setRequestHeader("If-None-Match",S.etag[u]),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&b.setRequestHeader("Content-Type",f.contentType),b.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+qt+"; q=0.01":""):f.accepts["*"]),f.headers)b.setRequestHeader(n,f.headers[n]);
vendor: 11,988 bytes, line 1
1if(f.beforeSend&&(!1===f.beforeSend.call(m,b,f)||h))return b.abort();if(o="abort",v.add(f.complete),b.done(f.success),b.fail(f.error),l=$t(Ht,f,t,b)){if(b.readyState=1,p&&g.trigger("ajaxSend",[b,f]),h)return b;f.async&&0<f.timeout&&(d=T.setTimeout(function(){b.abort("timeout")},f.timeout));try{h=!1,l.send(r,a)}catch(e){if(h)throw e;a(-1,e)}}else a(-1,"No Transport")}return b;function a(e,t,i,n){var r,s,o,a=t;h||(h=!0,d&&T.clearTimeout(d),l=void 0,c=n||"",b.readyState=0<e?4:0,n=200<=e&&e<300||304===e,i&&(o=function(e,t,i){for(var n,r,s,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){s=r;break}o=o||r}s=s||o}if(s)return s!==l[0]&&l.unshift(s),i[s]}(f,b,i)),!n&&-1<S.inArray("script",f.dataTypes)&&S.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),o=function(e,t,i,n){var r,s,o,a,l,u={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(s=c.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=c.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=u[l+" "+s]||u["* "+s]))for(r in u)if((a=r.split(" "))[1]===s&&(o=u[l+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[r]:!0!==u[r]&&(s=a[0],c.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(f,o,b,n),n?(f.ifModified&&((i=b.getResponseHeader("Last-Modified"))&&(S.lastModified[u]=i),i=b.getResponseHeader("etag"))&&(S.etag[u]=i),204===e||"HEAD"===f.type?a="nocontent":304===e?a="notmodified":(a=o.state,r=o.data,n=!(s=o.error))):(s=a,!e&&a||(a="error",e<0&&(e=0))),b.status=e,b.statusText=(t||a)+"",n?y.resolveWith(m,[r,a,b]):y.rejectWith(m,[b,a,s]),b.statusCode(_),_=void 0,p&&g.trigger(n?"ajaxSuccess":"ajaxError",[b,f,n?r:s]),v.fireWith(m,[b,a]),p&&(g.trigger("ajaxComplete",[b,f]),--S.active||S.event.trigger("ajaxStop")))}},getJSON:function(e,t,i){return S.get(e,t,i,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,r){S[r]=function(e,t,i,n){return v(t)&&(n=n||i,i=t,t=void 0),S.ajax(S.extend({url:e,type:r,dataType:n,data:t,success:i},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,i){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,i)}})},S.fn.extend({wrapAll:function(e){return this[0]&&(v(e)&&(e=e.call(this[0])),e=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(i){return v(i)?this.each(function(e){S(this).wrapInner(i.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=v(t);return this.each(function(e){S(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new T.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},Xt=S.ajaxSettings.xhr(),Kt=(g.cors=!!Xt&&"withCredentials"in Xt,g.ajax=Xt=!!Xt,S.ajaxTransport(function(r){var s,o;if(g.cors||Xt&&!r.crossDomain)return{send:function(e,t){var i,n=r.xhr();if(n.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(i in r.xhrFields)n[i]=r.xhrFields[i];for(i in r.mimeType&&n.overrideMimeType&&n.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(i,e[i]);s=function(e){return function(){s&&(s=o=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===e?n.abort():"error"===e?"number"!=typeof n.status?t(0,"error"):t(n.status,n.statusText):t(Gt[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=s(),o=n.onerror=n.ontimeout=s("error"),void 0!==n.onabort?n.onabort=o:n.onreadystatechange=function(){4===n.readyState&&T.setTimeout(function(){s&&o()})},s=s("abort");try{n.send(r.hasContent&&r.data||null)}catch(e){if(s)throw e}},abort:function(){s&&s()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(i){var n,r;if(i.crossDomain||i.scriptAttrs)return{send:function(e,t){n=S("<script>").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",r=function(e){n.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),w.head.appendChild(n[0])},abort:function(){r&&r()}}}),[]),Yt=/(=)\?(?=&|$)|\?\?/,Qt=(S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||S.expando+"_"+At.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,i){var n,r,s,o=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Yt,"$1"+n):!1!==e.jsonp&&(e.url+=(It.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return s||S.error(n+" was not called"),s[0]},e.dataTypes[0]="json",r=T[n],T[n]=function(){s=arguments},i.always(function(){void 0===r?S(T).removeProp(n):T[n]=r,e[n]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(n)),s&&v(r)&&r(s[0]),s=r=void 0}),"script"}),g.createHTMLDocument=((s=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===s.childNodes.length),S.parseHTML=function(e,t,i){var n;return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(g.createHTMLDocument?((n=(t=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,t.head.appendChild(n)):t=w),n=!i&&[],(i=Q.exec(e))?[t.createElement(i[1])]:(i=Ee([e],t,n),n&&n.length&&S(n).remove(),S.merge([],i.childNodes)))},S.fn.load=function(e,t,i){var n,r,s,o=this,a=e.indexOf(" ");return-1<a&&(n=N(e.slice(a)),e=e.slice(0,a)),v(t)?(i=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<o.length&&S.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){s=arguments,o.html(n?S("<div>").append(S.parseHTML(e)).find(n):e)}).always(i&&function(e,t){o.each(function(){i.apply(this,s||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,i){var n,r,s,o,a=S.css(e,"position"),l=S(e),u={};"static"===a&&(e.style.position="relative"),s=l.offset(),n=S.css(e,"top"),o=S.css(e,"left"),a=("absolute"===a||"fixed"===a)&&-1<(n+o).indexOf("auto")?(r=(a=l.position()).top,a.left):(r=parseFloat(n)||0,parseFloat(o)||0),null!=(t=v(t)?t.call(e,i,S.extend({},s)):t).top&&(u.top=t.top-s.top+r),null!=t.left&&(u.left=t.left-s.left+a),"using"in t?t.using.call(e,u):l.css(u)}},S.fn.extend({offset:function(t){var e,i;return arguments.length?void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)}):(i=this[0])?i.getClientRects().length?(e=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],r={top:0,left:0};if("fixed"===S.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((r=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),r.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-S.css(n,"marginTop",!0),left:t.left-r.left-S.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||C})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var s="pageYOffset"===r;S.fn[t]=function(e){return d(this,function(e,t,i){var n;if(m(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i)return n?n[r]:e[t];n?n.scrollTo(s?n.pageXOffset:i,s?i:n.pageYOffset):e[t]=i},t,e,arguments.length)}}),S.each(["top","left"],function(e,i){S.cssHooks[i]=tt(g.pixelPosition,function(e,t){if(t)return t=et(e,i),Xe.test(t)?S(e).position()[i]+"px":t})}),S.each({Height:"height",Width:"width"},function(o,a){S.each({padding:"inner"+o,content:a,"":"outer"+o},function(n,s){S.fn[s]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),r=n||(!0===e||!0===t?"margin":"border");return d(this,function(e,t,i){var n;return m(e)?0===s.indexOf("outer")?e["inner"+o]:e.document.documentElement["client"+o]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+o],n["scroll"+o],e.body["offset"+o],n["offset"+o],n["client"+o])):void 0===i?S.css(e,t,r):S.style(e,t,i,r)},a,i?e:void 0,i)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){S.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g),Jt=(S.proxy=function(e,t){var i,n;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=a.call(arguments,2),(n=function(){return e.apply(t||this,i.concat(a.call(arguments)))}).guid=e.guid=e.guid||S.guid++,n},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=l,S.isFunction=v,S.isWindow=m,S.camelCase=_,S.type=f,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Qt,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S}),T.jQuery),Zt=T.$;return S.noConflict=function(e){return T.$===S&&(T.$=Zt),e&&T.jQuery===S&&(T.jQuery=Jt),S},void 0===R&&(T.jQuery=T.$=S),S}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,function(){"use strict";const R=1e3,U="transitionend",j=t=>{let i=t.getAttribute("data-bs-target");if(!i||"#"===i){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),i=e&&"#"!==e?e.trim():null}return i},B=e=>{e=j(e);return e&&document.querySelector(e)?e:null},r=e=>{e=j(e);return e?document.querySelector(e):null}
1,F=e=>{e.dispatchEvent(new Event(U))},s=e=>!(!e||"object"!=typeof e)&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType,n=e=>s(e)?e.jquery?e[0]:e:"string"==typeof e&&0<e.length?document.querySelector(e):null,o=e=>{if(!s(e)||0===e.getClientRects().length)return!1;var t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(i&&i!==e){e=e.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return t},a=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),H=e=>{var t;return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?H(e.parentNode):null:null},q=()=>{},V=e=>{e.offsetHeight},W=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,$=[],l=()=>"rtl"===document.documentElement.dir;var e=n=>{var e;e=()=>{const e=W();if(e){const t=n.NAME,i=e.fn[t];
1e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=i,n.jQueryInterface)}},"loading"===document.readyState?($.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of $)e()}),$.push(e)):e()};const u=e=>{"function"==typeof e&&e()},z=(i,n,e=!0)=>{if(e){e=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);var e=Number.parseFloat(t),n=Number.parseFloat(i);return e||n?(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*R):0})(n)+5;let t=!1;const r=({target:e})=>{e===n&&(t=!0,n.removeEventListener(U,r),u(i))};n.addEventListener(U,r),setTimeout(()=>{t||F(n)},e)}else u(i)},G=(e,t,i,n)=>{var r=e.length;let s=e.indexOf(t);return-1===s?!i&&n?e[r-1]:e[0]:(s+=i?1:-1,n&&(s=(s+r)%r),e[Math.max(0,Math.min(s,r-1))])},X=/[^.]*(?=\..*)\.|.*/,K=/\..*/,Y=/::\d+$/,Q={};let J=1;const Z={mouseenter:"mouseover",mouseleave:"mouseout"},ee=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function te(e,t){return t&&t+"::"+J++||e.uidEvent||J++}function ie(e){var t=te(e);return e.uidEvent=t,Q[t]=Q[t]||{},Q[t]}function ne(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function re(e,t,i){var n="string"==typeof t,t=!n&&t||i;let r=ae(e);return[n,t,r=ee.has(r)?r:e]}function se(n,r,s,o,a){if("string"==typeof r&&n){let[e,t,i]=re(r,s,o);r in Z&&(t=(l=t,function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return l.call(this,e)}));var l,u,c,d,h,p,o=ie(n),o=o[i]||(o[i]={}),f=ne(o,t,e?s:null);f?f.oneOff=f.oneOff&&a:(f=te(t,r.replace(X,"")),(r=e?(d=n,h=s,p=t,function t(i){var n=d.querySelectorAll(h);for(let e=i["target"];e&&e!==this;e=e.parentNode)for(const r of n)if(r===e)return le(i,{delegateTarget:e}),t.oneOff&&m.off(d,i.type,h,p),p.apply(e,[i])}):(u=n,c=t,function e(t){return le(t,{delegateTarget:u}),e.oneOff&&m.off(u,t.type,c),c.apply(u,[t])})).delegationSelector=e?s:null,r.callable=t,r.oneOff=a,o[r.uidEvent=f]=r,n.addEventListener(i,r,e))}}function oe(e,t,i,n,r){n=ne(t[i],n,r);n&&(e.removeEventListener(i,n,Boolean(r)),delete t[i][n.uidEvent])}function ae(e){return e=e.replace(K,""),Z[e]||e}const m={on(e,t,i,n){se(e,t,i,n,!1)},one(e,t,i,n){se(e,t,i,n,!0)},off(e,t,i,n){if("string"==typeof t&&e){var[n,r,s]=re(t,i,n),o=s!==t,a=ie(e),l=a[s]||{},u=t.startsWith(".");if(void 0!==r)return Object.keys(l).length?void oe(e,a,s,r,n?i:null):void 0;if(u)for(const y of Object.keys(a)){c=m=f=p=h=d=void 0;var c,d=e,h=a,p=y,f=t.slice(1),m=h[p]||{};for(const v of Object.keys(m))v.includes(f)&&oe(d,h,p,(c=m[v]).callable,c.delegationSelector)}for(const _ of Object.keys(l)){var g=_.replace(Y,"");o&&!t.includes(g)||oe(e,a,s,(g=l[_]).callable,g.delegationSelector)}}},trigger(e,t,i){if("string"!=typeof t||!e)return null;var n=W();let r=null,s=!0,o=!0,a=!1;t!==ae(t)&&n&&(r=n.Event(t,i),n(e).trigger(r),s=!r.isPropagationStopped(),o=!r.isImmediatePropagationStopped(),a=r.isDefaultPrevented());n=le(n=new Event(t,{bubbles:s,cancelable:!0}),i);return a&&n.preventDefault(),o&&e.dispatchEvent(n),n.defaultPrevented&&r&&r.preventDefault(),n}};function le(t,e){for(const[i,n]of Object.entries(e||{}))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get(){return n}})}return t}const c=new Map,ue={set(e,t,i){c.has(e)||c.set(e,new Map);e=c.get(e);e.has(t)||0===e.size?e.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(e.keys())[0]}.`)},get(e,t){return c.has(e)&&c.get(e).get(t)||null},remove(e,t){var i;
1c.has(e)&&((i=c.get(e)).delete(t),0===i.size)&&c.delete(e)}};function ce(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function de(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}const d={setDataAttribute(e,t,i){e.setAttribute("data-bs-"+de(t),i)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+de(t))},getDataAttributes(t){if(!t)return{};var i={};for(const n of Object.keys(t.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"))){let e=n.replace(/^bs/,"");i[e=e.charAt(0).toLowerCase()+e.slice(1,e.length)]=ce(t.dataset[n])}return i},getDataAttribute(e,t){return ce(e.getAttribute("data-bs-"+de(t)))}};class he{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){var i=s(t)?d.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...s(t)?d.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const r of Object.keys(t)){var i=t[r],n=e[r],n=s(n)?"element":null==(n=n)?""+n:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(i).test(n))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${n}" but expected type "${i}".`)}}}class t extends he{constructor(e,t){super(),(e=n(e))&&(this._element=e,this._config=this._getConfig(t),ue.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ue.remove(this._element,this.constructor.DATA_KEY),m.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){z(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return ue.get(n(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.2.3"}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}static eventName(e){return""+e+this.EVENT_KEY}}var pe=(t,i="hide")=>{var e="click.dismiss"+t.EVENT_KEY;const n=t.NAME;m.on(document,e,`[data-bs-dismiss="${n}"]`,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||(e=r(this)||this.closest("."+n),t.getOrCreateInstance(e)[i]())})};class fe extends t{static get NAME(){return"alert"}close(){var e;m.trigger(this._element,"close.bs.alert").defaultPrevented||(this._element.classList.remove("show"),e=this._element.classList.contains("fade"),this._queueCallback(()=>this._destroyElement(),this._element,e))}_destroyElement(){this._element.remove(),m.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){var e=fe.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}pe(fe,"close"),e(fe);const me='[data-bs-toggle="button"]';class ge extends t{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){var e=ge.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}m.on(document,"click.bs.button.data-api",me,e=>{e.preventDefault();e=e.target.closest(me);ge.getOrCreateInstance(e).toggle()}),e(ge);const h={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){var i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>e+':not([tabindex^="-"])').join(",");return this.find(t,e).filter(e=>!a(e)&&o(e))}},i=".bs.swipe",ye=(i,i,i,i,i,{endCallback:null,leftCallback:null,rightCallback:null}),ve={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class _e extends he{constructor(e,t){super(),(this._element=e)&&_e.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ye}static get DefaultType(){return ve}static get NAME(){return"swipe"}dispose(){m.off(this._element,i)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),u(this._config.endCallback)}_move(e){this._deltaX=e.touches&&1<e.touches.length?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){var e=Math.abs(this._deltaX);e<=40||(e=e/this._deltaX,this._deltaX=0,e&&u(0<e?this._config.rightCallback:this._config.leftCallback))}_initEvents(){this._supportPointerEvents?(m.on(this._element,"pointerdown.bs.swipe",e=>this._start(e)),m.on(this._element,"pointerup.bs.swipe",e=>this._end(e)),this._element.classList.add("pointer-event")):(m.on(this._element,"touchstart.bs.swipe",e=>this._start(e)),m.on(this._element,"touchmove.bs.swipe",e=>this._move(e)),m.on(this._element,"touchend.bs.swipe",e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||0<navigator.maxTouchPoints}}var p=".bs.carousel";const be="next",f="prev",g="left",Te="right",we="slid"+p;const Se="carousel",ke="active",Ce=".active",Ee=".carousel-item";Ce,Ee;const xe={ArrowLeft:Te,ArrowRight:g},Ae={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ie={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Le extends t{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=h.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Se&&this.cycle()}static get Default(){return Ae}static get DefaultType(){return Ie}static get NAME(){return"carousel"}next(){this._slide(be)}nextWhenVisible(){!document.hidden&&o(this._element)&&this.next()}prev(){this._slide(f)}pause(){this._isSliding&&F(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?m.one(this._element,we,()=>this.cycle()):this.cycle())}to(e){var t,i=this._getItems();e>i.length-1||e<0||(this._isSliding?m.one(this._element,we,()=>this.to(e)):(t=this._getItemIndex(this._getActive()))!==e&&(t=t<e?be:f,this._slide(t,i[e])))}
1dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&m.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),"hover"===this._config.pause&&(m.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),m.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&_e.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of h.find(".carousel-item img",this._element))m.on(t,"dragstart.bs.carousel",e=>e.preventDefault());var e={leftCallback:()=>this._slide(this._directionToOrder(g)),rightCallback:()=>this._slide(this._directionToOrder(Te)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new _e(this._element,e)}_keydown(e){var t;/input|textarea/i.test(e.target.tagName)||(t=xe[e.key])&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){var t;this._indicatorsElement&&((t=h.findOne(Ce,this._indicatorsElement)).classList.remove(ke),t.removeAttribute("aria-current"),t=h.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement))&&(t.classList.add(ke),t.setAttribute("aria-current","true"))}_updateInterval(){var e=this._activeElement||this._getActive();e&&(e=Number.parseInt(e.getAttribute("data-bs-interval"),10),this._config.interval=e||this._config.defaultInterval)}_slide(t,e=null){if(!this._isSliding){const n=this._getActive();var i=t===be;const r=e||G(this._getItems(),n,i,this._config.wrap);if(r!==n){const s=this._getItemIndex(r),o=e=>m.trigger(this._element,e,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:s});e=o("slide.bs.carousel");if(!e.defaultPrevented&&n&&r){e=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=r;const a=i?"carousel-item-start":"carousel-item-end",l=i?"carousel-item-next":"carousel-item-prev";r.classList.add(l),V(r),n.classList.add(a),r.classList.add(a);this._queueCallback(()=>{r.classList.remove(a,l),r.classList.add(ke),n.classList.remove(ke,l,a),this._isSliding=!1,o(we)},n,this._isAnimated()),e&&this.cycle()}}}}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return h.findOne(".active.carousel-item",this._element)}_getItems(){return h.find(Ee,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return l()?e===g?f:be:e===g?be:f}_orderToDirection(e){return l()?e===f?g:Te:e===f?Te:g}static jQueryInterface(t){return this.each(function(){var e=Le.getOrCreateInstance(this,t);if("number"==typeof t)e.to(t);else if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(e){var t=r(this);t&&t.classList.contains(Se)&&(e.preventDefault(),e=Le.getOrCreateInstance(t),(t=this.getAttribute("data-bs-slide-to"))?e.to(t):"next"===d.getDataAttribute(this,"slide")?e.next():e.prev(),e._maybeEnableCycle())}),m.on(window,"load.bs.carousel.data-api",()=>{for(const e of h.find('[data-bs-ride="carousel"]'))Le.getOrCreateInstance(e)}),e(Le);const Pe="show",y="collapse",Oe="collapsing",De=(y,y,'[data-bs-toggle="collapse"]'),Ne={parent:null,toggle:!0},Me={parent:"(null|element)",toggle:"boolean"};class Re extends t{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];for(const r of h.find(De)){var i=B(r),n=h.find(i).filter(e=>e===this._element);null!==i&&n.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ne}static get DefaultType(){return Me}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let e=[];
1if(!(e=this._config.parent?this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>Re.getOrCreateInstance(e,{toggle:!1})):e).length||!e[0]._isTransitioning){var t=m.trigger(this._element,"show.bs.collapse");if(!t.defaultPrevented){for(const n of e)n.hide();const i=this._getDimension();this._element.classList.remove(y),this._element.classList.add(Oe),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;t="scroll"+(i[0].toUpperCase()+i.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Oe),this._element.classList.add(y,Pe),this._element.style[i]="",m.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[i]=this._element[t]+"px"}}}}hide(){if(!this._isTransitioning&&this._isShown()){var e=m.trigger(this._element,"hide.bs.collapse");if(!e.defaultPrevented){e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",V(this._element),this._element.classList.add(Oe),this._element.classList.remove(y,Pe);for(const i of this._triggerArray){var t=r(i);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Oe),this._element.classList.add(y),m.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}}_isShown(e=this._element){return e.classList.contains(Pe)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=n(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent)for(const t of this._getFirstLevelChildren(De)){var e=r(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=h.find(":scope .collapse .collapse",this._config.parent);return h.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(t){const i={};return"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){var e=Re.getOrCreateInstance(this,i);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(document,"click.bs.collapse.data-api",De,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();e=B(this);for(const t of h.find(e))Re.getOrCreateInstance(t,{toggle:!1}).toggle()}),e(Re);var x="top",A="bottom",I="right",L="left",Ue="auto",je=[x,A,I,L],P="start",Be="end",Fe="clippingParents",He="viewport",qe="popper",Ve="reference",We=je.reduce(function(e,t){return e.concat([t+"-"+P,t+"-"+Be])},[]),$e=[].concat(je,[Ue]).reduce(function(e,t){return e.concat([t,t+"-"+P,t+"-"+Be])},[]),p="beforeRead",ze="afterRead",Ge="beforeMain",Xe="afterMain",Ke="beforeWrite",Ye="afterWrite",Qe=[p,"read",ze,Ge,"main",Xe,Ke,"write",Ye];function v(e){return e?(e.nodeName||"").toLowerCase():null}function _(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function b(e){return e instanceof _(e).Element||e instanceof Element}function T(e){return e instanceof _(e).HTMLElement||e instanceof HTMLElement}function Je(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _(e).ShadowRoot||e instanceof ShadowRoot)}var Ze={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var r=e.state;Object.keys(r.elements).forEach(function(e){var t=r.styles[e]||{},i=r.attributes[e]||{},n=r.elements[e];
vendor: 15,607 bytes, line 1
1T(n)&&v(n)&&(Object.assign(n.style,t),Object.keys(i).forEach(function(e){var t=i[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow),function(){Object.keys(n.elements).forEach(function(e){var t=n.elements[e],i=n.attributes[e]||{},e=Object.keys((n.styles.hasOwnProperty(e)?n.styles:r)[e]).reduce(function(e,t){return e[t]="",e},{});T(t)&&v(t)&&(Object.assign(t.style,e),Object.keys(i).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};function O(e){return e.split("-")[0]}var E=Math.max,et=Math.min,tt=Math.round;function it(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function nt(){return!/^((?!chrome|android).)*safari/i.test(it())}function rt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,s=1;t&&T(e)&&(r=0<e.offsetWidth&&tt(n.width)/e.offsetWidth||1,s=0<e.offsetHeight&&tt(n.height)/e.offsetHeight||1);t=(b(e)?_(e):window).visualViewport,e=!nt()&&i,i=(n.left+(e&&t?t.offsetLeft:0))/r,e=(n.top+(e&&t?t.offsetTop:0))/s,t=n.width/r,r=n.height/s;return{width:t,height:r,top:e,right:i+t,bottom:e+r,left:i,x:i,y:e}}function st(e){var t=rt(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function ot(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Je(i)){var n=t;do{if(n&&e.isSameNode(n))return!0}while(n=n.parentNode||n.host)}return!1}function w(e){return _(e).getComputedStyle(e)}function S(e){return((b(e)?e.ownerDocument:e.document)||window.document).documentElement}function at(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(Je(e)?e.host:null)||S(e)}function lt(e){return T(e)&&"fixed"!==w(e).position?e.offsetParent:null}function ut(e){for(var t,i=_(e),n=lt(e);n&&(t=n,0<=["table","td","th"].indexOf(v(t)))&&"static"===w(n).position;)n=lt(n);return(!n||"html"!==v(n)&&("body"!==v(n)||"static"!==w(n).position))&&(n||function(e){var t=/firefox/i.test(it()),i=/Trident/i.test(it());if(!i||!T(e)||"fixed"!==w(e).position){var n=at(e);for(Je(n)&&(n=n.host);T(n)&&["html","body"].indexOf(v(n))<0;){var r=w(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}}return null}(e))||i}function ct(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function dt(e,t,i){return E(e,et(t,i))}function ht(){return{top:0,right:0,bottom:0,left:0}}function pt(e){return Object.assign({},ht(),e)}function ft(i,e){return e.reduce(function(e,t){return e[t]=i,e},{})}var mt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n,r,s=e.state,o=e.name,e=e.options,a=s.elements.arrow,l=s.modifiersData.popperOffsets,u=ct(c=O(s.placement)),c=0<=[L,I].indexOf(c)?"height":"width";a&&l&&(e=e.padding,i=s,i=pt("number"!=typeof(e="function"==typeof e?e(Object.assign({},i.rects,{placement:i.placement})):e)?e:ft(e,je)),e=st(a),r="y"===u?x:L,n="y"===u?A:I,t=s.rects.reference[c]+s.rects.reference[u]-l[u]-s.rects.popper[c],l=l[u]-s.rects.reference[u],a=(a=ut(a))?"y"===u?a.clientHeight||0:a.clientWidth||0:0,r=i[r],i=a-e[c]-i[n],r=dt(r,n=a/2-e[c]/2+(t/2-l/2),i),s.modifiersData[o]=((a={})[u]=r,a.centerOffset=r-n,a))},effect:function(e){var t=e.state;null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&ot(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gt(e){return e.split("-")[1]}var yt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vt(e){var t,i,n,r=e.popper,s=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,e=e.isFixed,p=l.x,p=void 0===p?0:p,f=l.y,f=void 0===f?0:f,m="function"==typeof h?h({x:p,y:f}):{x:p,y:f},m=(p=m.x,f=m.y,l.hasOwnProperty("x")),l=l.hasOwnProperty("y"),g=L,y=x,v=window,r=(d&&(i="clientHeight",t="clientWidth",(n=ut(r))===_(r)&&"static"!==w(n=S(r)).position&&"absolute"===u&&(i="scrollHeight",t="scrollWidth"),o!==x&&(o!==L&&o!==I||a!==Be)||(y=A,f=(f-((e&&n===v&&v.visualViewport?v.visualViewport.height:n[i])-s.height))*(c?1:-1)),o!==L&&(o!==x&&o!==A||a!==Be)||(g=I,p=(p-((e&&n===v&&v.visualViewport?v.visualViewport.width:n[t])-s.width))*(c?1:-1))),Object.assign({position:u},d&&yt)),e=!0===h?(o=(i={x:p,y:f}).x,i=i.y,a=window.devicePixelRatio||1,{x:tt(o*a)/a||0,y:tt(i*a)/a||0}):{x:p,y:f};return p=e.x,f=e.y,c?Object.assign({},r,((n={})[y]=l?"0":"",n[g]=m?"0":"",n.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",n)):Object.assign({},r,((t={})[y]=l?f+"px":"",t[g]=m?p+"px":"",t.transform="",t))}var _t={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,e=e.options,i=void 0===(i=e.gpuAcceleration)||i,n=void 0===(n=e.adaptive)||n,e=void 0===(e=e.roundOffsets)||e,i={placement:O(t.placement),variation:gt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,vt(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,vt(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},bt={passive:!0};var Tt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=(e=e.options).scroll,r=void 0===n||n,s=void 0===(n=e.resize)||n,o=_(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&a.forEach(function(e){e.addEventListener("scroll",i.update,bt)}),s&&o.addEventListener("resize",i.update,bt),function(){r&&a.forEach(function(e){e.removeEventListener("scroll",i.update,bt)}),s&&o.removeEventListener("resize",i.update,bt)}},data:{}},wt={left:"right",right:"left",bottom:"top",top:"bottom"};function St(e){return e.replace(/left|right|bottom|top/g,function(e){return wt[e]})}var kt={start:"end",end:"start"};function Ct(e){return e.replace(/start|end/g,function(e){return kt[e]})}function Et(e){e=_(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xt(e){return rt(S(e)).left+Et(e).scrollLeft}function At(e){var e=w(e),t=e.overflow,i=e.overflowX,e=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+e+i)}function It(e,t){void 0===t&&(t=[]);var i=function e(t){return 0<=["html","body","#document"].indexOf(v(t))?t.ownerDocument.body:T(t)&&At(t)?t:e(at(t))}(e),e=i===(null==(e=e.ownerDocument)?void 0:e.body),n=_(i),n=e?[n].concat(n.visualViewport||[],At(i)?i:[]):i,i=t.concat(n);return e?i:i.concat(It(at(n)))}function Lt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pt(e,t,i){return t===He?Lt((r=i,o=_(n=e),a=S(n),o=o.visualViewport,l=a.clientWidth,a=a.clientHeight,c=u=0,o&&(l=o.width,a=o.height,(s=nt())||!s&&"fixed"===r)&&(u=o.offsetLeft,c=o.offsetTop),{width:l,height:a,x:u+xt(n),y:c})):b(t)?((r=rt(s=t,!1,"fixed"===(r=i))).top=r.top+s.clientTop,r.left=r.left+s.clientLeft,r.bottom=r.top+s.clientHeight,r.right=r.left+s.clientWidth,r.width=s.clientWidth,r.height=s.clientHeight,r.x=r.left,r.y=r.top,r):Lt((o=S(e),l=S(o),a=Et(o),u=null==(u=o.ownerDocument)?void 0:u.body,n=E(l.scrollWidth,l.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),c=E(l.scrollHeight,l.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),o=-a.scrollLeft+xt(o),a=-a.scrollTop,"rtl"===w(u||l).direction&&(o+=E(l.clientWidth,u?u.clientWidth:0)-n),{width:n,height:c,x:o,y:a}));var n,r,s,o,a,l,u,c}function Ot(i,e,t,n){var r,s="clippingParents"===e?(o=It(at(s=i)),b(r=0<=["absolute","fixed"].indexOf(w(s).position)&&T(s)?ut(s):s)?o.filter(function(e){return b(e)&&ot(e,r)&&"body"!==v(e)}):[]):[].concat(e),o=[].concat(s,[t]),e=o[0],t=o.reduce(function(e,t){t=Pt(i,t,n);return e.top=E(t.top,e.top),e.right=et(t.right,e.right),e.bottom=et(t.bottom,e.bottom),e.left=E(t.left,e.left),e},Pt(i,e,n));return t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}function Dt(e){var t,i=e.reference,n=e.element,e=e.placement,r=e?O(e):null,e=e?gt(e):null,s=i.x+i.width/2-n.width/2,o=i.y+i.height/2-n.height/2;switch(r){case x:t={x:s,y:i.y-n.height};break;case A:t={x:s,y:i.y+i.height};break;case I:t={x:i.x+i.width,y:o};break;case L:t={x:i.x-n.width,y:o};break;default:t={x:i.x,y:i.y}}var a=r?ct(r):null;if(null!=a){var l="y"===a?"height":"width";switch(e){case P:t[a]=t[a]-(i[l]/2-n[l]/2);break;case Be:t[a]=t[a]+(i[l]/2-n[l]/2)}}return t}function Nt(e,t){var n,t=t=void 0===t?{}:t,i=t.placement,i=void 0===i?e.placement:i,r=t.strategy,r=void 0===r?e.strategy:r,s=t.boundary,s=void 0===s?Fe:s,o=t.rootBoundary,o=void 0===o?He:o,a=t.elementContext,a=void 0===a?qe:a,l=t.altBoundary,l=void 0!==l&&l,t=t.padding,t=void 0===t?0:t,t=pt("number"!=typeof t?t:ft(t,je)),u=e.rects.popper,l=e.elements[l?a===qe?Ve:qe:a],l=Ot(b(l)?l:l.contextElement||S(e.elements.popper),s,o,r),s=rt(e.elements.reference),o=Dt({reference:s,element:u,strategy:"absolute",placement:i}),r=Lt(Object.assign({},u,o)),u=a===qe?r:s,c={top:l.top-u.top+t.top,bottom:u.bottom-l.bottom+t.bottom,left:l.left-u.left+t.left,right:u.right-l.right+t.right},o=e.modifiersData.offset;return a===qe&&o&&(n=o[i],Object.keys(c).forEach(function(e){var t=0<=[I,A].indexOf(e)?1:-1,i=0<=[x,A].indexOf(e)?"y":"x";c[e]+=n[i]*t})),c}var Mt={name:"flip",enabled:!0,phase:"main",fn:function(e){var d=e.state,t=e.options,e=e.name;if(!d.modifiersData[e]._skip){for(var i=t.mainAxis,n=void 0===i||i,i=t.altAxis,r=void 0===i||i,i=t.fallbackPlacements,h=t.padding,p=t.boundary,f=t.rootBoundary,s=t.altBoundary,o=t.flipVariations,m=void 0===o||o,g=t.allowedAutoPlacements,o=d.options.placement,t=O(o),i=i||(t===o||!m?[St(o)]:O(i=o)===Ue?[]:(t=St(i),[Ct(i),t,Ct(t)])),a=[o].concat(i).reduce(function(e,t){return e.concat(O(t)===Ue?(i=d,n=(e=e=void 0===(e={placement:t,boundary:p,rootBoundary:f,padding:h,flipVariations:m,allowedAutoPlacements:g})?{}:e).placement,r=e.boundary,s=e.rootBoundary,o=e.padding,a=e.flipVariations,l=void 0===(e=e.allowedAutoPlacements)?$e:e,u=gt(n),e=u?a?We:We.filter(function(e){return gt(e)===u}):je,c=(n=0===(n=e.filter(function(e){return 0<=l.indexOf(e)})).length?e:n).reduce(function(e,t){return e[t]=Nt(i,{placement:t,boundary:r,rootBoundary:s,padding:o})[O(t)],e},{}),Object.keys(c).sort(function(e,t){return c[e]-c[t]})):t);var i,n,r,s,o,a,l,u,c},[]),l=d.rects.reference,u=d.rects.popper,c=new Map,y=!0,v=a[0],_=0;_<a.length;_++){var b=a[_],T=O(b),w=gt(b)===P,S=0<=[x,A].indexOf(T),k=S?"width":"height",C=Nt(d,{placement:b,boundary:p,rootBoundary:f,altBoundary:s,padding:h}),S=S?w?I:L:w?A:x,w=(l[k]>u[k]&&(S=St(S)),St(S)),k=[];if(n&&k.push(C[T]<=0),r&&k.push(C[S]<=0,C[w]<=0),k.every(function(e){return e})){v=b,y=!1;break}c.set(b,k)}if(y)for(var E=m?3:1;0<E;E--)if("break"===function(t){var e=a.find(function(e){e=c.get(e);if(e)return e.slice(0,t).every(function(e){return e})});if(e)return v=e,"break"}(E))break;d.placement!==v&&(d.modifiersData[e]._skip=!0,d.placement=v,d.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Rt(e,t,i){return{top:e.top-t.height-(i=void 0===i?{x:0,y:0}:i).y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Ut(t){return[x,I,A,L].some(function(e){return 0<=t[e]})}var jt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,e=e.name,i=t.rects.reference,n=t.rects.popper,r=t.modifiersData.preventOverflow,s=Nt(t,{elementContext:"reference"}),o=Nt(t,{altBoundary:!0}),s=Rt(s,i),i=Rt(o,n,r),o=Ut(s),n=Ut(i);t.modifiersData[e]={referenceClippingOffsets:s,popperEscapeOffsets:i,isReferenceHidden:o,hasPopperEscaped:n},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":o,"data-popper-escaped":n})}};var Bt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var o=e.state,t=e.options,e=e.name,a=void 0===(t=t.offset)?[0,0]:t,t=$e.reduce(function(e,t){var i,n,r,s;return e[t]=(t=t,i=o.rects,n=a,r=O(t),s=0<=[L,x].indexOf(r)?-1:1,t=(i="function"==typeof n?n(Object.assign({},i,{placement:t})):n)[0]||0,n=(i[1]||0)*s,0<=[L,I].indexOf(r)?{x:n,y:t}:{x:t,y:n}),e},{}),i=(n=t[o.placement]).x,n=n.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=i,o.modifiersData.popperOffsets.y+=n),o.modifiersData[e]=t}};var Ft={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,e=e.name;t.modifiersData[e]=Dt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Ht={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,i,n,r,s,o,a,l,u,c=e.state,d=e.options,e=e.name,h=void 0===(h=d.mainAxis)||h,p=void 0!==(p=d.altAxis)&&p,f=d.boundary,m=d.rootBoundary,g=d.altBoundary,y=d.padding,v=void 0===(v=d.tether)||v,d=void 0===(d=d.tetherOffset)?0:d,f=Nt(c,{boundary:f,rootBoundary:m,padding:y,altBoundary:g}),m=O(c.placement),g=!(y=gt(c.placement)),_=ct(m),b="x"===_?"y":"x",T=c.modifiersData.popperOffsets,w=c.rects.reference,S=c.rects.popper,d="number"==typeof(d="function"==typeof d?d(Object.assign({},c.rects,{placement:c.placement})):d)?{mainAxis:d,altAxis:d}:Object.assign({mainAxis:0,altAxis:0},d),k=c.modifiersData.offset?c.modifiersData.offset[c.placement]:null,C={x:0,y:0};T&&(h&&(h="y"===_?"height":"width",o=(a=T[_])+f[i="y"===_?x:L],l=a-f[u="y"===_?A:I],t=v?-S[h]/2:0,r=(y===P?w:S)[h],y=y===P?-S[h]:-w[h],s=c.elements.arrow,s=v&&s?st(s):{width:0,height:0},i=(n=c.modifiersData["arrow#persistent"]?c.modifiersData["arrow#persistent"].padding:ht())[i],n=n[u],u=dt(0,w[h],s[h]),s=g?w[h]/2-t-u-i-d.mainAxis:r-u-i-d.mainAxis,r=g?-w[h]/2+t+u+n+d.mainAxis:y+u+n+d.mainAxis,g=(i=c.elements.arrow&&ut(c.elements.arrow))?"y"===_?i.clientTop||0:i.clientLeft||0:0,y=a+r-(t=null!=(h=null==k?void 0:k[_])?h:0),u=dt(v?et(o,a+s-t-g):o,a,v?E(l,y):l),T[_]=u,C[_]=u-a),p&&(n="y"==b?"height":"width",r=(i=T[b])+f["x"===_?x:L],h=i-f["x"===_?A:I],s=-1!==[x,L].indexOf(m),g=null!=(t=null==k?void 0:k[b])?t:0,o=s?r:i-w[n]-S[n]-g+d.altAxis,y=s?i+w[n]+S[n]-g-d.altAxis:h,a=v&&s?(l=dt(l=o,i,u=y),u<l?u:l):dt(v?o:r,i,v?y:h),T[b]=a,C[b]=a-i),c.modifiersData[e]=C)},requiresIfExists:["offset"]};function qt(e,t,i){void 0===i&&(i=!1);var n=T(t),r=T(t)&&(o=(r=t).getBoundingClientRect(),s=tt(o.width)/r.offsetWidth||1,o=tt(o.height)/r.offsetHeight||1,1!==s||1!==o),s=S(t),o=rt(e,r,i),e={scrollLeft:0,scrollTop:0},a={x:0,y:0};return!n&&i||("body"===v(t)&&!At(s)||(e=(n=t)!==_(n)&&T(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:Et(n)),T(t)?((a=rt(t,!0)).x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=xt(s))),{x:o.left+e.scrollLeft-a.x,y:o.top+e.scrollTop-a.y,width:o.width,height:o.height}}function Vt(e){var i=new Map,n=new Set,r=[];return e.forEach(function(e){i.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||!function t(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
1h(function(e){n.has(e)||(e=i.get(e))&&t(e)}),r.push(e)}(e)}),r}var Wt={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function zt(e){var e=e=void 0===e?{}:e,t=e.defaultModifiers,d=void 0===t?[]:t,t=e.defaultOptions,h=void 0===t?Wt:t;return function(n,r,t){void 0===t&&(t=h);var i,s,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wt,h),modifiersData:{},elements:{reference:n,popper:r},attributes:{},styles:{}},a=[],l=!1,u={state:o,setOptions:function(e){var i,t,e="function"==typeof e?e(o.options):e,e=(c(),o.options=Object.assign({},h,o.options,e),o.scrollParents={reference:b(n)?It(n):n.contextElement?It(n.contextElement):[],popper:It(r)},e=[].concat(d,o.options.modifiers),t=e.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{}),e=Object.keys(t).map(function(e){return t[e]}),i=Vt(e),Qe.reduce(function(e,t){return e.concat(i.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=e.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,e=e.effect;"function"==typeof e&&(e=e({state:o,name:t,instance:u,options:void 0===i?{}:i}),a.push(e||function(){}))}),u.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,e=e.popper;if($t(t,e)){o.rects={reference:qt(t,ut(e),"fixed"===o.options.strategy),popper:st(e)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var i,n,r,s=0;s<o.orderedModifiers.length;s++)!0===o.reset?(o.reset=!1,s=-1):(i=(r=o.orderedModifiers[s]).fn,n=r.options,r=r.name,"function"==typeof i&&(o=i({state:o,options:void 0===n?{}:n,name:r,instance:u})||o))}}},update:(i=function(){return new Promise(function(e){u.forceUpdate(),e(o)})},function(){return s=s||new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(i())})})}),destroy:function(){c(),l=!0}};return $t(n,r)&&u.setOptions(t).then(function(e){!l&&t.onFirstUpdate&&t.onFirstUpdate(e)}),u;function c(){a.forEach(function(e){return e()}),a=[]}}}var Gt=zt({defaultModifiers:[Tt,Ft,_t,Ze,Bt,Mt,Ht,mt,jt]});const Xt=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:zt,detectOverflow:Nt,createPopperBase:zt(),createPopper:Gt,createPopperLite:zt({defaultModifiers:[Tt,Ft,_t,Ze]}),top:x,bottom:A,right:I,left:L,auto:Ue,basePlacements:je,start:P,end:Be,clippingParents:Fe,viewport:He,popper:qe,reference:Ve,variationPlacements:We,placements:$e,beforeRead:p,read:"read",afterRead:ze,beforeMain:Ge,main:"main",afterMain:Xe,beforeWrite:Ke,write:"write",afterWrite:Ye,modifierPhases:Qe,applyStyles:Ze,arrow:mt,computeStyles:_t,eventListeners:Tt,flip:Mt,hide:jt,offset:Bt,popperOffsets:Ft,preventOverflow:Ht},Symbol.toStringTag,{value:"Module"})),Kt="dropdown";p=".bs.dropdown",ze=".data-api";const Yt="ArrowDown";Ge="click"+p+ze,Xe="keydown"+p+ze;const Qt="show",k='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Jt=(k,".dropdown-menu"),Zt=l()?"top-end":"top-start",ei=l()?"top-start":"top-end",ti=l()?"bottom-end":"bottom-start",ii=l()?"bottom-start":"bottom-end",ni=l()?"left-start":"right-start",ri=l()?"right-start":"left-start",si={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},oi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class C extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=h.next(this._element,Jt)[0]||h.prev(this._element,Jt)[0]||h.findOne(Jt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return si}static get DefaultType(){return oi}static get NAME(){return Kt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(!a(this._element)&&!this._isShown()){var e={relatedTarget:this._element},t=m.trigger(this._element,"show.bs.dropdown",e);if(!t.defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
1navbar-nav"))for(const i of[].concat(...document.body.children))m.on(i,"mouseover",q);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Qt),this._element.classList.add(Qt),m.trigger(this._element,"shown.bs.dropdown",e)}}}hide(){var e;!a(this._element)&&this._isShown()&&(e={relatedTarget:this._element},this._completeHide(e))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){var t=m.trigger(this._element,"hide.bs.dropdown",e);if(!t.defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))m.off(i,"mouseover",q);this._popper&&this._popper.destroy(),this._menu.classList.remove(Qt),this._element.classList.remove(Qt),this._element.setAttribute("aria-expanded","false"),d.removeDataAttribute(this._menu,"popper"),m.trigger(this._element,"hidden.bs.dropdown",e)}}_getConfig(e){if("object"!=typeof(e=super._getConfig(e)).reference||s(e.reference)||"function"==typeof e.reference.getBoundingClientRect)return e;throw new TypeError(Kt.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.')}_createPopper(){if(void 0===Xt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:s(this._config.reference)?e=n(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);var t=this._getPopperConfig();this._popper=Gt(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Qt)}_getPlacement(){var e,t=this._parent;return t.classList.contains("dropend")?ni:t.classList.contains("dropstart")?ri:t.classList.contains("dropup-center")?"top":t.classList.contains("dropdown-center")?"bottom":(e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim(),t.classList.contains("dropup")?e?ei:Zt:e?ii:ti)}
1_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return!this._inNavbar&&"static"!==this._config.display||(d.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){var i=h.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>o(e));i.length&&G(i,t,e===Yt,!i.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){var e=C.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(e){if(2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(const r of h.find('[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled).show')){var t,i,n=C.getInstance(r);n&&!1!==n._config.autoClose&&(t=(i=e.composedPath()).includes(n._menu),i.includes(n._element)||"inside"===n._config.autoClose&&!t||"outside"===n._config.autoClose&&t||n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName))||(i={relatedTarget:n._element},"click"===e.type&&(i.clickEvent=e),n._completeHide(i)))}}static dataApiKeydownHandler(e){var t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=["ArrowUp",Yt].includes(e.key);!n&&!i||t&&!i||(e.preventDefault(),t=this.matches(k)?this:h.prev(this,k)[0]||h.next(this,k)[0]||h.findOne(k,e.delegateTarget.parentNode),i=C.getOrCreateInstance(t),n?(e.stopPropagation(),i.show(),i._selectMenuItem(e)):i._isShown()&&(e.stopPropagation(),i.hide(),t.focus()))}}m.on(document,Xe,k,C.dataApiKeydownHandler),m.on(document,Xe,Jt,C.dataApiKeydownHandler),m.on(document,Ge,C.clearMenus),m.on(document,"keyup.bs.dropdown.data-api",C.clearMenus),m.on(document,Ge,k,function(e){e.preventDefault(),C.getOrCreateInstance(this).toggle()}),e(C);const ai=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",li=".sticky-top",ui="padding-right",ci="margin-right";class di{constructor(){this._element=document.body}getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ui,e=>e+t),this._setElementAttributes(ai,ui,e=>e+t),this._setElementAttributes(li,ci,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ui),this._resetElementAttributes(ai,ui),this._resetElementAttributes(li,ci)}isOverflowing(){return 0<this.getWidth()}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,i,n){const r=this.getWidth();this._applyManipulationCallback(e,e=>{var t;e!==this._element&&window.innerWidth>e.clientWidth+r||(this._saveInitialAttribute(e,i),t=window.getComputedStyle(e).getPropertyValue(i),e.style.setProperty(i,n(Number.parseFloat(t))+"px"))})}_saveInitialAttribute(e,t){var i=e.style.getPropertyValue(t);i&&d.setDataAttribute(e,t,i)}_resetElementAttributes(e,i){this._applyManipulationCallback(e,e=>{var t=d.getDataAttribute(e,i);null===t?e.style.removeProperty(i):(d.removeDataAttribute(e,i),e.style.setProperty(i,t))})}_applyManipulationCallback(e,t){if(s(e))t(e);else for(const i of h.find(e,this._element))t(i)}}const hi="backdrop",pi="mousedown.bs."+hi,fi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},mi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class gi extends he{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return fi}static get DefaultType(){return mi}static get NAME(){return hi}show(e){var t;this._config.isVisible?(this._append(),t=this._getElement(),this._config.isAnimated&&V(t),t.classList.add("show"),this._emulateAnimation(()=>{u(e)})):u(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),u(e)})):u(e)}dispose(){this._isAppended&&(m.off(this._element,pi),this._element.remove(),this._isAppended=!1)}_getElement(){var e;return this._element||((e=document.createElement("div")).className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e),this._element}_configAfterMerge(e){return e.rootElement=n(e.rootElement),e}_append(){var e;this._isAppended||(e=this._getElement(),this._config.rootElement.append(e),m.on(e,pi,()=>{u(this._config.clickCallback)}),this._isAppended=!0)}_emulateAnimation(e){z(e,this._getElement(),this._config.isAnimated)}}const yi=".bs.focustrap",vi=(yi,yi,"backward"),_i={autofocus:!0,trapElement:null},bi={autofocus:"boolean",trapElement:"element"};class Ti extends he{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return _i}static get DefaultType(){return bi}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),m.off(document,yi),m.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),m.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,m.off(document,yi))}_handleFocusin(e){var t=this._config["trapElement"];e.target===document||e.target===t||t.contains(e.target)||(0===(e=h.focusableChildren(t)).length?t:this._lastTabNavDirection===vi?e[e.length-1]:e[0]).focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?vi:"forward")}}const D=".bs.modal";D,D;const wi="hidden"+D,Si="show"+D;D,D,D,D,D;D;const ki="modal-open",Ci="modal-static";const Ei={backdrop:!0,focus:!0,keyboard:!0},xi={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ai extends t{constructor(e,t){super(e,t),this._dialog=h.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new di,this._addEventListeners()}static get Default(){return Ei}static get DefaultType(){return xi}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||m.trigger(this._element,Si,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ki),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||m.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const e of[window,this._dialog])m.off(e,D);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new gi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ti({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;var t=h.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),V(this._element),this._element.classList.add("show");this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,m.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){m.on(this._element,"keydown.dismiss.bs.modal",e=>{"Escape"===e.key&&(this._config.keyboard?(e.preventDefault(),this.hide()):this._triggerBackdropTransition())}),m.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),m.on(this._element,"mousedown.dismiss.bs.modal",t=>{m.one(this._element,"click.dismiss.bs.modal",e=>{this._element===t.target&&this._element===e.target&&("static"===this._config.backdrop?this._triggerBackdropTransition():this._config.backdrop&&this.hide())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ki),this._resetAdjustments(),this._scrollBar.reset(),m.trigger(this._element,wi)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){var e=m.trigger(this._element,"hidePrevented.bs.modal");if(!e.defaultPrevented){e=this._element.scrollHeight>document.documentElement.clientHeight;const t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Ci)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ci),this._queueCallback(()=>{this._element.classList.remove(Ci),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){var e,t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),n=0<i;n&&!t&&(e=l()?"paddingLeft":"paddingRight",this._element.style[e]=i+"px"),!n&&t&&(e=l()?"paddingRight":"paddingLeft",this._element.style[e]=i+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){var e=Ai.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
1amed "${t}"`);e[t](i)}})}}m.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(e){const t=r(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),m.one(t,Si,e=>{e.defaultPrevented||m.one(t,wi,()=>{o(this)&&this.focus()})});e=h.findOne(".modal.show");e&&Ai.getInstance(e).hide(),Ai.getOrCreateInstance(t).toggle(this)}),pe(Ai),e(Ai);Ke=".bs.offcanvas";const Ii="showing",Li=".offcanvas.show",Pi="hidePrevented"+Ke,Oi="hidden"+Ke;const Di={backdrop:!0,keyboard:!0,scroll:!1},Ni={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class N extends t{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Di}static get DefaultType(){return Ni}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||m.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new di).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ii),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(Ii),m.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&!m.trigger(this._element,"hide.bs.offcanvas").defaultPrevented&&(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new di).reset(),m.trigger(this._element,Oi)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){var e=Boolean(this._config.backdrop);return new gi({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"===this._config.backdrop?m.trigger(this._element,Pi):this.hide()}:null})}_initializeFocusTrap(){return new Ti({trapElement:this._element})}_addEventListeners(){m.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():m.trigger(this._element,Pi))})}static jQueryInterface(t){return this.each(function(){var e=N.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}m.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(e){var t=r(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||(m.one(t,Oi,()=>{o(this)&&this.focus()}),(e=h.findOne(Li))&&e!==t&&N.getInstance(e).hide(),N.getOrCreateInstance(t).toggle(this))}),m.on(window,"load.bs.offcanvas.data-api",()=>{for(const e of h.find(Li))N.getOrCreateInstance(e).show()}),m.on(window,"resize.bs.offcanvas",()=>{for(const e of h.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&N.getOrCreateInstance(e).hide()}),pe(N),e(N);const Mi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]);const Ri=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ui=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;Ye={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function ji(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);i=(new window.DOMParser).parseFromString(e,"text/html");for(const o of[].concat(...i.body.querySelectorAll("*"))){var n=o.nodeName.toLowerCase();
1if(Object.keys(t).includes(n)){var r=[].concat(...o.attributes),s=[].concat(t["*"]||[],t[n]||[]);for(const a of r)((e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Mi.has(i)||Boolean(Ri.test(e.nodeValue)||Ui.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))})(a,s)||o.removeAttribute(a.nodeName)}else o.remove()}return i.body.innerHTML}const Bi={allowList:Ye,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Fi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Hi={entry:"(string|element|function|null)",selector:"(string|element)"};class qi extends he{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Bi}static get DefaultType(){return Fi}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return 0<this.getContent().length}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){var e,t,i=document.createElement("div");i.innerHTML=this._maybeSanitize(this._config.template);for([e,t]of Object.entries(this._config.content))this._setContent(i,t,e);var n=i.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(var[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},Hi)}_setContent(e,t,i){i=h.findOne(i,e);i&&((t=this._resolvePossibleFunction(t))?s(t)?this._putElementInTemplate(n(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?ji(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return"function"==typeof e?e(this):e}_putElementInTemplate(e,t){this._config.html?(t.innerHTML="",t.append(e)):t.textContent=e.textContent}}const Vi=new Set(["sanitize","allowList","sanitizeFn"]),Wi="fade";const $i="show",zi="hide.bs.modal",Gi="hover",Xi="focus",Ki={AUTO:"auto",TOP:"top",RIGHT:l()?"left":"right",BOTTOM:"bottom",LEFT:l()?"right":"left"},Yi={allowList:Ye,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Qi={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Ji extends t{constructor(e,t){if(void 0===Xt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Yi}static get DefaultType(){return Qi}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),m.off(this._element.closest(".modal"),zi,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this._isWithContent()&&this._isEnabled){var e=m.trigger(this._element,this.constructor.eventName("show")),t=(H(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!e.defaultPrevented&&t){this._disposePopper();e=this._getTipElement(),t=(this._element.setAttribute("aria-describedby",e.getAttribute("id")),this._config)["container"];if(this._element.ownerDocument.documentElement.contains(this.tip)||(t.append(e),m.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(e),e.classList.add($i),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))m.on(i,"mouseover",q);this._queueCallback(()=>{m.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}
vendor: 5,519 bytes, line 1
1hide(){if(this._isShown()){var e=m.trigger(this._element,this.constructor.eventName("hide"));if(!e.defaultPrevented){if(this._getTipElement().classList.remove($i),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))m.off(t,"mouseover",q);this._activeTrigger.click=!1,this._activeTrigger[Xi]=!1,this._activeTrigger[Gi]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),m.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){e=this._getTemplateFactory(e).toHtml();if(!e)return null;e.classList.remove(Wi,$i),e.classList.add(`bs-${this.constructor.NAME}-auto`);var t=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME).toString();return e.setAttribute("id",t),this._isAnimated()&&e.classList.add(Wi),e}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new qi({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Wi)}_isShown(){return this.tip&&this.tip.classList.contains($i)}_createPopper(e){var t="function"==typeof this._config.placement?this._config.placement.call(this,e,this._element):this._config.placement,t=Ki[t.toUpperCase()];return Gt(this._element,e,this._getPopperConfig(t))}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){e={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){var e,t;for(const i of this._config.trigger.split(" "))"click"===i?m.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()}):"manual"!==i&&(e=i===Gi?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),t=i===Gi?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout"),m.on(this._element,e,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?Xi:Gi]=!0,t._enter()}),m.on(this._element,t,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?Xi:Gi]=t._element.contains(e.relatedTarget),t._leave()}));this._hideModalHandler=()=>{this._element&&this.hide()},m.on(this._element.closest(".modal"),zi,this._hideModalHandler)}_fixTitle(){var e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){var t=d.getDataAttributes(this._element);for(const i of Object.keys(t))Vi.has(i)&&delete t[i];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:n(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){var e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){var e=Ji.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
1amed "${t}"`);e[t]()}})}}e(Ji);const Zi={...Ji.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},en={...Ji.DefaultType,content:"(null|string|element|function)"};class tn extends Ji{static get Default(){return Zi}static get DefaultType(){return en}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){var e=tn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(tn);Ze=".bs.scrollspy";const nn="click"+Ze;const rn="active",sn="[href]";const on={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},an={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ln extends t{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return on}static get DefaultType(){return an}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=n(e.target)||document.body,e.rootMargin=e.offset?e.offset+"px 0px -30%":e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(m.off(this._config.target,nn),m.on(this._config.target,nn,sn,e=>{var t=this._observableSections.get(e.target.hash);t&&(e.preventDefault(),e=this._rootElement||window,t=t.offsetTop-this._element.offsetTop,e.scrollTo?e.scrollTo({top:t,behavior:"smooth"}):e.scrollTop=t)}))}_getNewObserver(){var e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get("#"+e.target.id);var i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},n=(this._rootElement||document.documentElement).scrollTop,r=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of e)if(o.isIntersecting){var s=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&s){if(i(o),n)continue;return}r||s||i(o)}else this._activeTarget=null,this._clearActiveClass(t(o))}_initializeTargetsAndObservables(){var e;this._targetLinks=new Map,this._observableSections=new Map;for(const t of h.find(sn,this._config.target))t.hash&&!a(t)&&(e=h.findOne(t.hash,this._element),o(e))&&(this._targetLinks.set(t.hash,t),this._observableSections.set(t.hash,e))}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),(this._activeTarget=e).classList.add(rn),this._activateParents(e),m.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))h.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(rn);else for(const t of h.parents(e,".nav, .list-group"))for(const i of h.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))i.classList.add(rn)}_clearActiveClass(e){e.classList.remove(rn);for(const t of h.find(sn+"."+rn,e))t.classList.remove(rn)}static jQueryInterface(t){return this.each(function(){var e=ln.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
1amed "${t}"`);e[t]()}})}}m.on(window,"load.bs.scrollspy.data-api",()=>{for(const e of h.find('[data-bs-spy="scroll"]'))ln.getOrCreateInstance(e)}),e(ln);const un="ArrowRight",cn="ArrowDown",M="active",dn="show";mt='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';const hn='.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), '+mt;M,M,M;class pn extends t{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),m.on(this._element,"keydown.bs.tab",e=>this._keydown(e)))}static get NAME(){return"tab"}show(){var e,t,i=this._element;this._elemIsActive(i)||(t=(e=this._getActiveElem())?m.trigger(e,"hide.bs.tab",{relatedTarget:i}):null,m.trigger(i,"show.bs.tab",{relatedTarget:e}).defaultPrevented)||t&&t.defaultPrevented||(this._deactivate(e,i),this._activate(i,e))}_activate(e,t){e&&(e.classList.add(M),this._activate(r(e)),this._queueCallback(()=>{"tab"!==e.getAttribute("role")?e.classList.add(dn):(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),m.trigger(e,"shown.bs.tab",{relatedTarget:t}))},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(M),e.blur(),this._deactivate(r(e)),this._queueCallback(()=>{"tab"!==e.getAttribute("role")?e.classList.remove(dn):(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),m.trigger(e,"hidden.bs.tab",{relatedTarget:t}))},e,e.classList.contains("fade")))}_keydown(e){var t;["ArrowLeft",un,"ArrowUp",cn].includes(e.key)&&(e.stopPropagation(),e.preventDefault(),t=[un,cn].includes(e.key),e=G(this._getChildren().filter(e=>!a(e)),e.target,t,!0))&&(e.focus({preventScroll:!0}),pn.getOrCreateInstance(e).show())}_getChildren(){return h.find(hn,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const i of t)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);var t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){var t=r(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id)&&this._setAttributeIfNotExists(t,"aria-labelledby","#"+e.id)}_toggleDropDown(e,i){const n=this._getOuterElement(e);n.classList.contains("dropdown")&&((e=(e,t)=>{e=h.findOne(e,n);e&&e.classList.toggle(t,i)})(".dropdown-toggle",M),e(".dropdown-menu",dn),n.setAttribute("aria-expanded",i))}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(M)}_getInnerElement(e){return e.matches(hn)?e:h.findOne(hn,e)}
1_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(t){return this.each(function(){var e=pn.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(document,"click.bs.tab",mt,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||pn.getOrCreateInstance(this).show()}),m.on(window,"load.bs.tab",()=>{for(const e of h.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))pn.getOrCreateInstance(e)}),e(pn);const fn="show",mn="showing",gn={animation:"boolean",autohide:"boolean",delay:"number"},yn={animation:!0,autohide:!0,delay:5e3};class vn extends t{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return yn}static get DefaultType(){return gn}static get NAME(){return"toast"}show(){m.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),V(this._element),this._element.classList.add(fn,mn),this._queueCallback(()=>{this._element.classList.remove(mn),m.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&!m.trigger(this._element,"hide.bs.toast").defaultPrevented&&(this._element.classList.add(mn),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(mn,fn),m.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(fn),super.dispose()}isShown(){return this._element.classList.contains(fn)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}t?this._clearTimeout():(e=e.relatedTarget,this._element===e||this._element.contains(e)||this._maybeScheduleHide())}_setListeners(){m.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),m.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),m.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),m.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){var e=vn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return pe(vn),e(vn),{Alert:fe,Button:ge,Carousel:Le,Collapse:Re,Dropdown:C,Modal:Ai,Offcanvas:N,Popover:tn,ScrollSpy:ln,Tab:pn,Toast:vn,Tooltip:Ji}}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(u){"use strict";var n,s=window.Slick||{};n=0,(s=function(e,t){var i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:u(e),appendDots:u(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return u('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 9,821 bytes, line 1
1sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},u.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.focussed=!1,i.interrupted=!1,i.hidden="hidden",i.paused=!0,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=u(e),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,e=u(e).data("slick")||{},i.options=u.extend({},i.defaults,t,e),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,void 0!==document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=u.proxy(i.autoPlay,i),i.autoPlayClear=u.proxy(i.autoPlayClear,i),i.autoPlayIterator=u.proxy(i.autoPlayIterator,i),i.changeSlide=u.proxy(i.changeSlide,i),i.clickHandler=u.proxy(i.clickHandler,i),i.selectHandler=u.proxy(i.selectHandler,i),i.setPosition=u.proxy(i.setPosition,i),i.swipeHandler=u.proxy(i.swipeHandler,i),i.dragHandler=u.proxy(i.dragHandler,i),i.keyHandler=u.proxy(i.keyHandler,i),i.instanceUid=n++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},s.prototype.addSlide=s.prototype.slickAdd=function(e,t,i){var n=this;if("boolean"==typeof t)i=t,t=null;else if(t<0||t>=n.slideCount)return!1;n.unload(),"number"==typeof t?0===t&&0===n.$slides.length?u(e).appendTo(n.$slideTrack):i?u(e).insertBefore(n.$slides.eq(t)):u(e).insertAfter(n.$slides.eq(t)):!0===i?u(e).prependTo(n.$slideTrack):u(e).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(e,t){u(t).attr("data-slick-index",e)}),n.$slidesCache=n.$slides,n.reinit()},s.prototype.animateHeight=function(){var e;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(e=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.animate({height:e},this.options.speed))},s.prototype.animateSlide=function(e,t){var i={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(e=-e),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:e},n.options.speed,n.options.easing,t):n.$slideTrack.animate({top:e},n.options.speed,n.options.easing,t):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),u({animStart:n.currentLeft}).animate({animStart:e},{duration:n.options.speed,easing:n.options.easing,step:function(e){e=Math.ceil(e),!1===n.options.vertical?i[n.animType]="translate("+e+"px, 0px)":i[n.animType]="translate(0px,"+e+"px)",n.$slideTrack.css(i)},complete:function(){t&&t.call()}})):(n.applyTransition(),e=Math.ceil(e),!1===n.options.vertical?i[n.animType]="translate3d("+e+"px, 0px, 0px)":i[n.animType]="translate3d(0px,"+e+"px, 0px)",n.$slideTrack.css(i),t&&setTimeout(function(){n.disableTransition(),t.call()},n.options.speed))},s.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e=e&&null!==e?u(e).not(this.$slider):e},s.prototype.asNavFor=function(t){var e=this.getNavTarget();null!==e&&"object"==typeof e&&e.each(function(){var e=u(this).slick("getSlick");e.unslicked||e.slideHandler(t,!0)})},s.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,(!1===t.options.fade?t.$slideTrack:t.$slides.eq(e)).css(i)},s.prototype.autoPlay=function(){this.autoPlayClear(),this.slideCount>this.options.slidesToShow&&(this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed))},s.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},s.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0)&&(e.direction=1)),e.slideHandler(t))},s.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=u(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=u(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},s.prototype.buildDots=function(){var e,t,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),t=u("<ul />").addClass(i.options.dotsClass),e=0;e<=i.getDotCount();e+=1)t.append(u("<li />").append(i.options.customPaging.call(this,i,e)));i.$dots=t.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},s.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){u(t).attr("data-slick-index",e).data("originalStyling",u(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?u('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),u("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},s.prototype.buildRows=function(){var e,t,i,n=this,r=document.createDocumentFragment(),s=n.$slider.children();if(0<n.options.rows){for(i=n.options.slidesPerRow*n.options.rows,t=Math.ceil(s.length/i),e=0;e<t;e++){for(var o=document.createElement("div"),a=0;a<n.options.rows;a++){for(var l=document.createElement("div"),u=0;u<n.options.slidesPerRow;u++){var c=e*i+(a*n.options.slidesPerRow+u);s.get(c)&&l.appendChild(s.get(c))}o.appendChild(l)}r.appendChild(o)}n.$slider.empty().append(r),n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}},s.prototype.checkResponsive=function(e,t){var i,n,r,s=this,o=!1,a=s.$slider.width(),l=window.innerWidth||u(window).width();if("window"===s.respondTo?r=l:"slider"===s.respondTo?r=a:"min"===s.respondTo&&(r=Math.min(l,a)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(i in n=null,s.breakpoints)s.breakpoints.hasOwnProperty(i)&&(!1===s.originalSettings.mobileFirst?r<s.breakpoints[i]&&(n=s.breakpoints[i]):r>s.breakpoints[i]&&(n=s.breakpoints[i]));null!==n?null!==s.activeBreakpoint&&n===s.activeBreakpoint&&!t||(s.activeBreakpoint=n,"unslick"===s.breakpointSettings[n]?s.unslick(n):(s.options=u.extend({},s.originalSettings,s.breakpointSettings[n]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),o=n):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e),o=n),e||!1===o||s.$slider.trigger("breakpoint",[s,o])}},s.prototype.changeSlide=function(e,t){var i,n=this,r=u(e.currentTarget);switch(r.is("a")&&e.preventDefault(),r.is("li")||(r=r.closest("li")),i=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,e.data.message){case"previous":s=0==i?n.options.slidesToScroll:n.options.slidesToShow-i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-s,!1,t);break;case"next":s=0==i?n.options.slidesToScroll:i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+s,!1,t);break;case"index":var s=0===e.data.index?0:e.data.index||r.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(s),!1,t),r.children().trigger("focus");break;default:return}},s.prototype.checkNavigable=function(e){var t=this.getNavigableIndexes(),i=0;if(e>t[t.length-1])e=t[t.length-1];else for(var n in t){if(e<t[n]){e=i;break}i=t[n]}return e},s.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(u("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",u.proxy(e.interrupt,e,!0)).off("mouseleave.slick",u.proxy(e.interrupt,e,!1)),!0===e.options.accessibility)&&e.$dots.off("keydown.slick",e.keyHandler),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility)&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow)&&e.$nextArrow.off("keydown.slick",e.keyHandler),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
1slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),u(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&u(e.$slideTrack).children().off("click.slick",e.selectHandler),u(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),u(window).off("resize.slick.slick-"+e.instanceUid,e.resize),u("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),u(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},s.prototype.cleanUpSlideEvents=function(){this.$list.off("mouseenter.slick",u.proxy(this.interrupt,this,!0)),this.$list.off("mouseleave.slick",u.proxy(this.interrupt,this,!1))},s.prototype.cleanUpRows=function(){var e;0<this.options.rows&&((e=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(e))},s.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},s.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),u(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow))&&t.$prevArrow.remove(),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow))&&t.$nextArrow.remove(),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){u(this).attr("style",u(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},s.prototype.disableTransition=function(e){var t={};t[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(e)).css(t)},s.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(e),t.call()},i.options.speed))},s.prototype.fadeSlideOut=function(e){!1===this.cssTransitions?this.$slides.eq(e).animate({opacity:0,zIndex:this.options.zIndex-2},this.options.speed,this.options.easing):(this.applyTransition(e),this.$slides.eq(e).css({opacity:0,zIndex:this.options.zIndex-2}))},s.prototype.filterSlides=s.prototype.slickFilter=function(e){null!==e&&(this.$slidesCache=this.$slides,this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.filter(e).appendTo(this.$slideTrack),this.reinit())},s.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(e){e.stopImmediatePropagation();var t=u(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=t.is(":focus"),i.autoPlay())},0)})},s.prototype.getCurrent=s.prototype.slickCurrentSlide=function(){return this.currentSlide},s.prototype.getDotCount=function(){var e=this,t=0,i=0,n=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++n;else for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)n=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else n=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return n-1},s.prototype.getLeft=function(e){var t,i,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,i=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?i=-1.5:1===n.options.slidesToShow&&(i=-2)),r=t*n.options.slidesToShow*i),n.slideCount%n.options.slidesToScroll!=0&&e+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(r=e>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(e-n.slideCount))*n.slideWidth*-1,(n.options.slidesToShow-(e-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,n.slideCount%n.options.slidesToScroll*t*-1))):e+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(e+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(e+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(r=n.slideOffset=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),i=!1===n.options.vertical?e*n.slideWidth*-1+n.slideOffset:e*t*-1+r,!0===n.options.variableWidth&&(t=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(e):n.$slideTrack.children(".slick-slide").eq(e+n.options.slidesToShow),i=!0===n.options.rtl?t[0]?-1*(n.$slideTrack.width()-t[0].offsetLeft-t.width()):0:t[0]?-1*t[0].offsetLeft:0,!0===n.options.centerMode)&&(t=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(e):n.$slideTrack.children(".slick-slide").eq(e+n.options.slidesToShow+1),i=!0===n.options.rtl?t[0]?-1*(n.$slideTrack.width()-t[0].offsetLeft-t.width()):0:t[0]?-1*t[0].offsetLeft:0,i+=(n.$list.width()-t.outerWidth())/2),i},s.prototype.getOption=s.prototype.slickGetOption=function(e){return this.options[e]},s.prototype.getNavigableIndexes=function(){for(var e=this,t=0,i=0,n=[],r=!1===e.options.infinite?e.slideCount:(t=-1*e.options.slidesToScroll,i=-1*e.options.slidesToScroll,2*e.slideCount);t<r;)n.push(t),t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return n},s.prototype.getSlick=function(){return this},s.prototype.getSlideCount=function(){var i,n=this,r=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0;return!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(e,t){if(t.offsetLeft-r+u(t).outerWidth()/2>-1*n.swipeLeft)return i=t,!1}),Math.abs(u(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},s.prototype.goTo=s.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:
1parseInt(e)}},t)},s.prototype.init=function(e){var t=this;u(t.$slider).hasClass("slick-initialized")||(u(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},s.prototype.initADA=function(){var i=this,n=Math.ceil(i.slideCount/i.options.slidesToShow),r=i.getNavigableIndexes().filter(function(e){return 0<=e&&e<i.slideCount});i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==i.$dots&&(i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function(e){var t=r.indexOf(e);u(this).attr({role:"tabpanel",id:"slick-slide"+i.instanceUid+e,tabindex:-1}),-1!==t&&(e="slick-slide-control"+i.instanceUid+t,u("#"+e).length)&&u(this).attr({"aria-describedby":e})}),i.$dots.attr("role","tablist").find("li").each(function(e){var t=r[e];u(this).attr({role:"presentation"}),u(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+i.instanceUid+e,"aria-controls":"slick-slide"+i.instanceUid+t,"aria-label":e+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(i.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var e=i.currentSlide,t=e+i.options.slidesToShow;e<t;e++)i.options.focusOnChange?i.$slides.eq(e).attr({tabindex:"0"}):i.$slides.eq(e).removeAttr("tabindex");i.activateADA()},s.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility)&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler))},s.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(u("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility)&&e.$dots.on("keydown.slick",e.keyHandler),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&u("li",e.$dots).on("mouseenter.slick",u.proxy(e.interrupt,e,!0)).on("mouseleave.slick",u.proxy(e.interrupt,e,!1))},s.prototype.initSlideEvents=function(){this.options.pauseOnHover&&(this.$list.on("mouseenter.slick",u.proxy(this.interrupt,this,!0)),this.$list.on("mouseleave.slick",u.proxy(this.interrupt,this,!1)))},s.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
1,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),u(document).on(e.visibilityChange,u.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&u(e.$slideTrack).children().on("click.slick",e.selectHandler),u(window).on("orientationchange.slick.slick-"+e.instanceUid,u.proxy(e.orientationChange,e)),u(window).on("resize.slick.slick-"+e.instanceUid,u.proxy(e.resize,e)),u("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),u(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),u(e.setPosition)},s.prototype.initUI=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.show(),this.$nextArrow.show()),!0===this.options.dots&&this.slideCount>this.options.slidesToShow&&this.$dots.show()},s.prototype.keyHandler=function(e){e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:!0===this.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:!0===this.options.rtl?"previous":"next"}}))},s.prototype.lazyLoad=function(){var e,t,i,s=this;function n(e){u("img[data-lazy]",e).each(function(){var e=u(this),t=u(this).attr("data-lazy"),i=u(this).attr("data-srcset"),n=u(this).attr("data-sizes")||s.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 17,850 bytes, line 1
1,100,function(){i&&(e.attr("srcset",i),n)&&e.attr("sizes",n),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),s.$slider.trigger("lazyLoaded",[s,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,e,t])},r.src=t})}if(!0===s.options.centerMode?i=!0===s.options.infinite?(t=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(t=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),s.options.slidesToShow/2+1+2+s.currentSlide):(t=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,i=Math.ceil(t+s.options.slidesToShow),!0===s.options.fade&&(0<t&&t--,i<=s.slideCount)&&i++),e=s.$slider.find(".slick-slide").slice(t,i),"anticipated"===s.options.lazyLoad)for(var r=t-1,o=i,a=s.$slider.find(".slick-slide"),l=0;l<s.options.slidesToScroll;l++)r<0&&(r=s.slideCount-1),e=(e=e.add(a.eq(r))).add(a.eq(o)),r--,o++;n(e),s.slideCount<=s.options.slidesToShow?n(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?n(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&n(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},s.prototype.loadSlider=function(){this.setPosition(),this.$slideTrack.css({opacity:1}),this.$slider.removeClass("slick-loading"),this.initUI(),"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()},s.prototype.next=s.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},s.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},s.prototype.pause=s.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},s.prototype.play=s.prototype.slickPlay=function(){this.autoPlay(),this.options.autoplay=!0,this.paused=!1,this.focussed=!1,this.interrupted=!1},s.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange)&&u(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus())},s.prototype.prev=s.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},s.prototype.preventDefault=function(e){e.preventDefault()},s.prototype.progressiveLazyLoad=function(e){e=e||1;var t,i,n,r,s=this,o=u("img[data-lazy]",s.$slider);o.length?(t=o.first(),i=t.attr("data-lazy"),n=t.attr("data-srcset"),r=t.attr("data-sizes")||s.$slider.attr("data-sizes"),(o=document.createElement("img")).onload=function(){n&&(t.attr("srcset",n),r)&&t.attr("sizes",r),t.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===s.options.adaptiveHeight&&s.setPosition(),s.$slider.trigger("lazyLoaded",[s,t,i]),s.progressiveLazyLoad()},o.onerror=function(){e<3?setTimeout(function(){s.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,t,i]),s.progressiveLazyLoad())},o.src=i):s.$slider.trigger("allImagesLoaded",[s])},s.prototype.refresh=function(e){var t=this,i=t.slideCount-t.options.slidesToShow;!t.options.infinite&&t.currentSlide>i&&(t.currentSlide=i),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),i=t.currentSlide,t.destroy(!0),u.extend(t,t.initials,{currentSlide:i}),t.init(),e||t.changeSlide({data:{message:"index",index:i}},!1)},s.prototype.registerBreakpoints=function(){var e,t,i,n=this,r=n.options.responsive||null;if("array"===u.type(r)&&r.length){for(e in n.respondTo=n.options.respondTo||"window",r)if(i=n.breakpoints.length-1,r.hasOwnProperty(e)){for(t=r[e].breakpoint;0<=i;)n.breakpoints[i]&&n.breakpoints[i]===t&&n.breakpoints.splice(i,1),i--;n.breakpoints.push(t),n.breakpointSettings[t]=r[e].settings}n.breakpoints.sort(function(e,t){return n.options.mobileFirst?e-t:t-e})}},s.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&u(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},s.prototype.resize=function(){var e=this;u(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=u(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},s.prototype.removeSlide=s.prototype.slickRemove=function(e,t,i){var n=this;if(e="boolean"==typeof e?!0===(t=e)?0:n.slideCount-1:!0===t?--e:e,n.slideCount<1||e<0||e>n.slideCount-1)return!1;n.unload(),(!0===i?n.$slideTrack.children():n.$slideTrack.children(this.options.slide).eq(e)).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},s.prototype.setCSS=function(e){var t,i,n=this,r={};!0===n.options.rtl&&(e=-e),t="left"==n.positionProp?Math.ceil(e)+"px":"0px",i="top"==n.positionProp?Math.ceil(e)+"px":"0px",r[n.positionProp]=e,!1!==n.transformsEnabled&&(!(r={})===n.cssTransitions?r[n.animType]="translate("+t+", "+i+")":r[n.animType]="translate3d("+t+", "+i+", 0px)"),n.$slideTrack.css(r)},s.prototype.setDimensions=function(){var e=this,t=(!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length))),e.$slides.first().outerWidth(!0)-e.$slides.first().width());!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},s.prototype.setFade=function(){var i,n=this;n.$slides.each(function(e,t){i=n.slideWidth*e*-1,!0===n.options.rtl?u(t).css({position:"relative",right:i,top:0,zIndex:n.options.zIndex-2,opacity:0}):u(t).css({position:"relative",left:i,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},s.prototype.setHeight=function(){var e;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(e=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.css("height",e))},s.prototype.setOption=s.prototype.slickSetOption=function(){var e,t,i,n,r,s=this,o=!1;if("object"===u.type(arguments[0])?(i=arguments[0],o=arguments[1],r="multiple"):"string"===u.type(arguments[0])&&(i=arguments[0],n=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===u.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)s.options[i]=n;else if("multiple"===r)u.each(i,function(e,t){s.options[e]=t});else if("responsive"===r)for(t in n)if("array"!==u.type(s.options.responsive))s.options.responsive=[n[t]];else{for(e=s.options.responsive.length-1;0<=e;)s.options.responsive[e].breakpoint===n[t].breakpoint&&s.options.responsive.splice(e,1),e--;s.options.responsive.push(n[t])}o&&(s.unload(),s.reinit())},s.prototype.setPosition=function(){this.setDimensions(),this.setHeight(),!1===this.options.fade?this.setCSS(this.getLeft(this.currentSlide)):this.setFade(),this.$slider.trigger("setPosition",[this])},s.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty)&&void 0===t.webkitPerspective&&(e.animType=!1),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty)&&void 0===t.MozPerspective&&(e.animType=!1),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty)&&void 0===t.webkitPerspective&&(e.animType=!1),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform)&&(e.animType=!1),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},s.prototype.setSlideClasses=function(e){var t,i,n,r=this,s=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");r.$slides.eq(e).addClass("slick-current"),!0===r.options.centerMode?(i=r.options.slidesToShow%2==0?1:0,n=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&((n<=e&&e<=r.slideCount-1-n?r.$slides.slice(e-n+i,e+n+1):(t=r.options.slidesToShow+e,s.slice(t-n+1+i,t+n+2))).addClass("slick-active").attr("aria-hidden","false"),0===e?s.eq(s.length-1-r.options.slidesToShow).addClass("slick-center"):e===r.slideCount-1&&s.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(e).addClass("slick-center")):(0<=e&&e<=r.slideCount-r.options.slidesToShow?r.$slides.slice(e,e+r.options.slidesToShow):s.length<=r.options.slidesToShow?s:(i=r.slideCount%r.options.slidesToShow,t=!0===r.options.infinite?r.options.slidesToShow+e:e,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-e<r.options.slidesToShow?s.slice(t-(r.options.slidesToShow-i),t+i):s.slice(t,t+r.options.slidesToShow))).addClass("slick-active").attr("aria-hidden","false"),"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},s.prototype.setupInfinite=function(){var e,t,i,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(t=null,n.slideCount>n.options.slidesToShow)){for(i=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,e=n.slideCount;e>n.slideCount-i;--e)u(n.$slides[t=e-1]).clone(!0).attr("id","").attr("data-slick-index",t-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(e=0;e<i+n.slideCount;e+=1)t=e,u(n.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){u(this).attr("id","")})}},s.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},s.prototype.selectHandler=function(e){e=u(e.target).is(".slick-slide")?u(e.target):u(e.target).parents(".slick-slide"),e=(e=parseInt(e.attr("data-slick-index")))||0;this.slideCount<=this.options.slidesToShow?this.slideHandler(e,!1,!0):this.slideHandler(e)},s.prototype.slideHandler=function(e,t,i){var n,r,s,o=this;t=t||!1,!0===o.animating&&!0===o.options.waitForAnimate||!0===o.options.fade&&o.currentSlide===e||(!1===t&&o.asNavFor(e),n=e,t=o.getLeft(n),s=o.getLeft(o.currentSlide),o.currentLeft=null===o.swipeLeft?s:o.swipeLeft,!1===o.options.infinite&&!1===o.options.centerMode&&(e<0||e>o.getDotCount()*o.options.slidesToScroll)||!1===o.options.infinite&&!0===o.options.centerMode&&(e<0||e>o.slideCount-o.options.slidesToScroll)?!1===o.options.fade&&(n=o.currentSlide,!0!==i&&o.slideCount>o.options.slidesToShow?o.animateSlide(s,function(){o.postSlide(n)}):o.postSlide(n)):(o.options.autoplay&&clearInterval(o.autoPlayTimer),r=n<0?o.slideCount%o.options.slidesToScroll!=0?o.slideCount-o.slideCount%o.options.slidesToScroll:o.slideCount+n:n>=o.slideCount?o.slideCount%o.options.slidesToScroll!=0?0:n-o.slideCount:n,o.animating=!0,o.$slider.trigger("beforeChange",[o,o.currentSlide,r]),e=o.currentSlide,o.currentSlide=r,o.setSlideClasses(o.currentSlide),o.options.asNavFor&&(s=(s=o.getNavTarget()).slick("getSlick")).slideCount<=s.options.slidesToShow&&s.setSlideClasses(o.currentSlide),o.updateDots(),o.updateArrows(),!0===o.options.fade?(!0!==i?(o.fadeSlideOut(e),o.fadeSlide(r,function(){o.postSlide(r)})):o.postSlide(r),o.animateHeight()):!0!==i&&o.slideCount>o.options.slidesToShow?o.animateSlide(t,function(){o.postSlide(r)}):o.postSlide(r)))},s.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},s.prototype.swipeDirection=function(){var e=this.touchObject.startX-this.touchObject.curX,t=this.touchObject.startY-this.touchObject.curY,t=Math.atan2(t,e),e=Math.round(180*t/Math.PI);return(e=e<0?360-Math.abs(e):e)<=45&&0<=e||e<=360&&315<=e?!1===this.options.rtl?"left":"right":135<=e&&e<=225?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?35<=e&&e<=135?"down":"up":"vertical"},s.prototype.swipeEnd=function(e){var t,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1;if(n.interrupted=!1,n.shouldClick=!(10<n.touchObject.swipeLength),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},s.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},s.prototype.swipeMove=function(e){var t,i,n=this,r=void 0!==e.originalEvent?e.originalEvent.touches:null;return!(!n.dragging||n.scrolling||r&&1!==r.length)&&(t=n.getLeft(n.currentSlide),n.touchObject.curX=void 0!==r?r[0].pageX:e.clientX,n.touchObject.curY=void 0!==r?r[0].pageY:e.clientY,n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curX-n.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(n.touchObject.curY-n.touchObject.startY,2))),!n.options.verticalSwiping&&!n.swiping&&4<r?!(n.scrolling=!0):(!0===n.options.verticalSwiping&&(n.touchObject.swipeLength=r),r=n.swipeDirection(),void 0!==e.originalEvent&&4<n.touchObject.swipeLength&&(n.swiping=!0,e.preventDefault()),e=(!1===n.options.rtl?1:-1)*(n.touchObject.curX>n.touchObject.startX?1:-1),!0===n.options.verticalSwiping&&(e=n.touchObject.curY>n.touchObject.startY?1:-1),i=n.touchObject.swipeLength,(n.touchObject.edgeHit=!1)===n.options.infinite&&(0===n.currentSlide&&"right"===r||n.currentSlide>=n.getDotCount()&&"left"===r)&&(i=n.touchObject.swipeLength*n.options.edgeFriction,n.touchObject.edgeHit=!0),!1===n.options.vertical?n.swipeLeft=t+i*e:n.swipeLeft=t+i*(n.$list.height()/n.listWidth)*e,!0===n.options.verticalSwiping&&(n.swipeLeft=t+i*e),!0!==n.options.fade&&!1!==n.options.touchMove&&(!0===n.animating?(n.swipeLeft=null,!1):void n.setCSS(n.swipeLeft))))},s.prototype.swipeStart=function(e){var t,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.dragging=!0},s.prototype.unfilterSlides=s.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())},s.prototype.unload=function(){var e=this;u(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
1,s.prototype.unslick=function(e){this.$slider.trigger("unslick",[this,e]),this.destroy()},s.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2);!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},s.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").end(),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active"))},s.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},u.fn.slick=function(){for(var e,t=arguments[0],i=Array.prototype.slice.call(arguments,1),n=this.length,r=0;r<n;r++)if("object"==typeof t||void 0===t?this[r].slick=new s(this[r],t):e=this[r].slick[t].apply(this[r].slick,i),void 0!==e)return e;return this}}),function(l){var t,i;function e(e,t){var i;this.options=t,this.$element=l(e),this.didInit=!1,(i=this).$element.on("click.slickLightbox",this.options.itemSelector,function(e){var t;if(e.preventDefault(),(t=l(this)).blur(),"function"!=typeof i.options.shouldOpen||i.options.shouldOpen(i,t,e))return e=i.$element.find(i.options.itemSelector),i.elementIsSlick()&&(e=i.filterOutSlickClones(e),t=i.handlePossibleCloneClick(t,e)),i.init(e.index(t))})}e.prototype.init=function(e){return this.didInit=!0,this.detectIE(),this.createModal(),this.bindEvents(),this.initSlick(e),this.open()},e.prototype.createModalItems=function(){var i,n,t,r=this.options.lazyPlaceholder||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",s=function(e,t,i){i=!0===i?' data-lazy="'+e+'" src="'+r+'" ':' src="'+e+'" ';return'<div class="slick-lightbox-slick-item">\n  <div class="slick-lightbox-slick-item-inner">\n    <img class="slick-lightbox-slick-img" '+i+" />\n    "+t+"\n  </div>\n</div>"},e=this.options.images?l.map(this.options.images,(t=this,function(e){return s(e,t.options.lazy)})):(e=this.filterOutSlickClones(this.$element.find(this.options.itemSelector)),i=e.length,n=this,l.map(e,function(e,t){t=n.getElementCaption(e,{index:t,length:i}),e=n.getElementSrc(e);return s(e,t,n.options.lazy)}));return e},e.prototype.createModal=function(){var e=this.createModalItems(),e='<div class="slick-lightbox slick-lightbox-hide-init'+(this.isIE?" slick-lightbox-ie":"")+'" style="background: '+this.options.background+';">\n  <div class="slick-lightbox-inner">\n    <div class="slick-lightbox-slick slick-caption-'+this.options.captionPosition+'">'+e.join("")+"</div>\n  <div>\n<div>";return this.$modalElement=l(e),this.$parts={},this.$parts.closeButton=l(this.options.layouts.closeButton),this.$modalElement.find(".slick-lightbox-inner").append(this.$parts.closeButton),l("body").append(this.$modalElement)},e.prototype.initSlick=function(e){e={initialSlide:e};return this.options.lazy&&(e.lazyLoad="ondemand"),null!=this.options.slick?"function"==typeof this.options.slick?this.slick=this.options.slick(this.$modalElement):this.slick=this.$modalElement.find(".slick-lightbox-slick").slick(l.extend({},this.options.slick,e)):this.slick=this.$modalElement.find(".slick-lightbox-slick").slick(e),this.$modalElement.trigger("init.slickLightbox")},e.prototype.open=function(){var e;return this.options.useHistoryApi&&this.writeHistory(),this.$element.trigger("show.slickLightbox"),setTimeout(function(){return e.$element.trigger("shown.slickLightbox")},(e=this).getTransitionDuration()),this.$modalElement.removeClass("slick-lightbox-hide-init")},e.prototype.close=function(){var e;return this.$element.trigger("hide.slickLightbox"),setTimeout(function(){return e.$element.trigger("hidden.slickLightbox")},(e=this).getTransitionDuration()),this.$modalElement.addClass("slick-lightbox-hide"),this.destroy()},e.prototype.bindEvents=function(){var e,t,i,n,r,s,o,a;if(t=this,e=function(){var e=t.$modalElement.find(".slick-lightbox-inner").height();return t.$modalElement.find(".slick-lightbox-slick-item").height(e),t.$modalElement.find(".slick-lightbox-slick-img, .slick-lightbox-slick-item-inner").css("max-height",Math.round(t.options.imageMaxHeight*e))},l(window).on("orientationchange.slickLightbox resize.slickLightbox",e),this.options.useHistoryApi&&l(window).on("popstate.slickLightbox",(i=this,function(){return i.close()})),this.$modalElement.on("init.slickLightbox",e),this.$modalElement.on("destroy.slickLightbox",(n=this,function(){return n.destroy()})),this.$element.on("destroy.slickLightbox",(r=this,function(){return r.destroy(!0)})),this.$parts.closeButton.on("click.slickLightbox touchstart.slickLightbox",(s=this,function(e){return e.preventDefault(),s.close()})),(this.options.closeOnEscape||this.options.navigateByKeyboard)&&l(document).on("keydown.slickLightbox",(o=this,function(e){e=e.keyCode||e.which;if(o.options.navigateByKeyboard&&(37===e?o.slideSlick("left"):39===e&&o.slideSlick("right")),o.options.closeOnEscape&&27===e)return o.close()})),this.options.closeOnBackdropClick)return this.$modalElement.on("click.slickLightbox touchstart.slickLightbox",".slick-lightbox-slick-img",function(e){return e.stopPropagation()}),this.$modalElement.on("click.slickLightbox",".slick-lightbox-slick-item",(a=this,function(e){return e.preventDefault(),a.close()}))},e.prototype.slideSlick=function(e){return"left"===e?this.slick.slick("slickPrev"):this.slick.slick("slickNext")},e.prototype.detectIE=function(){if(this.isIE=!1,/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&new Number(RegExp.$1)<9)return this.isIE=!0},e.prototype.getElementCaption=function(e,t){return this.options.caption?'<span class="slick-lightbox-slick-caption">'+function(){switch(typeof this.options.caption){case"function":return this.options.caption(e,t);case"string":return l(e).data(this.options.caption)}}.call(this)+"</span>":""},e.prototype.getElementSrc=function(e){switch(typeof this.options.src){case"function":return this.options.src(e);case"string":return l(e).attr(this.options.src);default:return e.href}},e.prototype.unbindEvents=function(){return l(window).off(".slickLightbox"),l(document).off(".slickLightbox"),this.$modalElement.off(".slickLightbox")},e.prototype.destroy=function(e){var t;if(null==e&&(e=!1),this.didInit&&(this.unbindEvents(),setTimeout(function(){return t.$modalElement.remove()},(t=this).options.destroyTimeout)),e)return this.$element.off(".slickLightbox"),this.$element.off(".slickLightbox",this.options.itemSelector)},e.prototype.destroyPrevious=function(){return l("body").children(".slick-lightbox").trigger("destroy.slickLightbox")},e.prototype.getTransitionDuration=function(){var e;return this.transitionDuration||(e=this.$modalElement.css("transition-duration"),this.transitionDuration=void 0===e?500:-1<e.indexOf("ms")?parseFloat(e):1e3*parseFloat(e))},e.prototype.writeHistory=function(){return"undefined"!=typeof history&&null!==history&&"function"==typeof history.pushState?history.pushState(null,null,""):void 0},e.prototype.filterOutSlickClones=function(e){return this.elementIsSlick()?e.filter(function(){var e=l(this);return!e.hasClass("slick-cloned")&&0===e.parents(".slick-cloned").length}):e},e.prototype.handlePossibleCloneClick=function(e,t){var i;return this.elementIsSlick()&&e.closest(".slick-slide").hasClass("slick-cloned")?(i=e.attr("href"),t.filter(function(){return l(this).attr("href")===i}).first()):e},e.prototype.elementIsSlick=function(){return this.$element.hasClass("slick-slider")},t=e,i={background:"rgba(0,0,0,.8)",closeOnEscape:!0,closeOnBackdropClick:!0,destroyTimeout:500,itemSelector:"a",navigateByKeyboard:!0,src:!1,caption:!1,captionPosition:"dynamic",images:!1,slick:{},useHistoryApi:!1,layouts:{closeButton:'<button type="button" class="slick-lightbox-close"></button>'},shouldOpen:null,imageMaxHeight:.9,lazy:!1},l.fn.slickLightbox=function(e){return e=l.extend({},i,e),l(this).each(function(){return this.slickLightbox=new t(this,e)}),this},l.fn.unslickLightbox=function(){return l(this).trigger("destroy.slickLightbox").each(function(){return this.slickLightbox=null})}}(jQuery),function(e,t){var i,n;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,i=e.Cookies,(n=e.Cookies=t()).noConflict=function(){return e.Cookies=i,n})}(this,function(){"use strict";function o(e){for(var t=1;t<arguments.length;t++){var i,n=arguments[t];for(i in n)e[i]=n[i]}return e}return function t(a,s){function i(e,t,i){if("undefined"!=typeof document){"number"==typeof(i=o({},s,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
1URIComponent).replace(/[()]/g,escape);var n,r="";for(n in i)i[n]&&(r+="; "+n,!0!==i[n])&&(r+="="+i[n].split(";")[0]);return document.cookie=e+"="+a.write(t,e)+r}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],i={},n=0;n<t.length;n++){var r=t[n].split("="),s=r.slice(1).join("=");try{var o=decodeURIComponent(r[0]);if(i[o]=a.read(s,o),e===o)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){i(e,"",o({},t,{expires:-1}))},withAttributes:function(e){return t(this.converter,o({},this.attributes,e))},withConverter:function(e){return t(o({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(s)},converter:{value:Object.freeze(a)}})}({read:function(e){return(e='"'===e[0]?e.slice(1,-1):e).replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}),function(a){function l(e){return e.classList||a(e).attr("class").match(/\S+/gi)}a.fn.ShareLink=function(r){var e={title:"",text:"",image:"",url:window.location.href,class_prefix:"s_"},s=(r=a.extend({},e,r)).class_prefix.length,o={twitter:"https://twitter.com/intent/tweet?url={url}&text={text}",pinterest:"https://www.pinterest.com/pin/create/button/?media={image}&url={url}&description={text}",facebook:"https://www.facebook.com/sharer.php?s=100&p[title]={title}&u={url}&t={title}&p[summary]={text}&p[url]={url}",vk:"https://vkontakte.ru/share.php?url={url}&title={title}&description={text}&image={image}&noparse=true",linkedin:"https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={text}&source={url}",myworld:"https://connect.mail.ru/share?url={url}&title={title}&description={text}&imageurl={image}",odnoklassniki:"http://odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl={url}&st.comments={text}",tumblr:"https://tumblr.com/share?s=&v=3&t={title}&u={url}",blogger:"https://blogger.com/blog-this.g?t={text}&n={title}&u={url}",delicious:"https://delicious.com/save?url={url}&title={title}",plus:"https://plus.google.com/share?url={url}",digg:"https://digg.com/submit?url={url}&title={title}",reddit:"http://reddit.com/submit?url={url}&title={title}",stumbleupon:"https://www.stumbleupon.com/submit?url={url}&title={title}",pocket:"https://getpocket.com/edit?url={url}&title={title}",chiq:"http://www.chiq.com/create/bookmarklet?u={url}&i={image}&d={title}&c={url}",qrifier:"http://qrifier.com/q?inc=qr&type=url&size=350&string={url}",qrsrc:"http://www.qrsrc.com/default.aspx?shareurl={url}",qzone:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={url}",tulinq:"http://www.tulinq.com/enviar?url={url}&title={title}",misterwong:"http://www.mister-wong.com/index.php?action=addurl&bm_url={url}&bm_description={title}&bm_notice=",sto_zakladok:"http://www.100zakladok.ru/save/?bmurl={url}&bmtitle={title}",two_linkme:"http://www.2linkme.com/?collegamento={url}&id=2lbar",adifni:"http://www.adifni.com/account/bookmark/?bookmark_url={url}",amazonwishlist:"http://www.amazon.com/gp/wishlist/static-add?u={url}&t={title}",amenme:"http://www.amenme.com/AmenMe/Amens/AmenToThis.aspx?url={url}&title={title}",aim:"http://lifestream.aol.com/share/?url={url}&title={title}&description={text} ",aolmail:"http://webmail.aol.com/25045/aol/en-us/Mail/compose-message.aspx?to=&subject={title}&body={{content}}",arto:"http://www.arto.com/section/linkshare/?lu={url}&ln={title}",baidu:"http://cang.baidu.com/do/add?it={title}&iu={url}&fr=ien&dc={text}",bitly:"https://bitly.com/a/bitmarklet?u={url}",bizsugar:"http://www.bizsugar.com/bizsugarthis.php?url={url}",blinklist:"http://www.blinklist.com/blink?u={url}&t={title}&d={text}",blip:"http://blip.pl/dashboard?body={title}%3A%20{url}",blogmarks:"http://blogmarks.net/my/new.php?mini=1&simple=1&url={url}&title={title}&content={text}",blurpalicious:"http://www.blurpalicious.com/submit/?url={url}&title={title}&desc={text}",bobrdobr:"http://bobrdobr.ru/addext.html?url={url}&title={title}&desc={text}",bonzobox:"http://bonzobox.com/toolbar/add?u={url}&t={title}&desc={text}",bookmerkende:"http://www.bookmerken.de/?url={url}&title={title}",box:"https://www.box.net/api/1.0/import?import_as=link&url={url}&name={title}&description={text}",bryderi:"http://bryderi.se/add.html?u={url}",buddymarks:"http://buddymarks.com/add_bookmark.php?bookmark_title={title}&bookmark_url={url}&bookmark_desc={text}",camyoo:"http://www.camyoo.com/note.html?url={url}",care2:"http://www.care2.com/news/compose?sharehint=news&share[share_type]news&bookmarklet=Y&share[title]={title}&share[link_url]={url}&share[content]={text}",citeulike:"http://www.citeulike.org/posturl?url={url}&title={title}",classicalplace:"http://www.classicalplace.com/?u={url}&t={title}&c={text}",cosmiq:"http://www.cosmiq.de/lili/my/add?url={url}",diggita:"http://www.diggita.it/submit.php?url={url}&title={title}",diigo:"http://www.diigo.com/post?url={url}&title={title}&desc={text}",domelhor:"http://domelhor.net/submit.php?url={url}&title={title}",dotnetshoutout:"http://dotnetshoutout.com/Submit?url={url}&title={title}
1",douban:"http://www.douban.com/recommend/?url={url}&title={title}",dropjack:"http://www.dropjack.com/submit.php?url={url}",edelight:"http://www.edelight.de/geschenk/neu?purl={url}",ekudos:"http://www.ekudos.nl/artikel/nieuw?url={url}&title={title}&desc={text}",elefantapl:"http://elefanta.pl/member/bookmarkNewPage.action?url={url}&title={title}&bookmarkVO.notes=",embarkons:"http://www.embarkons.com/sharer.php?u={url}&t={title}",evernote:"http://www.evernote.com/clip.action?url={url}&title={title}",extraplay:"http://www.extraplay.com/members/share.php?url={url}&title={title}&desc={text}",ezyspot:"http://www.ezyspot.com/submit?url={url}&title={title}",fabulously40:"http://fabulously40.com/writeblog?subject={title}&body={url}",informazione:"http://fai.informazione.it/submit.aspx?url={url}&title={title}&desc={text}",fark:"http://www.fark.com/cgi/farkit.pl?u={url}&h={title}",farkinda:"http://www.farkinda.com/submit?url={url}",favable:"http://www.favable.com/oexchange?url={url}&title={title}&desc={text}",favlogde:"http://www.favlog.de/submit.php?url={url}",flaker:"http://flaker.pl/add2flaker.php?title={title}&url={url}",folkd:"http://www.folkd.com/submit/{url}",fresqui:"http://fresqui.com/enviar?url={url}",friendfeed:"http://friendfeed.com/share?url={url}&title={title}",funp:"http://funp.com/push/submit/?url={url}",fwisp:"http://fwisp.com/submit.php?url={url}",givealink:"http://givealink.org/bookmark/add?url={url}&title={title}",gmail:"http://mail.google.com/mail/?view=cm&fs=1&to=&su={title}&body={text}&ui=1",goodnoows:"http://goodnoows.com/add/?url={url}",google:"http://www.google.com/bookmarks/mark?op=add&bkmk={url}&title={title}&annotation={text}",googletranslate:"http://translate.google.com/translate?hl=en&u={url}&tl=en&sl=auto",greaterdebater:"http://greaterdebater.com/submit/?url={url}&title={title}",hackernews:"http://news.ycombinator.com/submitlink?u={url}&t={title}",hatena:"http://b.hatena.ne.jp/bookmarklet?url={url}&btitle={title}",hedgehogs:"http://www.hedgehogs.net/mod/bookmarks/add.php?address={url}&title={title}",hotmail:"http://www.hotmail.msn.com/secure/start?action=compose&to=&subject={title}&body={{content}}",w3validator:"http://validator.w3.org/check?uri={url}&charset=%28detect+automatically%29&doctype=Inline&group=0",ihavegot:"http://www.ihavegot.com/share/?url={url}&title={title}&desc={text}",instapaper:"http://www.instapaper.com/edit?url={url}&title={title}&summary={text}",isociety:"http://isociety.be/share/?url={url}&title={title}&desc={text}",iwiw:"http://iwiw.hu/pages/share/share.jsp?v=1&u={url}&t={title}",jamespot:"http://www.jamespot.com/?action=spotit&u={url}&t={title}",jumptags:"http://www.jumptags.com/add/?url={url}&title={title}",kaboodle:"http://www.kaboodle.com/grab/addItemWithUrl?url={url}&pidOrRid=pid=&redirectToKPage=true",kaevur:"http://kaevur.com/submit.php?url={url}",kledy:"http://www.kledy.de/submit.php?url={url}&title={title}",librerio:"http://www.librerio.com/inbox?u={url}&t={title}",linkuj:"http://linkuj.cz?id=linkuj&url={url}&title={title}&description={text}&imgsrc=",livejournal:"http://www.livejournal.com/update.bml?subject={title}&event={url}",logger24:"http://logger24.com/?url={url}",mashbord:"http://mashbord.com/plugin-add-bookmark?url={url}",meinvz:"http://www.meinvz.net/Suggest/Selection/?u={url}&desc={title}&prov=addthis.com",mekusharim:"http://mekusharim.walla.co.il/share/share.aspx?url={url}&title={title}",memori:"http://memori.ru/link/?sm=1&u_data[url]={url}",meneame:"http://www.meneame.net/submit.php?url={url}",mixi:"http://mixi.jp/share.pl?u={url}",moemesto:"http://moemesto.ru/post.php?url={url}&title={title}",myspace:"http://www.myspace.com/Modules/PostTo/Pages/?u={url}&t={title}&c=",n4g:"http://www.n4g.com/tips.aspx?url={url}&title={title}",netlog:"http://www.netlog.com/go/manage/links/?view=save&origin=external&url={url}&title={title}&description={text}",netvouz:"http://netvouz.com/action/submitBookmark?url={url}&title={title}&popup=no&description={text}",newstrust:"http://newstrust.net/submit?url={url}&title={title}&ref=addthis",newsvine:"http://www.newsvine.com/_tools/seed&save?u={url}&h={title}&s={text}",nujij:"http://nujij.nl/jij.lynkx?u={url}&t={title}&b={text}",oknotizie:"http://oknotizie.virgilio.it/post?title={title}&url={url}",oyyla:"http://www.oyyla.com/gonder?phase=2&url={url}",pdfonline:"http://savepageaspdf.pdfonline.com/pdfonline/pdfonline.asp?cURL={url}",pdfmyurl:"http://pdfmyurl.com?url={url}",phonefavs:"http://phonefavs.com/bookmarks?action=add&address={url}&title={title}",plaxo:"http://www.plaxo.com/events?share_link={url}&desc={text}",plurk:"http://www.plurk.com/m?content={url}+({title})&qualifier=shares ",posteezy:"http://posteezy.com/node/add/story?title={title}&body={url}",pusha:"http://www.pusha.se/posta?url={url}&title={title}&description={text}",rediff:"http://share.rediff.com/bookmark/addbookmark?title={title}&bookmarkurl={url}",redkum:"http://www.redkum.com/add?url={url}&step=1&title={title}",scoopat:"http://scoop.at/submit?url={url}&title={title}&body={text}",sekoman:"http://sekoman.lv/home?status={title}&url={url}",shaveh:"http://shaveh.co.il/submit.php?url={url}&title={title}",shetoldme:"http://shetoldme.com/publish?url={url}&title={title}&body={text}",sinaweibo:"http://v.t.sina.com.cn/share/share.php?url={url}&title={title}
1",sodahead:"http://www.sodahead.com/news/submit/?url={url}&title={title}",sonico:"http://www.sonico.com/share.php?url={url}&title={title}",springpad:"http://springpadit.com/s?type=lifemanagr.Bookmark&url={url}&name={title}",startaid:"http://www.startaid.com/index.php?st=AddBrowserLink&type=Detail&v=3&urlname={url}&urltitle={title}&urldesc={text}",startlap:"http://www.startlap.hu/sajat_linkek/addlink.php?url={url}&title={title}",studivz:"http://www.studivz.net/Suggest/Selection/?u={url}&desc={title}&prov=addthis.com",stuffpit:"http://www.stuffpit.com/add.php?produrl={url}",stumpedia:"http://www.stumpedia.com/submit?url={url}",svejo:"http://svejo.net/story/submit_by_url?url={url}&title={title}&summary={text}",symbaloo:"http://www.symbaloo.com/en/add/?url={url}&title={title}",thewebblend:"http://thewebblend.com/submit?url={url}&title={title}",thinkfinity:"http://www.thinkfinity.org/favorite-bookmarklet.jspa?url={url}&subject={title}",thisnext:"http://www.thisnext.com/pick/new/submit/url/?description={text}&name={title}&url={url}",tuenti:"http://www.tuenti.com/share?url={url}",typepad:"http://www.typepad.com/services/quickpost/post?v=2&qp_show=ac&qp_title={title}&qp_href={url}&qp_text={text}",viadeo:"http://www.viadeo.com/shareit/share/?url={url}&title={title}&urlaffiliate=32005&encoding=UTF-8",virb:"http://virb.com/share?external&v=2&url={url}&title={title}",visitezmonsite:"http://www.visitezmonsite.com/publier?url={url}&title={title}&body={text}",vybralisme:"http://vybrali.sme.sk/sub.php?url={url}",webnews:"http://www.webnews.de/einstellen?url={url}&title={title}",wirefan:"http://www.wirefan.com/grpost.php?d=&u={url}&h={title}&d={text}",wordpress:"http://wordpress.com/wp-admin/press-this.php?u={url}&t={title}&s={text}&v=2",wowbored:"http://www.wowbored.com/submit.php?url={url}",wykop:"http://www.wykop.pl/dodaj?url={url}&title={title}&desc={text}",yahoobkm:"http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&u={url}&t={title}&d={text}",yahoomail:"http://compose.mail.yahoo.com/?To=&Subject={title}&body={{content}}",yammer:"https://www.yammer.com/home/bookmarklet?bookmarklet_pop=1&u={url}&t={title}",yardbarker:"http://www.yardbarker.com/author/new/?pUrl={url}&pHead={title}",yigg:"http://www.yigg.de/neu?exturl={url}&exttitle={title}&extdesc={text}",yoolink:"http://go.yoolink.to/addorshare?url_value={url}&title={title}",yorumcuyum:"http://www.yorumcuyum.com/?baslik={title}&link={url}",youmob:"http://youmob.com/mobit.aspx?title={title}&mob={url}",zakladoknet:"http://zakladok.net/link/?u={url}&t={title}",ziczac:"http://ziczac.it/a/segnala/?gurl={url}&gtit={title}",whatsapp:"whatsapp://send?text={url} {title}"};return this.each(function(e,t){for(var i=l(t),e=0;e<i.length;e++){var n=i[e];n.substr(0,s)==r.class_prefix&&o[n.substr(s)]&&(n=n.substr(s),n=n=(n=(n=(n=(n=o[n]).replace(/{url}/g,encodeURIComponent(r.url))).replace(/{title}/g,encodeURIComponent(r.title))).replace(/{text}/g,encodeURIComponent(r.text))).replace(/{image}/g,encodeURIComponent(r.image)),a(t).attr("href",n).click(function(){var e,t,i,n;return-1===a(this).attr("href").indexOf("http://")&&-1===a(this).attr("href").indexOf("https://")?window.open(a(this).attr("href"))&&!1:(e=screen.width,n=screen.height,n="toolbar=0,status=0,width="+(t=r.width||e-.2*e)+",height="+(i=r.height||n-.2*n)+",top="+(n/2-i/2)+",left="+(e/2-t/2),window.open(a(this).attr("href"),"",n)&&!1)}))}})},a.fn.ShareCounter=function(r){var e={url:window.location.href,class_prefix:"c_",display_counter_from:0,increment:!1},s=(r=a.extend({},e,r)).class_prefix.length,o={vk:function(e,t){void 0===window.VK&&(VK={CallbackList:[],Share:{count:function(e,t){VK.CallbackList[e](t)}}});var n=VK.CallbackList.length;VK.CallbackList.push(t),a.ajax({type:"GET",dataType:"jsonp",url:"https://vk.com/share.php",data:{act:"count",index:n,url:e}}).fail(function(e,t){if("parsererror"!=t)for(i in VK.CallbackList)VK.CallbackList[i](0)})},myworld:function(t,i){a.ajax({type:"GET",dataType:"jsonp",url:"https://connect.mail.ru/share_count",jsonp:"func",data:{url_list:t,callback:"1"}}).done(function(e){i(e[t].shares)}).fail(function(e){i(0)})},linkedin:function(e,t){a.ajax({type:"GET",dataType:"jsonp",url:"https://www.linkedin.com/countserv/count/share",data:{url:e,format:"jsonp"}}).done(function(e){t(e.count)}).fail(function(){t(0)})},odnoklassniki:function(e,t){void 0===window.ODKL&&(ODKL={CallbackList:[],updateCount:function(e,t){ODKL.CallbackList[parseInt(e)](t)}});var n=ODKL.CallbackList.length;ODKL.CallbackList.push(t),a.ajax({type:"GET",dataType:"jsonp",url:"https://ok.ru/dk",data:{"st.cmd":"extLike",ref:e,uid:n}}).fail(function(e,t){if("parsererror"!=t)for(i in ODKL.CallbackList)ODKL.CallbackList[i](0)})},pinterest:function(e,t){a.ajax({type:"GET",dataType:"jsonp",url:"https://api.pinterest.com/v1/urls/count.json",data:{url:e}}).done(function(e){t(e.count)}).fail(function(){t(0)})},plus:function(e,t){a.ajax({type:"POST",url:"https://clients6.google.com/rpc",processData:!0,contentType:"application/json",data:JSON.stringify({method:"pos.plusones.get",id:location.href,params:{nolog:!0,id:e,source:"widget",userId:"@viewer",groupId:"@self"},jsonrpc:"2.0",key:"p",apiVersion:"v1"})}).done(function(e){t(e.result.metadata.globalCounts.count)}
1).fail(function(){t(0)})},facebook:function(e,t){a.ajax({type:"GET",dataType:"jsonp",url:"https://graph.facebook.com",data:{id:e}}).done(function(e){null!=e.share&&null!=e.share.share_count&&t(e.share.share_count)}).fail(function(){t(0)})}};return this.each(function(e,i){for(var t=l(i),e=0;e<t.length;e++){var n=t[e];n.substr(0,s)==r.class_prefix&&o[n.substr(s)]&&o[n.substr(s)](r.url,function(e){var t;(e=parseInt(e))>=r.display_counter_from&&(t=parseInt(a(i).text()),r.increment&&!isNaN(t)&&(e+=t),a(i).text(e))})}})}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).videojs=t()}(this,function(){"use strict";for(var M,R={},U=function(e,t){return R[e]=R[e]||[],t&&(R[e]=R[e].concat(t)),R[e]},j=function(e,t){t=U(e).indexOf(t);return!(t<=-1||(R[e]=R[e].slice(),R[e].splice(t,1),0))},B={prefixed:!0},F=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],H=F[0],V=0;V<F.length;V++)if(F[V][1]in document){M=F[V];break}if(M){for(var W=0;W<M.length;W++)B[H[W]]=M[W];B.prefixed=M[0]!==H[0]}var $=[];var d=function t(i){function n(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];r("log",a,t)}var r,s,o,a="info";return s=i,r=function(e,t,i){var n,t=o.levels[t],r=new RegExp("^("+t+")$");"log"!==e&&i.unshift(e.toUpperCase()+":"),i.unshift(s+":"),$&&($.push([].concat(i)),n=$.length-1e3,$.splice(0,0<n?n:0)),window.console&&(n=(n=window.console[e])||"debug"!==e?n:window.console.info||window.console.log)&&t&&r.test(e)&&n[Array.isArray(i)?"apply":"call"](window.console,i)},(o=n).createLogger=function(e){return t(i+": "+e)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:a},n.level=function(e){if("string"==typeof e){if(!n.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');a=e}return a},(n.history=function(){return $?[].concat($):[]}).filter=function(t){return($||[]).filter(function(e){return new RegExp(".*"+t+".*").test(e[0])})},n.history.clear=function(){$&&($.length=0)},n.history.disable=function(){null!==$&&($.length=0,$=null)},n.history.enable=function(){null===$&&($=[])},n.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("error",a,t)},n.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("warn",a,t)},n.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("debug",a,t)},n}("VIDEOJS"),z=d.createLogger,e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function G(e,t){return e(t={exports:{}},t.exports),t.exports}function X(e){return J(e)?Object.keys(e):[]}var K=G(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,n=arguments[t];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}e.exports=t}),Y=Object.prototype.toString;function Q(t,i){X(t).forEach(function(e){return i(t[e],e)})}function h(i){for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return Object.assign?K.apply(void 0,[i].concat(t)):(t.forEach(function(e){e&&Q(e,function(e,t){i[t]=e})}),i)}function J(e){return!!e&&"object"==typeof e}function Z(e){return J(e)&&"[object Object]"===Y.call(e)&&e.constructor===Object}function ee(e,t){if(!e||!t)return"";if("function"!=typeof window.getComputedStyle)return"";var i;try{i=window.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}var te,t=window.navigator&&window.navigator.userAgent||"",i=/AppleWeb
1Kit\/([\d.]+)/i.exec(t),i=i?parseFloat(i.pop()):null,n=/iPod/i.test(t),r=(r=t.match(/OS (\d+)_/i))&&r[1]?r[1]:null,ie=/Android/i.test(t),ne=(me=t.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i))?(ce=me[1]&&parseFloat(me[1]),te=me[2]&&parseFloat(me[2]),ce&&te?parseFloat(me[1]+"."+me[2]):ce||null):null,re=ie&&ne<5&&i<537,se=/Firefox/i.test(t),oe=/Edg/i.test(t),ae=!oe&&(/Chrome/i.test(t)||/CriOS/i.test(t)),le=(te=t.match(/(Chrome|CriOS)\/(\d+)/))&&te[2]?parseFloat(te[2]):null,ue=me=!(me=(me=/MSIE\s(\d+)\.\d/.exec(t))&&parseFloat(me[1]))&&/Trident\/7.0/i.test(t)&&/rv:11.0/.test(t)?11:me,ce=/Safari/i.test(t)&&!ae&&!ie&&!oe,de=/Windows/i.test(t),he=Boolean(ve()&&("ontouchstart"in window||window.navigator.maxTouchPoints||window.DocumentTouch&&window.document instanceof window.DocumentTouch)),i=/iPad/i.test(t)||ce&&he&&!/iPhone/i.test(t),pe=/iPhone/i.test(t)&&!i,p=pe||i||n,fe=(ce||p)&&!ae,me=Object.freeze({__proto__:null,IS_IPOD:n,IOS_VERSION:r,IS_ANDROID:ie,ANDROID_VERSION:ne,IS_NATIVE_ANDROID:re,IS_FIREFOX:se,IS_EDGE:oe,IS_CHROME:ae,CHROME_VERSION:le,IE_VERSION:ue,IS_SAFARI:ce,IS_WINDOWS:de,TOUCH_ENABLED:he,IS_IPAD:i,IS_IPHONE:pe,IS_IOS:p,IS_ANY_SAFARI:fe});function ge(e){return"string"==typeof e&&Boolean(e.trim())}function ye(e){if(0<=e.indexOf(" "))throw new Error("class has illegal whitespace characters")}function ve(){return document===window.document}function _e(e){return J(e)&&1===e.nodeType}function be(){try{return window.parent!==window.self}catch(e){return!0}}function Te(i){return function(e,t){return ge(e)?(t=_e(t=ge(t)?document.querySelector(t):t)?t:document)[i]&&t[i](e):document[i](null)}}function c(e,i,t,n){void 0===e&&(e="div"),void 0===i&&(i={}),void 0===t&&(t={});var r=document.createElement(e);return Object.getOwnPropertyNames(i).forEach(function(e){var t=i[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(d.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+t+"."),r.setAttribute(e,t)):"textContent"===e?we(r,t):r[e]===t&&"tabIndex"!==e||(r[e]=t)}),Object.getOwnPropertyNames(t).forEach(function(e){r.setAttribute(e,t[e])}),n&&He(r,n),r}function we(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function Se(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ke(e,t){return ye(t),e.classList?e.classList.contains(t):new RegExp("(^|\\s)"+t+"($|\\s)").test(e.className)}function Ce(e,t){return e.classList?e.classList.add(t):ke(e,t)||(e.className=(e.className+" "+t).trim()),e}function Ee(e,t){return e?(e.classList?e.classList.remove(t):(ye(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e):(d.warn("removeClass was called with an element that doesn't exist"),null)}function xe(e,t,i){var n=ke(e,t);if((i="boolean"!=typeof(i="function"==typeof i?i(e,t):i)?!n:i)!==n)return(i?Ce:Ee)(e,t),e}function Ae(i,n){Object.getOwnPropertyNames(n).forEach(function(e){var t=n[e];null==t||!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})}function Ie(e){var t={};if(e&&e.attributes&&0<e.attributes.length)for(var i=e.attributes,n=i.length-1;0<=n;n--){var r=i[n].name,s=i[n].value;
1"boolean"!=typeof e[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(s=null!==s),t[r]=s}return t}function Le(e,t){return e.getAttribute(t)}function Pe(e,t,i){e.setAttribute(t,i)}function Oe(e,t){e.removeAttribute(t)}function De(){document.body.focus(),document.onselectstart=function(){return!1}}function Ne(){document.onselectstart=function(){return!0}}function Me(e){var t,i;if(e&&e.getBoundingClientRect&&e.parentNode)return t=e.getBoundingClientRect(),i={},["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(ee(e,"height"))),i.width||(i.width=parseFloat(ee(e,"width"))),i}function Re(e){if(!e||!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==document[B.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function Ue(e,t){var i={x:0,y:0};if(p)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r,s=ee(n,"transform");
1/^matrix/.test(s)?(r=s.slice(7,-1).split(/,\s/).map(Number),i.x+=r[4],i.y+=r[5]):/^matrix3d/.test(s)&&(r=s.slice(9,-1).split(/,\s/).map(Number),i.x+=r[12],i.y+=r[13]),n=n.parentNode}var o={},a=Re(t.target),e=Re(e),l=e.width,u=e.height,c=t.offsetY-(e.top-a.top),a=t.offsetX-(e.left-a.left);return t.changedTouches&&(a=t.changedTouches[0].pageX-e.left,c=t.changedTouches[0].pageY+e.top,p)&&(a-=i.x,c-=i.y),o.y=1-Math.max(0,Math.min(1,c/u)),o.x=Math.max(0,Math.min(1,a/l)),o}function je(e){return J(e)&&3===e.nodeType}function Be(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Fe(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return _e(e="function"==typeof e?e():e)||je(e)?e:"string"==typeof e&&/\S/.test(e)?document.createTextNode(e):void 0}).filter(function(e){return e})}function He(t,e){return Fe(e).forEach(function(e){return t.appendChild(e)}),t}function qe(e,t){return He(Be(e),t)}function Ve(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}function We(){if(!1!==$e.options.autoSetup){var e=Array.prototype.slice.call(document.getElementsByTagName("video")),t=Array.prototype.slice.call(document.getElementsByTagName("audio")),i=Array.prototype.slice.call(document.getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&0<n.length)for(var r=0,s=n.length;r<s;r++){var o=n[r];if(!o||!o.getAttribute){Ye(1);break}void 0===o.player&&null!==o.getAttribute("data-setup")&&$e(o)}else Ke||Ye(1)}}var $e,ze=Te("querySelector"),Ge=Te("querySelectorAll"),Xe=Object.freeze({__proto__:null,isReal:ve,isEl:_e,isInFrame:be,createEl:c,textContent:we,prependTo:Se,hasClass:ke,addClass:Ce,removeClass:Ee,toggleClass:xe,setAttributes:Ae,getAttributes:Ie,getAttribute:Le,setAttribute:Pe,removeAttribute:Oe,blockTextSelection:De,unblockTextSelection:Ne,getBoundingClientRect:Me,findPosition:Re,getPointerPosition:Ue,isTextNode:je,emptyEl:Be,normalizeContent:Fe,appendContent:He,insertContent:qe,isSingleLeftClick:Ve,$:ze,$$:Ge}),Ke=!1;function Ye(e,t){ve()&&(t&&($e=t),window.setTimeout(We,e))}function Qe(){Ke=!0,window.removeEventListener("load",Qe)}ve()&&("complete"===document.readyState?Qe():window.addEventListener("load",Qe));function Je(e){var t=document.createElement("style");return t.className=e,t}function Ze(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t}var et=3;window.WeakMap||(ei=function(){function e(){this.vdata="vdata"+Math.floor(window.performance&&window.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var i=e[this.vdata]||et++;return e[this.vdata]||(e[this.vdata]=i),this.data[i]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];d("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var tt,l=new(window.WeakMap?WeakMap:ei);function it(e,t){var i;l.has(e)&&(0===(i=l.get(e)).handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length)&&l.delete(e)}function nt(t,i,e,n){e.forEach(function(e){t(i,e,n)})}function rt(e){if(!e.fixed_){if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var t,i,n,r=e||window.event;for(t in e={},r)"layerX"===t||"layerY"===t||"keyLocation"===t||"webkitMovementX"===t||"webkitMovementY"===t||"path"===t||"returnValue"===t&&r.preventDefault||(e[t]=r[t]);e.target||(e.target=e.srcElement||document),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=s},e.isPropagationStopped=o,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=s,e.stopPropagation()},e.isImmediatePropagationStopped=o,null!==e.clientX&&void 0!==e.clientX&&(i=document.documentElement,n=document.body,e.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}e.fixed_=!0}return e;function s(){return!0}function o(){return!1}}var st=["touchstart","touchmove"];function ot(o,e,t){if(Array.isArray(e))return nt(ot,o,e,t);l.has(o)||l.set(o,{});var a=l.get(o);a.handlers||(a.handlers={}),a.handlers[e]||(a.handlers[e]=[]),t.guid||(t.guid=et++),a.handlers[e].push(t),a.dispatcher||(a.disabled=!1,a.dispatcher=function(e,t){if(!a.disabled){e=rt(e);var i=a.handlers[e.type];if(i)for(var n=i.slice(0),r=0,s=n.length;r<s&&!e.isImmediatePropagationStopped();r++)try{n[r].call(o,e,t)}catch(e){d.error(e)}}}),1===a.handlers[e].length&&(o.addEventListener?(t=!1,function(){if("boolean"!=typeof tt){tt=!1;try{var e=Object.defineProperty({},"passive",{get:function(){tt=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}return tt}()&&-1<st.indexOf(e)&&(t={passive:!0}),o.addEventListener(e,a.dispatcher,t)):o.attachEvent&&o.attachEvent("on"+e,a.dispatcher))}function u(e,t,i){if(l.has(e)){var n=l.get(e);if(n.handlers){if(Array.isArray(t))return nt(u,e,t,i);var r=function(e,t){n.handlers[t]=[],it(e,t)};if(void 0===t)for(var s in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},s)&&r(e,s);else{var o=n.handlers[t];if(o)if(i){if(i.guid)for(var a=0;a<o.length;a++)o[a].guid===i.guid&&o.splice(a--,1);it(e,t)}else r(e,t)}}}}function at(e,t,i){var n=l.has(e)?l.get(e):{},r=e.parentNode||e.ownerDocument;return"string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=rt(t),n.dispatcher&&n.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles?at.call(null,r,t,i):!r&&!t.defaultPrevented&&t.target&&t.target[t.type]&&(l.has(t.target)||l.set(t.target,{}),n=l.get(t.target),t.target[t.type])&&(n.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),n.disabled=!1),!t.defaultPrevented}function lt(e,t,i){if(Array.isArray(t))return nt(lt,e,t,i);function n(){u(e,t,n),i.apply(this,arguments)}n.guid=i.guid=i.guid||et++,ot(e,t,n)}function ut(e,t,i){function n(){u(e,t,n),i.apply(this,arguments)}n.guid=i.guid=i.guid||et++,ot(e,t,n)}function ct(t,i){var n=window.performance.now();return function(){var e=window.performance.now();i<=e-n&&(t.apply(void 0,arguments),n=e)}}function dt(n,r,s,o){function e(){var e=this,t=arguments,i=function(){i=a=null,s||n.apply(e,t)};!a&&s&&n.apply(e,t),o.clearTimeout(a),a=o.setTimeout(i,r)}var a;return void 0===o&&(o=window),e.cancel=function(){o.clearTimeout(a),a=null},e}function s(){}function ht(e,t,i){if(!e||!e.nodeName&&!bt(e))throw new Error("Invalid target for "+_t(t)+"#"+i+"; must be a DOM node or evented object.")}function pt(e,t,i){if(!Tt(e))throw new Error("Invalid event type for "+_t(t)+"#"+i+"; must be a non-empty string or array.")}function ft(e,t,i){if("function"!=typeof e)throw new Error("Invalid listener for "+_t(t)+"#"+i+"; must be a function.")}function mt(e,t,i){var n,r,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_,t=s?(n=e.eventBusEl_,3<=t.length&&t.shift(),r=t[0],t[1]):(n=t[0],r=t[1],t[2]);return ht(n,e,i),pt(r,e,i),ft(t,e,i),{isTargetingSelf:s,target:n,type:r,listener:t=f(e,t)}}function gt(e,t,i,n){ht(e,e,t),e.nodeName?vt[t](e,i,n):e[t](i,n)}var yt,vt=Object.freeze({__proto__:null,fixEvent:rt,on:ot,off:u,trigger:at,one:lt,any:ut}),f=function(e,t,i){t.guid||(t.guid=et++);e=t.bind(e);return e.guid=i?i+"_"+t.guid:t.guid,e},_t=(s.prototype.allowedEvents_={},s.prototype.addEventListener=s.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},ot(this,e,t),this.addEventListener=i},s.prototype.removeEventListener=s.prototype.off=function(e,t){u(this,e,t)},s.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},lt(this,e,t),this.addEventListener=i},s.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},ut(this,e,t),this.addEventListener=i},s.prototype.dispatchEvent=s.prototype.trigger=function(e){var t=e.type||e;e=rt(e="string"==typeof e?{type:t}:e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),at(this,e)},s.prototype.queueTrigger=function(e){var t=this,i=(yt=yt||new Map,e.type||e),n=yt.get(this),r=(n||(n=new Map,yt.set(this,n)),n.get(i)),r=(n.delete(i),window.clearTimeout(r),window.setTimeout(function(){0===n.size&&(n=null,yt.delete(t)),t.trigger(e)},0));n.set(i,r)},function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_||(e.constructor&&e.constructor.name?e.constructor.name:typeof e)}),bt=function(t){return t instanceof s||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]}
1)},Tt=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},wt={on:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r,s=mt(this,i,"on"),o=s.isTargetingSelf,a=s.target,l=s.type,u=s.listener;gt(a,"on",l,u),o||((r=function(){return e.off(a,l,u)}).guid=u.guid,(s=function(){return e.off("dispose",r)}).guid=u.guid,gt(this,"on","dispose",r),gt(a,"on","dispose",s))},one:function(){for(var r=this,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=mt(this,t,"one"),s=n.isTargetingSelf,o=n.target,a=n.type,l=n.listener;s?gt(o,"one",a,l):((n=function e(){r.off(o,a,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];l.apply(null,i)}).guid=l.guid,gt(o,"one",a,n))},any:function(){for(var r=this,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=mt(this,t,"any"),s=n.isTargetingSelf,o=n.target,a=n.type,l=n.listener;s?gt(o,"any",a,l):((n=function e(){r.off(o,a,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];l.apply(null,i)}).guid=l.guid,gt(o,"any",a,n))},off:function(e,t,i){!e||Tt(e)?u(this.eventBusEl_,e,t):(t=t,ht(e=e,this,"off"),pt(t,this,"off"),ft(i,this,"off"),i=f(this,i),this.off("dispose",i),e.nodeName?(u(e,t,i),u(e,"dispose",i)):bt(e)&&(e.off(t,i),e.off("dispose",i)))},trigger:function(e,t){ht(this.eventBusEl_,this,"trigger");var i=e&&"string"!=typeof e?e.type:e;if(!Tt(i)){i="Invalid event type for "+_t(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(i);(this.log||d).error(i)}return at(this.eventBusEl_,e,t)}};function St(e,t){t=(t=void 0===t?{}:t).eventBusKey;if(t){if(!e[t].nodeName)throw new Error('The eventBusKey "'+t+'" does not refer to an element.');e.eventBusEl_=e[t]}else e.eventBusEl_=c("span",{className:"vjs-event-bus"});h(e,wt),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&l.has(e)&&l.delete(e)}),window.setTimeout(function(){e.eventBusEl_=null},0)})}var kt={state:{},setState:function(e){var i,n=this;return Q(e="function"==typeof e?e():e,function(e,t){n.state[t]!==e&&((i=i||{})[t]={from:n.state[t],to:e}),n.state[t]=e}),i&&bt(this)&&this.trigger({changes:i,type:"statechanged"}),i}};function Ct(e,t){h(e,kt),e.state=h({},e.state,t),"function"==typeof e.handleStateChanged&&bt(e)&&e.on("statechanged",e.handleStateChanged)}function Et(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})}function m(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})}function g(){for(var i={},e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach(function(e){e&&Q(e,function(e,t){Z(e)?(Z(i[t])||(i[t]={}),i[t]=g(i[t],e)):i[t]=e})}),i}var xt=window.Map||function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var i in this.map_)e.call(t,this.map_[i],i,this)},e}(),At=window.Set||function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var i in this.set_)e.call(t,i,i,this)},e}(),y=G(function(e,t){function i(e){var t;return"number"==typeof(e=e&&"object"==typeof e&&(t=e.which||e.keyCode||e.charCode)?t:e)?a[e]:(t=String(e),n[t.toLowerCase()]||r[t.toLowerCase()]||(1===t.length?t.charCodeAt(0):void 0))}i.isEventKey=function(e,t){if(e&&"object"==typeof e){e=e.which||e.keyCode||e.charCode;if(null!=e)if("string"==typeof t){var i=n[t.toLowerCase()];if(i)return i===e;if(i=r[t.toLowerCase()])return i===e}else if("number"==typeof t)return t===e;return!1}};for(var n=(t=e.exports=i).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91},s=97;s<123;s++)n[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)n[s-48]=s;for(s=1;s<13;s++)n["f"+s]=s+111;for(s=0;s<10;s++)n["numpad "+s]=s+96;var o,a=t.names=t.title={};for(s in n)a[n[s]]=s;for(o in r)n[o]=r[o]}),v=(y.code,y.codes,y.aliases,y.names,y.title,function(){function o(e,t,i){var n=this;!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=g({},this.options_),t=this.options_=g(this.options_,t),this.id_=t.id||t.el&&t.el.id,this.id_||(e=e&&e.id&&e.id()||"no_player",this.id_=e+"_component_"+et++),this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(function(e){return n.addClass(e)}),!1!==t.evented&&(St(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Ct(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new At,this.setIntervalIds_=new At,this.rafIds_=new At,this.namedRafs_=new xt,(this.clearingTimersOnDispose_=!1)!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var e=o.prototype;return e.dispose=function(e){if(void 0===e&&(e={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,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.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(e){return e&&(this.options_=g(this.options_,e)),this.options_},e.el=function(){return this.el_},e.createEl=function(e,t,i){return c(e,t,i)},e.localize=function(e,i,t){void 0===t&&(t=e);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),s=r&&r[n],n=n&&n.split("-")[0],r=r&&r[n],n=t;return s&&s[e]?n=s[e]:r&&r[e]&&(n=r[e]),n=i?n.replace(/\{(\d+)\}/g,function(e,t){t=i[t-1];return void 0===t?e:t}):n},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(e){return this.childIndex_[e]},e.getChild=function(e){if(e)return this.childNameIndex_[e]},e.getDescendant=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(var t=t.reduce(function(e,t){return e.concat(t)},[]),n=this,r=0;r<t.length;r++)if(!(n=n.getChild(t[r]))||!n.getChild)return;return n},e.addChild=function(e,t,i){if(void 0===t&&(t={}),void 0===i&&(i=this.children_.length),"string"==typeof e){var n=m(e),r=t.componentClass||n,s=(t.name=n,o.getComponent(r));if(!s)throw new Error("Component "+r+" does not exist");if("function"!=typeof s)return null;r=new s(this.player_||this,t)}else r=e;return r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(n=n||r.name&&m(r.name()))&&(this.childNameIndex_[n]=r,this.childNameIndex_[Et(n)]=r),"function"==typeof r.el&&r.el()&&(s=null,this.children_[i+1]&&(this.children_[i+1].el_?s=this.children_[i+1].el_:_e(this.children_[i+1])&&(s=this.children_[i+1])),this.contentEl().insertBefore(r.el(),s)),r},e.removeChild=function(e){if((e="string"==typeof e?this.getChild(e):e)&&this.children_){for(var t,i=!1,n=this.children_.length-1;0<=n;n--)if(this.children_[n]===e){i=!0,this.children_.splice(n,1);break}i&&(e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[m(e.name())]=null,this.childNameIndex_[Et(e.name())]=null,t=e.el())&&t.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}},e.initChildren=function(){var i,t,e,n=this,r=this.options_.children;r&&(i=this.options_,t=o.getComponent("Tech"),(e=Array.isArray(r)?r:Object.keys(r)).concat(Object.keys(this.options_).filter(function(t){return!e.s
1ome(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(e){var t,e="string"==typeof e?r[t=e]||n.options_[t]||{}:(t=e.name,e);return{name:t,opts:e}}).filter(function(e){e=o.getComponent(e.opts.componentClass||m(e.name));return e&&!t.isTech(e)}).forEach(function(e){var t=e.name,e=e.opts;!1!==(e=void 0!==i[t]?i[t]:e)&&((e=!0===e?{}:e).playerOptions=n.options_.playerOptions,e=n.addChild(t,e))&&(n[t]=e)}))},e.buildCSSClass=function(){return""},e.ready=function(e,t){void 0===t&&(t=!1),e&&(this.isReady_?t?e.call(this):this.setTimeout(e,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e)))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&0<e.length&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.$=function(e,t){return ze(e,t||this.contentEl())},e.$$=function(e,t){return Ge(e,t||this.contentEl())},e.hasClass=function(e){return ke(this.el_,e)},e.addClass=function(e){Ce(this.el_,e)},e.removeClass=function(e){Ee(this.el_,e)},e.toggleClass=function(e,t){xe(this.el_,e,t)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(e){return Le(this.el_,e)},e.setAttribute=function(e,t){Pe(this.el_,e,t)},e.removeAttribute=function(e){Oe(this.el_,e)},e.width=function(e,t){return this.dimension("width",e,t)},e.height=function(e,t){return this.dimension("height",e,t)},e.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.dimension=function(e,t,i){var n,r;if(void 0===t)return this.el_?-1!==(r=(n=this.el_.style[e]).indexOf("px"))?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+m(e)],10):0;-1!==(""+(t=null!==t&&t==t?t:0)).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",i||this.trigger("componentresize")},e.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");return t=ee(this.el_,e),0!==(t=parseFloat(t))&&!isNaN(t)||(e="offset"+m(e),t=this.el_[e]),t},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(e){this.player_&&(y.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},e.handleKeyPress=function(e){this.handleKeyDown(e)},e.emitTapEvents=function(){function e(){i=!1}var i,t=0,n=null;this.on("touchstart",function(e){1===e.touches.length&&(n={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},t=window.performance.now(),i=!0)}),this.on("touchmove",function(e){var t;(1<e.touches.length||n&&(t=e.touches[0].pageX-n.pageX,e=e.touches[0].pageY-n.pageY,10<Math.sqrt(t*t+e*e)))&&(i=!1)});this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",function(e){!(n=null)===i&&window.performance.now()-t<200&&(e.preventDefault(),this.trigger("tap"))})},e.enableTouchActivity=function(){var t,i,e;this.player()&&this.player().reportUserActivity&&(t=f(this.player(),this.player().reportUserActivity),this.on("touchstart",function(){t(),this.clearInterval(i),i=this.setInterval(t,250)}),e=function(e){t(),this.clearInterval(i)},this.on("touchmove",t),this.on("touchend",e),this.on("touchcancel",e))},e.setTimeout=function(e,t){var i,n=this;return e=f(this,e),this.clearTimersOnDispose_(),i=window.setTimeout(function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i},e.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),window.clearTimeout(e)),e},e.setInterval=function(e,t){e=f(this,e),this.clearTimersOnDispose_();e=window.setInterval(e,t);return this.setIntervalIds_.add(e),e},e.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),window.clearInterval(e)),e},e.requestAnimationFrame=function(e){var t,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=f(this,e),t=window.requestAnimationFrame(function(){i.rafIds_.has(t)&&i.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},e.requestNamedAnimationFrame=function(e,t){var i,n=this;if(!this.namedRafs_.has(e))return this.clearTimersOnDispose_(),t=f(this,t),i=this.requestAnimationFrame(function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)}),this.namedRafs_.set(e,i),e},e.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},e.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),window.cancelAnimationFrame(e)),e):this.clearTimeout(e)},e.clearTimersOnDispose_=function(){var n=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
vendor: 9,858 bytes, line 1
1h(function(e){var t=e[0],i=e[1];n[t].forEach(function(e,t){return n[i](t)})}),n.clearingTimersOnDispose_=!1}))},o.registerComponent=function(e,t){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var i=o.getComponent("Tech"),i=i&&i.isTech(t),n=o===t||o.prototype.isPrototypeOf(t.prototype);if(i||!n)throw n=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+n+".");e=m(e),o.components_||(o.components_={});i=o.getComponent("Player");if("Player"===e&&i&&i.players){var r=i.players,n=Object.keys(r);if(r&&0<n.length&&n.map(function(e){return r[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return o.components_[e]=t,o.components_[Et(e)]=t},o.getComponent=function(e){if(e&&o.components_)return o.components_[e]},o}());v.prototype.supportsRaf_="function"==typeof window.requestAnimationFrame&&"function"==typeof window.cancelAnimationFrame,v.registerComponent("Component",v);var _=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var b=function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t};function It(e,t,i,n){var r=n,s=i.length-1;if("number"!=typeof r||r<0||s<r)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+r+") is non-numeric or out of bounds (0-"+s+").");return i[n][t]}function Lt(e){var t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:It.bind(null,"start",0,e),end:It.bind(null,"end",1,e)};return window.Symbol&&window.Symbol.iterator&&(t[window.Symbol.iterator]=function(){return(e||[]).values()}),t}function Pt(e,t){return Array.isArray(e)?Lt(e):void 0===e||void 0===t?Lt():Lt([[e,t]])}function Ot(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=Pt(0,0));for(var s=0;s<e.length;s++)i=e.start(s),r+=(n=t<(n=e.end(s))?t:n)-i;return r/t}function Dt(e){if(e instanceof Dt)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:J(e)&&("number"==typeof e.code&&(this.code=e.code),h(this,e)),this.message||(this.message=Dt.defaultMessages[this.code]||"")}Dt.prototype.code=0,Dt.prototype.message="",Dt.prototype.status=null,Dt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Dt.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 Nt=0;Nt<Dt.errorTypes.length;Nt++)Dt[Dt.errorTypes[Nt]]=Nt,Dt.prototype[Dt.errorTypes[Nt]]=Nt;var Mt=function(e,t){var i,n=null;try{i=JSON.parse(e,t)}catch(e){n=e}return[n,i]};function Rt(e){return null!=e&&"function"==typeof e.then}function Ut(e){Rt(e)&&e.then(null,function(e){})}function jt(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,t,i){return n[t]&&(e[t]=n[t]),e},{cues:n.cues&&Array.prototype.map.call(n.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})}var Bt,Ft=function(e){var t=e.$$("track"),i=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=jt(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===i.indexOf(e)}).map(jt))},Ht=function(e,i){return e.forEach(function(e){var t=i.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return t.addCue(e)})}),i.textTracks()},qt="vjs-modal-dialog",Vt=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=c("div",{className:qt+"-content"},{role:"document"}),i.descEl_=c("p",{className:qt+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),we(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}b(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,n.prototype.dispose.call(this)},t.buildCSSClass=function(){return qt+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.label=function(){return this.localize(this.options_.label||"Modal Window")},t.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.open=function(){var e;this.opened_||(e=this.player(),this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0)},t.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.close=function(){var e;this.opened_&&(e=this.player(),this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary)&&this.dispose()},t.closeable=function(e){var t,i;return"boolean"==typeof e&&(e=this.closeable_=!!e,t=this.getChild("closeButton"),e&&!t&&(i=this.contentEl_,this.contentEl_=this.el_,t=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(t,"close",this.close_)),!e)&&t&&(this.off(t,"close",this.close_),this.removeChild(t),t.dispose()),this.closeable_},t.fill=function(){this.fillWith(this.content())},t.fillWith=function(e){var t=this.contentEl(),i=t.parentNode,n=t.nextSibling,e=(this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),qe(t,e),this.trigger("modalfill"),n?i.insertBefore(t,n):i.appendChild(t),this.getChild("closeButton"));e&&i.appendChild(e.el_)},t.empty=function(){this.trigger("beforemodalempty"),Be(this.contentEl()),this.trigger("modalempty")},t.content=function(e){return void 0!==e&&(this.content_=e),this.content_},t.conditionalFocus_=function(){var e=document.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,!t.contains(e)&&t!==e||(this.previouslyActiveEl_=e,this.focus())},t.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},t.handleKeyDown=function(e){if(e.stopPropagation(),y.isEventKey(e,"Escape")&&this.closeable())e.preventDefault(),this.close();else if(y.isEventKey(e,"Tab")){for(var t,i=this.focusableEls_(),n=this.el_.querySelector(":focus"),r=0;r<i.length;r++)if(n===i[r]){t=r;break}document.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(i[i.length-1].focus(),e.preventDefault()):e.shiftKey||t!==i.length-1||(i[0].focus(),e.preventDefault())}},t.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof window.HTMLAnchorElement||e instanceof window.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof window.HTMLInputElement||e instanceof window.HTMLSelectElement||e instanceof window.HTMLTextAreaElement||e instanceof window.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof window.HTMLIFrameElement||e instanceof window.HTMLObjectElement||e instanceof window.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},e}(v),Wt=(Vt.prototype.options_={pauseOnOpen:!0,temporary:!0},v.registerComponent("ModalDialog",Vt),function(n){function e(e){var t;void 0===e&&(e=[]),(t=n.call(this)||this).tracks_=[],Object.defineProperty(_(t),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<e.length;i++)t.addTrack(e[i]);return t}b(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this,i=this.tracks_.length;""+i in this||Object.defineProperty(this,i,{get:function(){return this.tracks_[i]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},bt(e)&&e.addEventListener("labelchange",e.labelchange_)},t.removeTrack=function(e){for(var t,i=0,n=this.length;i<n;i++)if(this[i]===e){(t=this[i]).off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},t.getTrackById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},e}(s));for(Bt in Wt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Wt.prototype.allowedEvents_)Wt.prototype["on"+Bt]=null;function $t(e,t){for(var i=0;i<e.length;
1i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)}function zt(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)}function Gt(e){for(var t=["protocol","hostname","port","pathname","search","hash","host"],i=document.createElement("a"),n=(i.href=e,{}),r=0;r<t.length;r++)n[t[r]]=i[t[r]];return"http:"===n.protocol&&(n.host=n.host.replace(/:80$/,"")),"https:"===n.protocol&&(n.host=n.host.replace(/:443$/,"")),n.protocol||(n.protocol=window.location.protocol),n.host||(n.host=window.location.host),n}function Xt(e){var t;return e.match(/^https?:\/\//)||((t=document.createElement("a")).href=e,e=t.href),e}var t=function(n){function e(e){for(var t,i=(e=void 0===e?[]:e).length-1;0<=i;i--)if(e[i].enabled){$t(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,t}b(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this;e.enabled&&$t(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){t.changing_||(t.changing_=!0,$t(t,e),t.changing_=!1,t.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},t.removeTrack=function(e){n.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Wt),n=function(n){function e(e){for(var t,i=(e=void 0===e?[]:e).length-1;0<=i;i--)if(e[i].selected){zt(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,Object.defineProperty(_(t),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),t}b(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this;e.selected&&zt(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){t.changing_||(t.changing_=!0,zt(t,e),t.changing_=!1,t.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},t.removeTrack=function(e){n.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(Wt),r=function(i){function e(){return i.apply(this,arguments)||this}b(e,i);var t=e.prototype;return t.addTrack=function(e){var t=this;i.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return t.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return t.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},t.removeTrack=function(e){i.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_)&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_)},e}(Wt),i=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,i=0,n=this.trackElements_.length;i<n;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t},t.removeTrackElement_=function(e){for(var t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),Kt=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(e){function t(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})}var i=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;if(i<r)for(n=i;n<r;n++)t.call(this,n)},e.getCueById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},t}(),Yt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Qt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Jt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Zt={disabled:"disabled",hidden:"hidden",showing:"showing"},ei=function(s){function e(e){void 0===e&&(e={}),t=s.call(this)||this;var t,i,n={id:e.id||"vjs_track_"+et++,kind:e.kind||"",language:e.language||""},r=e.label||"";for(i in n)!function(e){Object.defineProperty(_(t),e,{get:function(){return n[e]},set:function(){}})}(i);return Object.defineProperty(_(t),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),t}return b(e,s),e}(s),ti=function(e){if("string"==typeof e){e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(e)return e.pop().toLowerCase()}return""},ii=function(e,t){void 0===t&&(t=window.location);e=Gt(e);return(":"===e.protocol?t:e).protocol+e.host!==t.protocol+t.host},ni=Object.freeze({__proto__:null,parseUrl:Gt,getAbsoluteURL:Xt,getFileExtension:ti,isCrossOrigin:ii}),ri="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},si=ri,oi=function(e){var t;return!!e&&("[object Function]"===(t=ai.call(e))||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt))},ai=Object.prototype.toString;fi.httpHandler=function(n,r){return void 0===r&&(r=!1),function(e,t,i){if(e)n(e);else if(400<=t.statusCode&&t.statusCode<=599){e=i;if(r)if(si.TextDecoder){t=function(e){void 0===e&&(e="");return e.toLowerCase().split(";").reduce(function(e,t){var t=t.split("="),i=t[0],t=t[1];return"charset"===i.trim()?t.trim():e},"utf-8")}(t.headers&&t.headers["content-type"]);try{e=new TextDecoder(t).decode(i)}catch(e){}}else e=String.fromCharCode.apply(null,new Uint8Array(i));n({cause:e})}else n(null,i)}};for(var li=function(e){var n={};return e&&e.trim().split("\n").forEach(function(e){var t=e.indexOf(":"),i=e.slice(0,t).trim().toLowerCase(),e=e.slice(t+1).trim();void 0===n[i]?n[i]=e:Array.isArray(n[i])?n[i].push(e):n[i]=[n[i],e]}),n},ui=fi,ri=fi,ci=(fi.XMLHttpRequest=si.XMLHttpRequest||function(){},fi.XDomainRequest="withCredentials"in new fi.XMLHttpRequest?fi.XMLHttpRequest:si.XDomainRequest,["get","put","post","patch","head","delete"]),di=function(n){fi["delete"===n?"del":n]=function(e,t,i){return(t=pi(e,t,i)).method=n.toUpperCase(),mi(t)}},hi=0;hi<ci.length;hi++)di(ci[hi]);function pi(e,t,i){var n=e;
1return oi(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=K({},t,{uri:e}),n.callback=i,n}function fi(e,t,i){return mi(t=pi(e,t,i))}function mi(n){if(void 0===n.callback)throw new Error("callback argument missing");var r=!1,s=function(e,t,i){r||(r=!0,n.callback(e,t,i))};function o(){var e=void 0,e=u.response||u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u);if(m)try{e=JSON.parse(e)}catch(e){}return e}function t(e){return clearTimeout(l),(e=e instanceof Error?e:new Error(""+(e||"Unknown XMLHttpRequest Error"))).statusCode=0,s(e,g)}function e(){var e,t,i;if(!a)return clearTimeout(l),e=n.useXDR&&void 0===u.status?200:1223===u.status?204:u.status,t=g,i=null,0!==e?(t={body:o(),statusCode:e,method:d,headers:{},url:c,rawRequest:u},u.getAllResponseHeaders&&(t.headers=li(u.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),s(i,t,t.body)}var i,a,l,u=n.xhr||null,c=(u=u||new(n.cors||n.useXDR?fi.XDomainRequest:fi.XMLHttpRequest)).url=n.uri||n.url,d=u.method=n.method||"GET",h=n.body||n.data,p=u.headers=n.headers||{},f=!!n.sync,m=!1,g={body:void 0,headers:{},statusCode:0,method:d,url:c,rawRequest:u};if("json"in n&&!1!==n.json&&(m=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d)&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(!0===n.json?h:n.json)),u.onreadystatechange=function(){4===u.readyState&&setTimeout(e,0)},u.onload=e,u.onerror=t,u.onprogress=function(){},u.onabort=function(){a=!0},u.ontimeout=t,u.open(d,c,!f,n.username,n.password),f||(u.withCredentials=!!n.withCredentials),!f&&0<n.timeout&&(l=setTimeout(function(){var e;a||(a=!0,u.abort("timeout"),(e=new Error("XMLHttpRequest timeout")).code="ETIMEDOUT",t(e))},n.timeout)),u.setRequestHeader)for(i in p)p.hasOwnProperty(i)&&u.setRequestHeader(i,p[i]);else if(n.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return;return 1}(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(u.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(u),u.send(h||null),u}ui.default=ri;function gi(e,n){var t={uri:e};(e=ii(e))&&(t.cors=e),(e="use-credentials"===n.tech_.crossOrigin())&&(t.withCredentials=e),ui(t,f(this,function(e,t,i){if(e)return d.error(e,t);n.loaded_=!0,"function"!=typeof window.WebVTT?n.tech_&&n.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"!==e.type)return yi(i,n);d.error("vttjs failed to load, stopping trying to process "+n.src)}):yi(i,n)}))}var yi=function(e,t){var i=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),0<n.length&&(window.console&&window.console.groupCollapsed&&window.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(e){return d.error(e)}),window.console)&&window.console.groupEnd&&window.console.groupEnd(),i.flush()},vi=function(s){function e(e){var t,i,n,r,o,a;if((e=void 0===e?{}:e).tech)return e=g(e,{kind:Jt[e.kind]||"subtitles",language:e.language||e.srclang||""}),i=Zt[e.mode]||"disabled",n=e.default,"metadata"!==e.kind&&"chapters"!==e.kind||(i="hidden"),(t=s.call(this,e)||this).tech_=e.tech,t.cues_=[],t.activeCues_=[],t.preload_=!1!==t.tech_.preloadTextTracks,r=new Kt(t.cues_),o=new Kt(t.activeCues_),a=!1,t.timeupdateHandler=f(_(t),function(e){void 0===e&&(e={}),this.tech_.isDisposed()||(this.tech_.isReady_&&(this.activeCues=this.activeCues,a)&&(this.trigger("cuechange"),a=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}),t.tech_.one("dispose",function(){t.stopTracking()}),"disabled"!==i&&t.startTracking(),Object.defineProperties(_(t),{default:{get:function(){return n},set:function(){}},mode:{get:function(){return i},set:function(e){Zt[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||
10!==this.cues.length||gi(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?r:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0!==this.cues.length){for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i<n;i++){var r=this.cues[i];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(a=!1,t.length!==this.activeCues_.length)a=!0;else for(var s=0;s<t.length;s++)-1===this.activeCues_.indexOf(t[s])&&(a=!0);this.activeCues_=t,o.setCues_(this.activeCues_)}return o},set:function(){}}}),e.src?(t.src=e.src,t.preload_||(t.loaded_=!0),(t.preload_||"subtitles"!==e.kind&&"captions"!==e.kind)&&gi(t.src,_(t))):t.loaded_=!0,t;throw new Error("A tech was not provided.")}b(e,s);var t=e.prototype;return t.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},t.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},t.addCue=function(e){var t=e;if(window.vttjs&&!(e instanceof window.vttjs.VTTCue)){for(var i in t=new window.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}for(var n=this.tech_.textTracks(),r=0;r<n.length;r++)n[r]!==this&&n[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.removeCue=function(e){for(var t=this.cues_.length;t--;){var i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},e}(ei),ri=(vi.prototype.allowedEvents_={cuechange:"cuechange"},function(n){function e(e){var e=g(e=void 0===e?{}:e,{kind:Qt[e.kind]||""}),t=n.call(this,e)||this,i=!1;return Object.defineProperty(_(t),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),e.enabled&&(t.enabled=e.enabled),t.loaded_=!0,t}return b(e,n),e}(ei)),ei=function(n){function e(e){var e=g(e=void 0===e?{}:e,{kind:Yt[e.kind]||""}),t=n.call(this,e)||this,i=!1;return Object.defineProperty(_(t),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),e.selected&&(t.selected=e.selected),t}return b(e,n),e}(ei),o=function(r){function e(e){void 0===e&&(e={}),t=r.call(this)||this;var t,i,n=new vi(e);return t.kind=n.kind,t.src=n.src,t.srclang=n.language,t.label=n.label,t.default=n.default,Object.defineProperties(_(t),{readyState:{get:function(){return i}},track:{get:function(){return n}}}),i=0,n.addEventListener("loadeddata",function(){i=2,t.trigger({type:"load",target:_(t)})}),t}return b(e,r),e}(s),_i=(o.prototype.allowedEvents_={load:"load"},o.NONE=0,o.LOADING=1,o.LOADED=2,o.ERROR=3,{audio:{ListClass:t,TrackClass:ri,capitalName:"Audio"},video:{ListClass:n,TrackClass:ei,capitalName:"Video"},text:{ListClass:r,TrackClass:vi,capitalName:"Text"}}),bi=(Object.keys(_i).forEach(function(e){_i[e].getterName=e+"Tracks",_i[e].privateName=e+"Tracks_"}),{remoteText:{ListClass:r,TrackClass:vi,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:i,TrackClass:o,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}}),Ti=K({},_i,bi),t=(bi.names=Object.keys(bi),_i.names=Object.keys(_i),Ti.names=[].concat(bi.names).concat(_i.names),void 0!==e?e:"undefined"!=typeof window?window:{}),a="undefined"!=typeof document?document:(a=t["__GLOBAL_DOCUMENT_CACHE@4"])||(t["__GLOBAL_DOCUMENT_CACHE@4"]={}),n=a,wi=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return Si.prototype=e,new Si};function Si(){}function ki(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function Ci(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/1e3}e=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function Ei(){this.values=wi(null)}function xi(e,t,i,n){var r,s,o=n?e.split(n):[e];for(r in o)"string"==typeof o[r]&&2===(s=o[r].split(i)).length&&t(s[0].trim(),s[1].trim())}((ki.prototype=wi(Error.prototype)).constructor=ki).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Ei.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var n=0;n<i.length;++n)if(t===i[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var Ai=n.createElement&&n.createElement("textarea"),Ii={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},Li={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},Pi={v:"title",lang:"lang"},Oi={rt:"ruby"};function Di(e,t){for(var i,n,r,s,o,a,l=e.document.createElement("div"),u=l,c=[];null!==(a=void 0,a=t?(a=(a=t.match(/^([^<]*)(<[^>
1]*>?)?/))[1]||a[2],t=t.substr(a.length),a):null);)"<"===a[0]?"/"===a[1]?c.length&&c[c.length-1]===a.substr(2).replace(">","")&&(c.pop(),u=u.parentNode):(n=Ci(a.substr(1,a.length-2)))?(i=e.document.createProcessingInstruction("timestamp",n),u.appendChild(i)):(n=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(r=n[1],s=n[3],o=void 0,o=Ii[r],i=o?(o=e.document.createElement(o),(r=Pi[r])&&s&&(o[r]=s.trim()),o):null)&&(r=u,Oi[(s=i).localName]&&Oi[s.localName]!==r.localName||(n[2]&&((o=n[2].split(".")).forEach(function(e){var t=/^bg_/.test(e),e=t?e.slice(3):e;Li.hasOwnProperty(e)&&(e=Li[e],i.style[t?"background-color":"color"]=e)}),i.className=o.join(" ")),c.push(n[1]),u.appendChild(i),u=i)):u.appendChild(e.document.createTextNode((s=a,Ai.innerHTML=s,s=Ai.textContent,Ai.textContent="",s)));return l}var Ni=[[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 Mi(e){var t=[],i="";if(e&&e.childNodes)for(s(t,e);i=function e(t){var i,n,r;return t&&t.length?(n=(i=t.pop()).textContent||i.innerText)?(r=n.match(/^.*(\n|\r)/))?r[t.length=0]:n:"ruby"===i.tagName?e(t):i.childNodes?(s(t,i),e(t)):void 0:null}(t);)for(var n=0;n<i.length;n++)if(function(e){for(var t=0;t<Ni.length;t++){var i=Ni[t];if(e>=i[0]&&e<=i[1])return 1}}(i.charCodeAt(n)))return"rtl";return"ltr";function s(e,t){for(var i=t.childNodes.length-1;0<=i;i--)e.push(t.childNodes[i])}}function Ri(){}function Ui(e,t,i){Ri.call(this),this.cue=t,this.cueDiv=Di(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"},r=(this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:Mi(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv),0);switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function ji(e){var t,i,n,r;e.div&&(t=e.div.offsetHeight,i=e.div.offsetWidth,n=e.div.offsetTop,r=(r=(r=e.div.childNodes)&&r[0])&&r.getClientRects&&r.getClientRects(),e=e.div.getBoundingClientRect(),r=r?Math.max(r[0]&&r[0].height||0,e.height/r.length):0),this.left=e.left,this.right=e.right,this.top=e.top||n,this.height=e.height||t,this.bottom=e.bottom||n+(e.height||t),this.width=e.width||i,this.lineHeight=void 0!==r?r:e.lineHeight}function Bi(e,t,a,l){var i,n=new ji(t),r=t.cue,s=function(e){if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,n=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&n++;return-1*++n}(r),o=[];if(r.snapToLines){switch(r.vertical){case"":o=["+y","-y"],i="height";break;case"rl":o=["+x","-x"],i="width";break;case"lr":o=["-x","+x"],i="width"}var u=n.lineHeight,c=u*Math.round(s),d=a[i]+u,h=o[0];Math.abs(c)>d&&(c=c<0?-1:1,c*=Math.ceil(d/u)*u),s<0&&(c+=""===r.vertical?a.height:a.width,o=o.reverse()),n.move(h,c)}else{var p=n.lineHeight/a.height*100;switch(r.lineAlign){case"center":s-=p/2;break;case"end":s-=p}switch(r.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],n=new ji(t)}d=function(e,t){for(var i,n=new ji(e),r=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(a,t[s])||e.within(a)&&e.overlapsAny(l);)e.move(t[s]);if(e.within(a))return e;var o=e.intersectPercentage(a);o<r&&(i=new ji(e),r=o),e=new ji(n)}return i||n}(n,o);
vendor: 10,993 bytes, line 1
1t.move(d.toCSSCompatValues(a))}function Fi(){}Ri.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},Ri.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(Ui.prototype=wi(Ri.prototype)).constructor=Ui,ji.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},ji.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},ji.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},ji.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},ji.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},ji.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},ji.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},ji.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},Fi.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},Fi.convertCueToDOMTree=function(e,t){return e&&t?Di(e,t):null};Fi.processCues=function(e,t,i){if(!e||!t||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=e.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1}(t))for(var r,s,o=[],a=ji.getSimpleBoxPosition(n),l={font:Math.round(.05*a.height*100)/100+"px sans-serif"},u=0;u<t.length;u++)s=t[u],r=new Ui(e,s,l),n.appendChild(r.div),Bi(0,r,a,o),s.displayState=r.div,o.push(ji.getSimpleBoxPosition(r));else for(var c=0;c<t.length;c++)n.appendChild(t[c].displayState)},(Fi.Parser=function(e,t,i){i||(i=t,t={}),t=t||{},this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof ki))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var n=this;function t(){for(var e=n.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var i=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,n.buffer=e.substr(t),i}function i(e){e.match(/X-TIMESTAMP-MAP/)?xi(e,function(e,t){var i;"X-TIMESTAMP-MAP"===e&&(e=t,i=new Ei,xi(e,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",Ci(t))}},/[^\d]:/,/,/),n.ontimestampmap)&&n.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})},/=/):xi(e,function(e,t){var r;"Region"===e&&(e=t,r=new Ei,xi(e,function(e,t){switch(e){case"id":r.set(e,t);break;case"width":r.percent(e,t);break;case"lines":r.integer(e,t);break;case"regionanchor":case"viewportanchor":var i,n=t.split(",");2===n.length&&((i=new Ei).percent("x",n[0]),i.percent("y",n[1]),i.has("x")&&i.has("y"))&&(r.set(e+"X",i.get("x")),r.set(e+"Y",i.get("y")));break;case"scroll":r.alt(e,t,["up"])}},/=/,/\s/),r.has("id"))&&((e=new(n.vttjs.VTTRegion||n.window.VTTRegion)).width=r.get("width",100),e.lines=r.get("lines",3),e.regionAnchorX=r.get("regionanchorX",0),e.regionAnchorY=r.get("regionanchorY",100),e.viewportAnchorX=r.get("viewportanchorX",0),e.viewportAnchorY=r.get("viewportanchorY",100),e.scroll=r.get("scroll",""),n.onregion&&n.onregion(e),n.regionList.push({id:r.get("id"),region:e}))},/:/)}e&&(n.buffer+=n.decoder.decode(e,{stream:!0}));try{if("INITIAL"===n.state){if(!/\r\n|\n/.test(n.buffer))return this;var r,s=(r=t()).match(/^WEBVTT([ \t].*)?$/);if(!s||!s[0])throw new ki(ki.Errors.BadSignature);n.state="HEADER"}for(var o=!1;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(o?o=!1:r=t(),n.state){case"HEADER":/:/.test(r)?i(r):r||(n.state="ID");continue;case"NOTE":r||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){n.state="NOTE";break}if(!r)continue;n.cue=new(n.vttjs.VTTCue||n.window.VTTCue)(0,0,"");try{n.cue.align="center"}catch(e){n.cue.align="middle"}if(n.state="CUE",-1===r.indexOf("--\x3e")){n.cue.id=r;continue}case"CUE":try{!function(t,i,s){var n=t;function e(){var e=Ci(t);if(null===e)throw new ki(ki.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function r(){t=t.replace(/^\s+/,"")}if(r(),i.startTime=e(),r(),"--\x3e"!==t.substr(0,3))throw new ki(ki.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),r(),i.endTime=e(),r();var o=t,a=new Ei;xi(o,function(e,t){switch(e){case"region":for(var i=s.length-1;0<=i;i--)if(s[i].id===t){a.set(e,s[i].region);break}break;case"vertical":a.alt(e,t,["rl","lr"]);break;case"line":var n=t.split(","),r=n[0];a.integer(e,r),a.percent(e,r)&&a.set("snapToLines",!1),a.alt(e,r,["auto"]),2===n.length&&a.alt("lineAlign",n[1],["start","center","end"]);break;case"position":n=t.split(","),a.percent(e,n[0]),2===n.length&&a.alt("positionAlign",n[1],["start","center","end"]);break;case"size":a.percent(e,t);break;case"align":a.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),i.region=a.get("region",null),i.vertical=a.get("vertical","");try{i.line=a.get("line","auto")}catch(e){}i.lineAlign=a.get("lineAlign","start"),i.snapToLines=a.get("snapToLines",!0),i.size=a.get("size",100);try{i.align=a.get("align","center")}catch(e){i.align=a.get("align","middle")}try{i.position=a.get("position","auto")}catch(e){i.position=a.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},i.align)}i.positionAlign=a.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},i.align)}(r,n.cue,n.regionList)}catch(e){n.reportOrThrowError(e),n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":var a=-1!==r.indexOf("--\x3e");if(!r||a&&(o=!0)){n.oncue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}n.cue.text&&(n.cue.text+="\n"),n.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(n.state="ID");continue}}}catch(e){n.reportOrThrowError(e),"CUETEXT"===n.state&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state="INITIAL"===n.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&"HEADER"!==t.state||(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new ki(ki.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}};var Hi=Fi,qi={"":1,lr:1,rl:1},Vi={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Wi(e){return"string"==typeof e&&!!Vi[e.toLowerCase()]&&e.toLowerCase()}function $i(e,t,i){this.hasBeenReset=!1;var n="",r=!1,s=e,o=t,a=i,l=null,u="",c=!0,d="auto",h="start",p="auto",f="auto",m=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(e){n=""+e}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(e){r=!!e}},startTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");s=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");o=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return a},set:function(e){a=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(e){l=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(e){e="string"==typeof(e=e)&&!!qi[e.toLowerCase()]&&e.toLowerCase();if(!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(e){c=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){e=Wi(e);e?(h=e,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return p},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");p=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){e=Wi(e);e?(f=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");m=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){e=Wi(e);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=e,this.hasBeenReset=!0}}}),this.displayState=void 0}$i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var zi=$i,Gi={"":!0,up:!0};function Xi(e){return"number"==typeof e&&0<=e&&e<=100}function Ki(){var t=100,i=3,n=0,r=100,s=0,o=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!Xi(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");i=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!Xi(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!Xi(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!Xi(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!Xi(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return a}
vendor: 3,730 bytes, line 1
1,set:function(e){e="string"==typeof(e=e)&&!!Gi[e.toLowerCase()]&&e.toLowerCase();!1===e?console.warn("Scroll: an invalid or illegal string was specified."):a=e}}})}var Yi=G(function(e){var e=e.exports={WebVTT:Hi,VTTCue:zi,VTTRegion:Ki},t=(si.vttjs=e,si.WebVTT=e.WebVTT,e.VTTCue),i=e.VTTRegion,n=si.VTTCue,r=si.VTTRegion;e.shim=function(){si.VTTCue=t,si.VTTRegion=i},e.restore=function(){si.VTTCue=n,si.VTTRegion=r},si.VTTCue||e.shim()});Yi.WebVTT,Yi.VTTCue,Yi.VTTRegion;var T=function(n){function i(t,e){var i;return void 0===e&&(e=function(){}),(t=void 0===t?{}:t).reportTouchActivity=!1,(i=n.call(this,null,t,e)||this).onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.queuedHanders_=new Set,i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),Ti.names.forEach(function(e){e=Ti[e];t&&t[e.getterName]&&(i[e.privateName]=t[e.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new Ti.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}b(i,n);var e=i.prototype;return e.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},e.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},e.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},e.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(f(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),1===(this.bufferedPercent_=e)&&this.stopTrackingProgress()}),500)},e.onDurationChange=function(e){this.duration_=this.duration()},e.buffered=function(){return Pt(0,0)},e.bufferedPercent=function(){return Ot(this.buffered(),this.duration_)},e.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},e.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},e.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.dispose=function(){this.clearTracks(_i.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),n.prototype.dispose.call(this)},e.clearTracks=function(e){var r=this;
1(e=[].concat(e)).forEach(function(e){for(var t=r[e+"Tracks"]()||[],i=t.length;i--;){var n=t[i];"text"===e&&r.removeRemoteTextTrack(n),t.removeTrack(n)}})},e.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var i=e[t];this.removeRemoteTextTrack(i)}},e.reset=function(){},e.crossOrigin=function(){},e.setCrossOrigin=function(){},e.error=function(e){return void 0!==e&&(this.error_=new Dt(e),this.trigger("error")),this.error_},e.played=function(){return this.hasStarted_?Pt(0,0):Pt()},e.play=function(){},e.setScrubbing=function(){},e.scrubbing=function(){},e.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.initTrackListeners=function(){var r=this;_i.names.forEach(function(e){function t(){r.trigger(e+"trackchange")}var i=_i[e],n=r[i.getterName]();n.addEventListener("removetrack",t),n.addEventListener("addtrack",t),r.on("dispose",function(){n.removeEventListener("removetrack",t),n.removeEventListener("addtrack",t)})})},e.addWebVttScript_=function(){var e,t=this;window.WebVTT||(document.body.contains(this.el())?!this.options_["vtt.js"]&&Z(Yi)&&0<Object.keys(Yi).length?this.trigger("vttjsloaded"):((e=document.createElement("script")).src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){e.onload=null,e.onerror=null}),window.WebVTT=!0,this.el().parentNode.appendChild(e)):this.ready(this.addWebVttScript_))},e.emulateTextTracks=function(){function t(e){return r.addTrack(e.track)}function i(e){return r.removeTrack(e.track)}function n(){o();for(var e=0;e<r.length;e++){var t=r[e];t.removeEventListener("cuechange",o),"showing"===t.mode&&t.addEventListener("cuechange",o)}}var e=this,r=this.textTracks(),s=this.remoteTextTracks(),o=(s.on("addtrack",t),s.on("removetrack",i),this.addWebVttScript_(),function(){return e.trigger("texttrackchange")});n(),r.addEventListener("change",n),r.addEventListener("addtrack",n),r.addEventListener("removetrack",n),this.on("dispose",function(){s.off("addtrack",t),s.off("removetrack",i),r.removeEventListener("change",n),r.removeEventListener("addtrack",n),r.removeEventListener("removetrack",n);for(var e=0;e<r.length;e++)r[e].removeEventListener("cuechange",o)})},e.addTextTrack=function(e,t,i){if(e)return e=e,t=t,i=i,void 0===r&&(r={}),s=(n=this).textTracks(),r.kind=e,t&&(r.label=t),i&&(r.language=i),r.tech=n,e=new Ti.text.TrackClass(r),s.addTrack(e),e;throw new Error("TextTrack kind is required but was not provided");var n,r,s},e.createRemoteTextTrack=function(e){e=g(e,{tech:this});return new bi.remoteTextEl.TrackClass(e)},e.addRemoteTextTrack=function(e,t){var i=this,n=this.createRemoteTextTrack(e=void 0===e?{}:e);return!0!==t&&!1!==t&&(d.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==t&&this.ready(function(){return i.autoRemoteTextTracks_.addTrack(n.track)}),n},e.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},e.getVideoPlaybackQuality=function(){return{}},e.requestPictureInPicture=function(){var e=this.options_.Promise||window.Promise;if(e)return e.reject()},e.disablePictureInPicture=function(){return!0},e.setDisablePictureInPicture=function(){},e.requestVideoFrameCallback=function(e){var t=this,i=et++;return!this.isReady_||this.paused()?(this.queuedHanders_.add(i),this.one("playing",function(){t.queuedHanders_.has(i)&&(t.queuedH
vendor: 4,530 bytes, line 1
1anders_.delete(i),e())})):this.requestNamedAnimationFrame(i,e),i},e.cancelVideoFrameCallback=function(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)},e.setPoster=function(){},e.playsinline=function(){},e.setPlaysinline=function(){},e.overrideNativeAudioTracks=function(){},e.overrideNativeVideoTracks=function(){},e.canPlayType=function(){return""},i.canPlayType=function(){return""},i.canPlaySource=function(e,t){return i.canPlayType(e.type)},i.isTech=function(e){return e.prototype instanceof i||e instanceof i||e===i},i.registerTech=function(e,t){if(i.techs_||(i.techs_={}),!i.isTech(t))throw new Error("Tech "+e+" must be a Tech");if(!i.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(i.canPlaySource)return e=m(e),i.techs_[e]=t,i.techs_[Et(e)]=t,"Tech"!==e&&i.defaultTechOrder_.push(e),t;throw new Error("Techs must have a static canPlaySource method on them")},i.getTech=function(e){if(e)return i.techs_&&i.techs_[e]?i.techs_[e]:(e=m(e),window&&window.videojs&&window.videojs[e]?(d.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window.videojs[e]):void 0)},i}(v),Qi=(Ti.names.forEach(function(e){var t=Ti[e];T.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),T.prototype.featuresVolumeControl=!0,T.prototype.featuresMuteControl=!0,T.prototype.featuresFullscreenResize=!1,T.prototype.featuresPlaybackRate=!1,T.prototype.featuresProgressEvents=!1,T.prototype.featuresSourceset=!1,T.prototype.featuresTimeupdateEvents=!1,T.prototype.featuresNativeTextTracks=!1,T.prototype.featuresVideoFrameCallback=!1,T.withSourceHandlers=function(r){r.registerSourceHandler=function(e,t){var i=(i=r.sourceHandlers)||(r.sourceHandlers=[]);void 0===t&&(t=i.length),i.splice(t,0,e)},r.canPlayType=function(e){for(var t,i=r.sourceHandlers||[],n=0;n<i.length;n++)if(t=i[n].canPlayType(e))return t;return""},r.selectSourceHandler=function(e,t){for(var i=r.sourceHandlers||[],n=0;n<i.length;n++)if(i[n].canHandleSource(e,t))return i[n];return null},r.canPlaySource=function(e,t){var i=r.selectSourceHandler(e,t);return i?i.canHandleSource(e,t):""};["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},r.prototype),r.prototype.setSource=function(e){var t=r.selectSourceHandler(e,this.options_);t||(r.nativeSourceHandler?t=r.nativeSourceHandler:d.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),t!==r.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=t.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},r.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)}},v.registerComponent("Tech",T),T.registerTech("Tech",T),T.defaultTechOrder_=[],{}),Ji={},Zi={};function en(e,t,i){e.setTimeout(function(){return function i(n,e,r,s,o,a){void 0===n&&(n={});void 0===e&&(e=[]);void 0===o&&(o=[]);void 0===a&&(a=!1);var t=e[0],l=e.slice(1);if("string"==typeof t)i(n,Qi[t],r,s,o,a);else if(t){var u=an(s,t);if(!u.setSource)return o.push(u),i(n,l,r,s,o,a);u.setSource(h({},n),function(e,t){if(e)return i(n,l,r,s,o,a);o.push(u),i(t,n.type===t.type?l:Qi[t.type],r,s,o,a)})}else l.length?i(n,l,r,s,o,a):a?r(n,o):i(n,Qi["*"],r,s,o,!0)}(t,Qi[t.type],i,e)},1)}function tn(e,t,i,n){void 0===n&&(n=null);for(var r="call"+m(i),r=e.reduce(on(r),n),n=r===Zi,t=n?null:t[i](r),s=e,o=i,a=t,l=n,u=s.length-1;0<=u;u--){var c=s[u];c[o]&&c[o](l,a)}return t}var nn={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},rn={setCurrentTime:1,setMuted:1,setVolume:1},sn={play:1,pause:1};function on(i){return function(e,t){return e===Zi?Zi:t[i]?t[i](e):e}}function an(e,t){var i=Ji[e.id()],n=null;if(null==i)n=t(e),Ji[e.id()]=[[t,n]];else{for(var r=0;r<i.length;r++){var s=i[r],o=s[0],s=s[1];o===t&&(n=s)}null===n&&(n=t(e),i.push([t,n]))}return n}function ln(e){var t;return e=Array.isArray(e)?(t=[],e.forEach(function(e){e=ln(e),Array.isArray(e)?t=t.concat(e):J(e)&&t.push(e)}
1),t):"string"==typeof e&&e.trim()?[dn({src:e})]:J(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[dn(e)]:[]}var un={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},cn=function(e){e=ti(e=void 0===e?"":e);return un[e.toLowerCase()]||""};function dn(e){var t;return e.type||(t=cn(e.src))&&(e.type=t),e}var r=function(l){function e(e,t,i){var n=g({createEl:!1},t),n=l.call(this,e,n,i)||this;if(t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(var r=0,s=t.playerOptions.techOrder;r<s.length;r++){var o=m(s[r]),a=T.getTech(o);if((a=o?a:v.getComponent(o))&&a.isSupported()){e.loadTech_(o);break}}return n}return b(e,l),e}(v),i=(v.registerComponent("MediaLoader",r),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.options_.controlText&&i.controlText(i.options_.controlText),i.handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}b(e,n);var t=e.prototype;return t.createEl=function(e,t,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={}),t=h({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&d.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=h({role:"button"},i),this.tabIndex_=t.tabIndex;e=c(e,t,i);return e.appendChild(c("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(e),e},t.dispose=function(){this.controlTextEl_=null,n.prototype.dispose.call(this)},t.createControlTextEl=function(e){return this.controlTextEl_=c("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var i=this.localize(e);this.controlText_=e,we(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)},t.buildCSSClass=function(){return"vjs-control vjs-button "+n.prototype.buildCSSClass.call(this)},t.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("keydown",this.handleKeyDown_))},t.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("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},t.handleLanguagechange=function(){this.controlText(this.controlText_)},t.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},t.handleKeyDown=function(e){y.isEventKey(e,"Space")||y.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):n.prototype.handleKeyDown.call(this,e)},e}(v)),o=(v.registerComponent("ClickableComponent",i),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.update(),i.update_=function(e){return i.update(e)},e.on("posterchange",i.update_),i}b(e,n);var t=e.prototype;return t.dispose=function(){this.player().off("posterchange",this.update_),n.prototype.dispose.call(this)},t.createEl=function(){return c("div",{className:"vjs-poster",tabIndex:-1})},t.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.setSrc=function(e){e=e?'url("'+e+'")':"";this.el_.style.backgroundImage=e},t.handleClick=function(e){var t;this.player_.controls()&&(t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length,!this.player_.tech(!0)||(ue||oe)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Ut(this.player_.play()):this.player_.pause())},e}(i)),hn=(v.registerComponent("PosterImage",o),{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',
vendor: 4,779 bytes, line 1
1script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'});function pn(e,t){var i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function fn(e,t,i){try{e.style[t]=i}catch(e){}}function mn(e,t){e=e<0?0:e;var i=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600),s=Math.floor(t/60%60),t=Math.floor(t/3600);return(r=0<(r=!isNaN(e)&&e!==1/0?r:n=i="-")||0<t?r+":":"")+(n=((r||10<=s)&&n<10?"0"+n:n)+":")+(i=i<10?"0"+i:i)}var e=function(s){function e(i,e,t){function n(e){return r.updateDisplay(e)}var r=s.call(this,i,e,t)||this;return i.on("loadstart",function(e){return r.toggleDisplay(e)}),i.on("texttrackchange",n),i.on("loadedmetadata",function(e){return r.preselectTrack(e)}),i.ready(f(_(r),function(){if(i.tech_&&i.tech_.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",n),i.on("playerresize",n),window.addEventListener("orientationchange",n),i.on("dispose",function(){return window.removeEventListener("orientationchange",n)});for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}})),r}b(e,s);var t=e.prototype;return t.preselectTrack=function(){for(var e,t,i,n={captions:1,subtitles:1},r=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,o=0;o<r.length;o++){var a=r[o];s&&s.enabled&&s.language&&s.language===a.language&&a.kind in n?i=a.kind!==s.kind&&i||a:s&&!s.enabled?t=e=i=null:a.default&&("descriptions"!==a.kind||e?a.kind in n&&!t&&(t=a):e=a)}i?i.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},t.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.createEl=function(){return s.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},t.clearDisplay=function(){"function"==typeof window.WebVTT&&window.WebVTT.processCues(window,[],this.el_)},t.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var i=[],n=0;n<e.length;++n){var r=e[n];"showing"===r.mode&&i.push(r)}this.updateForTrack(i)}else{for(var s=null,o=null,a=e.length;a--;){var l=e[a];"showing"===l.mode&&("descriptions"===l.kind?s=l:o=l)}o?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(o)):s&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(s))}},t.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),i=e.activeCues,n=i.length;n--;){var r,s=i[n];s&&(s=s.displayState,t.color&&(s.firstChild.style.color=t.color),t.textOpacity&&fn(s.firstChild,"color",pn(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(s.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&fn(s.firstChild,"backgroundColor",pn(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?fn(s,"backgroundColor",pn(t.windowColor,t.windowOpacity)):s.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent&&(r=window.parseFloat(s.style.fontSize),s.style.fontSize=r*t.fontPercent+"px",s.style.height="auto",s.style.top="auto"),t.fontFamily)&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=hn[t.fontFamily])}},t.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof window.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],i=0;i<e.length;++i)for(var n=e[i],r=0;r<n.activeCues.length;++r)t.push(n.activeCues[r]);window.WebVTT.processCues(window,t,this.el_);for(var s=0;s<e.length;++s){for(var o=e[s],a=0;a<o.activeCues.length;++a){var l=o.activeCues[a].displayState;Ce(l,"vjs-text-track-cue"),Ce(l,"vjs-text-track-cue-"+(o.language||s)),o.language&&Pe(l,"lang",o.language)}this.player_.textTrackSettings&&this.updateDisplayState(o)}}},e}(v),t=(v.registerComponent("TextTrackDisplay",e),function(i){function e(){return i.apply(this,arguments)||this}
1return b(e,i),e.prototype.createEl=function(){var e=this.player_.isAudio(),e=this.localize(e?"Audio Player":"Video Player"),e=c("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[e])}),t=i.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return t.appendChild(e),t},e}(v)),gn=(v.registerComponent("LoadingSpinner",t),function(t){function e(){return t.apply(this,arguments)||this}b(e,t);var i=e.prototype;return i.createEl=function(e,t,i){void 0===t&&(t={}),void 0===i&&(i={});t=c("button",t=h({className:this.buildCSSClass()},t),i=h({type:"button"},i));return t.appendChild(c("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(t),t},i.addChild=function(e,t){void 0===t&&(t={});var i=this.constructor.name;return d.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),v.prototype.addChild.call(this,e,t)},i.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},i.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},i.handleKeyDown=function(e){y.isEventKey(e,"Space")||y.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(i)),a=(v.registerComponent("Button",gn),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.mouseused_=!1,i.on("mousedown",function(e){return i.handleMouseDown(e)}),i}b(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-big-play-button"},t.handleClick=function(e){var t,i=this.player_.play();this.mouseused_&&e.clientX&&e.clientY?(e=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length,Ut(i),!this.player_.tech(!0)||(ue||oe)&&e||this.player_.tech(!0).focus()):(e=this.player_.getChild("controlBar"),(t=e&&e.getChild("playToggle"))?(e=function(){return t.focus()},Rt(i)?i.then(e,function(){}):this.setTimeout(e,1)):this.player_.tech(!0).focus())},t.handleKeyDown=function(e){this.mouseused_=!1,n.prototype.handleKeyDown.call(this,e)},t.handleMouseDown=function(e){this.mouseused_=!0},e}(gn)),n=(a.prototype.controlText_="Play Video",v.registerComponent("BigPlayButton",a),function(i){function e(e,t){e=i.call(this,e,t)||this;return e.controlText(t&&t.controlText||e.localize("Close")),e}b(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-close-button "+i.prototype.buildCSSClass.call(this)},t.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t.handleKeyDown=function(e){y.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):i.prototype.handleKeyDown.call(this,e)},e}(gn)),r=(v.registerComponent("CloseButton",n),function(n){function e(e,t){var i=n.call(this,e,t=void 0===t?{}:t)||this;return t.replay=void 0===t.replay||t.replay,i.on(e,"play",function(e){return i.handlePlay(e)}),i.on(e,"pause",function(e){return i.handlePause(e)}),t.replay&&i.on(e,"ended",function(e){return i.handleEnded(e)}),i}b(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(e){this.player_.paused()?Ut(this.player_.play()):this.player_.pause()},t.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})},e}(gn)),yn=(r.prototype.controlText_="Play",v.registerComponent("PlayToggle",r),mn);function vn(e,t){return yn(e,t=void 0===t?e:t)}function _n(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}function bn(e,t){return _n(e/t*100,0,100).toFixed(2)+"%"}var o=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,["timeupdate","ended"],function(e){return i.updateContent(e)}),i.updateTextNode_(),i}b(e,n);var t=e.prototype;return t.createEl=function(){var e=this.buildCSSClass(),t=n.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control"}),i=c("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return t.appendChild(i),this.contentEl_=c("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),t.appendChild(this.contentEl_),t},t.dispose=function(){this.contentEl_=null,this.textNode_=null,n.prototype.dispose.call(this)},t.updateTextNode_=function(e){var t=this;e=vn(e=void 0===e?0:e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){var e;t.contentEl_&&((e=t.textNode_)&&t.contentEl_.firstChild!==e&&(e=null,d.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=document.createTextNode(t.formattedTime_),t.textNode_)&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}))},t.updateContent=function(e){},e}(v),e=(o.prototype.labelText_="Time",o.prototype.controlText_="Time",v.registerComponent("TimeDisplay",o),function(e){function t(){return e.apply(this,arguments)||this}b(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-current-time"},i.updateContent=function(e){var t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateTextNode_(t)},t}(o)),t=(e.prototype.labelText_="Current Time",e.prototype.controlText_="Current Time",v.registerComponent("CurrentTimeDisplay",e),function(r){function e(e,t){function i(e){return n.updateContent(e)}var n=r.call(this,e,t)||this;
vendor: 12,350 bytes, line 1
1return n.on(e,"durationchange",i),n.on(e,"loadstart",i),n.on(e,"loadedmetadata",i),n}b(e,r);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-duration"},t.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},e}(o)),a=(t.prototype.labelText_="Duration",t.prototype.controlText_="Duration",v.registerComponent("DurationDisplay",t),function(n){function e(){return n.apply(this,arguments)||this}return b(e,n),e.prototype.createEl=function(){var e=n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=n.prototype.createEl.call(this,"div"),i=n.prototype.createEl.call(this,"span",{textContent:"/"});return t.appendChild(i),e.appendChild(t),e},e}(v)),n=(v.registerComponent("TimeDivider",a),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,"durationchange",function(e){return i.updateContent(e)}),i}b(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-remaining-time"},t.createEl=function(){var e=n.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&e.insertBefore(c("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},t.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},e}(o)),r=(n.prototype.labelText_="Remaining Time",n.prototype.controlText_="Remaining Time",v.registerComponent("RemainingTimeDisplay",n),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.updateShowing(),i.on(i.player(),"durationchange",function(e){return i.updateShowing(e)}),i}b(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=c("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(c("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(document.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e},t.dispose=function(){this.contentEl_=null,n.prototype.dispose.call(this)},t.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},e}(v)),e=(v.registerComponent("LiveDisplay",r),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}b(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=c("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},t.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},t.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},t.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,n.prototype.dispose.call(this)},e}(gn)),t=(e.prototype.controlText_="Seek to live, currently playing live",v.registerComponent("SeekToLive",e),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}b(e,n);var t=e.prototype;return t.enabled=function(){return this.enabled_},t.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),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)},t.disable=function(){var e;this.enabled()&&(e=this.bar.el_.ownerDocument,this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1)},t.createEl=function(e,t,i){return void 0===i&&(i={}),(t=void 0===t?{}:t).className=t.className+" vjs-slider",t=h({tabIndex:0},t),i=h({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),n.prototype.createEl.call(this,e,t,i)},t.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||ae||e.preventDefault(),De(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},t.handleMouseMove=function(e){},t.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Ne(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},t.update=function(){var t,i=this;if(this.el_&&this.bar)return(t=this.getProgress())!==this.progress_&&(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var e=i.vertical()?"height":"width";i.bar.el().style[e]=(100*t).toFixed(2)+"%"})),t},t.getProgress=function(){return Number(_n(this.getPercent(),0,1).toFixed(4))},t.calculateDistance=function(e){e=Ue(this.el_,e);return this.vertical()?e.y:e.x},t.handleKeyDown=function(e){y.isEventKey(e,"Left")||y.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):y.isEventKey(e,"Right")||y.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):n.prototype.handleKeyDown.call(this,e)},t.handleClick=function(e){e.stopPropagation(),e.preventDefault()},t.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(v)),a=(v.registerComponent("Slider",t),function(r){function e(e,t){var i=r.call(this,e,t)||this;return i.partEls_=[],i.on(e,"progress",function(e){return i.update(e)}),i}b(e,r);var t=e.prototype;return t.createEl=function(){var e=r.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),t=c("span",{className:"vjs-control-text"}),i=c("span",{textContent:this.localize("Loaded")}),n=document.createTextNode(": ");return this.percentageEl_=c("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(n),t.appendChild(this.percentageEl_),e},t.dispose=function(){this.partEls_=null,this.percentageEl_=null,r.prototype.dispose.call(this)},t.update=function(e){var u=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=u.player_.liveTracker,t=u.player_.buffered(),e=e&&e.isLive()?e.seekableEnd():u.player_.duration(),i=u.player_.bufferedEnd(),n=u.partEls_,e=bn(i,e);u.percent_!==e&&(u.el_.style.width=e,we(u.percentageEl_,e),u.percent_=e);for(var r=0;r<t.length;r++){var s=t.start(r),o=t.end(r),a=n[r];a||(a=u.el_.appendChild(c()),n[r]=a),a.dataset.start===s&&a.dataset.end===o||(a.dataset.start=s,a.dataset.end=o,a.style.left=bn(s,i),a.style.width=bn(o-s,i))}for(var l=n.length;l>t.length;l--)u.el_.removeChild(n[l-1]);n.length=t.length})},e}(v)),o=(v.registerComponent("LoadProgressBar",a),function(i){function e(e,t){e=i.call(this,e,t)||this;return e.update=ct(f(_(e),e.update),30),e}b(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},t.update=function(e,t,i){var n,r=Re(this.el_),s=Me(this.player_.el()),t=e.width*t;s&&r&&(n=e.left-s.left+t,t=e.width-t+(s.right-e.right),n<(s=r.width/2)?s+=s-n:t<s&&(s=t),s<0?s=0:s>r.width&&(s=r.width),s=Math.round(s),this.el_.style.right="-"+s+"px",this.write(i))},t.write=function(e){we(this.el_,e)},t.updateTime=function(n,r,s,o){var a=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var e,t,i=a.player_.duration();t=a.player_.liveTracker&&a.player_.liveTracker.isLive()?((t=(e=a.player_.liveTracker.liveWindow())-r*e)<1?"":"-")+vn(t,e):vn(s,i),a.update(n,r,t),o&&o()})},e}(v)),n=(v.registerComponent("TimeTooltip",o),function(i){function e(e,t){e=i.call(this,e,t)||this;return e.update=ct(f(_(e),e.update),30),e}b(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},t.update=function(e,t){var i,n=this.getChild("timeTooltip");n&&(i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n.updateTime(e,t,i))},e}(v)),r=(n.prototype.options_={children:[]},p||ie||n.prototype.options_.children.push("timeTooltip"),v.registerComponent("PlayProgressBar",n),function(i){function e(e,t){e=i.call(this,e,t)||this;return e.update=ct(f(_(e),e.update),30),e}b(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.update=function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,function(){i.el_.style.left=e.width*t+"px"})},e}(v)),e=(r.prototype.options_={children:["timeTooltip"]},v.registerComponent("MouseTimeDisplay",r),function(s){function e(e,t){e=s.call(this,e,t)||this;return e.setEventHandlers_(),e}b(e,s);var t=e.prototype;return t.setEventHandlers_=function(){var t=this;this.update_=f(this,this.update),this.update=ct(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(e){return t.enableInterval_(e)},this.disableIntervalHandler_=function(e){return t.disableInterval_(e)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.on(document,"visibilitychange",this.toggleVisibility_)},t.toggleVisibility_=function(e){"hidden"===document.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},t.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},t.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},t.createEl=function(){return s.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.update=function(e){var n,r=this;if("hidden"!==document.visibilityState)return n=s.prototype.update.call(this),this.requestNamedAnimationFrame("SeekBar#update",function(){var e=r.player_.ended()?r.player_.duration():r.getCurrentTime_(),t=r.player_.liveTracker,i=r.player_.duration();
1t&&t.isLive()&&(i=r.player_.liveTracker.liveCurrentTime()),r.percent_!==n&&(r.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),r.percent_=n),r.currentTime_===e&&r.duration_===i||(r.el_.setAttribute("aria-valuetext",r.localize("progress bar timing: currentTime={1} duration={2}",[vn(e,i),vn(i,i)],"{1} of {2}")),r.currentTime_=e,r.duration_=i),r.bar&&r.bar.update(Me(r.el()),r.getProgress())}),n},t.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},t.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.getPercent=function(){var e,t=this.getCurrentTime_(),i=this.player_.liveTracker;return i&&i.isLive()?(e=(t-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},t.handleMouseDown=function(e){Ve(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),s.prototype.handleMouseDown.call(this,e))},t.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),Ve(e)){t||this.player_.scrubbing()||this.player_.scrubbing(!0);t=this.calculateDistance(e),e=this.player_.liveTracker;if(e&&e.isLive()){if(.99<=t)return void e.seekToLiveEdge();var i,n=e.seekableStart(),r=e.liveCurrentTime();if((i=(i=r<=(i=n+t*e.liveWindow())?r:i)<=n?n+.1:i)===1/0)return}else(i=t*this.player_.duration())===this.player_.duration()&&(i-=.1);this.userSeek_(i)}},t.enable=function(){s.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},t.disable=function(){s.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},t.handleMouseUp=function(e){s.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Ut(this.player_.play()):this.update_()},t.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},t.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},t.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.handleKeyDown=function(e){var t,i=this.player_.liveTracker;y.isEventKey(e,"Space")||y.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.handleAction(e)):y.isEventKey(e,"Home")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(0)):y.isEventKey(e,"End")?(e.preventDefault(),e.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration())):/^[0-9]$/.test(y(e))?(e.preventDefault(),e.stopPropagation(),t=10*(y.codes[y(e)]-y.codes[0])/100,i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*t):this.userSeek_(this.player_.duration()*t)):y.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):y.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):s.prototype.handleKeyDown.call(this,e)}
1,t.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.off(document,"visibilitychange",this.toggleVisibility_),s.prototype.dispose.call(this)},e}(t)),a=(e.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},p||ie||e.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),v.registerComponent("SeekBar",e),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleMouseMove=ct(f(_(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=ct(f(_(i),i.handleMouseSeek),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}b(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.handleMouseMove=function(e){var t,i,n,r,s=this.getChild("seekBar");s&&(t=s.getChild("playProgressBar"),i=s.getChild("mouseTimeDisplay"),t||i)&&(n=Re(r=s.el()),r=Ue(r,e).x,r=_n(r,0,1),i&&i.update(n,r),t)&&t.update(n,s.getProgress())},t.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.enabled=function(){return this.enabled_},t.disable=function(){var e;
1this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())&&(e=this.getChild("seekBar"),this.player_.scrubbing(!1),e.videoWasPlaying)&&Ut(this.player_.play())},t.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},t.handleMouseDown=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},t.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},e}(v)),o=(a.prototype.options_={children:["seekBar"]},v.registerComponent("ProgressControl",a),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,["enterpictureinpicture","leavepictureinpicture"],function(e){return i.handlePictureInPictureChange(e)}),i.on(e,["disablepictureinpicturechanged","loadedmetadata"],function(e){return i.handlePictureInPictureEnabledChange(e)}),i.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){"audio"===e.currentType().substring(0,5)||e.audioPosterMode()||e.audioOnlyMode()?(e.isInPictureInPicture()&&e.exitPictureInPicture(),i.hide()):i.show()}),i.disable(),i}b(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-picture-in-picture-control "+n.prototype.buildCSSClass.call(this)},t.handlePictureInPictureEnabledChange=function(){document.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},t.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},t.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(gn)),n=(o.prototype.controlText_="Picture-in-Picture",v.registerComponent("PictureInPictureToggle",o),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,"fullscreenchange",function(e){return i.handleFullscreenChange(e)}),!1===document[e.fsApi_.fullscreenEnabled]&&i.disable(),i}b(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},t.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(gn)),r=(n.prototype.controlText_="Fullscreen",v.registerComponent("FullscreenToggle",n),v.registerComponent("VolumeLevel",function(t){function e(){return t.apply(this,arguments)||this}return b(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return e.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),e},e}(v)),function(i){function e(e,t){e=i.call(this,e,t)||this;return e.update=ct(f(_(e),e.update),30),e}b(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},t.update=function(e,t,i,n){if(!i){var i=Me(this.el_),r=Me(this.player_.el()),t=e.width*t;if(!r||!i)return;var s=e.left-r.left+t,t=e.width-t+(r.right-e.right),r=i.width/2;s<r?r+=r-s:t<r&&(r=t),r<0?r=0:r>i.width&&(r=i.width),this.el_.style.right="-"+r+"px"}this.write(n+"%")},t.write=function(e){we(this.el_,e)},t.updateVolume=function(e,t,i,n,r){var s=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){s.update(e,t,i,n.toFixed(0)),r&&r()})},e}
1(v)),e=(v.registerComponent("VolumeLevelTooltip",r),function(i){function e(e,t){e=i.call(this,e,t)||this;return e.update=ct(f(_(e),e.update),30),e}b(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.update=function(e,t,i){var n=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,r,function(){i?n.el_.style.bottom=e.height*t+"px":n.el_.style.left=e.width*t+"px"})},e}(v)),a=(e.prototype.options_={children:["volumeLevelTooltip"]},v.registerComponent("MouseVolumeLevelDisplay",e),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on("slideractive",function(e){return i.updateLastVolume_(e)}),i.on(e,"volumechange",function(e){return i.updateARIAAttributes(e)}),e.ready(function(){return i.updateARIAAttributes()}),i}b(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.handleMouseDown=function(e){Ve(e)&&n.prototype.handleMouseDown.call(this,e)},t.handleMouseMove=function(e){var t,i,n,r=this.getChild("mouseVolumeLevelDisplay");r&&(t=Me(n=this.el()),i=this.vertical(),n=Ue(n,e),n=i?n.y:n.x,n=_n(n,0,1),r.update(t,n,i)),Ve(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},e}(t)),o=(a.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},p||ie||a.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),a.prototype.playerEvent="volumechange",v.registerComponent("VolumeBar",a),function(s){function e(e,t){var i,n,r;return(t=void 0===t?{}:t).vertical=t.vertical||!1,void 0!==t.volumeBar&&!Z(t.volumeBar)||(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),i=s.call(this,e,t)||this,n=_(i),(r=e).tech_&&!r.tech_.featuresVolumeControl&&n.addClass("vjs-hidden"),n.on(r,"loadstart",function(){r.tech_.featuresVolumeControl?n.removeClass("vjs-hidden"):n.addClass("vjs-hidden")}),i.throttledHandleMouseMove=ct(f(_(i),i.handleMouseMove),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",function(e){return i.handleMouseDown(e)}),i.on("touchstart",function(e){return i.handleMouseDown(e)}),i.on("mousemove",function(e){return i.handleMouseMove(e)}),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}b(e,s);var t=e.prototype;return t.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),s.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},t.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},t.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},t.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},e}(v)),n=(o.prototype.options_={children:["volumeBar"]}
1,v.registerComponent("VolumeControl",o),function(s){function e(e,t){var i,n,r=s.call(this,e,t)||this;return i=_(r),(n=e).tech_&&!n.tech_.featuresMuteControl&&i.addClass("vjs-hidden"),i.on(n,"loadstart",function(){n.tech_.featuresMuteControl?i.removeClass("vjs-hidden"):i.addClass("vjs-hidden")}),r.on(e,["loadstart","volumechange"],function(e){return r.update(e)}),r}b(e,s);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-mute-control "+s.prototype.buildCSSClass.call(this)},t.handleClick=function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();0===t?(this.player_.volume(i<.1?.1:i),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},t.update=function(e){this.updateIcon_(),this.updateControlText_()},t.updateIcon_=function(){var e=this.player_.volume(),t=3;p&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)Ee(this.el_,"vjs-vol-"+i);Ce(this.el_,"vjs-vol-"+t)},t.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},e}(gn)),r=(n.prototype.controlText_="Mute",v.registerComponent("MuteToggle",n),function(n){function e(e,t){var i;return void 0!==(t=void 0===t?{}:t).inline?t.inline=t.inline:t.inline=!0,void 0!==t.volumeControl&&!Z(t.volumeControl)||(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),(i=n.call(this,e,t)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(e,["loadstart"],function(e){return i.volumePanelState_(e)}),i.on(i.muteToggle,"keyup",function(e){return i.handleKeyPress(e)}),i.on(i.volumeControl,"keyup",function(e){return i.handleVolumeControlKeyUp(e)}),i.on("keydown",function(e){return i.handleKeyPress(e)}),i.on("mouseover",function(e){return i.handleMouseOver(e)}),i.on("mouseout",function(e){return i.handleMouseOut(e)}),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}b(e,n);var t=e.prototype;return t.sliderActive_=function(){this.addClass("vjs-slider-active")},t.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},t.dispose=function(){this.handleMouseOut(),n.prototype.dispose.call(this)},t.handleVolumeControlKeyUp=function(e){y.isEventKey(e,"Esc")&&this.muteToggle.focus()},t.handleMouseOver=function(e){this.addClass("vjs-hover"),ot(document,"keyup",this.handleKeyPressHandler_)},t.handleMouseOut=function(e){this.removeClass("vjs-hover"),u(document,"keyup",this.handleKeyPressHandler_)},t.handleKeyPress=function(e){y.isEventKey(e,"Esc")&&this.handleMouseOut()},e}(v)),Tn=(r.prototype.options_={children:["muteToggle","volumeControl"]},v.registerComponent("VolumePanel",r),function(n){function e(e,t){var i=n.call(this,e,t)||this;return t&&(i.menuButton_=t.menuButton),i.focusedChild_=-1,i.on("keydown",function(e){return i.handleKeyDown(e)}),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}b(e,n);var t=e.prototype;return t.addEventListenerForItem=function(e){e instanceof v&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},t.removeEventListenerForItem=function(e){e instanceof v&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},t.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),n.prototype.removeChild.call(this,e)},t.addItem=function(e){e=this.addChild(e);e&&this.addEventListenerForItem(e)},t.createEl=function(){var e=this.options_.contentElType||"ul",e=(this.contentEl_=c(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu"),n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"}));return e.appendChild(this.contentEl_),ot(e,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),e},t.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,n.prototype.dispose.call(this)},t.handleBlur=function(e){var t=e.relatedTarget||document.activeElement;this.children().some(function(e){return e.el()===t})||(e=this.menuButton_)&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()},t.handleTapClick=function(t){var e;this.menuButton_&&(this.menuButton_.unpressButton(),e=this.children(),Array.isArray(e))&&(e=e.filter(function(e){return e.el()===t.target})[0])&&"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus()},t.handleKeyDown=function(e){y.isEventKey(e,"Left")||y.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(y.isEventKey(e,"Right")||y.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},t.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),0<t.length&&(e<0?e=0:e>=t.length&&(e=t.length-1),t[this.focusedChild_=e].el_.focus())},e}(v)),e=(v.registerComponent("Menu",Tn),function(r){function e(e,t){function i(e){return n.handleClick(e)}(n=r.call(this,e,t=void 0===t?{}:t)||this).menuButton_=new gn(e,t),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var n,e=gn.prototype.buildCSSClass();n.menuButton_.el_.className=n.buildCSSClass()+" "+e,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0;return n.handleMenuKeyUp_=function(e){return n.handleMenuKeyUp(e)},n.on(n.menuButton_,"tap",i),n.on(n.menuButton_,"click",i),n.on(n.menuButton_,"keydown",function(e){return n.handleKeyDown(e)}),n.on(n.menuButton_,"mouseenter",function(){n.addClass("vjs-hover"),n.menu.show(),ot(document,"keyup",
1n.handleMenuKeyUp_)}),n.on("mouseleave",function(e){return n.handleMouseLeave(e)}),n.on("keydown",function(e){return n.handleSubmenuKeyDown(e)}),n}b(e,r);var t=e.prototype;return t.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},t.createMenu=function(){var e,t=new Tn(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title&&(e=c("li",{className:"vjs-menu-title",textContent:m(this.options_.title),tabIndex:-1}),e=new v(this.player_,{el:e}),t.addItem(e)),this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)t.addItem(this.items[i]);return t},t.createItems=function(){},t.createEl=function(){return r.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.buildWrapperCSSClass=function(){var e="vjs-menu-button",t=(!0===this.options_.inline?e+="-inline":e+="-popup",gn.prototype.buildCSSClass());return"vjs-menu-button "+e+" "+t+" "+r.prototype.buildCSSClass.call(this)},t.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+r.prototype.buildCSSClass.call(this)},t.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},t.dispose=function(){this.handleMouseLeave(),r.prototype.dispose.call(this)},t.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},t.handleMouseLeave=function(e){this.removeClass("vjs-hover"),u(document,"keyup",this.handleMenuKeyUp_)},t.focus=function(){this.menuButton_.focus()},t.blur=function(){this.menuButton_.blur()},t.handleKeyDown=function(e){y.isEventKey(e,"Esc")||y.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),y.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):!y.isEventKey(e,"Up")&&!y.isEventKey(e,"Down")||this.buttonPressed_||(e.preventDefault(),this.pressButton())},t.handleMenuKeyUp=function(e){(y.isEventKey(e,"Esc")||y.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},t.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},t.handleSubmenuKeyDown=function(e){(y.isEventKey(e,"Esc")||y.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),y.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},t.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),p&&be()||this.menu.focus())},t.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(v)),t=(v.registerComponent("MenuButton",e),function(r){function e(e,t){var i,n=t.tracks,e=r.call(this,e,t)||this;return e.items.length<=1&&e.hide(),n?(i=f(_(e),e.update),n.addEventListener("removetrack",i),n.addEventListener("addtrack",i),n.addEventListener("labelchange",i),e.player_.on("ready",i),e.player_.on("dispose",function(){n.removeEventListener("removetrack",i),n.removeEventListener("addtrack",i),n.removeEventListener("labelchange",i)}),e):_(e)}return b(e,r),e}(e)),wn=(v.registerComponent("TrackButton",t),["Tab","Esc","Up","Down","Right","Left"]),a=function(n){function e(e,t){e=n.call(this,e,t)||this;return e.selectable=t.selectable,e.isSelected_=t.selected||!1,e.multiSelectable=t.multiSelectable,e.selected(e.isSelected_),e.selectable?e.multiSelectable?e.el_.setAttribute("role","menuitemcheckbox"):e.el_.setAttribute("role","menuitemradio"):e.el_.setAttribute("role","menuitem"),e}b(e,n);var t=e.prototype;
1return t.createEl=function(e,t,i){this.nonIconControl=!0;t=n.prototype.createEl.call(this,"li",h({className:"vjs-menu-item",tabIndex:-1},t),i);return t.replaceChild(c("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),t.querySelector(".vjs-icon-placeholder")),t},t.handleKeyDown=function(t){wn.some(function(e){return y.isEventKey(t,e)})||n.prototype.handleKeyDown.call(this,t)},t.handleClick=function(e){this.selected(!0)},t.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(i),Sn=(v.registerComponent("MenuItem",a),function(l){function e(e,t){function i(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];r.handleTracksChange.apply(_(r),t)}function n(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];r.handleSelectedLanguageChange.apply(_(r),t)}var r,s,o=t.track,a=e.textTracks();t.label=o.label||o.language||"Unknown",t.selected="showing"===o.mode,(r=l.call(this,e,t)||this).track=o,r.kinds=(t.kinds||[t.kind||r.track.kind]).filter(Boolean);return e.on(["loadstart","texttrackchange"],i),a.addEventListener("change",i),a.addEventListener("selectedlanguagechange",n),r.on("dispose",function(){e.off(["loadstart","texttrackchange"],i),a.removeEventListener("change",i),a.removeEventListener("selectedlanguagechange",n)}),void 0===a.onchange&&r.on(["tap","click"],function(){if("object"!=typeof window.Event)try{s=new window.Event("change")}catch(e){}s||(s=document.createEvent("Event")).initEvent("change",!0,!0),a.dispatchEvent(s)}),r.handleTracksChange(),r}b(e,l);var t=e.prototype;return t.handleClick=function(e){var t=this.track,i=this.player_.textTracks();if(l.prototype.handleClick.call(this,e),i)for(var n=0;n<i.length;n++){var r=i[n];-1!==this.kinds.indexOf(r.kind)&&(r===t?"showing"!==r.mode&&(r.mode="showing"):"disabled"!==r.mode&&(r.mode="disabled"))}},t.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.handleSelectedLanguageChange=function(e){var t;"showing"!==this.track.mode||(t=this.player_.cache_.selectedLanguage)&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind||(this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind})},t.dispose=function(){this.track=null,l.prototype.dispose.call(this)},e}(a)),kn=(v.registerComponent("TextTrackMenuItem",Sn),function(i){function e(e,t){return t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,i.call(this,e,t)||this}b(e,i);var t=e.prototype;return t.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var s=t[n];if(-1<this.options_.kinds.indexOf(s.kind)&&"showing"===s.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},t.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var s=t[n];if(-1<["captions","descriptions","subtitles"].indexOf(s.kind)&&"showing"===s.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(Sn)),o=(v.registerComponent("OffTextTrackMenuItem",kn),function(i){function e(e,t){return(t=void 0===t?{}:t).tracks=e.textTracks(),i.call(this,e,t)||this}return b(e,i),e.prototype.createItems=function(e,t){void 0===t&&(t=Sn),this.label_&&(i=this.label_+" off"),(e=void 0===e?[]:e).push(new kn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var i,n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<n.length;r++){var s,o=n[r];-1<this.kinds_.indexOf(o.kind)&&((s=new t(this.player_,{track:o,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1})).addClass("vjs-"+o.kind+"-menu-item"),e.push(s))}return e},e}(t)),Cn=(v.registerComponent("TextTrackButton",o),function(s){function e(e,t){var i=t.track,n=t.cue,r=e.currentTime();return t.selectable=!0,t.multiSelectable=!1,t.label=n.text,t.selected=n.startTime<=r&&r<n.endTime,(r=s.call(this,e,t)||this).track=i,r.cue=n,r}return b(e,s),e.prototype.handleClick=function(e){s.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},e}(a)),n=(v.registerComponent("ChaptersTrackMenuItem",Cn),function(r){function e(e,t,i){var n=r.call(this,e,t,i)||this;
1return n.selectCurrentItem_=function(){n.items.forEach(function(e){e.selected(n.track_.activeCues[0]===e.cue)})},n}b(e,r);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-chapters-button "+r.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-chapters-button "+r.prototype.buildWrapperCSSClass.call(this)},t.update=function(e){e&&e.track&&"chapters"!==e.track.kind||((e=this.findChaptersTrack())!==this.track_?(this.setTrack(e),r.prototype.update.call(this)):(!this.items||e&&e.cues&&e.cues.length!==this.items.length)&&r.prototype.update.call(this))},t.setTrack=function(e){var t;this.track_!==e&&(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_&&((t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null),this.track_=e,this.track_)&&(this.track_.mode="hidden",(t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&t.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_))}
vendor: 10,467 bytes, line 1
1,t.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;0<=t;t--){var i=e[t];if(i.kind===this.kind_)return i}},t.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(m(this.kind_))},t.createMenu=function(){return this.options_.title=this.getMenuCaption(),r.prototype.createMenu.call(this)},t.createItems=function(){var e=[];if(this.track_){var t=this.track_.cues;if(t)for(var i=0,n=t.length;i<n;i++){var r=t[i],r=new Cn(this.player_,{track:this.track_,cue:r});e.push(r)}}return e},e}(o)),r=(n.prototype.kind_="chapters",n.prototype.controlText_="Chapters",v.registerComponent("ChaptersButton",n),function(s){function e(e,t,i){var t=s.call(this,e,t,i)||this,n=e.textTracks(),r=f(_(t),t.handleTracksChange);return n.addEventListener("change",r),t.on("dispose",function(){n.removeEventListener("change",r)}),t}b(e,s);var t=e.prototype;return t.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!1,n=0,r=t.length;n<r;n++){var s=t[n];if(s.kind!==this.kind_&&"showing"===s.mode){i=!0;break}}i?this.disable():this.enable()},t.buildCSSClass=function(){return"vjs-descriptions-button "+s.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+s.prototype.buildWrapperCSSClass.call(this)},e}(o)),i=(r.prototype.kind_="descriptions",r.prototype.controlText_="Descriptions",v.registerComponent("DescriptionsButton",r),function(n){function e(e,t,i){return n.call(this,e,t,i)||this}b(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildWrapperCSSClass.call(this)},e}(o)),En=(i.prototype.kind_="subtitles",i.prototype.controlText_="Subtitles",v.registerComponent("SubtitlesButton",i),function(i){function e(e,t){return t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",(e=i.call(this,e,t)||this).addClass("vjs-texttrack-settings"),e.controlText(", opens "+t.kind+" settings dialog"),e}return b(e,i),e.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},e}(Sn)),n=(v.registerComponent("CaptionSettingsMenuItem",En),function(n){function e(e,t,i){return n.call(this,e,t,i)||this}b(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-captions-button "+n.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new En(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),n.prototype.createItems.call(this,e)},e}(o)),xn=(n.prototype.kind_="captions",n.prototype.controlText_="Captions",v.registerComponent("CaptionsButton",n),function(n){function e(){return n.apply(this,arguments)||this}return b(e,n),e.prototype.createEl=function(e,t,i){e=n.prototype.createEl.call(this,e,t,i),t=e.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(t.appendChild(c("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),t.appendChild(c("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),e},e}(Sn)),r=(v.registerComponent("SubsCapsMenuItem",xn),function(i){function e(e,t){return(e=i.call(this,e,t=void 0===t?{}:t)||this).label_="subtitles",-1<["en","en-us","en-ca","fr-ca"].indexOf(e.player_.language_)&&(e.label_="captions"),e.menuButton_.controlText(m(e.label_)),e}b(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-subs-caps-button "+i.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+i.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new En(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=i.prototype.createItems.call(this,e,xn)},e}(o)),An=(r.prototype.kinds_=["captions","subtitles"],r.prototype.controlText_="Subtitles",v.registerComponent("SubsCapsButton",r),function(o){function e(e,t){function i(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(_(n),t)}var n,r=t.track,s=e.audioTracks();t.label=r.label||r.language||"Unknown",t.selected=r.enabled,(n=o.call(this,e,t)||this).track=r,n.addClass("vjs-"+r.kind+"-menu-item");return s.addEventListener("change",i),n.on("dispose",function(){s.removeEventListener("change",i)}),n}b(e,o);var t=e.prototype;return t.createEl=function(e,t,i){e=o.prototype.createEl.call(this,e,t,i),t=e.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(t.appendChild(c("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),t.appendChild(c("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),e},t.handleClick=function(e){if(o.prototype.handleClick.call(this,e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var t=this.player_.audioTracks(),i=0;i<t.length;i++){var n=t[i];n!==this.track&&(n.enabled=n===this.track)}},t.handleTracksChange=function(e){this.selected(this.track.enabled)},e}(a)),i=(v.registerComponent("AudioTrackMenuItem",An),function(i){function e(e,t){return(t=void 0===t?{}:t).tracks=e.audioTracks(),i.call(this,e,t)||this}b(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-audio-button "+i.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-audio-button "+i.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),i=0;i<t.length;i++){var n=t[i];e.push(new An(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return e},e}(t)),In=(i.prototype.controlText_="Audio Track",v.registerComponent("AudioTrackButton",i),function(s){function e(e,t){var i,n=t.rate,r=parseFloat(n,10);return t.label=n,t.selected=r===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,(i=s.call(this,e,t)||this).label=n,i.rate=r,i.on(e,"ratechange",function(e){return i.update(e)}),i}b(e,s);var t=e.prototype;return t.handleClick=function(e){s.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.update=function(e){this.selected(this.player().playbackRate()===this.rate)},e}(a)),n=(In.prototype.contentElType="button",v.registerComponent("PlaybackRateMenuItem",In),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(e,"loadstart",function(e){return i.updateVisibility(e)}),i.on(e,"ratechange",function(e){return i.updateLabel(e)}),i.on(e,"playbackrateschange",function(e){return i.handlePlaybackRateschange(e)}),i}b(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=c("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e},t.dispose=function(){this.labelEl_=null,n.prototype.dispose.call(this)},t.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){for(var e=this.playbackRates(),t=[],i=e.length-1;0<=i;i--)t.push(new In(this.player(),{rate:e[i]+"x"}));return t},t.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.handleClick=function(e){var t=this.player().playbackRate(),i=this.playbackRates(),t=(i.indexOf(t)+1)%i.length;this.player().playbackRate(i[t])},t.handlePlaybackRateschange=function(e){this.update()},t.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},t.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0<this.playbackRates().length},t.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},e}(e)),o=(n.prototype.controlText_="Playback Rate",v.registerComponent("PlaybackRateMenuButton",n),function(n){function e(){return n.apply(this,arguments)||this}b(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},t.createEl=function(e,t,i){return void 0===e&&(e="div"),void 0===i&&(i={}),(t=void 0===t?{}:t).className||(t.className=this.buildCSSClass()),n.prototype.createEl.call(this,e,t,i)},e}(v)),r=(v.registerComponent("Spacer",o),function(e){function t(){return e.apply(this,arguments)||this}b(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(o)),t=(v.registerComponent("CustomControlSpacer",r),function(e){function t(){return e.apply(this,arguments)||this}return b(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(v)),i=(t.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in document&&t.prototype.options_.children.splice(t.prototype.options_.children.length-1,0,"pictureInPictureToggle"),v.registerComponent("ControlBar",t),function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,"error",function(e){return i.open(e)}),i}b(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.content=function(){var e=this.player().error();return e?this.localize(e.message):""},e}(Vt)),Ln=(i.prototype.options_=K({}
vendor: 5,368 bytes, line 1
1,Vt.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),v.registerComponent("ErrorDisplay",i),"vjs-text-track-settings"),a=["#000","Black"],e=["#00F","Blue"],n=["#0FF","Cyan"],o=["#0F0","Green"],r=["#F0F","Magenta"],t=["#F00","Red"],i=["#FFF","White"],Pn=["#FF0","Yellow"],On=["1","Opaque"],Dn=["0.5","Semi-Transparent"],w=["0","Transparent"],Nn={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[a,i,t,o,e,Pn,r,n]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[On,Dn,w]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[i,a,t,o,e,Pn,r,n]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[On,Dn]},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:[w,Dn,On]}};function Mn(e,t){if((e=t?t(e):e)&&"none"!==e)return e}Nn.windowColor.options=Nn.backgroundColor.options;function Rn(s){var t,e,i,o=s.el();o.resetSourceWatch_||(t={},e=Wn(s),i=function(r){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=r.apply(o,t);return Hn(s),n}},["append","appendChild","insertAdjacentHTML"].forEach(function(e){o[e]&&(t[e]=o[e],o[e]=i(t[e]))}),Object.defineProperty(o,"innerHTML",g(e,{set:i(e.set)})),o.resetSourceWatch_=function(){o.resetSourceWatch_=null,Object.keys(t).forEach(function(e){o[e]=t[e]}),Object.defineProperty(o,"innerHTML",e)},s.one("sourceset",o.resetSourceWatch_))}function Un(i){var n,t,r,s;i.featuresSourceset&&!(n=i.el()).resetSourceset_&&(t=Vn([i.el(),window.HTMLMediaElement.prototype,$n],"src"),r=n.setAttribute,s=n.load,Object.defineProperty(n,"src",g(t,{set:function(e){e=t.set.call(n,e);return i.triggerSourceset(n.src),e}})),n.setAttribute=function(e,t){t=r.call(n,e,t);return/src/i.test(e)&&i.triggerSourceset(n.src),t},n.load=function(){var e=s.call(n);return Hn(i)||(i.triggerSourceset(""),Rn(i)),e},n.currentSrc?i.triggerSourceset(n.currentSrc):Hn(i)||Rn(i),n.resetSourceset_=function(){n.resetSourceset_=null,n.load=s,n.setAttribute=r,Object.defineProperty(n,"src",t),n.resetSourceWatch_&&n.resetSourceWatch_()})}function jn(t,i,n,e){function r(e){return Object.defineProperty(t,i,{value:e,enumerable:!0,writable:!0})}var s={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return(e=void 0===e?!0:e)&&(s.set=r),Object.defineProperty(t,i,s)}var Bn,i=function(n){function e(e,t){var i;return t.temporary=!1,(i=n.call(this,e,t)||this).updateDisplay=i.updateDisplay.bind(_(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=c("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===t.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),Q(Nn,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}b(e,n);var t=e.prototype;return t.dispose=function(){this.endDialog=null,n.prototype.dispose.call(this)},t.createElSelect_=function(e,t,i){var n=this,e=(void 0===t&&(t=""),void 0===i&&(i="label"),Nn[e]),r=e.id.replace("%s",this.id_),s=[t,r].join(" ").trim();return["<"+i+' id="'+r+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(e.label),"</"+i+">",'<select aria-labelledby="'+s+'">'].concat(e.options.map(function(e){var t=r+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+t+'">',n.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},t.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">
1',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.createElColors_=function(){return c("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.createElFont_=function(){return c("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("")})},t.createElControls_=function(){var e=this.localize("restore all settings to the default values");return c("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.label=function(){return this.localize("Caption Settings Dialog")},t.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.buildCSSClass=function(){return n.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.getValues=function(){var i,n,e,r=this;return n=function(e,t,i){n=r.$(t.selector),t=t.parser;var n=Mn(n.options[n.options.selectedIndex].value,t);return void 0!==n&&(e[i]=n),e},void 0===(e={})&&(e=0),X(i=Nn).reduce(function(e,t){return n(e,i[t],t)},e)},t.setValues=function(o){var a=this;Q(Nn,function(e,t){var i=a.$(e.selector),n=o[t],r=e.parser;if(n)for(var s=0;s<i.options.length;s++)if(Mn(i.options[s].value,r)===n){i.selectedIndex=s;break}})},t.setDefaults=function(){var i=this;Q(Nn,function(e){var t=e.hasOwnProperty("default")?e.default:0;i.$(e.selector).selectedIndex=t})},t.restoreSettings=function(){var e;try{e=JSON.parse(window.localStorage.getItem(Ln))}catch(e){d.warn(e)}e&&this.setValues(e)},t.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?window.localStorage.setItem(Ln,JSON.stringify(e)):window.localStorage.removeItem(Ln)}catch(e){d.warn(e)}}},t.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,e=e&&e.captionsButton;t?t.focus():e&&e.focus()},e}(Vt),a=(v.registerComponent("TextTrackSettings",i),function(s){function e(e,t){var i=t.ResizeObserver||window.ResizeObserver,n=g({createEl:!(i=null===t.ResizeObserver?!1:i),reportTouchActivity:!1},t),r=s.call(this,e,n)||this;return r.ResizeObserver=t.ResizeObserver||window.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=dt(function(){r.resizeHandler()},100,!1,_(r)),i?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(e.el())):(r.loadListener_=function(){var e,t;r.el_&&r.el_.contentWindow&&(e=r.debouncedHandler_,t=r.unloadListener_=function(){u(this,"resize",e),u(this,"unload",t),t=null},ot(r.el_.contentWindow,"unload",t),ot(r.el_.contentWindow,"resize",e))},r.one("load",r.loadListener_)),r}b(e,s);var t=e.prototype;return t.createEl=function(){return s.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},t.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}
vendor: 5,004 bytes, line 1
1,t.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,s.prototype.dispose.call(this)},e}(v)),Fn=(v.registerComponent("ResizeManager",a),{trackingThreshold:20,liveTolerance:15}),t=function(n){function e(e,t){var t=g(Fn,t,{createEl:!1}),i=n.call(this,e,t)||this;return i.handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",function(e){return i.handleDurationchange(e)}),i.on(i.player_,"canplay",function(){return i.toggleTracking()}),ue&&"hidden"in document&&"visibilityState"in document&&i.on(document,"visibilitychange",i.handleVisibilityChange_),i}b(e,n);var t=e.prototype;return t.handleVisibilityChange=function(){this.player_.duration()===1/0&&(document.hidden?this.stopTracking():this.startTracking())},t.trackLive_=function(){var e,t=this.player_.seekable();t&&t.length&&(t=Number(window.performance.now().toFixed(4)),e=-1===this.lastTime_?0:(t-this.lastTime_)/1e3,this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+e,t=this.liveCurrentTime(),e=this.player_.currentTime(),e=this.player_.paused()||this.seekedBehindLive_||Math.abs(t-e)>this.options_.liveTolerance,(e=this.timeupdateSeen_&&t!==1/0?e:!1)!==this.behindLiveEdge_)&&(this.behindLiveEdge_=e,this.trigger("liveedgechange"))},t.handleDurationchange=function(){this.toggleTracking()},t.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},t.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},t.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},t.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&2<e,this.nextSeekedFromUser_=!1,this.trackLive_()},t.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},t.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},t.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},t.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},t.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},t.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0},t.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},t.isLive=function(){return this.isTracking()},t.atLiveEdge=function(){return!this.behindLiveEdge()},t.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},t.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},t.behindLiveEdge=function(){return this.behindLiveEdge_},t.isTracking=function(){return"number"==typeof this.trackingInterval_},t.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},t.dispose=function(){this.off(document,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),n.prototype.dispose.call(this)},e}(v),Hn=(v.registerComponent("LiveTracker",t),function(e){var t=e.el(
1);if(t.hasAttribute("src"))e.triggerSourceset(t.src);else{var i=e.$$("source"),n=[],t="";if(!i.length)return!1;for(var r=0;r<i.length;r++){var s=i[r].src;s&&-1===n.indexOf(s)&&n.push(s)}if(!n.length)return!1;e.triggerSourceset(t=1===n.length?n[0]:t)}return!0}),qn=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){for(var t=document.createElement(this.nodeName.toLowerCase()),i=(t.innerHTML=e,document.createDocumentFragment());t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",window.Element.prototype.appendChild.call(this,i),this.innerHTML}}),Vn=function(e,t){for(var i={},n=0;n<e.length&&!((i=Object.getOwnPropertyDescriptor(e[n],t))&&i.set&&i.get);n++);return i.enumerable=!0,i.configurable=!0,i},Wn=function(e){return Vn([e.el(),window.HTMLMediaElement.prototype,window.Element.prototype,qn],"innerHTML")},$n=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Xt(window.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return window.Element.prototype.setAttribute.call(this,"src",e),e}}),S=function(u){function o(e,t){var i=u.call(this,e,t)||this,t=e.source,n=!1;if(i.featuresVideoFrameCallback=i.featuresVideoFrameCallback&&"VIDEO"===i.el_.tagName,t&&(i.el_.currentSrc!==t.src||e.tag&&3===e.tag.initNetworkState_)?i.setSource(t):i.handleLateInit_(i.el_),e.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var r=i.el_.childNodes,s=r.length,o=[];s--;){var a=r[s];"track"===a.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(a),i.remoteTextTracks().addTrack(a.track),i.textTracks().addTrack(a.track),n||i.el_.hasAttribute("crossorigin")||!ii(a.src)||(n=!0)):o.push(a))}for(var l=0;l<o.length;l++)i.el_.removeChild(o[l])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&n&&d.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(he||pe||re)&&!0===e.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}b(o,u);var e=o.prototype;return e.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),o.disposeMediaElement(this.el_),this.options_=null,u.prototype.dispose.call(this)},e.setupSourcesetHandling_=function(){Un(this)},e.restoreMetadataTracksInIOSNativePlayer_=function(){function e(){n=[];for(var e=0;e<r.length;e++){var t=r[e];"metadata"===t.kind&&n.push({track:t,storedMode:t.mode})}}function i(){for(var e=0;e<n.length;e++){var t=n[e];"disabled"===t.track.mode&&t.track.mode!==t.storedMode&&(t.track.mode=t.storedMode)}r.removeEventListener("change",i)}var n,r=this.textTracks();e(),r.addEventListener("change",e),this.on("dispose",function(){return r.removeEventListener("change",e)});this.on("webkitbeginfullscreen",function(){r.removeEventListener("change",e),r.removeEventListener("change",i),r.addEventListener("change",i)}),this.on("webkitendfullscreen",function(){r.removeEventListener("change",e),r.addEventListener("change",e),r.removeEventListener("change",i)})},e.overrideNative_=function(e,t){var i,n=this;t===this["featuresNative"+e+"Tracks"]&&(this[(i=e.toLowerCase())+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach(function(e){n.el()[i+"Tracks"].removeEventListener(e,n[i+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i))},e.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},e.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},e.proxyNativeTracksForType_=function(i){var e,t,n=this,r=_i[i],s=this.el()[r.getterName],o=this[r.getterName]();this["featuresNative"+r.capitalName+"Tracks"]&&s&&s.addEventListener&&(t=function(){for(var e=[],t=0;t<o.length;t++){for(var i=!1,n=0;n<s.length;n++)if(s[n]===o[t]){i=!0;break}i||e.push(o[t])}for(;e.length;)o.removeTrack(e.shift())},this[r.getterName+"Listeners_"]=e={change:function(e){var t={type:"change",target:o,currentTarget:o,srcElement:o};o.trigger(t),"text"===i&&n[bi.remoteText.getterName]().trigger(t)},addtrack:function(e){o.addTrack(e.track)},removetrack:function(e){o.removeTrack(e.track)}},Object.keys(e).forEach(function(t){var i=e[t];s.addEventListener(t,i),n.on("dispose",function(e){return s.removeEventListener(t,i)})}),this.on("loadstart",t),this.on("dispose",function(e){return n.off("loadstart",t)}))},e.proxyNativeTracks_=function(){var t=this;
1_i.names.forEach(function(e){t.proxyNativeTracksForType_(e)})},e.createEl=function(){for(var e,t=this.options_.tag,i=(t&&(this.options_.playerElIngest||this.movingMediaElementInDOM)||(t?(e=t.cloneNode(!0),t.parentNode&&t.parentNode.insertBefore(e,t),o.disposeMediaElement(t),t=e):(t=document.createElement("video"),e=g({},this.options_.tag&&Ie(this.options_.tag)),he&&!0===this.options_.nativeControlsForTouch||delete e.controls,Ae(t,h(e,{id:this.options_.techId,class:"vjs-tech"}))),t.playerId=this.options_.playerId),void 0!==this.options_.preload&&Pe(t,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(t.disablePictureInPicture=this.options_.disablePictureInPicture),["loop","muted","playsinline","autoplay"]),n=0;n<i.length;n++){var r=i[n],s=this.options_[r];void 0!==s&&(s?Pe(t,r,r):Oe(t,r),t[r]=s)}return t},e.handleLateInit_=function(e){var t,i,n,r;0!==e.networkState&&3!==e.networkState&&(0===e.readyState?(t=!1,this.on("loadstart",i=function(){t=!0}),this.on("loadedmetadata",n=function(){t||this.trigger("loadstart")}),this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),t||this.trigger("loadstart")})):((r=["loadstart"]).push("loadedmetadata"),2<=e.readyState&&r.push("loadeddata"),3<=e.readyState&&r.push("canplay"),4<=e.readyState&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})))},e.setScrubbing=function(e){this.isScrubbing_=e},e.scrubbing=function(){return this.isScrubbing_},e.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&fe?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){d(e,"Video is not ready. (Video.js)")}},e.duration=function(){var t=this;return this.el_.duration===1/0&&ie&&ae&&0===this.el_.currentTime?(this.on("timeupdate",function e(){0<t.el_.currentTime&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))}),NaN):this.el_.duration||NaN},e.width=function(){return this.el_.offsetWidth},e.height=function(){return this.el_.offsetHeight},e.proxyWebkitFullscreen_=function(){var e,t,i=this;"webkitDisplayingFullscreen"in this.el_&&(e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},this.on("webkitbeginfullscreen",t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))}),this.on("dispose",function(){i.off("webkitbeginfullscreen",t),i.off("webkitendfullscreen",e)}))},e.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=window.navigator&&window.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},e.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Ut(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},e.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},e.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},e.requestVideoFrameCallback=function(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):u.prototype.requestVideoFrameCallback.call(this,e)},e.cancelVideoFrameCallback=function(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):u.prototype.cancelVideoFrameCallback.call(this,e)},e.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},e.reset=function(){o.resetMediaElement(this.el_)},e.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.setControls=function(e){this.el_.controls=!!e},e.addTextTrack=function(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):u.prototype.addTextTrack.call(this,e,t,i)},e.createRemoteTextTrack=function(e){var t;return this.featuresNativeTextTracks?(t=document.createElement("track"),e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t):u.prototype.createRemoteTextTrack.call(this,e)},e.addRemoteTextTrack=function(e,t){e=u.prototype.addRemoteTextTrack.call(this,e,t);return this.featuresNativeTextTracks&&this.el().appendChild(e),e},e.removeRemoteTextTrack=function(e){if(u.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var t=this.$$("track"),i=t.length;i--;)e!==t[i]&&e!==t[i].track||this.el().removeChild(t[i])},e.getVideoPlaybackQuality=function(){var e;return"function"==typeof this.el().getVideoPlaybackQuality?this.el().getVideoPlaybackQuality():(e={},void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),window.performance&&"function"==typeof window.performance.now?e.creationTime=window.performance.now():window.performance&&window.performance.timing&&"number"==typeof window.performance.timing.navigationStart&&(e.creationTime=window.Date.now()-window.performance.timing.navigationStart),e)},o}(T),zn=(jn(S,"TEST_VID",function(){var e,t;if(ve())return e=document.createElement("video"),(t=document.createElement("track")).kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}),S.isSupported=function(){try{S.TEST_VID.volume=.5}catch(e){return!1}
vendor: 4,060 bytes, line 1
1return!(!S.TEST_VID||!S.TEST_VID.canPlayType)},S.canPlayType=function(e){return S.TEST_VID.canPlayType(e)},S.canPlaySource=function(e,t){return S.canPlayType(e.type)},S.canControlVolume=function(){try{var e=S.TEST_VID.volume,t=(S.TEST_VID.volume=e/2+.1,e!==S.TEST_VID.volume);return t&&p?(window.setTimeout(function(){S&&S.prototype&&(S.prototype.featuresVolumeControl=e!==S.TEST_VID.volume)}),!1):t}catch(e){return!1}},S.canMuteVolume=function(){try{var e=S.TEST_VID.muted;return S.TEST_VID.muted=!e,S.TEST_VID.muted?Pe(S.TEST_VID,"muted","muted"):Oe(S.TEST_VID,"muted"),e!==S.TEST_VID.muted}catch(e){return!1}},S.canControlPlaybackRate=function(){if(ie&&ae&&le<58)return!1;try{var e=S.TEST_VID.playbackRate;return S.TEST_VID.playbackRate=e/2+.1,e!==S.TEST_VID.playbackRate}catch(e){return!1}},S.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(document.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(document.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(document.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(document.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},S.supportsNativeTextTracks=function(){return fe||p&&ae},S.supportsNativeVideoTracks=function(){return!(!S.TEST_VID||!S.TEST_VID.videoTracks)},S.supportsNativeAudioTracks=function(){return!(!S.TEST_VID||!S.TEST_VID.audioTracks)},S.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],i=e[1];jn(S.prototype,t,function(){return S[i]()},!0)}),S.prototype.featuresVolumeControl=S.canControlVolume(),S.prototype.movingMediaElementInDOM=!p,S.prototype.featuresFullscreenResize=!0,S.prototype.featuresProgressEvents=!0,S.prototype.featuresTimeupdateEvents=!0,S.prototype.featuresVideoFrameCallback=!(!S.TEST_VID||!S.TEST_VID.requestVideoFrameCallback),S.patchCanPlayType=function(){4<=ne&&!se&&!ae&&(Bn=S.TEST_VID&&S.TEST_VID.constructor.prototype.canPlayType,S.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":Bn.call(this,e)})},S.unpatchCanPlayType=function(){var e=S.TEST_VID.constructor.prototype.canPlayType;return Bn&&(S.TEST_VID.constructor.prototype.canPlayType=Bn),e},S.patchCanPlayType(),S.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);if(e.removeAttribute("src"),"function"==typeof e.load)try{e.load()}catch(e){}}},S.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);if(e.removeAttribute("src"),"function"==typeof e.load)try{e.load()}catch(e){}}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){S.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){S.prototype["set"+m(t)]=function(e){(this.el_[t]=e)?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){S.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(t){S.prototype["set"+m(t)]=function(e){this.el_[t]=e}}
1),["pause","load","play"].forEach(function(e){S.prototype[e]=function(){return this.el_[e]()}}),T.withSourceHandlers(S),S.nativeSourceHandler={},S.nativeSourceHandler.canPlayType=function(e){try{return S.TEST_VID.canPlayType(e)}catch(e){return""}},S.nativeSourceHandler.canHandleSource=function(e,t){return e.type?S.nativeSourceHandler.canPlayType(e.type):e.src?(e=ti(e.src),S.nativeSourceHandler.canPlayType("video/"+e)):""},S.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},S.nativeSourceHandler.dispose=function(){},S.registerSourceHandler(S.nativeSourceHandler),T.registerTech("Html5",S),["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"]),Gn={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Xn=["tiny","xsmall","small","medium","large","xlarge","huge"],Kn={},Yn=(Xn.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Kn[e]="vjs-layout-"+t}),{tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0}),k=function(c){function a(e,t,i){var n,r;if(e.id=e.id||t.id||"vjs_video_"+et++,(t=h(a.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language)if("function"==typeof e.closest){var s=e.closest("[lang]");s&&s.getAttribute&&(t.language=s.getAttribute("lang"))}else for(var o=e;o&&1===o.nodeType;){if(Ie(o).hasOwnProperty("lang")){t.language=o.getAttribute("lang");break}o=o.parentNode}if((n=c.call(this,null,t,i)||this).boundDocumentFullscreenChange_=function(e){return n.documentFullscreenChange_(e)},n.boundFullWindowOnEscKey_=function(e){return n.fullWindowOnEscKey(e)},n.boundUpdateStyleEl_=function(e){return n.updateStyleEl_(e)},n.boundApplyInitTime_=function(e){return n.applyInitTime_(e)},n.boundUpdateCurrentBreakpoint_=function(e){return n.updateCurrentBreakpoint_(e)},n.boundHandleTechClick_=function(e){return n.handleTechClick_(e)},n.boundHandleTechDoubleClick_=function(e){return n.handleTechDoubleClick_(e)},n.boundHandleTechTouchStart_=function(e){return n.handleTechTouchStart_(e)},n.boundHandleTechTouchMove_=function(e){return n.handleTechTouchMove_(e)},n.boundHandleTechTouchEnd_=function(e){return n.handleTechTouchEnd_(e)},n.boundHandleTechTap_=function(e){return n.handleTechTap_(e)},n.isFullscreen_=!1,n.log=z(n.id_),n.fsApi_=B,n.isPosterFromTech_=!1,n.queuedCallbacks_=[],n.isReady_=!1,n.hasStarted_=!1,n.userActive_=!1,n.debugEnabled_=!1,n.audioOnlyMode_=!1,n.audioPosterMode_=!1,n.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!n.options_||!n.options_.techOrder||!n.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");n.tag=e,n.tagAttributes=e&&Ie(e),n.language(n.options_.language),t.languages?(r={},Object.getOwnPropertyNames(t.languages).forEach(function(e){r[e.toLowerCase()]=t.languages[e]}),n.languages_=r):n.languages_=a.prototype.options_.languages,n.resetCache_(),n.poster_=t.poster||"",n.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),n.changingSrc_=!1,n.playCallbacks_=[],n.playTerminatedQueue_=[],e.hasAttribute("autoplay")?n.autoplay(!0):n.autoplay(n.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(function(e){if("function"!=typeof n[e])throw new Error('plugin "'+e+'" does not exist')}),n.scrubbing_=!1,n.el_=n.createEl(),St(_(n),{eventBusKey:"el_"}),n.fsApi_.requestFullscreen&&(ot(document,n.fsApi_.fullscreenchange,n.boundDocumentFullscreenChange_),n.on(n.fsApi_.fullscreenchange,n.boundDocumentFullscreenChange_)),n.fluid_&&n.on(["playerreset","resize"],n.boundUpdateStyleEl_);s=g(n.options_),t.plugins&&Object.keys(t.plugins).forEach(function(e){n[e](t.plugins[e])}),t.debug&&n.debug(!0),n.options_.playerOptions=s,n.middleware_=[],n.playbackRates(t.playbackRates),n.initChildren(),n.isAudio("audio"===e.nodeName.toLowerCase()),n.controls()?n.addClass("vjs-controls-enabled"):n.addClass("vjs-controls-disabled"),n.el_.setAttribute("role","region"),n.isAudio()?n.el_.setAttribute("aria-label",n.localize("Audio Player")):n.el_.setAttribute("aria-label",n.localize("Video Player")),n.isAudio()&&n.addClass("vjs-audio"),n.flexNotSupported_()&&n.addClass("vjs-no-flex"),he&&n.addClass("vjs-touch-enabled"),p||n.addClass("vjs-workinghover"),a.players[n.id_]=_(n),i="7.20.3".split(".")[0];return n.addClass("vjs-v"+i),n.userActive(!0),n.reportUserActivity(),n.one("play",function(e){return n.listenForUserActivity_(e)}),n.on("stageclick",function(e){return n.handleStageClick_(e)}),n.on("keydown",function(e){return n.handleKeyDown(e)}),n.on("languagechange",function(e){return n.handleLanguagechange(e)}
1),n.breakpoints(n.options_.breakpoints),n.responsive(n.options_.responsive),n.on("ready",function(){n.audioPosterMode(n.options_.audioPosterMode),n.audioOnlyMode(n.options_.audioOnlyMode)}),n}b(a,c);var e=a.prototype;return e.dispose=function(){var t=this;this.trigger("dispose"),this.off("dispose"),u(document,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),u(document,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),a.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.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Ji[this.id()]=null,Ti.names.forEach(function(e){e=Ti[e],e=t[e.getterName]();e&&e.off&&e.off()}),c.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},e.createEl=function(){var t,e,i,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),s="video-js"===this.tag.tagName.toLowerCase(),o=(r?t=this.el_=n.parentNode:s||(t=this.el_=c.prototype.createEl.call(this,"div")),Ie(n));if(s){for(t=this.el_=n,n=this.tag=document.createElement("video");t.children.length;)n.appendChild(t.firstChild);ke(t,"video-js")||Ce(t,"video-js"),t.appendChild(n),r=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{n[e]=t[e]}catch(e){}})}n.setAttribute("tabindex","-1"),o.tabindex="-1",(ue||ae&&de)&&(n.setAttribute("role","application"),o.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in o&&delete o.width,"height"in o&&delete o.height,Object.getOwnPropertyNames(o).forEach(function(e){s&&"class"===e||t.setAttribute(e,o[e]),s&&n.setAttribute(e,o[e])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",(n.player=t.player=this).addClass("vjs-paused"),!0!==window.VIDEOJS_NO_DYNAMIC_STYLE&&(this.styleEl_=Je("vjs-styles-dimensions"),e=ze(".vjs-styles-defaults"),(i=ze("head")).insertBefore(this.styleEl_,e?e.nextSibling:i.firstChild)),this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var a=n.getElementsByTagName("a"),l=0;l<a.length;l++){var u=a.item(l);Ce(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(t,n),Se(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t},e.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"!==e&&"use-credentials"!==e?d.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"'):this.techCall_("setCrossOrigin",e)},e.width=function(e){return this.dimension("width",e)},e.height=function(e){return this.dimension("height",e)},e.dimension=function(e,t){var i,n=e+"_";if(void 0===t)return this[n]||0;""===t||"auto"===t?(this[n]=void 0,this.updateStyleEl_()):(i=parseFloat(t),isNaN(i)?d.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_()))},e.fluid=function(e){var t,i=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,bt(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),e=function(){i.on(["playerreset","resize"],i.boundUpdateStyleEl_)},bt(t=this)?e():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(e))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},e.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},e.updateStyleEl_=function(){var e,t,i,n;!0===window.VIDEOJS_NO_DYNAMIC_STYLE?(i="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,(e=this.tech_&&this.tech_.el())&&
vendor: 4,154 bytes, line 1
1(0<=i&&(e.width=i),0<=t)&&(e.height=t)):(e=(i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:0<this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"))[1]/i[0],t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/e:this.videoWidth()||300,i=void 0!==this.height_?this.height_:t*e,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Ze(this.styleEl_,"\n      ."+n+" {\n        width: "+t+"px;\n        height: "+i+"px;\n      }\n\n      ."+n+".vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: "+100*e+"%;\n      }\n    "))},e.loadTech_=function(e,t){var i=this,n=(this.tech_&&this.unloadTech_(),m(e)),r=e.charAt(0).toLowerCase()+e.slice(1),s=("Html5"!==n&&this.tag&&(T.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1,this.autoplay()),o={source:t,autoplay:s="string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay?!1:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise},s=(Ti.names.forEach(function(e){e=Ti[e];o[e.getterName]=i[e.privateName]}),h(o,this.options_[n]),h(o,this.options_[r]),h(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&0<this.cache_.currentTime&&(o.startTime=this.cache_.currentTime),T.getTech(e));if(!s)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new s(o),this.tech_.ready(f(this,this.handleTechReady_),!0),Ht(this.textTracksJson_||[],this.tech_),zn.forEach(function(t){i.on(i.tech_,t,function(e){return i["handleTech"+m(t)+"_"](e)})}),Object.keys(Gn).forEach(function(t){i.on(i.tech_,t,function(e){0===i.tech_.playbackRate()&&i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+Gn[t]+"_"].bind(i),event:e}):i["handleTech"+Gn[t]+"_"](e)})}),this.on(this.tech_,"loadstart",function(e){return i.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return i.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return i.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return i.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return i.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return i.handleTechPlay_(e)}),this.on(this.tech_,"firstplay",function(e){return i.handleTechFirstPlay_(e)}),this.on(this.tech_,"pause",function(e){return i.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return i.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return i.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return i.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return i.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return i.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return i.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return i.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return i.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return i.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||Se(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.unloadTech_=function(){var t=this;
1Ti.names.forEach(function(e){e=Ti[e];t[e.privateName]=t[e.getterName]()}),this.textTracksJson_=Ft(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},e.tech=function(e){return void 0===e&&d.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},e.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},e.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},e.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},e.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},e.manualAutoplay_=function(e){var n=this;if(this.tech_&&"string"==typeof e){var t,i=function(){function t(){n.muted(e)}var e=n.muted(),i=(n.muted(!0),n.playTerminatedQueue_.push(t),n.play());if(Rt(i))return i.catch(function(e){throw t(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};if("any"!==e||this.muted()?t="muted"!==e||this.muted()?this.play():i():Rt(t=this.play())&&(t=t.catch(i)),Rt(t))return t.then(function(){n.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){n.trigger({type:"autoplay-failure",autoplay:e})})}},e.updateSourceCaches_=function(e){for(var t=e=void 0===e?"":e,i="",e=("string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter(function(e){return e.src===t});if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r<n.length;r++){var s=n[r];if(s.type&&s.src&&s.src===t)return s.type}return cn(t)}(this,t)),this.cache_.source=g({},e,{src:t,type:i}),this.cache_.sources.filter(function(e){return e.src&&e.src===t})),n=[],r=this.$$("source"),s=[],o=0;o<r.length;o++){var a=Ie(r[o]);n.push(a),a.src&&a.src===t&&s.push(a.src)}s.length&&!e.length?this.cache_.sources=n:e.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},e.handleTechSourceset_=function(e){var t,i,n,r=this;this.changingSrc_||(t=function(e){return r.updateSourceCaches_(e)},i=this.currentSource().src,n=e.src,(t=!i||/^blob:/.test(i)||!/^blob:/.test(n)||this.lastSource_&&(this.lastSource_.tech===n||this.lastSource_.player===i)?t:function(){})(n),e.src)||this.tech_.any(["sourceset","loadstart"],function(e){"sourceset"!==e.type&&(e=r.techGet("currentSrc"),r.lastSource_.tech=e,r.updateSourceCaches_(e))}),this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},e.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},e.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.handleTechRateChange_=function(){0<this.tech_.playbackRate()&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},e.handleTechWaiting_=function(){var t=this,i=(this.addClass("vjs-waiting"),this.trigger("waiting"),this.currentTime());this.on("timeupdate",function e(){i!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",e))})},e.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},e.handleTechFirstPlay_=function(){this.options_.starttime&&(d.warn("Passing the `starttime` option to the player will be deprecated 
1in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.handleTechClick_=function(e){!this.controls_||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Ut(this.play()):this.pause())},e.handleTechDoubleClick_=function(t){!this.controls_||Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())},e.handleTechTap_=function(){this.userActive(!this.userActive())},e.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},e.handleStageClick_=function(){this.reportUserActivity()},e.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.documentFullscreenChange_=function(e){var t,e=e.target.player;e&&e!==this||(e=this.el(),!(t=document[this.fsApi_.fullscreenElement]===e)&&e.matches?t=e.matches(":"+this.fsApi_.fullscreen):!t&&e.msMatchesSelector&&(t=e.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(t))},e.handleTechFullscreenChange_=function(e,t){var i=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){i.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))},e.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},e.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},e.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},e.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},e.handleTechError_=function(){var e=this.tech_.error();this.error(e)},e.handleTechTextData_=function(){var e=1<arguments.length?arguments[1]:null;this.trigger("textdata",e)},e.getCache=function(){return this.cache_},e.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},e.techCall_=function(t,i){this.ready(function(){if(t in rn)return e=this.middleware_,this.tech_[t](e.reduce(on(t),i));if(t in sn)return tn(this.middleware_,this.tech_,t,i);var e;try{this.tech_&&this.tech_[t](i)}catch(e){throw d(e),e}},!0)},e.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in nn)return e=this.middleware_,i=this.tech_,e.reduceRight(on(t),i[t]());if(t in sn)return tn(this.middleware_,this.tech_,t);var e,i;try{return this.tech_[t]()}catch(e){throw void 0===this.tech_[t]?d("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e):"TypeError"===e.name?(d("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1):d(e),e}}},e.play=function(){var t=this,e=this.options_.Promise||window.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},e.play_=function(e){var t,i=this,e=(this.playCallbacks_.push(e=void 0===e?Ut:e),Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())));this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),this.isReady_&&e?null===(t=this.techGet_("play"))?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(t):(this.waitToPlay_=function(e){i.play_()},this.one(["ready","loadstart"],this.waitToPlay_),e||!fe&&!p||this.load())},e.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},e.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach(function(e){e(t)})},e.pause=function(){this.techCall_("pause")},e.paused=function(){return!1!==this.techGet_("paused")},e.played=function(){return this.techGet_("played")||Pt(0,0)},e.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},e.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},e.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=(e=parseFloat(e))<0?1/0:e)!==this.cache_.duration&&((this.cache_.duration=e)===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},e.remainingTime=function(){return this.duration()-this.currentTime()},e.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.buffered=function(){var e;return e=(e=this.techGet_("buffered"))&&e.length?e:Pt(0,0)},e.bufferedPercent=function(){return Ot(this.buffered(),this.duration())},e.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),e=e.end(e.length-1);return e=t<e?t:e},e.volume=function(e){var t;if(void 0===e)return t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t;t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),0<t&&this.lastVolume_(t)},e.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},e.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},e.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},e.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.isFullscreen=function(e){var t;if(void 0===e)return this.isFullscreen_;t=this.isFullscreen_,this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_()},e.requestFullscreen=function(o){var a,e=this.options_.Promise||window.Promise;
1return e?(a=this,new e(function(e,i){function n(){a.off("fullscreenerror",r),a.off("fullscreenchange",t)}function t(){n(),e()}function r(e,t){n(),i(t)}a.one("fullscreenchange",t),a.one("fullscreenerror",r);var s=a.requestFullscreenHelper_(o);s&&(s.then(n,n),s.then(e,i))})):this.requestFullscreenHelper_()},e.requestFullscreenHelper_=function(e){var t,i=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen)return(e=this.el_[this.fsApi_.requestFullscreen](t))&&e.then(function(){return i.isFullscreen(!0)},function(){return i.isFullscreen(!1)}),e;this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},e.exitFullscreen=function(){var o,e=this.options_.Promise||window.Promise;return e?(o=this,new e(function(e,i){function n(){o.off("fullscreenerror",r),o.off("fullscreenchange",t)}function t(){n(),e()}function r(e,t){n(),i(t)}o.one("fullscreenchange",t),o.one("fullscreenerror",r);var s=o.exitFullscreenHelper_();s&&(s.then(n,n),s.then(e,i))})):this.exitFullscreenHelper_()},e.exitFullscreenHelper_=function(){var e,t=this;if(this.fsApi_.requestFullscreen)return(e=document[this.fsApi_.exitFullscreen]())&&Ut(e.then(function(){return t.isFullscreen(!1)})),e;this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},e.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,ot(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow="hidden",Ce(document.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.fullWindowOnEscKey=function(e){y.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},e.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,u(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow=this.docOrigOverflow,Ee(document.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},e.isInPictureInPicture=function(e){if(void 0===e)return!!this.isInPictureInPicture_;this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_()},e.requestPictureInPicture=function(){if("pictureInPictureEnabled"in document&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},e.exitPictureInPicture=function(){if("pictureInPictureEnabled"in document)return document.exitPictureInPicture()},e.handleKeyDown=function(e){var t,i,n=this.options_.userActions;n&&n.hotkeys&&(t=this.el_.ownerDocument.activeElement,i=t.tagName.toLowerCase(),t.isContentEditable||("input"===i?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(i))||("function"==typeof n.hotkeys?n.hotkeys.call(this,e):this.handleHotkeys(e)))},e.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,i=void 0===i?function(e){return y.isEventKey(e,"f")}:i,n=t.muteKey,n=void 0===n?function(e){return y.isEventKey(e,"m")}:n,t=t.playPauseKey,t=void 0===t?function(e){return y.isEventKey(e,"k")||y.isEventKey(e,"Space")}:t;i.call(this,e)?(e.preventDefault(),e.stopPropagation(),i=v.getComponent("FullscreenToggle"),!1!==document[this.fsApi_.fullscreenEnabled]&&i.prototype.handleClick.call(this,e)):n.call(this,e)?(e.preventDefault(),e.stopPropagation(),v.getComponent("MuteToggle").prototype.handleClick.call(this,e)):t.call(this,e)&&(e.preventDefault(),e.stopPropagation(),v.getComponent("PlayToggle").prototype.handleClick.call(this,e))},e.canPlayType=function(e){for(var t=0,i=this.options_.techOrder;t<i.length;t++){var n=i[t],r=T.getTech(n);if(r=r||v.getComponent(n)){if(r.isSupported()&&(r=r.canPlayType(e)))return r}else d.error('The "'+n+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.selectSource=function(e){function t(e,i,n){var r;return e.some(function(t){return i.some(function(e){if(r=n(t,e))return!0})}),r}function i(e,t){var i=e[0];if(e[1].canPlaySource(t,r.options_[i.toLowerCase()]))return{source:t,tech:i}}var n,r=this,s=this.options_.techOrder.map(function(e){return[e,T.getTech(e)]}).filter(function(e){var t=e[0],e=e[1];return e?e.isSupported():(d.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),s=this.options_.sourceOrder?t(e,s,(n=i,function(e,t){return n(t,e)})):t(s,e,i);return s||!1},e.handleSrc_=function(e,n){var r=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var t,i,s=ln(e);s.length?(this.changingSrc_=!0,n||(this.cache_.sources=s),this.updateSourceCaches_(s[0]),en(this,s[0],function(e,t){var i;if(r.middleware_=t,n||(r.cache_.sources=s),r.updateSourceCaches_(e),r.src_(e))return 1<s.length?r.handleSrc_(s.slice(1)):(r.changingSrc_=!1,r.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void r.triggerReady());i=r.tech_,t.forEach(function(e){return e.setTech&&e.setTech(i)})}),this.options_.retryOnError&&1<s.length&&(t=function(){r.error(null),r.handleSrc_(s.slice(1),!0)},i=function(){r.off("error",t)},this.one("error",t),this.one("playing",i),this.resetRetryOnError_=function(){r.off("error",t),r.off("playing",i)})):this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0)},e.src=function(e){return this.handleSrc_(e,!1)},e.src_=function(e){var t,i,n=this,r=this.selectSource([e]);return!r||(t=r.tech,i=this.techName_,m(t)!==m(i)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1})):this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1)},e.load=function(){this.techCall_("load")},e.reset=function(){var e=this,t=this.options_.Promise||window.Promise;this.paused()||!t?this.doReset_():Ut(this.play().then(function(){return e.doReset_()}))},e.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),bt(this)&&this.trigger("playerreset")},e.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},e.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,e=e.remainingTimeDisplay;t&&t.updateContent(),e&&e.updateContent()},e.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},e.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},e.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},e.currentSource=function(){return this.cache_.source||{}},e.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},e.currentType=function(){return this.currentSource()&&this.currentSource().type||""},e.preload=function(e){if(void 0===e)return this.techGet_("preload");this.techCall_("setPreload",e),this.options_.preload=e},e.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},e.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},e.loop=function(e){if(void 0===e)return this.techGet_("loop");this.techCall_("setLoop",e),this.options_.loop=e},e.poster=function(e){if(void 0===e)return this.poster_;(e=e||"")!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},e.handleTechPosterChange_=function(){var e;(!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster&&(e=this.tech_.poster()||"")!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))},e.controls=function(e){if(void 0===e)return!!this.controls_;this.controls_!==(e=!!e)&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
1sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},e.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;this.usingNativeControls_!==(e=!!e)&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},e.error=function(t){var e,i=this;if(void 0===t)return this.error_||null;U("beforeerror").forEach(function(e){e=e(i,t);J(e)&&!Array.isArray(e)||"string"==typeof e||"number"==typeof e||null===e?t=e:i.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&t&&4===t.code?(this.options_.suppressNotSupportedError=!(e=function(){this.error(t)}),this.any(["click","touchstart"],e),this.one("loadstart",function(){this.off(["click","touchstart"],e)})):null===t?(this.error_=t,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close()):(this.error_=new Dt(t),this.addClass("vjs-error"),d.error("(CODE:"+this.error_.code+" "+Dt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),U("error").forEach(function(e){return e(i,i.error_)}))},e.reportUserActivity=function(e){this.userActivity_=!0},e.userActive=function(e){if(void 0===e)return this.userActive_;(e=!!e)!==this.userActive_&&(this.userActive_=e,this.userActive_?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")))},e.listenForUserActivity_=function(){function e(e){s(),this.clearInterval(t)}var t,i,n,r,s=f(this,this.reportUserActivity),o=(this.on("mousedown",function(){s(),this.clearInterval(t),t=this.setInterval(s,250)}),this.on("mousemove",function(e){e.screenX===i&&e.screenY===n||(i=e.screenX,n=e.screenY,s())}),this.on("mouseup",e),this.on("mouseleave",e),this.getChild("controlBar"));!o||p||ie||(o.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),o.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",s),this.on("keyup",s),this.setInterval(function(){var e;this.userActivity_&&(this.userActivity_=!1,this.userActive(!0),this.clearTimeout(r),(e=this.options_.inactivityTimeout)<=0||(r=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e)))},250)},e.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},e.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},e.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},e.enableAudioOnlyUI_=function(){var t=this,e=(this.addClass("vjs-audio-only-mode"),this.children()),i=this.getChild("ControlBar"),n=i&&i.currentHeight();e.forEach(function(e){e!==i&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),t.audioOnlyCache_.hiddenChildren.push(e))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(n),this.trigger("audioonlymodechange")},e.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(function(e){return e.show()}),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},e.audioOnlyMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var i,n=this.options_.Promise||window.Promise;if(n)return e?(i=[],this.isInPictureInPicture()&&i.push(this.exitPictureInPicture()),this.isFullscreen()&&i.push(this.exitFullscreen()),this.audioPosterMode()&&i.push(this.audioPosterMode(!1)),n.all(i).then(function(){return t.enableAudioOnlyUI_()})):n.resolve().then(function(){return t.disableAudioOnlyUI_()});e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},e.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},e.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},e.audioPosterMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var i=this.options_.Promise||window.Promise;if(i)return e?(this.audioOnlyMode()?this.audioOnlyMode(!1):i.resolve()).then(function(){t.enablePosterModeUI_()}):i.resolve().then(function(){t.disablePosterModeUI_()});e?(this.audioOnlyMode()&&this.audioOnlyMode(!1),this.enablePosterModeUI_()):this.disablePosterModeUI_()},e.addTextTrack=function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)},e.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},e.removeRemoteTextTrack=function(e){var t=(t=(e=void 0===e?{}:e).track)||e;if(this.tech_)return this.tech_.removeRemoteTextTrack(t)},e.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),bt(this))&&this.trigger("languagechange")},e.languages=function(){return g(a.prototype.options_.languages,this.languages_)},e.toJSON=function(){var e=g(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var n=t[i];(n=g(n)).player=void 0,e.tracks[i]=n}return e},e.createModal=function(e,t){var i=this,n=((t=t||{}).content=e||"",new Vt(this,t));return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n},e.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),i=0;i<Xn.length;i++){var n=Xn[i];
1if(t<=this.breakpoints_[n]){if(e===n)return;e&&this.removeClass(Kn[e]),this.addClass(Kn[n]),this.breakpoint_=n;break}}},e.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},e.breakpoints=function(e){return void 0!==e&&(this.breakpoint_="",this.breakpoints_=h({},Yn,e),this.updateCurrentBreakpoint_()),h(this.breakpoints_)},e.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?((this.responsive_=e)?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},e.currentBreakpoint=function(){return this.breakpoint_},e.currentBreakpointClass=function(){return Kn[this.breakpoint_]||""},e.loadMedia=function(e,t){var i,n,r,s=this;e&&"object"==typeof e&&(this.reset(),this.cache_.media=g(e),i=(e=this.cache_.media).artwork,n=e.poster,r=e.src,e=e.textTracks,!i&&n&&(this.cache_.media.artwork=[{src:n,type:cn(n)}]),r&&this.src(r),n&&this.poster(n),Array.isArray(e)&&e.forEach(function(e){return s.addRemoteTextTrack(e,!1)}),this.ready(t))},e.getMedia=function(){var e,t;return this.cache_.media?g(this.cache_.media):(e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})},e&&(t.poster=e,t.artwork=[{src:t.poster,type:cn(t.poster)}]),t)},a.getTagSettings=function(e){var t,i={sources:[],tracks:[]},n=Ie(e),r=n["data-setup"];if(ke(e,"vjs-fill")&&(n.fill=!0),ke(e,"vjs-fluid")&&(n.fluid=!0),null!==r&&(t=(r=Mt(r||"{}"))[0],r=r[1],t&&d.error(t),h(n,r)),h(i,n),e.hasChildNodes())for(var s=e.childNodes,o=0,a=s.length;o<a;o++){var l=s[o],u=l.nodeName.toLowerCase();"source"===u?i.sources.push(Ie(l)):"track"===u&&i.tracks.push(Ie(l))}return i},e.flexNotSupported_=function(){var e=document.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},e.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},e.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(function(e){return"number"==typeof e})&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},a}(v),o=(Ti.names.forEach(function(e){var t=Ti[e];k.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),k.prototype.crossorigin=k.prototype.crossOrigin,k.players={},window.navigator),Qn=(k.prototype.options_={techOrder:T.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:o&&(o.languages&&o.languages[0]||o.userLanguage||o.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){k.prototype[e]=function(){return this.techGet_(e)}}),zn.forEach(function(e){k.prototype["handleTech"+m(e)+"_"]=function(){return this.trigger(e)}}),v.registerComponent("Player",k),G(function(i){function n(e,t){return i.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}i.exports=n}));function Jn(e){return lr.hasOwnProperty(e)}function Zn(e){return Jn(e)?lr[e]:void 0}function er(e,t){e[ar]=e[ar]||{},e[ar][t]=!0}function tr(e,t,i){i=(i?"before":"")+"pluginsetup",e.trigger(i,t),e.trigger(i+":"+t.name,t)}function ir(t,i){function n(){tr(this,{name:t,plugin:i,instance:null},!0);var e=i.apply(this,arguments);return er(this,t),tr(this,{name:t,plugin:i,instance:e}),e}
1return Object.keys(i).forEach(function(e){n[e]=i[e]}),n}function nr(r,s){return s.prototype.name=r,function(){tr(this,{name:r,plugin:s,instance:null},!0);for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=sr(s,[this].concat(t));return this[r]=function(){return n},tr(this,n.getEventHash()),n}}var rr=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}},sr=G(function(n){function r(e,t,i){return rr()?n.exports=r=Reflect.construct:n.exports=r=function(e,t,i){var n=[null];n.push.apply(n,t);t=new(Function.bind.apply(e,n));return i&&Qn(t,i.prototype),t},r.apply(null,arguments)}n.exports=r}),or="plugin",ar="activePlugins_",lr={},ur=function(){function i(e){if(this.constructor===i)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),St(this),delete this.trigger,Ct(this,this.constructor.defaultState),er(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}var e=i.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(e){return(e=void 0===e?{}:e).name=this.name,e.plugin=this.constructor,e.instance=this,e},e.trigger=function(e,t){return at(this.eventBusEl_,e,this.getEventHash(t=void 0===t?{}:t))},e.handleStateChanged=function(e){},e.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[ar][e]=!1,this.player=this.state=null,t[e]=nr(e,lr[e])},i.isBasic=function(e){e="string"==typeof e?Zn(e):e;return"function"==typeof e&&!i.prototype.isPrototypeOf(e.prototype)},i.registerPlugin=function(e,t){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(Jn(e))d.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(k.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof t)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof t+".");return lr[e]=t,e!==or&&(i.isBasic(t)?k.prototype[e]=ir(e,t):k.prototype[e]=nr(e,t)),t},i.deregisterPlugin=function(e){if(e===or)throw new Error("Cannot de-register base plugin.");Jn(e)&&(delete lr[e],delete k.prototype[e])},i.getPlugins=function(e){var i;return(e=void 0===e?Object.keys(lr):e).forEach(function(e){var t=Zn(e);t&&((i=i||{})[e]=t)}),i},i.getPluginVersion=function(e){e=Zn(e);return e&&e.VERSION||""},i}();ur.getPlugin=Zn,ur.BASE_PLUGIN_NAME=or,ur.registerPlugin(or,ur),k.prototype.usingPlugin=function(e){return!!this[ar]&&!0===this[ar][e]},k.prototype.hasPlugin=function(e){return!!Jn(e)};function cr(e){return 0===e.indexOf("#")?e.slice(1):e}var dr=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qn(e,t)};function q(e,t,i){if(r=q.getPlayer(e))t&&d.warn('Player "'+e+'" is already initialised. Options will not be applied.'),i&&r.ready(i);else{var n="string"==typeof e?ze("#"+cr(e)):e;if(!_e(n))throw new TypeError("The element or ID supplied is not valid. (videojs)");n.ownerDocument.defaultView&&n.ownerDocument.body.contains(n)||d.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(n.parentNode&&n.parentNode.hasAttribute("data-vjs-player")?n.parentNode:n).cloneNode(!0)),U("beforesetup").forEach(function(e){e=e(n,g(t));!J(e)||Array.isArray(e)?d.error("please return an object in beforesetup hooks"):t=g(t,e)});var r=new(v.getComponent("Player"))(n,t,i);U("setup").forEach(function(e){return e(r)})}return r}q.hooks_=R,q.hooks=U,q.hook=function(e,t){U(e,t)},q.hookOnce=function(i,e){U(i,[].concat(e).map(function(t){return function e(){return j(i,e),t.apply(void 0,arguments)}}))},q.removeHook=j,!0!==window.VIDEOJS_NO_DYNAMIC_STYLE&&ve()&&!(e=ze(".vjs-styles-defaults"))&&(e=Je("vjs-styles-defaults"),(Pn=ze("head"))&&Pn.insertBefore(e,Pn.firstChild),Ze(e,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: 56.25%\n      }\n    ")),Ye(1,q),q.VERSION="7.20.3",q.options=k.prototype.options_,q.getPlayers=function(){return k.players},q.getPlayer=function(e){var t=k.players;if("string"==typeof e){var i=cr(e),n=t[i];if(n)return n;n=ze("#"+i)}else n=e;if(_e(n)){i=n,e=i.player,n=i.playerId;if(e||t[n])return e||t[n]}},q.getAllPlayers=function(){return Object.keys(k.players).map(function(e){return k.players[e]}
1).filter(Boolean)},q.players=k.players,q.getComponent=v.getComponent,q.registerComponent=function(e,t){T.isTech(t)&&d.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),v.registerComponent.call(v,e,t)},q.getTech=T.getTech,q.registerTech=T.registerTech,q.use=function(e,t){Qi[e]=Qi[e]||[],Qi[e].push(t)},Object.defineProperty(q,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(q.middleware,"TERMINATOR",{value:Zi,writeable:!1,enumerable:!0}),q.browser=me,q.TOUCH_ENABLED=he,q.extend=function(e,t){var i,n=function(){e.apply(this,arguments)},r={};for(i in"object"==typeof(t=void 0===t?{}:t)?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),dr(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},q.mergeOptions=g,q.bind=f,q.registerPlugin=ur.registerPlugin,q.deregisterPlugin=ur.deregisterPlugin,q.plugin=function(e,t){return d.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),ur.registerPlugin(e,t)},q.getPlugins=ur.getPlugins,q.getPlugin=ur.getPlugin,q.getPluginVersion=ur.getPluginVersion,q.addLanguage=function(e,t){var i;return e=(""+e).toLowerCase(),q.options.languages=g(q.options.languages,((i={})[e]=t,i)),q.options.languages[e]},q.log=d,q.createLogger=z,q.createTimeRange=q.createTimeRanges=Pt,q.formatTime=vn,q.setFormatTime=function(e){yn=e},q.resetFormatTime=function(){yn=mn},q.parseUrl=Gt,q.isCrossOrigin=ii,q.EventTarget=s,q.on=ot,q.one=lt,q.off=u,q.trigger=at,q.xhr=ui,q.TextTrack=vi,q.AudioTrack=ri,q.VideoTrack=ei,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){q[e]=function(){return d.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Xe[e].apply(null,arguments)}}),q.computedStyle=ee,q.dom=Xe,q.url=ni,q.defineLazyProperty=jn,q.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var hr=G(function(e,t){var i,s,n,r,o;i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,s=/^([^\/?#]*)([^]*)$/,n=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var n=o.parseURL(e);if(n)return n.path=o.normalizePath(n.path),o.buildURLFromParts(n);throw new Error("Error trying to parse base URL.")}n=o.parseURL(t);if(!n)throw new Error("Error trying to parse relative URL.");if(n.scheme)return i.alwaysNormalize?(n.path=o.normalizePath(n.path),o.buildURLFromParts(n)):t;t=o.parseURL(e);if(!t)throw new Error("Error trying to parse base URL.");!t.netLoc&&t.path&&"/"!==t.path[0]&&(e=s.exec(t.path),t.netLoc=e[1],t.path=e[2]),t.netLoc&&!t.path&&(t.path="/");var r,e={scheme:t.scheme,netLoc:n.netLoc,path:null,params:n.params,query:n.query,fragment:n.fragment};return n.netLoc||(e.netLoc=t.netLoc,"/"!==n.path[0]&&(n.path?(r=(r=t.path).substring(0,r.lastIndexOf("/")+1)+n.path,e.path=o.normalizePath(r)):(e.path=t.path,n.params||(e.params=t.params,n.query)||(e.query=t.query)))),null===e.path&&(e.path=i.alwaysNormalize?o.normalizePath(n.path):n.path),o.buildURLFromParts(e)},parseURL:function(e){e=i.exec(e);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(r,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=o}),pr="http://example.com",r=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){return!!this.listeners[e]&&(t=this.listeners[e].indexOf(t),this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(t,1),-1<t)},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1]);
1else for(var r=Array.prototype.slice.call(arguments,1),s=t.length,o=0;o<s;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(t){this.on("data",function(e){t.push(e)})},e}(),fr=function(e){return window.atob?window.atob(e):Buffer.from(e,"base64").toString("binary")};function mr(e){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),t={};return e[1]&&(t.length=parseInt(e[1],10)),e[2]&&(t.offset=parseInt(e[2],10)),t}function gr(e){for(var t,i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},r=i.length;r--;)""!==i[r]&&((t=/([^=]*)=(.*)/.exec(i[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),n[t[0]]=t[1]);return n}function yr(t){var i={};return Object.keys(t).forEach(function(e){i[Ir(e)]=t[e]}),i}function vr(e){var t,i,n,r,s,o=e.serverControl,a=e.targetDuration,e=e.partTargetDuration;o&&(t="#EXT-X-SERVER-CONTROL",i="holdBack",n="partHoldBack",r=a&&3*a,s=e&&2*e,a&&!o.hasOwnProperty(i)&&(o[i]=r,this.trigger("info",{message:t+" defaulting HOLD-BACK to targetDuration * 3 ("+r+")."})),r&&o[i]<r&&(this.trigger("warn",{message:t+" clamping HOLD-BACK ("+o[i]+") to targetDuration * 3 ("+r+")"}),o[i]=r),e&&!o.hasOwnProperty(n)&&(o[n]=3*e,this.trigger("info",{message:t+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+o[n]+")."})),e)&&o[n]<s&&(this.trigger("warn",{message:t+" clamping PART-HOLD-BACK ("+o[n]+") to partTargetDuration * 2 ("+s+")."}),o[n]=s)}function _r(e){return Pr.audio.test((e=void 0===e?"":e).trim().toLowerCase())}function br(e){return void 0===e&&(e=""),window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported(Rr(e))||!1}function Tr(e){return(e=void 0===e?"":e).toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<Dr.length;t++){var i=Dr[t];if(Pr["muxer"+i].test(e))return!0}return!1})}function wr(e){return Ur.test(e)?"hls":jr.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}function Sr(e,t){for(var i=void 0!==(t=(void 0===t?{}:t).le)&&t,n=(e=E(e="bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e?0:e),t=e,Math.ceil(t.toString(2).length/8)),r=new Uint8Array(new ArrayBuffer(n)),s=0;s<n;s++){var o=i?s:Math.abs(s+1-r.length);r[o]=Number(e/Fr[s]&E(255)),e<0&&(r[o]=Math.abs(~r[o]),r[o]-=0===s?1:2)}return r}function kr(e,t){if("string"!=typeof(e="string"!=typeof e&&e&&"function"==typeof e.toString?e.toString():e))return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i}function Cr(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=window.location&&window.location.href||"");var i="function"==typeof window.URL,n=/^\/\//.test(e),r=!window.location&&!/\/\//i.test(e);return i?e=new window.URL(e,window.location||qr):/\/\//i.test(e)||(e=hr.buildAbsoluteURL(window.location&&window.location.href||"",e)),i?(i=new URL(t,e),r?i.href.slice(qr.length):n?i.href.slice(i.protocol.length):i.href):hr.buildAbsoluteURL(e,t)}var Er=function(t){function e(){var e=t.call(this)||this;return e.buffer="",e}return b(e,t),e.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");-1<t;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},e}(r),xr=String.fromCharCode(9),Ar=function(t){function e(){var e=t.call(this)||this;return e.customParsers=[],e.tagMappers=[],e}b(e,t);var i=e.prototype;return i.push=function(i){var r,s,o=this;0!==(i=i.trim()).length&&("#"!==i[0]?this.trigger("data",{type:"uri",uri:i}):this.tagMappers.reduce(function(e,t){t=t(i);return t===i?e:e.concat([t])},[i]).forEach(function(e){for(var t,i,n=0;n<o.customParsers.length;n++)if(o.customParsers[n].call(o,e))return;0!==e.indexOf("#EXT")?o.trigger("data",{type:"comment",text:e.slice(1)}):(e=e.replace("\r",""),/^#EXTM3U/.exec(e)?o.trigger("data",{type:"tag",tagType:"m3u"}):(r=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))?(s={type:"tag",tagType:"inf"},r[1]&&(s.duration=parseFloat(r[1])),r[2]&&(s.title=r[2]),o.trigger("data",s)):(r=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))?(s={type:"tag",tagType:"targetduration"},r[1]&&(s.duration=parseInt(r[1],10)),o.trigger("data",s)):(r=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))?(s={type:"tag",tagType:"version"},r[1]&&(s.version=parseInt(r[1],10)),o.trigger("data",s)):(r=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))?(s={type:"tag",tagType:"media-sequence"},r[1]&&(s.number=parseInt(r[1],10)),o.trigger("data",s)):(r=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))?(s={type:"tag",tagType:"discontinuity-sequence"},r[1]&&(s.number=parseInt(r[1],10)),o.trigger("data",s)):(r=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))?(s={type:"tag",tagType:"playlist-type"},r[1]&&(s.playlistType=r[1]),o.trigger("data",s)):(r=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))?(s=K(mr(r[1]),{type:"tag",tagType:"byterange"}),o.trigger("data",s)):(r=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))?(s={type:"tag",tagType:"allow-cache"},r[1]&&(s.allowed=!/NO/.test(r[1])),o.trigger("data",s)):(r=/^#EXT-X-MAP:?(.*)$/.exec(e))?(s={type:"tag",tagType:"map"},r[1]&&((i=gr(r[1])).URI&&(s.uri=i.URI),i.BYTERANGE)&&(s.byterange=mr(i.BYTERANGE)),o.trigger("data",s)):(r=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e))?(s={type:"tag",tagType:"stream-inf"},r[1]&&(s.attributes=gr(r[1]),s.attributes.RESOLUTION&&(i={},(t=s.attributes.RESOLUTION.split("x"))[0]&&(i.width=parseInt(t[0],10)),t[1]&&(i.height=parseInt(t[1],10)),s.attributes.RESOLUTION=i),s.attributes.BANDWIDTH&&(s.attributes.BANDWIDTH=parseInt(s.attributes.BANDWIDTH,10)),s.attributes["PROGRAM-ID"])&&(s.attributes["PROGRAM-ID"]=parseInt(s.attributes["PROGRAM-ID"],10)),o.trigger("data",s)):(r=/^#EXT-X-MEDIA:?(.*)$/.exec(e))?(s={type:"tag",tagType:"media"},r[1]&&(s.attributes=gr(r[1])),o.trigger("data",s)):/^#EXT-X-ENDLIST/.exec(e)?o.trigger("data",{type:"tag",tagType:"endlist"}):/^#EXT-X-DISCONTINUITY/.exec(e)?o.trigger("data",{type:"tag",tagType:"discontinuity"}):(r=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))?(s={type:"tag",tagType:"program-date-time"}
vendor: 17,084 bytes, line 1
1,r[1]&&(s.dateTimeString=r[1],s.dateTimeObject=new Date(r[1])),o.trigger("data",s)):(r=/^#EXT-X-KEY:?(.*)$/.exec(e))?(s={type:"tag",tagType:"key"},r[1]&&(s.attributes=gr(r[1]),s.attributes.IV)&&("0x"===s.attributes.IV.substring(0,2).toLowerCase()&&(s.attributes.IV=s.attributes.IV.substring(2)),s.attributes.IV=s.attributes.IV.match(/.{8}/g),s.attributes.IV[0]=parseInt(s.attributes.IV[0],16),s.attributes.IV[1]=parseInt(s.attributes.IV[1],16),s.attributes.IV[2]=parseInt(s.attributes.IV[2],16),s.attributes.IV[3]=parseInt(s.attributes.IV[3],16),s.attributes.IV=new Uint32Array(s.attributes.IV)),o.trigger("data",s)):(r=/^#EXT-X-START:?(.*)$/.exec(e))?(s={type:"tag",tagType:"start"},r[1]&&(s.attributes=gr(r[1]),s.attributes["TIME-OFFSET"]=parseFloat(s.attributes["TIME-OFFSET"]),s.attributes.PRECISE=/YES/.test(s.attributes.PRECISE)),o.trigger("data",s)):(r=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))?(s={type:"tag",tagType:"cue-out-cont"},r[1]?s.data=r[1]:s.data="",o.trigger("data",s)):(r=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))?(s={type:"tag",tagType:"cue-out"},r[1]?s.data=r[1]:s.data="",o.trigger("data",s)):(r=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))?(s={type:"tag",tagType:"cue-in"},r[1]?s.data=r[1]:s.data="",o.trigger("data",s)):(r=/^#EXT-X-SKIP:(.*)$/.exec(e))&&r[1]?((s={type:"tag",tagType:"skip"}).attributes=gr(r[1]),s.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(s.attributes["SKIPPED-SEGMENTS"]=parseInt(s.attributes["SKIPPED-SEGMENTS"],10)),s.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(s.attributes["RECENTLY-REMOVED-DATERANGES"]=s.attributes["RECENTLY-REMOVED-DATERANGES"].split(xr)),o.trigger("data",s)):(r=/^#EXT-X-PART:(.*)$/.exec(e))&&r[1]?((s={type:"tag",tagType:"part"}).attributes=gr(r[1]),["DURATION"].forEach(function(e){s.attributes.hasOwnProperty(e)&&(s.attributes[e]=parseFloat(s.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){s.attributes.hasOwnProperty(e)&&(s.attributes[e]=/YES/.test(s.attributes[e]))}),s.attributes.hasOwnProperty("BYTERANGE")&&(s.attributes.byterange=mr(s.attributes.BYTERANGE)),o.trigger("data",s)):(r=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&r[1]?((s={type:"tag",tagType:"server-control"}).attributes=gr(r[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){s.attributes.hasOwnProperty(e)&&(s.attributes[e]=parseFloat(s.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){s.attributes.hasOwnProperty(e)&&(s.attributes[e]=/YES/.test(s.attributes[e]))}),o.trigger("data",s)):(r=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&r[1]?((s={type:"tag",tagType:"part-inf"}).attributes=gr(r[1]),["PART-TARGET"].forEach(function(e){s.attributes.hasOwnProperty(e)&&(s.attributes[e]=parseFloat(s.attributes[e]))}),o.trigger("data",s)):(r=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&r[1]?((s={type:"tag",tagType:"preload-hint"}).attributes=gr(r[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){var t;s.attributes.hasOwnProperty(e)&&(s.attributes[e]=parseInt(s.attributes[e],10),t="BYTERANGE-LENGTH"===e?"length":"offset",s.attributes.byterange=s.attributes.byterange||{},s.attributes.byterange[t]=s.attributes[e],delete s.attributes[e])}),o.trigger("data",s)):(r=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&r[1]?((s={type:"tag",tagType:"rendition-report"}).attributes=gr(r[1]),["LAST-MSN","LAST-PART"].forEach(function(e){s.attributes.hasOwnProperty(e)&&(s.attributes[e]=parseInt(s.attributes[e],10))}),o.trigger("data",s)):o.trigger("data",{type:"tag",data:e.slice(4)}))}))},i.addParser=function(e){var t=this,i=e.expression,n=e.customType,r=e.dataParser,s=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(i.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:n,segment:s}),!0})},i.addTagMapper=function(e){var t=e.expression,i=e.map;this.tagMappers.push(function(e){return t.test(e)?i(e):e})},e}(r),Ir=function(e){return e.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})},Lr=function(i){function e(){var e,n,t=i.call(this)||this,r=(t.lineStream=new Er,t.parseStream=new Ar,t.lineStream.pipe(t.parseStream),_(t)),s=[],a={},l=!1,u={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},c=0,d=(t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},0),h=0;return t.on("end",function(){a.uri||!a.parts&&!a.preloadHints||(!a.map&&e&&(a.map=e),!a.key&&n&&(a.key=n),a.timeline||"number"!=typeof c||(a.timeline=c),t.manifest.preloadSegment=a)}),t.parseStream.on("data",function(o){var t,i;({tag:function(){({version:function(){o.version&&(this.manifest.version=o.version)},"allow-cache":function(){this.manifest.allowCache=o.allowed,"allowed"in o||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in o&&((a.byterange=e).length=o.length,"offset"in o||(o.offset=d)),"offset"in o&&((a.byterange=e).offset=o.offset),d=e.offset+e.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),0<o.duration&&(a.duration=o.duration),0===o.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=s},key:function(){if(o.attributes)if("NONE"===o.attributes.METHOD)n=null;else if(o.attributes.URI)if("com.apple.streamingkeydelivery"===o.attributes.KEYFORMAT)this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:o.attributes};else if("com.microsoft.playready"===o.attributes.KEYFORMAT)this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:o.attributes.URI};else{if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===o.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(o.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===o.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==o.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):o.attributes.KEYID&&"0x"===o.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:o.attributes.KEYFORMAT,keyId:o.attributes.KEYID.substring(2)},pssh:function(e){for(var t=fr(e),i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i}(o.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));o.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:o.attributes.METHOD||"AES-128",uri:o.attributes.URI},void 0!==o.attributes.IV&&(n.iv=o.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(o.number)?this.manifest.mediaSequence=o.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+o.number})},"discontinuity-sequence":function(){isFinite(o.number)?(this.manifest.discontinuitySequence=o.number,c=o.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+o.number})},"playlist-type":function(){/VOD|EVENT/.test(o.playlistType)?this.manifest.playlistType=o.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+o.playlist})},map:function(){e={},o.uri&&(e.uri=o.uri),o.byterange&&(e.byterange=o.byterange),n&&(e.key=n)},"stream-inf":function(){this.manifest.playlists=s,this.manifest.mediaGroups=this.manifest.mediaGroups||u,o.attributes?(a.attributes||(a.attributes={}),K(a.attributes,o.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){var e;this.manifest.mediaGroups=this.manifest.mediaGroups||u,o.attributes&&o.attributes.TYPE&&o.attributes["GROUP-ID"]&&o.attributes.NAME?((e=this.manifest.mediaGroups[o.attributes.TYPE])[o.attributes["GROUP-ID"]]=e[o.attributes["GROUP-ID"]]||{},t=e[o.attributes["GROUP-ID"]],(i={default:/yes/i.test(o.attributes.DEFAULT)}).autoselect=!!i.default||/yes/i.test(o.attributes.AUTOSELECT),o.attributes.LANGUAGE&&(i.language=o.attributes.LANGUAGE),o.attributes.URI&&(i.uri=o.attributes.URI),o.attributes["INSTREAM-ID"]&&(i.instreamId=o.attributes["INSTREAM-ID"]),o.attributes.CHARACTERISTICS&&(i.characteristics=o.attributes.CHARACTERISTICS),o.attributes.FORCED&&(i.forced=/yes/i.test(o.attributes.FORCED)),t[o.attributes.NAME]=i):this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){c+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(s.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=o.dateTimeString,this.manifest.dateTimeObject=o.dateTimeObject),a.dateTimeString=o.dateTimeString,a.dateTimeObject=o.dateTimeObject},targetduration:function(){!isFinite(o.duration)||o.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+o.duration}):(this.manifest.targetDuration=o.duration,vr.call(this,this.manifest))},start:function(){!o.attributes||isNaN(o.attributes["TIME-OFFSET"])?this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"}):this.manifest.start={timeOffset:o.attributes["TIME-OFFSET"],precise:o.attributes.PRECISE}},"cue-out":function(){a.cueOut=o.data},"cue-out-cont":function(){a.cueOutCont=o.data},"cue-in":function(){a.cueIn=o.data},skip:function(){this.manifest.skip=yr(o.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",o.attributes,["SKIPPED-SEGMENTS"])},part:function(){var i=this,e=(l=!0,this.manifest.segments.length),t=yr(o.attributes),t=(a.parts=a.parts||[],a.parts.push(t),t.byterange&&(t.byterange.hasOwnProperty("offset")||(t.byterange.offset=h),h=t.byterange.offset+t.byterange.length),a.parts.length-1);this.warnOnMissingAttributes_("#EXT-X-PART #"+t+" for segment #"+e,o.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(e,t){e.hasOwnProperty("lastPart")||i.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+t+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var e=this.manifest.serverControl=yr(o.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),vr.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,t=yr(o.attributes),i=t.type&&"PART"===t.type,n=(a.preloadHints=a.preloadHints||[],a.preloadHints.push(t),!t.byterange||t.byterange.hasOwnProperty("offset")||(t.byterange.offset=i?h:0,i&&(h=t.byterange.offset+t.byterange.length)),a.preloadHints.length-1);if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+n+" for segment #"+e,o.attributes,["TYPE","URI"]),t.type)for(var r=0;r<a.preloadHints.length-1;r++){var s=a.preloadHints[r];s.type&&s.type===t.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+n+" for segment #"+e+" has the same TYPE "+t.type+" as preload hint #"+r})}},"rendition-report":function(){var e=yr(o.attributes),e=(this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e),this.manifest.renditionReports.length-1),t=["LAST-MSN","URI"];l&&t.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+e,o.attributes,t)},"part-inf":function(){this.manifest.partInf=yr(o.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",o.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),vr.call(this,this.manifest)}}[o.tagType]||function(){}).call(r)},uri:function(){a.uri=o.uri,s.push(a),!this.manifest.targetDuration||"duration"in a||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),n&&(a.key=n),a.timeline=c,e&&(a.map=e),h=0,a={}},comment:function(){},custom:function(){o.segment?(a.custom=a.custom||{},a.custom[o.customType]=o.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[o.customType]=o.data)}})[o.type].call(r)}),t}b(e,i);var t=e.prototype;return t.warnOnMissingAttributes_=function(e,t,i){var n=[];i.forEach(function(e){t.hasOwnProperty(e)||n.push(e)}),n.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+n.join(", ")})},t.push=function(e){this.lineStream.push(e)},t.end=function(){this.lineStream.push("\n"),this.trigger("end")},t.addParser=function(e){this.parseStream.addParser(e)},t.addTagMapper=function(e){this.parseStream.addTagMapper(e)},e}(r),Pr={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},Or=["video","audio","text"],Dr=["Video","Audio","Text"],Nr=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,i){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)})},Mr=function(e){var e=(e=void 0===e?"":e).split(","),s=[];return e.forEach(function(n){var r;n=n.trim(),Or.forEach(function(e){var t,i=Pr[e].exec(n.toLowerCase());!i||i.length<=1||(r=e,i=n.substring(0,i[1].length),t=n.replace(i,""),s.push({type:i,details:t,mediaType:e}))}),r||s.push({type:n,details:"",mediaType:"unknown"})}),s},Rr=function(e){var t,i,n;if(e&&"string"==typeof e)return i="video",1===(t=e.toLowerCase().split(",").map(function(e){return Nr(e.trim())})).length&&_r(t[0])?i="audio":1===t.length&&(n=t[0],Pr.text.test((n=void 0===n?"":n).trim().toLowerCase()))&&(i="application"),n="mp4",t.every(function(e){return Pr.mp4.test(e)})?n="mp4":t.every(function(e){return Pr.webm.test(e)})?n="webm":t.every(function(e){return Pr.ogg.test(e)})&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'},Ur=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,jr=/^application\/dash\+xml/i,Br=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},C=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||Br(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},E=window.BigInt||Number,Fr=[E("0x1"),E("0x100"),E("0x10000"),E("0x1000000"),E("0x100000000"),E("0x10000000000"),E("0x1000000000000"),E("0x100000000000000"),E("0x10000000000000000")],Hr=function(n,e){var e=void 0===e?{}:e,t=e.signed,t=void 0!==t&&t,e=e.le,r=void 0!==e&&e,e=(n=C(n),r?"reduce":"reduceRight"),e=(n[e]||Array.prototype[e]).call(n,function(e,t,i){i=r?i:Math.abs(i+1-n.length);return e+E(t)*Fr[i]},E(0));return t&&(t=Fr[n.length]/E(2)-E(1))<(e=E(e))&&(e=(e=e-t-t)-E(2)),Number(e)},x=function(i,e,t){var t=void 0===t?{}:t,n=t.offset,r=void 0===n?0:n,n=t.mask,s=void 0===n?[]:n,t=(i=C(i),(e=C(e)).every||Array.prototype.every);return e.length&&i.length-r>=e.length&&t.call(e,function(e,t){return e===(s[t]?s[t]&i[r+t]:i[r+t])})},qr="http://example.com";function Vr(e){e=e;for(var t=window.atob?window.atob(e):Buffer.from(e,"base64").toString("binary"),i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i}function Wr(e,t){return(t=void 0===t?Object:t)&&"function"==typeof t.freeze?t.freeze(e):e}var $r=Wr({HTML:"text/html",isHTML:function(e){return e===$r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),zr=Wr({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===zr.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),Gr={freeze:Wr,MIME_TYPE:$r,NAMESPACE:zr},Xr=Gr.NAMESPACE;function Kr(e){return""!==e}function Yr(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function Qr(e){return e?(e=(e=e)?e.split(/[\t\n\f\r ]+/).filter(Kr):[],Object.keys(e.reduce(Yr,{}))):[]}function Jr(e,t){for(var i in e)t[i]=e[i]}function Zr(e,t){var i,n=e.prototype;n instanceof t||((i=function(){}).prototype=t.prototype,Jr(n,i=new i),e.prototype=n=i),n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var es,n={}
vendor: 15,347 bytes, line 1
1,w=(n.ELEMENT_NODE=1,n.ATTRIBUTE_NODE=2,n.TEXT_NODE=3,n.CDATA_SECTION_NODE=4,n.ENTITY_REFERENCE_NODE=5,n.ENTITY_NODE=6,n.PROCESSING_INSTRUCTION_NODE=7,n.COMMENT_NODE=8,n.DOCUMENT_NODE=9,n.DOCUMENT_TYPE_NODE=10,n.DOCUMENT_FRAGMENT_NODE=11,n.NOTATION_NODE=12,{}),A={};w.INDEX_SIZE_ERR=(A[1]="Index size error",1),w.DOMSTRING_SIZE_ERR=(A[2]="DOMString size error",2),w.HIERARCHY_REQUEST_ERR=(A[3]="Hierarchy request error",3),w.WRONG_DOCUMENT_ERR=(A[4]="Wrong document",4),w.INVALID_CHARACTER_ERR=(A[5]="Invalid character",5),w.NO_DATA_ALLOWED_ERR=(A[6]="No data allowed",6),w.NO_MODIFICATION_ALLOWED_ERR=(A[7]="No modification allowed",7),w.NOT_FOUND_ERR=(A[8]="Not found",8),w.NOT_SUPPORTED_ERR=(A[9]="Not supported",9),w.INUSE_ATTRIBUTE_ERR=(A[10]="Attribute in use",10);function ts(e,t){var i;return t instanceof Error?i=t:(i=this,Error.call(this,A[e]),this.message=A[e],Error.captureStackTrace&&Error.captureStackTrace(this,ts)),i.code=e,t&&(this.message=this.message+": "+t),i}function is(){}function ns(e,t){this._node=e,this._refresh=t,rs(this)}function rs(e){var t,i=e._node._inc||e._node.ownerDocument._inc;e._inc!=i&&(t=e._refresh(e._node),Ns(e,"length",t.length),Jr(t,e),e._inc=i)}function ss(){}function os(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function as(e,t,i,n){n?t[os(t,n)]=i:t[t.length++]=i,e&&(t=(i.ownerElement=e).ownerDocument)&&(n&&ps(t,e,n),n=e,e=i,(i=t)&&i._inc++,e.namespaceURI===Xr.XMLNS)&&(n._nsMap[e.prefix?e.localName:""]=e.value)}function ls(e,t,i){var n=os(t,i);if(!(0<=n))throw ts(8,new Error(e.tagName+"@"+i));for(var r,s=t.length-1;n<s;)t[n]=t[++n];t.length=s,e&&(r=e.ownerDocument)&&(ps(r,e,i),i.ownerElement=null)}function us(){}function I(){}function cs(e){return("<"==e?"&lt;":">"==e&&"&gt;")||("&"==e?"&amp;":'"'==e&&"&quot;")||"&#"+e.charCodeAt()+";"}function ds(e,t){if(t(e))return 1;if(e=e.firstChild)do{if(ds(e,t))return 1}while(e=e.nextSibling)}function hs(){}function ps(e,t,i){e&&e._inc++,i.namespaceURI===Xr.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function fs(e,t,i){if(e&&e._inc){e._inc++;var n=t.childNodes;if(i)n[n.length++]=i;else{for(var r=t.firstChild,s=0;r;)r=(n[s++]=r).nextSibling;n.length=s}}}function ms(e,t){var i=t.previousSibling,n=t.nextSibling;return i?i.nextSibling=n:e.firstChild=n,n?n.previousSibling=i:e.lastChild=i,fs(e.ownerDocument,e),t}function gs(e,t,i){var n=t.parentNode;if(n&&n.removeChild(t),11===t.nodeType){var r=t.firstChild;if(null==r)return t;var s=t.lastChild}else r=s=t;n=i?i.previousSibling:e.lastChild;for(r.previousSibling=n,s.nextSibling=i,n?n.nextSibling=r:e.firstChild=r,null==i?e.lastChild=s:i.previousSibling=s;r.parentNode=e,r!==s&&(r=r.nextSibling););return fs(e.ownerDocument||e,e),11==t.nodeType&&(t.firstChild=t.lastChild=null),t}function ys(){this._nsMap={}}function vs(){}function _s(){}function bs(){}function Ts(){}function ws(){}function Ss(){}function ks(){}function Cs(){}function Es(){}function xs(){}function As(){}function Is(){}function Ls(e,t){var i,n=[],r=9==this.nodeType&&this.documentElement||this,s=r.prefix,o=r.namespaceURI;return Ds(this,n,e,t,i=o&&null==s&&null==r.lookupPrefix(o)?[{namespace:o,prefix:null}]:i),n.join("")}function Ps(e,t,i){var n=e.prefix||"",r=e.namespaceURI;if(r&&("xml"!==n||r!==Xr.XML)&&r!==Xr.XMLNS){for(var s=i.length;s--;){var o=i[s];if(o.prefix===n)return o.namespace!==r}return 1}}function Os(e,t,i){e.push(" ",t,'="',i.replace(/[<&"]/g,cs),'"')}function Ds(e,t,i,n,r){if(r=r||[],n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case 1:var s=e.attributes,o=s.length,a=e.firstChild,l=e.tagName,u=l;if(!(i=Xr.isHTML(e.namespaceURI)||i)&&!e.prefix&&e.namespaceURI){for(var c,d=0;d<s.length;d++)if("xmlns"===s.item(d).name){c=s.item(d).value;break}if(!c)for(var h=r.length-1;0<=h;h--)if(""===(p=r[h]).prefix&&p.namespace===e.namespaceURI){c=p.namespace;break}if(c!==e.namespaceURI)for(var p,h=r.length-1;0<=h;h--)if((p=r[h]).namespace===e.namespaceURI){p.prefix&&(u=p.prefix+":"+l);break}}t.push("<",u);for(var f=0;f<o;f++)"xmlns"==(m=s.item(f)).prefix?r.push({prefix:m.localName,namespace:m.value}):"xmlns"==m.nodeName&&r.push({prefix:"",namespace:m.value});for(var m,g,y,f=0;f<o;f++)Ps(m=s.item(f),0,r)&&(Os(t,(g=m.prefix||"")?"xmlns:"+g:"xmlns",y=m.namespaceURI),r.push({prefix:g,namespace:y})),Ds(m,t,i,n,r);if(l===u&&Ps(e,0,r)&&(Os(t,(g=e.prefix||"")?"xmlns:"+g:"xmlns",y=e.namespaceURI),r.push({prefix:g,namespace:y})),a||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(t.push(">"),i&&/^script$/i.test(l))for(;a;)a.data?t.push(a.data):Ds(a,t,i,n,r.slice()),a=a.nextSibling;else for(;a;)Ds(a,t,i,n,r.slice()),a=a.nextSibling;t.push("</",u,">")}else t.push("/>");return;case 9:case 11:for(a=e.firstChild;a;)Ds(a,t,i,n,r.slice()),a=a.nextSibling;return;case 2:return Os(t,e.name,e.value);case 3:return t.push(e.data.replace(/[<&]/g,cs).replace(/]]>/g,"]]&gt;"));case 4:return t.push("<![CDATA[",e.data,"]]>");case 8:return t.push("\x3c!--",e.data,"--\x3e");case 10:var v=e.publicId,_=e.systemId;return t.push("<!DOCTYPE ",e.name),void(v?(t.push(" PUBLIC ",v),_&&"."!=_&&t.push(" ",_),t.push(">")):_&&"."!=_?t.push(" SYSTEM ",_,">"):((v=e.internalSubset)&&t.push(" [",v,"]"),t.push(">")));case 7:return t.push("<?",e.target," ",e.data,"?>");case 5:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function Ns(e,t,i){e[t]=i}w.INVALID_STATE_ERR=(A[11]="Invalid state",11),w.SYNTAX_ERR=(A[12]="Syntax error",12),w.INVALID_MODIFICATION_ERR=(A[13]="Invalid modification",13),w.NAMESPACE_ERR=(A[14]="Invalid namespace",14),w.INVALID_ACCESS_ERR=(A[15]="Invalid access",15),ts.prototype=Error.prototype,Jr(w,ts),is.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var i=[],n=0;n<this.length;n++)Ds(this[n],i,e,t);return i.join("")}},ns.prototype.item=function(e){return rs(this),this[e]},Zr(ns,is),ss.prototype={length:0,item:is.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var i=this[t];if(i.nodeName==e)return i}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new ts(10);t=this.getNamedItem(e.nodeName);return as(this._ownerElement,this,e,t),t},setNamedItemNS:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new ts(10);return t=this.getNamedItemNS(e.namespaceURI,e.localName),as(this._ownerElement,this,e,t),t},removeNamedItem:function(e){e=this.getNamedItem(e);return ls(this._ownerElement,this,e),e},removeNamedItemNS:function(e,t){e=this.getNamedItemNS(e,t);return ls(this._ownerElement,this,e),e},getNamedItemNS:function(e,t){for(var i=this.length;i--;){var n=this[i];if(n.localName==t&&n.namespaceURI==e)return n}return null}},us.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var n=new hs;return n.implementation=this,n.childNodes=new is,n.doctype=i||null,i&&n.appendChild(i),t&&(i=n.createElementNS(e,t),n.appendChild(i)),n},createDocumentType:function(e,t,i){var n=new Ss;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=i||"",n}},I.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return gs(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return ms(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,i,n){var r=new i.constructor;for(var s in i){var o=i[s];"object"!=typeof o&&o!=r[s]&&(r[s]=o)}i.childNodes&&(r.childNodes=new is);r.ownerDocument=t;switch(r.nodeType){case 1:var a=i.attributes,l=r.attributes=new ss,u=a.length;l._ownerElement=r;for(var c=0;c<u;c++)r.setAttributeNode(e(t,a.item(c),!0));break;case 2:n=!0}if(n)for(var d=i.firstChild;d;)r.appendChild(e(t,d,n)),d=d.nextSibling;return r}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&3==t.nodeType&&3==e.nodeType?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return 0<this.attributes.length},lookupPrefix:function(e){for(var t=this;t;){var i=t._nsMap;if(i)for(var n in i)if(i[n]==e)return n;t=2==t.nodeType?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var i=t._nsMap;if(i&&e in i)return i[e];t=2==t.nodeType?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},Jr(n,I),Jr(n,I.prototype),hs.prototype={nodeName:"#document",nodeType:9,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(11==e.nodeType)for(var i=e.firstChild;i;){var n=i.nextSibling;this.insertBefore(i,t),i=n}else null==this.documentElement&&1==e.nodeType&&(this.documentElement=e),gs(this,e,t),e.ownerDocument=this;return e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),ms(this,e)},importNode:function(e,t){return function e(t,i,n){var r;switch(i.nodeType){case 1:(r=i.cloneNode(!1)).ownerDocument=t;case 11:break;case 2:n=!0}r=r||i.cloneNode(!1);r.ownerDocument=t;r.parentNode=null;if(n)for(var s=i.firstChild;s;)r.appendChild(e(t,s,n)),s=s.nextSibling;return r}(this,e,t)},getElementById:function(t){var i=null;return ds(this.documentElement,function(e){if(1==e.nodeType&&e.getAttribute("id")==t)return i=e,!0}),i},getElementsByClassName:function(o){var a=Qr(o);return new ns(this,function(r){var s=[];return 0<a.length&&ds(r.documentElement,function(e){var t,i,n;e!==r&&1===e.nodeType&&(t=e.getAttribute("class"))&&((i=o===t)||(t=Qr(t),i=a.every((n=t,function(e){return n&&-1!==n.indexOf(e)}))),i)&&s.push(e)}),s})},createElement:function(e){var t=new ys;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new is,(t.attributes=new ss)._ownerElement=t},createDocumentFragment:function(){var e=new xs;return e.ownerDocument=this,e.childNodes=new is,e},createTextNode:function(e){var t=new bs;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Ts;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ws;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new As;return i.ownerDocument=this,i.tagName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new vs;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new Es;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new ys,n=t.split(":"),r=i.attributes=new ss;return i.childNodes=new is,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,r._ownerElement=i},createAttributeNS:function(e,t){var i=new vs,n=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,i}},Zr(hs,I),hs.prototype.getElementsByTagName=(ys.prototype={nodeType:1,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){e=this.getAttributeNode(e);return e&&e.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){e=this.ownerDocument.createAttribute(e);e.value=e.nodeValue=""+t,this.setAttributeNode(e)},removeAttribute:function(e){e=this.getAttributeNode(e);e&&this.removeAttributeNode(e)},appendChild:function(e){return 11===e.nodeType?this.insertBefore(e,null):(t=this,(i=(e=e).parentNode)&&(n=t.lastChild,i.removeChild(e),n=t.lastChild),n=t.lastChild,e.parentNode=t,e.previousSibling=n,e.nextSibling=null,n?n.nextSibling=e:t.firstChild=e,t.lastChild=e,fs(t.ownerDocument,t,e),e);var t,i,n},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){e=this.getAttributeNodeNS(e,t);e&&this.removeAttributeNode(e)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){e=this.getAttributeNodeNS(e,t);return e&&e.value||""},setAttributeNS:function(e,t,i){e=this.ownerDocument.createAttributeNS(e,t);e.value=e.nodeValue=""+i,this.setAttributeNode(e)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(n){return new ns(this,function(t){var i=[];return ds(t,function(e){e===t||1!=e.nodeType||"*"!==n&&e.tagName!=n||i.push(e)}),i})},getElementsByTagNameNS:function(n,r){return new ns(this,function(t){var i=[];return ds(t,function(e){e===t||1!==e.nodeType||"*"!==n&&e.namespaceURI!==n||"*"!==r&&e.localName!=r||i.push(e)}),i})}}).getElementsByTagName,hs.prototype.getElementsByTagNameNS=ys.prototype.getElementsByTagNameNS,Zr(ys,I),vs.prototype.nodeType=2,Zr(vs,I),_s.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(A[3])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){var n=this.data.substring(0,e),e=this.data.substring(e+t);this.nodeValue=this.data=i=n+i+e,this.length=i.length}},Zr(_s,I),bs.prototype={nodeName:"#text",nodeType:3,splitText:function(e){var t=(i=this.data).substring(e),i=i.substring(0,e),e=(this.data=this.nodeValue=i,this.length=i.length,this.ownerDocument.createTextNode(t));return this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling),e}},Zr(bs,_s),Ts.prototype={nodeName:"#comment",nodeType:8},Zr(Ts,_s),ws.prototype={nodeName:"#cdata-section",nodeType:4},Zr(ws,_s),Ss.prototype.nodeType=10,Zr(Ss,I),ks.prototype.nodeType=12,Zr(ks,I),Cs.prototype.nodeType=6,Zr(Cs,I),Es.prototype.nodeType=5,Zr(Es,I),xs.prototype.nodeName="#document-fragment",xs.prototype.nodeType=11,Zr(xs,I),As.prototype.nodeType=7,Zr(As,I),Is.prototype.serializeToString=function(e,t,i){return Ls.call(e,t,i)},I.prototype.toString=Ls;try{Object.defineProperty&&(es=function e(t){switch(t.nodeType){case 1:case 11:var i=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&i.push(e(t)),t=t.nextSibling;return i.join("");default:return t.nodeValue}},Object.defineProperty(ns.prototype,"length",{get:function(){return rs(this),this.$$length}}),Object.defineProperty(I.prototype,"textContent",{get:function(){return es(this)},set:function(e){switch(this.nodeType){case 1:case 11:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Ns=function(e,t,i){e["$$"+t]=i})}catch(e){}var Dn={DocumentType:Ss,DOMException:ts,DOMImplementation:us,Element:ys,Node:I,NodeList:is,XMLSerializer:Is},Ms=G(function(e,t){var i=Gr.freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil
1:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub
vendor: 8,814 bytes, line 1
1:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES}),Rs=(Ms.XML_ENTITIES,Ms.HTML_ENTITIES,Ms.entityMap,Gr.NAMESPACE),On=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,i=new RegExp("[\\-\\.0-9"+On.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Us=new RegExp("^"+On.source+i.source+"*(?::"+On.source+i.source+"*)?$"),js=0,Bs=1,Fs=2,Hs=3,qs=4,Vs=5,Ws=6,$s=7;function zs(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,zs)}function Gs(){}function Xs(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Ks(e,t,i){for(var n=e.tagName,r=null,s=e.length;s--;){var o=e[s],a=o.qName,l=o.value,a=0<(c=a.indexOf(":"))?(u=o.prefix=a.slice(0,c),d=a.slice(c+1),"xmlns"===u&&d):(u=null,"xmlns"===(d=a)&&"");o.localName=d,!1!==a&&(null==r&&(r={},Ys(i,i={})),i[a]=r[a]=l,o.uri=Rs.XMLNS,t.startPrefixMapping(a,l))}for(var u,s=e.length;s--;)(u=(o=e[s]).prefix)&&("xml"===u&&(o.uri=Rs.XML),"xmlns"!==u)&&(o.uri=i[u||""]);var c,d=0<(c=n.indexOf(":"))?(u=e.prefix=n.slice(0,c),e.localName=n.slice(c+1)):(u=null,e.localName=n),h=e.uri=i[u||""];if(t.startElement(h,d,n,e),!e.closed)return e.currentNSMap=i,e.localNSMap=r,1;if(t.endElement(h,d,n),r)for(u in r)t.endPrefixMapping(u)}function Ys(e,t){for(var i in e)t[i]=e[i]}function Qs(){this.attributeNames={}}(zs.prototype=new Error).name=zs.name,Gs.prototype={parse:function(e,t,i){var n=this.domBuilder;n.startDocument(),Ys(t,t={}),function(i,e,n,r,s){function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?65535<(t=parseInt(t.substr(1).replace("x","0x")))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t):(s.error("entity not found:"+e),e)}function t(e){var t;f<e&&(t=i.substring(f,e).replace(/&#?\w+;/g,o),d&&a(f),r.characters(t,0,e-f),f=e)}function a(e,t){for(;u<=e&&(t=c.exec(i));)l=t.index,u=l+t[0].length,d.lineNumber++;d.columnNumber=e-l+1}var l=0,u=0,c=/.*(?:\r\n?|\n)|.*$/g,d=r.locator,h=[{currentNSMap:e}],p={},f=0;for(;;){try{var m,g,y=i.indexOf("<",f);if(y<0)return i.substr(f).match(/^\s*$/)||(m=r.doc,g=m.createTextNode(i.substr(f)),m.appendChild(g),r.currentElement=g);switch(f<y&&t(y),i.charAt(y+1)){case"/":var v=i.indexOf(">",y+3),_=i.substring(y+2,v).replace(/[ \t\n\r]+$/g,""),b=h.pop(),T=(v<0?(_=i.substring(y+2).replace(/[\s<].*/,""),s.error("end tag name: "+_+" is not complete:"+b.tagName),v=y+1+_.length):_.match(/\s</)&&(_=_.replace(/[\s<].*/,""),s.error("end tag name: "+_+" maybe not complete"),v=y+1+_.length),b.localNSMap),w=b.tagName==_;if(w||b.tagName&&b.tagName.toLowerCase()==_.toLowerCase()){if(r.endElement(b.uri,b.localName,_),T)for(var S in T)r.endPrefixMapping(S);w||s.fatalError("end tag name: "+_+" is not match the current start tagName:"+b.tagName)}else h.push(b);v++;break;case"?":d&&a(y),v=function(e,t,i){var n=e.indexOf("?>",t);if(n){e=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(e)return e[0].length,i.processingInstruction(e[1],e[2]),n+2}return-1}(i,y,r);break;case"!":d&&a(y),v=function(e,t,i,n){{if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(s=e.indexOf("--\x3e",t+4),t<s?(i.comment(e,t+4,s-t-4),s+3):(n.error("Unclosed comment"),-1)):-1;if("CDATA["==e.substr(t+3,6))return s=e.indexOf("]]>",t+9),i.startCDATA(),i.characters(e,t+9,s-t-9),i.endCDATA(),s+3;var r,n=function(e,t){var i,n=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);for(;i=r.exec(e);)if(n.push(i),i[1])return n}(e,t),s=n.length;if(1<s&&/!doctype/i.test(n[0][0]))return e=n[1][0],r=t=!1,3<s&&(/^public$/i.test(n[2][0])?(t=n[3][0],r=4<s&&n[4][0]):/^system$/i.test(n[2][0])&&(r=n[3][0])),n=n[s-1],i.startDTD(e,t,r),i.endDTD(),n.index+n[0].length}return-1}(i,y,r,s);break;default:d&&a(y);var k=new Qs,C=h[h.length-1].currentNSMap,v=function(e,t,n,i,r,s){function o(e,t,i){n.attributeNames.hasOwnProperty(e)&&s.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,i)}var a,l=++t,u=js;for(;;){var c=e.charAt(l);switch(c){case"=":if(u===Bs)a=e.slice(t,l);else if(u!==Fs)throw new Error("attribute equal must after attrName");u=Hs;break;case"'":case'"':if(u===Hs||u===Bs){if(u===Bs&&(s.warning('attribute value must after "="'),a=e.slice(t,l)),t=l+1,!(0<(l=e.indexOf(c,t))))throw new Error("attribute value no end '"+c+"' match");d=e.slice(t,l).replace(/&#?\w+;/g,r),o(a,d,t-1)}else{if(u!=qs)throw new Error('attribute value must after "="');d=e.slice(t,l).replace(/&#?\w+;/g,r),o(a,d,t),s.warning('attribute "'+a+'" missed start quot('+c+")!!"),t=l+1}u=Vs;break;case"/":switch(u){case js:n.setTagName(e.slice(t,l));case Vs:case Ws:case $s:u=$s,n.closed=!0;case qs:case Bs:case Fs:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),u==js&&n.setTagName(e.slice(t,l)),l;case">":switch(u){case js:n.setTagName(e.slice(t,l));case Vs:case Ws:case $s:break;case qs:case Bs:"/"===(d=e.slice(t,l)).slice(-1)&&(n.closed=!0,d=d.slice(0,-1));case Fs:u===Fs&&(d=a),u==qs?(s.warning('attribute "'+d+'" missed quot(")!'),o(a,d.replace(/&#?\w+;/g,r),t)):(Rs.isHTML(i[""])&&d.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+d+'" missed value!! "'+d+'" instead!!'),o(d,d,t));break;case Hs:throw new Error("attribute value missed!!")}return l;case"€":c=" ";default:if(c<=" ")switch(u){case js:n.setTagName(e.slice(t,l)),u=Ws;break;case Bs:a=e.slice(t,l),u=Fs;break;case qs:var d=e.slice(t,l).replace(/&#?\w+;/g,r);s.warning('attribute "'+d+'" missed quot(")!!'),o(a,d,t);case Vs:u=Ws}else switch(u){case Fs:n.tagName,Rs.isHTML(i[""])&&a.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),o(a,a,t),t=l,u=Bs;break;case Vs:s.warning('attribute space is required"'+a+'"!!');case Ws:u=Bs,t=l;break;case Hs:u=qs,t=l;break;case $s:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}(i,y,k,C,o,s),E=k.length;if(!k.closed&&function(e,t,i,n){var r=n[i];null==r&&((r=e.lastIndexOf("</"+i+">"))<t&&(r=e.lastIndexOf("</"+i)),n[i]=r);return r<t}(i,v,k.tagName,p)&&(k.closed=!0,n.nbsp||s.warning("unclosed xml attribute")),d&&E){for(var x=Xs(d,{}),A=0;A<E;A++){var I=k[A];a(I.offset),I.locator=Xs(d,{})}r.locator=x,Ks(k,r,C)&&h.push(k),r.locator=d}else Ks(k,r,C)&&h.push(k);Rs.isHTML(k.uri)&&!k.closed?v=function(e,t,i,n,r){if(/^(?:script|textarea)$/i.test(i)){var s=e.indexOf("</"+i+">",t),e=e.substring(t+1,s);if(/[&<]/.test(e))return/^script$/i.test(i)?r.characters(e,0,e.length):(e=e.replace(/&#?\w+;/g,n),r.characters(e,0,e.length)),s}return t+1}(i,v,k.tagName,o,r):v++}}catch(e){if(e instanceof zs)throw e;s.error("element parse error: "+e),v=-1}f<v?f=v:t(Math.max(y,f)+1)}}(e,t,i,n,this.errorHandler),n.endDocument()}},Qs.prototype={setTagName:function(e){if(!Us.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!Us.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:i}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};var a={XMLReader:Gs,ParseError:zs},Js=Dn.DOMImplementation,Zs=Gr.NAMESPACE,eo=a.ParseError,to=a.XMLReader;function io(e){this.options=e||{locator:{}}}function no(){this.cdata=!1}function ro(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function so(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}
vendor: 3,072 bytes, line 1
1function oo(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function ao(e,t){(e.currentElement||e.doc).appendChild(t)}io.prototype.parseFromString=function(e,t){var i=this.options,n=new to,r=i.domBuilder||new no,s=i.errorHandler,o=i.locator,a=i.xmlns||{},t=/\/x?html?$/.test(t),l=t?Ms.HTML_ENTITIES:Ms.XML_ENTITIES;return o&&r.setDocumentLocator(o),n.errorHandler=function(n,e,r){if(!n){if(e instanceof no)return e;n=e}var s={},o=n instanceof Function;function t(t){var i=n[t];!i&&o&&(i=2==n.length?function(e){n(t,e)}:n),s[t]=i?function(e){i("[xmldom "+t+"]\t"+e+so(r))}:function(){}}return r=r||{},t("warning"),t("error"),t("fatalError"),s}(s,r,o),n.domBuilder=i.domBuilder||r,t&&(a[""]=Zs.HTML),a.xml=a.xml||Zs.XML,e&&"string"==typeof e?n.parse(e,a,l):n.errorHandler.error("invalid doc source"),r.doc},no.prototype={startDocument:function(){this.doc=(new Js).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,n){var r=this.doc,s=r.createElementNS(e,i||t),o=n.length;ao(this,s),this.currentElement=s,this.locator&&ro(this.locator,s);for(var a=0;a<o;a++){var e=n.getURI(a),l=n.getValue(a),i=n.getQName(a),u=r.createAttributeNS(e,i);this.locator&&ro(n.getLocator(a),u),u.value=u.nodeValue=l,s.setAttributeNode(u)}},endElement:function(e,t,i){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){e=this.doc.createProcessingInstruction(e,t);this.locator&&ro(this.locator,e),ao(this,e)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){var n;(e=oo.apply(this,arguments))&&(n=this.cdata?this.doc.createCDATASection(e):this.doc.createTextNode(e),this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator)&&ro(this.locator,n)},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=oo.apply(this,arguments);e=this.doc.createComment(e);this.locator&&ro(this.locator,e),ao(this,e)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var n=this.doc.implementation;n&&n.createDocumentType&&(n=n.createDocumentType(e,t,i),this.locator&&ro(this.locator,n),ao(this,n),this.doc.doctype=n)},warning:function(e){console.warn("[xmldom warning]\t"+e,so(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,so(this.locator))},fatalError:function(e){throw new eo(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){no.prototype[e]=function(){return null}});function lo(e){return!!e&&"object"==typeof e}function L(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.reduce(function(t,i){return"object"==typeof i&&Object.keys(i).forEac
1h(function(e){Array.isArray(t[e])&&Array.isArray(i[e])?t[e]=t[e].concat(i[e]):lo(t[e])&&lo(i[e])?t[e]=L(t[e],i[e]):t[e]=i[e]}),t},{})}function uo(t){return Object.keys(t).map(function(e){return t[e]})}function co(e){return e.reduce(function(e,t){return e.concat(t)},[])}function ho(e){if(!e.length)return[];for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t}function po(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return i;return-1}function fo(e){var t=e.baseUrl,i=void 0===(i=e.source)?"":i,n=void 0===(n=e.range)?"":n,e=void 0===(e=e.indexRange)?"":e,t={uri:i,resolvedUri:Cr((void 0===t?"":t)||"",i)};return(n||e)&&(i=(n||e).split("-"),n=window.BigInt?window.BigInt(i[0]):parseInt(i[0],10),e=window.BigInt?window.BigInt(i[1]):parseInt(i[1],10),n<Number.MAX_SAFE_INTEGER&&"bigint"==typeof n&&(n=Number(n)),"bigint"==typeof(i="bigint"==typeof(e=e<Number.MAX_SAFE_INTEGER&&"bigint"==typeof e?Number(e):e)||"bigint"==typeof n?window.BigInt(e)-window.BigInt(n)+window.BigInt(1):e-n+1)&&i<Number.MAX_SAFE_INTEGER&&(i=Number(i)),t.byterange={length:i,offset:n}),t}function mo(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e}function go(e){var s,t=e.type,i=e.duration,n=void 0===(n=e.timescale)?1:n,r=e.periodDuration,o=e.sourceDuration,a=function(e,t){for(var i=[],n=e;n<t;n++)i.push(n);return i}((a=al[t](e)).start,a.end).map((s=e,function(e){var t=s.duration,i=s.timescale,n=s.periodStart,r=s.startNumber;return{number:(void 0===r?1:r)+e,duration:t/(void 0===i?1:i),timeline:n,time:e*t}}));return"static"===t&&(a[e=a.length-1].duration=("number"==typeof r?r:o)-i/n*e),a}function yo(e,t,i){for(var n=e.sidx.map||null,r=e.sidx.duration,s=e.timeline||0,o=(o=e.sidx.byterange).offset+o.length,a=t.timescale,l=t.references.filter(function(e){return 1!==e.referenceType}),u=[],c=e.endList?"static":"dynamic",d=e.sidx.timeline,h=d,p=e.mediaSequence||0,f="bigint"==typeof t.firstOffset?window.BigInt(o)+t.firstOffset:o+t.firstOffset,m=0;m<l.length;m++){var g=t.references[m],y=g.referencedSize,g=g.subsegmentDuration,v=void 0,v="bigint"==typeof f?f+window.BigInt(y)-window.BigInt(1):f+y-1,v=ll({baseUrl:i,timescale:a,timeline:s,periodStart:d,presentationTime:h,number:p,duration:g,sourceDuration:r,indexRange:f+"-"+v,type:c})[0];n&&(v.map=n),u.push(v),f+="bigint"==typeof f?window.BigInt(y):y,h+=g/a,p++}e.segments=u}function vo(e){return i=function(e){return e.timeline},uo(e.reduce(function(t,e){return e.forEach(function(e){t[i(e)]=e}),t},{})).sort(function(e,t){return e.timeline>t.timeline?1:-1});var i}function _o(e){var r,s,o=[];return r=e,s=function(e,t,i,n){o=o.concat(e.playlists||[])},ul.forEach(function(e){for(var t in r.mediaGroups[e])for(var i in r.mediaGroups[e][t]){var n=r.mediaGroups[e][t][i];s(n,e,t,i)}}),o}function bo(e){var i=e.playlist,e=e.mediaSequence;i.mediaSequence=e,i.segments.forEach(function(e,t){e.number=i.mediaSequence+t})}function To(e){var r,s,t=e.oldManifest,e=e.newManifest,i=t.playlists.concat(_o(t)),n=e.playlists.concat(_o(e));return e.timelineStarts=vo([t.timelineStarts,e.timelineStarts]),t={oldPlaylists:i,newPlaylists:n,timelineStarts:e.timelineStarts}
1,r=t.oldPlaylists,i=t.newPlaylists,s=t.timelineStarts,i.forEach(function(t){t.discontinuitySequence=po(s,function(e){return e.timeline===t.timeline});var i,e,n=function(e,t){for(var i=0;i<e.length;i++)if(e[i].attributes.NAME===t)return e[i];return null}(r,t.attributes.NAME);n&&!t.sidx&&(i=t.segments[0],-1===(e=po(n.segments,function(e){return Math.abs(e.presentationTime-i.presentationTime)<1/60}))?(bo({playlist:t,mediaSequence:n.mediaSequence+n.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),(!n.segments.length&&t.timeline>n.timeline||n.segments.length&&t.timeline>n.segments[n.segments.length-1].timeline)&&t.discontinuitySequence--):(n.segments[e].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),bo({playlist:t,mediaSequence:n.segments[e].number})))}),e}function wo(e){return uo(e.reduce(function(e,t){var i,n=t.attributes.id+(t.attributes.lang||"");return e[n]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),(i=e[n].segments).push.apply(i,t.segments)),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):(e[n]=t,e[n].attributes.timelineStarts=[]),e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{})).map(function(e){var t,n;return e.discontinuityStarts=(t=e.segments||[],n="discontinuity",t.reduce(function(e,t,i){return t[n]&&e.push(i),e},[])),e})}function So(e,t){var i=cl(e.sidx);return(t=i&&t[i]&&t[i].sidx)&&yo(e,t,e.sidx.resolvedUri),e}function ko(e,h,p){void 0===h&&(h={}),void 0===p&&(p=!1);var f,e=e.reduce(function(e,t){var i,n,r,s,o,a,l=t.attributes.role&&t.attributes.role.value||"",u=t.attributes.lang||"",c=t.attributes.label||"main",d=(e[c=u&&!t.attributes.label?t.attributes.lang+(l?" ("+l+")":""):c]||(e[c]={language:u,autoselect:!0,default:"main"===l,playlists:[],uri:""}),So((u=p,n=(i=t).attributes,r=t.segments,s=t.sidx,o=t.mediaSequence,d=t.discontinuitySequence,i=t.discontinuityStarts,a={attributes:((a={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs})["PROGRAM-ID"]=1,a),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:d,discontinuityStarts:i,timelineStarts:n.timelineStarts,mediaSequence:o,segments:r},n.contentProtection&&(a.contentProtection=n.contentProtection),s&&(a.sidx=s),u&&(a.attributes.AUDIO="audio",a.attributes.SUBTITLES="subs"),a),h));return e[c].playlists.push(d),void 0===f&&"main"===l&&((f=t).default=!0),e},{});return f||(e[Object.keys(e)[0]].default=!0),e}function Co(e){var t=e.attributes,i=e.segments,n=e.sidx,e=e.discontinuityStarts,r={attributes:((r={NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth})["PROGRAM-ID"]=1,r),uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:"",targetDuration:t.duration,discontinuityStarts:e,timelineStarts:t.timelineStarts,segments:i};return t.contentProtection&&(r.contentProtection=t.contentProtection),n&&(r.sidx=n),r}function Eo(e){return"video/mp4"===(e=e.attributes).mimeType||"video/webm"===e.mimeType||"video"===e.contentType}function xo(e){return"audio/mp4"===(e=e.attributes).mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType}function Ao(e){return"text/vtt"===(e=e.attributes).mimeType||"text"===e.contentType}function Io(i){return i?Object.keys(i).reduce(function(e,t){t=i[t];return e.concat(t.playlists)},[]):[]}function Lo(e,t){for(var i,n,r,s,o,a,l,u=e.type,c=e.minimumUpdatePeriod,d=void 0===c?0:c,h=void 0===(c=e.media)?"":c,p=e.sourceDuration,f=void 0===(c=e.timescale)?1:c,m=void 0===(c=e.startNumber)?1:c,g=e.periodStart,y=[],v=-1,_=0;_<t.length;_++)for(var b,T=(S=t[_]).d,w=S.r||0,S=S.t||0,S=(v<0&&(v=S),S&&v<S&&(v=S),void 0),k=(S=w<0?(b=_+1)===t.length?"dynamic"===u&&0<d&&0<h.indexOf("$Number$")?(n=v,l=a=o=s=r=void 0,r=(i=e).NOW,s=i.clientOffset,o=i.availabilityStartTime,a=i.timescale,l=i.periodStart,i=i.minimumUpdatePeriod,Math.ceil((((r+s)/1e3+(void 0===i?0:i)-(o+(void 0===l?0:l)))*(void 0===a?1:a)-n)/T)):(p*f-v)/T:(t[b].t-v)/T:w+1,m+y.length+S),C=m+y.length;C<k;)y.push({number:C,duration:T/f,time:v,timeline:g}),v+=T,C++;return y}function Po(e,t){return e.replace(hl,(r=t,function(e,t,i,n){return"$$"===e?"$":void 0===r[t]?e:(e=""+r[t],"RepresentationID"===t||(n=i?parseInt(n,10):1)<=e.length?e:ne
1w Array(n-e.length+1).join("0")+e)}));var r}function Oo(r,e){var s={RepresentationID:r.id,Bandwidth:r.bandwidth||0},t=void 0===(t=r.initialization)?{sourceURL:"",range:""}:t,o=fo({baseUrl:r.baseUrl,source:Po(t.sourceURL,s),range:t.range});return t=e,((e=r).duration||t?e.duration?go(e):Lo(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]).map(function(e){s.Number=e.number,s.Time=e.time;var t=Po(r.media||"",s),i=r.timescale||1,n=r.presentationTimeOffset||0,n=r.periodStart+(e.time-n)/i;return{uri:t,timeline:e.timeline,duration:e.duration,resolvedUri:Cr(r.baseUrl||"",t),map:o,number:e.number,presentationTime:n}})}function Do(r,e){var t=r.duration,i=void 0===(i=r.segmentUrls)?[]:i,s=r.periodStart;if(!t&&!e||t&&e)throw new Error(ol.SEGMENT_TIME_UNSPECIFIED);var n,o=i.map(function(e){return e=e,i=(t=r).baseUrl,t=t.initialization,t=fo({baseUrl:i,source:(t=void 0===t?{}:t).sourceURL,range:t.range}),(i=fo({baseUrl:i,source:e.media,range:e.mediaRange})).map=t,i;var t,i});return t&&(n=go(r)),(n=e?Lo(r,e):n).map(function(e,t){var i,n;if(o[t])return t=o[t],i=r.timescale||1,n=r.presentationTimeOffset||0,t.timeline=e.timeline,t.duration=e.duration,t.number=e.number,t.presentationTime=s+(e.time-n)/i,t}).filter(function(e){return e})}function No(e){var t,i,n,r,s=e.attributes,s=((e=e.segmentInfo).template?(i=Oo,t=L(s,e.template)):e.base?(i=ll,t=L(s,e.base)):e.list&&(i=Do,t=L(s,e.list)),{attributes:s});return i&&(i=i(t,e.segmentTimeline),t.duration?(n=(r=t).duration,r=r.timescale,t.duration=n/(void 0===r?1:r)):i.length?t.duration=i.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0,s.attributes=t,s.segments=i,e.base)&&t.indexRange&&(s.sidx=i[0],s.segments=[]),s}function Mo(e){return e.textContent.trim()}function Ro(e){var t,i,n,r,s;return(e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e))?(t=(e=e.slice(1))[0],i=e[1],n=e[2],r=e[3],s=e[4],e=e[5],31536e3*parseFloat(t||0)+2592e3*parseFloat(i||0)+86400*parseFloat(n||0)+3600*parseFloat(r||0)+60*parseFloat(s||0)+parseFloat(e||0)):0}function Uo(e,i){return i.length?co(e.map(function(t){return i.map(function(e){return Cr(t,Mo(e))})})):e}function jo(e){var t=P(e,"SegmentTemplate")[0],i=P(e,"SegmentList")[0],n=i&&P(i,"SegmentURL").map(function(e){return L({tag:"SegmentURL"},O(e))}),e=P(e,"SegmentBase")[0],r=(r=i||t)&&P(r,"SegmentTimeline")[0],s=(s=i||e||t)&&P(s,"Initialization")[0],o=((t=t&&O(t))&&s?t.initialization=s&&O(s):t&&t.initialization&&(t.initialization={sourceURL:t.initialization}),{template:t,segmentTimeline:r&&P(r,"S").map(function(e){return O(e)}),list:i&&L(O(i),{segmentUrls:n,initialization:O(s)}),base:e&&L(O(e),{initialization:O(s)})});return Object.keys(o).forEach(function(e){o[e]||delete o[e]}),o}function Bo(a,l,u){return function(e){var r,s,o,t=O(e),i=Uo(l,P(e,"BaseURL")),n=P(e,"Role")[0],n={role:O(n)},t=L(a,t,n),n=P(e,"Accessibility")[0],n="urn:scte:dash:cc:cea-608:2015"===(n=O(n)).schemeIdUri?("string"!=typeof n.value?[]:n.value.split(";")).map(function(e){var t,i,n;return/^CC\d=/.test(n=e)?(i=(t=e.split("="))[0],n=t[1]):/^CC\d$/.test(e)&&(i=e),{channel:i,language:n}}):"urn:scte:dash:cc:cea-708:2015"===n.schemeIdUri?("string"!=typeof n.value?[]:n.value.split(";")).map(function(e){var t,i,n={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};return/=/.test(e)?(t=(i=e.split("="))[0],i=void 0===(i=i[1])?"":i,n.channel=t,n.language=e,i.split(",").forEach(function(e){var e=e.split(":"),t=e[0],e=e[1];"lang"===t?n.language=e:"er"===t?n.easyReader=Number(e):"war"===t?n.aspectRatio=Number(e):"3D"===t&&(n["3D"]=Number(e))})):n.language=e,n.channel&&(n.channel="SERVICE"+n.channel),n}):void 0,n=(n&&(t=L(t,{captionServices:n})),P(e,"Label")[0]),n=(n&&n.childNodes.length&&(n=n.childNodes[0].nodeValue.trim(),t=L(t,{label:n})),P(e,"ContentProtection").reduce(function(e,t){var i=O(t),n=(i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase()),ml[i.schemeIdUri]);return n&&(e[n]={attributes:i},i=P(t,"cenc:pssh")[0])&&(t=Mo(i),e[n].pssh=t&&Vr(t)),e},{})),n=(Object.keys(n).length&&(t=L(t,{contentProtection:n})),jo(e)),e=P(e,"Representation"),n=L(u,n);return co(e.map((r=t,s=i,o=n,function(e){var t=P(e,"BaseURL"),t=Uo(s,t),i=L(r,O(e)),n=jo(e);return t.map(function(e){return{segmentInfo:L(o,n),attributes:L(i,{baseUrl:e})}})})))}}function Fo(e){if(e=yl(e),!(e=P(e,"UTCTiming")[0]))return null;var t=O(e);switch(t.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":t.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":t.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":t.method="DIRECT",t.value=Date.parse(t.value);break;default:throw new Error(ol.UNSUPPORTED_UTC_TIMING_SCHEME)}return t}function Ho(e,t){var i,n,r;return void 0===t&&(t=0),(e=C(e)).length-t<10||!x(e,Tl,{offset:t})?t:(t+=(void 0===(n=t)&&(n=0),r=(i=C(i=e))[n+5],i=i[n+6]<<21|i[n+7]<<14|i[n+8]<<7|i[n+9],(16&r)>>4?20+i:10+i),Ho(e,t))}function qo(e){return"string"==typeof e?kr(e):e}function Vo(e,t,i){void 0===i&&(i=!1),n=t,t=Array.isArray(n)?n.map(qo):[qo(n)],e=C(e);var n,r=[];if(t.length)for(var s=0;s<e.length;){var o=(e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3])>>>0,a=e.subarray(s+4,s+8);if(0==o)break;o=s+o;if(o>e.length){if(i)break;o=e.length}var l=e.subarray(s+8,o);x(a,t[0])&&(1===t.length?r.push(l):r.push.apply(r,Vo(l,t.slice(1),i))),s=o}return r}function Wo(e,t,i){var n;return i>
1=t.length?t.length:(n=Cl(t,i,!1),x(e.bytes,n.bytes)?i:Wo(e,t,i+(e=Cl(t,i+n.length)).length+e.value+n.length))}function $o(e,t){i=t,t=Array.isArray(i)?i.map(function(e){return El(e)}):[El(i)],e=C(e);var i,n=[];if(t.length)for(var r=0;r<e.length;){var s=Cl(e,r,!1),o=Cl(e,r+s.length),a=r+s.length+o.length,l=(127===o.value&&(o.value=Wo(s,e,a),o.value!==e.length)&&(o.value-=a),a+o.value>e.length?e.length:a+o.value),a=e.subarray(a,l);x(t[0],s.bytes)&&(1===t.length?n.push(a):n=n.concat($o(a,t.slice(1)))),r+=s.length+o.length+a.length}return n}function zo(e,t,i,n){void 0===n&&(n=1/0),e=C(e),i=[].concat(i);for(var r,s=0,o=0;s<e.length&&(o<n||r);){var a=void 0;if(x(e.subarray(s),xl)?a=4:x(e.subarray(s),Al)&&(a=3),a){if(o++,r)return Ll(e.subarray(r,s));var l=void 0;"h264"===t?l=31&e[s+a]:"h265"===t&&(l=e[s+a]>>1&63),-1!==i.indexOf(l)&&(r=s+a),s+=a+("h264"===t?1:2)}else s++}return e.subarray(0,0)}function Go(e){e=C(e);for(var t=0;t<Dl.length;t++){var i=Dl[t];if(Nl[i](e))return i}return""}function Xo(e,t,i){return e&&i&&i.responseURL&&t!==i.responseURL?i.responseURL:t}function Ko(e,i){return Fl(e,function(e,t){return e-Bl<=i&&i<=t+Bl})}function Yo(e,t){return Fl(e,function(e){return t<=e-jl})}function Qo(e){var t=[];if(!e||!e.length)return"";for(var i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")}function Jo(e){for(var t=[],i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t}function Zo(e){if(e&&e.length&&e.end)return e.end(e.length-1)}function ea(e,t){var i=0;if(e&&e.length)for(var n=0;n<e.length;n++){var r=e.start(n),s=e.end(n);s<t||(i+=r<t&&t<=s?s-t:s-r)}return i}function ta(t,e){var i;return e.preload?(i=0,(e.parts||[]).forEach(function(e){i+=e.duration}),(e.preloadHints||[]).forEach(function(e){"PART"===e.type&&(i+=t.partTargetDuration)}),i):e.duration}function ia(e){return(e.segments||[]).reduce(function(i,n,r){return n.parts?n.parts.forEach(function(e,t){i.push({duration:e.duration,segmentIndex:r,partIndex:t,part:e,segment:n})}):i.push({duration:n.duration,segmentIndex:r,partIndex:null,segment:n,part:null}),i},[])}function na(e){return(e=e.segments&&e.segments.length&&e.segments[e.segments.length-1])&&e.parts||[]}function ra(e){var t;if(e=e.preloadSegment)return t=e.parts,(e.preloadHints||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0)+(t&&t.length?t.length:0)}function sa(e){var t=e.defaultDuration,i=e.durationList,n=e.startIndex,r=e.endIndex,s=0;if(r<n&&(n=(e=[r,n])[0],r=e[1]),n<0){for(var o=n;o<Math.min(0,r);o++)s+=t;n=0}for(var a=n;a<r;a++)s+=i[a].duration;return s}function oa(e,t,i,n){return e&&e.segments?e.endList?zl(e):null===t?null:(t=$l(e,e.mediaSequence+e.segments.length,t=t||0),i&&(t-=n="number"==typeof n?n:ql(null,e)),Math.max(0,t)):null}function aa(e){return e.excludeUntil&&e.excludeUntil>Date.now()}function la(e){return e.excludeUntil&&e.excludeUntil===1/0}function ua(e){var t=aa(e);return!e.disabled&&!t}function ca(e,t){return t.attributes&&t.attributes[e]}function da(e,t){var i;return 1===e.playlists.length||(i=t.attributes.BANDWIDTH||Number.MAX_VALUE,0===e.playlists.filter(function(e){return!!ua(e)&&(e.attributes.BANDWIDTH||0)<i}).length)}function ha(e,t){return!(!e&&!t||!e&&t||e&&!t||e!==t&&(!e.id||!t.id||e.id!==t.id)&&(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)&&(!e.uri||!t.uri||e.uri!==t.uri))}function pa(e,t){var i,n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},r=!1;for(i in n){for(var s in n[i])if(r=t(n[i][s]))break;if(r)break}return!!r}function fa(a,e){a.uri=e;for(var t=0;t<a.playlists.length;t++)a.playlists[t].uri||(a.playlists[t].uri="placeholder-uri-"+t);for(var i,l=Gl(a),n=(Ql(a,function(e,t,i,n){var r="placeholder-uri-"+t+"-"+i+"-"+n;if(!e.playlists||!e.playlists.length){if(l&&"AUDIO"===t&&!e.uri)for(var s=0;s<a.playlists.length;s++){var o=a.playlists[s];if(o.attributes&&o.attributes.AUDIO&&o.attributes.AUDIO===i)return}e.playlists=[K({},e)]}
vendor: 3,645 bytes, line 1
1e.playlists.forEach(function(e,t){var i=Yl(t,r);e.uri?e.resolvedUri=e.resolvedUri||Rl(a.uri,e.uri):(e.uri=0===t?r:i,e.resolvedUri=e.uri),e.id=e.id||i,e.attributes=e.attributes||{},a.playlists[e.id]=e,a.playlists[e.uri]=e})}),a),r=n.playlists.length;r--;){var s=n.playlists[r];Jl({playlist:s,id:Yl(r,s.uri)}),s.resolvedUri=Rl(n.uri,s.uri),n.playlists[s.id]=s,(n.playlists[s.uri]=s).attributes.BANDWIDTH||Kl.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}Ql(i=a,function(e){e.uri&&(e.resolvedUri=Rl(i.uri,e.uri))})}function ma(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Rl(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Rl(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Rl(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Rl(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(e){e.resolvedUri||(e.resolvedUri=Rl(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(e){e.resolvedUri||(e.resolvedUri=Rl(t,e.uri))})}function ga(e){var t=e.segments||[],i=e.preloadSegment;if(i&&i.parts&&i.parts.length){if(i.preloadHints)for(var n=0;n<i.preloadHints.length;n++)if("MAP"===i.preloadHints[n].type)return t;i.duration=e.targetDuration,i.preload=!0,t.push(i)}return t}function ya(e,s,t){void 0===t&&(t=tu);var i=Zl(e,{}),n=i.playlists[s.id];if(!n)return null;if(t(n,s))return null;s.segments=ga(s);var o=Zl(n,s);if(o.preloadSegment&&!s.preloadSegment&&delete o.preloadSegment,n.segments){if(s.skip){s.segments=s.segments||[];for(var r=0;r<s.skip.skippedSegments;r++)s.segments.unshift({skipped:!0})}o.segments=function(e,t,i){for(var n,r=e.slice(),s=t.slice(),o=(i=i||0,[]),a=0;a<s.length;a++){var l=r[a+i],u=s[a];l?(n=l.map||n,o.push(eu(l,u))):(n&&!u.map&&(u.map=n),o.push(u))}return o}(n.segments,s.segments,s.mediaSequence-n.mediaSequence)}o.segments.forEach(function(e){ma(e,o.resolvedUri)});for(var a=0;a<i.playlists.length;a++)i.playlists[a].id===s.id&&(i.playlists[a]=o);return i.playlists[s.id]=o,i.playlists[s.uri]=o,Ql(e,function(e,t,i,n){if(e.playlists)for(var r=0;r<e.playlists.length;r++)s.id===e.playlists[r].id&&(e.playlists[r]=o)}),i}function va(e,t){var i=(i=e.segments||[])[i.length-1],n=(n=i&&i.parts&&i.parts[i.parts.length-1])&&n.duration||i&&i.duration;return t&&n?1e3*n:500*(e.partTargetDuration||e.targetDuration||10)}function _a(e,t,i,n){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),n(t=t||e.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode?t:new Error("XHR Failed with a response of: "+(e&&(r||e.responseText))),e)}function ba(){function s(e,i){e=ru({timeout:45e3},e);var t=s.beforeRequest||q.Vhs.xhr.beforeRequest,n=(t&&"function"==typeof t&&(t=t(e))&&(e=t),(!0===q.Vhs.xhr.original?nu:q.Vhs.xhr)(e,function(e,t){return _a(n,e,t,i)})),r=n.abort;return n.abort=function(){return n.aborted=!0,r.apply(n,arguments)},n.uri=e.uri,n.requestTime=Date.now(),n}return s.original=!0,s}function Ta(e){var t,i={};return e.byterange&&(i.Range=(e=e.byterange,t=e.offset,e="bigint"==typeof e.offset||"bigint"==typeof e.length?window.BigInt(e.offset)+window.BigInt(e.length)-window.BigInt(1):e.offset+e.length-1,"bytes="+t+"-"+e)),i}function wa(e,t){return e=e.toString(16),"00".substring(0,2-e.length)+e+(t%2?" ":"")}function Sa(e){return 32<=e&&e<126?String.fromCharCode(e):"."}function ka(i){var n={};
1return Object.keys(i).forEach(function(e){var t=i[e];Br(t)?n[e]={bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:n[e]=t}),n}function Ca(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")}function Ea(e){return e.resolvedUri}function xa(e){for(var t=Array.prototype.slice.call(e),i="",n=0;n<t.length/16;n++)i+=t.slice(16*n,16*n+16).map(wa).join("")+" "+t.slice(16*n,16*n+16).map(Sa).join("")+"\n";return i}function Aa(e){var t,i,n=e.playlist,r=void 0===(r=e.time)?void 0:r;if(e=e.callback)return n&&void 0!==r?(n=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var i,n=0,r=0;r<t.segments.length&&!(e<=(n=(i=t.segments[r]).videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration));r++);var s=t.segments[t.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(n<e){if(e>n+s.duration*su)return null;i=s}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}}(r,n))?"estimate"===n.type?e({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:n.estimatedStart}):(t={mediaSeconds:r},r=r,(i=(n=n.segment).dateTimeObject?(i=n.videoTimingInfo.transmuxerPrependedSeconds,r=r-(n.videoTimingInfo.transmuxedPresentationStart+i),new Date(n.dateTimeObject.getTime()+1e3*r)):null)&&(t.programDateTime=i.toISOString()),e(null,t)):e({message:"valid programTime was not found"}):e({message:"getProgramTime: playlist and time must be provided"});throw new Error("getProgramTime: callback must be provided")}function Ia(e){var t,i=e.programTime,n=e.playlist,r=e.retryCount,s=void 0===r?2:r,o=e.seekTo,a=void 0===(r=e.pauseAfterSeek)||r,l=e.tech,u=e.callback;if(u)return void 0!==i&&n&&o?n.endList||l.hasStarted_?function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0}(n)?(r=function(e,t){var i;try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;if(i<(r=t.segments[0]).dateTimeObject)return null;for(var n=0;n<t.segments.length-1;n++){var r=t.segments[n];if(i<t.segments[n+1].dateTimeObject)break}var e=t.segments[t.segments.length-1],s=e.dateTimeObject,o=e.videoTimingInfo?ou(e.videoTimingInfo):e.duration+e.duration*su;return new Date(s.getTime()+1e3*o)<i?null:{segment:r=s<i?e:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:Xl.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"}}(i,n))?(t=function(e,t){var i,n;try{i=new Date(e),n=new Date(t)}catch(e){}e=i.getTime();return(n.getTime()-e)/1e3}((e=r.segment).dateTimeObject,i),"estimate"===r.type?0===s?u({message:i+" is not buffered yet. Try again"}):(o(r.estimatedStart+t),void l.one("seeked",function(){Ia({programTime:i,playlist:n,retryCount:s-1,seekTo:o,pauseAfterSeek:a,tech:l,callback:u})})):(r=e.start+t,l.one("seeked",function(){return u(null,l.currentTime())}),a&&l.pause(),void o(r))):u({message:i+" was not found in the stream"}):u({message:"programDateTime tags must be provided in the manifest "+n.resolvedUri}):u({message:"player must be playing a live stream to start buffering"}):u({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});throw new Error("seekToProgramTime: callback must be provided")}function La(e,t){if(4===e.readyState)return t()}function Pa(e,t,r){function n(e,t,i,n){return t.abort(),a=!0,r(e,t,i,n)}function i(e,t){var i;if(!a)return e?n(e,t,"",o):(i=t.responseText.substring(o&&o.byteLength||0,t.responseText.length),o=function(){for(var e,t,i,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(r=r.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1?C(r[0]):(e=r.reduce(function(e,t,i){return e+(t.byteLength||t.length)},0),t=new Uint8Array(e),i=0,r.forEach(function(e){e=C(e),t.set(e,i),i+=e.byteLength}),t)}(o,kr(i,!0)),s=s||Ho(o),o.length<10||s&&o.length<s+2||"ts"===(i=Go(o))&&o.length<188||!i&&o.length<376?La(t,function(){return n(e,t,"",o)}):n(null,t,i,o))}var s,o=[],a=!1,l=t({uri:e,beforeSend:function(t){t.overrideMimeType("text/plain;
1 charset=x-user-defined"),t.addEventListener("progress",function(e){return e.total,e.loaded,_a(t,null,{statusCode:t.status},i)})}},function(e,t){return _a(l,e,t,i)});return l}function Oa(e,t){if(!tu(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(e.segments||t.segments)for(var i=0;i<e.segments.length;i++){var n=e.segments[i],r=t.segments[i];if(n.uri!==r.uri)return!1;if(n.byterange||r.byterange){n=n.byterange,r=r.byterange;if(n&&!r||!n&&r)return!1;if(n.offset!==r.offset||n.length!==r.length)return!1}}return!0}function Da(e){var t=e.masterXml,i=e.srcUrl,n=e.clientOffset,r=e.sidxMapping,e=e.previousManifest,t=(void 0===(n={manifestUri:i,clientOffset:n,sidxMapping:r,previousManifest:e})&&(n={}),r=gl(yl(r=t),n),e=pl(r.representationInfo),dl({dashPlaylists:e,locations:r.locations,sidxMapping:n.sidxMapping,previousManifest:n.previousManifest}));return fa(t,i),t}function Na(e,t){var i,n={};for(i in e){var r=e[i].sidx;if(r){var s=cl(r);if(!t[s])break;var o=t[s].sidxInfo;lu(o,r)&&(n[s]=t[s])}}return n}function Ma(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e}function Ra(n){return function(){var e=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch(e){var i=new BlobBuilder;return i.append(t),URL.createObjectURL(i.getBlob())}}(n),t=Ma(new Worker(e)),i=(t.objURL=e,t.terminate);return t.on=t.addEventListener,t.off=t.removeEventListener,t.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},t}}function Ua(e){return"var browserWorkerPolyFill = "+Ma.toString()+";\nbrowserWorkerPolyFill(self);\n"+e}function ja(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)}function Ba(t){var i=t.transmuxer,e=t.bytes,n=t.audioAppendStart,r=t.gopsToAlignWith,s=t.remux,o=t.onData,a=t.onTrackInfo,l=t.onAudioTimingInfo,u=t.onVideoTimingInfo,c=t.onVideoSegmentTimingInfo,d=t.onAudioSegmentTimingInfo,h=t.onId3,p=t.onCaptions,f=t.onDone,m=t.onEndedTimeline,g=t.onTransmuxerLog,y=t.isEndOfTimeline,v={buffer:[]},_=y;i.onmessage=function(e){i.currentTransmux!==t||("data"===e.data.action&&hu(e,v,o),"trackinfo"===e.data.action&&a(e.data.trackInfo),"gopInfo"===e.data.action&&fu(e,v),"audioTimingInfo"===e.data.action&&l(e.data.audioTimingInfo),"videoTimingInfo"===e.data.action&&u(e.data.videoTimingInfo),"videoSegmentTimingInfo"===e.data.action&&c(e.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===e.data.action&&d(e.data.audioSegmentTimingInfo),"id3Frame"===e.data.action&&h([e.data.id3Frame],e.data.id3Frame.dispatchType),"caption"===e.data.action&&p(e.data.caption),"endedtimeline"===e.data.action&&(_=!1,m()),"log"===e.data.action&&g(e.data.log),"transmuxed"!==e.data.type)||_||(i.onmessage=null,pu({transmuxedData:v,callback:f}),mu(i))},n&&i.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(r)&&i.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==s&&i.postMessage({action:"setRemux",remux:s}),e.byteLength&&(n=e instanceof ArrayBuffer?e:e.buffer,r=e instanceof ArrayBuffer?0:e.byteOffset,i.postMessage({action:"push",data:n,byteOffset:r,byteLength:e.byteLength},[n])),y&&i.postMessage({action:"endTimeline"}),i.postMessage({action:"flush"})}function Fa(e,t){t.currentTransmux?t.transmuxQueue.push(gu.bind(null,t,e)):(t.currentTransmux=e,gu(t,e))}function Ha(e){e.transmuxer.currentTransmux?e.transmuxer.transmuxQueue.push(e):(e.transmuxer.currentTransmux=e,Ba(e))}function qa(i){var e,n=i.transmuxer,r=i.endAction||i.action,s=i.callback,t=K({},i,{endAction:null,transmuxer:null,callback:null});n.addEventListener("message",function e(t){t.data.action===r&&(n.removeEventListener("message",e),t.data.data&&(t.data.data=new Uint8Array(t.data.data,i.byteOffset||0,i.byteLength||t.data.data.byteLength),i.data)&&(i.data=t.data.data),s(t.data))}),i.data?(e=i.data instanceof ArrayBuffer,t.byteOffset=e?0:i.data.byteOffset,t.byteLength=i.data.byteLength,e=[e?i.data:i.data.buffer],n.postMessage(t,e)):n.postMessage(t)}function Va(s,o,a){return function(e,t){var i=t.response,e=Su(e,t);if(e)return a(e,s);if(16!==i.byteLength)return a({status:t.status,message:"Invalid HLS key at URL: "+t.uri,code:_u.FAILURE,xhr:t},s);for(var e=new DataView(i),n=new Uint32Array([e.getUint32(0),e.getUint32(4),e.getUint32(8),e.getUint32(12)]),r=0;r<o.length;r++)o[r].bytes=n;return a(null,s)}}function Wa(e){var i=e.segment,t=e.bytes,n=e.trackInfoFn,r=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,a=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,e=i.map&&i.map.tracks||{},f=Boolean(e.audio&&e.video),m=r.bind(null,i,"audio","start"),g=r.bind(null,i,"audio","end"),y=r.bind(null,i,"video","start"),v=r.bind(null,i,"video","end");qa({action:"probeTs",transmuxer:i.transmuxer,data:t,baseStartTime:i.baseStartTime,callback:function(e){i.bytes=t=e.data;e=e.result;e&&(n(i,{hasAudio:e.hasAudio,hasVideo:e.hasVideo,isMuxed:f}),n=null,e.hasAudio&&!f&&m(e.audioStart),e.hasVideo&&y(e.videoStart),y=m=null),Ha({bytes:t,transmuxer:i.transmuxer,audioAppendStart:i.audioAppendStart,gopsToAlignWith:i.gopsToAlignWith,remux:f,onData:function(e){e.type="combined"===e.type?"video":e.type,d(i,e)},onTrackInfo:function(e){n&&(f&&(e.isMuxed=!0),n(i,e))},onAudioTimingInfo:function(e){m&&void 0!==e.start&&(m(e.start),m=null),g&&void 0!==e.end&&g(e.end)},onVideoTimingInfo:function(e){y&&void 0!==e.start&&(y(e.start),y=null),v&&void 0!==e.end&&v(e.end)},onVideoSegmentTimingInfo:function(e){s(e)},onAudioSegmentTimingInfo:function(e){o(e)},onId3:function(e,t){a(i,e,t)},onCaptions:function(e){l(i,[e])},isEndOfTimeline:u,onEndedTimeline:function(){c()},onTransmuxerLog:p,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,i,e))}})}})}function $a(e){function t(e,t){if(!y){if(e)return y=!0,bu(n),f(e,t);if((g+=1)===n.length){var i=function(){if(t.encryptedBytes)return xu({decryptionWorker:r,segment:t,trackInfoFn:s,timingInfoFn:o,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:l,id3Fn:u,captionsFn:c,isEndOfTimeline:d,endedTimelineFn:h,dataFn:p,doneFn:f,onTransmuxerLog:m});Cu({segment:t,bytes:t.bytes,trackInfoFn:s,timingInfoFn:o,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:l,id3Fn:u,captionsFn:c,isEndOfTimeline:d,endedTimelineFn:h,dataFn:p,doneFn:f,onTransmuxerLog:m})};if(t.endOfAllRequests=Date.now(),t.map&&t.map.encryptedBytes&&!t.map.bytes)return Eu({decryptionWorker:r,id:t.requestId+"-init",encryptedBytes:t.map.encryptedBytes,key:t.map.key},function(e){t.map.bytes=e,ku(t,function(e){if(e)return bu(n),f(e,t);i()})});i()}}}var n,r,s,o,a,l,u,c,d,h,p,f,m,g,y,i,v,_=e.xhr,b=e.xhrOptions,T=e.decryptionWorker,w=e.segment,R=e.abortFn,U=e.progressFn,S=e.trackInfoFn,k=e.timingInfoFn,C=e.videoSegmentTimingInfoFn,E=e.audioSegmentTimingInfoFn,x=e.id3Fn,A=e.captionsFn,I=e.isEndOfTimeline,L=e.endedTimelineFn,j=e.dataFn,P=e.doneFn,e=e.onTransmuxerLog,O=[],e=(n=(T={activeXhrs:O,decryptionWorker:T,trackInfoFn:S,timingInfoFn:k,videoSegmentTimingInfoFn:C,audioSegmentTimingInfoFn:E,id3Fn:x,c
1aptionsFn:A,isEndOfTimeline:I,endedTimelineFn:L,dataFn:j,doneFn:P,onTransmuxerLog:e}).activeXhrs,r=T.decryptionWorker,s=T.trackInfoFn,o=T.timingInfoFn,a=T.videoSegmentTimingInfoFn,l=T.audioSegmentTimingInfoFn,u=T.id3Fn,c=T.captionsFn,d=T.isEndOfTimeline,h=T.endedTimelineFn,p=T.dataFn,f=T.doneFn,m=T.onTransmuxerLog,g=0,y=!1,w.key&&!w.key.bytes&&(P=[w.key],w.map&&!w.map.bytes&&w.map.key&&w.map.key.resolvedUri===w.key.resolvedUri&&P.push(w.map.key),e=_(q.mergeOptions(b,{uri:w.key.resolvedUri,responseType:"arraybuffer"}),Va(w,P,t)),O.push(e)),w.map&&!w.map.bytes&&(!w.map.key||w.key&&w.key.resolvedUri===w.map.key.resolvedUri||(T=_(q.mergeOptions(b,{uri:w.map.key.resolvedUri,responseType:"arraybuffer"}),Va(w,[w.map.key],t)),O.push(T)),P=q.mergeOptions(b,{uri:w.map.resolvedUri,responseType:"arraybuffer",headers:Ta(w.map)}),i=(e={segment:w,finishProcessingFn:t}).segment,v=e.finishProcessingFn,T=_(P,function(e,t){var e=Su(e,t);return e?v(e,i):(e=new Uint8Array(t.response),i.map.key?(i.map.encryptedBytes=e,v(null,i)):(i.map.bytes=e,void ku(i,function(e){if(e)return e.xhr=t,e.status=t.status,v(e,i);v(null,i)})))}),O.push(T)),q.mergeOptions(b,{uri:w.part&&w.part.resolvedUri||w.resolvedUri,responseType:"arraybuffer",headers:Ta(w)}));P={segment:w,finishProcessingFn:t,responseType:e.responseType},D=P.segment,N=P.finishProcessingFn,B=P.responseType;(T=_(e,function(e,t){var e=Su(e,t);return e?N(e,D):(e="arraybuffer"!==B&&t.responseText?cu(t.responseText.substring(D.lastReachedChar||0)):t.response,D.stats=Tu(t),D.key?D.encryptedBytes=new Uint8Array(e):D.bytes=new Uint8Array(e),N(null,D))})).addEventListener("progress",(M=(b={segment:w,progressFn:U,trackInfoFn:S,timingInfoFn:k,videoSegmentTimingInfoFn:C,audioSegmentTimingInfoFn:E,id3Fn:x,captionsFn:A,isEndOfTimeline:I,endedTimelineFn:L,dataFn:j}).segment,F=b.progressFn,b.trackInfoFn,b.timingInfoFn,b.videoSegmentTimingInfoFn,b.audioSegmentTimingInfoFn,b.id3Fn,b.captionsFn,b.isEndOfTimeline,b.endedTimelineFn,b.dataFn,function(e){var t=e.target;if(!t.aborted)return M.stats=q.mergeOptions(M.stats,wu(e)),!M.stats.firstBytesReceivedAt&&M.stats.bytesReceived&&(M.stats.firstBytesReceivedAt=Date.now()),F(e,M)})),O.push(T);var D,N,B,M,F,H={};return O.forEach(function(e){var t,i;e.addEventListener("loadend",(t=(e={loadendState:H,abortFn:R}).loadendState,i=e.abortFn,function(e){e.target.aborted&&i&&!t.calledAbortFn&&(i(),t.calledAbortFn=!0)}))}),function(){return bu(O)}}function za(e){var t=0;return e.audio&&t++,e.video&&t++,t}function Ga(e,t){return(e=e&&window.getComputedStyle(e))?e[t]:""}function Xa(e,t){var i,n;return(i=(i=e.attributes.BANDWIDTH?e.attributes.BANDWIDTH:i)||window.Number.MAX_VALUE)-(n=(n=t.attributes.BANDWIDTH?t.attributes.BANDWIDTH:n)||window.Number.MAX_VALUE)}function Ka(e,t,i,n,r,s){var o,a,l,u,c,d,h,p,f;if(e)return o={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:r},a=e.playlists,Xl.isAudioOnly(e)&&(a=s.getAudioTrackPlaylists_(),o.audioOnly=!0),e=a.map(function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height,n=e.attributes&&e.attributes.BANDWIDTH;return{bandwidth:n||window.Number.MAX_VALUE,width:t,height:i,playlist:e}}),Nu(e,function(e,t){return e.bandwidth-t.bandwidth}),c=(a=(a=(e=e.filter(function(e){return!Xl.isIncompatible(e.playlist)})).filter(function(e){return Xl.isEnabled(e.playlist)})).length?a:e.filter(function(e){return!Xl.isDisabled(e.playlist)})).filter(function(e){return e.bandwidth*D.BANDWIDTH_VARIANCE<t}),u=c[c.length-1],l=c.filter(function(e){return e.bandwidth===u.bandwidth})[0],!1===r?(r=l||a[0]||e[0])&&r.playlist?(f=l?"bandwidthBestRep":"sortedPlaylistReps",a[0]&&(f="enabledPlaylistReps"),Ou("choosing "+Du(r)+" using "+f+" with options",o),r.playlist):(Ou("could not choose a playlist with options",o),null):(f=c.filter(function(e){return e.width&&e.height}),Nu(f,function(e,t){return e.width-t.width}),r=f.filter(function(e){return e.width===i&&e.height===n}),u=r[r.length-1],(c=r.filter(function(e){return e.bandwidth===u.bandwidth})[0])||(r=(d=f.filter(function(e){return e.width>i||e.height>n})).filter(function(e){return e.width===d[0].width&&e.height===d[0].height}),u=r[r.length-1],h=r.filter(function(e){return e.bandwidth===u.bandwidth})[0]),s.experimentalLeastPixelDiffSelector&&(r=f.map(function(e){return e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-n),e}),Nu(r,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),p=r[0]),(s=p||h||c||l||a[0]||e[0])&&s.playlist?(f="sortedPlaylistReps",p?f="leastPixelDiffRep":h?f="resolutionPlusOneRep":c?f="resolutionBestRep":l?f="bandwidthBestRep":a[0]&&(f="enabledPlaylistReps"),Ou("choosing "+Du(s)+" using "+f+" with options",o),s.playlist):(Ou("could not choose a playlist with options",o),null))}function Ya(){var e=this.useDevicePixelRatio&&window.devicePixelRatio||1;return Ka(this.playlists.master,this.systemBandwidth,parseInt(Ga(this.tech_.el(),"width"),10)*e,parseInt(Ga(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}function Qa(e){var t=e.inbandTextTracks,i=e.metadataArray,r=e.timestampOffset,n=e.videoDuration;if(i){var s=window.WebKitDataCue||window.VTTCue,o=t.metadataTrack_;
1if(o&&(i.forEach(function(e){var n=e.cueTime+r;!("number"!=typeof n||window.isNaN(n)||n<0)&&n<1/0&&e.frames.forEach(function(e){var t,i=new s(n,n,e.value||e.url||e.data||"");i.frame=e,i.value=e,t=i,Object.defineProperties(t.frame,{id:{get:function(){return q.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return q.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return q.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}}),o.addCue(i)})}),o.cues)&&o.cues.length){for(var a=o.cues,l=[],u=0;u<a.length;u++)a[u]&&l.push(a[u]);var c=l.reduce(function(e,t){var i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e},{}),d=Object.keys(c).sort(function(e,t){return Number(e)-Number(t)});d.forEach(function(e,t){var e=c[e],i=Number(d[t+1])||n;e.forEach(function(e){e.endTime=i})})}}}function Ja(e,t,i){var n,r;if(i&&i.cues)for(n=i.cues.length;n--;)(r=i.cues[n]).startTime>=e&&r.endTime<=t&&i.removeCue(r)}function Za(e){return"number"==typeof e&&isFinite(e)}function el(e){var t=e.startOfSegment,i=e.duration,n=e.segment,r=e.part,s=(a=e.playlist).mediaSequence,o=a.id,a=a.segments,l=e.mediaIndex,u=e.partIndex,c=e.timeline,a=(void 0===a?[]:a).length-1,d="mediaIndex/partIndex increment",h=(e.getMediaInfoForTime?d="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(d="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(d+=" with independent "+e.independent),"number"==typeof u),e=e.segment.uri?"segment":"pre-segment",p=h?ra({preloadSegment:n})-1:0;return e+" ["+(s+l)+"/"+(s+a)+"]"+(h?" part ["+u+"/"+p+"]":"")+" segment start/end ["+n.start+" => "+n.end+"]"+(h?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+i+"] timeline ["+c+"] selected by ["+d+"] playlist ["+o+"]"}function tl(e){return e+"TimingInfo"}function il(e){var t=e.timelineChangeController,i=e.currentTimeline,n=e.segmentTimeline,r=e.loaderType,e=e.audioDisabled;return!(i===n||("audio"===r?(i=t.lastTimelineChange({type:"main"}))&&i.to===n:"main"!==r||!e||(i=t.pendingTimelineChange({type:"audio"}))&&i.to===n))}function nl(e){var t=e.segmentDuration,e=e.maxDuration;return!!t&&Math.round(t)>e+jl}function rl(e,t){var n,r,i,s,o;return"hls"===t&&(n={audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo},r=0,["video","audio"].forEach(function(e){var t,i,e=n[e+"TimingInfo"];e&&(t=e.start,e=e.end,"bigint"==typeof t||"bigint"==typeof e?i=window.BigInt(e)-window.BigInt(t):"number"==typeof t&&"number"==typeof e&&(i=e-t),void 0!==i)&&r<i&&(r=i)}),t=r="bigint"==typeof r&&r<Number.MAX_SAFE_INTEGER?Number(r):r)&&(i=e.playlist.targetDuration,s=nl({segmentDuration:t,maxDuration:2*i}),o=nl({segmentDuration:t,maxDuration:i}),t="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+t+" when the reported duration is "+e.duration+" and the target duration is "+i+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1",s||o)?{severity:s?"warn":"info",message:t}:null}var sl={__DOMHandler:no,DOMParser:io,DOMImplementation:Dn.DOMImplementation,XMLSerializer:Dn.XMLSerializer}
1.DOMParser,ol={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},al={static:function(e){var t=e.duration,i=e.timescale,i=void 0===i?1:i,n=e.sourceDuration,r=e.periodDuration,e=mo(e.endNumber),t=t/i;return"number"==typeof e?{start:0,end:e}:"number"==typeof r?{start:0,end:r/t}:{start:0,end:n/t}},dynamic:function(e){var t=e.NOW,i=e.clientOffset,n=e.availabilityStartTime,r=e.timescale,r=void 0===r?1:r,s=e.duration,o=e.periodStart,o=void 0===o?0:o,a=e.minimumUpdatePeriod,a=void 0===a?0:a,l=e.timeShiftBufferDepth,l=void 0===l?1/0:l,e=mo(e.endNumber),t=(t+i)/1e3,i=n+o,n=Math.ceil((t+a-i)*r/s),o=Math.floor((t-i-l)*r/s),a=Math.floor((t-i)*r/s);return{start:Math.max(0,o),end:"number"==typeof e?e:Math.min(n,a)}}},ll=function(e){var t=e.baseUrl,i=e.initialization,i=void 0===i?{}:i,n=e.sourceDuration,r=e.indexRange,r=void 0===r?"":r,s=e.periodStart,o=e.presentationTime,a=e.number,a=void 0===a?0:a,l=e.duration;if(t)return i=fo({baseUrl:t,source:i.sourceURL,range:i.range}),(t=fo({baseUrl:t,source:t,indexRange:r})).map=i,l?(r=go(e)).length&&(t.duration=r[0].duration,t.timeline=r[0].timeline):n&&(t.duration=n,t.timeline=s),t.presentationTime=o||s,t.number=a,[t];throw new Error(ol.NO_BASE_URL)},ul=["AUDIO","SUBTITLES"],cl=function(e){return e&&e.uri+"-"+(e=e.byterange,t="bigint"==typeof e.offset||"bigint"==typeof e.length?window.BigInt(e.offset)+window.BigInt(e.length)-window.BigInt(1):e.offset+e.length-1,e.offset)+"-"+t;var t},dl=function(e){var t,i,n,r,s,o,a,l,u,c,d=e.dashPlaylists,h=e.locations,p=e.sidxMapping,p=void 0===p?{}:p,e=e.previousManifest;return d.length?(s=(o=d[0].attributes).sourceDuration,l=o.type,u=o.suggestedPresentationDelay,o=o.minimumUpdatePeriod,t=wo(d.filter(Eo)).map(Co),i=wo(d.filter(xo)),n=wo(d.filter(Ao)),d=d.map(function(e){return e.attributes.captionServices}).filter(Boolean),r={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((r={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},r.SUBTITLES={},r),uri:"",duration:s,playlists:function(e,t){if(void 0===t&&(t={}),Object.keys(t).length)for(var i in e)e[i]=So(e[i],t);return e}(t,p)},0<=o&&(r.minimumUpdatePeriod=1e3*o),h&&(r.locations=h),"dynamic"===l&&(r.suggestedPresentationDelay=u),s=0===r.playlists.length,o=i.length?ko(i,p,s):null,h=n.length?(void 0===(a=p)&&(a={}),n.reduce(function(e,t){var i=t.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(So(function(e){var t,i=e.attributes,n=e.segments,r=e.mediaSequence,s=e.discontinuityStarts,e=e.discontinuitySequence;void 0===n&&(n=[{uri:i.baseUrl,timeline:i.periodStart,resolvedUri:i.baseUrl||"",duration:i.sourceDuration,number:0}],i.duration=i.sourceDuration),(t={NAME:i.id,BANDWIDTH:i.bandwidth})["PROGRAM-ID"]=1;return i.codecs&&(t.CODECS=i.codecs),{attributes:t,uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:i.baseUrl||"",targetDuration:i.duration,timelineStarts:i.timelineStarts,discontinuityStarts:s,discontinuitySequence:e,mediaSequence:r,segments:n}}(t),a)),e},{})):null,u=(l=t.concat(Io(o),Io(h))).map(function(e){return e.timelineStarts}),r.timelineStarts=vo(u),c=r.timelineStarts,l.forEach(function(t){t.mediaSequence=0,t.discontinuitySequence=po(c,function(e){return e.timeline===t.timeline}),t.segments&&t.segments.forEach(function(e,t){e.number=t})}),o&&(r.mediaGroups.AUDIO.audio=o),h&&(r.mediaGroups.SUBTITLES.subs=h),d.length&&(r.mediaGroups["CLOSED-CAPTIONS"].cc=d.reduce(function(n,e){return e&&e.forEach(function(e){var t=e.channel,i=e.language;n[i]={autoselect:!1,default:!1,instreamId:t,language:i},e.hasOwnProperty("aspectRatio")&&(n[i].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(n[i].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(n[i]["3D"]=e["3D"])}),n},{})),e?To({oldManifest:e,newManifest:r}):r):{}},hl=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,pl=function(e){return e.map(No)},P=function(e,t){return ho(e.childNodes).filter(function(e){return e.tagName===t})},fl={mediaPresentationDuration:Ro,availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=e)&&(e+="Z"),Date.parse(e)/1e3},minimumUpdatePeriod:Ro,suggestedPresentationDelay:Ro,type:function(e){return e},timeShiftBufferDepth:Ro,start:Ro,width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?Ro(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},O=function(e){return e&&e.attributes?ho(e.attributes).reduce(function(e,t){var i=fl[t.name]||fl.DEFAULT;return e[t.name]=i(t.value),e},{}):{}},ml={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},gl=function(e,t){var i,s,o,a,l,t=t=void 0===t?{}:t,n=t.manifestUri,n=void 0===n?"":n,r=t.NOW,r=void 0===r?Date.now():r,t=t.clientOffset,t=void 0===t?0:t,u=P
vendor: 5,608 bytes, line 1
1(e,"Period");if(u.length)return i=P(e,"Location"),s=O(e),n=Uo([n],P(e,"BaseURL")),s.type=s.type||"static",s.sourceDuration=s.mediaPresentationDuration||0,s.NOW=r,s.clientOffset=t,i.length&&(s.locations=i.map(Mo)),o=[],u.forEach(function(e,t){var i,n,r=O(e),t=o[t-1];r.start=(t={attributes:r,priorPeriodAttributes:t?t.attributes:null,mpdType:s.type},i=t.attributes,n=t.priorPeriodAttributes,t=t.mpdType,"number"==typeof i.start?i.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==t?null:0),o.push({node:e,attributes:r})}),{locations:s.locations,representationInfo:co(o.map((a=s,l=n,function(e,t){var i=Uo(l,P(e.node,"BaseURL")),n=L(a,{periodStart:e.attributes.start}),r=("number"==typeof e.attributes.duration&&(n.periodDuration=e.attributes.duration),P(e.node,"AdaptationSet")),e=jo(e.node);return co(r.map(Bo(n,i,e)))})))};throw new Error(ol.INVALID_NUMBER_OF_PERIOD)},yl=function(e){if(""===e)throw new Error(ol.DASH_EMPTY_MANIFEST);var t,i,n=new sl;try{i=(t=n.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!i||0<i.getElementsByTagName("parsererror").length)throw new Error(ol.DASH_INVALID_XML);return i},vl=Math.pow(2,32),_l=function(e){var t,e=new DataView(e.buffer,e.byteOffset,e.byteLength);return e.getBigUint64?(t=e.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:e.getUint32(0)*vl+e.getUint32(4)},bl=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},n=12,r=(0===i.version?(i.earliestPresentationTime=t.getUint32(n),i.firstOffset=t.getUint32(n+4),n+=8):(i.earliestPresentationTime=_l(e.subarray(n)),i.firstOffset=_l(e.subarray(n+8)),n+=16),t.getUint16(n+=2));for(n+=2;0<r;n+=12,r--)i.references.push({referenceType:(128&e[n])>>>7,referencedSize:2147483647&t.getUint32(n),subsegmentDuration:t.getUint32(n+4),startsWithSap:!!(128&e[n+8]),sapType:(112&e[n+8])>>>4,sapDeltaTime:268435455&t.getUint32(n+8)});return i},Tl=C([73,68,51]),wl={EBML:C([26,69,223,163]),DocType:C([66,130]),Segment:C([24,83,128,103]),SegmentInfo:C([21,73,169,102]),Tracks:C([22,84,174,107]),Track:C([174]),TrackNumber:C([215]),DefaultDuration:C([35,227,131]),TrackEntry:C([174]),TrackType:C([131]),FlagDefault:C([136]),CodecID:C([134]),CodecPrivate:C([99,162]),VideoTrack:C([224]),AudioTrack:C([225]),Cluster:C([31,67,182,117]),Timestamp:C([231]),TimestampScale:C([42,215,177]),BlockGroup:C([160]),BlockDuration:C([155]),Block:C([161]),SimpleBlock:C([163])},Sl=[128,64,32,16,8,4,2,1],kl=function(e){for(var t=1,i=0;i<Sl.length&&!(e&Sl[i]);i++)t++;return t},Cl=function(e,t,i,n){void 0===i&&(i=!0),void 0===n&&(n=!1);var r=kl(e[t]),s=e.subarray(t,t+r);return i&&((s=Array.prototype.slice.call(e,t,t+r))[0]^=Sl[r-1]),{length:r,value:Hr(s,{signed:n}),bytes:s}},El=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(e):"number"==typeof t?Sr(t):t},xl=C([0,0,0,1]),Al=C([0,0,1]),Il=C([0,0,3]),Ll=function(e){for(var t=[],i=1;i<e.length-2;)x(e.subarray(i,i+3),Il)&&(t.push(i+2),i++),i++;if(0===t.length)return e;for(var n=e.length-t.length,r=new Uint8Array(n),s=0,i=0;i<n;s++,i++)s===t[0]&&(s++,t.shift()),r[i]=e[s];return r},Pl={webm:C([119,101,98,109]),matroska:C([109,97,116,114,111,115,107,97]),flac:C([102,76,97,67]),ogg:C([79,103,103,83]),ac3:C([11,119]),riff:C([82,73,70,70]),avi:C([65,86,73]),wav:C([87,65,86,69]),"3gp":C([102,116,121,112,51,103]),mp4:C([102,116,121,112]),fmp4:C([115,116,121,112]),mov:C([102,116,121,112,113,116]),moov:C([109,111,111,118]),moof:C([109,111,111,102])},Ol={aac:function(e){var t=Ho(e);return x(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Ho(e);return x(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){e=$o(e,[wl.EBML,wl.DocType])[0];return x(e,Pl.webm)},mkv:function(e){e=$o(e,[wl.EBML,wl.DocType])[0];return x(e,Pl.matroska)},mp4:function(e){return!Ol["3gp"](e)&&!Ol.mov(e)&&(!!(x(e,Pl.mp4,{offset:4})||x(e,Pl.fmp4,{offset:4})||x(e,Pl.moof,{offset:4})||x(e,Pl.moov,{offset:4}))||void 0)},mov:function(e){return x(e,Pl.mov,{offset:4})},"3gp":function(e){return x(e,Pl["3gp"],{offset:4})},ac3:function(e){var t=Ho(e);return x(e,Pl.ac3,{offset:t})},ts:function(e){if(e.length<189&&1<=e.length)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Ho(e);return x(e,Pl.flac,{offset:t})},ogg:function(e){return x(e,Pl.ogg)},avi:function(e){return x(e,Pl.riff)&&x(e,Pl.avi,{offset:8})},wav:function(e){return x(e,Pl.riff)&&x(e,Pl.wav,{offset:8})},h264:function(e){return zo(e,"h264",7,3).length},h265:function(e){return zo(e,"h265",[32,33],3).length}},Dl=Object.keys(Ol).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]),Nl=(Dl.forEach(function(e){var t=Ol[e];Ol[e]=function(e){return t(C(e))}}),Ol),Ml=9e4,Rl=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=window.location&&window.location.href||"");var i="function"==typeof window.URL,n=/^\/\//.test(e),r=!window.location&&!/\/\//i.test(e);return i?e=new window.URL(e,window.location||pr):/\/\//i.test(e)||(e=hr.buildAbsoluteURL(window.location&&window.location.href||"",e)),i?(i=new URL(t,e),r?i.href.slice(pr.length):n?i.href.slice(i.protocol.length):i.href):hr.buildAbsoluteURL(e,t)},Ul=function(e){return q.log.debug?q.log.debug.bind(q,"VHS:",e+" >"):function(){}},jl=1/30,Bl=3*jl,Fl=function(e,t){var i,n=[];if(e&&e.length)for(i=0;i<e.length;i++)t(e.start(i),e.end(i))&&n.push([e.start(i),e.end(i)]);return q.createTimeRanges(n)}
1,Hl=q.createTimeRange,ql=function(e,t){return t.endList?0:e&&e.suggestedPresentationDelay?e.suggestedPresentationDelay:(e=0<na(t).length)&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:e&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},Vl=function(e,t){var i=0,n=t-e.mediaSequence,r=e.segments[n];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if(void 0!==(r=e.segments[n]).end)return{result:i+r.end,precise:!0};if(i+=ta(e,r),void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}},Wl=function(e,t){for(var i,n=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(void 0!==(i=e.segments[r]).start)return{result:i.start-n,precise:!0};if(n+=ta(e,i),void 0!==i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}},$l=function(e,t,i){var n;return(t=void 0===t?e.mediaSequence+e.segments.length:t)<e.mediaSequence?0:(n=Vl(e,t)).precise?n.result:(e=Wl(e,t)).precise?e.result:n.result+i},zl=function(e,t,i){if(!e)return 0;if("number"!=typeof i&&(i=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return window.Infinity}return $l(e,t,i)},Gl=function(i){if(!i||!i.playlists||!i.playlists.length)return pa(i,function(e){return e.playlists&&e.playlists.length||e.uri});for(var e=0;e<i.playlists.length;e++){var t=function(e){var t=i.playlists[e],e=t.attributes&&t.attributes.CODECS;return e&&e.split(",").every(_r)||pa(i,function(e){return ha(t,e)})?"continue":{v:!1}}(e);if("continue"!==t&&"object"==typeof t)return t.v}return!0},Xl={liveEdgeDelay:ql,duration:zl,seekable:function(e,t,i){var n=t||0,e=oa(e,t,!0,i);return null===e?Hl():Hl(n,e)},getMediaInfoForTime:function(e){for(var t=e.playlist,i=e.currentTime,n=e.startingSegmentIndex,r=e.startingPartIndex,s=e.startTime,o=e.experimentalExactManifestTimings,a=i-s,l=ia(t),u=0,c=0;c<l.length;c++){var d=l[c];if(n===d.segmentIndex&&("number"!=typeof r||"number"!=typeof d.partIndex||r===d.partIndex)){u=c;break}}if(a<0){if(0<u)for(var h=u-1;0<=h;h--){var p=l[h];if(a+=p.duration,o){if(a<0)continue}else if(a+jl<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:s-sa({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i}}if(u<0){for(var f=u;f<0;f++)if((a-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i};u=0}for(var m=u;m<l.length;m++){var g=l[m];if(a-=g.duration,o){if(0<a)continue}else if(0<=a-jl)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:s+sa({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:i}},isEnabled:ua,isDisabled:function(e){return e.disabled},isBlacklisted:aa,isIncompatible:la,playlistEnd:oa,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:ca,estimateSegmentRequestTime:function(e,t,i,n){return void 0===n&&(n=0),ca("BANDWIDTH",i)?(e*i.attributes.BANDWIDTH-8*n)/t:NaN},isLowestEnabledRendition:da,isAudioOnly:Gl,playlistMatch:ha,segmentDurationWithParts:ta},Kl=q.log,Yl=function(e,t){return e+"-"+t},Ql=function(r,s){r.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(e){if(r.mediaGroups[e])for(var t in r.mediaGroups[e])for(var i in r.mediaGroups[e][t]){var n=r.mediaGroups[e][t][i];s(n,e,t,i)}})},Jl=function(e){var t=e.playlist,i=e.uri,e=e.id;t.id=e,t.playlistErrors_=0,i&&(t.uri=i),t.attributes=t.attributes||{}},Zl=q.mergeOptions,eu=function(e,t){if(!e)return t;var i=Zl(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(var n=0;n<t.parts.length;n++)e.parts&&e.parts[n]&&(i.parts[n]=Zl(e.parts[n],t.parts[n]));return!e.skipped&&t.skipped&&(i.skipped=!1),e.preload&&!t.preload&&(i.preload=!1),i},tu=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},iu=function(s){function e(e,t,i){var n;if(void 0===i&&(i={}),n=s.call(this)||this,!e)throw new Error("A non-empty playlist URL or object is required");n.logger_=Ul("PlaylistLoader");var r=i.withCredentials,r=void 0!==r&&r,i=i.handleManifestRedirects,i=void 0!==i&&i,e=(n.src=e,n.vhs_=t,n.withCredentials=r,n.handleManifestRedirects=i,t.options_);return n.customTagParsers=e&&e.customTagParsers||[],n.customTagMappers=e&&e.customTagMappers||[],n.experimentalLLHLS=e&&e.experimentalLLHLS||!1,q.browser.IE_VERSION&&(n.experimentalLLHLS=!1),n.state="HAVE_NOTHING",n.handleMediaupdatetimeout_=n.handleMediaupdatetimeout_.bind(_(n)),n.on("mediaupdatetimeout",n.handleMediaupdatetimeout_),n}b(e,s);var t=e.prototype;return t.handleMediaupdatetimeout_=function(){var e,t,i,n,r,s,o,a,l=this;"HAVE_METADATA"===this.state&&(i=this.media(),e=Rl(this.master.uri,i.uri),this.experimentalLLHLS&&(t=e,!(i=i).endList&&i.serverControl&&(n={},i.serverControl.canBlockReload&&(s=i.preloadSegment,r=i.mediaSequence+i.segments.length,s&&(s=s.parts||[],-1<(o=ra(i)-1)&&o!=s.length-1&&(n._HLS_part=o),-1<o||s.length)&&r--,n._HLS_msn=r),i.serverControl&&i.serverControl.canSkipUntil&&(n._HLS_skip=i.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length)&&(a=new window.URL(t),["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){n.hasOwnProperty(e)&&a.searchParams.set(e,n[e])}),t=a.toString()),e=t),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:e,withCredentials:this.withCredentials},function(e,t){if(l.request)return e?l.playlistRequestError(l.request,l.media(),"HAVE_METADATA"):void l.haveMetadata({playlistString:l.request.responseText,url:l.media().uri,id:l.media().id})}))},t.playlistRequestError=function(e,t,i){var n=t.uri,t=t.id;this.request=null,i&&(this.state=i),this.error={playlist:this.master.playlists[t],status:e.status,message:"HLS playlist request error at URL: "+n+".",responseText:e.responseText,code:500<=e.status?4:2},this.trigger("error")},t.parseManifest_=function(e){var t,i,n,r,s,o,a,l=this,u=e.url,e=e.manifestString;return e={onwarn:function(e){e=e.message;return l.logger_("m3u8-parser warn for "+u+": "+e)},oninfo:function(e){e=e.message;return l.logger_("m3u8-parser info for "+u+": "+e)},manifestString:e,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS},t=e.onwarn,i=e.oninfo,n=e.manifestString,r=void 0===(r=e.customTagParsers)?[]:r,s=void 0===(s=e.customTagMappers)?[]:s,e=e.experimentalLLHLS,o=new Lr,t&&o.on("warn",t),i&&o.on("info",i),r.forEach(function(e){return o.addParser(e)}
1),s.forEach(function(e){return o.addTagMapper(e)}),o.push(n),o.end(),a=o.manifest,e||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){a.hasOwnProperty(e)&&delete a[e]}),a.segments&&a.segments.forEach(function(t){["parts","preloadHints"].forEach(function(e){t.hasOwnProperty(e)&&delete t[e]})})),a.targetDuration||(i=10,a.segments&&a.segments.length&&(i=a.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)),t&&t("manifest has no targetDuration defaulting to "+i),a.targetDuration=i),(r=na(a)).length&&!a.partTargetDuration&&(s=r.reduce(function(e,t){return Math.max(e,t.duration)},0),t&&(t("manifest has no partTargetDuration defaulting to "+s),Kl.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),a.partTargetDuration=s),a},t.haveMetadata=function(e){var t=e.playlistString,i=e.playlistObject,n=e.url,e=e.id,i=(this.request=null,this.state="HAVE_METADATA",i||this.parseManifest_({url:n,manifestString:t})),t=(i.lastRequest=Date.now(),Jl({playlist:i,uri:n,id:e}),ya(this.master,i));this.targetDuration=i.partTargetDuration||i.targetDuration,this.pendingMedia_=null,t?(this.master=t,this.media_=this.master.playlists[e]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(va(this.media(),!!t)),this.trigger("loadedplaylist")},t.dispose=function(){this.trigger("dispose"),this.stopRequest(),window.clearTimeout(this.mediaUpdateTimeout),window.clearTimeout(this.finalRenditionTimeout),this.off()},t.stopRequest=function(){var e;this.request&&(e=this.request,this.request=null,e.onreadystatechange=null,e.abort())},t.media=function(i,e){var n=this;if(!i)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof i){if(!this.master.playlists[i])throw new Error("Unknown playlist URI: "+i);i=this.master.playlists[i]}if(window.clearTimeout(this.finalRenditionTimeout),e)e=(i.partTargetDuration||i.targetDuration)/2*1e3||5e3,this.finalRenditionTimeout=window.setTimeout(this.media.bind(this,i,!1),e);else{var r=this.state,e=!this.media_||i.id!==this.media_.id,t=this.master.playlists[i.id];if(t&&t.endList||i.endList&&i.segments.length)this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=i,e&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange"));else if(this.updateMediaUpdateTimeout_(va(i,!0)),e){if(this.state="SWITCHING_MEDIA",this.request){if(i.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=i,this.request=this.vhs_.xhr({uri:i.resolvedUri,withCredentials:this.withCredentials},function(e,t){if(n.request){if(i.lastRequest=Date.now(),i.resolvedUri=Xo(n.handleManifestRedirects,i.resolvedUri,t),e)return n.playlistRequestError(n.request,i,r);n.haveMetadata({playlistString:t.responseText,url:i.uri,id:i.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}},t.pause=function(){this.mediaUpdateTimeout&&(window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},t.load=function(e){var t=this,i=(this.mediaUpdateTimeout&&(window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media());e?(e=i?(i.partTargetDuration||i.targetDuration)/2*1e3:5e3,this.mediaUpdateTimeout=window.setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},e)):this.started?i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},t.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=window.setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))},t.start=function(){var i=this;this.started=!0,"object"==typeof this.src?(this.src.uri||(this.src.uri=window.location.href),this.src.resolvedUri=this.src.uri,setTimeout(function(){i.setupInitialPlaylist(i.src)},0)):this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(e,t){if(i.request){if(i.request=null,e)return i.error={status:t.status,message:"HLS playlist request error at URL: "+i.src+".",responseText:t.responseText,code:2},"HAVE_NOTHING"===i.state&&(i.started=!1),i.trigger("error");i.src=Xo(i.handleManifestRedirects,i.src,t);e=i.parseManifest_({manifestString:t.responseText,url:i.src});i.setupInitialPlaylist(e)}})},t.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},t.setupInitialPlaylist=function(e){var t,i,n,r;this.state="HAVE_MASTER",e.playlists?(this.master=e,fa(this.master,this.srcUri()),e.playlists.forEac
1h(function(t){t.segments=ga(t),t.segments.forEach(function(e){ma(e,t.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.master.playlists[0])):(t=this.srcUri()||window.location.href,this.master=(n=Yl(0,i=t),(r={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:window.location.href,resolvedUri:window.location.href,playlists:[{uri:i,id:n,resolvedUri:i,attributes:{}}]}).playlists[n]=r.playlists[0],r.playlists[i]=r.playlists[0],r),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata"))},e}(q.EventTarget),nu=q.xhr,ru=q.mergeOptions,t=Object.freeze({__proto__:null,createTransferableMessage:ka,initSegmentId:Ca,segmentKeyId:Ea,hexDump:xa,tagDump:function(e){e=e.bytes;return xa(e)},textRanges:function(e){for(var t,i,n="",r=0;r<e.length;r++)n+=(i=r,(t=e).start(i)+"-"+t.end(i)+" ");return n}}),su=.25,ou=function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds},au=q.mergeOptions,lu=function(e,t){return(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},uu=function(s){function e(e,t,i,n){void 0===i&&(i={}),(r=s.call(this)||this).masterPlaylistLoader_=n||_(r),n||(r.isMaster_=!0);var r,n=i,i=n.withCredentials,i=void 0!==i&&i,n=n.handleManifestRedirects,n=void 0!==n&&n;if(r.vhs_=t,r.withCredentials=i,r.handleManifestRedirects=n,e)return r.on("minimumUpdatePeriod",function(){r.refreshXml_()}),r.on("mediaupdatetimeout",function(){r.refreshMedia_(r.media().id)}),r.state="HAVE_NOTHING",r.loadedPlaylists_={},r.logger_=Ul("DashPlaylistLoader"),r.isMaster_?(r.masterPlaylistLoader_.srcUrl=e,r.masterPlaylistLoader_.sidxMapping_={}):r.childPlaylist_=e,r;throw new Error("A non-empty playlist URL or object is required")}b(e,s);var t=e.prototype;return t.requestErrored_=function(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)},t.addSidxSegments_=function(o,n,r){var a,l,u=this,s=o.sidx&&cl(o.sidx);o.sidx&&s&&!this.masterPlaylistLoader_.sidxMapping_[s]?(a=Xo(this.handleManifestRedirects,o.sidx.resolvedUri),l=function(e,t){if(!u.requestErrored_(e,t,n)){var i,e=u.masterPlaylistLoader_.sidxMapping_;try{i=bl(C(t.response).subarray(8))}catch(e){return void u.requestErrored_(e,t,n)}return e[s]={sidxInfo:o.sidx,sidx:i},yo(o,i,o.sidx.resolvedUri),r(!0)}},this.request=Pa(a,this.vhs_.xhr,function(e,t,i,n){var r,s;return e?l(e,t):i&&"mp4"===i?(r=(s=o.sidx.byterange).offset,s=s.length,n.length>=s+r?l(e,{response:n.subarray(r,r+s),status:t.status,uri:t.uri}):void(u.request=u.vhs_.xhr({uri:a,responseType:"arraybuffer",headers:Ta({byterange:o.sidx.byterange})},l))):l({status:t.status,message:"Unsupported "+(i||"unknown")+" container type for sidx segment at URL: "+a,response:"",playlist:o,internal:!0,blacklistDuration:1/0,code:2},t)})):this.mediaRequest_=window.setTimeout(function(){return r(!1)},0)},t.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},window.clearTimeout(this.minimumUpdatePeriodTimeout_),window.clearTimeout(this.mediaRequest_),window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},t.hasPendingRequest=function(){return this.request||this.mediaRequest_},t.stopRequest=function(){var e;this.request&&(e=this.request,this.request=null,e.onreadystatechange=null,e.abort())},t.media=function(t){var i=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof t){if(!this.masterPlaylistLoader_.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.masterPlaylistLoader_.master.playlists[t]}var e=!this.media_||t.id!==this.media_.id;e&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList?(this.state="HAVE_METADATA",this.media_=t,e&&(this.trigger("mediachanging"),this.trigger("mediachange"))):e&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,n,function(e){i.haveMetadata({startingState:n,playlist:t})}))},t.haveMetadata=function(e){var t=e.startingState,e=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[e.id]=e,this.mediaRequest_=null,this.refreshMedia_(e.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},t.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(window.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},t.load=function(e){var t=this,i=(window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.media());e?(e=i?i.targetDuration/2*1e3:5e3,this.mediaUpdateTimeout=window.setTimeout(function(){return t.load()},e)):this.started?i&&!i.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},t.start=function(){var i=this;this.started=!0,this.isMaster_?this.requestMaster_(function(e,t){i.haveMaster_(),i.hasPendingRequest()||i.media_||i.media(i.masterPlaylistLoader_.master.playlists[0])}):this.mediaRequest_=window.setTimeout(function(){return i.haveMaster_()},0)},t.requestMaster_=function(n){var r=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(e,t){if(r.requestErrored_(e,t))"HAVE_NOTHING"===r.state&&(r.started=!1);else{var i=t.responseText!==r.masterPlaylistLoader_.masterXml_;if(r.masterPlaylistLoader_.masterXml_=t.responseText,t.responseHeaders&&t.responseHeaders.date?r.masterLoaded_=Date.parse(t.responseHeaders.date):r.masterLoaded_=Date.now(),r.masterPlaylistLoader_.srcUrl=Xo(r.handleManifestRedirects,r.masterPlaylistLoader_.srcUrl,t),!i)return n(t,i);r.handleMaster_(),r.syncClientServerClock_(function(){return n(t,i)})}})},t.syncClientServerClock_=function(i){var n=this,r=Fo(this.masterPlaylistLoader_.masterXml_);return null===r?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),i()):"DIRECT"===r.method?(this.masterPlaylistLoader_.clientOffset_=r.value-Date.now(),i()):void(this.request=this.vhs_.xhr({uri:Rl(this.masterPlaylistLoader_.srcUrl,r.value),method:r.method,withCredentials:this.withCredentials},function(e,t){if(n.request){if(e)return n.masterPlaylistLoader_.clientOffset_=n.masterLoaded_-Date.now(),i();e="HEAD"===r.method?t.responseHeaders&&t.responseHeaders.date?Date.parse(t.responseHeaders.date):n.masterLoaded_:Date.parse(t.responseText);n.masterPlaylistLoader_.clientOffset_=e-Date.now(),i()}}))},t.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},t.handleMaster_=function(){this.mediaRequest_=null;var e=this.masterPlaylistLoader_.master,t=Da({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:e}),i=(e&&(t=function(e,t,i){for(var s=!0,o=au(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),n=0;n<t.playlists.length;n++){var r=t.playlists[n],a=(r.sidx&&(a=cl(r.sidx),i)&&i[a]&&i[a].sidx&&yo(r,i[a].sidx,r.sidx.resolvedUri),ya(o,r,Oa));a&&(o=a,s=!1)}return Ql(t,function(e,t,i,n){var r;e.playlists&&e.playlists.length&&(r=e.playlists[0].id,e=ya(o,e.playlists[0],Oa))&&((o=e).mediaGroups[t][i][n].playlists[0]=o.playlists[r],s=!1)}),(s=t.minimumUpdatePeriod===e.minimumUpdatePeriod&&s)?null:o}(e,t,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=t||e,this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0]);return i&&i!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=i),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(t)},t.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_,t=(e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(window.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null),e.master&&e.master.minimumUpdatePeriod);
vendor: 29,823 bytes, line 1
10===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},t.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=window.setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},t.refreshXml_=function(){var i=this;this.requestMaster_(function(e,t){var r,s;t&&(i.media_&&(i.media_=i.masterPlaylistLoader_.master.playlists[i.media_.id]),i.masterPlaylistLoader_.sidxMapping_=(t=i.masterPlaylistLoader_.master,r=i.masterPlaylistLoader_.sidxMapping_,s=Na(t.playlists,r),Ql(t,function(e,t,i,n){e.playlists&&e.playlists.length&&(e=e.playlists,s=au(s,Na(e,r)))}),s),i.addSidxSegments_(i.media(),i.state,function(e){i.refreshMedia_(i.media().id)}))})},t.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var i=this.masterPlaylistLoader_.master.playlists,n=!this.media_||this.media_!==i[e];n?this.media_=i[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=window.setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},va(t.media(),Boolean(n))))}(),this.trigger("loadedplaylist")},e}(q.EventTarget),D={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},cu=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer},du=Ra(Ua(ja(function(){function e(){this.init=function(){var s={};this.on=function(e,t){s[e]||(s[e]=[]),s[e]=s[e].concat(t)},this.off=function(e,t){return!!s[e]&&(t=s[e].indexOf(t),s[e]=s[e].slice(),s[e].splice(t,1),-1<t)},this.trigger=function(e){var t,i,n,r=s[e];if(r)if(2===arguments.length)for(i=r.length,t=0;t<i;++t)r[t].call(this,arguments[1]);else{for(n=[],t=arguments.length,t=1;t<arguments.length;++t)n.push(arguments[t]);for(i=r.length,t=0;t<i;++t)r[t].apply(this,n)}},this.dispose=function(){s={}}}}e.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),this.on("partialdone",function(e){t.partialFlush(e)}),this.on("endedtimeline",function(e){t.endTimeline(e)}),this.on("reset",function(e){t.reset(e)}),t},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var l,R,U,j,B,F,H,q,V,W,$,z,G,X,K,Y,Q,J,Z,ee,u,te,ie,ne,re,se,oe,ae,t,le,ue,ce,de,he,pe,fe,me,i=e,ge=Math.pow(2,32),ye={getUint64:function(e){var t,e=new DataView(e.buffer,e.byteOffset,e.byteLength);return e.getBigUint64?(t=e.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:e.getUint32(0)*ge+e.getUint32(4)},MAX_UINT32:ge},ve=ye.MAX_UINT32;if(u={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(var n in u)u.hasOwnProperty(n)&&(u[n]=[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3)]);te=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),ne=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),ie=new Uint8Array([0,0,0,1]),Je=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),b=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),re={video:Je,audio:b},ae=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),oe=new Uint8Array([0,0,0,0,0,0,0,0]),t=new Uint8Array([0,0,0,0,0,0,0,0]),le=t,ue=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ce=t,se=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}l=function(e){for(var t,i=[],n=0,r=1;r<arguments.length;r++)i.push(arguments[r]);for(r=i.length;r--;)n+=i[r].byteLength;for(t=new Uint8Array(n+8),new DataView(t.buffer,t.byteOffset,t.byteLength).setUint32(0,t.byteLength),t.set(e,4),r=0,n=8;r<i.length;r++)t.set(i[r],n),n+=i[r].byteLength;return t},R=function(){return l(u.dinf,l(u.dref,ae))},U=function(e){return l(u.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},X=function(e){return l(u.hdlr,re[e])},G=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),l(u.mdhd,t)},z=function(e){return l(u.mdia,G(e),X(e.type),F(e))},B=function(e){return l(u.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},F=function(e){return l(u.minf,"video"===e.type?l(u.vmhd,se):l(u.smhd,oe),R(),Y(e))},q=function(e){for(var t=e.length,i=[];t--;)i[t]=Z(e[t]);return l.apply(null,[u.mvex].concat(i))},V=function(e){e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return l(u.mvhd,e)},K=function(e){for(var t,i=e.samples||[],n=new Uint8Array(4+i.length),r=0;r<i.length;r++)t=i[r].flags,n[r+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return l(u.sdtp,n)},Y=function(e){return l(u.stbl,Q(e),l(u.stts,ce),l(u.stsc,le),l(u.stsz,ue),l(u.stco,t))},Q=function(e){return l(u.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),("video"===e.type?de:he)(e))},de=function(e){for(var t,i,n=e.sps||[],r=e.pps||[],s=[],o=[],a=0;a<n.length;a++)s.push((65280&n[a].byteLength)>>>8),s.push(255&n[a].byteLength),s=s.concat(Array.prototype.slice.call(n[a]));for(a=0;a<r.length;a++)o.push((65280&r[a].byteLength)>>>8),o.push(255&r[a].byteLength),o=o.concat(Array.prototype.slice.call(r[a]));return t=[u.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l(u.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([n.length],s,[r.length],o))),l(u.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio&&(i=e.sarRatio[0],e=e.sarRatio[1],t.push(l(u.pasp,new Uint8Array([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])))),l.apply(null,t)},he=function(e){return l(u.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),U(e))},$=function(e){e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return l(u.tkhd,e)},J=function(e){var t,i=l(u.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),n=Math.floor(e.baseMediaDecodeTime/ve),r=Math.floor(e.baseMediaDecodeTime%ve),n=l(u.tfdt,new Uint8Array([1,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r]));return"audio"===e.type?(t=ee(e,92),l(u.traf,i,n,t)):(r=K(e),t=ee(e,r.length+92),l(u.traf,i,n,t,r))},W=function(e){return e.duration=e.duration||4294967295,l(u.trak,$(e),z(e))},Z=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),l(u.trex,t)},pe=function(e,t){var i=0,n=0,r=0,s=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset)&&(s=8),[0,0,i|n|r|s,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},fe=function(e,t){var i,n,r,s,o=e.samples||[];for(t+=20+16*o.length,e=pe(o,t),(n=new Uint8Array(e.length+16*o.length)).set(e),i=e.length,s=0;s<o.length;s++)r=o[s],n[i++]=(4278190080&r.duration)>>>24,n[i++]=(16711680&r.duration)>>>16,n[i++]=(65280&r.duration)>>>8,n[i++]=255&r.duration,n[i++]=(4278190080&r.size)>>>24,n[i++]=(16711680&r.size)>>>16,n[i++]=(65280&r.size)>>>8,n[i++]=255&r.size,n[i++]=r.flags.isLeading<<2|r.flags.dependsOn,n[i++]=r.flags.isDependedOn<<6|r.flags.hasRedundancy<<4|r.flags.paddingValue<<1|r.flags.isNonSyncSample,n[i++]=61440&r.flags.degradationPriority,n[i++]=15&r.flags.degradationPriority,n[i++]=(4278190080&r.compositionTimeOffset)>>>24,n[i++]=(16711680&r.compositionTimeOffset)>>>16,n[i++]=(65280&r.compositionTimeOffset)>>>8,n[i++]=255&r.compositionTimeOffset;return l(u.trun,n)},me=function(e,t){var i,n,r,s,o=e.samples||[];for(t+=20+8*o.length,e=pe(o,t),(i=new Uint8Array(e.length+8*o.length)).set(e),n=e.length,s=0;s<o.length;s++)r=o[s],i[n++]=(4278190080&r.duration)>>>24,i[n++]=(16711680&r.duration)>>>16,i[n++]=(65280&r.duration)>>>8,i[n++]=255&r.duration,i[n++]=(4278190080&r.size)>>>24,i[n++]=(16711680&r.size)>>>16,i[n++]=(65280&r.size)>>>8,i[n++]=255&r.size;return l(u.trun,i)},ee=function(e,t){return("audio"===e.type?me:fe)(e,t)};j=function(){return l(u.ftyp,te,ie,te,ne)};function _e(e,t){var i=Ee();return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i}function r(e){e=e||{},r.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new _(0,0),new _(0,1),new _(1,0),new _(1,1)],this.parse708captions_&&(this.cc708Stream_=new y({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))}function a(e){return 32<=e&&e<=127||160<=e&&e<=255}function s(e){this.windowNum=e,this.reset()}function o(e,t,i){this.serviceNum=e,this.text="",this.currentWindow=new s(-1),this.windows=[],this.stream=i,"string"==typeof t&&this.createTextDecoder(t)}function c(e){return null===e?"":(e=tt[e]||e,String.fromCharCode(e))}function d(){for(var e=[],t=v+1;t--;)e.push("");return e}function be(e,t){var i=1;for(t<e&&(i=-1);Math.abs(t-e)>rt;)e+=i*nt;return e}function Te(e){var t,i;Te.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=be(e.dts,i),e.pts=be(e.pts,i),t=e.dts,this.trigger("data",e))},this.flush=function(){i=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){t=i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}}var we,Se=function(e){return l(u.mdat,e)},ke=function(e,t){for(var i=[],n=t.length;n--;)i[n]=J(t[n]);return l.apply(null,[u.moof,B(e)].concat(i))},Ce=(H=function(e){for(var t=e.length,i=[];t--;)i[t]=W(e[t]);return l.apply(null,[u.moov,V(4294967295)].concat(i).concat(q(e)))},function(e){var t=j(),e=H(e),i=new Uint8Array(t.byteLength+e.byteLength);return i.set(t),i.set(e,t.byteLength),i}),Ee=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},xe=function(e){var t,i,n=[],r=[];for(r.byteLength=0,r.nalCount=0,t=n.byteLength=r.duration=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(i=e[t]).nalUnitType?(n.length&&(n.duration=i.dts-n.dts,r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n)),(n=[i]).byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&&(!n.duration||n.duration<=0)&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n),r},Ae=function(e){var t,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(i=e[t]).keyFrame?(n.length&&(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),(n=[i]).nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&&n.duration<=0&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},Ie=function(e){var t;return!e[0][0].keyFrame&&1<e.length&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},Le=function(e,t){for(var i,n,r,s=t||0,o=[],a=0;a<e.length;a++)for(n=e[a],i=0;i<n.length;i++)r=n[i],s+=(r=_e(r,s)).size,o.push(r);return o},Pe=function(e){for(var t,i,n,r,s,o=0,a=e.byteLength,l=e.nalCount,u=new Uint8Array(a+4*l),c=new DataView(u.buffer),d=0;d<e.length;d++)for(n=e[d],t=0;t<n.length;t++)for(r=n[t],i=0;i<r.length;i++)s=r[i],c.setUint32(o,s.data.byteLength),u.set(s.data,o+=4),o+=s.data.byteLength;return u},h=[33,16,5,32,164,27],Oe=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],p=function(e){for(var t=[];e--;)t.push(0);return t},De=function(i){return Object.keys(i).reduce(function(e,t){return e[t]=new Uint8Array(i[t].reduce(function(e,t){return e.concat(t)},[])),e},{})},Ne=function(e){return 9e4*e},Me=function(e,t){return e*t},Re=function(e){return e/9e4},Ue=function(e,t){return e/t},f=9e4,je=Ne,m=Re,Be=function(e,t){return Ne(Ue(e,t))},Fe=function(e,t){return Me(Re(e),t)},He=function(e,t,i){return Re(i?e:e-t)},qe=function(e,t,i,n){var r,s,o,a,l,u=0,c=0;if(t.length&&(s=Be(e.baseMediaDecodeTime,e.samplerate),r=Math.ceil(f/(e.samplerate/1024)),i&&n&&(s=s-Math.max(i,n),c=(u=Math.floor(s/r))*r),!(u<1||f/2<c))){for(we||(i={96e3:[h,[227,64],p(154),[56]],88200:[h,[231],p(170),[56]],64e3:[h,[248,192],p(240),[56]],48e3:[h,[255,192],p(268),[55,148,128],p(54),[112]],44100:[h,[255,192],p(268),[55,163,128],p(84),[112]],32e3:[h,[255,192],p(268),[55,234],p(226),[112]],24e3:[h,[255,192],p(268),[55,255,128],p(268),[111,112],p(126),[224]],16e3:[h,[255,192],p(268),[55,255,128],p(268),[111,255],p(269),[223,108],p(195),[1,192]],12e3:[Oe,p(268),[3,127,248],p(268),[6,255,240],p(268),[13,255,224],p(268),[27,253,128],p(259),[56]],11025:[Oe,p(268),[3,127,248],p(268),[6,255,240],p(268),[13,255,224],p(268),[27,255,192],p(268),[55,175,128],p(108),[112]],8e3:[Oe,p(268),[3,121,16],p(47),[7]]},we=De(i)),o=(o=we[e.samplerate])||t[0].data,a=0;a<u;a++)l=t[0],t.splice(0,0,{data:o,dts:l.dts-r,pts:l.pts-r});return e.baseMediaDecodeTime-=Math.floor(Fe(c,e.samplerate)),c}},Ve=function(e,t,i){return t.minSegmentDts>=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},We=function(e){for(var t,i=[],n=0;n<e.length;n++)t=e[n],i.push({size:t.data.byteLength,duration:1024});return i},$e=function(e){for(var t,i=0,n=new Uint8Array(function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i].data.byteLength;return t}(e)),r=0;r<e.length;r++)t=e[r],n.set(t.data,i),i+=t.data.byteLength;return n},ze=f,g=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},Ge=function(e,t){var i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),t=e.timelineStartInfo.baseMediaDecodeTime,t+=i,t=Math.max(0,t),"audio"===e.type&&(t*=e.samplerate/ze,t=Math.floor(t)),t},Xe=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},Ke=function(e){for(var t=0,i={payloadType:-1,payloadSize:0},n=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)n+=255,t++;for(n+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!i.payload&&4===n){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){i.payloadType=n,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}i.payload=void 0}t+=r,r=n=0}return i},Ye=function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Qe=function(e,t){var i,n,r,s,o=[];if(64&t[0])for(n=31&t[0],i=0;i<n;i++)s={type:3&t[2+(r=3*i)],pts:e},4&t[2+r]&&(s.ccData=t[3+r]<<8|t[4+r],o.push(s));return o},Je=function(e){for(var t=e.byteLength,i=[],n=1;n<t-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(i.push(n+2),n+=2):n++;if(0===i.length)return e;for(var r=t-i.length,s=new Uint8Array(r),o=0,n=0;n<r;o++,n++)o===i[0]&&(o++,i.shift()),s[n]=e[o];return s},Ze=4,et=((r.prototype=new i).push=function(e){var t;"sei_rbsp"===e.nalUnitType&&(t=Ke(e.escapedRBSP)).payload&&t.payloadType===Ze&&(t=Ye(t))&&(e.dts<this.latestDts_?this.ignoreNextEqualDts_=!0:e.dts===this.latestDts_&&this.ignoreNextEqualDts_?(this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1)):(t=Qe(e.pts,t),this.captionPackets_=this.captionPackets_.concat(t),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts))},r.prototype.flushCCStreams=function(t){this.ccStreams_.forEach(function(e){return"flush"===t?e.flush():e.partialFlush()},this)},r.prototype.flushStream=function(e){this.captionPackets_.length&&(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0),this.flushCCStreams(e)},r.prototype.flush=function(){return this.flushStream("flush")},r.prototype.partialFlush=function(){return this.flushStream("partialFlush")},r.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},r.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},r.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},r.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},r.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},r.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)},{127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600}),y=(s.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},s.prototype.getText=function(){return this.rows.join("\n")},s.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},s.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),0<this.rows.length&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},s.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},s.prototype.addText=function(e){this.rows[this.rowIdx]+=e},s.prototype.backspace=function(){var e;this.isEmpty()||(e=this.rows[this.rowIdx],this.rows[this.rowIdx]=e.substr(0,e.length-1))},o.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new s(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},o.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},o.prototype.createTextDecoder=function(t){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(t)}catch(e){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+t+" encoding. "+e})}},function e(t){t=t||{},e.prototype.init.call(this);var i,n=this,r=t.captionServices||{},s={};Object.keys(r).forEach(function(e){i=r[e],/^SERVICE/.test(e)&&(s[e]=i.encoding)}),this.serviceEncodings=s,this.current708Packet=null,this.services={},this.push=function(e){(3===e.type||null===n.current708Packet)&&n.new708Packet(),n.add708Bytes(e)}}),tt=(y.prototype=new i,y.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},y.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,t=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(t)},y.prototype.push708Packet=function(){var e,t=this.current708Packet,i=t.data,n=null,r=0,s=i[r++];for(t.seq=s>>6,t.sizeCode=63&s;r<i.length;r++)e=31&(s=i[r++]),7===(n=s>>5)&&0<e&&(n=i[r++]),this.pushServiceBlock(n,r,e),0<e&&(r+=e-1)},y.prototype.pushServiceBlock=function(e,t,i){for(var n,r=t,s=this.current708Packet.data,o=(o=this.services[e])||this.initService(e,r);r<t+i&&r<s.length;r++)n=s[r],a(n)?r=this.handleText(r,o):24===n?r=this.multiByteCharacter(r,o):16===n?r=this.extendedCommands(r,o):128<=n&&n<=135?r=this.setCurrentWindow(r,o):152<=n&&n<=159?r=this.defineWindow(r,o):136===n?r=this.clearWindows(r,o):140===n?r=this.deleteWindows(r,o):137===n?r=this.displayWindows(r,o):138===n?r=this.hideWindows(r,o):139===n?r=this.toggleWindows(r,o):151===n?r=this.setWindowAttributes(r,o):144===n?r=this.setPenAttributes(r,o):145===n?r=this.setPenColor(r,o):146===n?r=this.setPenLocation(r,o):143===n?o=this.reset(r,o):8===n?o.currentWindow.backspace():12===n?o.currentWindow.clearText():13===n?o.currentWindow.pendingNewLine=!0:14===n?o.currentWindow.clearText():141===n&&r++},y.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data[++e];return e=a(i)?this.handleText(e,t,{isExtended:!0}):e},y.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},y.prototype.initService=function(t,e){var i,n="SERVICE"+t,r=this;return n in this.serviceEncodings&&(i=this.serviceEncodings[n]),this.services[t]=new o(t,i,r),this.services[t].init(this.getPts(e),function(e){r.flushDisplayed(e,r.services[t])}),this.services[t]},y.prototype.handleText=function(e,t,i){var n,r=i&&i.isExtended,i=i&&i.isMultiByte,s=this.current708Packet.data,o=r?4096:0,a=s[e],s=s[e+1],l=t.currentWindow,s=t.textDecoder_&&!r?(i?(n=[a,s],e++):n=[a],t.textDecoder_.decode(new Uint8Array(n))):(i=et[r=o|a]||r,4096&r&&r===i?"":String.fromCharCode(i));return l.pendingNewLine&&!l.isEmpty()&&l.newLine(this.getPts(e)),l.pendingNewLine=!1,l.addText(s),e},y.prototype.multiByteCharacter=function(e,t){var i=this.current708Packet.data,n=i[e+1],i=i[e+2];return e=a(n)&&a(i)?this.handleText(++e,t,{isMultiByte:!0}):e},y.prototype.setCurrentWindow=function(e,t){var i=this.current708Packet.data[e];return t.setCurrentWindow(7&i),e},y.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,n=i[e],t=(t.setCurrentWindow(7&n),t.currentWindow),n=i[++e];return t.visible=(32&n)>>5,t.rowLock=(16&n)>>4,t.columnLock=(8&n)>>3,t.priority=7&n,n=i[++e],t.relativePositioning=(128&n)>>7,t.anchorVertical=127&n,n=i[++e],t.anchorHorizontal=n,n=i[++e],t.anchorPoint=(240&n)>>4,t.rowCount=15&n,n=i[++e],t.columnCount=63&n,n=i[++e],t.windowStyle=(56&n)>>3,t.penStyle=7&n,t.virtualRowCount=t.rowCount+1,e},y.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,t=(i[e],t.currentWindow.winAttr),n=i[++e];return t.fillOpacity=(192&n)>>6,t.fillRed=(48&n)>>4,t.fillGreen=(12&n)>>2,t.fillBlue=3&n,n=i[++e],t.borderType=(192&n)>>6,t.borderRed=(48&n)>>4,t.borderGreen=(12&n)>>2,t.borderBlue=3&n,n=i[++e],t.borderType+=(128&n)>>5,t.wordWrap=(64&n)>>6,t.printDirection=(48&n)>>4,t.scrollDirection=(12&n)>>2,t.justify=3&n,n=i[++e],t.effectSpeed=(240&n)>>4,t.effectDirection=(12&n)>>2,t.displayEffect=3&n,e},y.prototype.flushDisplayed=function(e,t){for(var i=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&i.push(t.windows[n].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},y.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},y.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=1);return e},y.prototype.hideWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=0);return e},y.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible^=1);return e},y.prototype.clearWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].clearText();return e},y.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].reset();return e},y.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,t=(i[e],t.currentWindow.penAttr),n=i[++e];return t.textTag=(240&n)>>4,t.offset=(12&n)>>2,t.penSize=3&n,n=i[++e],t.italics=(128&n)>>7,t.underline=(64&n)>>6,t.edgeType=(56&n)>>3,t.fontStyle=7&n,e},y.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,t=(i[e],t.currentWindow.penColor),n=i[++e];return t.fgOpacity=(192&n)>>6,t.fgRed=(48&n)>>4,t.fgGreen=(12&n)>>2,t.fgBlue=3&n,n=i[++e],t.bgOpacity=(192&n)>>6,t.bgRed=(48&n)>>4,t.bgGreen=(12&n)>>2,t.bgBlue=3&n,n=i[++e],t.edgeRed=(48&n)>>4,t.edgeGreen=(12&n)>>2,t.edgeBlue=3&n,e},y.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,n=(i[e],t.currentWindow.penLoc);return t.currentWindow.pendingNewLine=!0,t=i[++e],n.row=15&t,t=i[++e],n.column=63&t,e},y.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)},{42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496}),v=14,it=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],_=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,s=32639&e.ccData;
vendor: 6,845 bytes, line 1
1s===this.lastControlCode_?this.lastControlCode_=null:(4096==(61440&s)?this.lastControlCode_=s:s!==this.PADDING_&&(this.lastControlCode_=null),t=s>>>8,i=255&s,s!==this.PADDING_&&(s===this.RESUME_CAPTION_LOADING_?this.mode_="popOn":s===this.END_OF_CAPTION_?(this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),r=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=r,this.startPts_=e.pts):s===this.ROLL_UP_2_ROWS_?(this.rollUpRows_=2,this.setRollUp(e.pts)):s===this.ROLL_UP_3_ROWS_?(this.rollUpRows_=3,this.setRollUp(e.pts)):s===this.ROLL_UP_4_ROWS_?(this.rollUpRows_=4,this.setRollUp(e.pts)):s===this.CARRIAGE_RETURN_?(this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts):s===this.BACKSPACE_?"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1):s===this.ERASE_DISPLAYED_MEMORY_?(this.flushDisplayed(e.pts),this.displayed_=d()):s===this.ERASE_NON_DISPLAYED_MEMORY_?this.nonDisplayed_=d():s===this.RESUME_DIRECT_CAPTIONING_?("paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=d()),this.mode_="paintOn",this.startPts_=e.pts):this.isSpecialCharacter(t,i)?(n=c((t=(3&t)<<8)|i),this[this.mode_](e.pts,n),this.column_++):this.isExtCharacter(t,i)?("popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),n=c((t=(3&t)<<8)|i),this[this.mode_](e.pts,n),this.column_++):this.isMidRowCode(t,i)?(this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"])):this.isOffsetControlCode(t,i)?this.column_+=3&i:this.isPAC(t,i)?(r=it.indexOf(7968&s),"rollUp"===this.mode_&&(r-this.rollUpRows_+1<0&&(r=this.rollUpRows_-1),this.setRollUp(e.pts,r)),r!==this.row_&&(this.clearFormatting(e.pts),this.row_=r),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&s)&&(this.column_=4*((14&s)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])):this.isNormalChar(t)&&(0===i&&(i=null),n=c(t),n+=c(i),this[this.mode_](e.pts,n),this.column_+=n.length)))}},b=(_.prototype=new i,_.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},_.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=d(),this.nonDisplayed_=d(),this.lastControlCode_=null,this.column_=0,this.row_=v,this.rollUpRows_=2,this.formatting_=[]},_.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},_.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&48<=t&&t<=63},_.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&32<=t&&t<=63},_.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&32<=t&&t<=47},_.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&33<=t&&t<=35},_.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&64<=t&&t<=127},_.prototype.isColorPAC=function(e){return 64<=e&&e<=79||96<=e&&e<=127},_.prototype.isNormalChar=function(e){return 32<=e&&e<=127},_.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=v,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=d(),this.displayed_=d()),void 0!==t&&t!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[t-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},_.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);t=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,t)},_.prototype.clearFormatting=function(e){var t;this.formatting_.length&&(t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},""),this.formatting_=[],this[this.mode_](e,t))},_.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];this.nonDisplayed_[this.row_]=i+=t},_.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];this.displayed_[this.row_]=i+=t},_.prototype.shiftRowsUp_=function(){for(var e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<v+1;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},_.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];this.displayed_[this.row_]=i+=t},{CaptionStream:r,Cea608Stream:_,Cea708Stream:y}),T={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},nt=8589934592,rt=4294967296;Te.prototype=new i;function st(e,t,i){for(var n="",r=t;r<i;r++)n+="%"+("00"+e[r].toString(16)).slice(-2);return n}function w(e,t,i){return decodeURIComponent(st(e,t,i))}function S(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}var k,ot,C,at=Te,lt=be,ut={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=w(e.data,1,t),e.value=w(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=w(e.data,1,t),e.url=w(e.data,t+1,e.data.length);break}},PRIV:function(e){for(var t,i=0;i<e.data.length;i++)if(0===e.data[i]){e.owner=(t=e.data,unescape(st(t,0,i)));break}e.privateData=e.data.subarray(i+1),e.data=e.privateData}},ct=function(e){var t,i={descriptor:e&&e.descriptor},l=0,u=[],c=0;if(ct.prototype.init.call(this),this.dispatchType=T.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(t=0;t<i.descriptor.length;t++)this.dispatchType+=("00"+i.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,i,n,r,s,o,a;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(c=0,u.length=0),0===u.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});
vendor: 28,157 bytes, line 1
1else if(u.push(e),c+=e.data.byteLength,1===u.length&&(l=S(e.data.subarray(6,10)),l+=10),!(c<l)){for(t={data:new Uint8Array(l),frames:[],pts:u[0].pts,dts:u[0].dts},r=0;r<l;)t.data.set(u[0].data.subarray(0,l-r),r),r+=u[0].data.byteLength,c-=u[0].data.byteLength,u.shift();i=10,64&t.data[5]&&(i=(i+=4)+S(t.data.subarray(10,14)),l-=S(t.data.subarray(16,20)));do{if((n=S(t.data.subarray(i+4,i+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."})}while((a={id:String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),data:t.data.subarray(i+10,i+n+10)}).key=a.id,ut[a.id]&&(ut[a.id](a),"com.apple.streaming.transportStreamTimestamp"===a.owner)&&(o=(1&(s=a.data)[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2,o=(o*=4)+(3&s[7]),a.timeStamp=o,void 0===t.pts&&void 0===t.dts&&(t.pts=a.timeStamp,t.dts=a.timeStamp),this.trigger("timestamp",a)),t.frames.push(a),(i=i+10+n)<l);this.trigger("data",t)}}},E=(ct.prototype=new i,ct),dt=function(){var r=new Uint8Array(188),s=0;dt.prototype.init.call(this),this.push=function(e){var t,i=0,n=188;for(s?((t=new Uint8Array(e.byteLength+s)).set(r.subarray(0,s)),t.set(e,s),s=0):t=e;n<t.byteLength;)71===t[i]&&71===t[n]?(this.trigger("data",t.subarray(i,n)),i+=188,n+=188):(i++,n++);i<t.byteLength&&(r.set(t.subarray(i),0),s=t.byteLength-i)},this.flush=function(){188===s&&71===r[0]&&(this.trigger("data",r),s=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){s=0,this.trigger("reset")}},ht=(dt.prototype=new i,(k=function(){var n,r,s,o;k.prototype.init.call(this),(o=this).packetsWaitingForPmt=[],this.programMapTable=void 0,n=function(e,t){var i=0;t.payloadUnitStartIndicator&&(i+=e[i]+1),("pat"===t.type?r:s)(e.subarray(i),t)},r=function(e,t){t.section_number=e[7],t.last_section_number=e[8],o.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=o.pmtPid},s=function(e,t){var i,n;if(1&e[5]){for(o.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&e[1])<<8|e[2])-4,n=12+((15&e[10])<<8|e[11]);n<i;){var r=e[n],s=(31&e[n+1])<<8|e[n+2];r===T.H264_STREAM_TYPE&&null===o.programMapTable.video?o.programMapTable.video=s:r===T.ADTS_STREAM_TYPE&&null===o.programMapTable.audio?o.programMapTable.audio=s:r===T.METADATA_STREAM_TYPE&&(o.programMapTable["timed-metadata"][s]=r),n+=5+((15&e[n+3])<<8|e[n+4])}t.programMapTable=o.programMapTable}},this.push=function(e){var t={},i=4;if(t.payloadUnitStartIndicator=!!(64&e[1]),t.pid=31&e[1],t.pid<<=8,t.pid|=e[2],1<(48&e[3])>>>4&&(i+=e[i]+1),0===t.pid)t.type="pat",n(e.subarray(i),t),this.trigger("data",t);else if(t.pid===this.pmtPid)for(t.type="pmt",n(e.subarray(i),t),this.trigger("data",t);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,i,t]):this.processPes_(e,i,t)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=T.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=T.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}}).prototype=new i,k.STREAM_TYPES={h264:27,adts:15},(ot=function(){function n(e,t,i){var n,r=new Uint8Array(e.size),s={type:t},o=0,a=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,o=0;o<e.data.length;o++)n=e.data[o],r.set(n.data,a),a+=n.data.byteLength;u(r,s),t="video"===t||s.packetLength<=e.size,(i||t)&&(e.size=0,e.data.length=0),t&&l.trigger("data",s)}}var t,l=this,r=!1,s={data:[],size:0},o={data:[],size:0},a={data:[],size:0},u=function(e,t){var i=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1==i&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!=(4&e[6]),192&(i=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i)&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1),t.data=e.subarray(9+e[8]))};ot.prototype.init.call(this),this.push=function(i){({pat:function(){},pes:function(){var e,t;switch(i.streamType){case T.H264_STREAM_TYPE:e=s,t="video";break;case T.ADTS_STREAM_TYPE:e=o,t="audio";break;case T.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}i.payloadUnitStartIndicator&&n(e,t,!0),e.data.push(i),e.size+=i.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]};null!==(t=i.programMapTable).video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),r=!0,l.trigger("data",e)}})[i.type]()},this.reset=function(){s.size=0,s.data.length=0,o.size=0,o.data.length=0,this.trigger("reset")},this.flushStreams_=function(){n(s,"video"),n(o,"audio"),n(a,"timed-metadata")},this.flush=function(){var e;!r&&t&&(e={type:"metadata",tracks:[]},null!==t.video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),l.trigger("data",e)),r=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new i,{PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:dt,TransportParseStream:k,ElementaryStream:ot,TimestampRolloverStream:at,CaptionStream:b.CaptionStream,Cea608Stream:b.Cea608Stream,Cea708Stream:b.Cea708Stream,MetadataStream:E});for(C in T)T.hasOwnProperty(C)&&(ht[C]=T[C]);var pt,ft,x=ht,mt=f,gt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],yt=function(l){var u,c=0;yt.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+c+" outside syncword"})},this.push=function(e){var t,i,n,r,s,o,a=0;if(l||(c=0),"audio"===e.type){for(u&&u.length?(n=u,(u=new Uint8Array(n.byteLength+e.data.byteLength)).set(n),u.set(e.data,n.byteLength)):u=e.data;a+7<u.length;)if(255!==u[a]||240!=(246&u[a+1]))"number"!=typeof o&&(o=a),a++;else{if("number"==typeof o&&(this.skipWarn_(o,a),o=null),i=2*(1&~u[a+1]),t=(3&u[a+3])<<11|u[a+4]<<3|(224&u[a+5])>>5,s=(r=1024*(1+(3&u[a+6])))*mt/gt[(60&u[a+2])>>>2],u.byteLength-a<t)break;this.trigger("data",{pts:e.pts+c*s,dts:e.dts+c*s,sampleCount:r,audioobjecttype:1+(u[a+2]>>>6&3),channelcount:(1&u[a+2])<<2|(192&u[a+3])>>>6,samplerate:gt[(60&u[a+2])>>>2],samplingfrequencyindex:(60&u[a+2])>>>2,samplesize:16,data:u.subarray(a+7+i,a+t)}),c++,a+=t}"number"==typeof o&&(this.skipWarn_(o,a),o=null),u=u.subarray(a)}},this.flush=function(){c=0,this.trigger("done")},this.reset=function(){u=void 0,this.trigger("reset")},this.endTimeline=function(){u=void 0,this.trigger("endedtimeline")}},vt=(yt.prototype=new i,yt),_t=function(n){var r=n.byteLength,s=0,o=0;this.length=function(){return 8*r},this.bitsAvailable=function(){return 8*r+o},this.loadWord=function(){var e=n.byteLength-r,t=new Uint8Array(4),i=Math.min(4,r);if(0===i)throw new Error("no bytes available");t.set(n.subarray(e,e+i)),s=new DataView(t.buffer).getUint32(0),o=8*i,r-=i},this.skipBits=function(e){var t;e<o||(e=(e-=o)-8*(t=Math.floor(e/8)),r-=t,this.loadWord()),s<<=e,o-=e},this.readBits=function(e){var t=Math.min(o,e),i=s>>>32-t;return 0<(o-=t)?s<<=t:0<r&&this.loadWord(),0<(t=e-t)?i<<t|this.readBits(t):i},this.skipLeadingZeros=function(){for(var e=0;e<o;++e)if(0!=(s&2147483648>>>e))return s<<=e,o-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},bt=function(){var n,r,s=0;bt.prototype.init.call(this),this.push=function(e){for(var t,i=(r=r?((t=new Uint8Array(r.byteLength+e.data.byteLength)).set(r),t.set(e.data,r.byteLength),t):e.data).byteLength;s<i-3;s++)if(1===r[s+2]){n=s+5;break}for(;n<i;)switch(r[n]){case 0:if(0!==r[n-1])n+=2;else if(0!==r[n-2])n++;else{for(s+3!==n-2&&this.trigger("data",r.subarray(s+3,n-2));1!==r[++n]&&n<i;);s=n-2,n+=3}break;case 1:0!==r[n-1]||0!==r[n-2]?n+=3:(this.trigger("data",r.subarray(s+3,n-2)),s=n-2,n+=3);break;default:n+=3}r=r.subarray(s),n-=s,s=0},this.reset=function(){r=null,s=0,this.trigger("reset")},this.flush=function(){r&&3<r.byteLength&&this.trigger("data",r.subarray(s+3)),r=null,s=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}};bt.prototype=new i,ft={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(pt=function(){var i,n,r,s,o,a,m,t=new bt;pt.prototype.init.call(this),(i=this).push=function(e){"video"===e.type&&(n=e.trackId,r=e.pts,s=e.dts,t.push(e))},t.on("data",function(e){var t={trackId:n,pts:r,dts:s,data:e,nalUnitTypeCode:31&e[0]};switch(t.nalUnitTypeCode){case 5:t.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:t.nalUnitType="sei_rbsp",t.escapedRBSP=o(e.subarray(1));break;case 7:t.nalUnitType="seq_parameter_set_rbsp",t.escapedRBSP=o(e.subarray(1)),t.config=a(t.escapedRBSP);break;case 8:t.nalUnitType="pic_parameter_set_rbsp";break;case 9:t.nalUnitType="access_unit_delimiter_rbsp"}i.trigger("data",t)}),t.on("done",function(){i.trigger("done")}),t.on("partialdone",function(){i.trigger("partialdone")}),t.on("reset",function(){i.trigger("reset")}),t.on("endedtimeline",function(){i.trigger("endedtimeline")}),this.flush=function(){t.flush()},this.partialFlush=function(){t.partialFlush()},this.reset=function(){t.reset()},this.endTimeline=function(){t.endTimeline()},m=function(e,t){for(var i=8,n=8,r=0;r<e;r++)i=0===(n=0!==n?(i+t.readExpGolomb()+256)%256:n)?i:n},o=function(e){for(var t=e.byteLength,i=[],n=1;n<t-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(i.push(n+2),n+=2):n++;if(0===i.length)return e;for(var r=t-i.length,s=new Uint8Array(r),o=0,n=0;n<r;o++,n++)o===i[0]&&(o++,i.shift()),s[n]=e[o];return s},a=function(e){var t,i,n,r,s,o,a=0,l=0,u=0,c=0,d=[1,1],h=new _t(e),e=h.readUnsignedByte(),p=h.readUnsignedByte(),f=h.readUnsignedByte();if(h.skipUnsignedExpGolomb(),ft[e]&&(3===(i=h.readUnsignedExpGolomb())&&h.skipBits(1),h.skipUnsignedExpGolomb(),h.skipUnsignedExpGolomb(),h.skipBits(1),h.readBoolean()))for(s=3!==i?8:12,o=0;o<s;o++)h.readBoolean()&&m(o<6?16:64,h);if(h.skipUnsignedExpGolomb(),0===(i=h.readUnsignedExpGolomb()))h.readUnsignedExpGolomb();else if(1===i)for(h.skipBits(1),h.skipExpGolomb(),h.skipExpGolomb(),t=h.readUnsignedExpGolomb(),o=0;o<t;o++)h.skipExpGolomb();if(h.skipUnsignedExpGolomb(),h.skipBits(1),i=h.readUnsignedExpGolomb(),n=h.readUnsignedExpGolomb(),0===(r=h.readBits(1))&&h.skipBits(1),h.skipBits(1),h.readBoolean()&&(a=h.readUnsignedExpGolomb(),l=h.readUnsignedExpGolomb(),u=h.readUnsignedExpGolomb(),c=h.readUnsignedExpGolomb()),h.readBoolean()&&h.readBoolean()){switch(h.readUnsignedByte()){case 1:d=[1,1];break;case 2:d=[12,11];break;case 3:d=[10,11];break;case 4:d=[16,11];break;case 5:d=[40,33];break;case 6:d=[24,11];break;case 7:d=[20,11];break;case 8:d=[32,11];break;case 9:d=[80,33];break;case 10:d=[18,11];break;case 11:d=[15,11];break;case 12:d=[64,33];break;case 13:d=[160,99];break;case 14:d=[4,3];break;case 15:d=[3,2];break;case 16:d=[2,1];break;case 255:d=[h.readUnsignedByte()<<8|h.readUnsignedByte(),h.readUnsignedByte()<<8|h.readUnsignedByte()]}d&&(d[0],d[1])}return{profileIdc:e,levelIdc:f,profileCompatibility:p,width:16*(i+1)-2*a-2*l,height:(2-r)*(n+1)*16-2*u-2*c,sarRatio:d}}}).prototype=new i;function Tt(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:Tt(e,t+=It(e,t))}function wt(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}function St(e,t){for(var i=Object.keys(t),n=0;n<i.length;n++){var r=i[n];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",jt.bind(e,r))}}function kt(e,t){var i;if(e.length===t.length){for(i=0;i<e.length;i++)if(e[i]!==t[i])return;return 1}}function Ct(e,t,i,n,r,s){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(n-t),pts:e+(r-i)},prependedContentDuration:s,baseMediaDecodeTime:e}}var Et,xt,A,at=pt,At=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],It=function(e,t){var i=0<=(i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9])?i:0;return(16&e[t+5])>>4?20+i:10+i},Lt=function(e,t,i){for(var n="",r=t;r<i;r++)n+="%"+("00"+e[r].toString(16)).slice(-2);return n},I={isLikelyAacData:function(e){var t=Tt(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:It,parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return At[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,i=10;64&e[5]&&(i=(i+=4)+wt(e.subarray(10,14)));do{if((t=wt(e.subarray(i+4,i+8)))<1)return null;if("PRIV"===String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]))for(var n,r,s=e.subarray(i+10,i+t+10),o=0;o<s.byteLength;o++)if(0===s[o]){if("com.apple.streaming.transportStreamTimestamp"===unescape(Lt(s,0,o)))return r=(1&(n=s.subarray(o+1))[3])<<30|n[4]<<22|n[5]<<14|n[6]<<6|n[7]>>>2,(r*=4)+(3&n[7]);break}}while((i=i+10+t)<e.byteLength);return null}},Pt=function(){var s=new Uint8Array,o=0;Pt.prototype.init.call(this),this.setTimestamp=function(e){o=e},this.push=function(e){var t,i,n=0,r=0;for(s.length?(i=s.length,(s=new Uint8Array(e.byteLength+i)).set(s.subarray(0,i)),s.set(e,i)):s=e;3<=s.length-r;)if(s[r]==="I".charCodeAt(0)&&s[r+1]==="D".charCodeAt(0)&&s[r+2]==="3".charCodeAt(0)){if(s.length-r<10)break;if(r+(n=I.parseId3TagSize(s,r))>s.length)break;t={type:"timed-metadata",data:s.subarray(r,r+n)},this.trigger("data",t),r+=n}else if(255==(255&s[r])&&240==(240&s[r+1])){if(s.length-r<7)break;if(r+(n=I.parseAdtsSize(s,r))>s.length)break;t={type:"audio",data:s.subarray(r,r+n),pts:o,dts:o},this.trigger("data",t),r+=n}else r++;i=s.length-r,s=0<i?s.subarray(r):new Uint8Array},this.reset=function(){s=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){s=new Uint8Array,this.trigger("endedtimeline")}},Ot=(Pt.prototype=new i,Pt),Dt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Nt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Mt=at,Rt=I.isLikelyAacData,Ut=f,jt=function(e,t){t.stream=e,this.trigger("log",t)},Bt=function(s,o){var a=[],l=0,u=0,c=1/0,d=(o=o||{}).firstSequenceNumber||0;Bt.prototype.init.call(this),this.push=function(t){Xe(s,t),s&&Dt.forEach(function(e){s[e]=t[e]}),a.push(t)},this.setEarliestDts=function(e){l=e},this.setVideoBaseMediaDecodeTime=function(e){c=e},this.setAudioAppendStart=function(e){u=e},this.flush=function(){var e,t,i,n,r;0!==a.length&&(e=Ve(a,s,l),s.baseMediaDecodeTime=Ge(s,o.keepOriginalTimestamps),r=qe(s,e,u,c),s.samples=We(e),i=Se($e(e)),a=[],n=ke(d,[s]),t=new Uint8Array(n.byteLength+i.byteLength),d++,t.set(n),t.set(i,n.byteLength),g(s),i=Math.ceil(1024*Ut/s.samplerate),e.length&&(n=e.length*i,this.trigger("segmentTimingInfo",Ct(Be(s.baseMediaDecodeTime,s.samplerate),e[0].dts,e[0].pts,e[0].dts+n,e[0].pts+n,r||0)),this.trigger("timingInfo",{start:e[0].pts,end:e[0].pts+n})),this.trigger("data",{track:s,boxes:t})),this.trigger("done","AudioSegmentStream")},this.reset=function(){g(s),a=[],this.trigger("reset")}};Bt.prototype=new i,(Et=function(o,s){var t,i,a=[],u=[],l=(s=s||{}).firstSequenceNumber||0;Et.prototype.init.call(this),delete o.minPTS,this.gopCache_=[],this.push=function(e){Xe(o,e),"seq_parameter_set_rbsp"!==e.nalUnitType||t||(t=e.config,o.sps=[e.data],Nt.forEach(function(e){o[e]=t[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,o.pps=[e.data]),a.push(e)},this.flush=function(){for(var e,t,i,n=0;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0!==a.length){if(e=xe(a),(e=Ae(e))[0][0].keyFrame||((r=this.getGopForFusion_(a[0],o))?(n=r.duration,e.unshift(r),e.byteLength+=r.byteLength,e.nalCount+=r.nalCount,e.pts=r.pts,e.dts=r.dts,e.duration+=r.duration):e=Ie(e)),u.length){var r=s.alignGopsAtEnd?this.alignGopsAtEnd_(e):this.alignGopsAtStart_(e);if(!r)return this.gopCache_.unshift({gop:e.pop(),pps:o.pps,sps:o.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");g(o),e=r}Xe(o,e),o.samples=Le(e),r=Se(Pe(e)),o.baseMediaDecodeTime=Ge(o,s.keepOriginalTimestamps),this.trigger("processedGopsInfo",e.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),t=e[0],i=e[e.length-1],this.trigger("segmentTimingInfo",Ct(o.baseMediaDecodeTime,t.dts,t.pts,i.dts+i.duration,i.pts+i.duration,n)),this.trigger("timingInfo",{start:e[0].pts,end:e[e.length-1].pts+e[e.length-1].duration}),this.gopCache_.unshift({gop:e.pop(),pps:o.pps,sps:o.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",o.baseMediaDecodeTime),this.trigger("timelineStartInfo",o.timelineStartInfo),t=ke(l,[o]),i=new Uint8Array(t.byteLength+r.byteLength),l++,i.set(t),i.set(r,t.byteLength),this.trigger("data",{track:o,boxes:i})}this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,u.length=0,this.trigger("reset")},this.resetStream_=function(){g(o),i=t=void 0},this.getGopForFusion_=function(e){for(var t,i,n,r=1/0,s=0;s<this.gopCache_.length;s++)i=(n=this.gopCache_[s]).gop,o.pps&&kt(o.pps[0],n.pps[0])&&o.sps&&kt(o.sps[0],n.sps[0])&&(i.dts<o.timelineStartInfo.dts||-1e4<=(i=e.dts-i.dts-i.duration)&&i<=45e3&&(!t||i<r)&&(t=n,r=i));return t?t.gop:null},this.alignGopsAtStart_=function(e){for(var t,i,n,r,s=e.byteLength,o=e.nalCount,a=e.duration,l=t=0;l<u.length&&t<e.length&&(i=u[l],n=e[t],i.pts!==n.pts);)n.pts>i.pts?l++:(t++,s-=n.byteLength,o-=n.nalCount,a-=n.duration);return 0===t?e:t===e.length?null:((r=e.slice(t)).byteLength=s,r.duration=a,r.nalCount=o,r.pts=r[0].pts,r.dts=r[0].dts,r)},this.alignGopsAtEnd_=function(e){for(var t,i,n,r,s=u.length-1,o=e.length-1,a=null,l=!1;0<=s&&0<=o;){if(t=u[s],i=e[o],t.pts===i.pts){l=!0;break}t.pts>i.pts?s--:(s===u.length-1&&(a=o),o--)}return l||null!==a?0===(n=l?o:a)?e:(r=(n=e.slice(n)).reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0}),n.byteLength=r.byteLength,n.duration=r.duration,n.nalCount=r.nalCount,n.pts=n[0].pts,n.dts=n[0].dts,n):null},this.alignGopsWith=function(e){u=e}}).prototype=new i,((A=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,A.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new i).flush=function(e){var t,i,n,r=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Nt.forEach(function(e){s.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,Dt.forEach(function(e){s.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,e=Ce(this.pendingTracks),s.initSegment=new Uint8Array(e.byteLength),s.initSegment.set(e),s.data=new Uint8Array(this.pendingBytes),n=0;n<this.pendingBoxes.length;n++)s.data.set(this.pendingBoxes[n],r),r+=this.pendingBoxes[n].byteLength;for(n=0;n<this.pendingCaptions.length;n++)(t=this.pendingCaptions[n]).startTime=He(t.startPts,o,this.keepOriginalTimestamps),t.endTime=He(t.endPts,o,this.keepOriginalTimestamps),s.captionStreams[t.stream]=!0,s.captions.push(t);for(n=0;n<this.pendingMetadata.length;n++)(i=this.pendingMetadata[n]).cueTime=He(i.pts,o,this.keepOriginalTimestamps),s.metadata.push(i);for(s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),n=0;n<s.captions.length;n++)t=s.captions[n],this.trigger("caption",t);for(n=0;n<s.metadata.length;n++)i=s.metadata[n],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},A.prototype.setRemux=function(e){this.remuxTracks=e},(xt=function(n){var r,s,o=this,i=!0;xt.prototype.init.call(this),n=n||{},this.baseMediaDecodeTime=n.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var t={};(this.transmuxPipeline_=t).type="aac",t.metadataStream=new x.MetadataStream,t.aacStream=new Ot,t.audioTimestampRolloverStream=new x.TimestampRolloverStream("audio"),t.timedMetadataTimestampRolloverStream=new x.TimestampRolloverStream("timed-metadata"),t.adtsStream=new vt,t.coalesceStream=new A(n,t.metadataStream),t.headOfPipeline=t.aacStream,t.aacStream.pipe(t.audioTimestampRolloverStream).pipe(t.adtsStream),t.aacStream.pipe(t.timedMetadataTimestampRolloverStream).pipe(t.metadataStream).pipe(t.coalesceStream),t.metadataStream.on("timestamp",function(e){t.aacStream.setTimestamp(e.timeStamp)}),t.aacStream.on("data",function(e){"timed-metadata"!==e.type&&"audio"!==e.type||t.audioSegmentStream||(s=s||{timelineStartInfo:{baseMediaDecodeTime:o.baseMediaDecodeTime},codec:"adts",type:"audio"},t.coalesceStream.numberOfTracks++,t.audioSegmentStream=new Bt(s,n),t.audioSegmentStream.on("log",o.getLogTrigger_("audioSegmentStream")),t.audioSegmentStream.on("timingInfo",o.trigger.bind(o,"audioTimingInfo")),t.adtsStream.pipe(t.audioSegmentStream).pipe(t.coalesceStream),o.trigger("trackinfo",{hasAudio:!!s,hasVideo:!!r}))}),t.coalesceStream.on("data",this.trigger.bind(this,"data")),t.coalesceStream.on("done",this.trigger.bind(this,"done")),St(this,t)},this.setupTsPipeline=function(){var i={};(this.transmuxPipeline_=i).type="ts",i.metadataStream=new x.MetadataStream,i.packetStream=new x.TransportPacketStream,i.parseStream=new x.TransportParseStream,i.elementaryStream=new x.ElementaryStream,i.timestampRolloverStream=new x.TimestampRolloverStream,i.adtsStream=new vt,i.h264Stream=new Mt,i.captionStream=new x.CaptionStream(n),i.coalesceStream=new A(n,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",function(e){var t;if("metadata"===e.type){for(t=e.tracks.length;t--;)r||"video"!==e.tracks[t].type?s||"audio"!==e.tracks[t].type||((s=e.tracks[t]).timelineStartInfo.baseMediaDecodeTime=o.baseMediaDecodeTime):(r=e.tracks[t]).timelineStartInfo.baseMediaDecodeTime=o.baseMediaDecodeTime;r&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new Et(r,n),i.videoSegmentStream.on("log",o.getLogTrigger_("videoSegmentStream")),i.videoSegmentStream.on("timelineStartInfo",function(e){s&&!n.keepOriginalTimestamps&&(s.timelineStartInfo=e,i.audioSegmentStream.setEarliestDts(e.dts-o.baseMediaDecodeTime))}),i.videoSegmentStream.on("processedGopsInfo",o.trigger.bind(o,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",o.trigger.bind(o,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",function(e){s&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),i.videoSegmentStream.on("timingInfo",o.trigger.bind(o,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),s&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new Bt(s,n),i.audioSegmentStream.on("log",o.getLogTrigger_("audioSegmentStream")),i.audioSegmentStream.on("timingInfo",o.trigger.bind(o,"audioTimingInfo")),i.audioSegmentStream.on("segmentTimingInfo",o.trigger.bind(o,"audioSegmentTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),o.trigger("trackinfo",{hasAudio:!!s,hasVideo:!!r})}}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",function(e){e.dispatchType=i.metadataStream.dispatchType,o.trigger("id3Frame",e)}),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done")),St(this,i)},this.setBaseMediaDecodeTime=function(e){var t=this.transmuxPipeline_;n.keepOriginalTimestamps||(this.baseMediaDecodeTime=e),s&&(s.timelineStartInfo.dts=void 0,s.timelineStartInfo.pts=void 0,g(s),t.audioTimestampRolloverStream)&&t.audioTimestampRolloverStream.discontinuity(),r&&(t.videoSegmentStream&&(t.videoSegmentStream.gopCache_=[]),r.timelineStartInfo.dts=void 0,r.timelineStartInfo.pts=void 0,g(r),t.captionStream.reset()),t.timestampRolloverStream&&t.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){s&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(e){var t=this.transmuxPipeline_;n.remux=e,t&&t.coalesceStream&&t.coalesceStream.setRemux(e)},this.alignGopsWith=function(e){r&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(t){var i=this;return function(e){e.stream=t,i.trigger("log",e)}},this.push=function(e){var t;i&&((t=Rt(e))&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),i=!1),this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new i;function Ft(e){var t=31&e[1];return t<<8|e[2]}function Ht(e){return!!(64&e[1])}function qt(e){var t=0;return 1<(48&e[3])>>>4&&(t+=e[4]+1),t}function Vt(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}}var Wt=xt,E=function(e){return e>>>0},at=function(e){return("00"+e.toString(16)).slice(-2)},L=function(e){var t="";return(t+=String.fromCharCode(e[0]))+String.fromCharCode(e[1])+String.fromCharCode(e[2])+String.fromCharCode(e[3])},$t=E,P=function e(t,i){var n,r,s,o=[];if(!i.length)return null;for(n=0;n<t.byteLength;)r=$t(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]),s=L(t.subarray(n+4,n+8)),r=1<r?n+r:t.byteLength,s===i[0]&&(1===i.length?o.push(t.subarray(n+8,r)):(s=e(t.subarray(n+8,r),i.slice(1))).length&&(o=o.c
vendor: 4,101 bytes, line 1
1oncat(s))),n=r;return o},zt=E,Gt=ye.getUint64,Xt=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return t.baseMediaDecodeTime=1===t.version?Gt(e.subarray(4)):zt(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},Kt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Yt=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],s=4&i.flags[2],o=1&i.flags[1],a=2&i.flags[1],l=4&i.flags[1],u=8&i.flags[1],c=n.getUint32(4),d=8;for(r&&(i.dataOffset=n.getInt32(d),d+=4),s&&c&&(t={flags:Kt(e.subarray(d,d+4))},d+=4,o&&(t.duration=n.getUint32(d),d+=4),a&&(t.size=n.getUint32(d),d+=4),u&&(t.compositionTimeOffset=1===i.version?n.getInt32(d):n.getUint32(d),d+=4),i.samples.push(t),c--);c--;)t={},o&&(t.duration=n.getUint32(d),d+=4),a&&(t.size=n.getUint32(d),d+=4),l&&(t.flags=Kt(e.subarray(d,d+4)),d+=4),u&&(t.compositionTimeOffset=1===i.version?n.getInt32(d):n.getUint32(d),d+=4),i.samples.push(t);return i},Qt=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),e={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4)},i=1&e.flags[2],n=2&e.flags[2],r=8&e.flags[2],s=16&e.flags[2],o=32&e.flags[2],a=65536&e.flags[0],l=131072&e.flags[0],u=8;return i&&(u+=4,e.baseDataOffset=t.getUint32(12),u+=4),n&&(e.sampleDescriptionIndex=t.getUint32(u),u+=4),r&&(e.defaultSampleDuration=t.getUint32(u),u+=4),s&&(e.defaultSampleSize=t.getUint32(u),u+=4),o&&(e.defaultSampleFlags=t.getUint32(u)),a&&(e.durationIsEmpty=!0),!i&&l&&(e.baseDataOffsetIsMoof=!0),e},i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i="undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{},Jt=i,Zt=Je,ei=b.CaptionStream,ti=function(e,c){var i=P(e,["moof","traf"]),e=P(e,["mdat"]),d={},n=[];return e.forEach(function(e,t){t=i[t];n.push({mdat:e,traf:t})}),n.forEach(function(e){var t,i,n,r,s,o=e.mdat,e=e.traf,a=P(e,["tfhd"]),a=Qt(a[0]),l=a.trackId,u=P(e,["tfdt"]),u=0<u.length?Xt(u[0]).baseMediaDecodeTime:0,e=P(e,["trun"]);c===l&&0<e.length&&(t=u,i=a.defaultSampleDuration||0,n=a.defaultSampleSize||0,r=a.trackId,s=[],e.forEach(function(e){e=Yt(e).samples;e.forEach(function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=n),e.trackId=r,e.dts=t,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof t?(e.pts=t+Jt.BigInt(e.compositionTimeOffset),t+=Jt.BigInt(e.duration)):(e.pts=t+e.compositionTimeOffset,t+=e.duration)}),s=s.concat(e)}),u=function(e,t,i){for(var n,r,s=new DataView(e.buffer,e.byteOffset,e.byteLength),o={logs:[],seiNals:[]},a=0;a+4<e.length;a+=n)if(n=s.getUint32(a),a+=4,!(n<=0))switch(31&e[a]){case 6:var l=e.subarray(a+1,a+1+n),u=function(e,t){for(var i=e,n=0;n<t.length;n++){var r=t[n];if(i<r.size)return r;i-=r.size}return null}(a,t),l={nalUnitType:"sei_rbsp",size:n,data:l,escapedRBSP:Zt(l),trackId:i};if(u)l.pts=u.pts,l.dts=u.dts,r=u;else{if(!r){o.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+a+" for trackId "+i+". See mux.js#223."});break}l.pts=r.pts,l.dts=r.dts}o.seiNals.push(l)}return o}(o,s,l),d[l]||(d[l]={seiNals:[],logs:[]}),d[l].seiNals=d[l].seiNals.concat(u.seiNals),d[l].logs=d[l].logs.concat(u.logs))}),d},ii=function(){var t,o,a,l,u,i,n=!1;this.isInitialized=function(){return n},this.init=function(e){t=new ei,n=!0,i=!!e&&e.isPartial,t.on("data",function(e){e.startTime=e.startPts/l,e.endTime=e.endPts/l,u.captions.push(e),u.captionStreams[e.stream]=!0}),t.on("log",function(e){u.logs.push(e)})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length||a===e[0]&&l===t[a])},this.parse=function(e,t,i){var n,r;if(!this.isInitialized())return null;if(!t||!i)return null;if(this.isNewInit(t,i))a=t[0],l=i[a];else if(null===a||!l)return o.push(e),null;for(;0<o.length;){var s=o.shift();
vendor: 8,475 bytes, line 1
1this.parse(s,t,i)}return e=e,r=l,(n=null===(n=a)?null:{seiNals:(e=ti(e,n)[n]||{}).seiNals,logs:e.logs,timescale:r})&&n.logs&&(u.logs=u.logs.concat(n.logs)),null!==n&&n.seiNals?(this.pushNals(n.seiNals),this.flushStream(),u):u.logs.length?{logs:u.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach(function(e){t.push(e)})},this.flushStream=function(){if(!this.isInitialized())return null;i?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){u.captions=[],u.captionStreams={},u.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){o=[],l=a=null,u?this.clearParsedCaptions():u={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},ni=E,O=at,ri=ye.getUint64,si=function(e){var t=0===e[0]?12:20;return ni(e[t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])},oi=function(s,e){e=P(e,["moof","traf"]).reduce(function(e,t){var i,n=P(t,["tfhd"])[0],n=ni(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),n=s[n]||9e4,t=P(t,["tfdt"])[0],r=new DataView(t.buffer,t.byteOffset,t.byteLength),t=1===t[0]?ri(t.subarray(4,12)):r.getUint32(4);return"bigint"==typeof t?i=t/Jt.BigInt(n):"number"!=typeof t||isNaN(t)||(i=t/n),e=(i=i<Number.MAX_SAFE_INTEGER?Number(i):i)<e?i:e},1/0);return"bigint"==typeof e||isFinite(e)?e:0},ai=function(e){var e=P(e,["moov","trak"]),s=[];return e.forEach(function(e){var t,i={},n=P(e,["tkhd"])[0],r=(n&&(r=(n=new DataView(n.buffer,n.byteOffset,n.byteLength)).getUint8(0),i.id=0===r?n.getUint32(12):n.getUint32(20)),P(e,["mdia","hdlr"])[0]),r=(r&&(n=L(r.subarray(8,12)),i.type="vide"===n?"video":"soun"===n?"audio":n),P(e,["mdia","minf","stbl","stsd"])[0]),n=(r&&(n=r.subarray(8),i.codec=L(n.subarray(4,8)),r=P(n,[i.codec])[0])&&(/^[asm]vc[1-9]$/i.test(i.codec)?(t=r.subarray(78),"avcC"===L(t.subarray(4,8))&&11<t.length?(i.codec+=".",i.codec+=O(t[9]),i.codec+=O(t[10]),i.codec+=O(t[11])):i.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(i.codec)?(t=r.subarray(28),"esds"===L(t.subarray(4,8))&&20<t.length&&0!==t[19]?(i.codec+="."+O(t[19]),i.codec+="."+O(t[20]>>>2&63).replace(/^0/,"")):i.codec="mp4a.40.2"):i.codec=i.codec.toLowerCase()),P(e,["mdia","mdhd"])[0]);n&&(i.timescale=si(n)),s.push(i)}),s},D=lt,N={},M=(N.ts={parseType:function(e,t){e=Ft(e);return 0===e?"pat":e===t?"pmt":t?"pes":null},parsePat:function(e){var t=Ht(e),i=4+qt(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t={},i=Ht(e),n=4+qt(e);if(i&&(n+=e[n]+1),1&e[n+5]){for(var r=3+((15&e[n+1])<<8|e[n+2])-4,s=12+((15&e[n+10])<<8|e[n+11]);s<r;){var o=n+s;t[(31&e[o+1])<<8|e[o+2]]=e[o],s+=5+((15&e[o+3])<<8|e[o+4])}return t}},parsePayloadUnitStartIndicator:Ht,parsePesType:function(e,t){switch(t[Ft(e)]){case T.H264_STREAM_TYPE:return"video";case T.ADTS_STREAM_TYPE:return"audio";case T.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){var t,i,n;return!Ht(e)||(t=4+qt(e))>=e.byteLength?null:(i=null,192&(n=e[t+7])&&((i={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,i.pts*=4,i.pts+=(6&e[t+13])>>>1,i.dts=i.pts,64&n)&&(i.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,i.dts*=4,i.dts+=(6&e[t+18])>>>1),i)},videoPacketContainsKeyFrame:function(e){for(var t=4+qt(e),i=e.subarray(t),n=0,r=0,s=!1;r<i.byteLength-3;r++)if(1===i[r+2]){n=r+5;break}for(;n<i.byteLength;)switch(i[n]){case 0:if(0!==i[n-1])n+=2;else if(0!==i[n-2])n++;else{for(r+3!==n-2&&"slice_layer_without_partitioning_rbsp_idr"===Vt(31&i[r+3])&&(s=!0);1!==i[++n]&&n<i.length;);r=n-2,n+=3}break;case 1:0!==i[n-1]||0!==i[n-2]?n+=3:("slice_layer_without_partitioning_rbsp_idr"===Vt(31&i[r+3])&&(s=!0),r=n-2,n+=3);break;default:n+=3}return i=i.subarray(r),n-=r,r=0,s=i&&3<i.byteLength&&"slice_layer_without_partitioning_rbsp_idr"===Vt(31&i[r+3])?!0:s}},N.aac=I,f),li=function(e,t){for(var i,n=0,r=188;r<e.byteLength;)if(71===e[n]&&71===e[r]){switch(i=e.subarray(n,r),N.ts.parseType(i,t.pid)){case"pat":t.pid=N.ts.parsePat(i);break;case"pmt":var s=N.ts.parsePmt(i);t.table=t.table||{},Object.keys(s).forEach(function(e){t.table[e]=s[e]})}n+=188,r+=188}else n++,r++},ui=function(e,t,i){for(var n,r,s,o,a=0,l=188,u=!1;l<=e.byteLength;)if(71!==e[a]||71!==e[l]&&l!==e.byteLength)a++,l++;else{if(n=e.subarray(a,l),"pes"===N.ts.parseType(n,t.pid)&&(r=N.ts.parsePesType(n,t.table),s=N.ts.parsePayloadUnitStartIndicator(n),"audio"===r)&&s&&(o=N.ts.parsePesTime(n))&&(o.type="audio",i.audio.push(o),u=!0),u)break;a+=188,l+=188}for(a=(l=e.byteLength)-188,u=!1;0<=a;)if(71!==e[a]||71!==e[l]&&l!==e.byteLength)a--,l--;else{if(n=e.subarray(a,l),"pes"===N.ts.parseType(n,t.pid)&&(r=N.ts.parsePesType(n,t.table),s=N.ts.parsePayloadUnitStartIndicator(n),"audio"===r)&&s&&(o=N.ts.parsePesTime(n))&&(o.type="audio",i.audio.push(o),u=!0),u)break;a-=188,l-=188}},ci=function(e,t,i){for(var n,r,s,o,a,l,u,c,d=0,h=188,p=!1,f={data:[],size:0};h<e.byteLength;)if(71===e[d]&&71===e[h]){if(n=e.subarray(d,h),"pes"===N.ts.parseType(n,t.pid))if(r=N.ts.parsePesType(n,t.table),s=N.ts.parsePayloadUnitStartIndicator(n),"video"===r&&(s&&!p&&(o=N.ts.parsePesTime(n))&&(o.type="video",i.video.push(o),p=!0),!i.firstKeyFrame)){if(s&&0!==f.size){for(a=new Uint8Array(f.size),l=0;f.data.length;)u=f.data.shift(),a.set(u,l),l+=u.byteLength;N.ts.videoPacketContainsKeyFrame(a)&&((c=N.ts.parsePesTime(a))?(i.firstKeyFrame=c,i.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")),f.size=0}f.data.push(n),f.size+=n.byteLength}if(p&&i.firstKeyFrame)break;d+=188,h+=188}else d++,h++;for(d=(h=e.byteLength)-188,p=!1;0<=d;)if(71===e[d]&&71===e[h]){if(n=e.subarray(d,h),"pes"===N.ts.parseType(n,t.pid)&&(r=N.ts.parsePesType(n,t.table),s=N.ts.parsePayloadUnitStartIndicator(n),"video"===r)&&s&&(o=N.ts.parsePesTime(n))&&(o.type="video",i.video.push(o),p=!0),p)break;d-=188,h-=188}else d--,h--},di=function(e,t){var i,n,r,e=(N.aac.isLikelyAacData(e)?function(e){for(var t,i,n=!1,r=0,s=null,o=null,a=0,l=0;3<=e.length-l;){switch(N.aac.parseType(e,l)){case"timed-metadata":e.length-l<10?n=!0:(a=N.aac.parseId3TagSize(e,l))>e.length?n=!0:(null===o&&(t=e.subarray(l,l+a),o=N.aac.parseAacTimestamp(t)),l+=a);break;case"audio":e.length-l<7?n=!0:(a=N.aac.parseAdtsSize(e,l))>e.length?n=!0:(null===s&&(t=e.subarray(l,l+a),s=N.aac.parseSampleRate(t)),r++,l+=a);break;default:l++}if(n)return null}return null===s||null===o?null:{audio:[{type:"audio",dts:o,pts:o},{type:"audio",dts:o+1024*r*(i=M/s),pts:o+1024*r*i}]}}:function(e){var t,i={pid:null,table:null},n={};for(t in li(e,i),i.table)if(i.table.hasOwnProperty(t))switch(i.table[t]){case T.H264_STREAM_TYPE:n.video=[],ci(e,i,n),0===n.video.length&&delete n.video;break;case T.ADTS_STREAM_TYPE:n.audio=[],ui(e,i,n),0===n.audio.length&&delete n.audio}return n})(e);return e&&(e.audio||e.video)?(t=t,(i=e).audio&&i.audio.length&&(void 0!==(n=t)&&!isNaN(n)||(n=i.audio[0].dts),i.audio.forEach(function(e){e.dts=D(e.dts,n),e.pts=D(e.pts,n),e.dtsTime=e.dts/M,e.ptsTime=e.pts/M})),i.video&&i.video.length&&(void 0!==(r=t)&&!isNaN(r)||(r=i.video[0].dts),i.video.forEach(function(e){e.dts=D(e.dts,r),e.pts=D(e.pts,r),e.dtsTime=e.dts/M,e.ptsTime=e.pts/M}),i.firstKeyFrame)&&((t=i.firstKeyFrame).dts=D(t.dts,r),t.pts=D(t.pts,r),t.dtsTime=t.dts/M,t.ptsTime=t.pts/M),e):null},hi=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){var i,e;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Wt(this.options),i=this.self,(e=this.transmuxer).on("data",function(e){var t=e.initSegment,t=(e.initSegment={data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},e.data);e.data=t.buffer,i.postMessage({action:"data",segment:e,byteOffset:t.byteOffset,byteLength:t.byteLength},[e.data])}),e.on("done",function(e){i.postMessage({action:"done"})}),e.on("gopInfo",function(e){i.postMessage({action:"gopInfo",gopInfo:e})}),e.on("videoSegmentTimingInfo",function(e){var t={start:{decode:m(e.start.dts),presentation:m(e.start.pts)},end:{decode:m(e.end.dts),presentation:m(e.end.pts)},baseMediaDecodeTime:m(e.baseMediaDecodeTime)};
1e.prependedContentDuration&&(t.prependedContentDuration=m(e.prependedContentDuration)),i.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:t})}),e.on("audioSegmentTimingInfo",function(e){var t={start:{decode:m(e.start.dts),presentation:m(e.start.pts)},end:{decode:m(e.end.dts),presentation:m(e.end.pts)},baseMediaDecodeTime:m(e.baseMediaDecodeTime)};e.prependedContentDuration&&(t.prependedContentDuration=m(e.prependedContentDuration)),i.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:t})}),e.on("id3Frame",function(e){i.postMessage({action:"id3Frame",id3Frame:e})}),e.on("caption",function(e){i.postMessage({action:"caption",caption:e})}),e.on("trackinfo",function(e){i.postMessage({action:"trackinfo",trackInfo:e})}),e.on("audioTimingInfo",function(e){i.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:m(e.start),end:m(e.end)}})}),e.on("videoTimingInfo",function(e){i.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:m(e.start),end:m(e.end)}})}),e.on("log",function(e){i.postMessage({action:"log",log:e})})},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new ii,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),e=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:e&&e.captions||[],logs:e&&e.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,e=e.data,t=oi(t,e);this.self.postMessage({action:"probeMp4StartTime",startTime:t,data:e},[e.buffer])},t.probeMp4Tracks=function(e){var e=e.data,t=ai(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])},t.probeTs=function(e){var t=e.data,e=e.baseStartTime,e="number"!=typeof e||isNaN(e)?void 0:e*f,e=di(t,e),i=null;e&&((i={hasVideo:e.video&&2===e.video.length||!1,hasAudio:e.audio&&2===e.audio.length||!1}).hasVideo&&(i.videoStart=e.video[0].ptsTime),i.hasAudio)&&(i.audioStart=e.audio[0].ptsTime),this.self.postMessage({action:"probeTs",result:i,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){e=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(e)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){e=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(je(e)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(je(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new hi(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new hi(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),hu=function(e,t,i){var n=e.data.segment,r=n.type,s=n.initSegment,o=n.captions,a=n.captionStreams,l=n.metadata,u=n.videoFrameDtsTime,n=n.videoFramePtsTime,t=(t.buffer.push({captions:o,captionStreams:a,metadata:l}),e.data.segment.boxes||{data:e.data.segment.data}),o={type:r,data:new Uint8Array(t.data,t.data.byteOffset,t.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};void 0!==u&&(o.videoFrameDtsTime=u),void 0!==n&&(o.videoFramePtsTime=n),i(o)},pu=function(e){var t=e.transmuxedData,e=e.callback;t.buffer=[],e(t)},fu=function(e,t){t.gopInfo=e.data.gopInfo},mu=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():Ba(e.currentTransmux))},gu=function(e,t){e.postMessage({action:t}),mu(e)},yu=function(e){Fa("reset",e)},vu=function(e){var t=new du,i=(t.currentTransmux=null,t.transmuxQueue=[],t.terminate);return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)},t.postMessage({action:"init",options:e}),t},_u={FAILURE:2,TIMEOUT:-101,ABORTED:-102},bu=function(e){e.forEach(function(e){e.abort()})},Tu=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},wu=function(e){var t=e.target,t={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return t.bytesReceived=e.loaded,t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3),t},Su=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:_u.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:_u.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:_u.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:_u.FAILURE,xhr:t}:null},ku=function(i,n){var e,t=Go(i.map.bytes);if("mp4"!==t)return e=i.map.resolvedUri||i.map.uri,n({internal:!0,message:"Found unsupported "+(t||"unknown")+" container for initialization segment at URL: "+e,code:_u.FAILURE});qa({action:"probeMp4Tracks",data:i.map.bytes,transmuxer:i.transmuxer,callback:function(e){var t=e.tracks,e=e.data;return i.map.bytes=e,t.forEach(function(e){i.map.tracks=i.map.tracks||{},i.map.tracks[e.type]||"number"==typeof(i.map.tracks[e.type]=e).id&&e.timescale&&(i.map.timescales=i.map.timescales||{},i.map.timescales[e.id]=e.timescale)}),n(null)}})},Cu=function(e){var i,n,r,s=e.segment,o=e.bytes,t=e.trackInfoFn,a=e.timingInfoFn,l=e.videoSegmentTimingInfoFn,u=e.audioSegmentTimingInfoFn,c=e.id3Fn,d=e.captionsFn,h=e.isEndOfTimeline,p=e.endedTimelineFn,f=e.dataFn,m=e.doneFn,g=e.onTransmuxerLog,y=new Uint8Array(o);0<Vo(y,["moof"]).length?(s.isFmp4=!0,i=s.map.tracks,n={isFmp4:!0,hasVideo:!!i.video,hasAudio:!!i.audio},i.audio&&i.audio.codec&&"enca"!==i.audio.codec&&(n.audioCodec=i.audio.codec),i.video&&i.video.codec&&"encv"!==i.video.codec&&(n.videoCodec=i.video.codec),i.video&&i.audio&&(n.isMuxed=!0),t(s,n),r
1=function(e){f(s,{data:y,type:n.hasAudio&&!n.isMuxed?"audio":"video"}),e&&e.length&&d(s,e),m(null,s,{})},qa({action:"probeMp4StartTime",timescales:s.map.timescales,data:y,transmuxer:s.transmuxer,callback:function(e){var t=e.data,e=e.startTime;o=t.buffer,s.bytes=y=t,n.hasAudio&&!n.isMuxed&&a(s,"audio","start",e),n.hasVideo&&a(s,"video","start",e),i.video&&t.byteLength&&s.transmuxer?qa({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:s.transmuxer,data:y,timescales:s.map.timescales,trackIds:[i.video.id],callback:function(e){o=e.data.buffer,s.bytes=y=e.data,e.logs.forEach(function(e){g(q.mergeOptions(e,{stream:"mp4CaptionParser"}))}),r(e.captions)}}):r()}})):s.transmuxer?(void 0===s.container&&(s.container=Go(y)),"ts"!==s.container&&"aac"!==s.container?(t(s,{hasAudio:!1,hasVideo:!1}),m(null,s,{})):Wa({segment:s,bytes:o,trackInfoFn:t,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g})):m(null,s,{})},Eu=function(e,i){var n=e.id,t=e.key,r=e.encryptedBytes,s=e.decryptionWorker;s.addEventListener("message",function e(t){t.data.source===n&&(s.removeEventListener("message",e),t=t.data.decrypted,i(new Uint8Array(t.bytes,t.byteOffset,t.byteLength)))}),e=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),s.postMessage(ka({source:n,encrypted:r,key:e,iv:t.iv}),[r.buffer,e.buffer])},xu=function(e){var t=e.decryptionWorker,i=e.segment,n=e.trackInfoFn,r=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,a=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog;Eu({id:i.requestId,key:i.key,encryptedBytes:i.encryptedBytes,decryptionWorker:t},function(e){i.bytes=e,Cu({segment:i,bytes:i.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})})},Au=Ul("CodecUtils"),Iu=function(e,t){t=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&t.AUDIO&&e.mediaGroups.AUDIO[t.AUDIO]},Lu=function(e){var n={};return e.forEach(function(e){var t=e.mediaType,i=e.type,e=e.details;n[t]=n[t]||[],n[t].push(Nr(""+i+e))}),Object.keys(n).forEach(function(e){1<n[e].length?(Au("multiple "+e+" codecs found as attributes: "+n[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),n[e]=null):n[e]=n[e][0]}),n},Pu=function(e,t){var i=t.attributes||{},n=Lu(function(e){e=e.attributes||{};if(e.CODECS)return Mr(e.CODECS)}(t)||[]);return Iu(e,t)&&!n.audio&&!function(e,t){if(!Iu(e,t))return!0;var i,t=t.attributes||{},n=e.mediaGroups.AUDIO[t.AUDIO];for(i in n)if(!n[i].uri&&!n[i].playlists)return!0;return!1}(e,t)&&(t=Lu(function(e,t){if(e.mediaGroups.AUDIO&&t){var i=e.mediaGroups.AUDIO[t];if(i)for(var n in i){n=i[n];if(n.default&&n.playlists)return Mr(n.playlists[0].attributes.CODECS)}}return null}(e,i.AUDIO)||[])).audio&&(n.audio=t.audio),n},Ou=Ul("PlaylistSelector"),Du=function(e){var t;if(e&&e.playlist)return t=e.playlist,JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},Nu=function(e,n){var r=e.slice();e.sort(function(e,t){var i=n(e,t);return 0===i?r.indexOf(e)-r.indexOf(t):i})},Mu=function(n){function e(e,t){var i=n.call(this)||this;if(!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(e.mediaSource)return i.bandwidth=e.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=e.hasPlayed,i.currentTime_=e.currentTime,i.seekable_=e.seekable,i.seeking_=e.seeking,i.duration_=e.duration,i.mediaSource_=e.mediaSource,i.vhs_=e.vhs,i.loaderType_=e.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=e.segmentMetadataTrack,i.goalBufferLength_=e.goalBufferLength,i.sourceType_=e.sourceType,i.sourceUpdater_=e.sourceUpdater,i.inbandTextTracks_=e.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=e.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=e.parse708captions,i.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,i.captionServices_=e.captionServices,i.experimentalExactManifestTimings=e.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=11<=q.browser.IE_VERSION,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={}
1,i.cacheEncryptionKeys_=e.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=e.decrypter,i.syncController_=e.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",function(){i.isEndOfStream_()||(i.ended_=!1)}),i.fetchAtBuffer_=!1,i.logger_=Ul("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(_(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i;throw new TypeError("No MediaSource specified")}b(e,n);var t=e.prototype;return t.createTransmuxer_=function(){return vu({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},t.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},t.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},t.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},t.abort=function(){"WAITING"!==this.state?this.pendingSegment_&&(this.pendingSegment_=null):(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_())},t.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,window.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},t.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},t.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},t.endOfStream=function(){this.ended_=!0,this.transmuxer_&&yu(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},t.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return q.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,i=e.hasVideo,e=e.isMuxed;if(i&&t&&!this.audioDisabled_&&!e)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},t.initSegmentForMap=function(e,t){var i,n;return void 0===t&&(t=!1),e?(i=Ca(e),n=this.initSegments_[i],t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e):null},t.segmentKey=function(e,t){var i,n;return void 0===t&&(t=!1),e?(i=Ea(e),n=this.keyCache_[i],this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes}),t={resolvedUri:(n||e).resolvedUri},n&&(t.bytes=n.bytes),t):null},t.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},t.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},t.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},t.playlist=function(e,t){if(void 0===t&&(t={}),e){var i,n=this.playlist_,r=this.pendingSegment_,t=(this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_)&&this.syncController_.setDateTimeMappingForStart(e),null);if(n&&(n.id?t=n.id:n.uri&&(t=n.uri)),this.logger_("playlist update ["+t+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();n&&n.uri===e.uri?(t=e.mediaSequence-n.mediaSequence,this.logger_("live window shift ["+t+"]"),null!==this.mediaIndex&&(this.mediaIndex-=t,this.mediaIndex<0?(this.mediaIndex=null,this.partIndex=null):(i=this.playlist_.segments[this.mediaIndex],!this.partIndex||i.parts&&i.parts.length&&i.parts[this.partIndex]||(i=this.mediaIndex,this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=i))),r&&(r.mediaIndex-=t,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(0<=r.mediaIndex&&(r.segment=e.segments[r.mediaIndex]),0<=r.partIndex&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)):(null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate"))}},t.pause=function(){this.checkBufferTimeout_&&(window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},t.paused=function(){return null===this.checkBufferTimeout_},t.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},t.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},t.resyncLoader=function(){this.transmuxer_&&yu(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},t.remove=function(e,t,i,n){if(void 0===i&&(i=function(){}),void 0===n&&(n=!1),(t=t===1/0?this.duration_():t)<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r,s=1,o=function(){0===--s&&i()};for(r in!n&&this.audioDisabled_||(s++,this.sourceUpdater_.removeAudio(e,t,o)),!n&&"main"!==this.loaderType_||(this.gopBuffer_=function(e,t,i,n){for(var r=Math.ceil((t-n)*Ml),s=Math.ceil((i-n)*Ml),t=e.slice(),o=e.length;o--&&!(e[o].pts<=s););if(-1!==o){for(var a=o+1;a--&&!(e[a].pts<=r););a=Math.max(a,0),t.splice(a,o-a+1)}return t}(this.gopBuffer_,e,t,this.timeMapping_),s++,this.sourceUpdater_.removeVideo(e,t,o)),this.inbandTextTracks_)Ja(e,t,this.inbandTextTracks_[r]);Ja(e,t,this.segmentMetadataTrack_),o()}else this.logger_("skipping remove because no source updater or starting media info")},t.monitorBuffer_=function(){this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=window.setTimeout(this.monitorBufferTick_.bind(this),1)},t.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=window.setTimeout(this.monitorBufferTick_.bind(this),500)},t.fillBuffer_=function(){var e;
1this.sourceUpdater_.updating()||(e=this.chooseNextRequest_())&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))},t.isEndOfStream_=function(e,t,i){var n;return void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===i&&(i=this.partIndex),!(!t||!this.mediaSource_)&&(n="number"==typeof e&&t.segments[e],e=e+1===t.segments.length,i=!n||!n.parts||i+1===n.parts.length,t.endList)&&"open"===this.mediaSource_.readyState&&e&&i},t.chooseNextRequest_=function(){var e=this.buffered_(),t=Zo(e)||0,e=ea(e,this.currentTime_()),i=!this.hasPlayed_()&&1<=e,n=e>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||i||n)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s,i={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)},t=(i.isSyncRequest?i.mediaIndex=function(e,t,i){t=t||[];for(var n=[],r=0,s=0;s<t.length;s++){var o=t[s];if(e===o.timeline&&(n.push(s),i<(r+=o.duration)))return s}return 0===n.length?0:n[n.length-1]}(this.currentTimeline_,r,t):null!==this.mediaIndex?(n=r[this.mediaIndex],o="number"==typeof this.partIndex?this.partIndex:-1,i.startOfSegment=n.end||t,n.parts&&n.parts[o+1]?(i.mediaIndex=this.mediaIndex,i.partIndex=o+1):i.mediaIndex=this.mediaIndex+1):(o=(n=Xl.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time})).segmentIndex,s=n.startTime,n=n.partIndex,i.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),i.mediaIndex=o,i.startOfSegment=s,i.partIndex=n),r[i.mediaIndex]),o=t&&"number"==typeof i.partIndex&&t.parts&&t.parts[i.partIndex];if(!t||"number"==typeof i.partIndex&&!o)return null;"number"!=typeof i.partIndex&&t.parts&&(o=t.parts[i.partIndex=0]),e||!o||o.independent||(0===i.partIndex?(n=(s=r[i.mediaIndex-1]).parts&&s.parts.length&&s.parts[s.parts.length-1])&&n.independent&&(--i.mediaIndex,i.partIndex=s.parts.length-1,i.independent="previous segment"):t.parts[i.partIndex-1].independent&&(--i.partIndex,i.independent="previous part"));e=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return i.mediaIndex>=r.length-1&&e&&!this.seeking_()?null:this.generateSegmentInfo_(i)},t.generateSegmentInfo_=function(e){var t=e.independent,i=e.playlist,n=e.mediaIndex,r=e.startOfSegment,s=e.isSyncRequest,o=e.partIndex,a=e.forceTimestampOffset,e=e.getMediaInfoForTime,l=i.segments[n],u="number"==typeof o&&l.parts[o],n={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||l.resolvedUri,mediaIndex:n,partIndex:u?o:null,isSyncRequest:s,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:l.timeline,duration:u&&u.duration||l.duration,segment:l,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:e,independent:t},o=void 0!==a?a:this.isPendingTimestampOffset_,s=(n.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:l.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:o}),Zo(this.sourceUpdater_.audioBuffered()));return"number"==typeof s&&(n.audioAppendStart=s-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(n.gopsToAlignWith=function(e,t,i){if(null==t||!e.length)return[];for(var n=Math.ceil((t-i+3)*Ml),r=0;r<e.length&&!(e[r].pts>n);r++);return e.slice(r)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),n},t.timestampOffsetForSegment_=function(e){return t=e.segmentTimeline,i=e.currentTimeline,n=e.startOfSegment,r=e.buffered,e.overrideCheck||t!==i?!(t<i)&&r.length?r.end(r.length-1):n:null;var t,i,n,r},t.earlyAbortWhenNeeded_=function(e){var t,i,n,r,s,o,a,l,u,c,d,h,p;this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3||(n=this.currentTime_(),p=e.bandwidth,t=this.pendingSegment_.duration,e=Xl.estimateSegmentRequestTime(t,p,this.playlist_,e.bytesReceived),i=this.buffered_(),r=n,void 0===(s=this.vhs_.tech_.playbackRate())&&
1(s=1),e<=(i=((i.length?i.end(i.length-1):0)-r)/s-1))||(r={master:this.vhs_.playlists.master,currentTime:n,bandwidth:p,duration:this.duration_(),segmentDuration:t,timeUntilRebuffer:i,currentTimeline:this.currentTimeline_,syncController:this.syncController_},s=r.master,o=r.currentTime,a=r.bandwidth,l=r.duration,u=r.segmentDuration,c=r.timeUntilRebuffer,d=r.currentTimeline,h=r.syncController,s=(r=(s=(s=(r=s.playlists.filter(function(e){return!Xl.isIncompatible(e)})).filter(Xl.isEnabled)).length?s:r.filter(function(e){return!Xl.isDisabled(e)})).filter(Xl.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=h.getSyncPoint(e,l,d,o)?1:2;return{playlist:e,rebufferingImpact:Xl.estimateSegmentRequestTime(u,a,e)*t-c}})).filter(function(e){return e.rebufferingImpact<=0}),Nu(s,function(e,t){return Xa(t.playlist,e.playlist)}),(n=s.length?s[0]:(Nu(r,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),r[0]||null))&&(p=e-i-n.rebufferingImpact,!n.playlist||n.playlist.uri===this.playlist_.uri||p<(i<=jl?1:.5)||(this.bandwidth=n.playlist.attributes.BANDWIDTH*D.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))))},t.handleAbort_=function(e){this.logger_("Aborting "+el(e)),this.mediaRequestsAborted+=1},t.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},t.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e!==t){var i=Object.keys(e).sort(),n=Object.keys(t).sort();if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var s=i[r];if(s!==n[r])return!1;if(e[s]!==t[s])return!1}}return!0}(this.currentMediaInfo_,t=t||{})||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId))||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_())},t.handleTimingInfo_=function(e,t,i,n){var r;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||((e=this.pendingSegment_)[r=tl(t)]=e[r]||{},e[r][i]=n,this.logger_("timinginfo: "+t+" - "+i+" - "+n),this.hasEnoughInfoToAppend_()&&this.processCallQueue_())},t.handleCaptions_=function(e,t){var g,y,v=this;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(0===t.length?this.logger_("SegmentLoader received no captions from a caption event"):this.pendingSegment_.hasAppendedData_?(g=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),y={},t.forEach(function(e){y[e.stream]=y[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=y[e.stream];t.startTime=Math.min(t.startTime,e.startTime+g),t.endTime=Math.max(t.endTime,e.endTime+g),t.captions.push(e)}),Object.keys(y).forEach(function(e){var t,i,n,r,s,o,a,l,u,c,d,h=y[e],p=h.startTime,f=h.endTime,h=h.captions,m=v.inbandTextTracks_;v.logger_("adding cues from "+p+" -> "+f+" for "+e),c=m,t=v.vhs_.tech_,c[i=e]||(t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"}),/^cc708_/.test(n=i)&&(n="SERVICE"+i.split("_")[1]),(r=t.textTracks().getTrackById(n))?c[i]=r:(s=r=i,o=!1,(a=(t.options_.vhs&&t.options_.vhs.captionServices||{})[n])&&(r=a.label,s=a.language,o=a.default),c[i]=t.addRemoteTextTrack({kind:"captions",id:n,default:o,label:r,language:s},!1).track)),Ja(p,f,m[e]),u=(a={captionArray:h,inbandTextTracks:m,timestampOffset:g}).inbandTextTracks,c=a.captionArray,d=a.timestampOffset,c&&(l=window.WebKitDataCue||window.VTTCue,c.forEach(function(e){var t=e.stream;u[t].addCue(new l(e.startTime+d,e.endTime+d,e.text))}))}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})):this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t)))},t.handleId3_=function(e,t,i){var n,r,s,o;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?(n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r=this.inbandTextTracks_,s=i,o=this.vhs_.tech_,r.metadataTrack_||(r.metadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,r.metadataTrack_.inBandMetadataTrackDispatchType=s),Qa({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:this.duration_()})):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i)))},t.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},t.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},t.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},t.hasEnoughInfoToLoad_=function(){var e;return"audio"!==this.loaderType_||!(!(e=this.pendingSegment_)||this.getCurrentMediaInfo_()&&il({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},t.getCurrentMediaInfo_=function(e){return(e=void 0===e?this.pendingSegment_:e)&&e.trackInfo||this.currentMediaInfo_},t.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},t.hasEnoughInfoToAppend_=function(){var e,t,i,n;
1return!!this.sourceUpdater_.ready()&&!(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_||(e=this.pendingSegment_,n=this.getCurrentMediaInfo_(),!e)||!n||(t=n.hasAudio,i=n.hasVideo,n=n.isMuxed,i&&!e.videoTimingInfo)||t&&!this.audioDisabled_&&!n&&!e.audioTimingInfo||il({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},t.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())this.callQueue_.push(this.handleData_.bind(this,e,t));else{var i,n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4?(this.trigger("fmp4"),n.timingInfo.start=n[tl(t.type)].start):(e=this.getCurrentMediaInfo_(),(e="main"===this.loaderType_&&e&&e.hasVideo)&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:e,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})),this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});e=this.chooseNextRequest_();if(e.mediaIndex!==n.mediaIndex||e.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}},t.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},t.getInitSegmentAndUpdateState_=function(e){var t=e.type,i=e.initSegment,n=e.map,e=e.playlist;if(n){var r=Ca(n);if(this.activeInitSegmentId_===r)return null;i=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=r}return i&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=e,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,i):null},t.handleQuotaExceededError_=function(e,t){var i=this,n=e.segmentInfo,r=e.type,e=e.bytes,s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered(),a=(1<s.length&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Jo(s).join(", ")),1<o.length&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Jo(o).join(", ")),s.length?s.start(0):0),l=s.length?s.end(s.length-1):0,u=o.length?o.start(0):0,c=o.length?o.end(o.length-1):0;l-a<=1&&c-u<=1?(this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+e.byteLength+", audio buffer: "+Jo(s).join(", ")+", video buffer: "+Jo(o).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error")):(this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:n,type:r,bytes:e})),l=this.currentTime_()-1,this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+l),this.remove(0,l,function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=window.setTimeout(function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()},1e3)},!0))},t.handleAppendError_=function(e,t){var i=e.segmentInfo,n=e.type,e=e.bytes;t&&(22===t.code?this.handleQuotaExceededError_({segmentInfo:i,type:n,bytes:e}):(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(n+" append of "+e.length+"b failed for segment #"+i.mediaIndex+" in playlist "+i.playlist.id),this.trigger("appenderror")))},t.appendToSourceBuffer_=function(e){var t,i,n,r=e.segmentInfo,s=e.type,o=e.initSegment,a=e.data,e=e.bytes;e||(t=[a],a=a.byteLength,o&&(t.unshift(o),a+=o.byteLength),n=0,(o={bytes:a,segments:t}
1).bytes&&(i=new Uint8Array(o.bytes),o.segments.forEach(function(e){i.set(e,n),n+=e.byteLength})),e=i),this.sourceUpdater_.appendBuffer({segmentInfo:r,type:s,bytes:e},this.handleAppendError_.bind(this,{segmentInfo:r,type:s,bytes:e}))},t.handleSegmentTimingInfo_=function(e,t,i){this.pendingSegment_&&t===this.pendingSegment_.requestId&&((t=this.pendingSegment_.segment)[e=e+"TimingInfo"]||(t[e]={}),t[e].transmuxerPrependedSeconds=i.prependedContentDuration||0,t[e].transmuxedPresentationStart=i.start.presentation,t[e].transmuxedDecodeStart=i.start.decode,t[e].transmuxedPresentationEnd=i.end.presentation,t[e].transmuxedDecodeEnd=i.end.decode,t[e].baseMediaDecodeTime=i.baseMediaDecodeTime)},t.appendData_=function(e,t){var i=t.type,n=t.data;n&&n.byteLength&&("audio"===i&&this.audioDisabled_||(t=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null}),this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:t,data:n})))},t.loadSegment_=function(t){var i=this;this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),"number"==typeof t.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(t):this.loadQueue_.push(function(){var e=K({},t,{forceTimestampOffset:!0});K(t,i.generateSegmentInfo_(e)),i.isPendingTimestampOffset_=!1,i.updateTransmuxerAndRequestSegment_(t)})},t.updateTransmuxerAndRequestSegment_=function(n){var r=this,e=(this.shouldUpdateTransmuxerTimestampOffset_(n.timestampOffset)&&(this.gopBuffer_.length=0,n.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:n.timestampOffset})),this.createSimplifiedSegmentObj_(n)),t=this.isEndOfStream_(n.mediaIndex,n.playlist,n.partIndex),i=null!==this.mediaIndex,s=n.timeline!==this.currentTimeline_&&0<n.timeline,t=t||i&&s;this.logger_("Requesting "+el(n)),e.map&&!e.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),n.abortRequests=$a({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:e,abortFn:this.handleAbort_.bind(this,n),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",n.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",n.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:t,endedTimelineFn:function(){r.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(e){var t=e.message,i=e.level,e=e.stream;r.logger_(el(n)+" logged from transmuxer stream "+e+" as a "+i+": "+t)}})},t.trimBackBuffer_=function(e){t=this.seekable_(),r=this.currentTime_(),i=this.playlist_.targetDuration||10,n=r-D.BACK_BUFFER_LENGTH,t.length&&(n=Math.max(n,t.start(0))),t=r-i;var t,i,n,r=Math.min(t,n);0<r&&this.remove(0,r)},t.createSimplifiedSegmentObj_=function(e){var t=e.segment,i=e.part,i={resolvedUri:(i||t).resolvedUri,byterange:(i||t).byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},n=e.playlist.segments[e.mediaIndex-1];return n&&n.timeline===t.timeline&&(n.videoTimingInfo?i.baseStartTime=n.videoTimingInfo.transmuxedDecodeEnd:n.audioTimingInfo&&(i.baseStartTime=n.audioTimingInfo.transmuxedDecodeEnd)),t.key&&(n=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]),i.key=this.segmentKey(t.key),i.key.iv=n),t.map&&(i.map=this.initSegmentForMap(t.map)),i},t.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},t.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<1/60?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+1/60):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},t.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},t.segmentRequestFinished_=function(e,t,i){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if
vendor: 5,476 bytes, line 1
1(e)return this.pendingSegment_=null,this.state="READY",e.code===_u.ABORTED?void 0:(this.pause(),e.code===_u.TIMEOUT?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error")));e=this.pendingSegment_;this.saveBandwidthRelatedStats_(e.duration,t.stats),e.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=function(e,t,i){if(!t.length)return e;if(i)return t.slice();for(var n=t[0].pts,r=0;r<e.length&&!(e[r].pts>=n);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(e)}},t.setTimeMapping_=function(e){e=this.syncController_.mappingForTimeline(e);null!==e&&(this.timeMapping_=e)},t.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},t.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},t.trueSegmentStart_=function(e){var t=e.currentStart,i=e.playlist,n=e.mediaIndex,r=e.firstVideoFrameTimeForData,s=e.currentVideoTimestampOffset,o=e.useVideoTimingInfo,a=e.videoTimingInfo,e=e.audioTimingInfo;return void 0!==t?t:o?(t=i.segments[n-1],0!==n&&t&&void 0!==t.start&&t.end===r+s?a.start:r):e.start},t.waitForAppendsToComplete_=function(e){var t,i,n=this.getCurrentMediaInfo_(e);n?(i=n.hasAudio,t=n.hasVideo,n=n.isMuxed,t="main"===this.loaderType_&&t,i=!this.audioDisabled_&&i&&!n,e.waitingOnAppends=0,e.hasAppendedData_?(t&&e.waitingOnAppends++,i&&e.waitingOnAppends++,t&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),i&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))):(e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),this.checkAppendsDone_(e))):(this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),this.trigger("error"))},t.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},t.checkForIllegalMediaSwitch=function(e){i=this.loaderType_,t=this.getCurrentMediaInfo_(),e=e;var t,i="main"===i&&t&&e?e.hasAudio||e.hasVideo?t.hasVideo&&!e.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&e.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null;return!!i&&(this.error({message:i,blacklistDuration:1/0}),this.trigger("error"),!0)},t.updateSourceBufferTimestampOffset_=function(e){var t;null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_||(t=!1,e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset"))},t.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,i=e.audioTimingInfo,e=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:i&&"number"==typeof i.transmuxedDecodeStart?i.transmuxedDecodeStart:e.start:e.start},t.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),t="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;t&&(e.timingInfo.end="number"==typeof t.end?t.end:t.start+e.duration)},t.handleAppendsDone_=function(){var e,t,i;this.pendingSegment_&&this.trigger("appendsdone"),this.pendingSegment_?(e=this.pendingSegment_,this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_}),(t=rl(e,this.sourceType_))&&("warn"===t.severity?q.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_)?this.logger_("Throwing away un-appended sync request "+el(e)):(this.logger_("Appended "+el(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate"),t=e.segment,i=e.part,t
1=t.end&&this.currentTime_()-t.end>3*e.playlist.targetDuration,i=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration,t||i?(this.logger_("bad "+(t?"segment":"part")+" "+el(e)),this.resetEverything()):(null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()))):(this.state="READY",this.paused()||this.monitorBuffer_())},t.recordThroughput_=function(e){var t,i;e.duration<1/60?this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+1/60):(t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,e=Math.floor(e.byteLength/i*8*1e3),this.throughput.rate+=(e-t)/++this.throughput.count)},t.addSegmentMetadataCue_=function(e){var t,i,n,r;this.segmentMetadataTrack_&&(t=(r=e.segment).start,i=r.end,Za(t))&&Za(i)&&(Ja(t,i,this.segmentMetadataTrack_),n=window.WebKitDataCue||window.VTTCue,r={custom:r.custom,dateTimeObject:r.dateTimeObject,dateTimeString:r.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:t,end:i},(e=new n(t,i,JSON.stringify(r))).value=r,this.segmentMetadataTrack_.addCue(e))},e}(q.EventTarget);function Ru(){}function Uu(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})}function ju(e,t){var i=t[e+"Buffer"],n=Uu(e);i&&(i.removeEventListener("updateend",t["on"+n+"UpdateEnd_"]),i.removeEventListener("error",t["on"+n+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)}function Bu(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)}function Fu(e){var t=e.type,i=e.sourceUpdater,n=e.action,r=e.doneFn,e=e.name;i.queue.push({type:t,action:n,doneFn:r,name:e}),tc(t,i)}function Hu(i,n){return function(e){var t;n.queuePending[i]&&(t=n.queuePending[i].doneFn,n.queuePending[i]=null,t)&&t(n[i+"Error_"]),tc(i,n)}}function qu(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}function Vu(s){function e(){o.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"vhs-audio-change"}),n.trigger({type:"usage",name:"hls-audio-change"})}["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){Sc[e](e,s)});var t,o=s.mediaTypes,i=s.masterPlaylistLoader,n=s.tech,r=s.vhs,a=(l=s.segmentLoaders).AUDIO,l=l.main,u=(["AUDIO","SUBTITLES"].forEach(function(e){var l,u,a,c,t,i,d,h,n,r;o[e].activeGroup=(l=e,u=s,function(t){var e=u.masterPlaylistLoader,i=u.mediaTypes[l].groups,n=e.media();if(!n)return null;var r=null,s=(n.attributes[l]&&(r=i[n.attributes[l]]),Object.keys(i));if(!r)if("AUDIO"===l&&1<s.length&&Gl(u.master))for(var o=0;o<s.length;o++){var a=i[s[o]];if(kc(a,n)){r=a;break}}else i.main?r=i.main:1===s.length&&(r=i[s[0]]);return void 0===t?r:null!==t&&r&&r.filter(function(e){return e.id===t.id})[0]||null}),o[e].activeTrack=Cc[e](e,s),o[e].onGroupChanged=(a=e,c=s,function(){var e=c.segmentLoaders,t=e[a],e=e.main,i=c.mediaTypes[a],n=i.activeTrack(),r=i.getActiveGroup(),s=i.activePlaylistLoader,o=i.lastGroup_;r&&o&&r.id===o.id||(i.lastGroup_=r,i.lastTrack_=n,_c(t,i),r&&!r.isMasterPlaylist&&(r.playlistLoader?(t.resyncLoader(),bc(r.playlistLoader,i)):s&&e.resetEverything()))}),o[e].onGroupChanging=(t=e,i=s,function(){var e=i.segmentLoaders[t];i.mediaTypes[t].lastGroup_=null,e.abort(),e.pause()}),o[e].onTrackChanged=(d=e,h=s,function(){var e,t,i=h.masterPlaylistLoader,n=h.segmentLoaders,r=n[d],n=n.main,s=h.mediaTypes[d],o=s.activeTrack(),a=s.getActiveGroup(),l=s.activePlaylistLoader,u=s.lastTrack_;if((!u||!o||u.id!==o.id)&&(s.lastGroup_=a,s.lastTrack_=o,_c(r,s),a)){if(a.isMasterPlaylist)return!o||!u||o.id===u.id||(t=(e=h.vhs.masterPlaylistController_).selectPlaylist(),e.media()===t)?void 0:(s.logger_("track change. Switching master audio from "+u.id+" to "+o.id),i.pause(),n.resetEverything(),void e.fastQualityChange_(t));if("AUDIO"===d){if(!a.playlistLoader)return n.setAudio(!0),void n.resetEverything();r.setAudio(!0),n.setAudio(!1)}l===a.playlistLoader||(r.track&&r.track(o),r.resetEverything()),bc(a.playlistLoader,s)}}),o[e].getActiveGroup=(n=e,r=s.mediaTypes,function(){var e=r[n].activeTrack();return e?r[n].activeGroup(e):null})}
1),o.AUDIO.activeGroup());for(t in u&&(u=(u.filter(function(e){return e.default})[0]||u[0]).id,o.AUDIO.tracks[u].enabled=!0,o.AUDIO.onGroupChanged(),o.AUDIO.onTrackChanged(),(o.AUDIO.getActiveGroup().playlistLoader?(l.setAudio(!1),a):l).setAudio(!0)),i.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return o[e].onGroupChanged()})}),i.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return o[e].onGroupChanging()})}),n.audioTracks().addEventListener("change",e),n.remoteTextTracks().addEventListener("change",o.SUBTITLES.onTrackChanged),r.on("dispose",function(){n.audioTracks().removeEventListener("change",e),n.remoteTextTracks().removeEventListener("change",o.SUBTITLES.onTrackChanged)}),n.clearTracks("audio"),o.AUDIO.tracks)n.audioTracks().addTrack(o.AUDIO.tracks[t])}function Wu(e,t,i){var n,r=e.masterPlaylistController_,s=r[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(r);t.attributes&&(n=t.attributes.RESOLUTION,this.width=n&&n.width,this.height=n&&n.height,this.bandwidth=t.attributes.BANDWIDTH),this.codecs=Pu(r.master(),t),this.playlist=t,this.id=i,this.enabled=Ac(e.playlists,t.id,s)}function $u(t,e){function i(e){null!=e&&(o=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",l),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())}function n(){if(Date.now()-s<1e3*a.errorInterval)t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),t.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(a.getSource&&"function"==typeof a.getSource)return s=Date.now(),a.getSource.call(t,i);q.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}}function r(){t.off("loadedmetadata",l),t.off("error",n),t.off("dispose",r)}var s=0,o=0,a=q.mergeOptions(Pc,e),l=(t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}),function(){o&&t.currentTime(o)});t.on("error",n),t.on("dispose",r),t.reloadSourceOnError=function(e){r(),$u(t,e)}}function zu(e,t){for(var i=t.media(),n=-1,r=0;r<e.length;r++)if(e[r].id===i.id){n=r;break}e.selectedIndex_=n,e.trigger({selectedIndex:n,type:"change"})}function Gu(e){var i,t,n,r=e.player,s=e.sourceKeySystems,o=e.audioMedia,e=e.mainPlaylists;return r.eme.initializeMediaKeys?(e=o=o?e.concat([o]):e,i=Object.keys(s),o=e.reduce(function(e,n){var t;return n.contentProtection&&(t=i.reduce(function(e,t){var i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e},{}),Object.keys(t).length)&&e.push(t),e},[]),t=[],n=[],o.forEach(function(e){n.push(new Promise(function(e,t){r.tech_.one("keysessioncreated",e)})),t.push(new Promise(function(t,i){r.eme.initializeMediaKeys({keySystems:e},function(e){e?i(e):t()})}))}),Promise.race([Promise.all(t),Promise.race(n)])):Promise.resolve()}function Xu(e){var t=e.player;return!(!(e=function(e,t,i){if(!e)return e;var n,r={},s=(t&&t.attributes&&t.attributes.CODECS&&(r=Lu(Mr(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(r.audio=i.attributes.CODECS),Rr(r.video)),o=Rr(r.audio),a={};for(n in e)a[n]={},o&&(a[n].audioContentType=o),s&&(a[n].videoContentType=s),t.contentProtection&&t.contentProtection[n]&&t.contentProtection[n].pssh&&(a[n].pssh=t.contentProtection[n].pssh),"string"==typeof e[n]&&(a[n].url=e[n]);return q.mergeOptions(e,a)}(e.sourceKeySystems,e.media,e.audioMedia))||(t.currentSource().keySystems=e)&&!t.eme&&(q.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1))}function Ku(){if(!window.localStorage)return null;var e=window.localStorage.getItem(Oc);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}var Yu,Qu,Ju=["video","audio"],Zu=function(e,t){var i=t[e+"Buffer"];return i&&i.updating||t.queuePending[e]},ec=function(e,t){for(var i=0;i<t.length;i++){var n=t[i];if("mediaSource"===n.type)return null;if(n.type===e)return i}return null},tc=function e(t,i){if(0!==i.queue.length){var n=0,r=i.queue[n];if("mediaSource"===r.type)i.updating()||"closed"===i.mediaSource.readyState||(i.queue.shift(),r.action(i),r.doneFn&&r.doneFn(),e("audio",i),e("video",i));else if("mediaSource"!==t&&i.ready()&&"closed"!==i.mediaSource.readyState&&!Zu(t,i)){if(r.type!==t){if(null===(n=ec(t,i.queue)))return;r=i.queue[n]}i.queue.splice(n,1),(i.queuePending[t]=r).action(t,i),r.doneFn||(i.queuePending[t]=null,e(t,i))}}},ic=function(n,r,s){return function(t,i){var e=i[t+"Buffer"];if(Bu(i.mediaSource,e)){i.logger_("Appending segment "+r.mediaIndex+"'s "+n.length+" b
1ytes to "+t+"Buffer");try{e.appendBuffer(n)}catch(e){i.logger_("Error with code "+e.code+" "+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+r.mediaIndex+" to "+t+"Buffer"),i.queuePending[t]=null,s(e)}}}},nc=function(n,r){return function(t,i){var e=i[t+"Buffer"];if(Bu(i.mediaSource,e)){i.logger_("Removing "+n+" to "+r+" from "+t+"Buffer");try{e.remove(n,r)}catch(e){i.logger_("Remove "+n+" to "+r+" from "+t+"Buffer failed")}}}},rc=function(n){return function(e,t){var i=t[e+"Buffer"];Bu(t.mediaSource,i)&&(t.logger_("Setting "+e+"timestampOffset to "+n),i.timestampOffset=n)}},sc=function(i){return function(e,t){i()}},oc=function(t){return function(e){if("open"===e.mediaSource.readyState){e.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{e.mediaSource.endOfStream(t)}catch(e){q.log.warn("Failed to call media source endOfStream",e)}}}},ac=function(t){return function(e){e.logger_("Setting mediaSource duration to "+t);try{e.mediaSource.duration=t}catch(e){q.log.warn("Failed to set media source duration",e)}}},lc=function(){return function(t,e){if("open"===e.mediaSource.readyState){var i=e[t+"Buffer"];if(Bu(e.mediaSource,i)){e.logger_("calling abort on "+t+"Buffer");try{i.abort()}catch(e){q.log.warn("Failed to abort on "+t+"Buffer",e)}}}}},uc=function(n,r){return function(e){var t=Uu(n),i=Rr(r),i=(e.logger_("Adding "+n+"Buffer with codec "+r+" to mediaSource"),e.mediaSource.addSourceBuffer(i));i.addEventListener("updateend",e["on"+t+"UpdateEnd_"]),i.addEventListener("error",e["on"+t+"Error_"]),e.codecs[n]=r,e[n+"Buffer"]=i}},cc=function(i){return function(e){var t=e[i+"Buffer"];if(ju(i,e),Bu(e.mediaSource,t)){e.logger_("Removing "+i+"Buffer with codec "+e.codecs[i]+" from mediaSource");try{e.mediaSource.removeSourceBuffer(t)}catch(e){q.log.warn("Failed to removeSourceBuffer "+i+"Buffer",e)}}}},dc=function(r){return function(e,t){var i=t[e+"Buffer"],n=Rr(r);Bu(t.mediaSource,i)&&t.codecs[e]!==r&&(t.logger_("changing "+e+"Buffer codec from "+t.codecs[e]+" to "+r),i.changeType(n),t.codecs[e]=r)}},hc=function(i){function e(e){var t=i.call(this)||this;return t.mediaSource=e,t.sourceopenListener_=function(){return tc("mediaSource",_(t))},t.mediaSource.addEventListener("sourceopen",t.sourceopenListener_),t.logger_=Ul("SourceUpdater"),t.audioTimestampOffset_=0,t.videoTimestampOffset_=0,t.queue=[],t.queuePending={audio:null,video:null},t.delayedAudioAppendQueue_=[],t.videoAppendQueued_=!1,t.codecs={},t.onVideoUpdateEnd_=Hu("video",_(t)),t.onAudioUpdateEnd_=Hu("audio",_(t)),t.onVideoError_=function(e){t.videoError_=e},t.onAudioError_=function(e){t.audioError_=e},t.createdSourceBuffers_=!1,t.initializedEme_=!1,t.triggeredReady_=!1,t}b(e,i);var t=e.prototype;return t.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},t.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},t.hasInitializedAnyEme=function(){return this.initializedEme_},t.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},t.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
vendor: 1,255 bytes, line 1
1,t.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},t.addSourceBuffer=function(e,t){Fu({type:"mediaSource",sourceUpdater:this,action:uc(e,t),name:"addSourceBuffer"})},t.abort=function(e){Fu({type:e,sourceUpdater:this,action:lc(e),name:"abort"})},t.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Fu({type:"mediaSource",sourceUpdater:this,action:cc(e),name:"removeSourceBuffer"}):q.log.error("removeSourceBuffer is not supported!")},t.canRemoveSourceBuffer=function(){return!q.browser.IE_VERSION&&!q.browser.IS_FIREFOX&&window.MediaSource&&window.MediaSource.prototype&&"function"==typeof window.MediaSource.prototype.removeSourceBuffer},e.canChangeType=function(){return window.SourceBuffer&&window.SourceBuffer.prototype&&"function"==typeof window.SourceBuffer.prototype.changeType},t.canChangeType=function(){return this.constructor.canChangeType()},t.changeType=function(e,t){this.canChangeType()?Fu({type:e,sourceUpdater:this,action:dc(t),name:"changeType"}):q.log.error("changeType is not supported!")},t.addOrChangeSourceBuffers=function(i){var n=this;if(!i||"object"!=typeof i||0===Object.keys(i).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");
1Object.keys(i).forEach(function(e){var t=i[e];if(!n.hasCreatedSourceBuffers())return n.addSourceBuffer(e,t);n.canChangeType()&&n.changeType(e,t)})},t.appendBuffer=function(e,t){var i=this,n=e.segmentInfo,r=e.type,s=e.bytes;this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_?(this.delayedAudioAppendQueue_.push([e,t]),this.logger_("delayed audio append of "+s.length+" until video append")):(Fu({type:r,sourceUpdater:this,action:ic(s,n||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===r&&(this.videoAppendQueued_=!0,this.delayedAudioAppendQueue_.length)&&(e=this.delayedAudioAppendQueue_.slice(),this.logger_("queuing delayed audio "+e.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,e.forEach(function(e){i.appendBuffer.apply(i,e)})))},t.audioBuffered=function(){return Bu(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered||q.createTimeRange()},t.videoBuffered=function(){return Bu(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered||q.createTimeRange()},t.buffered=function(){var e=Bu(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=Bu(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;if(t&&!e)return this.audioBuffered();if(e&&!t)return this.videoBuffered();var i=this.audioBuffered(),n=this.videoBuffered(),r=null,s=null,o=0,a=[],l=[];if(!(i&&i.length&&n&&n.length))return q.createTimeRange();for(var u=i.length;u--;)a.push({time:i.start(u),type:"start"}),a.push({time:i.end(u),type:"end"});for(u=n.length;u--;)a.push({time:n.start(u),type:"start"}),a.push({time:n.end(u),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),u=0;u<a.length;u++)"start"===a[u].type?2===++o&&(r=a[u].time):"end"===a[u].type&&1===--o&&(s=a[u].time),null!==r&&null!==s&&(l.push([r,s]),s=r=null);return q.createTimeRanges(l)},t.setDuration=function(e,t){void 0===t&&(t=Ru),Fu({type:"mediaSource",sourceUpdater:this,action:ac(e),name:"duration",doneFn:t})},t.endOfStream=function(e,t){void 0===t&&(t=Ru),Fu({type:"mediaSource",sourceUpdater:this,action:oc(e="string"!=typeof(e=void 0===e?null:e)?void 0:e),name:"endOfStream",doneFn:t})},t.removeAudio=function(e,t,i){void 0===i&&(i=Ru),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Fu({type:"audio",sourceUpdater:this,action:nc(e,t),doneFn:i,name:"remove"}):i()},t.removeVideo=function(e,t,i){void 0===i&&(i=Ru),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Fu({type:"video",sourceUpdater:this,action:nc(e,t),doneFn:i,name:"remove"}):i()},t.updating=function(){return!(!Zu("audio",this)&&!Zu("video",this))},t.audioTimestampOffset=function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Fu({type:"audio",sourceUpdater:this,action:rc(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},t.videoTimestampOffset=function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Fu({type:"video",sourceUpdater:this,action:rc(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},t.audioQueueCallback=function(e){this.audioBuffer&&Fu({type:"audio",sourceUpdater:this,action:sc(e),name:"callback"})},t.videoQueueCallback=function(e){this.videoBuffer&&Fu({type:"video",sourceUpdater:this,action:sc(e),name:"callback"})},t.dispose=function(){var t=this;this.trigger("dispose"),Ju.forEach(function(e){t.abort(e),t.canRemoveSourceBuffer()?t.removeSourceBuffer(e):t[e+"QueueCallback"](function(){return ju(e,t)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},e}(q.EventTarget),pc=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),fc=function(i){function e(e,t){return(t=i.call(this,e,t=void 0===t?{}:t)||this).mediaSource_=null,t.subtitlesTrack_=null,t.loaderType_="subtitle",t.featuresNativeTextTracks_=e.featuresNativeTextTracks,t.shouldSaveSegmentTimingInfo_=!1,t}b(e,i);var t=e.prototype;return t.createTransmuxer_=function(){return null},t.buffered_=function(){var e,t;return this.subtitlesTrack_&&this.subtitlesTrack_.cues&&this.subtitlesTrack_.cues.length?(e=(t=this.subtitlesTrack_.cues)[0].startTime,t=t[t.length-1].startTime,q.createTimeRanges([[e,t]])):q.createTimeRanges()},t.initSegmentForMap=function(e,t){var i,n;return void 0===t&&(t=!1),e?(i=Ca(e),n=this.initSegments_[i],t&&!n&&e.bytes&&(t=pc.byteLength+e.bytes.byteLength,(t=new Uint8Array(t)).set(e.bytes),t.set(pc,e.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:t}),n||e):null},t.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},t.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},t.track=function(e){return void 0!==e&&(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_())&&this.init_(),this.subtitlesTrack_},t.remove=function(e,t){Ja(e,t,this.subtitlesTrack_)},t.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();t&&(null===this.syncController_.timestampOffsetForTimeline(t.timeline)?(this.syncController_.one("timestampoffset",function(){e.state="READY",e.paused()||e.monitorBuffer_()}),this.state="WAITING_ON_TIMELINE"):this.loadSegment_(t))},t.timestampOffsetForSegment_=function(){return null},t.chooseNextRequest_=function(){return this.skipEmptySegments_(i.prototype.chooseNextRequest_.call(this))},t.skipEmptySegments_=function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},t.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},t.segmentRequestFinished_=function(e,t,i){var n=this;if(this.subtitlesTrack_)if(this.saveTransferStats_(t.stats),this.pendingSegment_)if(e)e.code===_u.TIMEOUT&&this.handleTimeout_(),e.code===_u.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);else{var r,s,o=this.pendingSegment_,a=(this.saveBandwidthRelatedStats_(o.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending"),o.segment);if(a.map&&(a.map.bytes=t.map.bytes),o.bytes=t.bytes,"function"!=typeof window.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_)r=function(){n.subtitlesTrack_.tech_.off("vttjsloaded",s),n.stopForError({message:"Error loading vtt.js"})},s=function(){n.subtitlesTrack_.tech_.off("vttjserror",r),n.segmentRequestFinished_(e,t,i)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",s),this.subtitlesTrack_.tech_.one("vttjserror",r);else{a.requested=!0;try{this.parseVTTCues_(o)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(o,this.syncController_.timelines[o.timeline],this.playlist_),o.cues.length?o.timingInfo={start:o.cues[0].startTime,end:o.cues[o.cues.length-1].endTime}:o.timingInfo={start:o.startOfSegment,end:o.startOfSegment+o.duration},o.isSyncRequest)this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";else{o.byteLength=o.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,o.cues.forEac
1h(function(e){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new window.VTTCue(e.startTime,e.endTime,e.text):e)});var l=this.subtitlesTrack_,u=l.cues;if(u)for(var c=0;c<u.length;c++){for(var d=[],h=0,p=0;p<u.length;p++)u[c].startTime===u[p].startTime&&u[c].endTime===u[p].endTime&&u[c].text===u[p].text&&1<++h&&d.push(u[p]);d.length&&d.forEach(function(e){return l.removeCue(e)})}this.handleAppendsDone_()}}}else this.state="READY",this.mediaRequestsAborted+=1;else this.state="READY"},t.handleData_=function(){},t.updateTimingInfoEnd_=function(){},t.parseVTTCues_=function(t){var e=!1,i=("function"==typeof window.TextDecoder?i=new window.TextDecoder("utf8"):(i=window.WebVTT.StringDecoder(),e=!0),new window.WebVTT.Parser(window,window.vttjs,i)),n=(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=t.cues.push.bind(t.cues),i.ontimestampmap=function(e){t.timestampmap=e},i.onparsingerror=function(e){q.log.warn("Error encountered when parsing cues: "+e.message)},t.segment.map&&(n=t.segment.map.bytes,e&&(n=qu(n)),i.parse(n)),t.bytes);e&&(n=qu(n)),i.parse(n),i.flush()},t.updateTimeMapping_=function(e,t,i){var n,r,s=e.segment;t&&(e.cues.length?(r=e.timestampmap,n=r.MPEGTS/Ml-r.LOCAL+t.mapping,e.cues.forEach(function(e){e.startTime+=n,e.endTime+=n}),i.syncInfo||(r=e.cues[0].startTime,t=e.cues[e.cues.length-1].startTime,i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(r,t-s.duration)})):s.empty=!0)},e}(Mu),mc=[{name:"VOD",run:function(e,t,i,n,r){return i!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"ProgramDateTime",run:function(e,t,i,n,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var s=null,o=null,a=ia(t);r=r||0;for(var l=0;l<a.length;l++){var u=a[t.endList||0===r?l:a.length-(l+1)],c=u.segment,d=e.timelineToDatetimeMappings[c.timeline];if(d&&c.dateTimeObject){var h=c.dateTimeObject.getTime()/1e3+d;if(c.parts&&"number"==typeof u.partIndex)for(var p=0;p<u.partIndex;p++)h+=c.parts[p].duration;d=Math.abs(r-h);if(null!==o&&(0===d||o<d))break;o=d,s={time:h,segmentIndex:u.segmentIndex,partIndex:u.partIndex}}}return s}},{name:"Segment",run:function(e,t,i,n,r){for(var s=null,o=null,a=(r=r||0,ia(t)),l=0;l<a.length;l++){var u=a[t.endList||0===r?l:a.length-(l+1)],c=u.segment,d=u.part&&u.part.start||c&&c.start;if(c.timeline===n&&void 0!==d){c=Math.abs(r-d);if(null!==o&&o<c)break;(!s||null===o||c<=o)&&(o=c,s={time:d,segmentIndex:u.segmentIndex,partIndex:u.partIndex})}}return s}},{name:"Discontinuity",run:function(e,t,i,n,r){var s=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var o=null,a=0;a<t.discontinuityStarts.length;a++){var l=t.discontinuityStarts[a],u=t.discontinuitySequence+a+1,u=e.discontinuities[u];if(u){var c=Math.abs(r-u.time);if(null!==o&&o<c)break;(!s||null===o||c<=o)&&(o=c,s={time:u.time,segmentIndex:l,partIndex:null})}}return s}},{name:"Playlist",run:function(e,t,i,n,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],gc=function(i){function e(e){var t=i.call(this)||this;return t.timelines=[],t.discontinuities=[],t.timelineToDatetimeMappings={},t.logger_=Ul("SyncController"),t}b(e,i);var t=e.prototype;return t.getSyncPoint=function(e,t,i,n){e=this.runStrategies_(e,t,i,n);return e.length?this.selectSyncPoint_(e,{key:"time",value:n}):null},t.getExpiredTime=function(e,t){return e&&e.segments&&(t=this.runStrategies_(e,t,e.discontinuitySequence,0)).length?(0<(t=this.selectSyncPoint_(t,{key:"segmentIndex",value:0})).segmentIndex&&(t.time*=-1),Math.abs(t.time+sa({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.segmentIndex,endIndex:0}))):null},t.runStrategies_=function(e,t,i,n){for(var r=[],s=0;s<mc.length;s++){var o=mc[s],a=o.run(this,e,t,i,n);a&&(a.strategy=o.name,r.push({strategy:o.name,syncPoint:a}))}return r},t.selectSyncPoint_=function(e,t){for(var i=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,s=1;s<e.length;s++){var o=Math.abs(e[s].syncPoint[t.key]-t.value);o<n&&(n=o,i=e[s].syncPoint,r=e[s].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+i.time+", segmentIndex:"+i.segmentIndex+("number"==typeof i.partIndex?",partIndex:"+i.partIndex:"")+"]"),i},t.saveExpiredSegmentInfo=function(e,t){var i=t.mediaSequence-e.mediaSequence;if(86400<i)q.log.warn("Not saving expired segment info. Media sequence gap "+i+" is too large.");else for(var n=i-1;0<=n;n--){var r=e.segments[n];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start}
1,this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},t.setDateTimeMappingForStart=function(e){var t;this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject&&(t=(e=e.segments[0]).dateTimeObject.getTime()/1e3,this.timelineToDatetimeMappings[e.timeline]=-t)},t.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,e=e.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(t,t.timingInfo,e),n=t.segment,i=(i&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:n.start})),n.dateTimeObject);n.discontinuity&&e&&i&&(this.timelineToDatetimeMappings[n.timeline]=-i.getTime()/1e3)},t.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},t.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},t.calculateSegmentTimeMapping_=function(e,t,i){var n,r=e.segment,s=e.part,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+o.time+"] [mapping: "+o.mapping+"]")),n=e.startOfSegment;else{if(!o)return!1;n=t.start+o.mapping}return i=t.end+o.mapping,s&&(s.start=n,s.end=i),(!r.start||n<r.start)&&(r.start=n),r.end=i,!0},t.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var n=0;n<t.discontinuityStarts.length;n++){var r,s=t.discontinuityStarts[n],o=t.discontinuitySequence+n+1,a=s-e.mediaIndex,l=Math.abs(a);(!this.discontinuities[o]||this.discontinuities[o].accuracy>l)&&(r=void 0,r=a<0?i.start-sa({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:s}):i.end+sa({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:s}),this.discontinuities[o]={time:r,accuracy:l})}},t.dispose=function(){this.trigger("dispose"),this.off()},e}(q.EventTarget),yc=function(t){function e(){var e=t.call(this)||this;return e.pendingTimelineChanges_={},e.lastTimelineChanges_={},e}b(e,t);var i=e.prototype;return i.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},i.pendingTimelineChange=function(e){var t=e.type,i=e.from,e=e.to;return"number"==typeof i&&"number"==typeof e&&(this.pendingTimelineChanges_[t]={type:t,from:i,to:e},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},i.lastTimelineChange=function(e){var t=e.type,i=e.from,e=e.to;return"number"==typeof i&&"number"==typeof e&&(this.lastTimelineChanges_[t]={type:t,from:i,to:e},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},i.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},e}(q.EventTarget),vc=Ra(Ua(ja(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,i){return e(i={path:t,exports:{},require:function(e,t){throw null==t&&i.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},i.exports),i.exports}var i=t(function(e){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e},e.exports.default=e.exports,e.exports.__esModule=!0}),n=t(function(i){function n(e,t){return i.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i.exports.default=i.exports,i.exports.__esModule=!0,n(e,t)}i.exports=n,i.exports.default=i.exports,i.exports.__esModule=!0}),r=t(function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0}),s=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){return!!this.listeners[e]&&(t=this.listeners[e].indexOf(t),this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(t,1),-1<t)},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1]);
1else for(var r=Array.prototype.slice.call(arguments,1),s=t.length,o=0;o<s;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(t){this.on("data",function(e){t.push(e)})},e}();function m(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}function o(n){var r={};return Object.keys(n).forEach(function(e){var t,i=n[e];t=i,("function"===ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer)?r[e]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:r[e]=i}),r}var c=null,g=function(){function e(e){c=c||function(){for(var e,t,i,n,r,s,o,a=[[[],[],[],[],[]],[[],[],[],[],[]]],l=a[0],u=a[1],c=l[4],d=u[4],h=[],p=[],f=0;f<256;f++)p[(h[f]=f<<1^283*(f>>7))^f]=f;for(e=t=0;!c[e];e^=i||1,t=p[t]||1)for(o=16843009*h[n=h[i=h[d[c[e]=r=(r=t^t<<1^t<<2^t<<3^t<<4)>>8^255&r^99]=e]]]^65537*n^257*i^16843008*e,s=257*h[r]^16843008*r,f=0;f<4;f++)l[f][e]=s=s<<24^s>>>8,u[f][r]=o=o<<24^o>>>8;for(f=0;f<5;f++)l[f]=l[f].slice(0),u[f]=u[f].slice(0);return a}(),this._tables=[[c[0][0].slice(),c[0][1].slice(),c[0][2].slice(),c[0][3].slice(),c[0][4].slice()],[c[1][0].slice(),c[1][1].slice(),c[1][2].slice(),c[1][3].slice(),c[1][4].slice()]];var t,i,n,r=this._tables[0][4],s=this._tables[1],o=e.length,a=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var l=e.slice(0),u=[];for(this._key=[l,u],t=o;t<4*o+28;t++)n=l[t-1],(t%o==0||8===o&&t%o==4)&&(n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[255&n],t%o==0)&&(n=n<<8^n>>>24^a<<24,a=a<<1^283*(a>>7)),l[t]=l[t-o]^n;for(i=0;t;i++,t--)n=l[3&i?t:t-4],u[i]=t<=4||i<4?n:s[0][r[n>>>24]]^s[1][r[n>>16&255]]^s[2][r[n>>8&255]]^s[3][r[255&n]]}return e.prototype.decrypt=function(e,t,i,n,r,s){for(var o,a,l,u=this._key[1],c=e^u[0],d=n^u[1],h=i^u[2],p=t^u[3],f=u.length/4-2,m=4,e=this._tables[1],g=e[0],y=e[1],v=e[2],_=e[3],b=e[4],T=0;T<f;T++)o=g[c>>>24]^y[d>>16&255]^v[h>>8&255]^_[255&p]^u[m],a=g[d>>>24]^y[h>>16&255]^v[p>>8&255]^_[255&c]^u[m+1],l=g[h>>>24]^y[p>>16&255]^v[c>>8&255]^_[255&d]^u[m+2],p=g[p>>>24]^y[c>>16&255]^v[d>>8&255]^_[255&h]^u[m+3],m+=4,c=o,d=a,h=l;for(T=0;T<4;T++)r[(3&-T)+s]=b[c>>>24]<<24^b[d>>16&255]<<16^b[h>>8&255]<<8^b[255&p]^u[m++],o=c,c=d,d=h,h=p,p=o},e}(),u=function(t){function e(){var e=t.call(this,s)||this;return e.jobs=[],e.delay=1,e.timeout_=null,e}r(e,t);var i=e.prototype;return i.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},i.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},e}(s),a=function(){function l(e,t,i,n){var r=l.STEP,s=new Int32Array(e.buffer),o=new Uint8Array(e.byteLength),a=0;for(this.asyncStream_=new u,this.asyncStream_.push(this.decryptChunk_(s.subarray(a,a+r),t,i,o)),a=r;a<s.length;a+=r)i=new Uint32Array([m(s[a-4]),m(s[a-3]),m(s[a-2]),m(s[a-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(a,a+r),t,i,o));this.asyncStream_.push(function(){n(null,o.subarray(0,o.byteLength-o[o.byteLength-1]))})}return l.prototype.decryptChunk_=function(t,i,n,r){return function(){var e=function(e,t,i){for(var n,r,s,o,a=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),l=new g(Array.prototype.slice.call(t)),t=new Uint8Array(e.byteLength),u=new Int32Array(t.buffer),c=i[0],d=i[1],h=i[2],p=i[3],f=0;f<a.length;f+=4)n=m(a[f]),r=m(a[f+1]),s=m(a[f+2]),o=m(a[f+3]),l.decrypt(n,r,s,o,u,f),u[f]=m(u[f]^c),u[f+1]=m(u[f+1]^d),u[f+2]=m(u[f+2]^h),u[f+3]=m(u[f+3]^p),c=n,d=r,h=s,p=o;return t}(t,i,n);r.set(e,t.byteOffset)}},i(l,null,[{key:"STEP",get:function(){return 32e3}}]),l}(),e="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},e=e.BigInt||Number;e("0x1"),e("0x100"),e("0x10000"),e("0x1000000"),e("0x100000000"),e("0x10000000000"),e("0x1000000000000"),e("0x100000000000000"),e("0x10000000000000000");self.onmessage=function(e){var i=e.data,e=new Uint8Array(i.encrypted.bytes,i.encrypted.byteOffset,i.encrypted.byteLength),t=new Uint32Array(i.key.bytes,i.key.byteOffset,i.key.byteLength/4),n=new Uint32Array(i.iv.bytes,i.iv.byteOffset,i.iv.byteLength/4);new a(e,t,n,function(e,t){self.postMessage(o({source:i.source,decrypted:t}),[t.buffer])})}}))),_c=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},bc=function(e,t){(t.activePlaylistLoader=e).load()},Tc={AUDIO:function(o,a){return function(){var e=a.segmentLoaders[o],t=a.mediaTypes[o],i=a.blacklistCurrentPlaylist,e=(_c(e,t),t.activeTrack()),n=t.activeGroup(),n=(n.filter(function(e){return e.default})[0]||n[0]).id,r=t.tracks[n];if(e===r)i({message:"Problem encountered loading the default audio track."});else{for(var s in q.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),t.tracks)t.tracks[s].enabled=t.tracks[s]===r;t.onTrackChanged()}}},SUBTITLES:function(i,n){return function(){var e=n.segmentLoaders[i],t=n.mediaTypes[i],e=(q.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),_c(e,t),t.activeTrack());e&&(e.mode="disabled"),t.onTrackChanged()}}},wc={AUDIO:function(e,t,i){var n,r,s;t&&(n=i.tech,r=i.requestOptions,s=i.segmentLoaders[e],t.on("loadedmetadata",function(){var e=t.media();s.playlist(e,r),(!n.paused()||e.endList&&"none"!==n.preload())&&s.load()}),t.on("loadedplaylist",function(){s.playlist(t.media(),r),n.paused()||s.load()}),t.on("error",Tc[e](e,i)))},SUBTITLES:function(e,t,i){var n=i.tech,r=i.requestOptions,s=i.segmentLoaders[e],o=i.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();s.playlist(e,r),s.track(o.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&s.load()}),t.on("loadedplaylist",function(){s.playlist(t.media(),r),n.paused()||s.load()}),t.on("error",Tc[e](e,i))}},Sc={AUDIO:function(e,t){var i,n=t.vhs,r=t.sourceType,s=t.segmentLoaders[e],o=t.requestOptions,a=t.master.mediaGroups,l=t.mediaTypes[e],u=l.groups,c=l.tracks,d=l.logger_,h=t.masterPlaylistLoader,p=Gl(h.master);for(i in a[e]&&0!==Object.keys(a[e]).length||(a[e]={main:{default:{default:!0}}},p&&(a[e].main.default.playlists=h.master.playlists)),a[e])for(var f in u[i]||(u[i]=[]),a[e][i]){var m,g=a[e][i][f],y=void 0,y=p?(d("AUDIO group '"+i+"' label '"+f+"' is a master playlist"),g.isMasterPlaylist=!0,null):"vhs-json"===r&&g.playlists?new iu(g.playlists[0],n,o):g.resolvedUri?new iu(g.resolvedUri,n,o):g.playlists&&"dash"===r?new uu(g.playlists[0],n,o,h):null,g=q.mergeOptions({id:f,playlistLoader:y},g);wc[e](e,g.playlistLoader,t),u[i].push(g),void 0===c[f]&&(m=new q.AudioTrack({id:f,kind:(y=void 0,y=(m=g).default?"main":"alternative",y=m.characteristics&&0<=m.characteristics.indexOf("public.accessibility.describes-video")?"main-desc":y),enabled:!1,language:g.language,default:g.default,label:f}),c[f]=m)}s.on("error",Tc[e](e,t))},SUBTITLES:function(e,t){var i,n=t.tech,r=t.vhs,s=t.sourceType,o=t.segmentLoaders[e],a=t.requestOptions,l=t.master.mediaGroups,u=t.mediaTypes[e],c=u.groups,d=u.tracks,h=t.masterPlaylistLoader;for(i in l[e])for(var p in c[i]||(c[i]=[]),l[e][i])if(!l[e][i][p].forced){var f=l[e][i][p],m=void 0;if("hls"===s)m=new iu(f.resolvedUri,r,a);else if("dash"===s){if(!f.playlists.filter(function(e){return e.excludeUntil!==1/0}).length)return;m=new uu(f.playlists[0],r,a,h)}else"vhs-json"===s&&(m=new iu(f.playlists?f.playlists[0]:f.resolvedUri,r,a));f=q.mergeOptions({id:p,playlistLoader:m},f),wc[e](e,f.playlistLoader,t),c[i].push(f),void 0===d[p]&&(m=n.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track,d[p]=m)}o.on("error",Tc[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var i,n=t.tech,r=t.master.mediaGroups,t=t.mediaTypes[e],s=t.groups,o=t.tracks;for(i in r[e])for(var a in s[i]||(s[i]=[]),r[e][i]){var l,u,c=r[e][i][a];/^(?:CC|SERVICE)/.test(c.instreamId)&&(void 0===(l=(u=n.options_.vhs&&n.options_.vhs.captionServices||{})[(l={label:a,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect}).instreamId]?q.mergeOptions(l,u[l.instreamId]):l).default&&delete l.default,s[i].push(q.mergeOptions({id:a}
1,c)),void 0===o[a])&&(u=n.addRemoteTextTrack({id:l.instreamId,kind:"captions",default:l.default,language:l.language,label:l.label},!1).track,o[a]=u)}}},kc=function e(t,i){for(var n=0;n<t.length;n++){if(ha(i,t[n]))return!0;if(t[n].playlists&&e(t[n].playlists,i))return!0}return!1},Cc={AUDIO:function(i,n){return function(){var e,t=n.mediaTypes[i].tracks;for(e in t)if(t[e].enabled)return t[e];return null}},SUBTITLES:function(i,n){return function(){var e,t=n.mediaTypes[i].tracks;for(e in t)if("showing"===t[e].mode||"hidden"===t[e].mode)return t[e];return null}}},Ec=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],xc=function(v){function e(e){var t,i,n=v.call(this)||this,r=e.src,s=e.handleManifestRedirects,o=e.withCredentials,a=e.tech,l=e.bandwidth,u=e.externVhs,c=e.useCueTags,d=e.blacklistDuration,h=e.enableLowInitialPlaylist,p=e.sourceType,f=e.cacheEncryptionKeys,m=e.experimentalBufferBasedABR,g=e.experimentalLeastPixelDiffSelector,y=e.captionServices;if(r)return null==(t=e.maxPlaylistRetries)&&(t=1/0),Yu=u,n.experimentalBufferBasedABR=Boolean(m),n.experimentalLeastPixelDiffSelector=Boolean(g),n.withCredentials=o,n.tech_=a,n.vhs_=a.vhs,n.sourceType_=p,n.useCueTags_=c,n.blacklistDuration=d,n.maxPlaylistRetries=t,n.enableLowInitialPlaylist=h,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:o,handleManifestRedirects:s,maxPlaylistRetries:t,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=(i={},["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){i[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Ru,activeTrack:Ru,getActiveGroup:Ru,onGroupChanged:Ru,onTrackChanged:Ru,lastTrack_:null,logger_:Ul("MediaGroups["+e+"]")}}),i),n.mediaSource=new window.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(_(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(_(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(_(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=q.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new gc(e),n.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new vc,n.sourceUpdater_=new hc(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new yc,u={vhs:n.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:y,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:l,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:f,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:e.experimentalExactManifestTimings},n.masterPlaylistLoader_=new("dash"===n.sourceType_?uu:iu)(r,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Mu(q.mergeOptions(u,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),e),n.audioSegmentLoader_=new Mu(q.mergeOptions(u,{loaderType:"audio"}),e),n.subtitleSegmentLoader_=new fc(q.mergeOptions(u,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),e),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",function(){return n.startABRTimer_()}),n.tech_.on("pause",function(){return n.stopABRTimer_()}),n.tech_.on("play",function(){return n.startABRTimer_()})),Ec.forEach(function(e){n[e+"_"]=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]}.bind(_(n),e)}),n.logger_=Ul("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1,m="none"===n.tech_.preload()?"play":"loadstart",n.tech_.one(m,function(){var e=Date.now();n.tech_.one("loadeddata",function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends})}),n;throw new Error("A non-empty playlist URL or JSON manifest string is required")}b(e,v);var t=e.prototype;return t.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},t.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},t.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},t.timeToLoadedData_=function(){return this.timeToLoadedData__},t.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},t.switchMedia_=function(e,t,i){var n=this.media(),n=n&&(n.id||n.uri),r=e.id||e.uri;n&&n!==r&&(this.logger_("switch media "+n+" -> "+r+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,i)},t.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=window.setInterval(function(){return e.checkABR_()},250)},t.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(window.clearInterval(this.abrTimer_),this.abrTimer_=null)},t.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var i,n=e.mediaGroups.AUDIO,r=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)i=this.mediaTypes_.AUDIO.activeTrack();else{var s,o=n.main||r.length&&n[r[0]];for(s in o)if(o[s].default){i={label:s};break}}if(!i)return t;var a,l=[];for(a in n)if(n[a][i.label]){var u=n[a][i.label];if(u.playlists&&u.playlists.length)l.push.apply(l,u.playlists);else if(u.uri)l.push(u);else if(e.playlists.length)for(var c=0;c<e.playlists.length;c++){var d=e.playlists[c];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===a&&l.push(d)}}return l.length?l:t},t.setupMasterPlaylistLoaderListeners_=function(){var i=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=i.masterPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;da(i.masterPlaylistLoader_.master,i.masterPlaylistLoader_.media())?i.requestOptions_.timeout=0:i.requestOptions_.timeout=t,e.endList&&"none"!==i.tech_.preload()&&(i.mainSegmentLoader_.playlist(e,i.requestOptions_),i.mainSegmentLoader_.load()),Vu({sourceType:i.sourceType_,segmentLoaders:{AUDIO:i.audioSegmentLoader_,SUBTITLES:i.subtitleSegmentLoader_,main:i.mainSegmentLoader_},tech:i.tech_,requestOptions:i.requestOptions_,masterPlaylistLoader:i.masterPlaylistLoader_,vhs:i.vhs_,master:i.master(),mediaTypes:i.mediaTypes_,blacklistCurrentPlaylist:i.blackl
1istCurrentPlaylist.bind(i)}),i.triggerPresenceUsage_(i.master(),e),i.setupFirstPlay(),!i.mediaTypes_.AUDIO.activePlaylistLoader||i.mediaTypes_.AUDIO.activePlaylistLoader.media()?i.trigger("selectedinitialmedia"):i.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){i.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){i.loadOnPlay_&&i.tech_.off("play",i.loadOnPlay_);var e,t=i.masterPlaylistLoader_.media();if(!t){if(i.excludeUnsupportedVariants_(),!(e=(e=i.enableLowInitialPlaylist?i.selectInitialPlaylist():e)||i.selectPlaylist())||!i.shouldSwitchToMedia_(e))return;if(i.initialMedia_=e,i.switchMedia_(i.initialMedia_,"initial"),!("vhs-json"===i.sourceType_&&i.initialMedia_.segments))return;t=i.initialMedia_}i.handleUpdatedMediaPlaylist(t)}),this.masterPlaylistLoader_.on("error",function(){i.blacklistCurrentPlaylist(i.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){i.mainSegmentLoader_.abort(),i.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var e=i.masterPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;da(i.masterPlaylistLoader_.master,i.masterPlaylistLoader_.media())?i.requestOptions_.timeout=0:i.requestOptions_.timeout=t,i.mainSegmentLoader_.playlist(e,i.requestOptions_),i.mainSegmentLoader_.load(),i.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=i.masterPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&i.stuckAtPlaylistEnd_(e)&&(i.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),i.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){i.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),i.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){i.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),i.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},t.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},t.triggerPresenceUsage_=function(e,t){var i,n=e.mediaGroups||{},r=!0,e=Object.keys(n.AUDIO);for(i in n.AUDIO)for(var s in n.AUDIO[i])n.AUDIO[i][s].uri||(r=!1);r&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),Yu.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),e.length&&1<Object.keys(n.AUDIO[e[0]]).length&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},t.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),n=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),s=this.tech_.buffered(),i=(s={buffered:s,currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:n,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_}).currentPlaylist,t=s.buffered,e=s.currentTime,n=s.nextPlaylist,r=s.bufferLowWaterLine,o=s.bufferHighWaterLine,a=s.duration,l=s.experimentalBufferBasedABR,s=s.log;if(n){var u="allowing switch "+(i&&i.id||"null")+" -> "+n.id;if(!i)return s(u+" as current playlist is not set"),!0;if(n.id!==i.id){var c=Boolean(Ko(t,e).length);if(!i.endList)return c||"number"!=typeof i.partTargetDuration?(s(u+" as current playlist is live"),!0):(s("not "+u+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);c=ea(t,e),t=l?D.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:D.MAX_BUFFER_LOW_WATER_LINE;if(a<t)return s(u+" as duration < max low water line ("+a+" < "+t+")"),!0;e=n.attributes.BANDWIDTH,a=i.attributes.BANDWIDTH;if(e<a&&(!l||c<o))return t=u+" as next bandwidth < current bandwidth ("+e+" < "+a+")",l&&(t+=" and forwardBuffer < bufferHighWaterLine ("+c+" < "+o+")"),s(t),!0;if((!l||a<e)&&r<=c)return n=u+" as forwardBuffer >= bufferLowWaterLine ("+c+" >= "+r+")",l&&(n+=" and next bandwidth > current bandwidth ("+e+" > "+a+")"),s(n),!0;s("not "+u+" as no switching criteria met")}}else q.log.warn("We received no playlist to switch to. Please check your stream.");return!1},t.setupSegmentLoaderListeners_=function(){function e(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var e=t.getCodecsOrExclude_();e&&t.sourceUpdater_.addOrChangeSourceBuffers(e)}var t=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=t.selectPlaylist();t.shouldSwitchToMedia_(e)&&t.switchMedia_(e,"bandwidthupdate"),t.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")})),this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){t.logger_("main segment loader ended"),t.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(e){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))});this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){t.logger_("audioSegmentLoader ended"),t.onEndOfStream()})},t.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},t.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},t.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},t.fastQualityChange_=function(e){var t=this;(e=void 0===e?this.selectPlaylist():e)===this.masterPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){q.browser.IE_VERSION||q.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())}))},t.play=function(){var e;if(!this.setupFirstPlay())return this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load(),e=this.tech_.seekable(),this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0},t.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var i=this.seekable();if(!i.length)return!1;if(q.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(i.end(0)),e.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(i.end(0))}return this.hasPlayed_=!0,this.load(),!0},t.handleSourceOpen_=function(){var e;this.tryToCreateSourceBuffers_(),this.tech_.autoplay()&&void 0!==(e=this.tech_.play())&&"function"==typeof e.then&&e.then(null,function(e){}),this.trigger("sourceopen")},t.handleSourceEnded_=function(){var e,t;this.inbandTextTracks_.metadataTrack_&&(e=this.inbandTextTracks_.metadataTrack_.cues)&&e.length&&(t=this.duration(),e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t)},t.handleDurationChange_=function(){this.tech_.trigger("durationchange")},t.onEndOfStream=function(){var e,t=this.mainSegmentLoader_.ended_;(t=this.mediaTypes_.AUDIO.activePlaylistLoader?((e=this.mainSegmentLoader_.getCurrentMediaInfo_())&&!e.hasVideo||t)&&this.audioSegmentLoader_.ended_:t)&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},t.stuckAtPlaylistEnd_=function(e){var t,i;return!!this.seekable().length&&null!==(t=this.syncController_.getExpiredTime(e,this.duration()))&&(e=Yu.Playlist.playlistEnd(e,t),t=this.tech_.currentTime(),(i=this.tech_.buffered()).length?(i=i.end(i.length-1))-t<=Bl&&e-i<=Bl:e-t<=Bl)},t.blacklistCurrentPlaylist=function(e,t){var i=(e=void 0===e?{}:e).playlist||this.masterPlaylistLoader_.media();
1if(t=t||e.blacklistDuration||this.blacklistDuration,i){i.playlistErrors_++;var n,r=this.masterPlaylistLoader_.master.playlists,s=r.filter(ua),s=1===s.length&&s[0]===i;if(1===r.length&&t!==1/0)return q.log.warn("Problem encountered with playlist "+i.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(s);s&&(n=!1,r.forEach(function(e){var t;e!==i&&void 0!==(t=e.excludeUntil)&&t!==1/0&&(n=!0,delete e.excludeUntil)}),n)&&(q.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist")),r=i.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,i.excludeUntil=r,e.reason&&(i.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var o,t=this.selectPlaylist();if(t)return r=e.internal?this.logger_:q.log.warn,o=e.message?" "+e.message:"",r((e.internal?"Internal problem":"Problem")+" encountered with playlist "+i.id+"."+o+" Switching to playlist "+t.id+"."),t.attributes.AUDIO!==i.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),t.attributes.SUBTITLES!==i.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]),r=t.targetDuration/2*1e3||5e3,o="number"==typeof t.lastRequest&&Date.now()-t.lastRequest<=r,this.switchMedia_(t,"exclude",s||o);this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error")}else this.error=e,"open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network")},t.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},t.delegateLoaders_=function(i,e){var n=this,r=[],t="all"===i,s=(!t&&"main"!==i||r.push(this.masterPlaylistLoader_),[]);!t&&"audio"!==i||s.push("AUDIO"),!t&&"subtitle"!==i||(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach(function(e){e=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;e&&r.push(e)}),["main","audio","subtitle"].forEach(function(e){var t=n[e+"SegmentLoader_"];!t||i!==e&&"all"!==i||r.push(t)}),r.forEach(function(t){return e.forEach(function(e){"function"==typeof t[e]&&t[e]()})})},t.setCurrentTime=function(e){var t=Ko(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},t.duration=function(){var e;return this.masterPlaylistLoader_&&(e=this.masterPlaylistLoader_.media())?e.endList?this.mediaSource?this.mediaSource.duration:Yu.Playlist.duration(e):1/0:0},t.seekable=function(){return this.seekable_},t.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var i=this.syncController_.getExpiredTime(t,this.duration());if(null!==i){var n,r,s=this.masterPlaylistLoader_.master,o=Yu.Playlist.seekable(t,i,Yu.Playlist.liveEdgeDelay(s,t));if(0!==o.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(i=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=Yu.Playlist.seekable(t,i,Yu.Playlist.liveEdgeDelay(s,t))).length)return}this.seekable_&&this.seekable_.length&&(n=this.seekable_.end(0),r=this.seekable_.start(0)),!e||e.start(0)>o.end(0)||o.start(0)>e.end(0)?this.seekable_=o:this.seekable_=q.createTimeRanges([[(e.start(0)>o.start(0)?e:o).start(0),(e.end(0)<o.end(0)?e:o).end(0)]]),this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===n&&this.seekable_.start(0)===r||(this.logger_("seekable updated ["+Qo(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},t.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)this.updateDuration_=this.updateDuration.bind(this,e),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);else{if(e)return(e=this.seekable()).length?void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1))):void 0;var e=this.tech_.buffered(),t=Yu.Playlist.duration(this.masterPlaylistLoader_.media());0<e.length&&(t=Math.max(t,e.end(e.length-1))),this.mediaSource.duration!==t&&this.sourceUpdater_.setDuration(t)}},t.dispose=function(){var n=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(e){var t,i=n.mediaTypes_[e].groups;for(t in i)i[t].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},t.master=function(){return this.masterPlaylistLoader_.master},t.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},t.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),e=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return t&&e},t.getCodecsOrExclude_=function(){var n=this,i={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},e=(i.video=i.main,Pu(this.master(),this.media())),r={},t=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(i.main.hasVideo&&(r.video=e.video||i.main.videoCodec||"avc1.4d400d"),i.main.isMuxed&&(r.video+=","+(e.audio||i.main.audioCodec||"mp4a.40.2")),(i.main.hasAudio&&!i.main.isMuxed||i.audio.hasAudio||t)&&(r.audio=e.audio||i.main.audioCodec||i.audio.audioCodec||"mp4a.40.2",i.audio.isFmp4=(i.main.hasAudio&&!i.main.isMuxed?i.main:i.audio).isFmp4),r.audio||r.video){var s,o,a={};if(["video","audio"].forEach(function(e){var t;r.hasOwnProperty(e)&&!(i[e].isFmp4?br:Tr)(r[e])&&(t=i[e].isFmp4?"browser":"muxer",a[t]=a[t]||[],a[t].push(r[e]),"audio"===e&&(s=t))}),t&&s&&this.media().attributes.AUDIO&&(o=this.media().attributes.AUDIO,this.master().playlists.forEac
1h(function(e){(e.attributes&&e.attributes.AUDIO)===o&&e!==n.media()&&(e.excludeUntil=1/0)}),this.logger_("excluding audio group "+o+" as "+s+' does not support codec(s): "'+r.audio+'"')),!Object.keys(a).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var l=[];if(["video","audio"].forEach(function(e){var t=(Mr(n.sourceUpdater_.codecs[e]||"")[0]||{}).type,i=(Mr(r[e]||"")[0]||{}).type;t&&i&&t.toLowerCase()!==i.toLowerCase()&&l.push('"'+n.sourceUpdater_.codecs[e]+'" -> "'+r[e]+'"')}),l.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+l.join(", ")+".",blacklistDuration:1/0,internal:!0})}return r}e=Object.keys(a).reduce(function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+a[t].join(",")+'"'},"")+".",this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:e,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},t.tryToCreateSourceBuffers_=function(){var e;"open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers()||this.areMediaTypesKnown_()&&(e=this.getCodecsOrExclude_())&&(this.sourceUpdater_.createSourceBuffers(e),e=[e.video,e.audio].filter(Boolean).join(","),this.excludeIncompatibleVariants_(e))},t.excludeUnsupportedVariants_=function(){var n=this,r=this.master().playlists,s=[];Object.keys(r).forEach(function(e){var t,i,e=r[e];-1===s.indexOf(e.id)&&(s.push(e.id),i=[],!(t=Pu(n.master,e)).audio||Tr(t.audio)||br(t.audio)||i.push("audio codec "+t.audio),!t.video||Tr(t.video)||br(t.video)||i.push("video codec "+t.video),t.text&&"stpp.ttml.im1t"===t.text&&i.push("text codec "+t.text),i.length)&&(e.excludeUntil=1/0,n.logger_("excluding "+e.id+" for unsupported: "+i.join(", ")))})},t.excludeIncompatibleVariants_=function(e){var r=this,s=[],o=this.master().playlists,e=Lu(Mr(e)),a=za(e),l=e.video&&Mr(e.video)[0]||null,u=e.audio&&Mr(e.audio)[0]||null;Object.keys(o).forEach(function(e){var t,i,n,e=o[e];-1===s.indexOf(e.id)&&e.excludeUntil!==1/0&&(s.push(e.id),t=[],n=Pu(r.masterPlaylistLoader_.master,e),i=za(n),n.audio||n.video)&&(i!==a&&t.push('codec count "'+i+'" !== "'+a+'"'),r.sourceUpdater_.canChangeType()||(i=n.video&&Mr(n.video)[0]||null,n=n.audio&&Mr(n.audio)[0]||null,i&&l&&i.type.toLowerCase()!==l.type.toLowerCase()&&t.push('video codec "'+i.type+'" !== "'+l.type+'"'),n&&u&&n.type.toLowerCase()!==u.type.toLowerCase()&&t.push('audio codec "'+n.type+'" !== "'+u.type+'"')),t.length)&&(e.excludeUntil=1/0,r.logger_("blacklisting "+e.id+": "+t.join(" && ")))})},t.updateAdCues_=function(e){var t=0,i=this.seekable(),n=(i.length&&(t=i.start(0)),e),r=this.cueTagsTrack_,i=t;if(void 0===i&&(i=0),n.segments)for(var s=i,o=0;o<n.segments.length;o++){var a,l,u,c=n.segments[o];if(u=u||function(e,t){for(var i=e.cues,n=0;n<i.length;n++){var r=i[n];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null}(r,s+c.duration/2)){if("cueIn"in c){u.endTime=s,u.adEndTime=s,s+=c.duration,u=null;continue}if(s<u.endTime){s+=c.duration;continue}u.endTime+=c.duration}else"cueOut"in c&&((u=new window.VTTCue(s,s+c.duration,c.cueOut)).adStartTime=s,u.adEndTime=s+parseFloat(c.cueOut),r.addCue(u)),"cueOutCont"in c&&(a=(l=c.cueOutCont.split("/").map(parseFloat))[0],l=l[1],(u=new window.VTTCue(s,s+c.duration,"")).adStartTime=s-a,u.adEndTime=u.adStartTime+l,r.addCue(u));s+=c.duration}},t.goalBufferLength=function(){var e=this.tech_.currentTime(),t=D.GOAL_BUFFER_LENGTH,i=D.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,D.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,n)},t.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=D.BUFFER_LOW_WATER_LINE,i=D.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,D.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,D.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.experimentalBufferBasedABR?r:n)},t.bufferHighWaterLine=function(){return D.BUFFER_HIGH_WATER_LINE},e}(q.EventTarget),Ac=function(r,s,o){return function(e){var t=r.master.playlists[s],i=la(t),n=ua(t);return void 0===e?n:(e?delete t.disabled:t.disabled=!0,e===n||i||(o(),e?r.trigger("renditionenabled"):r.trigger("renditiondisabled")),e)}},Ic=["seeking","seeked","pause","playing","error"],Lc=function(){function e(e){function t(){return o.monitorCurrentTime_()}function i(){return o.monitorCurrentTime_()}function n(){return o.techWaiting_()}function r(){return o.cancelTimer_()}function s(t){["main","audio"].forEach(function(e){a[e+"SegmentLoader_"][t]("appended",o.seekingAppendCheck_)})}var o=this,a=(this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Ul("PlaybackWatcher"),this.logger_("initialize"),this.masterPlaylistController_),l=["main","subtitle","audio"],u={};l.forEach(function(e){u[e]={reset:function(){return o.resetSegmentDownloads_(e)},updateend:function(){return o.checkSegmentDownloads_(e)}}
1,a[e+"SegmentLoader_"].on("appendsdone",u[e].updateend),a[e+"SegmentLoader_"].on("playlistupdate",u[e].reset),o.tech_.on(["seeked","seeking"],u[e].reset)});this.seekingAppendCheck_=function(){o.fixesBadSeeks_()&&(o.consecutiveUpdates=0,o.lastRecordedTime=o.tech_.currentTime(),s("off"))},this.clearSeekingAppendCheck_=function(){return s("off")},this.watchForBadSeeking_=function(){o.clearSeekingAppendCheck_(),s("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",n),this.tech_.on(Ic,r),this.tech_.on("canplay",i),this.tech_.one("play",t),this.dispose=function(){o.clearSeekingAppendCheck_(),o.logger_("dispose"),o.tech_.off("waiting",n),o.tech_.off(Ic,r),o.tech_.off("canplay",i),o.tech_.off("play",t),o.tech_.off("seeking",o.watchForBadSeeking_),o.tech_.off("seeked",o.clearSeekingAppendCheck_),l.forEach(function(e){a[e+"SegmentLoader_"].off("appendsdone",u[e].updateend),a[e+"SegmentLoader_"].off("playlistupdate",u[e].reset),o.tech_.off(["seeked","seeking"],u[e].reset)}),o.checkCurrentTimeTimeout_&&window.clearTimeout(o.checkCurrentTimeTimeout_),o.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&window.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=window.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];0<this[e+"StalledDownloads_"]&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,i=t[e+"SegmentLoader_"],n=i.buffered_(),r=function(e,t){if(e!==t){if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e.start(i)!==t.start(i)||e.end(i)!==t.end(i))return!0}return!1}(this[e+"Buffered_"],n);this[e+"Buffered_"]=n,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:i.playlist_&&i.playlist_.id,buffered:Jo(n)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){var e,t;if(!this.tech_.paused()&&!this.tech_.seeking())return e=this.tech_.currentTime(),t=this.tech_.buffered(),this.lastRecordedTime===e&&(!t.length||e+Bl>=t.end(t.length-1))?this.techWaiting_():void(5<=this.consecutiveUpdates&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e))},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),i=this.tech_.currentTime();if(this.afterSeekableWindow_(t,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),void 0!==(e=this.beforeSeekableWindow_(t,i)?(n=t.start(0))+(n===t.end(0)?0:Bl):e))this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+Qo(t)+". Seeking to "+e+".");else{for(var n=this.masterPlaylistController_.sourceUpdater_,t=this.tech_.buffered(),r=n.audioBuffer?n.audioBuffered():null,n=n.videoBuffer?n.videoBuffered():null,s=this.media(),o=s.partTargetDuration||2*(s.targetDuration-jl),a=[r,n],l=0;l<a.length;l++)if(a[l]&&ea(a[l],i)<o)return!1;if(0===(s=Yo(t,i)).length)return!1;e=s.start(0)+Bl,this.logger_("Buffered region starts ("+s.start(0)+")  just beyond seek point ("+i+"). Seeking to "+e+".")}return this.tech_.setCurrentTime(e),!0},t.waiting_=function(){var e,t;this.techWaiting_()||(e=this.tech_.currentTime(),t=this.tech_.buffered(),(t=Ko(t,e)).length&&e+3<=t.end(0)&&(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+t.start(0)+" -> "+t.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})))},t.techWaiting_=function(){var e,t=this.seekable(),i=this.tech_.currentTime();return!(!this.tech_.seeking()&&null===this.timer_)||(this.beforeSeekableWindow_(t,
1i)?(t=t.end(t.length-1),this.logger_("Fell out of live window at time "+i+". Seeking to live point (seekable end) "+t),this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0):(t=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,e=this.tech_.buffered(),this.videoUnderflow_({audioBuffered:t.audioBuffered(),videoBuffered:t.videoBuffered(),currentTime:i})?(this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0):0<(t=Yo(e,i)).length&&(e=t.start(0)-i,this.logger_("Stopped at "+i+", setting timer for "+e+", seeking to "+t.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*e,i),!0)))},t.afterSeekableWindow_=function(e,t,i,n){var r;return void 0===n&&(n=!1),!!e.length&&(r=e.end(e.length-1)+Bl,(r=!i.endList&&n?e.end(e.length-1)+3*i.targetDuration:r)<t)},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&0<e.start(0)&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t,i,n,r=e.videoBuffered,s=e.audioBuffered,e=e.currentTime;if(r)return r.length&&s.length?(i=Ko(r,e-3),n=Ko(r,e),(s=Ko(s,e)).length&&!n.length&&i.length&&(t={start:i.end(0),end:s.end(0)})):Yo(r,e).length||(t=this.gapFromVideoUnderflow_(r,e)),!!t&&(this.logger_("Encountered a gap in video from "+t.start+" to "+t.end+". Seeking to current time "+e),!0)},t.skipTheGap_=function(e){var t=this.tech_.buffered(),i=this.tech_.currentTime(),t=Yo(t,i);this.cancelTimer_(),0!==t.length&&i===e&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",t.start(0)),this.tech_.setCurrentTime(t.start(0)+jl),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var i=function(e){if(e.length<2)return q.createTimeRanges();for(var t=[],i=1;i<e.length;i++){var n=e.end(i-1),r=e.start(i);t.push([n,r])}return q.createTimeRanges(t)}(e),n=0;n<i.length;n++){var r=i.start(n),s=i.end(n);if(t-r<4&&2<t-r)return{start:r,end:s}}return null},e}(),Pc={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},N={PlaylistLoader:iu,Playlist:Xl,utils:t,STANDARD_PLAYLIST_SELECTOR:Ya,INITIAL_PLAYLIST_SELECTOR:function(){var t=this,e=this.playlists.master.playlists.filter(Xl.isEnabled);return Nu(e,Xa),e.filter(function(e){return!!Pu(t.playlists.master,e).video})[0]||null},lastBandwidthSelector:Ya,movingAverageBandwidthSelector:function(t){var i=-1,n=-1;if(t<0||1<t)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var e=this.useDevicePixelRatio&&window.devicePixelRatio||1;return i<0&&(i=this.systemBandwidth,n=this.systemBandwidth),0<this.systemBandwidth&&this.systemBandwidth!==n&&(i=t*this.systemBandwidth+(1-t)*i,n=this.systemBandwidth),Ka(this.playlists.master,i,parseInt(Ga(this.tech_.el(),"width"),10)*e,parseInt(Ga(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:Xa,comparePlaylistResolution:function(e,t){var i,n;return(i=(i=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width?e.attributes.RESOLUTION.width:i)||window.Number.MAX_VALUE)===(n=(n=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width?t.attributes.RESOLUTION.width:n)||window.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-n},xhr:ba()},Oc=(Object.keys(D).forEach(function(t){Object.defineProperty(N,t,{get:function(){return q.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),D[t]},set:function(e){q.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e<0?q.log.warn("value of Vhs."+t+" must be greater than or equal to 0"):D[t]=e}})}),"videojs-vhs");N.canPlaySource=function(){return q.log.warn("HLS is no longer a tech. Please remove it from your player'
1s techOrder.")};N.supportsNativeHls=!(!document||!document.createElement||(Qu=document.createElement("video"),!q.getTech("Html5").isSupported()))&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(e){return/maybe|probably/i.test(Qu.canPlayType(e))}),N.supportsNativeDash=!!(document&&document.createElement&&q.getTech("Html5").isSupported())&&/maybe|probably/i.test(document.createElement("video").canPlayType("application/dash+xml")),N.supportsTypeNatively=function(e){return"hls"===e?N.supportsNativeHls:"dash"===e&&N.supportsNativeDash},N.isSupported=function(){return q.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Dc=function(r){function e(e,t,i){var n=r.call(this,t,q.mergeOptions(i.hls,i.vhs))||this;if(i.hls&&Object.keys(i.hls).length&&q.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"==typeof i.initialBandwidth&&(n.options_.bandwidth=i.initialBandwidth),n.logger_=Ul("VhsHandler"),t.options_&&t.options_.playerId&&((i=q(t.options_.playerId)).hasOwnProperty("hls")||Object.defineProperty(i,"hls",{get:function(){return q.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),t.trigger({type:"usage",name:"hls-player-access"}),_(n)},configurable:!0}),i.hasOwnProperty("vhs")||Object.defineProperty(i,"vhs",{get:function(){return q.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),t.trigger({type:"usage",name:"vhs-player-access"}),_(n)},configurable:!0}),i.hasOwnProperty("dash")||Object.defineProperty(i,"dash",{get:function(){return q.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),_(n)},configurable:!0}),n.player_=i),n.tech_=t,n.source_=e,n.stats={},n.ignoreNextSeekingEvent_=!1,n.setOptions_(),n.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(n.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return n.on(document,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;t&&t.contains(n.tech_.el())?n.masterPlaylistController_.fastQualityChange_():n.masterPlaylistController_.checkABR_()}),n.on(n.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),n.on(n.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),n.on(n.tech_,"play",n.play),n}b(e,r);var t=e.prototype;return t.setOptions_=function(){var e,t=this;this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage&&((e=Ku())&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e)&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"})),"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=D.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===D.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach(function(e){void 0!==t.source_[e]&&(t.options_[e]=t.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},t.src=function(e,t){var n=this;e&&(this.setOptions_(),this.options_.src=0===(e=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e,this.options_.tech=this.tech_,this.options_.externVhs=N,this.options_.sourceType=wr(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&q.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new xc(this.options_),e=q.mergeOptions({liveRangeSafeTimeDelta:Bl},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_}),this.playbackWatcher_=new Lc(e),this.masterPlaylistController_.on("error",function(){var e=q.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}),t=this.options_.experimentalBufferBasedABR?N.movingAverageBandwidthSelector(.55):N.STANDARD_PLAYLIST_SELECTOR,this.masterPlaylistController_.selectPlaylist=(this.selectPlaylist||t).bind(this),this.masterPlaylistController_.selectInitialPlaylist=N.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;return e=this.options_.useNetworkInformationApi&&t?1e7<=(t=1e3*t.downlink*1e3)&&1e7<=e?Math.max(e,t):t:e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=0<this.throughput?1/this.throughput:0;return Math.floor(1/(e+t))},set:function(){q.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Jo(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Jo(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){if(n.options_.useBandwidthFromLocalStorage){var e={bandwidth:n.bandwidth,throughput:Math.round(n.throughput)};if(window.localStorage){var t=(t=Ku())?q.mergeOptions(t,e):e;try{window.localStorage.setItem(Oc,JSON.stringify(t))}catch(e){return}}}}),this.masterPlaylistController_.on("selectedinitialmedia",function(){var i;(i=n).representations=function(){var e=i.masterPlaylistController_.master(),e=Gl(e)?i.masterPlaylistController_.getAudioTrackPlaylists_():e.playlists;return e?e.filter(function(e){return!la(e)}
1).map(function(e,t){return new Wu(i,e,e.id)}):[]}}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){n.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el())&&(this.mediaSourceUrl_=window.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))},t.createKeySessions_=function(){var t=this,e=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),Gu({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){t.logger_("created EME key session"),t.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(e){t.logger_("error while creating EME key session",e),t.player_.error({message:"Failed to initialize media keys for EME",code:3})})},t.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},t.setupEme_=function(){var i=this,e=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,e=Xu({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",function(e){var t;"output-restricted"===e.status&&(e=i.masterPlaylistController_.master())&&e.playlists&&(t=[],e.playlists.forEac
vendor: 4,097 bytes, line 1
1h(function(e){e&&e.attributes&&e.attributes.RESOLUTION&&720<=e.attributes.RESOLUTION.height&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,t.push(e))}),t.length)&&((e=q.log).warn.apply(e,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(t)),i.masterPlaylistController_.fastQualityChange_())}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==q.browser.IE_VERSION&&e?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},t.setupQualityLevels_=function(){var i=this,e=q.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t,e;t=i.qualityLevels_,(e=i).representations().forEach(function(e){t.addQualityLevel(e)}),zu(t,e.playlists)}),this.playlists.on("mediachange",function(){zu(i.qualityLevels_,i.playlists)}))},e.version=function(){return{"@videojs/http-streaming":"2.14.3","mux.js":"6.0.1","mpd-parser":"0.21.1","m3u8-parser":"4.7.1","aes-decrypter":"3.1.3"}},t.version=function(){return this.constructor.version()},t.canChangeType=function(){return hc.canChangeType()},t.play=function(){this.masterPlaylistController_.play()},t.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},t.duration=function(){return this.masterPlaylistController_.duration()},t.seekable=function(){return this.masterPlaylistController_.seekable()},t.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&window.URL.revokeObjectURL&&(window.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),r.prototype.dispose.call(this)},t.convertToProgramTime=function(e,t){return Aa({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},t.seekToProgramTime=function(e,t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=2),Ia({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},e}(q.getComponent("Component")),Nc={name:"videojs-http-streaming",VERSION:"2.14.3",canHandleSource:function(e,t){t=q.mergeOptions(q.options,t=void 0===t?{}:t);return Nc.canPlayType(e.type,t)},handleSource:function(e,t,i){i=q.mergeOptions(q.options,i=void 0===i?{}:i);return t.vhs=new Dc(e,t,i),q.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return q.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=ba(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){var t=q.mergeOptions(q.options,t=void 0===t?{}:t),i=t.vhs,i=(void 0===i?{}:i).overrideNative,i=void 0===i?!q.browser.IS_ANY_SAFARI:i,t=t.hls,t=(void 0===t?{}:t).overrideNative,t=void 0!==t&&t,e=wr(e);return e&&(!N.supportsTypeNatively(e)||t||i)?"maybe":""}};return br("avc1.4d400d,mp4a.40.2")&&q.getTech("Html5").registerSourceHandler(Nc,0),q.VhsHandler=Dc,Object.defineProperty(q,"HlsHandler",{get:function(){return q.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Dc},configurable:!0}),q.VhsSourceHandler=Nc,Object.defineProperty(q,"HlsSourceHandler",{get:function(){return q.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Nc},configurable:!0}),q.Vhs=N,Object.defineProperty(q,"Hls",{get:function(){return q.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),N},configurable:!0}
1),q.use||(q.registerComponent("Hls",N),q.registerComponent("Vhs",N)),q.options.vhs=q.options.vhs||{},q.options.hls=q.options.hls||{},q.getPlugin&&q.getPlugin("reloadSourceOnError")||(q.registerPlugin||q.plugin)("reloadSourceOnError",function(e){$u(this,e)}),q});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.